@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
@@ -1123,7 +1123,8 @@ interface UpdateDataPermissionsResponse {
1123
1123
  /** Updated data collection */
1124
1124
  dataCollection?: DataCollection;
1125
1125
  }
1126
- interface BulkGetDataCollectionsPageBySnapshotsRequest {
1126
+ interface BulkGetDataCollectionsPageBySnapshotsRequest extends BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf {
1127
+ appOptions?: AppOptions;
1127
1128
  /**
1128
1129
  * Ids of schema snapshot
1129
1130
  * @format GUID
@@ -1133,6 +1134,32 @@ interface BulkGetDataCollectionsPageBySnapshotsRequest {
1133
1134
  snapshotIds?: string[];
1134
1135
  /** Pagination information. */
1135
1136
  paging?: Paging;
1137
+ /**
1138
+ * Tenant mode
1139
+ * Default: META_SITE
1140
+ */
1141
+ tenantMode?: TenantModeWithLiterals;
1142
+ }
1143
+ /** @oneof */
1144
+ interface BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf {
1145
+ appOptions?: AppOptions;
1146
+ }
1147
+ declare enum TenantMode {
1148
+ /** MetaSite */
1149
+ META_SITE = "META_SITE",
1150
+ /** Account */
1151
+ ACCOUNT = "ACCOUNT",
1152
+ /** App */
1153
+ APP = "APP"
1154
+ }
1155
+ /** @enumType */
1156
+ type TenantModeWithLiterals = TenantMode | 'META_SITE' | 'ACCOUNT' | 'APP';
1157
+ interface AppOptions {
1158
+ /**
1159
+ * App definition id
1160
+ * @format GUID
1161
+ */
1162
+ appDefId?: string;
1136
1163
  }
1137
1164
  interface BulkGetDataCollectionsPageBySnapshotsResponse {
1138
1165
  /** List of snapshot collection map */
@@ -1288,6 +1315,34 @@ interface CreateDataCollectionsSnapshotResponse {
1288
1315
  /** data collections in snapshot */
1289
1316
  snapshotCollections?: DataCollection[];
1290
1317
  }
1318
+ interface CreateAppCollectionsSnapshotRequest {
1319
+ /**
1320
+ * Snapshot ID to create
1321
+ * @format GUID
1322
+ */
1323
+ snapshotId?: string;
1324
+ /**
1325
+ * App def id of the app that owns the snapshot
1326
+ * @format GUID
1327
+ */
1328
+ appDefId?: string;
1329
+ /**
1330
+ * Collections to include in the snapshot
1331
+ * @maxSize 1000
1332
+ */
1333
+ collections?: CollectionDefinition[];
1334
+ }
1335
+ interface CollectionDefinition {
1336
+ /** Data collection */
1337
+ collection?: DataCollection;
1338
+ /**
1339
+ * Indexes for the data collection
1340
+ * @maxSize 100
1341
+ */
1342
+ indexes?: Index[];
1343
+ }
1344
+ interface CreateAppCollectionsSnapshotResponse {
1345
+ }
1291
1346
  interface RestoreDataCollectionsFromSnapshotRequest {
1292
1347
  /**
1293
1348
  * snapshot ID to restore
@@ -1717,4 +1772,4 @@ interface DeleteDataCollectionFieldOptions {
1717
1772
  fieldKey: string;
1718
1773
  }
1719
1774
 
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 };
1775
+ 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, restoreDataCollection, updateDataCollection, updateDataCollectionField };
@@ -892,6 +892,12 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
892
892
  SortOrder2["DESC"] = "DESC";
893
893
  return SortOrder2;
894
894
  })(SortOrder || {});
895
+ var TenantMode = /* @__PURE__ */ ((TenantMode2) => {
896
+ TenantMode2["META_SITE"] = "META_SITE";
897
+ TenantMode2["ACCOUNT"] = "ACCOUNT";
898
+ TenantMode2["APP"] = "APP";
899
+ return TenantMode2;
900
+ })(TenantMode || {});
895
901
  var Order = /* @__PURE__ */ ((Order2) => {
896
902
  Order2["ASC"] = "ASC";
897
903
  Order2["DESC"] = "DESC";
@@ -1194,6 +1200,7 @@ export {
1194
1200
  Segment,
1195
1201
  SortOrder,
1196
1202
  Status,
1203
+ TenantMode,
1197
1204
  Type,
1198
1205
  WebhookIdentityType,
1199
1206
  createDataCollection2 as createDataCollection,