@wix/patterns-fields-utils 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/@wix/patterns-fields-bundled-cm-media-utils/dist/cjs/index.d.ts +176 -0
  2. package/@wix/patterns-fields-bundled-cm-media-utils/dist/cjs/index.js +7103 -0
  3. package/@wix/patterns-fields-bundled-cm-media-utils/dist/cjs/index.js.map +1 -0
  4. package/@wix/patterns-fields-bundled-cm-media-utils/dist/esm/index.d.mts +176 -0
  5. package/@wix/patterns-fields-bundled-cm-media-utils/dist/esm/index.mjs +7118 -0
  6. package/@wix/patterns-fields-bundled-cm-media-utils/dist/esm/index.mjs.map +1 -0
  7. package/@wix/patterns-fields-bundled-cm-media-utils/package.json +37 -0
  8. package/@wix/patterns-fields-bundled-organize-media/dist/cjs/index.css.map +1 -0
  9. package/@wix/patterns-fields-bundled-organize-media/dist/cjs/index.d.ts +115 -0
  10. package/@wix/patterns-fields-bundled-organize-media/dist/cjs/index.global.css +1536 -0
  11. package/@wix/patterns-fields-bundled-organize-media/dist/cjs/index.js +76375 -0
  12. package/@wix/patterns-fields-bundled-organize-media/dist/cjs/index.js.map +1 -0
  13. package/@wix/patterns-fields-bundled-organize-media/dist/cjs/move-POMANKZG.svg +3 -0
  14. package/@wix/patterns-fields-bundled-organize-media/dist/esm/chunk-ANOFRNLZ.mjs +302 -0
  15. package/@wix/patterns-fields-bundled-organize-media/dist/esm/chunk-ANOFRNLZ.mjs.map +1 -0
  16. package/@wix/patterns-fields-bundled-organize-media/dist/esm/chunk-D3Y2XBAR.mjs +9573 -0
  17. package/@wix/patterns-fields-bundled-organize-media/dist/esm/chunk-D3Y2XBAR.mjs.map +1 -0
  18. package/@wix/patterns-fields-bundled-organize-media/dist/esm/chunk-FOPGQED5.mjs +60 -0
  19. package/@wix/patterns-fields-bundled-organize-media/dist/esm/chunk-FOPGQED5.mjs.map +1 -0
  20. package/@wix/patterns-fields-bundled-organize-media/dist/esm/chunk-KK6IAXDC.mjs +61 -0
  21. package/@wix/patterns-fields-bundled-organize-media/dist/esm/chunk-KK6IAXDC.mjs.map +1 -0
  22. package/@wix/patterns-fields-bundled-organize-media/dist/esm/chunk-LSMTMMMM.mjs +999 -0
  23. package/@wix/patterns-fields-bundled-organize-media/dist/esm/chunk-LSMTMMMM.mjs.map +1 -0
  24. package/@wix/patterns-fields-bundled-organize-media/dist/esm/hls-X7Z2O2CI.mjs +32977 -0
  25. package/@wix/patterns-fields-bundled-organize-media/dist/esm/hls-X7Z2O2CI.mjs.map +1 -0
  26. package/@wix/patterns-fields-bundled-organize-media/dist/esm/html2canvas.esm-26SHFSHQ.mjs +7813 -0
  27. package/@wix/patterns-fields-bundled-organize-media/dist/esm/html2canvas.esm-26SHFSHQ.mjs.map +1 -0
  28. package/@wix/patterns-fields-bundled-organize-media/dist/esm/index.css.map +1 -0
  29. package/@wix/patterns-fields-bundled-organize-media/dist/esm/index.d.mts +115 -0
  30. package/@wix/patterns-fields-bundled-organize-media/dist/esm/index.global.css +1537 -0
  31. package/@wix/patterns-fields-bundled-organize-media/dist/esm/index.mjs +23054 -0
  32. package/@wix/patterns-fields-bundled-organize-media/dist/esm/index.mjs.map +1 -0
  33. package/@wix/patterns-fields-bundled-organize-media/dist/esm/lib-INOZ3X5B.mjs +6427 -0
  34. package/@wix/patterns-fields-bundled-organize-media/dist/esm/lib-INOZ3X5B.mjs.map +1 -0
  35. package/@wix/patterns-fields-bundled-organize-media/dist/esm/move-POMANKZG.svg +3 -0
  36. package/@wix/patterns-fields-bundled-organize-media/dist/esm/player.es-EHCCDTX6.mjs +1600 -0
  37. package/@wix/patterns-fields-bundled-organize-media/dist/esm/player.es-EHCCDTX6.mjs.map +1 -0
  38. package/@wix/patterns-fields-bundled-organize-media/dist/esm/validateTypes-OWSYRJSG.mjs +85 -0
  39. package/@wix/patterns-fields-bundled-organize-media/dist/esm/validateTypes-OWSYRJSG.mjs.map +1 -0
  40. package/@wix/patterns-fields-bundled-organize-media/dist/esm/videoItem-QVVYW7GT.mjs +311 -0
  41. package/@wix/patterns-fields-bundled-organize-media/dist/esm/videoItem-QVVYW7GT.mjs.map +1 -0
  42. package/@wix/patterns-fields-bundled-organize-media/dist/esm/videoScrollHelper-HX35Z6JI.mjs +307 -0
  43. package/@wix/patterns-fields-bundled-organize-media/dist/esm/videoScrollHelper-HX35Z6JI.mjs.map +1 -0
  44. package/@wix/patterns-fields-bundled-organize-media/package.json +70 -0
  45. package/@wix/wix-data-schema-types/.nvmrc +1 -0
  46. package/@wix/wix-data-schema-types/index.d.ts +1 -0
  47. package/@wix/wix-data-schema-types/lib/capabilities.d.ts +18 -0
  48. package/@wix/wix-data-schema-types/lib/capabilities.js +3 -0
  49. package/@wix/wix-data-schema-types/lib/capabilities.js.map +1 -0
  50. package/@wix/wix-data-schema-types/lib/defaultMaxPageSize.d.ts +4 -0
  51. package/@wix/wix-data-schema-types/lib/defaultMaxPageSize.js +9 -0
  52. package/@wix/wix-data-schema-types/lib/defaultMaxPageSize.js.map +1 -0
  53. package/@wix/wix-data-schema-types/lib/field.d.ts +350 -0
  54. package/@wix/wix-data-schema-types/lib/field.js +173 -0
  55. package/@wix/wix-data-schema-types/lib/field.js.map +1 -0
  56. package/@wix/wix-data-schema-types/lib/fieldPlugins.d.ts +23 -0
  57. package/@wix/wix-data-schema-types/lib/fieldPlugins.js +8 -0
  58. package/@wix/wix-data-schema-types/lib/fieldPlugins.js.map +1 -0
  59. package/@wix/wix-data-schema-types/lib/filter.d.ts +261 -0
  60. package/@wix/wix-data-schema-types/lib/filter.js +41 -0
  61. package/@wix/wix-data-schema-types/lib/filter.js.map +1 -0
  62. package/@wix/wix-data-schema-types/lib/index.d.ts +9 -0
  63. package/@wix/wix-data-schema-types/lib/index.js +26 -0
  64. package/@wix/wix-data-schema-types/lib/index.js.map +1 -0
  65. package/@wix/wix-data-schema-types/lib/order.d.ts +24 -0
  66. package/@wix/wix-data-schema-types/lib/order.js +9 -0
  67. package/@wix/wix-data-schema-types/lib/order.js.map +1 -0
  68. package/@wix/wix-data-schema-types/lib/pagingMode.d.ts +4 -0
  69. package/@wix/wix-data-schema-types/lib/pagingMode.js +9 -0
  70. package/@wix/wix-data-schema-types/lib/pagingMode.js.map +1 -0
  71. package/@wix/wix-data-schema-types/lib/plugins.d.ts +76 -0
  72. package/@wix/wix-data-schema-types/lib/plugins.js +27 -0
  73. package/@wix/wix-data-schema-types/lib/plugins.js.map +1 -0
  74. package/@wix/wix-data-schema-types/lib/schema.d.ts +202 -0
  75. package/@wix/wix-data-schema-types/lib/schema.js +106 -0
  76. package/@wix/wix-data-schema-types/lib/schema.js.map +1 -0
  77. package/@wix/wix-data-schema-types/package.json +45 -0
  78. package/@wix/wix-data-schema-types/src/capabilities.ts +19 -0
  79. package/@wix/wix-data-schema-types/src/defaultMaxPageSize.ts +6 -0
  80. package/@wix/wix-data-schema-types/src/field.ts +355 -0
  81. package/@wix/wix-data-schema-types/src/fieldPlugins.ts +28 -0
  82. package/@wix/wix-data-schema-types/src/filter.ts +280 -0
  83. package/@wix/wix-data-schema-types/src/index.ts +9 -0
  84. package/@wix/wix-data-schema-types/src/order.ts +26 -0
  85. package/@wix/wix-data-schema-types/src/pagingMode.ts +4 -0
  86. package/@wix/wix-data-schema-types/src/plugins.ts +97 -0
  87. package/@wix/wix-data-schema-types/src/schema.ts +222 -0
  88. package/@wix/wix-data-schema-types/tsconfig.json +18 -0
  89. package/@wix/wix-data-schema-types/tslint.json +3 -0
  90. package/dist/cjs/index.js +4 -0
  91. package/dist/cjs/index.js.map +1 -0
  92. package/dist/esm/index.js +12 -0
  93. package/dist/esm/index.js.map +1 -0
  94. package/dist/types/index.d.ts +12 -0
  95. package/dist/types/index.d.ts.map +1 -0
  96. package/package.json +87 -0
@@ -0,0 +1,202 @@
1
+ import { Capabilities } from './capabilities';
2
+ import { FieldSpec } from './field';
3
+ import { OrderSpec } from './order';
4
+ import { PagingMode } from './pagingMode';
5
+ import { SchemaPlugins } from './plugins';
6
+ /**
7
+ * @interface Schema
8
+ * @member displayName {string} - Defines UI-friendly name of a collection.
9
+ * @member namespace {string} - Defines to which namespace the collections belongs to.
10
+ * This is used for grouping collections in the editor's left side menu under Database section.
11
+ * @member displayNamespace {string} - Defines a UI-friendly namespace value.
12
+ * @member isDeleted {boolean} - Marks the schema as deleted and unavailable for use in data operations.
13
+ * @member id {string} - ID should be formed by concatenating namespace, slash ('/') and collection name. For example:
14
+ * 'Stores/Products'. This is the property that is used in Wix Data requests to refer to the collection. For example:
15
+ * wixData.query('Stores/Products').find()
16
+ * @member ownerAppId {string} - Id of app that exposes the schema. The collection will only be visible in sites
17
+ * that have an application with the given id provisioned.
18
+ * @member allowedOperations {Array<string>} - Lists Wix Data operations that are allowed in a given collection.
19
+ * Operations that are not available will be hidden in Content Manager, Permissions dialog and Dataset options.
20
+ * Wix Data however will not reject any operation performed by user from code. It is up for the driver to do so. It
21
+ * is recommended to reject with a meaningful error message explaining why the operation did not succeed.
22
+ * Returning empty array would block all filter options, returning null would allow options default for that type.
23
+ * @member permissions - see {@link Permissions}
24
+ * @member dataPermissions - general collection permission configuration (read-only)
25
+ * @member allowedPermissions - allowed data operations for current user, included only on-demand, see {@link AllowedDataPermissions}
26
+ * @member defaultSort {OrderSpec} - Denotes default sort of database if no sort is applied. This is used to communicate
27
+ * to the user what the sort order is, if no sort order is specified. This should be set only if default sort order
28
+ * exists for you collection as this is not the default order that will be passed down to find, but the order the
29
+ * driver applies when no order is given.
30
+ * @member displayField marks a field value of which will be used to represent the item in (multi-)references.
31
+ * When showing assigned (multi-)references Content Manager will use this field to display which items are assigned.
32
+ * When assigning new (multi-)reference item, this field can be used to search for the item.
33
+ * @member fields { [fieldName: string]: FieldSpec } - Fields specifications.
34
+ * @member maxPageSize {string} - Defines a maximum page size of a query supported by schema. Defaults are defined in DefaultMaxPageSize.
35
+ * @member storage - see {@link Storage}
36
+ * @member plugins - a map of plugins enabled for schema.
37
+ * @member version {number} - When Optimistic Locking is enabled, the version number is defined and increments on
38
+ * every schema change.
39
+ * @member ttl - number of seconds this schema can be safely cached for. We suggest a high number for schemas that are
40
+ * static in nature (that is user can not change them) and low number for those that can change. Schemas have little impact
41
+ * to data operations in a live, so it is safe to cache even schemas that change because of user actions; only exceptions are
42
+ * references and field deletion. Schemas are not cached in Editor segment.
43
+ * @member capabilities - see {@link Capabilities}
44
+ */
45
+ export interface Schema {
46
+ displayName: string;
47
+ namespace?: string | null;
48
+ displayNamespace?: string | null;
49
+ isDeleted?: boolean;
50
+ id: string;
51
+ ownerAppId?: string | null;
52
+ allowedOperations?: DataOperation[];
53
+ collectionOperations?: CollectionOperation[];
54
+ permissions: Permissions | any;
55
+ dataPermissions?: DataPermissions;
56
+ allowedPermissions?: AllowedDataPermissions;
57
+ defaultSort?: OrderSpec | null;
58
+ displayField?: string;
59
+ fields: {
60
+ [fieldName: string]: FieldSpec;
61
+ };
62
+ maxPageSize?: number;
63
+ storage?: Storage;
64
+ plugins?: SchemaPlugins;
65
+ version?: number;
66
+ ttl?: number | null;
67
+ pagingMode?: PagingMode[];
68
+ capabilities?: Capabilities;
69
+ }
70
+ /**
71
+ * @member ownerAppId - required in DB driver schemas, see {@link Schema} for more details.
72
+ */
73
+ export interface DbDriverSchema extends Schema {
74
+ ownerAppId: string;
75
+ namespace: string;
76
+ }
77
+ export declare enum DataOperation {
78
+ aggregate = "aggregate",
79
+ bulkInsert = "bulkInsert",
80
+ bulkRemove = "bulkRemove",
81
+ bulkSave = "bulkSave",
82
+ bulkUpdate = "bulkUpdate",
83
+ count = "count",
84
+ distinct = "distinct",
85
+ find = "find",
86
+ get = "get",
87
+ insert = "insert",
88
+ insertReference = "insertReference",
89
+ isReferenced = "isReferenced",
90
+ queryReferenced = "queryReferenced",
91
+ remove = "remove",
92
+ removeReference = "removeReference",
93
+ replaceReferences = "replaceReferences",
94
+ save = "save",
95
+ truncate = "truncate",
96
+ update = "update",
97
+ patch = "patch",
98
+ bulkPatch = "bulkPatch"
99
+ }
100
+ export declare enum CollectionOperation {
101
+ UPDATE = "update",
102
+ REMOVE = "remove"
103
+ }
104
+ /**
105
+ * Defines permissions to be shown in Content Manager. User
106
+ * will see a read only list of permissions applied. The items
107
+ * displayed are determined from allowedOperations and the
108
+ * values are specified in this data structure.
109
+ *
110
+ * @deprecated use allowedPermissions to check current user or data permission service to configure permissions
111
+ */
112
+ export interface Permissions {
113
+ read?: PermissionRole;
114
+ update?: PermissionRole;
115
+ insert?: PermissionRole;
116
+ remove?: PermissionRole;
117
+ }
118
+ export declare enum PermissionRole {
119
+ /**
120
+ * Anyone (anonymous) can perform the operation
121
+ */
122
+ anyone = "anyone",
123
+ /**
124
+ * User of user can perform the operation
125
+ */
126
+ siteMember = "siteMember",
127
+ /**
128
+ * User of user who is the owner (producer) of the
129
+ * data can perform the operation.
130
+ *
131
+ * In regular Wix Data collections, this allows
132
+ * performing operation on an item if _owner field
133
+ * matches the currently logged Site Member id.
134
+ *
135
+ * In case of DB drivers, this can match the
136
+ * ownership that is appropriate to vertical, ex.:
137
+ * UoU can see his purchases, or contact can see
138
+ * his details.
139
+ */
140
+ siteMemberAuthor = "siteMemberAuthor",
141
+ /**
142
+ * Site Admin can perform the operation.
143
+ */
144
+ admin = "admin"
145
+ }
146
+ export interface DataPermissions {
147
+ itemRead: AccessLevel;
148
+ itemInsert: AccessLevel;
149
+ itemUpdate: AccessLevel;
150
+ itemRemove: AccessLevel;
151
+ }
152
+ export declare enum AccessLevel {
153
+ /** Any subject, including visitors */
154
+ ANYONE = "ANYONE",
155
+ /** Any signed-in user (both site members and collaborators) */
156
+ SITE_MEMBER = "SITE_MEMBER",
157
+ /** Any signed-in user, but site members only have access to own items */
158
+ SITE_MEMBER_AUTHOR = "SITE_MEMBER_AUTHOR",
159
+ /** Site collaborator that has a role with CMS Access permission */
160
+ CMS_EDITOR = "CMS_EDITOR",
161
+ /** CMS administrators and users or roles granted with special access */
162
+ PRIVILEGED = "PRIVILEGED"
163
+ }
164
+ /**
165
+ * Defines actual allowed data operations
166
+ */
167
+ export interface AllowedDataPermissions {
168
+ itemRead: boolean;
169
+ itemInsert: boolean;
170
+ itemUpdate: boolean;
171
+ itemRemove: boolean;
172
+ }
173
+ export declare enum Storage {
174
+ /**
175
+ * DB driver collection
176
+ */
177
+ driver = "driver",
178
+ /**
179
+ * User collection
180
+ */
181
+ docstore = "docstore",
182
+ /**
183
+ * App builder collection
184
+ * @deprecated
185
+ * `Storage.staticAppSchema` should be used instead
186
+ */
187
+ app = "app",
188
+ /**
189
+ * External db driver collection
190
+ */
191
+ external = "external",
192
+ /**
193
+ * Dynamic application collection. For example Forms collection.
194
+ * @deprecated
195
+ * `Storage.driver` should be used instead
196
+ */
197
+ dynamicApplication = "dynamicApplication",
198
+ /**
199
+ * Static application collection. For example Blocks collection.
200
+ */
201
+ staticAppSchema = "staticAppSchema"
202
+ }
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Storage = exports.AccessLevel = exports.PermissionRole = exports.CollectionOperation = exports.DataOperation = void 0;
4
+ var DataOperation;
5
+ (function (DataOperation) {
6
+ DataOperation["aggregate"] = "aggregate";
7
+ DataOperation["bulkInsert"] = "bulkInsert";
8
+ DataOperation["bulkRemove"] = "bulkRemove";
9
+ DataOperation["bulkSave"] = "bulkSave";
10
+ DataOperation["bulkUpdate"] = "bulkUpdate";
11
+ DataOperation["count"] = "count";
12
+ DataOperation["distinct"] = "distinct";
13
+ DataOperation["find"] = "find";
14
+ DataOperation["get"] = "get";
15
+ DataOperation["insert"] = "insert";
16
+ DataOperation["insertReference"] = "insertReference";
17
+ DataOperation["isReferenced"] = "isReferenced";
18
+ DataOperation["queryReferenced"] = "queryReferenced";
19
+ DataOperation["remove"] = "remove";
20
+ DataOperation["removeReference"] = "removeReference";
21
+ DataOperation["replaceReferences"] = "replaceReferences";
22
+ DataOperation["save"] = "save";
23
+ DataOperation["truncate"] = "truncate";
24
+ DataOperation["update"] = "update";
25
+ DataOperation["patch"] = "patch";
26
+ DataOperation["bulkPatch"] = "bulkPatch";
27
+ })(DataOperation = exports.DataOperation || (exports.DataOperation = {}));
28
+ var CollectionOperation;
29
+ (function (CollectionOperation) {
30
+ CollectionOperation["UPDATE"] = "update";
31
+ CollectionOperation["REMOVE"] = "remove";
32
+ })(CollectionOperation = exports.CollectionOperation || (exports.CollectionOperation = {}));
33
+ var PermissionRole;
34
+ (function (PermissionRole) {
35
+ /**
36
+ * Anyone (anonymous) can perform the operation
37
+ */
38
+ PermissionRole["anyone"] = "anyone";
39
+ /**
40
+ * User of user can perform the operation
41
+ */
42
+ PermissionRole["siteMember"] = "siteMember";
43
+ /**
44
+ * User of user who is the owner (producer) of the
45
+ * data can perform the operation.
46
+ *
47
+ * In regular Wix Data collections, this allows
48
+ * performing operation on an item if _owner field
49
+ * matches the currently logged Site Member id.
50
+ *
51
+ * In case of DB drivers, this can match the
52
+ * ownership that is appropriate to vertical, ex.:
53
+ * UoU can see his purchases, or contact can see
54
+ * his details.
55
+ */
56
+ PermissionRole["siteMemberAuthor"] = "siteMemberAuthor";
57
+ /**
58
+ * Site Admin can perform the operation.
59
+ */
60
+ PermissionRole["admin"] = "admin";
61
+ })(PermissionRole = exports.PermissionRole || (exports.PermissionRole = {}));
62
+ var AccessLevel;
63
+ (function (AccessLevel) {
64
+ /** Any subject, including visitors */
65
+ AccessLevel["ANYONE"] = "ANYONE";
66
+ /** Any signed-in user (both site members and collaborators) */
67
+ AccessLevel["SITE_MEMBER"] = "SITE_MEMBER";
68
+ /** Any signed-in user, but site members only have access to own items */
69
+ AccessLevel["SITE_MEMBER_AUTHOR"] = "SITE_MEMBER_AUTHOR";
70
+ /** Site collaborator that has a role with CMS Access permission */
71
+ AccessLevel["CMS_EDITOR"] = "CMS_EDITOR";
72
+ /** CMS administrators and users or roles granted with special access */
73
+ AccessLevel["PRIVILEGED"] = "PRIVILEGED";
74
+ })(AccessLevel = exports.AccessLevel || (exports.AccessLevel = {}));
75
+ var Storage;
76
+ (function (Storage) {
77
+ /**
78
+ * DB driver collection
79
+ */
80
+ Storage["driver"] = "driver";
81
+ /**
82
+ * User collection
83
+ */
84
+ Storage["docstore"] = "docstore";
85
+ /**
86
+ * App builder collection
87
+ * @deprecated
88
+ * `Storage.staticAppSchema` should be used instead
89
+ */
90
+ Storage["app"] = "app";
91
+ /**
92
+ * External db driver collection
93
+ */
94
+ Storage["external"] = "external";
95
+ /**
96
+ * Dynamic application collection. For example Forms collection.
97
+ * @deprecated
98
+ * `Storage.driver` should be used instead
99
+ */
100
+ Storage["dynamicApplication"] = "dynamicApplication";
101
+ /**
102
+ * Static application collection. For example Blocks collection.
103
+ */
104
+ Storage["staticAppSchema"] = "staticAppSchema";
105
+ })(Storage = exports.Storage || (exports.Storage = {}));
106
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":";;;AA6EA,IAAY,aAsBX;AAtBD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,0CAAyB,CAAA;IACzB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;IACrB,0CAAyB,CAAA;IACzB,gCAAe,CAAA;IACf,sCAAqB,CAAA;IACrB,8BAAa,CAAA;IACb,4BAAW,CAAA;IACX,kCAAiB,CAAA;IACjB,oDAAmC,CAAA;IACnC,8CAA6B,CAAA;IAC7B,oDAAmC,CAAA;IACnC,kCAAiB,CAAA;IACjB,oDAAmC,CAAA;IACnC,wDAAuC,CAAA;IACvC,8BAAa,CAAA;IACb,sCAAqB,CAAA;IACrB,kCAAiB,CAAA;IACjB,gCAAe,CAAA;IACf,wCAAuB,CAAA;AACzB,CAAC,EAtBW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAsBxB;AAED,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;AACnB,CAAC,EAHW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAG9B;AAiBD,IAAY,cA8BX;AA9BD,WAAY,cAAc;IACxB;;OAEG;IACH,mCAAiB,CAAA;IAEjB;;OAEG;IACH,2CAAyB,CAAA;IAEzB;;;;;;;;;;;;OAYG;IACH,uDAAqC,CAAA;IAErC;;OAEG;IACH,iCAAe,CAAA;AACjB,CAAC,EA9BW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QA8BzB;AASD,IAAY,WAeX;AAfD,WAAY,WAAW;IACrB,sCAAsC;IACtC,gCAAiB,CAAA;IAEjB,+DAA+D;IAC/D,0CAA2B,CAAA;IAE3B,yEAAyE;IACzE,wDAAyC,CAAA;IAEzC,mEAAmE;IACnE,wCAAyB,CAAA;IAEzB,wEAAwE;IACxE,wCAAyB,CAAA;AAC3B,CAAC,EAfW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAetB;AAYD,IAAY,OAkCX;AAlCD,WAAY,OAAO;IACjB;;OAEG;IACH,4BAAiB,CAAA;IAEjB;;OAEG;IACH,gCAAqB,CAAA;IAErB;;;;OAIG;IACH,sBAAW,CAAA;IAEX;;OAEG;IACH,gCAAqB,CAAA;IAErB;;;;OAIG;IACH,oDAAyC,CAAA;IAEzC;;OAEG;IACH,8CAAmC,CAAA;AACrC,CAAC,EAlCW,OAAO,GAAP,eAAO,KAAP,eAAO,QAkClB"}
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@wix/wix-data-schema-types",
3
+ "version": "2.0.32",
4
+ "license": "MIT",
5
+ "author": {
6
+ "name": "Giedrius Grazevicius",
7
+ "email": "giedriusg@wix.com"
8
+ },
9
+ "scripts": {
10
+ "clean": "rm -rf node_modules package-lock.json",
11
+ "build": "tsc",
12
+ "lint": "tslint -p ./",
13
+ "lint:fix": "npm run lint -- --fix",
14
+ "test": "npm run build && npm run lint"
15
+ },
16
+ "publishConfig": {
17
+ "registry": "https://npm-cache.dev.wixpress.com/",
18
+ "access": "restricted"
19
+ },
20
+ "main": "./lib/index.js",
21
+ "devDependencies": {
22
+ "@types/long": "^4.0.2",
23
+ "@types/node": "^10.17.60",
24
+ "@wix/wix-data-tslint-rules": "^1.0.0",
25
+ "tslint": "^5.20.1",
26
+ "tslint-config-standard": "^7.1.0",
27
+ "typescript": "^4.9.5"
28
+ },
29
+ "wix": {
30
+ "artifact": {
31
+ "groupId": "com.wixpress.cloud.wix-dis",
32
+ "artifactId": "wix-data-schema-types",
33
+ "targets": {
34
+ "static": false,
35
+ "docker": false
36
+ }
37
+ }
38
+ },
39
+ "falconPackageHash": "9d350cbeb6dd249900ed095009ed083be7f3ba50399ad91fa0a59a19",
40
+ "repository": {
41
+ "type": "git",
42
+ "url": "https://github.com/wix-private/wix-data.git",
43
+ "directory": "wix-data-schema-types"
44
+ }
45
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @interface Capabilities
3
+ * @description Capabilities that collection supports.
4
+ */
5
+ export interface Capabilities {
6
+ indexing?: Indexing
7
+ }
8
+
9
+ /**
10
+ * @interface Indexing
11
+ * @description Defines the limits of how many indexes can be at any given time.
12
+ */
13
+ export interface Indexing {
14
+ regular: number
15
+ regular1Field?: number
16
+ compound?: number
17
+ unique: number
18
+ total: number
19
+ }
@@ -0,0 +1,6 @@
1
+ import { PagingMode } from './pagingMode'
2
+
3
+ export const DefaultMaxPageSize = {
4
+ [PagingMode.Offset]: 1000,
5
+ [PagingMode.Cursor]: 100
6
+ }