@chift/chift-nodejs 1.0.13 → 1.0.15
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 -1
- package/CHANGELOG.md +7 -1
- package/dist/src/modules/accounting.d.ts +59 -49
- package/dist/src/modules/api.d.ts +1626 -691
- package/dist/src/modules/consumer.d.ts +318 -131
- package/dist/src/modules/consumer.js +11 -0
- package/dist/src/modules/consumers.d.ts +1625 -690
- package/dist/src/modules/ecommerce.d.ts +11 -11
- package/dist/src/modules/integrations.d.ts +1 -1
- package/dist/src/modules/internalApi.d.ts +2 -0
- package/dist/src/modules/internalApi.js +6 -0
- package/dist/src/modules/invoicing.d.ts +6 -4
- package/dist/src/modules/pms.d.ts +15 -0
- package/dist/src/modules/pms.js +47 -0
- package/dist/src/modules/pos.d.ts +18 -18
- package/dist/src/modules/sync.d.ts +1299 -551
- package/dist/src/types/api.d.ts +1 -0
- package/dist/src/types/public-api/schema.d.ts +1870 -1178
- package/package.json +1 -1
- package/src/modules/consumer.ts +3 -0
- package/src/modules/pms.ts +67 -0
- package/src/modules/pos.ts +4 -4
- package/src/types/public-api/schema.d.ts +12029 -0
- package/src/types/public-api/schema.ts +987 -288
- package/test/modules/pos.test.ts +1 -1
|
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Consumer = void 0;
|
|
13
13
|
const pos_1 = require("./pos");
|
|
14
|
+
const pms_1 = require("./pms");
|
|
14
15
|
const openapi_1 = require("../helpers/openapi");
|
|
15
16
|
const accounting_1 = require("./accounting");
|
|
16
17
|
const invoicing_1 = require("./invoicing");
|
|
@@ -24,10 +25,17 @@ const Consumer = (internalApi, body) => {
|
|
|
24
25
|
const redirect_url = data.redirect_url;
|
|
25
26
|
const email = data.email;
|
|
26
27
|
const pos = (0, openapi_1.createApiFor)(pos_1.posFactory, _internalApi, data.name, consumerId);
|
|
28
|
+
const pms = (0, openapi_1.createApiFor)(pms_1.pmsFactory, _internalApi, data.name, consumerId);
|
|
27
29
|
const accounting = (0, openapi_1.createApiFor)(accounting_1.accountingFactory, _internalApi, data.name, consumerId);
|
|
28
30
|
const invoicing = (0, openapi_1.createApiFor)(invoicing_1.invoicingFactory, _internalApi, data.name, consumerId);
|
|
29
31
|
const ecommerce = (0, openapi_1.createApiFor)(ecommerce_1.ecommerceFactory, _internalApi, data.name, consumerId);
|
|
30
32
|
const custom = (0, openapi_1.createApiFor)(custom_1.customFactory, _internalApi, data.name, consumerId);
|
|
33
|
+
const setConnectionId = (connectionId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
34
|
+
_internalApi.connectionId = connectionId;
|
|
35
|
+
});
|
|
36
|
+
const setIntegrationId = (integrationId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
37
|
+
_internalApi.integrationId = integrationId;
|
|
38
|
+
});
|
|
31
39
|
const getConnections = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
32
40
|
const { data, } = yield _internalApi.get(`/consumers/${consumerId}/connections`);
|
|
33
41
|
return data;
|
|
@@ -111,6 +119,7 @@ const Consumer = (internalApi, body) => {
|
|
|
111
119
|
redirect_url,
|
|
112
120
|
email,
|
|
113
121
|
pos,
|
|
122
|
+
pms,
|
|
114
123
|
accounting,
|
|
115
124
|
invoicing,
|
|
116
125
|
ecommerce,
|
|
@@ -123,6 +132,8 @@ const Consumer = (internalApi, body) => {
|
|
|
123
132
|
updateDataStoreData,
|
|
124
133
|
deleteDataStoreData,
|
|
125
134
|
logData,
|
|
135
|
+
setConnectionId,
|
|
136
|
+
setIntegrationId,
|
|
126
137
|
};
|
|
127
138
|
};
|
|
128
139
|
exports.Consumer = Consumer;
|