@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.
@@ -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;