@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
@@ -1133,7 +1133,20 @@ interface BulkGetDataCollectionsPageBySnapshotsRequest {
1133
1133
  snapshotIds?: string[];
1134
1134
  /** Pagination information. */
1135
1135
  paging?: Paging;
1136
+ /**
1137
+ * Tenant mode
1138
+ * Default: META_SITE
1139
+ */
1140
+ tenantMode?: TenantModeWithLiterals;
1141
+ }
1142
+ declare enum TenantMode {
1143
+ /** MetaSite */
1144
+ META_SITE = "META_SITE",
1145
+ /** Account */
1146
+ ACCOUNT = "ACCOUNT"
1136
1147
  }
1148
+ /** @enumType */
1149
+ type TenantModeWithLiterals = TenantMode | 'META_SITE' | 'ACCOUNT';
1137
1150
  interface BulkGetDataCollectionsPageBySnapshotsResponse {
1138
1151
  /** List of snapshot collection map */
1139
1152
  snapshotCollections?: SnapshotCollection[];
@@ -1288,6 +1301,34 @@ interface CreateDataCollectionsSnapshotResponse {
1288
1301
  /** data collections in snapshot */
1289
1302
  snapshotCollections?: DataCollection[];
1290
1303
  }
1304
+ interface CreateAppCollectionsSnapshotRequest {
1305
+ /**
1306
+ * Snapshot ID to create
1307
+ * @format GUID
1308
+ */
1309
+ snapshotId?: string;
1310
+ /**
1311
+ * App def id of the app that owns the snapshot
1312
+ * @format GUID
1313
+ */
1314
+ appDefId?: string;
1315
+ /**
1316
+ * Collections to include in the snapshot
1317
+ * @maxSize 1000
1318
+ */
1319
+ collections?: CollectionDefinition[];
1320
+ }
1321
+ interface CollectionDefinition {
1322
+ /** Data collection */
1323
+ collection?: DataCollection;
1324
+ /**
1325
+ * Indexes for the data collection
1326
+ * @maxSize 100
1327
+ */
1328
+ indexes?: Index[];
1329
+ }
1330
+ interface CreateAppCollectionsSnapshotResponse {
1331
+ }
1291
1332
  interface RestoreDataCollectionsFromSnapshotRequest {
1292
1333
  /**
1293
1334
  * snapshot ID to restore
@@ -1717,4 +1758,4 @@ interface DeleteDataCollectionFieldOptions {
1717
1758
  fieldKey: string;
1718
1759
  }
1719
1760
 
1720
- 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, restoreDataCollection, updateDataCollection, updateDataCollectionField };
1761
+ 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, restoreDataCollection, 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,