@wix/data 1.0.81 → 1.0.82

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 (32) hide show
  1. package/build/cjs/context.d.ts +4 -0
  2. package/build/cjs/context.js +31 -0
  3. package/build/cjs/context.js.map +1 -0
  4. package/build/cjs/src/data-v1-external-database-connection.context.d.ts +7 -0
  5. package/build/cjs/src/data-v1-external-database-connection.context.js +60 -0
  6. package/build/cjs/src/data-v1-external-database-connection.context.js.map +1 -0
  7. package/build/cjs/src/data-v2-data-collection.context.d.ts +7 -0
  8. package/build/cjs/src/data-v2-data-collection.context.js +60 -0
  9. package/build/cjs/src/data-v2-data-collection.context.js.map +1 -0
  10. package/build/cjs/src/data-v2-data-item.context.d.ts +23 -0
  11. package/build/cjs/src/data-v2-data-item.context.js +236 -0
  12. package/build/cjs/src/data-v2-data-item.context.js.map +1 -0
  13. package/build/cjs/src/data-v2-index.context.d.ts +5 -0
  14. package/build/cjs/src/data-v2-index.context.js +38 -0
  15. package/build/cjs/src/data-v2-index.context.js.map +1 -0
  16. package/build/es/context.d.ts +4 -0
  17. package/build/es/context.js +5 -0
  18. package/build/es/context.js.map +1 -0
  19. package/build/es/src/data-v1-external-database-connection.context.d.ts +7 -0
  20. package/build/es/src/data-v1-external-database-connection.context.js +52 -0
  21. package/build/es/src/data-v1-external-database-connection.context.js.map +1 -0
  22. package/build/es/src/data-v2-data-collection.context.d.ts +7 -0
  23. package/build/es/src/data-v2-data-collection.context.js +52 -0
  24. package/build/es/src/data-v2-data-collection.context.js.map +1 -0
  25. package/build/es/src/data-v2-data-item.context.d.ts +23 -0
  26. package/build/es/src/data-v2-data-item.context.js +212 -0
  27. package/build/es/src/data-v2-data-item.context.js.map +1 -0
  28. package/build/es/src/data-v2-index.context.d.ts +5 -0
  29. package/build/es/src/data-v2-index.context.js +32 -0
  30. package/build/es/src/data-v2-index.context.js.map +1 -0
  31. package/context/package.json +6 -0
  32. package/package.json +6 -4
@@ -0,0 +1,4 @@
1
+ export * as externalDatabaseConnections from './src/data-v1-external-database-connection.context';
2
+ export * as collections from './src/data-v2-data-collection.context';
3
+ export * as items from './src/data-v2-data-item.context';
4
+ export * as indexes from './src/data-v2-index.context';
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.indexes = exports.items = exports.collections = exports.externalDatabaseConnections = void 0;
27
+ exports.externalDatabaseConnections = __importStar(require("./src/data-v1-external-database-connection.context"));
28
+ exports.collections = __importStar(require("./src/data-v2-data-collection.context"));
29
+ exports.items = __importStar(require("./src/data-v2-data-item.context"));
30
+ exports.indexes = __importStar(require("./src/data-v2-index.context"));
31
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kHAAkG;AAClG,qFAAqE;AACrE,yEAAyD;AACzD,uEAAuD"}
@@ -0,0 +1,7 @@
1
+ import { getExternalDatabaseConnection as publicGetExternalDatabaseConnection, listExternalDatabaseConnections as publicListExternalDatabaseConnections, createExternalDatabaseConnection as publicCreateExternalDatabaseConnection, updateExternalDatabaseConnection as publicUpdateExternalDatabaseConnection, deleteExternalDatabaseConnection as publicDeleteExternalDatabaseConnection } from './data-v1-external-database-connection.public';
2
+ import { BuildRESTFunction } from '@wix/sdk-types';
3
+ export declare const getExternalDatabaseConnection: BuildRESTFunction<typeof publicGetExternalDatabaseConnection>;
4
+ export declare const listExternalDatabaseConnections: BuildRESTFunction<typeof publicListExternalDatabaseConnections>;
5
+ export declare const createExternalDatabaseConnection: BuildRESTFunction<typeof publicCreateExternalDatabaseConnection>;
6
+ export declare const updateExternalDatabaseConnection: BuildRESTFunction<typeof publicUpdateExternalDatabaseConnection>;
7
+ export declare const deleteExternalDatabaseConnection: BuildRESTFunction<typeof publicDeleteExternalDatabaseConnection>;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteExternalDatabaseConnection = exports.updateExternalDatabaseConnection = exports.createExternalDatabaseConnection = exports.listExternalDatabaseConnections = exports.getExternalDatabaseConnection = void 0;
4
+ const data_v1_external_database_connection_public_1 = require("./data-v1-external-database-connection.public");
5
+ const getExternalDatabaseConnection = (...args) => {
6
+ // @ts-expect-error
7
+ if (!globalThis.__wix_context__) {
8
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
9
+ }
10
+ // @ts-expect-error
11
+ return globalThis.__wix_context__
12
+ .initWixModules(data_v1_external_database_connection_public_1.getExternalDatabaseConnection)
13
+ .apply(undefined, args);
14
+ };
15
+ exports.getExternalDatabaseConnection = getExternalDatabaseConnection;
16
+ const listExternalDatabaseConnections = (...args) => {
17
+ // @ts-expect-error
18
+ if (!globalThis.__wix_context__) {
19
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
20
+ }
21
+ // @ts-expect-error
22
+ return globalThis.__wix_context__
23
+ .initWixModules(data_v1_external_database_connection_public_1.listExternalDatabaseConnections)
24
+ .apply(undefined, args);
25
+ };
26
+ exports.listExternalDatabaseConnections = listExternalDatabaseConnections;
27
+ const createExternalDatabaseConnection = (...args) => {
28
+ // @ts-expect-error
29
+ if (!globalThis.__wix_context__) {
30
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
31
+ }
32
+ // @ts-expect-error
33
+ return globalThis.__wix_context__
34
+ .initWixModules(data_v1_external_database_connection_public_1.createExternalDatabaseConnection)
35
+ .apply(undefined, args);
36
+ };
37
+ exports.createExternalDatabaseConnection = createExternalDatabaseConnection;
38
+ const updateExternalDatabaseConnection = (...args) => {
39
+ // @ts-expect-error
40
+ if (!globalThis.__wix_context__) {
41
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
42
+ }
43
+ // @ts-expect-error
44
+ return globalThis.__wix_context__
45
+ .initWixModules(data_v1_external_database_connection_public_1.updateExternalDatabaseConnection)
46
+ .apply(undefined, args);
47
+ };
48
+ exports.updateExternalDatabaseConnection = updateExternalDatabaseConnection;
49
+ const deleteExternalDatabaseConnection = (...args) => {
50
+ // @ts-expect-error
51
+ if (!globalThis.__wix_context__) {
52
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
53
+ }
54
+ // @ts-expect-error
55
+ return globalThis.__wix_context__
56
+ .initWixModules(data_v1_external_database_connection_public_1.deleteExternalDatabaseConnection)
57
+ .apply(undefined, args);
58
+ };
59
+ exports.deleteExternalDatabaseConnection = deleteExternalDatabaseConnection;
60
+ //# sourceMappingURL=data-v1-external-database-connection.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-v1-external-database-connection.context.js","sourceRoot":"","sources":["../../../src/data-v1-external-database-connection.context.ts"],"names":[],"mappings":";;;AAAA,+GAMuD;AAGhD,MAAM,6BAA6B,GAEtC,CAAC,GA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AAU,CAAC,eAAe;SAC9B,cAAc,CAAC,8EAAsC,CAAC;SACtD,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,gCAAgC,oCAa3C;AACK,MAAM,gCAAgC,GAEzC,CAAC,GAAG,IAAS,EAAE,EAAE;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,8EAAsC,CAAC;SACtD,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,gCAAgC,oCAa3C"}
@@ -0,0 +1,7 @@
1
+ import { createDataCollection as publicCreateDataCollection, getDataCollection as publicGetDataCollection, listDataCollections as publicListDataCollections, updateDataCollection as publicUpdateDataCollection, deleteDataCollection as publicDeleteDataCollection } from './data-v2-data-collection.public';
2
+ import { BuildRESTFunction } from '@wix/sdk-types';
3
+ export declare const createDataCollection: BuildRESTFunction<typeof publicCreateDataCollection>;
4
+ export declare const getDataCollection: BuildRESTFunction<typeof publicGetDataCollection>;
5
+ export declare const listDataCollections: BuildRESTFunction<typeof publicListDataCollections>;
6
+ export declare const updateDataCollection: BuildRESTFunction<typeof publicUpdateDataCollection>;
7
+ export declare const deleteDataCollection: BuildRESTFunction<typeof publicDeleteDataCollection>;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteDataCollection = exports.updateDataCollection = exports.listDataCollections = exports.getDataCollection = exports.createDataCollection = void 0;
4
+ const data_v2_data_collection_public_1 = require("./data-v2-data-collection.public");
5
+ const createDataCollection = (...args) => {
6
+ // @ts-expect-error
7
+ if (!globalThis.__wix_context__) {
8
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
9
+ }
10
+ // @ts-expect-error
11
+ return globalThis.__wix_context__
12
+ .initWixModules(data_v2_data_collection_public_1.createDataCollection)
13
+ .apply(undefined, args);
14
+ };
15
+ exports.createDataCollection = createDataCollection;
16
+ const getDataCollection = (...args) => {
17
+ // @ts-expect-error
18
+ if (!globalThis.__wix_context__) {
19
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
20
+ }
21
+ // @ts-expect-error
22
+ return globalThis.__wix_context__
23
+ .initWixModules(data_v2_data_collection_public_1.getDataCollection)
24
+ .apply(undefined, args);
25
+ };
26
+ exports.getDataCollection = getDataCollection;
27
+ const listDataCollections = (...args) => {
28
+ // @ts-expect-error
29
+ if (!globalThis.__wix_context__) {
30
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
31
+ }
32
+ // @ts-expect-error
33
+ return globalThis.__wix_context__
34
+ .initWixModules(data_v2_data_collection_public_1.listDataCollections)
35
+ .apply(undefined, args);
36
+ };
37
+ exports.listDataCollections = listDataCollections;
38
+ const updateDataCollection = (...args) => {
39
+ // @ts-expect-error
40
+ if (!globalThis.__wix_context__) {
41
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
42
+ }
43
+ // @ts-expect-error
44
+ return globalThis.__wix_context__
45
+ .initWixModules(data_v2_data_collection_public_1.updateDataCollection)
46
+ .apply(undefined, args);
47
+ };
48
+ exports.updateDataCollection = updateDataCollection;
49
+ const deleteDataCollection = (...args) => {
50
+ // @ts-expect-error
51
+ if (!globalThis.__wix_context__) {
52
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
53
+ }
54
+ // @ts-expect-error
55
+ return globalThis.__wix_context__
56
+ .initWixModules(data_v2_data_collection_public_1.deleteDataCollection)
57
+ .apply(undefined, args);
58
+ };
59
+ exports.deleteDataCollection = deleteDataCollection;
60
+ //# sourceMappingURL=data-v2-data-collection.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-v2-data-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,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,qDAA0B,CAAC;SAC1C,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,oBAAoB,wBAa/B;AACK,MAAM,oBAAoB,GAE7B,CAAC,GAAG,IAAS,EAAE,EAAE;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,qDAA0B,CAAC;SAC1C,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,oBAAoB,wBAa/B"}
@@ -0,0 +1,23 @@
1
+ import { insertDataItem as publicInsertDataItem, updateDataItem as publicUpdateDataItem, saveDataItem as publicSaveDataItem, getDataItem as publicGetDataItem, removeDataItem as publicRemoveDataItem, truncateDataItems as publicTruncateDataItems, queryDataItems as publicQueryDataItems, aggregateDataItems as publicAggregateDataItems, countDataItems as publicCountDataItems, queryDistinctValues as publicQueryDistinctValues, bulkInsertDataItems as publicBulkInsertDataItems, bulkUpdateDataItems as publicBulkUpdateDataItems, bulkSaveDataItems as publicBulkSaveDataItems, bulkRemoveDataItems as publicBulkRemoveDataItems, queryReferencedDataItems as publicQueryReferencedDataItems, isReferencedDataItem as publicIsReferencedDataItem, insertDataItemReference as publicInsertDataItemReference, removeDataItemReference as publicRemoveDataItemReference, bulkInsertDataItemReferences as publicBulkInsertDataItemReferences, bulkRemoveDataItemReferences as publicBulkRemoveDataItemReferences, replaceDataItemReferences as publicReplaceDataItemReferences } from './data-v2-data-item.public';
2
+ import { BuildRESTFunction } from '@wix/sdk-types';
3
+ export declare const insertDataItem: BuildRESTFunction<typeof publicInsertDataItem>;
4
+ export declare const updateDataItem: BuildRESTFunction<typeof publicUpdateDataItem>;
5
+ export declare const saveDataItem: BuildRESTFunction<typeof publicSaveDataItem>;
6
+ export declare const getDataItem: BuildRESTFunction<typeof publicGetDataItem>;
7
+ export declare const removeDataItem: BuildRESTFunction<typeof publicRemoveDataItem>;
8
+ export declare const truncateDataItems: BuildRESTFunction<typeof publicTruncateDataItems>;
9
+ export declare const queryDataItems: BuildRESTFunction<typeof publicQueryDataItems>;
10
+ export declare const aggregateDataItems: BuildRESTFunction<typeof publicAggregateDataItems>;
11
+ export declare const countDataItems: BuildRESTFunction<typeof publicCountDataItems>;
12
+ export declare const queryDistinctValues: BuildRESTFunction<typeof publicQueryDistinctValues>;
13
+ export declare const bulkInsertDataItems: BuildRESTFunction<typeof publicBulkInsertDataItems>;
14
+ export declare const bulkUpdateDataItems: BuildRESTFunction<typeof publicBulkUpdateDataItems>;
15
+ export declare const bulkSaveDataItems: BuildRESTFunction<typeof publicBulkSaveDataItems>;
16
+ export declare const bulkRemoveDataItems: BuildRESTFunction<typeof publicBulkRemoveDataItems>;
17
+ export declare const queryReferencedDataItems: BuildRESTFunction<typeof publicQueryReferencedDataItems>;
18
+ export declare const isReferencedDataItem: BuildRESTFunction<typeof publicIsReferencedDataItem>;
19
+ export declare const insertDataItemReference: BuildRESTFunction<typeof publicInsertDataItemReference>;
20
+ export declare const removeDataItemReference: BuildRESTFunction<typeof publicRemoveDataItemReference>;
21
+ export declare const bulkInsertDataItemReferences: BuildRESTFunction<typeof publicBulkInsertDataItemReferences>;
22
+ export declare const bulkRemoveDataItemReferences: BuildRESTFunction<typeof publicBulkRemoveDataItemReferences>;
23
+ export declare const replaceDataItemReferences: BuildRESTFunction<typeof publicReplaceDataItemReferences>;
@@ -0,0 +1,236 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.replaceDataItemReferences = exports.bulkRemoveDataItemReferences = exports.bulkInsertDataItemReferences = exports.removeDataItemReference = exports.insertDataItemReference = exports.isReferencedDataItem = exports.queryReferencedDataItems = exports.bulkRemoveDataItems = exports.bulkSaveDataItems = exports.bulkUpdateDataItems = exports.bulkInsertDataItems = exports.queryDistinctValues = exports.countDataItems = exports.aggregateDataItems = exports.queryDataItems = exports.truncateDataItems = exports.removeDataItem = exports.getDataItem = exports.saveDataItem = exports.updateDataItem = exports.insertDataItem = void 0;
4
+ const data_v2_data_item_public_1 = require("./data-v2-data-item.public");
5
+ const insertDataItem = (...args) => {
6
+ // @ts-expect-error
7
+ if (!globalThis.__wix_context__) {
8
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
9
+ }
10
+ // @ts-expect-error
11
+ return globalThis.__wix_context__
12
+ .initWixModules(data_v2_data_item_public_1.insertDataItem)
13
+ .apply(undefined, args);
14
+ };
15
+ exports.insertDataItem = insertDataItem;
16
+ const updateDataItem = (...args) => {
17
+ // @ts-expect-error
18
+ if (!globalThis.__wix_context__) {
19
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
20
+ }
21
+ // @ts-expect-error
22
+ return globalThis.__wix_context__
23
+ .initWixModules(data_v2_data_item_public_1.updateDataItem)
24
+ .apply(undefined, args);
25
+ };
26
+ exports.updateDataItem = updateDataItem;
27
+ const saveDataItem = (...args) => {
28
+ // @ts-expect-error
29
+ if (!globalThis.__wix_context__) {
30
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
31
+ }
32
+ // @ts-expect-error
33
+ return globalThis.__wix_context__
34
+ .initWixModules(data_v2_data_item_public_1.saveDataItem)
35
+ .apply(undefined, args);
36
+ };
37
+ exports.saveDataItem = saveDataItem;
38
+ const getDataItem = (...args) => {
39
+ // @ts-expect-error
40
+ if (!globalThis.__wix_context__) {
41
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
42
+ }
43
+ // @ts-expect-error
44
+ return globalThis.__wix_context__
45
+ .initWixModules(data_v2_data_item_public_1.getDataItem)
46
+ .apply(undefined, args);
47
+ };
48
+ exports.getDataItem = getDataItem;
49
+ const removeDataItem = (...args) => {
50
+ // @ts-expect-error
51
+ if (!globalThis.__wix_context__) {
52
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
53
+ }
54
+ // @ts-expect-error
55
+ return globalThis.__wix_context__
56
+ .initWixModules(data_v2_data_item_public_1.removeDataItem)
57
+ .apply(undefined, args);
58
+ };
59
+ exports.removeDataItem = removeDataItem;
60
+ const truncateDataItems = (...args) => {
61
+ // @ts-expect-error
62
+ if (!globalThis.__wix_context__) {
63
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
64
+ }
65
+ // @ts-expect-error
66
+ return globalThis.__wix_context__
67
+ .initWixModules(data_v2_data_item_public_1.truncateDataItems)
68
+ .apply(undefined, args);
69
+ };
70
+ exports.truncateDataItems = truncateDataItems;
71
+ const queryDataItems = (...args) => {
72
+ // @ts-expect-error
73
+ if (!globalThis.__wix_context__) {
74
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
75
+ }
76
+ // @ts-expect-error
77
+ return globalThis.__wix_context__
78
+ .initWixModules(data_v2_data_item_public_1.queryDataItems)
79
+ .apply(undefined, args);
80
+ };
81
+ exports.queryDataItems = queryDataItems;
82
+ const aggregateDataItems = (...args) => {
83
+ // @ts-expect-error
84
+ if (!globalThis.__wix_context__) {
85
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
86
+ }
87
+ // @ts-expect-error
88
+ return globalThis.__wix_context__
89
+ .initWixModules(data_v2_data_item_public_1.aggregateDataItems)
90
+ .apply(undefined, args);
91
+ };
92
+ exports.aggregateDataItems = aggregateDataItems;
93
+ const countDataItems = (...args) => {
94
+ // @ts-expect-error
95
+ if (!globalThis.__wix_context__) {
96
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
97
+ }
98
+ // @ts-expect-error
99
+ return globalThis.__wix_context__
100
+ .initWixModules(data_v2_data_item_public_1.countDataItems)
101
+ .apply(undefined, args);
102
+ };
103
+ exports.countDataItems = countDataItems;
104
+ const queryDistinctValues = (...args) => {
105
+ // @ts-expect-error
106
+ if (!globalThis.__wix_context__) {
107
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
108
+ }
109
+ // @ts-expect-error
110
+ return globalThis.__wix_context__
111
+ .initWixModules(data_v2_data_item_public_1.queryDistinctValues)
112
+ .apply(undefined, args);
113
+ };
114
+ exports.queryDistinctValues = queryDistinctValues;
115
+ const bulkInsertDataItems = (...args) => {
116
+ // @ts-expect-error
117
+ if (!globalThis.__wix_context__) {
118
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
119
+ }
120
+ // @ts-expect-error
121
+ return globalThis.__wix_context__
122
+ .initWixModules(data_v2_data_item_public_1.bulkInsertDataItems)
123
+ .apply(undefined, args);
124
+ };
125
+ exports.bulkInsertDataItems = bulkInsertDataItems;
126
+ const bulkUpdateDataItems = (...args) => {
127
+ // @ts-expect-error
128
+ if (!globalThis.__wix_context__) {
129
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
130
+ }
131
+ // @ts-expect-error
132
+ return globalThis.__wix_context__
133
+ .initWixModules(data_v2_data_item_public_1.bulkUpdateDataItems)
134
+ .apply(undefined, args);
135
+ };
136
+ exports.bulkUpdateDataItems = bulkUpdateDataItems;
137
+ const bulkSaveDataItems = (...args) => {
138
+ // @ts-expect-error
139
+ if (!globalThis.__wix_context__) {
140
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
141
+ }
142
+ // @ts-expect-error
143
+ return globalThis.__wix_context__
144
+ .initWixModules(data_v2_data_item_public_1.bulkSaveDataItems)
145
+ .apply(undefined, args);
146
+ };
147
+ exports.bulkSaveDataItems = bulkSaveDataItems;
148
+ const bulkRemoveDataItems = (...args) => {
149
+ // @ts-expect-error
150
+ if (!globalThis.__wix_context__) {
151
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
152
+ }
153
+ // @ts-expect-error
154
+ return globalThis.__wix_context__
155
+ .initWixModules(data_v2_data_item_public_1.bulkRemoveDataItems)
156
+ .apply(undefined, args);
157
+ };
158
+ exports.bulkRemoveDataItems = bulkRemoveDataItems;
159
+ const queryReferencedDataItems = (...args) => {
160
+ // @ts-expect-error
161
+ if (!globalThis.__wix_context__) {
162
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
163
+ }
164
+ // @ts-expect-error
165
+ return globalThis.__wix_context__
166
+ .initWixModules(data_v2_data_item_public_1.queryReferencedDataItems)
167
+ .apply(undefined, args);
168
+ };
169
+ exports.queryReferencedDataItems = queryReferencedDataItems;
170
+ const isReferencedDataItem = (...args) => {
171
+ // @ts-expect-error
172
+ if (!globalThis.__wix_context__) {
173
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
174
+ }
175
+ // @ts-expect-error
176
+ return globalThis.__wix_context__
177
+ .initWixModules(data_v2_data_item_public_1.isReferencedDataItem)
178
+ .apply(undefined, args);
179
+ };
180
+ exports.isReferencedDataItem = isReferencedDataItem;
181
+ const insertDataItemReference = (...args) => {
182
+ // @ts-expect-error
183
+ if (!globalThis.__wix_context__) {
184
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
185
+ }
186
+ // @ts-expect-error
187
+ return globalThis.__wix_context__
188
+ .initWixModules(data_v2_data_item_public_1.insertDataItemReference)
189
+ .apply(undefined, args);
190
+ };
191
+ exports.insertDataItemReference = insertDataItemReference;
192
+ const removeDataItemReference = (...args) => {
193
+ // @ts-expect-error
194
+ if (!globalThis.__wix_context__) {
195
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
196
+ }
197
+ // @ts-expect-error
198
+ return globalThis.__wix_context__
199
+ .initWixModules(data_v2_data_item_public_1.removeDataItemReference)
200
+ .apply(undefined, args);
201
+ };
202
+ exports.removeDataItemReference = removeDataItemReference;
203
+ const bulkInsertDataItemReferences = (...args) => {
204
+ // @ts-expect-error
205
+ if (!globalThis.__wix_context__) {
206
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
207
+ }
208
+ // @ts-expect-error
209
+ return globalThis.__wix_context__
210
+ .initWixModules(data_v2_data_item_public_1.bulkInsertDataItemReferences)
211
+ .apply(undefined, args);
212
+ };
213
+ exports.bulkInsertDataItemReferences = bulkInsertDataItemReferences;
214
+ const bulkRemoveDataItemReferences = (...args) => {
215
+ // @ts-expect-error
216
+ if (!globalThis.__wix_context__) {
217
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
218
+ }
219
+ // @ts-expect-error
220
+ return globalThis.__wix_context__
221
+ .initWixModules(data_v2_data_item_public_1.bulkRemoveDataItemReferences)
222
+ .apply(undefined, args);
223
+ };
224
+ exports.bulkRemoveDataItemReferences = bulkRemoveDataItemReferences;
225
+ const replaceDataItemReferences = (...args) => {
226
+ // @ts-expect-error
227
+ if (!globalThis.__wix_context__) {
228
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
229
+ }
230
+ // @ts-expect-error
231
+ return globalThis.__wix_context__
232
+ .initWixModules(data_v2_data_item_public_1.replaceDataItemReferences)
233
+ .apply(undefined, args);
234
+ };
235
+ exports.replaceDataItemReferences = replaceDataItemReferences;
236
+ //# sourceMappingURL=data-v2-data-item.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-v2-data-item.context.js","sourceRoot":"","sources":["../../../src/data-v2-data-item.context.ts"],"names":[],"mappings":";;;AAAA,yEAsBoC;AAG7B,MAAM,cAAc,GAAmD,CAC5E,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UA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EAAE,EAAE;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,uDAAkC,CAAC;SAClD,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,4BAA4B,gCAavC;AACK,MAAM,4BAA4B,GAErC,CAAC,GAAG,IAAS,EAAE,EAAE;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,uDAAkC,CAAC;SAClD,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,4BAA4B,gCAavC;AACK,MAAM,yBAAyB,GAElC,CAAC,GAAG,IAAS,EAAE,EAAE;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,oDAA+B,CAAC;SAC/C,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,yBAAyB,6BAapC"}
@@ -0,0 +1,5 @@
1
+ import { createIndex as publicCreateIndex, dropIndex as publicDropIndex, listIndexes as publicListIndexes } from './data-v2-index.public';
2
+ import { BuildRESTFunction } from '@wix/sdk-types';
3
+ export declare const createIndex: BuildRESTFunction<typeof publicCreateIndex>;
4
+ export declare const dropIndex: BuildRESTFunction<typeof publicDropIndex>;
5
+ export declare const listIndexes: BuildRESTFunction<typeof publicListIndexes>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listIndexes = exports.dropIndex = exports.createIndex = void 0;
4
+ const data_v2_index_public_1 = require("./data-v2-index.public");
5
+ const createIndex = (...args) => {
6
+ // @ts-expect-error
7
+ if (!globalThis.__wix_context__) {
8
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
9
+ }
10
+ // @ts-expect-error
11
+ return globalThis.__wix_context__
12
+ .initWixModules(data_v2_index_public_1.createIndex)
13
+ .apply(undefined, args);
14
+ };
15
+ exports.createIndex = createIndex;
16
+ const dropIndex = (...args) => {
17
+ // @ts-expect-error
18
+ if (!globalThis.__wix_context__) {
19
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
20
+ }
21
+ // @ts-expect-error
22
+ return globalThis.__wix_context__
23
+ .initWixModules(data_v2_index_public_1.dropIndex)
24
+ .apply(undefined, args);
25
+ };
26
+ exports.dropIndex = dropIndex;
27
+ const listIndexes = (...args) => {
28
+ // @ts-expect-error
29
+ if (!globalThis.__wix_context__) {
30
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
31
+ }
32
+ // @ts-expect-error
33
+ return globalThis.__wix_context__
34
+ .initWixModules(data_v2_index_public_1.listIndexes)
35
+ .apply(undefined, args);
36
+ };
37
+ exports.listIndexes = listIndexes;
38
+ //# sourceMappingURL=data-v2-index.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-v2-index.context.js","sourceRoot":"","sources":["../../../src/data-v2-index.context.ts"],"names":[],"mappings":";;;AAAA,iEAIgC;AAGzB,MAAM,WAAW,GAAgD,CACtE,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,kCAAiB,CAAC;SACjC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,WAAW,eAatB;AACK,MAAM,SAAS,GAA8C,CAClE,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,gCAAe,CAAC;SAC/B,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,SAAS,aAapB;AACK,MAAM,WAAW,GAAgD,CACtE,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,kCAAiB,CAAC;SACjC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,WAAW,eAatB"}
@@ -0,0 +1,4 @@
1
+ export * as externalDatabaseConnections from './src/data-v1-external-database-connection.context';
2
+ export * as collections from './src/data-v2-data-collection.context';
3
+ export * as items from './src/data-v2-data-item.context';
4
+ export * as indexes from './src/data-v2-index.context';
@@ -0,0 +1,5 @@
1
+ export * as externalDatabaseConnections from './src/data-v1-external-database-connection.context';
2
+ export * as collections from './src/data-v2-data-collection.context';
3
+ export * as items from './src/data-v2-data-item.context';
4
+ export * as indexes from './src/data-v2-index.context';
5
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,2BAA2B,MAAM,oDAAoD,CAAC;AAClG,OAAO,KAAK,WAAW,MAAM,uCAAuC,CAAC;AACrE,OAAO,KAAK,KAAK,MAAM,iCAAiC,CAAC;AACzD,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { getExternalDatabaseConnection as publicGetExternalDatabaseConnection, listExternalDatabaseConnections as publicListExternalDatabaseConnections, createExternalDatabaseConnection as publicCreateExternalDatabaseConnection, updateExternalDatabaseConnection as publicUpdateExternalDatabaseConnection, deleteExternalDatabaseConnection as publicDeleteExternalDatabaseConnection } from './data-v1-external-database-connection.public';
2
+ import { BuildRESTFunction } from '@wix/sdk-types';
3
+ export declare const getExternalDatabaseConnection: BuildRESTFunction<typeof publicGetExternalDatabaseConnection>;
4
+ export declare const listExternalDatabaseConnections: BuildRESTFunction<typeof publicListExternalDatabaseConnections>;
5
+ export declare const createExternalDatabaseConnection: BuildRESTFunction<typeof publicCreateExternalDatabaseConnection>;
6
+ export declare const updateExternalDatabaseConnection: BuildRESTFunction<typeof publicUpdateExternalDatabaseConnection>;
7
+ export declare const deleteExternalDatabaseConnection: BuildRESTFunction<typeof publicDeleteExternalDatabaseConnection>;
@@ -0,0 +1,52 @@
1
+ import { getExternalDatabaseConnection as publicGetExternalDatabaseConnection, listExternalDatabaseConnections as publicListExternalDatabaseConnections, createExternalDatabaseConnection as publicCreateExternalDatabaseConnection, updateExternalDatabaseConnection as publicUpdateExternalDatabaseConnection, deleteExternalDatabaseConnection as publicDeleteExternalDatabaseConnection, } from './data-v1-external-database-connection.public';
2
+ export const getExternalDatabaseConnection = (...args) => {
3
+ // @ts-expect-error
4
+ if (!globalThis.__wix_context__) {
5
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
6
+ }
7
+ // @ts-expect-error
8
+ return globalThis.__wix_context__
9
+ .initWixModules(publicGetExternalDatabaseConnection)
10
+ .apply(undefined, args);
11
+ };
12
+ export const listExternalDatabaseConnections = (...args) => {
13
+ // @ts-expect-error
14
+ if (!globalThis.__wix_context__) {
15
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
16
+ }
17
+ // @ts-expect-error
18
+ return globalThis.__wix_context__
19
+ .initWixModules(publicListExternalDatabaseConnections)
20
+ .apply(undefined, args);
21
+ };
22
+ export const createExternalDatabaseConnection = (...args) => {
23
+ // @ts-expect-error
24
+ if (!globalThis.__wix_context__) {
25
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
26
+ }
27
+ // @ts-expect-error
28
+ return globalThis.__wix_context__
29
+ .initWixModules(publicCreateExternalDatabaseConnection)
30
+ .apply(undefined, args);
31
+ };
32
+ export const updateExternalDatabaseConnection = (...args) => {
33
+ // @ts-expect-error
34
+ if (!globalThis.__wix_context__) {
35
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
36
+ }
37
+ // @ts-expect-error
38
+ return globalThis.__wix_context__
39
+ .initWixModules(publicUpdateExternalDatabaseConnection)
40
+ .apply(undefined, args);
41
+ };
42
+ export const deleteExternalDatabaseConnection = (...args) => {
43
+ // @ts-expect-error
44
+ if (!globalThis.__wix_context__) {
45
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
46
+ }
47
+ // @ts-expect-error
48
+ return globalThis.__wix_context__
49
+ .initWixModules(publicDeleteExternalDatabaseConnection)
50
+ .apply(undefined, args);
51
+ };
52
+ //# sourceMappingURL=data-v1-external-database-connection.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-v1-external-database-connection.context.js","sourceRoot":"","sources":["../../../src/data-v1-external-database-connection.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,IAAI,mCAAmC,EACpE,+BAA+B,IAAI,qCAAqC,EACxE,gCAAgC,IAAI,sCAAsC,EAC1E,gCAAgC,IAAI,sCAAsC,EAC1E,gCAAgC,IAAI,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,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,sCAAsC,CAAC;SACtD,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,gCAAgC,GAEzC,CAAC,GAAG,IAAS,EAAE,EAAE;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,sCAAsC,CAAC;SACtD,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { createDataCollection as publicCreateDataCollection, getDataCollection as publicGetDataCollection, listDataCollections as publicListDataCollections, updateDataCollection as publicUpdateDataCollection, deleteDataCollection as publicDeleteDataCollection } from './data-v2-data-collection.public';
2
+ import { BuildRESTFunction } from '@wix/sdk-types';
3
+ export declare const createDataCollection: BuildRESTFunction<typeof publicCreateDataCollection>;
4
+ export declare const getDataCollection: BuildRESTFunction<typeof publicGetDataCollection>;
5
+ export declare const listDataCollections: BuildRESTFunction<typeof publicListDataCollections>;
6
+ export declare const updateDataCollection: BuildRESTFunction<typeof publicUpdateDataCollection>;
7
+ export declare const deleteDataCollection: BuildRESTFunction<typeof publicDeleteDataCollection>;
@@ -0,0 +1,52 @@
1
+ import { createDataCollection as publicCreateDataCollection, getDataCollection as publicGetDataCollection, listDataCollections as publicListDataCollections, updateDataCollection as publicUpdateDataCollection, deleteDataCollection as publicDeleteDataCollection, } from './data-v2-data-collection.public';
2
+ export const createDataCollection = (...args) => {
3
+ // @ts-expect-error
4
+ if (!globalThis.__wix_context__) {
5
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
6
+ }
7
+ // @ts-expect-error
8
+ return globalThis.__wix_context__
9
+ .initWixModules(publicCreateDataCollection)
10
+ .apply(undefined, args);
11
+ };
12
+ export const getDataCollection = (...args) => {
13
+ // @ts-expect-error
14
+ if (!globalThis.__wix_context__) {
15
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
16
+ }
17
+ // @ts-expect-error
18
+ return globalThis.__wix_context__
19
+ .initWixModules(publicGetDataCollection)
20
+ .apply(undefined, args);
21
+ };
22
+ export const listDataCollections = (...args) => {
23
+ // @ts-expect-error
24
+ if (!globalThis.__wix_context__) {
25
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
26
+ }
27
+ // @ts-expect-error
28
+ return globalThis.__wix_context__
29
+ .initWixModules(publicListDataCollections)
30
+ .apply(undefined, args);
31
+ };
32
+ export const updateDataCollection = (...args) => {
33
+ // @ts-expect-error
34
+ if (!globalThis.__wix_context__) {
35
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
36
+ }
37
+ // @ts-expect-error
38
+ return globalThis.__wix_context__
39
+ .initWixModules(publicUpdateDataCollection)
40
+ .apply(undefined, args);
41
+ };
42
+ export const deleteDataCollection = (...args) => {
43
+ // @ts-expect-error
44
+ if (!globalThis.__wix_context__) {
45
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
46
+ }
47
+ // @ts-expect-error
48
+ return globalThis.__wix_context__
49
+ .initWixModules(publicDeleteDataCollection)
50
+ .apply(undefined, args);
51
+ };
52
+ //# sourceMappingURL=data-v2-data-collection.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-v2-data-collection.context.js","sourceRoot":"","sources":["../../../src/data-v2-data-collection.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,IAAI,0BAA0B,EAClD,iBAAiB,IAAI,uBAAuB,EAC5C,mBAAmB,IAAI,yBAAyB,EAChD,oBAAoB,IAAI,0BAA0B,EAClD,oBAAoB,IAAI,0BAA0B,GACnD,MAAM,kCAA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nB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,0BAA0B,CAAC;SAC1C,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,oBAAoB,GAE7B,CAAC,GAAG,IAAS,EAAE,EAAE;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,0BAA0B,CAAC;SAC1C,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { insertDataItem as publicInsertDataItem, updateDataItem as publicUpdateDataItem, saveDataItem as publicSaveDataItem, getDataItem as publicGetDataItem, removeDataItem as publicRemoveDataItem, truncateDataItems as publicTruncateDataItems, queryDataItems as publicQueryDataItems, aggregateDataItems as publicAggregateDataItems, countDataItems as publicCountDataItems, queryDistinctValues as publicQueryDistinctValues, bulkInsertDataItems as publicBulkInsertDataItems, bulkUpdateDataItems as publicBulkUpdateDataItems, bulkSaveDataItems as publicBulkSaveDataItems, bulkRemoveDataItems as publicBulkRemoveDataItems, queryReferencedDataItems as publicQueryReferencedDataItems, isReferencedDataItem as publicIsReferencedDataItem, insertDataItemReference as publicInsertDataItemReference, removeDataItemReference as publicRemoveDataItemReference, bulkInsertDataItemReferences as publicBulkInsertDataItemReferences, bulkRemoveDataItemReferences as publicBulkRemoveDataItemReferences, replaceDataItemReferences as publicReplaceDataItemReferences } from './data-v2-data-item.public';
2
+ import { BuildRESTFunction } from '@wix/sdk-types';
3
+ export declare const insertDataItem: BuildRESTFunction<typeof publicInsertDataItem>;
4
+ export declare const updateDataItem: BuildRESTFunction<typeof publicUpdateDataItem>;
5
+ export declare const saveDataItem: BuildRESTFunction<typeof publicSaveDataItem>;
6
+ export declare const getDataItem: BuildRESTFunction<typeof publicGetDataItem>;
7
+ export declare const removeDataItem: BuildRESTFunction<typeof publicRemoveDataItem>;
8
+ export declare const truncateDataItems: BuildRESTFunction<typeof publicTruncateDataItems>;
9
+ export declare const queryDataItems: BuildRESTFunction<typeof publicQueryDataItems>;
10
+ export declare const aggregateDataItems: BuildRESTFunction<typeof publicAggregateDataItems>;
11
+ export declare const countDataItems: BuildRESTFunction<typeof publicCountDataItems>;
12
+ export declare const queryDistinctValues: BuildRESTFunction<typeof publicQueryDistinctValues>;
13
+ export declare const bulkInsertDataItems: BuildRESTFunction<typeof publicBulkInsertDataItems>;
14
+ export declare const bulkUpdateDataItems: BuildRESTFunction<typeof publicBulkUpdateDataItems>;
15
+ export declare const bulkSaveDataItems: BuildRESTFunction<typeof publicBulkSaveDataItems>;
16
+ export declare const bulkRemoveDataItems: BuildRESTFunction<typeof publicBulkRemoveDataItems>;
17
+ export declare const queryReferencedDataItems: BuildRESTFunction<typeof publicQueryReferencedDataItems>;
18
+ export declare const isReferencedDataItem: BuildRESTFunction<typeof publicIsReferencedDataItem>;
19
+ export declare const insertDataItemReference: BuildRESTFunction<typeof publicInsertDataItemReference>;
20
+ export declare const removeDataItemReference: BuildRESTFunction<typeof publicRemoveDataItemReference>;
21
+ export declare const bulkInsertDataItemReferences: BuildRESTFunction<typeof publicBulkInsertDataItemReferences>;
22
+ export declare const bulkRemoveDataItemReferences: BuildRESTFunction<typeof publicBulkRemoveDataItemReferences>;
23
+ export declare const replaceDataItemReferences: BuildRESTFunction<typeof publicReplaceDataItemReferences>;
@@ -0,0 +1,212 @@
1
+ import { insertDataItem as publicInsertDataItem, updateDataItem as publicUpdateDataItem, saveDataItem as publicSaveDataItem, getDataItem as publicGetDataItem, removeDataItem as publicRemoveDataItem, truncateDataItems as publicTruncateDataItems, queryDataItems as publicQueryDataItems, aggregateDataItems as publicAggregateDataItems, countDataItems as publicCountDataItems, queryDistinctValues as publicQueryDistinctValues, bulkInsertDataItems as publicBulkInsertDataItems, bulkUpdateDataItems as publicBulkUpdateDataItems, bulkSaveDataItems as publicBulkSaveDataItems, bulkRemoveDataItems as publicBulkRemoveDataItems, queryReferencedDataItems as publicQueryReferencedDataItems, isReferencedDataItem as publicIsReferencedDataItem, insertDataItemReference as publicInsertDataItemReference, removeDataItemReference as publicRemoveDataItemReference, bulkInsertDataItemReferences as publicBulkInsertDataItemReferences, bulkRemoveDataItemReferences as publicBulkRemoveDataItemReferences, replaceDataItemReferences as publicReplaceDataItemReferences, } from './data-v2-data-item.public';
2
+ export const insertDataItem = (...args) => {
3
+ // @ts-expect-error
4
+ if (!globalThis.__wix_context__) {
5
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
6
+ }
7
+ // @ts-expect-error
8
+ return globalThis.__wix_context__
9
+ .initWixModules(publicInsertDataItem)
10
+ .apply(undefined, args);
11
+ };
12
+ export const updateDataItem = (...args) => {
13
+ // @ts-expect-error
14
+ if (!globalThis.__wix_context__) {
15
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
16
+ }
17
+ // @ts-expect-error
18
+ return globalThis.__wix_context__
19
+ .initWixModules(publicUpdateDataItem)
20
+ .apply(undefined, args);
21
+ };
22
+ export const saveDataItem = (...args) => {
23
+ // @ts-expect-error
24
+ if (!globalThis.__wix_context__) {
25
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
26
+ }
27
+ // @ts-expect-error
28
+ return globalThis.__wix_context__
29
+ .initWixModules(publicSaveDataItem)
30
+ .apply(undefined, args);
31
+ };
32
+ export const getDataItem = (...args) => {
33
+ // @ts-expect-error
34
+ if (!globalThis.__wix_context__) {
35
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
36
+ }
37
+ // @ts-expect-error
38
+ return globalThis.__wix_context__
39
+ .initWixModules(publicGetDataItem)
40
+ .apply(undefined, args);
41
+ };
42
+ export const removeDataItem = (...args) => {
43
+ // @ts-expect-error
44
+ if (!globalThis.__wix_context__) {
45
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
46
+ }
47
+ // @ts-expect-error
48
+ return globalThis.__wix_context__
49
+ .initWixModules(publicRemoveDataItem)
50
+ .apply(undefined, args);
51
+ };
52
+ export const truncateDataItems = (...args) => {
53
+ // @ts-expect-error
54
+ if (!globalThis.__wix_context__) {
55
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
56
+ }
57
+ // @ts-expect-error
58
+ return globalThis.__wix_context__
59
+ .initWixModules(publicTruncateDataItems)
60
+ .apply(undefined, args);
61
+ };
62
+ export const queryDataItems = (...args) => {
63
+ // @ts-expect-error
64
+ if (!globalThis.__wix_context__) {
65
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
66
+ }
67
+ // @ts-expect-error
68
+ return globalThis.__wix_context__
69
+ .initWixModules(publicQueryDataItems)
70
+ .apply(undefined, args);
71
+ };
72
+ export const aggregateDataItems = (...args) => {
73
+ // @ts-expect-error
74
+ if (!globalThis.__wix_context__) {
75
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
76
+ }
77
+ // @ts-expect-error
78
+ return globalThis.__wix_context__
79
+ .initWixModules(publicAggregateDataItems)
80
+ .apply(undefined, args);
81
+ };
82
+ export const countDataItems = (...args) => {
83
+ // @ts-expect-error
84
+ if (!globalThis.__wix_context__) {
85
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
86
+ }
87
+ // @ts-expect-error
88
+ return globalThis.__wix_context__
89
+ .initWixModules(publicCountDataItems)
90
+ .apply(undefined, args);
91
+ };
92
+ export const queryDistinctValues = (...args) => {
93
+ // @ts-expect-error
94
+ if (!globalThis.__wix_context__) {
95
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
96
+ }
97
+ // @ts-expect-error
98
+ return globalThis.__wix_context__
99
+ .initWixModules(publicQueryDistinctValues)
100
+ .apply(undefined, args);
101
+ };
102
+ export const bulkInsertDataItems = (...args) => {
103
+ // @ts-expect-error
104
+ if (!globalThis.__wix_context__) {
105
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
106
+ }
107
+ // @ts-expect-error
108
+ return globalThis.__wix_context__
109
+ .initWixModules(publicBulkInsertDataItems)
110
+ .apply(undefined, args);
111
+ };
112
+ export const bulkUpdateDataItems = (...args) => {
113
+ // @ts-expect-error
114
+ if (!globalThis.__wix_context__) {
115
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
116
+ }
117
+ // @ts-expect-error
118
+ return globalThis.__wix_context__
119
+ .initWixModules(publicBulkUpdateDataItems)
120
+ .apply(undefined, args);
121
+ };
122
+ export const bulkSaveDataItems = (...args) => {
123
+ // @ts-expect-error
124
+ if (!globalThis.__wix_context__) {
125
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
126
+ }
127
+ // @ts-expect-error
128
+ return globalThis.__wix_context__
129
+ .initWixModules(publicBulkSaveDataItems)
130
+ .apply(undefined, args);
131
+ };
132
+ export const bulkRemoveDataItems = (...args) => {
133
+ // @ts-expect-error
134
+ if (!globalThis.__wix_context__) {
135
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
136
+ }
137
+ // @ts-expect-error
138
+ return globalThis.__wix_context__
139
+ .initWixModules(publicBulkRemoveDataItems)
140
+ .apply(undefined, args);
141
+ };
142
+ export const queryReferencedDataItems = (...args) => {
143
+ // @ts-expect-error
144
+ if (!globalThis.__wix_context__) {
145
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
146
+ }
147
+ // @ts-expect-error
148
+ return globalThis.__wix_context__
149
+ .initWixModules(publicQueryReferencedDataItems)
150
+ .apply(undefined, args);
151
+ };
152
+ export const isReferencedDataItem = (...args) => {
153
+ // @ts-expect-error
154
+ if (!globalThis.__wix_context__) {
155
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
156
+ }
157
+ // @ts-expect-error
158
+ return globalThis.__wix_context__
159
+ .initWixModules(publicIsReferencedDataItem)
160
+ .apply(undefined, args);
161
+ };
162
+ export const insertDataItemReference = (...args) => {
163
+ // @ts-expect-error
164
+ if (!globalThis.__wix_context__) {
165
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
166
+ }
167
+ // @ts-expect-error
168
+ return globalThis.__wix_context__
169
+ .initWixModules(publicInsertDataItemReference)
170
+ .apply(undefined, args);
171
+ };
172
+ export const removeDataItemReference = (...args) => {
173
+ // @ts-expect-error
174
+ if (!globalThis.__wix_context__) {
175
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
176
+ }
177
+ // @ts-expect-error
178
+ return globalThis.__wix_context__
179
+ .initWixModules(publicRemoveDataItemReference)
180
+ .apply(undefined, args);
181
+ };
182
+ export const bulkInsertDataItemReferences = (...args) => {
183
+ // @ts-expect-error
184
+ if (!globalThis.__wix_context__) {
185
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
186
+ }
187
+ // @ts-expect-error
188
+ return globalThis.__wix_context__
189
+ .initWixModules(publicBulkInsertDataItemReferences)
190
+ .apply(undefined, args);
191
+ };
192
+ export const bulkRemoveDataItemReferences = (...args) => {
193
+ // @ts-expect-error
194
+ if (!globalThis.__wix_context__) {
195
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
196
+ }
197
+ // @ts-expect-error
198
+ return globalThis.__wix_context__
199
+ .initWixModules(publicBulkRemoveDataItemReferences)
200
+ .apply(undefined, args);
201
+ };
202
+ export const replaceDataItemReferences = (...args) => {
203
+ // @ts-expect-error
204
+ if (!globalThis.__wix_context__) {
205
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
206
+ }
207
+ // @ts-expect-error
208
+ return globalThis.__wix_context__
209
+ .initWixModules(publicReplaceDataItemReferences)
210
+ .apply(undefined, args);
211
+ };
212
+ //# sourceMappingURL=data-v2-data-item.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-v2-data-item.context.js","sourceRoot":"","sources":["../../../src/data-v2-data-item.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,cAAc,IAAI,oBAAoB,EACtC,YAAY,IAAI,kBAAkB,EAClC,WAAW,IAAI,iBAAiB,EAChC,cAAc,IAAI,oBAAoB,EACtC,iBAAiB,IAAI,uBAAuB,EAC5C,cAAc,IAAI,oBAAoB,EACtC,kBAAkB,IAAI,wBAAwB,EAC9C,cAAc,IAAI,oBAAoB,EACtC,mBAAmB,IAAI,yBAAyB,EAChD,mBAAmB,IAAI,yBAAyB,EAChD,mBAAmB,IAAI,yBAAyB,EAChD,iBAAiB,IAAI,uBAAuB,EAC5C,mBAAmB,IAAI,yBAAyB,EAChD,wBAAwB,IAAI,8BAA8B,EAC1D,oBAAoB,IAAI,0BAA0B,EAClD,uBAAuB,IAAI,6BAA6B,EACxD,uBAAuB,IAAI,6BAA6B,EACxD,4BAA4B,IAAI,kCAAkC,EAClE,4BAA4B,IAAI,kCAAkC,EAClE,yBAAyB,IAAI,+BAA+B,GAC7D,MAAM,4BAA4B,CAAC;AAGpC,MAAM,CAAC,MAAM,cAAc,GAAmD,CAC5E,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,oBAAoB,CAAC;SACpC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,cAAc,GAAmD,CAC5E,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gG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AClD,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,yBAAyB,GAElC,CAAC,GAAG,IAAS,EAAE,EAAE;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,+BAA+B,CAAC;SAC/C,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { createIndex as publicCreateIndex, dropIndex as publicDropIndex, listIndexes as publicListIndexes } from './data-v2-index.public';
2
+ import { BuildRESTFunction } from '@wix/sdk-types';
3
+ export declare const createIndex: BuildRESTFunction<typeof publicCreateIndex>;
4
+ export declare const dropIndex: BuildRESTFunction<typeof publicDropIndex>;
5
+ export declare const listIndexes: BuildRESTFunction<typeof publicListIndexes>;
@@ -0,0 +1,32 @@
1
+ import { createIndex as publicCreateIndex, dropIndex as publicDropIndex, listIndexes as publicListIndexes, } from './data-v2-index.public';
2
+ export const createIndex = (...args) => {
3
+ // @ts-expect-error
4
+ if (!globalThis.__wix_context__) {
5
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
6
+ }
7
+ // @ts-expect-error
8
+ return globalThis.__wix_context__
9
+ .initWixModules(publicCreateIndex)
10
+ .apply(undefined, args);
11
+ };
12
+ export const dropIndex = (...args) => {
13
+ // @ts-expect-error
14
+ if (!globalThis.__wix_context__) {
15
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
16
+ }
17
+ // @ts-expect-error
18
+ return globalThis.__wix_context__
19
+ .initWixModules(publicDropIndex)
20
+ .apply(undefined, args);
21
+ };
22
+ export const listIndexes = (...args) => {
23
+ // @ts-expect-error
24
+ if (!globalThis.__wix_context__) {
25
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
26
+ }
27
+ // @ts-expect-error
28
+ return globalThis.__wix_context__
29
+ .initWixModules(publicListIndexes)
30
+ .apply(undefined, args);
31
+ };
32
+ //# sourceMappingURL=data-v2-index.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-v2-index.context.js","sourceRoot":"","sources":["../../../src/data-v2-index.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,IAAI,iBAAiB,EAChC,SAAS,IAAI,eAAe,EAC5B,WAAW,IAAI,iBAAiB,GACjC,MAAM,wBAAwB,CAAC;AAGhC,MAAM,CAAC,MAAM,WAAW,GAAgD,CACtE,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,iBAAiB,CAAC;SACjC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,SAAS,GAA8C,CAClE,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,eAAe,CAAC;SAC/B,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,WAAW,GAAgD,CACtE,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,iBAAiB,CAAC;SACjC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "../build/es/context.js",
4
+ "main": "../build/cjs/context.js",
5
+ "typings": "../build/cjs/context.d.ts"
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/data",
3
- "version": "1.0.81",
3
+ "version": "1.0.82",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -12,7 +12,8 @@
12
12
  "files": [
13
13
  "build",
14
14
  "frontend/package.json",
15
- "meta"
15
+ "meta",
16
+ "context"
16
17
  ],
17
18
  "dependencies": {
18
19
  "@wix/metro-runtime": "^1.1528.0",
@@ -21,7 +22,8 @@
21
22
  "@wix/motion-edm-autogen-query-wrapper": "^1.0.37"
22
23
  },
23
24
  "devDependencies": {
24
- "typescript": "^5.3.2"
25
+ "typescript": "^5.3.2",
26
+ "@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz"
25
27
  },
26
28
  "scripts": {
27
29
  "build": "tsc -b tsconfig.json tsconfig.esm.json",
@@ -33,5 +35,5 @@
33
35
  "groupId": "com.wixpress.public-sdk-autogen"
34
36
  }
35
37
  },
36
- "falconPackageHash": "678dd26b94c39a2e22634b2e3dc73043ee7cd14877fadb8bceadbc98"
38
+ "falconPackageHash": "58bf9ba104628274fd37640c07abb4417d03c47a16d31145dcd4a7af"
37
39
  }