@chift/chift-nodejs 1.0.8 → 1.0.9
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/.eslintcache +1 -0
- package/.github/workflows/ci.yml +2 -1
- package/CHANGELOG.md +4 -0
- package/coverage/clover.xml +1645 -0
- package/coverage/coverage-final.json +19 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +146 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov-report/src/helpers/index.html +131 -0
- package/coverage/lcov-report/src/helpers/openapi.ts.html +151 -0
- package/coverage/lcov-report/src/helpers/settings.ts.html +94 -0
- package/coverage/lcov-report/src/index.html +116 -0
- package/coverage/lcov-report/src/index.ts.html +88 -0
- package/coverage/lcov-report/src/modules/accounting.ts.html +1156 -0
- package/coverage/lcov-report/src/modules/api.ts.html +190 -0
- package/coverage/lcov-report/src/modules/consumer.ts.html +616 -0
- package/coverage/lcov-report/src/modules/consumers.ts.html +331 -0
- package/coverage/lcov-report/src/modules/custom.ts.html +193 -0
- package/coverage/lcov-report/src/modules/datastores.ts.html +142 -0
- package/coverage/lcov-report/src/modules/ecommerce.ts.html +331 -0
- package/coverage/lcov-report/src/modules/flow.ts.html +589 -0
- package/coverage/lcov-report/src/modules/index.html +326 -0
- package/coverage/lcov-report/src/modules/integrations.ts.html +151 -0
- package/coverage/lcov-report/src/modules/internalApi.ts.html +586 -0
- package/coverage/lcov-report/src/modules/invoicing.ts.html +391 -0
- package/coverage/lcov-report/src/modules/pos.ts.html +421 -0
- package/coverage/lcov-report/src/modules/sync.ts.html +316 -0
- package/coverage/lcov-report/src/modules/syncs.ts.html +169 -0
- package/coverage/lcov-report/src/modules/webhooks.ts.html +343 -0
- package/coverage/lcov.info +1976 -0
- package/dist/src/modules/accounting.d.ts +24 -27
- package/dist/src/modules/accounting.js +31 -76
- package/dist/src/modules/api.d.ts +28022 -2110
- package/dist/src/modules/consumer.d.ts +64 -413
- package/dist/src/modules/consumer.js +0 -10
- package/dist/src/modules/consumers.d.ts +332 -2097
- package/dist/src/modules/ecommerce.d.ts +0 -8
- package/dist/src/modules/ecommerce.js +0 -28
- package/dist/src/modules/flow.js +1 -1
- package/dist/src/modules/pos.d.ts +1 -3
- package/dist/src/modules/pos.js +0 -7
- package/dist/src/modules/sync.d.ts +268 -1680
- package/dist/src/modules/syncs.d.ts +27677 -8
- package/dist/src/modules/syncs.js +0 -10
- package/dist/test/modules/accounting.test.js +11 -28
- package/dist/test/modules/ecommerce.test.js +7 -34
- package/dist/test/modules/flow.test.d.ts +1 -0
- package/dist/test/modules/flow.test.js +69 -0
- package/dist/test/modules/pos.test.js +5 -10
- package/package.json +1 -1
- package/src/modules/integrations.ts +4 -2
|
@@ -52,10 +52,6 @@ const Consumer = (internalApi, body) => {
|
|
|
52
52
|
const { data } = yield _internalApi.get(`/consumers/${consumerId}/syncs/${syncId}`);
|
|
53
53
|
return data;
|
|
54
54
|
});
|
|
55
|
-
const enableFlow = (syncId, flowId, body) => __awaiter(void 0, void 0, void 0, function* () {
|
|
56
|
-
const { data } = yield _internalApi.post(`/consumers/${consumerId}/syncs/${syncId}/flows/${flowId}/enable`, body);
|
|
57
|
-
return data;
|
|
58
|
-
});
|
|
59
55
|
const getDataByDataStoreName = (dataStoreName, params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
60
56
|
const { data } = yield _internalApi.get(`/datastores`);
|
|
61
57
|
for (let i = 0; i < data.length; i++) {
|
|
@@ -85,10 +81,6 @@ const Consumer = (internalApi, body) => {
|
|
|
85
81
|
const { data: response } = yield _internalApi.patch(`/consumers/${consumerId}/datastore/${dataStoreId}/data/${dataStoreDataId}`, data);
|
|
86
82
|
return response;
|
|
87
83
|
});
|
|
88
|
-
const deleteDataStoreData = (dataStoreId, dataStoreDataId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
89
|
-
const { data: response } = yield _internalApi.delete(`/consumers/${consumerId}/datastore/${dataStoreId}/data/${dataStoreDataId}`);
|
|
90
|
-
return response;
|
|
91
|
-
});
|
|
92
84
|
/**
|
|
93
85
|
* This function is used to add logs related to a chainexecution (passed in the header)
|
|
94
86
|
* INTERNAL USE only
|
|
@@ -105,7 +97,6 @@ const Consumer = (internalApi, body) => {
|
|
|
105
97
|
createConnection,
|
|
106
98
|
updateConnection,
|
|
107
99
|
deleteConnection,
|
|
108
|
-
enableFlow,
|
|
109
100
|
getSyncUrl,
|
|
110
101
|
name,
|
|
111
102
|
redirect_url,
|
|
@@ -121,7 +112,6 @@ const Consumer = (internalApi, body) => {
|
|
|
121
112
|
getDataByDataStoreName,
|
|
122
113
|
addDataByDataStoreName,
|
|
123
114
|
updateDataStoreData,
|
|
124
|
-
deleteDataStoreData,
|
|
125
115
|
logData,
|
|
126
116
|
};
|
|
127
117
|
};
|