@wix/auto_sdk_data_collections 1.0.69 → 1.0.71
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.
- package/build/cjs/index.d.ts +7 -6
- package/build/cjs/index.js +0 -8
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +22 -30
- package/build/cjs/index.typings.js +0 -8
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +12 -23
- package/build/cjs/meta.js +0 -8
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +7 -6
- package/build/es/index.mjs +0 -8
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +22 -30
- package/build/es/index.typings.mjs +0 -8
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +12 -23
- package/build/es/meta.mjs +0 -8
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +7 -6
- package/build/internal/cjs/index.js +0 -8
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +22 -30
- package/build/internal/cjs/index.typings.js +0 -8
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +12 -23
- package/build/internal/cjs/meta.js +0 -8
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +7 -6
- package/build/internal/es/index.mjs +0 -8
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +22 -30
- package/build/internal/es/index.typings.mjs +0 -8
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +12 -23
- package/build/internal/es/meta.mjs +0 -8
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -85,11 +85,13 @@ interface PatchDataCollectionSignature {
|
|
|
85
85
|
* Updates specified properties of a data collection.
|
|
86
86
|
*
|
|
87
87
|
* Only updates the properties specified in the request, all other properties remain unchanged.
|
|
88
|
-
* The following properties can be updated with this method: `displayName`, `displayField`, `permissions
|
|
88
|
+
* The following properties can be updated with this method: `displayName`, `displayField`, and `permissions`.
|
|
89
|
+
* Attempting to update unsupported properties causes this operation to fail.
|
|
89
90
|
*
|
|
90
|
-
* To update properties in a collection's `fields`array, use [Patch Data Collection Field](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/patch-data-collection-field).
|
|
91
|
+
* To update properties in a collection's `fields` array, use [Patch Data Collection Field](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/patch-data-collection-field).
|
|
91
92
|
* To add or remove `plugins`, use [Add Data Collection Plugin](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/add-data-collection-plugin) or [Delete Data Collection Plugin](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/delete-data-collection-plugin).
|
|
92
|
-
* @param - Collection ID. For example, `my-first-collection`.
|
|
93
|
+
* @param - [Collection ID](https://dev.wix.com/docs/develop-websites-sdk/code-your-site/work-with-data/introduction/about-collections#collection-ids). For example, `my-first-collection`.
|
|
94
|
+
* For [app collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/wix-app-collections/introduction), use `AppName/CollectionName`.
|
|
93
95
|
*/
|
|
94
96
|
(_id: string, dataCollection: PatchDataCollection): Promise<NonNullablePaths<PatchDataCollectionResponse, `dataCollection._id` | `dataCollection.collectionType` | `dataCollection.defaultDisplayOrder.fieldKey` | `dataCollection.defaultDisplayOrder.direction` | `dataCollection.capabilities.dataOperations` | `dataCollection.capabilities.collectionOperations` | `dataCollection.capabilities.indexLimits.regular` | `dataCollection.capabilities.indexLimits.unique` | `dataCollection.capabilities.indexLimits.total` | `dataCollection.fields` | `dataCollection.fields.${number}.key` | `dataCollection.fields.${number}.type` | `dataCollection.fields.${number}.typeMetadata.reference.referencedCollectionId` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencedCollectionId` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencingFieldKey` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencingDisplayName` | `dataCollection.fields.${number}.typeMetadata.array.elementType` | `dataCollection.fields.${number}.systemField` | `dataCollection.fields.${number}.capabilities.sortable` | `dataCollection.fields.${number}.encrypted` | `dataCollection.fields.${number}.condition.permission` | `dataCollection.permissions.insert` | `dataCollection.permissions.update` | `dataCollection.permissions.remove` | `dataCollection.permissions.read` | `dataCollection.plugins` | `dataCollection.plugins.${number}.publishOptions.defaultStatus` | `dataCollection.plugins.${number}.singleItemOptions.singleItemId` | `dataCollection.plugins.${number}.urlizedOptions.format` | `dataCollection.plugins.${number}.editablePageLinkOptions.isPersisted` | `dataCollection.plugins.${number}.editablePageLinkOptions.isMutable` | `dataCollection.plugins.${number}.type` | `dataCollection.pagingModes`, 7>>;
|
|
95
97
|
}
|
|
@@ -152,10 +154,9 @@ interface DeleteDataCollectionPluginSignature {
|
|
|
152
154
|
declare function patchDataCollectionField$1(httpClient: HttpClient): PatchDataCollectionFieldSignature;
|
|
153
155
|
interface PatchDataCollectionFieldSignature {
|
|
154
156
|
/**
|
|
155
|
-
* Updates specified properties
|
|
157
|
+
* Updates specified properties in a [data collection's](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/create-data-collection) `fields` array.
|
|
156
158
|
*
|
|
157
|
-
*
|
|
158
|
-
* The following properties can be updated with this method: `displayName`, `type`, `typeMetadata`, `encrypted`, `description`. If attempting to update `key` or other unsupported properties, this operation fails.
|
|
159
|
+
* When you change a field's type, existing values aren't migrated. Use [Bulk Update Data Items](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/bulk-update-data-items) or [Bulk Patch Data Items](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/bulk-patch-data-items) to update item values to match the new type.
|
|
159
160
|
*
|
|
160
161
|
* To update properties in a data collection other than `fields`, use [Patch Data Collection](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/patch-data-collection).
|
|
161
162
|
* @param - ID of the data collection to update.
|
package/build/cjs/index.js
CHANGED
|
@@ -1311,7 +1311,6 @@ var CollectionOperation = /* @__PURE__ */ ((CollectionOperation2) => {
|
|
|
1311
1311
|
return CollectionOperation2;
|
|
1312
1312
|
})(CollectionOperation || {});
|
|
1313
1313
|
var Type = /* @__PURE__ */ ((Type2) => {
|
|
1314
|
-
Type2["UNKNOWN_FIELD_TYPE"] = "UNKNOWN_FIELD_TYPE";
|
|
1315
1314
|
Type2["TEXT"] = "TEXT";
|
|
1316
1315
|
Type2["NUMBER"] = "NUMBER";
|
|
1317
1316
|
Type2["DATE"] = "DATE";
|
|
@@ -1362,7 +1361,6 @@ var QueryOperator = /* @__PURE__ */ ((QueryOperator2) => {
|
|
|
1362
1361
|
return QueryOperator2;
|
|
1363
1362
|
})(QueryOperator || {});
|
|
1364
1363
|
var PageLinkType = /* @__PURE__ */ ((PageLinkType2) => {
|
|
1365
|
-
PageLinkType2["UNKNOWN_PAGE_LINK_TYPE"] = "UNKNOWN_PAGE_LINK_TYPE";
|
|
1366
1364
|
PageLinkType2["COLLECTION_DEFINED"] = "COLLECTION_DEFINED";
|
|
1367
1365
|
PageLinkType2["ROUTER_DEFINED"] = "ROUTER_DEFINED";
|
|
1368
1366
|
return PageLinkType2;
|
|
@@ -1378,7 +1376,6 @@ var Permission = /* @__PURE__ */ ((Permission2) => {
|
|
|
1378
1376
|
return Permission2;
|
|
1379
1377
|
})(Permission || {});
|
|
1380
1378
|
var Role = /* @__PURE__ */ ((Role2) => {
|
|
1381
|
-
Role2["UNKNOWN_ROLE"] = "UNKNOWN_ROLE";
|
|
1382
1379
|
Role2["ADMIN"] = "ADMIN";
|
|
1383
1380
|
Role2["SITE_MEMBER_AUTHOR"] = "SITE_MEMBER_AUTHOR";
|
|
1384
1381
|
Role2["SITE_MEMBER"] = "SITE_MEMBER";
|
|
@@ -1386,19 +1383,16 @@ var Role = /* @__PURE__ */ ((Role2) => {
|
|
|
1386
1383
|
return Role2;
|
|
1387
1384
|
})(Role || {});
|
|
1388
1385
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
1389
|
-
Status2["UNKNOWN_PUBLISH_PLUGIN_STATUS"] = "UNKNOWN_PUBLISH_PLUGIN_STATUS";
|
|
1390
1386
|
Status2["PUBLISHED"] = "PUBLISHED";
|
|
1391
1387
|
Status2["DRAFT"] = "DRAFT";
|
|
1392
1388
|
return Status2;
|
|
1393
1389
|
})(Status || {});
|
|
1394
1390
|
var Format = /* @__PURE__ */ ((Format2) => {
|
|
1395
|
-
Format2["UNKNOWN_URLIZED_PLUGIN_FORMAT"] = "UNKNOWN_URLIZED_PLUGIN_FORMAT";
|
|
1396
1391
|
Format2["ORIGINAL"] = "ORIGINAL";
|
|
1397
1392
|
Format2["PLAIN"] = "PLAIN";
|
|
1398
1393
|
return Format2;
|
|
1399
1394
|
})(Format || {});
|
|
1400
1395
|
var PluginType = /* @__PURE__ */ ((PluginType2) => {
|
|
1401
|
-
PluginType2["UNKNOWN_PLUGIN_TYPE"] = "UNKNOWN_PLUGIN_TYPE";
|
|
1402
1396
|
PluginType2["PUBLISH"] = "PUBLISH";
|
|
1403
1397
|
PluginType2["SINGLE_ITEM"] = "SINGLE_ITEM";
|
|
1404
1398
|
PluginType2["URLIZED"] = "URLIZED";
|
|
@@ -1415,7 +1409,6 @@ var PagingMode = /* @__PURE__ */ ((PagingMode2) => {
|
|
|
1415
1409
|
return PagingMode2;
|
|
1416
1410
|
})(PagingMode || {});
|
|
1417
1411
|
var AccessLevel = /* @__PURE__ */ ((AccessLevel2) => {
|
|
1418
|
-
AccessLevel2["UNDEFINED"] = "UNDEFINED";
|
|
1419
1412
|
AccessLevel2["ANYONE"] = "ANYONE";
|
|
1420
1413
|
AccessLevel2["SITE_MEMBER"] = "SITE_MEMBER";
|
|
1421
1414
|
AccessLevel2["SITE_MEMBER_AUTHOR"] = "SITE_MEMBER_AUTHOR";
|
|
@@ -1456,7 +1449,6 @@ var IndexStatus = /* @__PURE__ */ ((IndexStatus2) => {
|
|
|
1456
1449
|
return IndexStatus2;
|
|
1457
1450
|
})(IndexStatus || {});
|
|
1458
1451
|
var IndexSource = /* @__PURE__ */ ((IndexSource2) => {
|
|
1459
|
-
IndexSource2["UNKNOWN_INDEX_SOURCE"] = "UNKNOWN_INDEX_SOURCE";
|
|
1460
1452
|
IndexSource2["SYSTEM"] = "SYSTEM";
|
|
1461
1453
|
IndexSource2["USER"] = "USER";
|
|
1462
1454
|
IndexSource2["AUTO"] = "AUTO";
|