@wix/auto_sdk_data_collections 1.0.34 → 1.0.36

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 (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +11 -4
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +42 -1
  5. package/build/cjs/index.typings.js +11 -4
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +42 -1
  8. package/build/cjs/meta.js +11 -4
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +10 -4
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +42 -1
  14. package/build/es/index.typings.mjs +10 -4
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +42 -1
  17. package/build/es/meta.mjs +10 -4
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +11 -4
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +42 -1
  23. package/build/internal/cjs/index.typings.js +11 -4
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +42 -1
  26. package/build/internal/cjs/meta.js +11 -4
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +10 -4
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +42 -1
  32. package/build/internal/es/index.typings.mjs +10 -4
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +42 -1
  35. package/build/internal/es/meta.mjs +10 -4
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1102,7 +1102,20 @@ interface BulkGetDataCollectionsPageBySnapshotsRequest {
1102
1102
  snapshotIds?: string[];
1103
1103
  /** Pagination information. */
1104
1104
  paging?: Paging;
1105
+ /**
1106
+ * Tenant mode
1107
+ * Default: META_SITE
1108
+ */
1109
+ tenantMode?: TenantModeWithLiterals;
1110
+ }
1111
+ declare enum TenantMode {
1112
+ /** MetaSite */
1113
+ META_SITE = "META_SITE",
1114
+ /** Account */
1115
+ ACCOUNT = "ACCOUNT"
1105
1116
  }
1117
+ /** @enumType */
1118
+ type TenantModeWithLiterals = TenantMode | 'META_SITE' | 'ACCOUNT';
1106
1119
  interface BulkGetDataCollectionsPageBySnapshotsResponse {
1107
1120
  /** List of snapshot collection map */
1108
1121
  snapshotCollections?: SnapshotCollection[];
@@ -1257,6 +1270,34 @@ interface CreateDataCollectionsSnapshotResponse {
1257
1270
  /** data collections in snapshot */
1258
1271
  snapshotCollections?: DataCollection[];
1259
1272
  }
1273
+ interface CreateAppCollectionsSnapshotRequest {
1274
+ /**
1275
+ * Snapshot ID to create
1276
+ * @format GUID
1277
+ */
1278
+ snapshotId?: string;
1279
+ /**
1280
+ * App def id of the app that owns the snapshot
1281
+ * @format GUID
1282
+ */
1283
+ appDefId?: string;
1284
+ /**
1285
+ * Collections to include in the snapshot
1286
+ * @maxSize 1000
1287
+ */
1288
+ collections?: CollectionDefinition[];
1289
+ }
1290
+ interface CollectionDefinition {
1291
+ /** Data collection */
1292
+ collection?: DataCollection;
1293
+ /**
1294
+ * Indexes for the data collection
1295
+ * @maxSize 100
1296
+ */
1297
+ indexes?: Index[];
1298
+ }
1299
+ interface CreateAppCollectionsSnapshotResponse {
1300
+ }
1260
1301
  interface RestoreDataCollectionsFromSnapshotRequest {
1261
1302
  /**
1262
1303
  * snapshot ID to restore
@@ -1663,4 +1704,4 @@ interface DeleteDataCollectionFieldOptions {
1663
1704
  fieldKey: string;
1664
1705
  }
1665
1706
 
1666
- export { AccessLevel, type AccessLevelWithLiterals, type ActionEvent, type AllowedDataPermissions, type ApplicationError, type ArraySizeRange, type BulkGetDataCollectionsPageBySnapshotsRequest, type BulkGetDataCollectionsPageBySnapshotsResponse, type BulkGetDataCollectionsRequest, type BulkGetDataCollectionsResponse, type Calculator, type CalculatorPatternOneOf, type CatalogOptions, type CmsOptions, type CollectionCapabilities, CollectionOperation, type CollectionOperationWithLiterals, CollectionType, type CollectionTypeWithLiterals, type CreateDataCollectionFieldOptions, type CreateDataCollectionFieldRequest, type CreateDataCollectionFieldResponse, type CreateDataCollectionRequest, type CreateDataCollectionResponse, type CreateDataCollectionsSnapshotRequest, type CreateDataCollectionsSnapshotResponse, type CreateMigratedCollectionsSnapshotRequest, type CreateMigratedCollectionsSnapshotResponse, type DataCollection, type DataCollectionChangedEvent, type DataCollectionClonedEvent, type DataCollectionEvictedEvent, DataOperation, type DataOperationWithLiterals, type DataPermissions, type DeleteDataCollectionFieldOptions, type DeleteDataCollectionFieldRequest, type DeleteDataCollectionFieldResponse, type DeleteDataCollectionRequest, type DeleteDataCollectionResponse, type DeleteDataCollectionsSnapshotRequest, type DeleteDataCollectionsSnapshotResponse, type Destination, Direction, type DirectionWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FailedCollection, type Failure, type Field, type FieldCapabilities, type FieldPlugin, type FieldPluginOptionsOneOf, FieldPluginType, type FieldPluginTypeWithLiterals, type FieldRangeValidationsOneOf, type FieldUpdate, type FieldsPattern, Format, type FormatWithLiterals, type GetDataCollectionOptions, type GetDataCollectionRequest, type GetDataCollectionResponse, type IdentificationData, type IdentificationDataIdOneOf, type Index, type IndexField, type IndexLimits, type IndexQuotaLimits, IndexSource, type IndexSourceWithLiterals, IndexStatus, type IndexStatusWithLiterals, type ListDataCollectionsOptions, type ListDataCollectionsRequest, type ListDataCollectionsResponse, type MessageEnvelope, type MultiReference, type MultilingualOptions, type NumberRange, type ObjectField, Order, type OrderWithLiterals, type PageLink, type PageLinkPluginOptions, type Paging, type PagingMetadataV2, PagingMode, type PagingModeWithLiterals, type Permissions, type Plugin, type PluginCmsOptions, type PluginOptionsOneOf, PluginType, type PluginTypeWithLiterals, type PluginUpdate, type PublishPluginOptions, QueryOperator, type QueryOperatorWithLiterals, type Reference, type RestorationCollection, type RestoreDataCollectionRequest, type RestoreDataCollectionResponse, type RestoreDataCollectionsFromSnapshotRequest, type RestoreDataCollectionsFromSnapshotResponse, type RestoreInfo, Role, type RoleWithLiterals, Segment, type SegmentWithLiterals, type SingleItemPluginOptions, type SiteSort, type SnapshotCollection, type Sort, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type StringLengthRange, Type, type TypeMetadata, type TypeMetadataMetadataOneOf, type TypeWithLiterals, type UpdateDataCollectionFieldOptions, type UpdateDataCollectionFieldRequest, type UpdateDataCollectionFieldResponse, type UpdateDataCollectionRequest, type UpdateDataCollectionResponse, type UpdateDataPermissionsRequest, type UpdateDataPermissionsResponse, type UrlizedOnlyPattern, type UrlizedPluginOptions, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type _Array, type _Object, createDataCollection, createDataCollectionField, deleteDataCollection, deleteDataCollectionField, getDataCollection, listDataCollections, updateDataCollection, updateDataCollectionField };
1707
+ export { AccessLevel, type AccessLevelWithLiterals, type ActionEvent, type AllowedDataPermissions, type ApplicationError, type ArraySizeRange, type BulkGetDataCollectionsPageBySnapshotsRequest, type BulkGetDataCollectionsPageBySnapshotsResponse, type BulkGetDataCollectionsRequest, type BulkGetDataCollectionsResponse, type Calculator, type CalculatorPatternOneOf, type CatalogOptions, type CmsOptions, type CollectionCapabilities, type CollectionDefinition, CollectionOperation, type CollectionOperationWithLiterals, CollectionType, type CollectionTypeWithLiterals, type CreateAppCollectionsSnapshotRequest, type CreateAppCollectionsSnapshotResponse, type CreateDataCollectionFieldOptions, type CreateDataCollectionFieldRequest, type CreateDataCollectionFieldResponse, type CreateDataCollectionRequest, type CreateDataCollectionResponse, type CreateDataCollectionsSnapshotRequest, type CreateDataCollectionsSnapshotResponse, type CreateMigratedCollectionsSnapshotRequest, type CreateMigratedCollectionsSnapshotResponse, type DataCollection, type DataCollectionChangedEvent, type DataCollectionClonedEvent, type DataCollectionEvictedEvent, DataOperation, type DataOperationWithLiterals, type DataPermissions, type DeleteDataCollectionFieldOptions, type DeleteDataCollectionFieldRequest, type DeleteDataCollectionFieldResponse, type DeleteDataCollectionRequest, type DeleteDataCollectionResponse, type DeleteDataCollectionsSnapshotRequest, type DeleteDataCollectionsSnapshotResponse, type Destination, Direction, type DirectionWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FailedCollection, type Failure, type Field, type FieldCapabilities, type FieldPlugin, type FieldPluginOptionsOneOf, FieldPluginType, type FieldPluginTypeWithLiterals, type FieldRangeValidationsOneOf, type FieldUpdate, type FieldsPattern, Format, type FormatWithLiterals, type GetDataCollectionOptions, type GetDataCollectionRequest, type GetDataCollectionResponse, type IdentificationData, type IdentificationDataIdOneOf, type Index, type IndexField, type IndexLimits, type IndexQuotaLimits, IndexSource, type IndexSourceWithLiterals, IndexStatus, type IndexStatusWithLiterals, type ListDataCollectionsOptions, type ListDataCollectionsRequest, type ListDataCollectionsResponse, type MessageEnvelope, type MultiReference, type MultilingualOptions, type NumberRange, type ObjectField, Order, type OrderWithLiterals, type PageLink, type PageLinkPluginOptions, type Paging, type PagingMetadataV2, PagingMode, type PagingModeWithLiterals, type Permissions, type Plugin, type PluginCmsOptions, type PluginOptionsOneOf, PluginType, type PluginTypeWithLiterals, type PluginUpdate, type PublishPluginOptions, QueryOperator, type QueryOperatorWithLiterals, type Reference, type RestorationCollection, type RestoreDataCollectionRequest, type RestoreDataCollectionResponse, type RestoreDataCollectionsFromSnapshotRequest, type RestoreDataCollectionsFromSnapshotResponse, type RestoreInfo, Role, type RoleWithLiterals, Segment, type SegmentWithLiterals, type SingleItemPluginOptions, type SiteSort, type SnapshotCollection, type Sort, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type StringLengthRange, TenantMode, type TenantModeWithLiterals, Type, type TypeMetadata, type TypeMetadataMetadataOneOf, type TypeWithLiterals, type UpdateDataCollectionFieldOptions, type UpdateDataCollectionFieldRequest, type UpdateDataCollectionFieldResponse, type UpdateDataCollectionRequest, type UpdateDataCollectionResponse, type UpdateDataPermissionsRequest, type UpdateDataPermissionsResponse, type UrlizedOnlyPattern, type UrlizedPluginOptions, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type _Array, type _Object, createDataCollection, createDataCollectionField, deleteDataCollection, deleteDataCollectionField, getDataCollection, listDataCollections, updateDataCollection, updateDataCollectionField };
@@ -37,6 +37,7 @@ __export(index_typings_exports, {
37
37
  Segment: () => Segment,
38
38
  SortOrder: () => SortOrder,
39
39
  Status: () => Status,
40
+ TenantMode: () => TenantMode,
40
41
  Type: () => Type,
41
42
  WebhookIdentityType: () => WebhookIdentityType,
42
43
  createDataCollection: () => createDataCollection2,
@@ -389,8 +390,8 @@ function resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl
389
390
  destPath: "/v1/external-database-connections"
390
391
  },
391
392
  {
392
- srcPath: "/data/v1/data-collection-sharing/policies",
393
- destPath: "/v1/data-collection-sharing/policies"
393
+ srcPath: "/data/v1/data-collection-sharing",
394
+ destPath: "/v1/data-collection-sharing"
394
395
  }
395
396
  ],
396
397
  "www.wixgateway.com": [
@@ -413,8 +414,8 @@ function resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl
413
414
  destPath: "/v1/external-database-connections"
414
415
  },
415
416
  {
416
- srcPath: "/data/v1/data-collection-sharing/policies",
417
- destPath: "/v1/data-collection-sharing/policies"
417
+ srcPath: "/data/v1/data-collection-sharing",
418
+ destPath: "/v1/data-collection-sharing"
418
419
  }
419
420
  ]
420
421
  };
@@ -942,6 +943,11 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
942
943
  SortOrder2["DESC"] = "DESC";
943
944
  return SortOrder2;
944
945
  })(SortOrder || {});
946
+ var TenantMode = /* @__PURE__ */ ((TenantMode2) => {
947
+ TenantMode2["META_SITE"] = "META_SITE";
948
+ TenantMode2["ACCOUNT"] = "ACCOUNT";
949
+ return TenantMode2;
950
+ })(TenantMode || {});
945
951
  var Order = /* @__PURE__ */ ((Order2) => {
946
952
  Order2["ASC"] = "ASC";
947
953
  Order2["DESC"] = "DESC";
@@ -1245,6 +1251,7 @@ async function deleteDataCollectionField2(dataCollectionId, options) {
1245
1251
  Segment,
1246
1252
  SortOrder,
1247
1253
  Status,
1254
+ TenantMode,
1248
1255
  Type,
1249
1256
  WebhookIdentityType,
1250
1257
  createDataCollection,