@chift/chift-nodejs 1.0.20 → 1.0.22
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/dist/src/modules/accounting.d.ts +7 -4
- package/dist/src/modules/accounting.js +15 -0
- package/dist/src/modules/api.d.ts +2059 -169
- package/dist/src/modules/consumer.d.ts +387 -22
- package/dist/src/modules/consumer.js +10 -0
- package/dist/src/modules/consumers.d.ts +2028 -163
- package/dist/src/modules/datastores.d.ts +17 -0
- package/dist/src/modules/datastores.js +19 -0
- package/dist/src/modules/ecommerce.d.ts +2 -2
- package/dist/src/modules/flow.d.ts +6 -0
- package/dist/src/modules/flow.js +5 -0
- package/dist/src/modules/integrations.d.ts +2 -1
- package/dist/src/modules/integrations.js +5 -0
- package/dist/src/modules/invoicing.d.ts +6 -4
- package/dist/src/modules/invoicing.js +12 -0
- package/dist/src/modules/pms.d.ts +4 -0
- package/dist/src/modules/pms.js +14 -0
- package/dist/src/modules/sync.d.ts +1680 -143
- package/dist/src/modules/sync.js +15 -0
- package/dist/src/modules/syncs.d.ts +3 -0
- package/dist/src/modules/syncs.js +15 -0
- package/dist/src/modules/webhooks.d.ts +2 -0
- package/dist/src/types/public-api/schema.d.ts +1755 -779
- package/dist/src/types/public-api/schema.js +6 -0
- package/dist/test/modules/accounting.test.js +4 -0
- package/dist/test/modules/invoicing.test.js +15 -0
- package/dist/test/modules/pms.test.js +17 -0
- package/package.json +1 -1
- package/src/types/public-api/schema.d.ts +1755 -779
|
@@ -109,6 +109,14 @@ const Consumer = (internalApi, body) => {
|
|
|
109
109
|
const { data: response } = yield _internalApi.post(`/consumers/${consumerId}/logs`, logs);
|
|
110
110
|
return response;
|
|
111
111
|
});
|
|
112
|
+
const updateConsumer = (body) => __awaiter(void 0, void 0, void 0, function* () {
|
|
113
|
+
const { data } = yield _internalApi.patch(`/consumers/${consumerId}`, body);
|
|
114
|
+
return data;
|
|
115
|
+
});
|
|
116
|
+
const updateFlowConfig = (syncId, flowId, body) => __awaiter(void 0, void 0, void 0, function* () {
|
|
117
|
+
const { data } = yield _internalApi.patch(`/consumers/${consumerId}/syncs/${syncId}/flows/${flowId}`, body);
|
|
118
|
+
return data;
|
|
119
|
+
});
|
|
112
120
|
return {
|
|
113
121
|
consumerId,
|
|
114
122
|
getConnections,
|
|
@@ -137,6 +145,8 @@ const Consumer = (internalApi, body) => {
|
|
|
137
145
|
logData,
|
|
138
146
|
setConnectionId,
|
|
139
147
|
setIntegrationId,
|
|
148
|
+
updateConsumer,
|
|
149
|
+
updateFlowConfig,
|
|
140
150
|
};
|
|
141
151
|
};
|
|
142
152
|
exports.Consumer = Consumer;
|