@wix/auto_sdk_data_collections 1.0.35 → 1.0.37

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 +8 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +57 -2
  5. package/build/cjs/index.typings.js +8 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +57 -2
  8. package/build/cjs/meta.js +8 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +7 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +57 -2
  14. package/build/es/index.typings.mjs +7 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +57 -2
  17. package/build/es/meta.mjs +7 -0
  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 +8 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +57 -2
  23. package/build/internal/cjs/index.typings.js +8 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +57 -2
  26. package/build/internal/cjs/meta.js +8 -0
  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 +7 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +57 -2
  32. package/build/internal/es/index.typings.mjs +7 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +57 -2
  35. package/build/internal/es/meta.mjs +7 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1092,7 +1092,8 @@ interface UpdateDataPermissionsResponse {
1092
1092
  /** Updated data collection */
1093
1093
  dataCollection?: DataCollection;
1094
1094
  }
1095
- interface BulkGetDataCollectionsPageBySnapshotsRequest {
1095
+ interface BulkGetDataCollectionsPageBySnapshotsRequest extends BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf {
1096
+ appOptions?: AppOptions;
1096
1097
  /**
1097
1098
  * Ids of schema snapshot
1098
1099
  * @format GUID
@@ -1102,6 +1103,32 @@ interface BulkGetDataCollectionsPageBySnapshotsRequest {
1102
1103
  snapshotIds?: string[];
1103
1104
  /** Pagination information. */
1104
1105
  paging?: Paging;
1106
+ /**
1107
+ * Tenant mode
1108
+ * Default: META_SITE
1109
+ */
1110
+ tenantMode?: TenantModeWithLiterals;
1111
+ }
1112
+ /** @oneof */
1113
+ interface BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf {
1114
+ appOptions?: AppOptions;
1115
+ }
1116
+ declare enum TenantMode {
1117
+ /** MetaSite */
1118
+ META_SITE = "META_SITE",
1119
+ /** Account */
1120
+ ACCOUNT = "ACCOUNT",
1121
+ /** App */
1122
+ APP = "APP"
1123
+ }
1124
+ /** @enumType */
1125
+ type TenantModeWithLiterals = TenantMode | 'META_SITE' | 'ACCOUNT' | 'APP';
1126
+ interface AppOptions {
1127
+ /**
1128
+ * App definition id
1129
+ * @format GUID
1130
+ */
1131
+ appDefId?: string;
1105
1132
  }
1106
1133
  interface BulkGetDataCollectionsPageBySnapshotsResponse {
1107
1134
  /** List of snapshot collection map */
@@ -1257,6 +1284,34 @@ interface CreateDataCollectionsSnapshotResponse {
1257
1284
  /** data collections in snapshot */
1258
1285
  snapshotCollections?: DataCollection[];
1259
1286
  }
1287
+ interface CreateAppCollectionsSnapshotRequest {
1288
+ /**
1289
+ * Snapshot ID to create
1290
+ * @format GUID
1291
+ */
1292
+ snapshotId?: string;
1293
+ /**
1294
+ * App def id of the app that owns the snapshot
1295
+ * @format GUID
1296
+ */
1297
+ appDefId?: string;
1298
+ /**
1299
+ * Collections to include in the snapshot
1300
+ * @maxSize 1000
1301
+ */
1302
+ collections?: CollectionDefinition[];
1303
+ }
1304
+ interface CollectionDefinition {
1305
+ /** Data collection */
1306
+ collection?: DataCollection;
1307
+ /**
1308
+ * Indexes for the data collection
1309
+ * @maxSize 100
1310
+ */
1311
+ indexes?: Index[];
1312
+ }
1313
+ interface CreateAppCollectionsSnapshotResponse {
1314
+ }
1260
1315
  interface RestoreDataCollectionsFromSnapshotRequest {
1261
1316
  /**
1262
1317
  * snapshot ID to restore
@@ -1663,4 +1718,4 @@ interface DeleteDataCollectionFieldOptions {
1663
1718
  fieldKey: string;
1664
1719
  }
1665
1720
 
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 };
1721
+ export { AccessLevel, type AccessLevelWithLiterals, type ActionEvent, type AllowedDataPermissions, type AppOptions, type ApplicationError, type ArraySizeRange, type BulkGetDataCollectionsPageBySnapshotsRequest, type BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf, 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,
@@ -942,6 +943,12 @@ 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
+ TenantMode2["APP"] = "APP";
950
+ return TenantMode2;
951
+ })(TenantMode || {});
945
952
  var Order = /* @__PURE__ */ ((Order2) => {
946
953
  Order2["ASC"] = "ASC";
947
954
  Order2["DESC"] = "DESC";
@@ -1245,6 +1252,7 @@ async function deleteDataCollectionField2(dataCollectionId, options) {
1245
1252
  Segment,
1246
1253
  SortOrder,
1247
1254
  Status,
1255
+ TenantMode,
1248
1256
  Type,
1249
1257
  WebhookIdentityType,
1250
1258
  createDataCollection,