@wix/auto_sdk_data_collections 1.0.42 → 1.0.44
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 +21 -3
- package/build/cjs/index.js +150 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +62 -1
- package/build/cjs/index.typings.js +132 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +30 -2
- package/build/cjs/meta.js +110 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +21 -3
- package/build/es/index.mjs +148 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +62 -1
- package/build/es/index.typings.mjs +130 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +30 -2
- package/build/es/meta.mjs +108 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +21 -3
- package/build/internal/cjs/index.js +150 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +62 -1
- package/build/internal/cjs/index.typings.js +132 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +30 -2
- package/build/internal/cjs/meta.js +110 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +21 -3
- package/build/internal/es/index.mjs +148 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +62 -1
- package/build/internal/es/index.typings.mjs +130 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +30 -2
- package/build/internal/es/meta.mjs +108 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { DataCollection, GetDataCollectionOptions, ListDataCollectionsOptions, ListDataCollectionsResponse, CreateDataCollectionFieldOptions, CreateDataCollectionFieldResponse, UpdateDataCollectionFieldOptions, UpdateDataCollectionFieldResponse, DeleteDataCollectionFieldOptions, DeleteDataCollectionFieldResponse, PatchDataCollectionFieldIdentifiers, PatchDataCollectionField, PatchDataCollectionFieldResponse } from './index.typings.js';
|
|
3
|
-
export { AccessLevel, AccessLevelWithLiterals, ActionEvent, AllowedDataPermissions, AppOptions, ApplicationError, ArraySizeRange, BulkGetDataCollectionsPageBySnapshotsRequest, BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf, BulkGetDataCollectionsPageBySnapshotsResponse, BulkGetDataCollectionsRequest, BulkGetDataCollectionsResponse, Calculator, CalculatorPatternOneOf, CatalogOptions, CmsOptions, CollectionCapabilities, CollectionDefinition, CollectionOperation, CollectionOperationWithLiterals, CollectionType, CollectionTypeWithLiterals, CreateAppCollectionsSnapshotRequest, CreateAppCollectionsSnapshotResponse, CreateDataCollectionFieldRequest, CreateDataCollectionRequest, CreateDataCollectionResponse, CreateDataCollectionsSnapshotRequest, CreateDataCollectionsSnapshotResponse, CreateMigratedCollectionsSnapshotRequest, CreateMigratedCollectionsSnapshotResponse, DataCollectionChangedEvent, DataCollectionClonedEvent, DataCollectionEvictedEvent, DataOperation, DataOperationWithLiterals, DataPermissions, DeleteDataCollectionFieldRequest, DeleteDataCollectionRequest, DeleteDataCollectionResponse, DeleteDataCollectionsSnapshotRequest, DeleteDataCollectionsSnapshotResponse, Destination, Direction, DirectionWithLiterals, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, FailedCollection, Failure, Field, FieldCapabilities, FieldPlugin, FieldPluginOptionsOneOf, FieldPluginType, FieldPluginTypeWithLiterals, FieldRangeValidationsOneOf, FieldUpdate, FieldsPattern, Format, FormatWithLiterals, GetDataCollectionRequest, GetDataCollectionResponse, IdentificationData, IdentificationDataIdOneOf, Index, IndexField, IndexLimits, IndexQuotaLimits, IndexSource, IndexSourceWithLiterals, IndexStatus, IndexStatusWithLiterals, ListDataCollectionsRequest, MessageEnvelope, MultiReference, MultilingualOptions, NumberRange, ObjectField, Order, OrderWithLiterals, PageLink, PageLinkPluginOptions, Paging, PagingMetadataV2, PagingMode, PagingModeWithLiterals, PatchDataCollection, PatchDataCollectionFieldRequest, PatchDataCollectionRequest, PatchDataCollectionResponse, Permissions, Plugin, PluginCmsOptions, PluginOptionsOneOf, PluginType, PluginTypeWithLiterals, PluginUpdate, PublishPluginOptions, QueryOperator, QueryOperatorWithLiterals, Reference, RestorationCollection, RestoreDataCollectionRequest, RestoreDataCollectionResponse, RestoreDataCollectionsFromSnapshotRequest, RestoreDataCollectionsFromSnapshotResponse, RestoreInfo, Role, RoleWithLiterals, Segment, SegmentWithLiterals, SingleItemPluginOptions, SiteSort, Slug, SnapshotCollection, Sort, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusWithLiterals, StringLengthRange, TenantMode, TenantModeWithLiterals, Type, TypeMetadata, TypeMetadataMetadataOneOf, TypeWithLiterals, UpdateDataCollectionFieldRequest, UpdateDataCollectionRequest, UpdateDataCollectionResponse, UpdateDataPermissionsRequest, UpdateDataPermissionsResponse, UrlizedOnlyPattern, UrlizedPluginOptions, WebhookIdentityType, WebhookIdentityTypeWithLiterals, _Array, _Object } from './index.typings.js';
|
|
2
|
+
import { DataCollection, GetDataCollectionOptions, ListDataCollectionsOptions, ListDataCollectionsResponse, CreateDataCollectionFieldOptions, CreateDataCollectionFieldResponse, UpdateDataCollectionFieldOptions, UpdateDataCollectionFieldResponse, DeleteDataCollectionFieldOptions, DeleteDataCollectionFieldResponse, AddDataCollectionPluginOptions, AddDataCollectionPluginResponse, DeleteDataCollectionPluginOptions, DeleteDataCollectionPluginResponse, PatchDataCollectionFieldIdentifiers, PatchDataCollectionField, PatchDataCollectionFieldResponse } from './index.typings.js';
|
|
3
|
+
export { AccessLevel, AccessLevelWithLiterals, ActionEvent, AddDataCollectionPluginRequest, AllowedDataPermissions, AppOptions, ApplicationError, ArraySizeRange, BulkGetDataCollectionsPageBySnapshotsRequest, BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf, BulkGetDataCollectionsPageBySnapshotsResponse, BulkGetDataCollectionsRequest, BulkGetDataCollectionsResponse, Calculator, CalculatorPatternOneOf, CatalogOptions, CmsOptions, CollectionCapabilities, CollectionDefinition, CollectionOperation, CollectionOperationWithLiterals, CollectionType, CollectionTypeWithLiterals, CreateAppCollectionsSnapshotRequest, CreateAppCollectionsSnapshotResponse, CreateDataCollectionFieldRequest, CreateDataCollectionRequest, CreateDataCollectionResponse, CreateDataCollectionsSnapshotRequest, CreateDataCollectionsSnapshotResponse, CreateMigratedCollectionsSnapshotRequest, CreateMigratedCollectionsSnapshotResponse, DataCollectionChangedEvent, DataCollectionClonedEvent, DataCollectionEvictedEvent, DataOperation, DataOperationWithLiterals, DataPermissions, DeleteDataCollectionFieldRequest, DeleteDataCollectionPluginRequest, DeleteDataCollectionRequest, DeleteDataCollectionResponse, DeleteDataCollectionsSnapshotRequest, DeleteDataCollectionsSnapshotResponse, Destination, Direction, DirectionWithLiterals, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, FailedCollection, Failure, Field, FieldCapabilities, FieldPlugin, FieldPluginOptionsOneOf, FieldPluginType, FieldPluginTypeWithLiterals, FieldRangeValidationsOneOf, FieldUpdate, FieldsPattern, Format, FormatWithLiterals, GetDataCollectionRequest, GetDataCollectionResponse, IdentificationData, IdentificationDataIdOneOf, Index, IndexField, IndexLimits, IndexQuotaLimits, IndexSource, IndexSourceWithLiterals, IndexStatus, IndexStatusWithLiterals, ListDataCollectionsRequest, MessageEnvelope, MultiReference, MultilingualOptions, NumberRange, ObjectField, Order, OrderWithLiterals, PageLink, PageLinkPluginOptions, Paging, PagingMetadataV2, PagingMode, PagingModeWithLiterals, PatchDataCollection, PatchDataCollectionFieldRequest, PatchDataCollectionRequest, PatchDataCollectionResponse, Permissions, Plugin, PluginCmsOptions, PluginOptionsOneOf, PluginType, PluginTypeWithLiterals, PluginUpdate, PublishPluginOptions, QueryOperator, QueryOperatorWithLiterals, Reference, RestorationCollection, RestoreDataCollectionRequest, RestoreDataCollectionResponse, RestoreDataCollectionsFromSnapshotRequest, RestoreDataCollectionsFromSnapshotResponse, RestoreInfo, Role, RoleWithLiterals, Segment, SegmentWithLiterals, SingleItemPluginOptions, SiteSort, Slug, SnapshotCollection, Sort, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusWithLiterals, StringLengthRange, TenantMode, TenantModeWithLiterals, Type, TypeMetadata, TypeMetadataMetadataOneOf, TypeWithLiterals, UpdateDataCollectionFieldRequest, UpdateDataCollectionRequest, UpdateDataCollectionResponse, UpdateDataPermissionsRequest, UpdateDataPermissionsResponse, UrlizedOnlyPattern, UrlizedPluginOptions, WebhookIdentityType, WebhookIdentityTypeWithLiterals, _Array, _Object } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createDataCollection$1(httpClient: HttpClient): CreateDataCollectionSignature;
|
|
6
6
|
interface CreateDataCollectionSignature {
|
|
@@ -101,6 +101,22 @@ interface DeleteDataCollectionFieldSignature {
|
|
|
101
101
|
*/
|
|
102
102
|
(dataCollectionId: string, options: NonNullablePaths<DeleteDataCollectionFieldOptions, `fieldKey`, 2>): Promise<NonNullablePaths<DeleteDataCollectionFieldResponse, `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.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>>;
|
|
103
103
|
}
|
|
104
|
+
declare function addDataCollectionPlugin$1(httpClient: HttpClient): AddDataCollectionPluginSignature;
|
|
105
|
+
interface AddDataCollectionPluginSignature {
|
|
106
|
+
/**
|
|
107
|
+
* Adds a plugin to a data collection.
|
|
108
|
+
* @param - ID of the data collection to update.
|
|
109
|
+
*/
|
|
110
|
+
(dataCollectionId: string, options: NonNullablePaths<AddDataCollectionPluginOptions, `plugin` | `plugin.type`, 3>): Promise<NonNullablePaths<AddDataCollectionPluginResponse, `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.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>>;
|
|
111
|
+
}
|
|
112
|
+
declare function deleteDataCollectionPlugin$1(httpClient: HttpClient): DeleteDataCollectionPluginSignature;
|
|
113
|
+
interface DeleteDataCollectionPluginSignature {
|
|
114
|
+
/**
|
|
115
|
+
* Deletes a plugin from a data collection.
|
|
116
|
+
* @param - ID of the data collection to update.
|
|
117
|
+
*/
|
|
118
|
+
(dataCollectionId: string, options: NonNullablePaths<DeleteDataCollectionPluginOptions, `pluginType`, 2>): Promise<NonNullablePaths<DeleteDataCollectionPluginResponse, `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.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>>;
|
|
119
|
+
}
|
|
104
120
|
declare function patchDataCollectionField$1(httpClient: HttpClient): PatchDataCollectionFieldSignature;
|
|
105
121
|
interface PatchDataCollectionFieldSignature {
|
|
106
122
|
/**
|
|
@@ -117,6 +133,8 @@ declare const deleteDataCollection: MaybeContext<BuildRESTFunction<typeof delete
|
|
|
117
133
|
declare const createDataCollectionField: MaybeContext<BuildRESTFunction<typeof createDataCollectionField$1> & typeof createDataCollectionField$1>;
|
|
118
134
|
declare const updateDataCollectionField: MaybeContext<BuildRESTFunction<typeof updateDataCollectionField$1> & typeof updateDataCollectionField$1>;
|
|
119
135
|
declare const deleteDataCollectionField: MaybeContext<BuildRESTFunction<typeof deleteDataCollectionField$1> & typeof deleteDataCollectionField$1>;
|
|
136
|
+
declare const addDataCollectionPlugin: MaybeContext<BuildRESTFunction<typeof addDataCollectionPlugin$1> & typeof addDataCollectionPlugin$1>;
|
|
137
|
+
declare const deleteDataCollectionPlugin: MaybeContext<BuildRESTFunction<typeof deleteDataCollectionPlugin$1> & typeof deleteDataCollectionPlugin$1>;
|
|
120
138
|
declare const patchDataCollectionField: MaybeContext<BuildRESTFunction<typeof patchDataCollectionField$1> & typeof patchDataCollectionField$1>;
|
|
121
139
|
|
|
122
|
-
export { CreateDataCollectionFieldOptions, CreateDataCollectionFieldResponse, DataCollection, DeleteDataCollectionFieldOptions, DeleteDataCollectionFieldResponse, GetDataCollectionOptions, ListDataCollectionsOptions, ListDataCollectionsResponse, PatchDataCollectionField, PatchDataCollectionFieldIdentifiers, PatchDataCollectionFieldResponse, UpdateDataCollectionFieldOptions, UpdateDataCollectionFieldResponse, createDataCollection, createDataCollectionField, deleteDataCollection, deleteDataCollectionField, getDataCollection, listDataCollections, patchDataCollectionField, updateDataCollection, updateDataCollectionField };
|
|
140
|
+
export { AddDataCollectionPluginOptions, AddDataCollectionPluginResponse, CreateDataCollectionFieldOptions, CreateDataCollectionFieldResponse, DataCollection, DeleteDataCollectionFieldOptions, DeleteDataCollectionFieldResponse, DeleteDataCollectionPluginOptions, DeleteDataCollectionPluginResponse, GetDataCollectionOptions, ListDataCollectionsOptions, ListDataCollectionsResponse, PatchDataCollectionField, PatchDataCollectionFieldIdentifiers, PatchDataCollectionFieldResponse, UpdateDataCollectionFieldOptions, UpdateDataCollectionFieldResponse, addDataCollectionPlugin, createDataCollection, createDataCollectionField, deleteDataCollection, deleteDataCollectionField, deleteDataCollectionPlugin, getDataCollection, listDataCollections, patchDataCollectionField, updateDataCollection, updateDataCollectionField };
|
package/build/cjs/index.js
CHANGED
|
@@ -40,10 +40,12 @@ __export(index_exports, {
|
|
|
40
40
|
TenantMode: () => TenantMode,
|
|
41
41
|
Type: () => Type,
|
|
42
42
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
43
|
+
addDataCollectionPlugin: () => addDataCollectionPlugin4,
|
|
43
44
|
createDataCollection: () => createDataCollection4,
|
|
44
45
|
createDataCollectionField: () => createDataCollectionField4,
|
|
45
46
|
deleteDataCollection: () => deleteDataCollection4,
|
|
46
47
|
deleteDataCollectionField: () => deleteDataCollectionField4,
|
|
48
|
+
deleteDataCollectionPlugin: () => deleteDataCollectionPlugin4,
|
|
47
49
|
getDataCollection: () => getDataCollection4,
|
|
48
50
|
listDataCollections: () => listDataCollections4,
|
|
49
51
|
patchDataCollection: () => patchDataCollection4,
|
|
@@ -849,6 +851,76 @@ function deleteDataCollectionField(payload) {
|
|
|
849
851
|
}
|
|
850
852
|
return __deleteDataCollectionField;
|
|
851
853
|
}
|
|
854
|
+
function addDataCollectionPlugin(payload) {
|
|
855
|
+
function __addDataCollectionPlugin({ host }) {
|
|
856
|
+
const metadata = {
|
|
857
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
858
|
+
method: "POST",
|
|
859
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddDataCollectionPlugin",
|
|
860
|
+
packageName: PACKAGE_NAME,
|
|
861
|
+
migrationOptions: {
|
|
862
|
+
optInTransformResponse: true
|
|
863
|
+
},
|
|
864
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
865
|
+
{ protoPath: "/v2/collections/add-plugin", data: payload, host }
|
|
866
|
+
),
|
|
867
|
+
data: payload,
|
|
868
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
869
|
+
{
|
|
870
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
871
|
+
paths: [
|
|
872
|
+
{ path: "dataCollection.createdDate" },
|
|
873
|
+
{ path: "dataCollection.updatedDate" }
|
|
874
|
+
]
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
878
|
+
paths: [
|
|
879
|
+
{ path: "dataCollection.fields.numberRange.min" },
|
|
880
|
+
{ path: "dataCollection.fields.numberRange.max" }
|
|
881
|
+
]
|
|
882
|
+
}
|
|
883
|
+
])
|
|
884
|
+
};
|
|
885
|
+
return metadata;
|
|
886
|
+
}
|
|
887
|
+
return __addDataCollectionPlugin;
|
|
888
|
+
}
|
|
889
|
+
function deleteDataCollectionPlugin(payload) {
|
|
890
|
+
function __deleteDataCollectionPlugin({ host }) {
|
|
891
|
+
const metadata = {
|
|
892
|
+
entityFqdn: "wix.data.v2.data_collection",
|
|
893
|
+
method: "POST",
|
|
894
|
+
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollectionPlugin",
|
|
895
|
+
packageName: PACKAGE_NAME,
|
|
896
|
+
migrationOptions: {
|
|
897
|
+
optInTransformResponse: true
|
|
898
|
+
},
|
|
899
|
+
url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
|
|
900
|
+
{ protoPath: "/v2/collections/delete-plugin", data: payload, host }
|
|
901
|
+
),
|
|
902
|
+
data: payload,
|
|
903
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
904
|
+
{
|
|
905
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
906
|
+
paths: [
|
|
907
|
+
{ path: "dataCollection.createdDate" },
|
|
908
|
+
{ path: "dataCollection.updatedDate" }
|
|
909
|
+
]
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
913
|
+
paths: [
|
|
914
|
+
{ path: "dataCollection.fields.numberRange.min" },
|
|
915
|
+
{ path: "dataCollection.fields.numberRange.max" }
|
|
916
|
+
]
|
|
917
|
+
}
|
|
918
|
+
])
|
|
919
|
+
};
|
|
920
|
+
return metadata;
|
|
921
|
+
}
|
|
922
|
+
return __deleteDataCollectionPlugin;
|
|
923
|
+
}
|
|
852
924
|
function patchDataCollectionField(payload) {
|
|
853
925
|
function __patchDataCollectionField({ host }) {
|
|
854
926
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -1372,6 +1444,64 @@ async function deleteDataCollectionField2(dataCollectionId, options) {
|
|
|
1372
1444
|
throw transformedError;
|
|
1373
1445
|
}
|
|
1374
1446
|
}
|
|
1447
|
+
async function addDataCollectionPlugin2(dataCollectionId, options) {
|
|
1448
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1449
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1450
|
+
dataCollectionId,
|
|
1451
|
+
plugin: options?.plugin
|
|
1452
|
+
});
|
|
1453
|
+
const reqOpts = addDataCollectionPlugin(payload);
|
|
1454
|
+
sideEffects?.onSiteCall?.();
|
|
1455
|
+
try {
|
|
1456
|
+
const result = await httpClient.request(reqOpts);
|
|
1457
|
+
sideEffects?.onSuccess?.(result);
|
|
1458
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1459
|
+
} catch (err) {
|
|
1460
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1461
|
+
err,
|
|
1462
|
+
{
|
|
1463
|
+
spreadPathsToArguments: {},
|
|
1464
|
+
explicitPathsToArguments: {
|
|
1465
|
+
dataCollectionId: "$[0]",
|
|
1466
|
+
plugin: "$[1].plugin"
|
|
1467
|
+
},
|
|
1468
|
+
singleArgumentUnchanged: false
|
|
1469
|
+
},
|
|
1470
|
+
["dataCollectionId", "options"]
|
|
1471
|
+
);
|
|
1472
|
+
sideEffects?.onError?.(err);
|
|
1473
|
+
throw transformedError;
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
async function deleteDataCollectionPlugin2(dataCollectionId, options) {
|
|
1477
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1478
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1479
|
+
dataCollectionId,
|
|
1480
|
+
pluginType: options?.pluginType
|
|
1481
|
+
});
|
|
1482
|
+
const reqOpts = deleteDataCollectionPlugin(payload);
|
|
1483
|
+
sideEffects?.onSiteCall?.();
|
|
1484
|
+
try {
|
|
1485
|
+
const result = await httpClient.request(reqOpts);
|
|
1486
|
+
sideEffects?.onSuccess?.(result);
|
|
1487
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1488
|
+
} catch (err) {
|
|
1489
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1490
|
+
err,
|
|
1491
|
+
{
|
|
1492
|
+
spreadPathsToArguments: {},
|
|
1493
|
+
explicitPathsToArguments: {
|
|
1494
|
+
dataCollectionId: "$[0]",
|
|
1495
|
+
pluginType: "$[1].pluginType"
|
|
1496
|
+
},
|
|
1497
|
+
singleArgumentUnchanged: false
|
|
1498
|
+
},
|
|
1499
|
+
["dataCollectionId", "options"]
|
|
1500
|
+
);
|
|
1501
|
+
sideEffects?.onError?.(err);
|
|
1502
|
+
throw transformedError;
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1375
1505
|
async function patchDataCollectionField2(identifiers, field) {
|
|
1376
1506
|
const { httpClient, sideEffects } = arguments[2];
|
|
1377
1507
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1478,6 +1608,22 @@ function deleteDataCollectionField3(httpClient) {
|
|
|
1478
1608
|
{ httpClient }
|
|
1479
1609
|
);
|
|
1480
1610
|
}
|
|
1611
|
+
function addDataCollectionPlugin3(httpClient) {
|
|
1612
|
+
return (dataCollectionId, options) => addDataCollectionPlugin2(
|
|
1613
|
+
dataCollectionId,
|
|
1614
|
+
options,
|
|
1615
|
+
// @ts-ignore
|
|
1616
|
+
{ httpClient }
|
|
1617
|
+
);
|
|
1618
|
+
}
|
|
1619
|
+
function deleteDataCollectionPlugin3(httpClient) {
|
|
1620
|
+
return (dataCollectionId, options) => deleteDataCollectionPlugin2(
|
|
1621
|
+
dataCollectionId,
|
|
1622
|
+
options,
|
|
1623
|
+
// @ts-ignore
|
|
1624
|
+
{ httpClient }
|
|
1625
|
+
);
|
|
1626
|
+
}
|
|
1481
1627
|
function patchDataCollectionField3(httpClient) {
|
|
1482
1628
|
return (identifiers, field) => patchDataCollectionField2(
|
|
1483
1629
|
identifiers,
|
|
@@ -1499,6 +1645,8 @@ var patchDataCollection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTMo
|
|
|
1499
1645
|
var createDataCollectionField4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createDataCollectionField3);
|
|
1500
1646
|
var updateDataCollectionField4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateDataCollectionField3);
|
|
1501
1647
|
var deleteDataCollectionField4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteDataCollectionField3);
|
|
1648
|
+
var addDataCollectionPlugin4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(addDataCollectionPlugin3);
|
|
1649
|
+
var deleteDataCollectionPlugin4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteDataCollectionPlugin3);
|
|
1502
1650
|
var patchDataCollectionField4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(patchDataCollectionField3);
|
|
1503
1651
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1504
1652
|
0 && (module.exports = {
|
|
@@ -1522,10 +1670,12 @@ var patchDataCollectionField4 = /* @__PURE__ */ (0, import_rest_modules3.createR
|
|
|
1522
1670
|
TenantMode,
|
|
1523
1671
|
Type,
|
|
1524
1672
|
WebhookIdentityType,
|
|
1673
|
+
addDataCollectionPlugin,
|
|
1525
1674
|
createDataCollection,
|
|
1526
1675
|
createDataCollectionField,
|
|
1527
1676
|
deleteDataCollection,
|
|
1528
1677
|
deleteDataCollectionField,
|
|
1678
|
+
deleteDataCollectionPlugin,
|
|
1529
1679
|
getDataCollection,
|
|
1530
1680
|
listDataCollections,
|
|
1531
1681
|
patchDataCollection,
|