'use strict';var t=require('superstruct');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var t__namespace=/*#__PURE__*/_interopNamespace(t);var i=Object.defineProperty;var s=(e,r)=>i(e,"name",{value:r,configurable:true});var a=t__namespace.object({op:t__namespace.union([t__namespace.literal("replace"),t__namespace.literal("remove"),t__namespace.literal("add")]),path:t__namespace.array(t__namespace.union([t__namespace.string(),t__namespace.number()])),value:t__namespace.optional(t__namespace.any())}),c=a,P=s(e=>c.is(e),"isPatch"),n=t__namespace.array(a),h=n,l=s(e=>h.is(e),"isPatches"),o=t__namespace.type({patches:n,inversePatches:t__namespace.optional(n),event:t__namespace.optional(t__namespace.object({type:t__namespace.string()})),id:t__namespace.string(),date:t__namespace.string(),userId:t__namespace.optional(t__namespace.string())}),p=o,R=s(e=>p.is(e),"isKsRemoteChange"),m=t__namespace.array(o),g=m,y=s(e=>g.is(e),"isKsRemoteChanges");exports.KsRemoteChangesStruct=g;exports.isKsRemoteChange=R;exports.isKsRemoteChanges=y;exports.isPatch=P;exports.isPatches=l;//# sourceMappingURL=changes.js.map
//# sourceMappingURL=changes.js.map