@nomalism-com/api 1.3.35 → 1.3.37
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/index.d.ts +2 -0
- package/dist/index.js +670 -226
- package/dist/lib/apiError.d.ts +57 -0
- package/dist/main.d.ts +17 -3
- package/dist/modules/document/CAT.d.ts +8 -0
- package/dist/modules/document/materialEntrance.d.ts +2 -2
- package/dist/modules/documentManagement/multimedia.d.ts +1 -0
- package/dist/modules/llm/llm.d.ts +1 -0
- package/dist/modules/stock/mobilePrint.d.ts +8 -0
- package/dist/modules/stock/productLocation.d.ts +8 -0
- package/dist/modules/supply/currentAccount.d.ts +3 -2
- package/dist/modules/supply/documentHeader.d.ts +1 -2
- package/dist/modules/ui/sidemenuHighlight.d.ts +10 -0
- package/dist/modules/user/chatSubscriber.d.ts +2 -0
- package/dist/modules/user/sessions.d.ts +1 -0
- package/dist/modules/user/systemModule.d.ts +10 -0
- package/dist/modules/user/timeSheet.d.ts +12 -0
- package/dist/modules/view/webSocket.d.ts +7 -0
- package/package.json +10 -10
- package/dist/modules/user/logout.d.ts +0 -7
package/dist/index.js
CHANGED
|
@@ -11,6 +11,7 @@ __export(main_exports, {
|
|
|
11
11
|
AccountCode: () => accountCode_exports,
|
|
12
12
|
AdminPanel: () => adminPanel_exports,
|
|
13
13
|
BankData: () => bankData_exports,
|
|
14
|
+
Catalogo: () => CAT_exports,
|
|
14
15
|
Channel: () => channel_exports,
|
|
15
16
|
ChatRapidMessage: () => chatRapidMessage_exports,
|
|
16
17
|
ChatSubscriber: () => chatSubscriber_exports,
|
|
@@ -51,7 +52,6 @@ __export(main_exports, {
|
|
|
51
52
|
LLM: () => llm_exports,
|
|
52
53
|
Language: () => language_exports,
|
|
53
54
|
Location: () => location_exports,
|
|
54
|
-
Logout: () => logout_exports,
|
|
55
55
|
MaterialEntrance: () => materialEntrance_exports,
|
|
56
56
|
MaturityDates: () => maturityDates_exports,
|
|
57
57
|
Multimedia: () => multimedia_exports,
|
|
@@ -75,6 +75,7 @@ __export(main_exports, {
|
|
|
75
75
|
Prison: () => prison_exports,
|
|
76
76
|
ProductGoogleSheets: () => productGoogleSheets_exports,
|
|
77
77
|
ProductImage: () => productImage_exports,
|
|
78
|
+
ProductLocation: () => productLocation_exports,
|
|
78
79
|
ProjectInfo: () => projectInfo_exports,
|
|
79
80
|
Promotion: () => promotion_exports,
|
|
80
81
|
PromotionAssoc: () => promotionAssoc_exports,
|
|
@@ -101,10 +102,12 @@ __export(main_exports, {
|
|
|
101
102
|
Settings: () => settings_exports,
|
|
102
103
|
Shippings: () => shippings_exports,
|
|
103
104
|
SideMenu: () => sideMenu_exports,
|
|
105
|
+
SidemenuHighlight: () => sidemenuHighlight_exports,
|
|
104
106
|
StartDocumentHeaderLastUpdate: () => startDocumentHeaderLastUpdate_exports,
|
|
105
107
|
StockMovement: () => stockMovement_exports,
|
|
106
108
|
StoreOperator: () => storeOperator_exports,
|
|
107
109
|
Swift: () => swift_exports,
|
|
110
|
+
SystemModule: () => systemModule_exports,
|
|
108
111
|
Tag: () => tag_exports,
|
|
109
112
|
Task: () => task_exports,
|
|
110
113
|
TaskMessage: () => taskMessage_exports,
|
|
@@ -113,6 +116,7 @@ __export(main_exports, {
|
|
|
113
116
|
Theme: () => theme_exports,
|
|
114
117
|
Tickets: () => tickets_exports,
|
|
115
118
|
TicketsLanguage: () => language_exports2,
|
|
119
|
+
TimeSheet: () => timeSheet_exports,
|
|
116
120
|
Transformado: () => transformado_exports,
|
|
117
121
|
TypeOfLocation: () => typeOfLocation_exports,
|
|
118
122
|
UnitOfMeasure: () => unitOfMeasure_exports,
|
|
@@ -126,7 +130,211 @@ __export(main_exports, {
|
|
|
126
130
|
Workflow: () => workflow_exports,
|
|
127
131
|
ZipCode: () => zipCode_exports
|
|
128
132
|
});
|
|
129
|
-
import
|
|
133
|
+
import axios2, { AxiosHeaders } from "axios";
|
|
134
|
+
import Nomalism from "@nomalism-com/types";
|
|
135
|
+
|
|
136
|
+
// src/lib/apiError.ts
|
|
137
|
+
import axios from "axios";
|
|
138
|
+
var RAW_ERROR = /* @__PURE__ */ Symbol("rawError");
|
|
139
|
+
var ApiError = class _ApiError extends Error {
|
|
140
|
+
constructor(fields, cause) {
|
|
141
|
+
super(fields.message);
|
|
142
|
+
this.name = "ApiError";
|
|
143
|
+
this.kind = fields.kind;
|
|
144
|
+
this.status = fields.status;
|
|
145
|
+
this.code = fields.code;
|
|
146
|
+
this.method = fields.method;
|
|
147
|
+
this.url = fields.url;
|
|
148
|
+
this.data = fields.data;
|
|
149
|
+
Object.defineProperty(this, RAW_ERROR, {
|
|
150
|
+
value: cause,
|
|
151
|
+
enumerable: false,
|
|
152
|
+
writable: false,
|
|
153
|
+
configurable: true
|
|
154
|
+
});
|
|
155
|
+
const captureStackTrace = Error.captureStackTrace;
|
|
156
|
+
captureStackTrace?.(this, _ApiError);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* The original underlying error (e.g. the raw AxiosError) for deep debugging.
|
|
160
|
+
* Lives on a non-enumerable Symbol slot, so it is never printed by loggers.
|
|
161
|
+
*/
|
|
162
|
+
get raw() {
|
|
163
|
+
return this[RAW_ERROR];
|
|
164
|
+
}
|
|
165
|
+
/** Controls what `JSON.stringify(err)` and most loggers emit — kept compact. */
|
|
166
|
+
toJSON() {
|
|
167
|
+
return {
|
|
168
|
+
kind: this.kind,
|
|
169
|
+
message: this.message,
|
|
170
|
+
status: this.status,
|
|
171
|
+
code: this.code,
|
|
172
|
+
method: this.method,
|
|
173
|
+
url: this.url,
|
|
174
|
+
data: this.data
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
function isApiError(error) {
|
|
179
|
+
return error instanceof ApiError;
|
|
180
|
+
}
|
|
181
|
+
function extractServerMessage(data, fallback) {
|
|
182
|
+
if (typeof data === "string" && data.trim()) return data;
|
|
183
|
+
if (data && typeof data === "object") {
|
|
184
|
+
const record = data;
|
|
185
|
+
const candidate = record.message ?? record.error ?? record.detail ?? record.title;
|
|
186
|
+
if (typeof candidate === "string" && candidate.trim()) return candidate;
|
|
187
|
+
}
|
|
188
|
+
return fallback;
|
|
189
|
+
}
|
|
190
|
+
function parseApiError(error) {
|
|
191
|
+
if (error instanceof ApiError) return error;
|
|
192
|
+
if (!axios.isAxiosError(error)) {
|
|
193
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
194
|
+
return new ApiError({ kind: "unknown", message }, error);
|
|
195
|
+
}
|
|
196
|
+
const axiosError = error;
|
|
197
|
+
const method = axiosError.config?.method?.toUpperCase();
|
|
198
|
+
const url = axiosError.config?.url;
|
|
199
|
+
const code = axiosError.code;
|
|
200
|
+
if (axiosError.response) {
|
|
201
|
+
const { status, data } = axiosError.response;
|
|
202
|
+
const message = extractServerMessage(data, `Request failed with status ${status}`);
|
|
203
|
+
return new ApiError({ kind: "response", message, status, code, method, url, data }, error);
|
|
204
|
+
}
|
|
205
|
+
if (axiosError.request) {
|
|
206
|
+
const message = code === "ECONNABORTED" ? `Request timed out${url ? ` (${method} ${url})` : ""}` : `No response received${url ? ` from ${method} ${url}` : ""}`;
|
|
207
|
+
return new ApiError({ kind: "request", message, code, method, url }, error);
|
|
208
|
+
}
|
|
209
|
+
return new ApiError({ kind: "setup", message: axiosError.message, code, method, url }, error);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// src/modules/view/webSocket.ts
|
|
213
|
+
var CLOSE_AUTH_REJECTED = 4401;
|
|
214
|
+
var CLOSE_AUTH_UNAVAILABLE = 4503;
|
|
215
|
+
var PING_INTERVAL_MS = 25e3;
|
|
216
|
+
var MAX_BACKOFF_MS = 3e4;
|
|
217
|
+
var BASE_BACKOFF_MS = 1e3;
|
|
218
|
+
var Service = class {
|
|
219
|
+
constructor({ route }) {
|
|
220
|
+
this.route = route.replace(/^http(s?):/i, "ws$1:");
|
|
221
|
+
}
|
|
222
|
+
openSocket({
|
|
223
|
+
token,
|
|
224
|
+
channel,
|
|
225
|
+
onEvent,
|
|
226
|
+
onOpen,
|
|
227
|
+
onReconnect,
|
|
228
|
+
onClose,
|
|
229
|
+
onAuthUnverified
|
|
230
|
+
}) {
|
|
231
|
+
let ws = null;
|
|
232
|
+
let attempts = 0;
|
|
233
|
+
let opensSoFar = 0;
|
|
234
|
+
let pingTimer = null;
|
|
235
|
+
let reconnectTimer = null;
|
|
236
|
+
let closedByCaller = false;
|
|
237
|
+
const subprotocols = channel ? [`bearer.${token}`, `channel.${channel}`] : [`bearer.${token}`];
|
|
238
|
+
const stopPing = () => {
|
|
239
|
+
if (pingTimer !== null) {
|
|
240
|
+
window.clearInterval(pingTimer);
|
|
241
|
+
pingTimer = null;
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
const startPing = () => {
|
|
245
|
+
stopPing();
|
|
246
|
+
pingTimer = setInterval(() => {
|
|
247
|
+
if (ws?.readyState === WebSocket.OPEN) {
|
|
248
|
+
try {
|
|
249
|
+
ws.send(JSON.stringify({ type: "ping" }));
|
|
250
|
+
} catch (err) {
|
|
251
|
+
console.warn("WebSocket ping failed", err);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}, PING_INTERVAL_MS);
|
|
255
|
+
};
|
|
256
|
+
const scheduleReconnect = () => {
|
|
257
|
+
if (closedByCaller) return;
|
|
258
|
+
const delay = Math.min(MAX_BACKOFF_MS, BASE_BACKOFF_MS * 2 ** Math.min(attempts, 6));
|
|
259
|
+
attempts += 1;
|
|
260
|
+
reconnectTimer = setTimeout(connect, delay);
|
|
261
|
+
};
|
|
262
|
+
const connect = () => {
|
|
263
|
+
if (closedByCaller) return;
|
|
264
|
+
try {
|
|
265
|
+
ws = new WebSocket(this.route, subprotocols);
|
|
266
|
+
} catch (err) {
|
|
267
|
+
console.error("WebSocket constructor threw", err);
|
|
268
|
+
scheduleReconnect();
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
ws.onopen = () => {
|
|
272
|
+
attempts = 0;
|
|
273
|
+
opensSoFar += 1;
|
|
274
|
+
startPing();
|
|
275
|
+
if (opensSoFar === 1) {
|
|
276
|
+
onOpen?.();
|
|
277
|
+
} else {
|
|
278
|
+
onReconnect?.();
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
ws.onmessage = (msg) => {
|
|
282
|
+
let payload;
|
|
283
|
+
try {
|
|
284
|
+
payload = JSON.parse(msg.data);
|
|
285
|
+
} catch {
|
|
286
|
+
console.warn("WebSocket received non-JSON frame", msg.data);
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
if (payload.type === "ping" || payload.type === "pong") return;
|
|
290
|
+
try {
|
|
291
|
+
onEvent(payload);
|
|
292
|
+
} catch (err) {
|
|
293
|
+
console.error("WebSocket event handler threw", err, payload);
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
ws.onerror = (err) => {
|
|
297
|
+
console.warn("WebSocket error", err);
|
|
298
|
+
};
|
|
299
|
+
ws.onclose = (e) => {
|
|
300
|
+
stopPing();
|
|
301
|
+
ws = null;
|
|
302
|
+
onClose?.();
|
|
303
|
+
if (e.code === CLOSE_AUTH_REJECTED) {
|
|
304
|
+
console.error("WebSocket auth rejected by server, not reconnecting");
|
|
305
|
+
closedByCaller = true;
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
if (e.code === CLOSE_AUTH_UNAVAILABLE) {
|
|
309
|
+
console.warn("WebSocket auth verifier unavailable, retrying");
|
|
310
|
+
attempts = Math.min(attempts, 2);
|
|
311
|
+
onAuthUnverified?.();
|
|
312
|
+
scheduleReconnect();
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
315
|
+
scheduleReconnect();
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
connect();
|
|
319
|
+
return {
|
|
320
|
+
close: () => {
|
|
321
|
+
closedByCaller = true;
|
|
322
|
+
if (reconnectTimer !== null) {
|
|
323
|
+
window.clearTimeout(reconnectTimer);
|
|
324
|
+
reconnectTimer = null;
|
|
325
|
+
}
|
|
326
|
+
stopPing();
|
|
327
|
+
if (ws && ws.readyState <= WebSocket.OPEN) {
|
|
328
|
+
try {
|
|
329
|
+
ws.close(1e3, "client unmount");
|
|
330
|
+
} catch {
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
ws = null;
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
};
|
|
130
338
|
|
|
131
339
|
// src/modules/user/bankData.ts
|
|
132
340
|
var bankData_exports = {};
|
|
@@ -456,9 +664,6 @@ var Repository7 = class {
|
|
|
456
664
|
async transferClientOwnership(data) {
|
|
457
665
|
await this.api.put(`${this.route}transfer_client_ownership`, data);
|
|
458
666
|
}
|
|
459
|
-
async updateManyWithPersona(data) {
|
|
460
|
-
await this.api.put(`${this.route}update_many_with_persona`, data);
|
|
461
|
-
}
|
|
462
667
|
async sendClientNotification({ id }, data) {
|
|
463
668
|
await this.api.post(`${this.route}${id}/send_client_notification`, data);
|
|
464
669
|
}
|
|
@@ -893,27 +1098,12 @@ var Repository23 = class {
|
|
|
893
1098
|
}
|
|
894
1099
|
};
|
|
895
1100
|
|
|
896
|
-
// src/modules/user/logout.ts
|
|
897
|
-
var logout_exports = {};
|
|
898
|
-
__export(logout_exports, {
|
|
899
|
-
default: () => Repository24
|
|
900
|
-
});
|
|
901
|
-
var Repository24 = class {
|
|
902
|
-
constructor({ api, route }) {
|
|
903
|
-
this.api = api;
|
|
904
|
-
this.route = route;
|
|
905
|
-
}
|
|
906
|
-
async logout() {
|
|
907
|
-
await this.api.post(`${this.route}`);
|
|
908
|
-
}
|
|
909
|
-
};
|
|
910
|
-
|
|
911
1101
|
// src/modules/documentManagement/multimedia.ts
|
|
912
1102
|
var multimedia_exports = {};
|
|
913
1103
|
__export(multimedia_exports, {
|
|
914
|
-
default: () =>
|
|
1104
|
+
default: () => Repository24
|
|
915
1105
|
});
|
|
916
|
-
var
|
|
1106
|
+
var Repository24 = class {
|
|
917
1107
|
constructor({ api, route }) {
|
|
918
1108
|
this.api = api;
|
|
919
1109
|
this.route = route;
|
|
@@ -934,14 +1124,24 @@ var Repository25 = class {
|
|
|
934
1124
|
});
|
|
935
1125
|
return response.data;
|
|
936
1126
|
}
|
|
1127
|
+
async update(id, multipartFormData, headers) {
|
|
1128
|
+
await this.api.post(`${this.route}upload_and_update/${id}`, multipartFormData, {
|
|
1129
|
+
headers: {
|
|
1130
|
+
...headers || {},
|
|
1131
|
+
"content-type": "multipart/form-data"
|
|
1132
|
+
},
|
|
1133
|
+
maxBodyLength: Infinity,
|
|
1134
|
+
maxContentLength: Infinity
|
|
1135
|
+
});
|
|
1136
|
+
}
|
|
937
1137
|
};
|
|
938
1138
|
|
|
939
1139
|
// src/modules/integration/observation.ts
|
|
940
1140
|
var observation_exports = {};
|
|
941
1141
|
__export(observation_exports, {
|
|
942
|
-
default: () =>
|
|
1142
|
+
default: () => Repository25
|
|
943
1143
|
});
|
|
944
|
-
var
|
|
1144
|
+
var Repository25 = class {
|
|
945
1145
|
constructor({ api, route }) {
|
|
946
1146
|
this.api = api;
|
|
947
1147
|
this.route = route;
|
|
@@ -973,9 +1173,9 @@ var Repository26 = class {
|
|
|
973
1173
|
// src/modules/integration/observationType.ts
|
|
974
1174
|
var observationType_exports = {};
|
|
975
1175
|
__export(observationType_exports, {
|
|
976
|
-
default: () =>
|
|
1176
|
+
default: () => Repository26
|
|
977
1177
|
});
|
|
978
|
-
var
|
|
1178
|
+
var Repository26 = class {
|
|
979
1179
|
constructor({ api, route }) {
|
|
980
1180
|
this.api = api;
|
|
981
1181
|
this.route = route;
|
|
@@ -1007,9 +1207,9 @@ var Repository27 = class {
|
|
|
1007
1207
|
// src/modules/user/password.ts
|
|
1008
1208
|
var password_exports = {};
|
|
1009
1209
|
__export(password_exports, {
|
|
1010
|
-
default: () =>
|
|
1210
|
+
default: () => Repository27
|
|
1011
1211
|
});
|
|
1012
|
-
var
|
|
1212
|
+
var Repository27 = class {
|
|
1013
1213
|
constructor({ api, route }) {
|
|
1014
1214
|
this.api = api;
|
|
1015
1215
|
this.route = route;
|
|
@@ -1029,9 +1229,9 @@ var Repository28 = class {
|
|
|
1029
1229
|
// src/modules/stock/productImage.ts
|
|
1030
1230
|
var productImage_exports = {};
|
|
1031
1231
|
__export(productImage_exports, {
|
|
1032
|
-
default: () =>
|
|
1232
|
+
default: () => Repository28
|
|
1033
1233
|
});
|
|
1034
|
-
var
|
|
1234
|
+
var Repository28 = class {
|
|
1035
1235
|
constructor({ api, route }) {
|
|
1036
1236
|
this.api = api;
|
|
1037
1237
|
this.route = route;
|
|
@@ -1071,9 +1271,9 @@ var Repository29 = class {
|
|
|
1071
1271
|
// src/modules/stock/promotion.ts
|
|
1072
1272
|
var promotion_exports = {};
|
|
1073
1273
|
__export(promotion_exports, {
|
|
1074
|
-
default: () =>
|
|
1274
|
+
default: () => Repository29
|
|
1075
1275
|
});
|
|
1076
|
-
var
|
|
1276
|
+
var Repository29 = class {
|
|
1077
1277
|
constructor({ api, route }) {
|
|
1078
1278
|
this.api = api;
|
|
1079
1279
|
this.route = route;
|
|
@@ -1131,9 +1331,9 @@ var Repository30 = class {
|
|
|
1131
1331
|
// src/modules/stock/promotionAssoc.ts
|
|
1132
1332
|
var promotionAssoc_exports = {};
|
|
1133
1333
|
__export(promotionAssoc_exports, {
|
|
1134
|
-
default: () =>
|
|
1334
|
+
default: () => Repository30
|
|
1135
1335
|
});
|
|
1136
|
-
var
|
|
1336
|
+
var Repository30 = class {
|
|
1137
1337
|
constructor({ api, route }) {
|
|
1138
1338
|
this.api = api;
|
|
1139
1339
|
this.route = route;
|
|
@@ -1173,9 +1373,9 @@ var Repository31 = class {
|
|
|
1173
1373
|
// src/modules/user/provider.ts
|
|
1174
1374
|
var provider_exports = {};
|
|
1175
1375
|
__export(provider_exports, {
|
|
1176
|
-
default: () =>
|
|
1376
|
+
default: () => Repository31
|
|
1177
1377
|
});
|
|
1178
|
-
var
|
|
1378
|
+
var Repository31 = class {
|
|
1179
1379
|
constructor({ api, route }) {
|
|
1180
1380
|
this.api = api;
|
|
1181
1381
|
this.route = route;
|
|
@@ -1235,9 +1435,9 @@ var Repository32 = class {
|
|
|
1235
1435
|
// src/modules/user/providerType.ts
|
|
1236
1436
|
var providerType_exports = {};
|
|
1237
1437
|
__export(providerType_exports, {
|
|
1238
|
-
default: () =>
|
|
1438
|
+
default: () => Repository32
|
|
1239
1439
|
});
|
|
1240
|
-
var
|
|
1440
|
+
var Repository32 = class {
|
|
1241
1441
|
constructor({ api, route }) {
|
|
1242
1442
|
this.api = api;
|
|
1243
1443
|
this.route = route;
|
|
@@ -1277,9 +1477,9 @@ var Repository33 = class {
|
|
|
1277
1477
|
// src/modules/user/purchaseCondition.ts
|
|
1278
1478
|
var purchaseCondition_exports = {};
|
|
1279
1479
|
__export(purchaseCondition_exports, {
|
|
1280
|
-
default: () =>
|
|
1480
|
+
default: () => Repository33
|
|
1281
1481
|
});
|
|
1282
|
-
var
|
|
1482
|
+
var Repository33 = class {
|
|
1283
1483
|
constructor({ api, route }) {
|
|
1284
1484
|
this.api = api;
|
|
1285
1485
|
this.route = route;
|
|
@@ -1319,9 +1519,9 @@ var Repository34 = class {
|
|
|
1319
1519
|
// src/modules/user/reasonForExemption.ts
|
|
1320
1520
|
var reasonForExemption_exports = {};
|
|
1321
1521
|
__export(reasonForExemption_exports, {
|
|
1322
|
-
default: () =>
|
|
1522
|
+
default: () => Repository34
|
|
1323
1523
|
});
|
|
1324
|
-
var
|
|
1524
|
+
var Repository34 = class {
|
|
1325
1525
|
constructor({ api, route }) {
|
|
1326
1526
|
this.api = api;
|
|
1327
1527
|
this.route = route;
|
|
@@ -1361,9 +1561,9 @@ var Repository35 = class {
|
|
|
1361
1561
|
// src/modules/user/refreshToken.ts
|
|
1362
1562
|
var refreshToken_exports = {};
|
|
1363
1563
|
__export(refreshToken_exports, {
|
|
1364
|
-
default: () =>
|
|
1564
|
+
default: () => Repository35
|
|
1365
1565
|
});
|
|
1366
|
-
var
|
|
1566
|
+
var Repository35 = class {
|
|
1367
1567
|
constructor({ api, route }) {
|
|
1368
1568
|
this.api = api;
|
|
1369
1569
|
this.route = route;
|
|
@@ -1377,9 +1577,9 @@ var Repository36 = class {
|
|
|
1377
1577
|
// src/modules/user/segmentsArea.ts
|
|
1378
1578
|
var segmentsArea_exports = {};
|
|
1379
1579
|
__export(segmentsArea_exports, {
|
|
1380
|
-
default: () =>
|
|
1580
|
+
default: () => Repository36
|
|
1381
1581
|
});
|
|
1382
|
-
var
|
|
1582
|
+
var Repository36 = class {
|
|
1383
1583
|
constructor({ api, route }) {
|
|
1384
1584
|
this.api = api;
|
|
1385
1585
|
this.route = route;
|
|
@@ -1419,9 +1619,9 @@ var Repository37 = class {
|
|
|
1419
1619
|
// src/modules/user/sessions.ts
|
|
1420
1620
|
var sessions_exports = {};
|
|
1421
1621
|
__export(sessions_exports, {
|
|
1422
|
-
default: () =>
|
|
1622
|
+
default: () => Repository37
|
|
1423
1623
|
});
|
|
1424
|
-
var
|
|
1624
|
+
var Repository37 = class {
|
|
1425
1625
|
constructor({ api, route }) {
|
|
1426
1626
|
this.api = api;
|
|
1427
1627
|
this.route = route;
|
|
@@ -1430,14 +1630,17 @@ var Repository38 = class {
|
|
|
1430
1630
|
const response = await this.api.post(`${this.route}`, body);
|
|
1431
1631
|
return response.data;
|
|
1432
1632
|
}
|
|
1633
|
+
async logout() {
|
|
1634
|
+
await this.api.post(`${this.route}logout`);
|
|
1635
|
+
}
|
|
1433
1636
|
};
|
|
1434
1637
|
|
|
1435
1638
|
// src/modules/user/shippings.ts
|
|
1436
1639
|
var shippings_exports = {};
|
|
1437
1640
|
__export(shippings_exports, {
|
|
1438
|
-
default: () =>
|
|
1641
|
+
default: () => Repository38
|
|
1439
1642
|
});
|
|
1440
|
-
var
|
|
1643
|
+
var Repository38 = class {
|
|
1441
1644
|
constructor({ api, route }) {
|
|
1442
1645
|
this.api = api;
|
|
1443
1646
|
this.route = route;
|
|
@@ -1477,9 +1680,9 @@ var Repository39 = class {
|
|
|
1477
1680
|
// src/modules/user/storeOperator.ts
|
|
1478
1681
|
var storeOperator_exports = {};
|
|
1479
1682
|
__export(storeOperator_exports, {
|
|
1480
|
-
default: () =>
|
|
1683
|
+
default: () => Repository39
|
|
1481
1684
|
});
|
|
1482
|
-
var
|
|
1685
|
+
var Repository39 = class {
|
|
1483
1686
|
constructor({ api, route }) {
|
|
1484
1687
|
this.api = api;
|
|
1485
1688
|
this.route = route;
|
|
@@ -1516,6 +1719,30 @@ var Repository40 = class {
|
|
|
1516
1719
|
}
|
|
1517
1720
|
};
|
|
1518
1721
|
|
|
1722
|
+
// src/modules/user/systemModule.ts
|
|
1723
|
+
var systemModule_exports = {};
|
|
1724
|
+
__export(systemModule_exports, {
|
|
1725
|
+
default: () => Repository40
|
|
1726
|
+
});
|
|
1727
|
+
var Repository40 = class {
|
|
1728
|
+
constructor({ api, route }) {
|
|
1729
|
+
this.api = api;
|
|
1730
|
+
this.route = route;
|
|
1731
|
+
}
|
|
1732
|
+
async find() {
|
|
1733
|
+
const response = await this.api.get(`${this.route}`);
|
|
1734
|
+
return response.data;
|
|
1735
|
+
}
|
|
1736
|
+
async findByStoreOperatorId(selector) {
|
|
1737
|
+
const response = await this.api.get(`${this.route}${selector.store_operator_id}`);
|
|
1738
|
+
return response.data;
|
|
1739
|
+
}
|
|
1740
|
+
async setStoreOperatorModules(body) {
|
|
1741
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
1742
|
+
return response.data;
|
|
1743
|
+
}
|
|
1744
|
+
};
|
|
1745
|
+
|
|
1519
1746
|
// src/modules/user/swift.ts
|
|
1520
1747
|
var swift_exports = {};
|
|
1521
1748
|
__export(swift_exports, {
|
|
@@ -3045,11 +3272,17 @@ var Repository83 = class {
|
|
|
3045
3272
|
}
|
|
3046
3273
|
printBulkLabelToPdfUrl({
|
|
3047
3274
|
groupLabel,
|
|
3275
|
+
stockOrders,
|
|
3276
|
+
notOk,
|
|
3277
|
+
clientOrders,
|
|
3048
3278
|
saved_em_picking_ids,
|
|
3049
3279
|
token
|
|
3050
3280
|
}) {
|
|
3051
3281
|
const qs = new URLSearchParams();
|
|
3052
3282
|
qs.set("groupLabel", groupLabel.toString());
|
|
3283
|
+
qs.set("stockOrders", stockOrders);
|
|
3284
|
+
qs.set("notOk", notOk);
|
|
3285
|
+
qs.set("clientOrders", clientOrders);
|
|
3053
3286
|
qs.set("saved_em_picking_ids", saved_em_picking_ids);
|
|
3054
3287
|
qs.set("token", token);
|
|
3055
3288
|
return `${this.route}print_bulk_label_pdf?${qs.toString()}`;
|
|
@@ -3687,12 +3920,36 @@ var Repository105 = class {
|
|
|
3687
3920
|
}
|
|
3688
3921
|
};
|
|
3689
3922
|
|
|
3923
|
+
// src/modules/ui/sidemenuHighlight.ts
|
|
3924
|
+
var sidemenuHighlight_exports = {};
|
|
3925
|
+
__export(sidemenuHighlight_exports, {
|
|
3926
|
+
default: () => Repository106
|
|
3927
|
+
});
|
|
3928
|
+
var Repository106 = class {
|
|
3929
|
+
constructor({ api, route }) {
|
|
3930
|
+
this.api = api;
|
|
3931
|
+
this.route = route;
|
|
3932
|
+
}
|
|
3933
|
+
async find() {
|
|
3934
|
+
const response = await this.api.get(`${this.route}`);
|
|
3935
|
+
return response.data;
|
|
3936
|
+
}
|
|
3937
|
+
async findByStoreOperatorId(selector) {
|
|
3938
|
+
const response = await this.api.get(`${this.route}${selector.store_operator_id}`);
|
|
3939
|
+
return response.data;
|
|
3940
|
+
}
|
|
3941
|
+
async setStoreOperatorHighlights(body) {
|
|
3942
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
3943
|
+
return response.data;
|
|
3944
|
+
}
|
|
3945
|
+
};
|
|
3946
|
+
|
|
3690
3947
|
// src/modules/view/errorLog.ts
|
|
3691
3948
|
var errorLog_exports = {};
|
|
3692
3949
|
__export(errorLog_exports, {
|
|
3693
|
-
default: () =>
|
|
3950
|
+
default: () => Repository107
|
|
3694
3951
|
});
|
|
3695
|
-
var
|
|
3952
|
+
var Repository107 = class {
|
|
3696
3953
|
constructor({ api, route }) {
|
|
3697
3954
|
this.api = api;
|
|
3698
3955
|
this.route = route;
|
|
@@ -3705,9 +3962,9 @@ var Repository106 = class {
|
|
|
3705
3962
|
// src/modules/view/adminPanel.ts
|
|
3706
3963
|
var adminPanel_exports = {};
|
|
3707
3964
|
__export(adminPanel_exports, {
|
|
3708
|
-
default: () =>
|
|
3965
|
+
default: () => Repository108
|
|
3709
3966
|
});
|
|
3710
|
-
var
|
|
3967
|
+
var Repository108 = class {
|
|
3711
3968
|
constructor({ api, route }) {
|
|
3712
3969
|
this.api = api;
|
|
3713
3970
|
this.route = route;
|
|
@@ -3721,9 +3978,9 @@ var Repository107 = class {
|
|
|
3721
3978
|
// src/modules/supply/documentLineRm.ts
|
|
3722
3979
|
var documentLineRm_exports = {};
|
|
3723
3980
|
__export(documentLineRm_exports, {
|
|
3724
|
-
default: () =>
|
|
3981
|
+
default: () => Repository109
|
|
3725
3982
|
});
|
|
3726
|
-
var
|
|
3983
|
+
var Repository109 = class {
|
|
3727
3984
|
constructor({ api, route }) {
|
|
3728
3985
|
this.api = api;
|
|
3729
3986
|
this.route = route;
|
|
@@ -3742,9 +3999,9 @@ var Repository108 = class {
|
|
|
3742
3999
|
// src/modules/supply/documentLineMt.ts
|
|
3743
4000
|
var documentLineMt_exports = {};
|
|
3744
4001
|
__export(documentLineMt_exports, {
|
|
3745
|
-
default: () =>
|
|
4002
|
+
default: () => Repository110
|
|
3746
4003
|
});
|
|
3747
|
-
var
|
|
4004
|
+
var Repository110 = class {
|
|
3748
4005
|
constructor({ api, route }) {
|
|
3749
4006
|
this.api = api;
|
|
3750
4007
|
this.route = route;
|
|
@@ -3763,9 +4020,9 @@ var Repository109 = class {
|
|
|
3763
4020
|
// src/modules/user/chatSubscriber.ts
|
|
3764
4021
|
var chatSubscriber_exports = {};
|
|
3765
4022
|
__export(chatSubscriber_exports, {
|
|
3766
|
-
default: () =>
|
|
4023
|
+
default: () => Repository111
|
|
3767
4024
|
});
|
|
3768
|
-
var
|
|
4025
|
+
var Repository111 = class {
|
|
3769
4026
|
constructor({ api, route }) {
|
|
3770
4027
|
this.api = api;
|
|
3771
4028
|
this.route = route;
|
|
@@ -3774,6 +4031,12 @@ var Repository110 = class {
|
|
|
3774
4031
|
const response = await this.api.get(`${this.route}document_header_subscribers`, { params });
|
|
3775
4032
|
return response.data;
|
|
3776
4033
|
}
|
|
4034
|
+
async findDocumentHeaderSubscribersByLanguage(params) {
|
|
4035
|
+
const response = await this.api.get(`${this.route}document_header_subscribers_by_language`, {
|
|
4036
|
+
params
|
|
4037
|
+
});
|
|
4038
|
+
return response.data;
|
|
4039
|
+
}
|
|
3777
4040
|
async findSubscribedDocumentHeaders(params) {
|
|
3778
4041
|
const response = await this.api.get(`${this.route}subscribed_document_headers`, { params });
|
|
3779
4042
|
return response.data;
|
|
@@ -3794,14 +4057,18 @@ var Repository110 = class {
|
|
|
3794
4057
|
async deleteByDocumentHeader({ id }) {
|
|
3795
4058
|
await this.api.delete(`${this.route}document_header/${id}`);
|
|
3796
4059
|
}
|
|
4060
|
+
async publicAuthenticate({ id }) {
|
|
4061
|
+
const response = await this.api.get(`${this.route}authenticate/${id}`);
|
|
4062
|
+
return response.data;
|
|
4063
|
+
}
|
|
3797
4064
|
};
|
|
3798
4065
|
|
|
3799
4066
|
// src/modules/stock/tag.ts
|
|
3800
4067
|
var tag_exports = {};
|
|
3801
4068
|
__export(tag_exports, {
|
|
3802
|
-
default: () =>
|
|
4069
|
+
default: () => Repository112
|
|
3803
4070
|
});
|
|
3804
|
-
var
|
|
4071
|
+
var Repository112 = class {
|
|
3805
4072
|
constructor({ api, route }) {
|
|
3806
4073
|
this.api = api;
|
|
3807
4074
|
this.route = route;
|
|
@@ -3825,9 +4092,9 @@ var Repository111 = class {
|
|
|
3825
4092
|
// src/modules/stock/gmails.ts
|
|
3826
4093
|
var gmails_exports = {};
|
|
3827
4094
|
__export(gmails_exports, {
|
|
3828
|
-
default: () =>
|
|
4095
|
+
default: () => Repository113
|
|
3829
4096
|
});
|
|
3830
|
-
var
|
|
4097
|
+
var Repository113 = class {
|
|
3831
4098
|
constructor({ api, route }) {
|
|
3832
4099
|
this.api = api;
|
|
3833
4100
|
this.route = route;
|
|
@@ -3845,9 +4112,9 @@ var Repository112 = class {
|
|
|
3845
4112
|
// src/modules/document/NPF.ts
|
|
3846
4113
|
var NPF_exports = {};
|
|
3847
4114
|
__export(NPF_exports, {
|
|
3848
|
-
default: () =>
|
|
4115
|
+
default: () => Repository114
|
|
3849
4116
|
});
|
|
3850
|
-
var
|
|
4117
|
+
var Repository114 = class {
|
|
3851
4118
|
constructor({ api, route }) {
|
|
3852
4119
|
this.api = api;
|
|
3853
4120
|
this.route = route;
|
|
@@ -3861,9 +4128,9 @@ var Repository113 = class {
|
|
|
3861
4128
|
// src/modules/document/NRCL.ts
|
|
3862
4129
|
var NRCL_exports = {};
|
|
3863
4130
|
__export(NRCL_exports, {
|
|
3864
|
-
default: () =>
|
|
4131
|
+
default: () => Repository115
|
|
3865
4132
|
});
|
|
3866
|
-
var
|
|
4133
|
+
var Repository115 = class {
|
|
3867
4134
|
constructor({ api, route }) {
|
|
3868
4135
|
this.api = api;
|
|
3869
4136
|
this.route = route;
|
|
@@ -3878,15 +4145,15 @@ var Repository114 = class {
|
|
|
3878
4145
|
// src/modules/supply/currentAccount.ts
|
|
3879
4146
|
var currentAccount_exports = {};
|
|
3880
4147
|
__export(currentAccount_exports, {
|
|
3881
|
-
default: () =>
|
|
4148
|
+
default: () => Repository116
|
|
3882
4149
|
});
|
|
3883
|
-
var
|
|
4150
|
+
var Repository116 = class {
|
|
3884
4151
|
constructor({ api, route }) {
|
|
3885
4152
|
this.api = api;
|
|
3886
4153
|
this.route = route;
|
|
3887
4154
|
}
|
|
3888
4155
|
async findCurrentAccountByOwnerId(params) {
|
|
3889
|
-
const response = await this.api.get(`${this.route}
|
|
4156
|
+
const response = await this.api.get(`${this.route}`, {
|
|
3890
4157
|
params
|
|
3891
4158
|
});
|
|
3892
4159
|
return response.data;
|
|
@@ -3898,7 +4165,7 @@ var Repository115 = class {
|
|
|
3898
4165
|
return response.data;
|
|
3899
4166
|
}
|
|
3900
4167
|
async exportCurrentAccount(params) {
|
|
3901
|
-
const response = await this.api.get(`${this.route}
|
|
4168
|
+
const response = await this.api.get(`${this.route}export`, {
|
|
3902
4169
|
params
|
|
3903
4170
|
});
|
|
3904
4171
|
return response.data;
|
|
@@ -3909,6 +4176,12 @@ var Repository115 = class {
|
|
|
3909
4176
|
});
|
|
3910
4177
|
return response.data;
|
|
3911
4178
|
}
|
|
4179
|
+
async findClientOverpaidCredit(params) {
|
|
4180
|
+
const response = await this.api.get(`${this.route}overpaid_credit`, {
|
|
4181
|
+
params
|
|
4182
|
+
});
|
|
4183
|
+
return response.data;
|
|
4184
|
+
}
|
|
3912
4185
|
async findClientUnpaidDebit(params) {
|
|
3913
4186
|
const response = await this.api.get(`${this.route}unpaid_debit`, {
|
|
3914
4187
|
params
|
|
@@ -3935,9 +4208,9 @@ var Repository115 = class {
|
|
|
3935
4208
|
// src/modules/supply/paymentBatch.ts
|
|
3936
4209
|
var paymentBatch_exports = {};
|
|
3937
4210
|
__export(paymentBatch_exports, {
|
|
3938
|
-
default: () =>
|
|
4211
|
+
default: () => Repository117
|
|
3939
4212
|
});
|
|
3940
|
-
var
|
|
4213
|
+
var Repository117 = class {
|
|
3941
4214
|
constructor({ api, route }) {
|
|
3942
4215
|
this.api = api;
|
|
3943
4216
|
this.route = route;
|
|
@@ -3981,9 +4254,9 @@ var Repository116 = class {
|
|
|
3981
4254
|
// src/modules/ui/portal.ts
|
|
3982
4255
|
var portal_exports = {};
|
|
3983
4256
|
__export(portal_exports, {
|
|
3984
|
-
default: () =>
|
|
4257
|
+
default: () => Repository118
|
|
3985
4258
|
});
|
|
3986
|
-
var
|
|
4259
|
+
var Repository118 = class {
|
|
3987
4260
|
constructor({ api, route }) {
|
|
3988
4261
|
this.api = api;
|
|
3989
4262
|
this.route = route;
|
|
@@ -4007,9 +4280,9 @@ var Repository117 = class {
|
|
|
4007
4280
|
// src/modules/supply/googleSheetPool.ts
|
|
4008
4281
|
var googleSheetPool_exports = {};
|
|
4009
4282
|
__export(googleSheetPool_exports, {
|
|
4010
|
-
default: () =>
|
|
4283
|
+
default: () => Repository119
|
|
4011
4284
|
});
|
|
4012
|
-
var
|
|
4285
|
+
var Repository119 = class {
|
|
4013
4286
|
constructor({ api, route }) {
|
|
4014
4287
|
this.api = api;
|
|
4015
4288
|
this.route = route;
|
|
@@ -4023,9 +4296,9 @@ var Repository118 = class {
|
|
|
4023
4296
|
// src/modules/stock/accountCode.ts
|
|
4024
4297
|
var accountCode_exports = {};
|
|
4025
4298
|
__export(accountCode_exports, {
|
|
4026
|
-
default: () =>
|
|
4299
|
+
default: () => Repository120
|
|
4027
4300
|
});
|
|
4028
|
-
var
|
|
4301
|
+
var Repository120 = class {
|
|
4029
4302
|
constructor({ api, route }) {
|
|
4030
4303
|
this.api = api;
|
|
4031
4304
|
this.route = route;
|
|
@@ -4041,9 +4314,9 @@ var Repository119 = class {
|
|
|
4041
4314
|
// src/modules/llm/llm.ts
|
|
4042
4315
|
var llm_exports = {};
|
|
4043
4316
|
__export(llm_exports, {
|
|
4044
|
-
default: () =>
|
|
4317
|
+
default: () => Repository121
|
|
4045
4318
|
});
|
|
4046
|
-
var
|
|
4319
|
+
var Repository121 = class {
|
|
4047
4320
|
constructor({ api, route }) {
|
|
4048
4321
|
this.api = api;
|
|
4049
4322
|
this.route = route;
|
|
@@ -4088,14 +4361,18 @@ var Repository120 = class {
|
|
|
4088
4361
|
const response = await this.api.post(`${this.route}identify_language`, body);
|
|
4089
4362
|
return response.data;
|
|
4090
4363
|
}
|
|
4364
|
+
async identifyAndTranslate(body) {
|
|
4365
|
+
const response = await this.api.post(`${this.route}identify_and_translate`, body);
|
|
4366
|
+
return response.data;
|
|
4367
|
+
}
|
|
4091
4368
|
};
|
|
4092
4369
|
|
|
4093
4370
|
// src/modules/integration/patchNotes.ts
|
|
4094
4371
|
var patchNotes_exports = {};
|
|
4095
4372
|
__export(patchNotes_exports, {
|
|
4096
|
-
default: () =>
|
|
4373
|
+
default: () => Repository122
|
|
4097
4374
|
});
|
|
4098
|
-
var
|
|
4375
|
+
var Repository122 = class {
|
|
4099
4376
|
constructor({ api, route }) {
|
|
4100
4377
|
this.api = api;
|
|
4101
4378
|
this.route = route;
|
|
@@ -4113,9 +4390,9 @@ var Repository121 = class {
|
|
|
4113
4390
|
// src/modules/supply/documentHeaderSurvey.ts
|
|
4114
4391
|
var documentHeaderSurvey_exports = {};
|
|
4115
4392
|
__export(documentHeaderSurvey_exports, {
|
|
4116
|
-
default: () =>
|
|
4393
|
+
default: () => Repository123
|
|
4117
4394
|
});
|
|
4118
|
-
var
|
|
4395
|
+
var Repository123 = class {
|
|
4119
4396
|
constructor({ api, route }) {
|
|
4120
4397
|
this.api = api;
|
|
4121
4398
|
this.route = route;
|
|
@@ -4137,9 +4414,9 @@ var Repository122 = class {
|
|
|
4137
4414
|
// src/modules/supply/documentHeaderSubscriber.ts
|
|
4138
4415
|
var documentHeaderSubscriber_exports = {};
|
|
4139
4416
|
__export(documentHeaderSubscriber_exports, {
|
|
4140
|
-
default: () =>
|
|
4417
|
+
default: () => Repository124
|
|
4141
4418
|
});
|
|
4142
|
-
var
|
|
4419
|
+
var Repository124 = class {
|
|
4143
4420
|
constructor({ api, route }) {
|
|
4144
4421
|
this.api = api;
|
|
4145
4422
|
this.route = route;
|
|
@@ -4161,9 +4438,9 @@ var Repository123 = class {
|
|
|
4161
4438
|
// src/modules/stock/googleCalendar.ts
|
|
4162
4439
|
var googleCalendar_exports = {};
|
|
4163
4440
|
__export(googleCalendar_exports, {
|
|
4164
|
-
default: () =>
|
|
4441
|
+
default: () => Repository125
|
|
4165
4442
|
});
|
|
4166
|
-
var
|
|
4443
|
+
var Repository125 = class {
|
|
4167
4444
|
constructor({ api, route }) {
|
|
4168
4445
|
this.api = api;
|
|
4169
4446
|
this.route = route;
|
|
@@ -4181,9 +4458,9 @@ var Repository124 = class {
|
|
|
4181
4458
|
// src/modules/supply/saft.ts
|
|
4182
4459
|
var saft_exports = {};
|
|
4183
4460
|
__export(saft_exports, {
|
|
4184
|
-
default: () =>
|
|
4461
|
+
default: () => Repository126
|
|
4185
4462
|
});
|
|
4186
|
-
var
|
|
4463
|
+
var Repository126 = class {
|
|
4187
4464
|
constructor({ route }) {
|
|
4188
4465
|
this.route = route;
|
|
4189
4466
|
}
|
|
@@ -4196,6 +4473,70 @@ var Repository125 = class {
|
|
|
4196
4473
|
}
|
|
4197
4474
|
};
|
|
4198
4475
|
|
|
4476
|
+
// src/modules/stock/productLocation.ts
|
|
4477
|
+
var productLocation_exports = {};
|
|
4478
|
+
__export(productLocation_exports, {
|
|
4479
|
+
default: () => Repository127
|
|
4480
|
+
});
|
|
4481
|
+
var Repository127 = class {
|
|
4482
|
+
constructor({ api, route }) {
|
|
4483
|
+
this.api = api;
|
|
4484
|
+
this.route = route;
|
|
4485
|
+
}
|
|
4486
|
+
async findMany() {
|
|
4487
|
+
const response = await this.api.get(`${this.route}find_many`);
|
|
4488
|
+
return response.data;
|
|
4489
|
+
}
|
|
4490
|
+
};
|
|
4491
|
+
|
|
4492
|
+
// src/modules/user/timeSheet.ts
|
|
4493
|
+
var timeSheet_exports = {};
|
|
4494
|
+
__export(timeSheet_exports, {
|
|
4495
|
+
default: () => TimesheetRepository
|
|
4496
|
+
});
|
|
4497
|
+
var TimesheetRepository = class {
|
|
4498
|
+
constructor({ api, route }) {
|
|
4499
|
+
this.api = api;
|
|
4500
|
+
this.route = route.endsWith("/") ? route : `${route}/`;
|
|
4501
|
+
}
|
|
4502
|
+
async find(params) {
|
|
4503
|
+
const response = await this.api.get(`${this.route}`, { params });
|
|
4504
|
+
return response.data;
|
|
4505
|
+
}
|
|
4506
|
+
async findById(selector) {
|
|
4507
|
+
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
4508
|
+
return response.data;
|
|
4509
|
+
}
|
|
4510
|
+
async create(body) {
|
|
4511
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
4512
|
+
return response.data;
|
|
4513
|
+
}
|
|
4514
|
+
async update(selector, body) {
|
|
4515
|
+
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
4516
|
+
return response.data;
|
|
4517
|
+
}
|
|
4518
|
+
async deleteOne(selector) {
|
|
4519
|
+
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
4520
|
+
return response.data;
|
|
4521
|
+
}
|
|
4522
|
+
};
|
|
4523
|
+
|
|
4524
|
+
// src/modules/document/CAT.ts
|
|
4525
|
+
var CAT_exports = {};
|
|
4526
|
+
__export(CAT_exports, {
|
|
4527
|
+
default: () => Repository128
|
|
4528
|
+
});
|
|
4529
|
+
var Repository128 = class {
|
|
4530
|
+
constructor({ api, route }) {
|
|
4531
|
+
this.api = api;
|
|
4532
|
+
this.route = route;
|
|
4533
|
+
}
|
|
4534
|
+
async create(data) {
|
|
4535
|
+
const result = await this.api.post(`${this.route}`, data);
|
|
4536
|
+
return result.data;
|
|
4537
|
+
}
|
|
4538
|
+
};
|
|
4539
|
+
|
|
4199
4540
|
// src/main.ts
|
|
4200
4541
|
var API = class {
|
|
4201
4542
|
constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
|
|
@@ -4207,10 +4548,14 @@ var API = class {
|
|
|
4207
4548
|
if (tokenBearer) {
|
|
4208
4549
|
this.defaultHeaders.setAuthorization(tokenBearer);
|
|
4209
4550
|
}
|
|
4210
|
-
this.client =
|
|
4551
|
+
this.client = axios2.create({
|
|
4211
4552
|
baseURL: gatewayUrl,
|
|
4212
4553
|
headers: this.defaultHeaders
|
|
4213
4554
|
});
|
|
4555
|
+
this.client.interceptors.response.use(
|
|
4556
|
+
(response) => response,
|
|
4557
|
+
(error) => Promise.reject(parseApiError(error))
|
|
4558
|
+
);
|
|
4214
4559
|
const getServicePath = (service) => {
|
|
4215
4560
|
const baseUrl = services[service];
|
|
4216
4561
|
const servicePath = processEnvironment === "localhost" ? "/" : `${service}/`;
|
|
@@ -4230,184 +4575,283 @@ var API = class {
|
|
|
4230
4575
|
api: this.client,
|
|
4231
4576
|
route: `${this.services[service]}${module}/`
|
|
4232
4577
|
});
|
|
4233
|
-
this.
|
|
4234
|
-
this.
|
|
4235
|
-
this.
|
|
4236
|
-
this.
|
|
4237
|
-
this.
|
|
4238
|
-
this.
|
|
4239
|
-
|
|
4578
|
+
this.WebSocket = new Service(getModuleParams("view", "ws"));
|
|
4579
|
+
this.BankData = new Repository(getModuleParams("users", Nomalism.BankData.Route));
|
|
4580
|
+
this.Client = new Repository2(getModuleParams("users", Nomalism.Client.Route));
|
|
4581
|
+
this.ClientType = new Repository3(getModuleParams("users", Nomalism.ClientType.Route));
|
|
4582
|
+
this.Chat = new Repository4(getModuleParams("stock", Nomalism.Chat.Route));
|
|
4583
|
+
this.Commissioner = new Repository5(
|
|
4584
|
+
getModuleParams("users", Nomalism.Commissioner.Route)
|
|
4585
|
+
);
|
|
4586
|
+
this.Country = new Repository6(getModuleParams("users", Nomalism.Country.Route));
|
|
4587
|
+
this.DocumentHeader = new Repository7(
|
|
4588
|
+
getModuleParams("stock", Nomalism.DocumentHeader.Route)
|
|
4589
|
+
);
|
|
4240
4590
|
this.DocumentHeaderHistory = new Repository8(
|
|
4241
|
-
getModuleParams("stock",
|
|
4591
|
+
getModuleParams("stock", Nomalism.DocumentHeaderHistory.Route)
|
|
4592
|
+
);
|
|
4593
|
+
this.BillOfLading = new Repository9(
|
|
4594
|
+
getModuleParams("stock", Nomalism.BillOfLading.Route)
|
|
4595
|
+
);
|
|
4596
|
+
this.ProductionOrder = new Repository10(
|
|
4597
|
+
getModuleParams("stock", Nomalism.ProductionOrder.Route)
|
|
4242
4598
|
);
|
|
4243
|
-
this.
|
|
4244
|
-
this.ProductionOrder = new Repository10(getModuleParams("stock", "document_header"));
|
|
4245
|
-
this.Proforma = new Repository11(getModuleParams("stock", "document_header"));
|
|
4599
|
+
this.Proforma = new Repository11(getModuleParams("stock", Nomalism.Proforma.Route));
|
|
4246
4600
|
this.PropostaFornecedor = new Repository12(
|
|
4247
|
-
getModuleParams("stock",
|
|
4601
|
+
getModuleParams("stock", Nomalism.PropostaFornecedor.Route)
|
|
4248
4602
|
);
|
|
4249
4603
|
this.ProviderCreditNoteFromReturn = new Repository13(
|
|
4250
|
-
getModuleParams("stock",
|
|
4604
|
+
getModuleParams("stock", Nomalism.ProviderCreditNoteFromReturn.Route)
|
|
4251
4605
|
);
|
|
4252
4606
|
this.ProviderFinancialCreditNote = new Repository14(
|
|
4253
|
-
getModuleParams("stock",
|
|
4607
|
+
getModuleParams("stock", Nomalism.ProviderFinancialCreditNote.Route)
|
|
4254
4608
|
);
|
|
4255
4609
|
this.ProviderServiceInvoice = new Repository15(
|
|
4256
|
-
getModuleParams("stock",
|
|
4610
|
+
getModuleParams("stock", Nomalism.ProviderServiceInvoice.Route)
|
|
4611
|
+
);
|
|
4612
|
+
this.DocumentLine = new Repository16(
|
|
4613
|
+
getModuleParams("stock", Nomalism.DocumentLine.Route)
|
|
4257
4614
|
);
|
|
4258
|
-
this.DocumentLine = new Repository16(getModuleParams("stock", "document_line"));
|
|
4259
4615
|
this.DocumentLineAssoc = new Repository17(
|
|
4260
|
-
getModuleParams("stock",
|
|
4616
|
+
getModuleParams("stock", Nomalism.DocumentLineAssoc.Route)
|
|
4617
|
+
);
|
|
4618
|
+
this.DocumentType = new Repository18(
|
|
4619
|
+
getModuleParams("stock", Nomalism.DocumentType.Route)
|
|
4620
|
+
);
|
|
4621
|
+
this.Favorites = new Repository19(getModuleParams("users", Nomalism.Favorites.Route));
|
|
4622
|
+
this.File = new Repository20(getModuleParams("stock", Nomalism.File.Route));
|
|
4623
|
+
this.GoogleSheets = new Repository21(
|
|
4624
|
+
getModuleParams("integration", Nomalism.GoogleSheets.Route)
|
|
4625
|
+
);
|
|
4626
|
+
this.Language = new Repository22(getModuleParams("users", Nomalism.Language.Route));
|
|
4627
|
+
this.Location = new Repository23(getModuleParams("stock", Nomalism.Location.Route));
|
|
4628
|
+
this.Multimedia = new Repository24(getModuleParams("documents", Nomalism.Multimedia.Route));
|
|
4629
|
+
this.Observation = new Repository25(
|
|
4630
|
+
getModuleParams("integration", Nomalism.Observation.Route)
|
|
4631
|
+
);
|
|
4632
|
+
this.ObservationType = new Repository26(
|
|
4633
|
+
getModuleParams("integration", Nomalism.ObservationType.Route)
|
|
4634
|
+
);
|
|
4635
|
+
this.Password = new Repository27(getModuleParams("users", Nomalism.Password.Route));
|
|
4636
|
+
this.ProductImage = new Repository28(
|
|
4637
|
+
getModuleParams("stock", Nomalism.ProductImage.Route)
|
|
4638
|
+
);
|
|
4639
|
+
this.Promotion = new Repository29(getModuleParams("stock", Nomalism.Promotion.Route));
|
|
4640
|
+
this.PromotionAssoc = new Repository30(
|
|
4641
|
+
getModuleParams("stock", Nomalism.PromotionAssoc.Route)
|
|
4642
|
+
);
|
|
4643
|
+
this.Providers = new Repository31(getModuleParams("users", Nomalism.Providers.Route));
|
|
4644
|
+
this.ProviderType = new Repository32(
|
|
4645
|
+
getModuleParams("users", Nomalism.ProviderType.Route)
|
|
4646
|
+
);
|
|
4647
|
+
this.PurchaseConditions = new Repository33(
|
|
4648
|
+
getModuleParams("users", Nomalism.PurchaseConditions.Route)
|
|
4649
|
+
);
|
|
4650
|
+
this.ReasonForExemption = new Repository34(
|
|
4651
|
+
getModuleParams("users", Nomalism.ReasonForExemption.Route)
|
|
4652
|
+
);
|
|
4653
|
+
this.RefreshToken = new Repository35(
|
|
4654
|
+
getModuleParams("users", Nomalism.RefreshToken.Route)
|
|
4261
4655
|
);
|
|
4262
|
-
this.
|
|
4263
|
-
|
|
4264
|
-
this.File = new Repository20(getModuleParams("stock", "file"));
|
|
4265
|
-
this.GoogleSheets = new Repository21(getModuleParams("integration", "google"));
|
|
4266
|
-
this.Language = new Repository22(getModuleParams("users", "language"));
|
|
4267
|
-
this.Location = new Repository23(getModuleParams("stock", "location"));
|
|
4268
|
-
this.Logout = new Repository24(getModuleParams("users", "logout"));
|
|
4269
|
-
this.Multimedia = new Repository25(getModuleParams("documents", "multimedia"));
|
|
4270
|
-
this.Observation = new Repository26(getModuleParams("integration", "observation"));
|
|
4271
|
-
this.ObservationType = new Repository27(
|
|
4272
|
-
getModuleParams("integration", "observation_type")
|
|
4656
|
+
this.SegmentsArea = new Repository36(
|
|
4657
|
+
getModuleParams("users", Nomalism.SegmentsArea.Route)
|
|
4273
4658
|
);
|
|
4274
|
-
this.
|
|
4275
|
-
this.
|
|
4276
|
-
this.
|
|
4277
|
-
|
|
4278
|
-
this.Providers = new Repository32(getModuleParams("users", "provider"));
|
|
4279
|
-
this.ProviderType = new Repository33(getModuleParams("users", "provider_type"));
|
|
4280
|
-
this.PurchaseConditions = new Repository34(
|
|
4281
|
-
getModuleParams("users", "purchase_condition")
|
|
4659
|
+
this.Sessions = new Repository37(getModuleParams("users", Nomalism.Sessions.Route));
|
|
4660
|
+
this.Shippings = new Repository38(getModuleParams("users", Nomalism.Shippings.Route));
|
|
4661
|
+
this.StoreOperator = new Repository39(
|
|
4662
|
+
getModuleParams("users", Nomalism.StoreOperator.Route)
|
|
4282
4663
|
);
|
|
4283
|
-
this.
|
|
4284
|
-
getModuleParams("users",
|
|
4664
|
+
this.SystemModule = new Repository40(
|
|
4665
|
+
getModuleParams("users", Nomalism.SystemModule.Route)
|
|
4285
4666
|
);
|
|
4286
|
-
this.
|
|
4287
|
-
this.
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
this.
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
this.
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
this.
|
|
4297
|
-
this.
|
|
4298
|
-
this.
|
|
4299
|
-
this.
|
|
4300
|
-
this.
|
|
4301
|
-
|
|
4302
|
-
|
|
4667
|
+
this.Swift = new Repository41(getModuleParams("users", Nomalism.Swift.Route));
|
|
4668
|
+
this.TypeOfLocation = new Repository42(
|
|
4669
|
+
getModuleParams("stock", Nomalism.TypeOfLocation.Route)
|
|
4670
|
+
);
|
|
4671
|
+
this.UnitOfMeasure = new Repository43(
|
|
4672
|
+
getModuleParams("stock", Nomalism.UnitOfMeasure.Route)
|
|
4673
|
+
);
|
|
4674
|
+
this.UserPositions = new Repository44(
|
|
4675
|
+
getModuleParams("users", Nomalism.UserPositions.Route)
|
|
4676
|
+
);
|
|
4677
|
+
this.Users = new Repository45(getModuleParams("users", Nomalism.Users.Route));
|
|
4678
|
+
this.VatTax = new Repository46(getModuleParams("stock", Nomalism.VatTax.Route));
|
|
4679
|
+
this.VatTaxZone = new Repository47(getModuleParams("stock", Nomalism.VatTaxZone.Route));
|
|
4680
|
+
this.Workflow = new Repository48(getModuleParams("stock", Nomalism.Workflow.Route));
|
|
4681
|
+
this.DeliveryMethods = new Repository49(
|
|
4682
|
+
getModuleParams("users", Nomalism.DeliveryMethods.Route)
|
|
4683
|
+
);
|
|
4684
|
+
this.MaturityDates = new Repository50(
|
|
4685
|
+
getModuleParams("users", Nomalism.MaturityDates.Route)
|
|
4686
|
+
);
|
|
4687
|
+
this.PaymentMethods = new Repository51(
|
|
4688
|
+
getModuleParams("users", Nomalism.PaymentMethods.Route)
|
|
4689
|
+
);
|
|
4690
|
+
this.Vehicles = new Repository52(getModuleParams("users", Nomalism.Vehicles.Route));
|
|
4303
4691
|
this.ExternalDocumentType = new Repository53(
|
|
4304
|
-
getModuleParams("stock",
|
|
4692
|
+
getModuleParams("stock", Nomalism.ExternalDocumentType.Route)
|
|
4305
4693
|
);
|
|
4306
|
-
this.DocumentSet = new Repository54(getModuleParams("stock",
|
|
4307
|
-
this.Payment = new Repository55(getModuleParams("stock",
|
|
4694
|
+
this.DocumentSet = new Repository54(getModuleParams("stock", Nomalism.DocumentSet.Route));
|
|
4695
|
+
this.Payment = new Repository55(getModuleParams("stock", Nomalism.Payment.Route));
|
|
4308
4696
|
this.ExternalDocumentHeader = new Repository56(
|
|
4309
|
-
getModuleParams("stock",
|
|
4697
|
+
getModuleParams("stock", Nomalism.ExternalDocumentHeader.Route)
|
|
4698
|
+
);
|
|
4699
|
+
this.VatValidation = new Repository57(
|
|
4700
|
+
getModuleParams("stock", Nomalism.VatValidation.Route)
|
|
4701
|
+
);
|
|
4702
|
+
this.StockMovement = new Repository58(
|
|
4703
|
+
getModuleParams("stock", Nomalism.StockMovement.Route)
|
|
4704
|
+
);
|
|
4705
|
+
this.ZipCode = new Repository59(getModuleParams("users", Nomalism.ZipCode.Route));
|
|
4706
|
+
this.Tenant = new Repository60(getModuleParams("users", Nomalism.Tenant.Route));
|
|
4707
|
+
this.PreSale = new Repository61(getModuleParams("stock", Nomalism.PreSale.Route));
|
|
4708
|
+
this.PreSaleProduct = new Repository62(
|
|
4709
|
+
getModuleParams("stock", Nomalism.PreSaleProduct.Route)
|
|
4710
|
+
);
|
|
4711
|
+
this.OrderManagement = new Repository63(
|
|
4712
|
+
getModuleParams("stock", Nomalism.OrderManagement.Route)
|
|
4310
4713
|
);
|
|
4311
|
-
this.
|
|
4312
|
-
this.
|
|
4313
|
-
this.ZipCode = new Repository59(getModuleParams("users", "zip_code"));
|
|
4314
|
-
this.Tenant = new Repository60(getModuleParams("users", "tenant"));
|
|
4315
|
-
this.PreSale = new Repository61(getModuleParams("stock", "pre_sale"));
|
|
4316
|
-
this.PreSaleProduct = new Repository62(getModuleParams("stock", "pre_sale_product"));
|
|
4317
|
-
this.OrderManagement = new Repository63(getModuleParams("stock", "order_management"));
|
|
4318
|
-
this.Npc = new Repository64(getModuleParams("print", "npc"));
|
|
4319
|
-
this.Printer = new Repository65(getModuleParams("print", "printer"));
|
|
4714
|
+
this.Npc = new Repository64(getModuleParams("print", Nomalism.Npc.Route));
|
|
4715
|
+
this.Printer = new Repository65(getModuleParams("print", Nomalism.Printer.Route));
|
|
4320
4716
|
this.SchedulePrintJob = new Repository66(
|
|
4321
|
-
getModuleParams("print",
|
|
4717
|
+
getModuleParams("print", Nomalism.SchedulePrintJob.Route)
|
|
4322
4718
|
);
|
|
4323
|
-
this.QueryList = new Repository67(getModuleParams("stock",
|
|
4324
|
-
this.QueryParameter = new Repository68(
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
this.
|
|
4719
|
+
this.QueryList = new Repository67(getModuleParams("stock", Nomalism.QueryList.Route));
|
|
4720
|
+
this.QueryParameter = new Repository68(
|
|
4721
|
+
getModuleParams("stock", Nomalism.QueryParameter.Route)
|
|
4722
|
+
);
|
|
4723
|
+
this.ReturnReason = new Repository69(
|
|
4724
|
+
getModuleParams("stock", Nomalism.ReturnReason.Route)
|
|
4725
|
+
);
|
|
4726
|
+
this.PropostaSheets = new Repository70(
|
|
4727
|
+
getModuleParams("stock", Nomalism.PropostaSheets.Route)
|
|
4728
|
+
);
|
|
4729
|
+
this.Schedule = new Repository71(getModuleParams("stock", Nomalism.Schedule.Route));
|
|
4328
4730
|
this.GoogleFilePermission = new Repository72(
|
|
4329
|
-
getModuleParams("integration",
|
|
4731
|
+
getModuleParams("integration", Nomalism.GoogleFilePermission.Route)
|
|
4330
4732
|
);
|
|
4331
|
-
this.Settings = new Repository73(getModuleParams("integration",
|
|
4332
|
-
this.Tickets = new Repository74(getModuleParams("tickets",
|
|
4333
|
-
this.Channel = new Repository75(getModuleParams("tickets",
|
|
4334
|
-
this.TicketsLanguage = new Repository76(
|
|
4335
|
-
|
|
4733
|
+
this.Settings = new Repository73(getModuleParams("integration", Nomalism.Settings.Route));
|
|
4734
|
+
this.Tickets = new Repository74(getModuleParams("tickets", Nomalism.Tickets.Route));
|
|
4735
|
+
this.Channel = new Repository75(getModuleParams("tickets", Nomalism.Channel.Route));
|
|
4736
|
+
this.TicketsLanguage = new Repository76(
|
|
4737
|
+
getModuleParams("tickets", Nomalism.TicketsLanguage.Route)
|
|
4738
|
+
);
|
|
4739
|
+
this.Clt = new Repository77(getModuleParams("tickets", Nomalism.CLT.Route));
|
|
4336
4740
|
this.StartDocumentHeaderLastUpdate = new Repository78(
|
|
4337
|
-
getModuleParams("stock",
|
|
4741
|
+
getModuleParams("stock", Nomalism.StartDocumentHeaderLastUpdate.Route)
|
|
4742
|
+
);
|
|
4743
|
+
this.Persona = new Repository79(getModuleParams("users", Nomalism.Persona.Route));
|
|
4744
|
+
this.ProjectInfo = new Repository80(
|
|
4745
|
+
getModuleParams("integration", Nomalism.ProjectInfo.Route)
|
|
4338
4746
|
);
|
|
4339
|
-
this.
|
|
4340
|
-
this.
|
|
4341
|
-
this.Order = new Repository81(getModuleParams("stock", "order"));
|
|
4342
|
-
this.Purchase = new Repository82(getModuleParams("stock", "purchase"));
|
|
4747
|
+
this.Order = new Repository81(getModuleParams("stock", Nomalism.Order.Route));
|
|
4748
|
+
this.Purchase = new Repository82(getModuleParams("stock", Nomalism.Purchase.Route));
|
|
4343
4749
|
this.MaterialEntrance = new Repository83(
|
|
4344
|
-
getModuleParams("stock",
|
|
4750
|
+
getModuleParams("stock", Nomalism.MaterialEntrance.Route)
|
|
4751
|
+
);
|
|
4752
|
+
this.Transformado = new Repository84(
|
|
4753
|
+
getModuleParams("stock", Nomalism.Transformado.Route)
|
|
4754
|
+
);
|
|
4755
|
+
this.UpfrontReturn = new Repository85(
|
|
4756
|
+
getModuleParams("stock", Nomalism.UpfrontReturn.Route)
|
|
4757
|
+
);
|
|
4758
|
+
this.SavedEmPicking = new Repository86(
|
|
4759
|
+
getModuleParams("stock", Nomalism.SavedEmPicking.Route)
|
|
4760
|
+
);
|
|
4761
|
+
this.EmailTemplate = new Repository87(
|
|
4762
|
+
getModuleParams("integration", Nomalism.EmailTemplate.Route)
|
|
4345
4763
|
);
|
|
4346
|
-
this.Transformado = new Repository84(getModuleParams("stock", "transformado"));
|
|
4347
|
-
this.UpfrontReturn = new Repository85(getModuleParams("stock", "upfront_return"));
|
|
4348
|
-
this.SavedEmPicking = new Repository86(getModuleParams("stock", "saved_em_picking"));
|
|
4349
|
-
this.EmailTemplate = new Repository87(getModuleParams("integration", "email_template"));
|
|
4350
4764
|
this.EmailTemplateAttachment = new Repository88(
|
|
4351
|
-
getModuleParams("integration",
|
|
4765
|
+
getModuleParams("integration", Nomalism.EmailTemplateAttachment.Route)
|
|
4352
4766
|
);
|
|
4353
|
-
this.Prison = new Repository89(getModuleParams("stock",
|
|
4354
|
-
this.Quebra = new Repository90(getModuleParams("stock",
|
|
4355
|
-
this.Inventario = new Repository91(getModuleParams("stock",
|
|
4767
|
+
this.Prison = new Repository89(getModuleParams("stock", Nomalism.Prison.Route));
|
|
4768
|
+
this.Quebra = new Repository90(getModuleParams("stock", Nomalism.Quebra.Route));
|
|
4769
|
+
this.Inventario = new Repository91(getModuleParams("stock", Nomalism.Inventario.Route));
|
|
4356
4770
|
this.ReturnToProvider = new Repository92(
|
|
4357
|
-
getModuleParams("stock",
|
|
4771
|
+
getModuleParams("stock", Nomalism.ReturnToProvider.Route)
|
|
4358
4772
|
);
|
|
4359
4773
|
this.EmailVerification = new Repository93(
|
|
4360
|
-
getModuleParams("integration",
|
|
4774
|
+
getModuleParams("integration", Nomalism.EmailVerification.Route)
|
|
4361
4775
|
);
|
|
4362
|
-
this.EmailLog = new Repository94(getModuleParams("integration",
|
|
4776
|
+
this.EmailLog = new Repository94(getModuleParams("integration", Nomalism.EmailLog.Route));
|
|
4363
4777
|
this.DocumentLineNote = new Repository95(
|
|
4364
|
-
getModuleParams("stock",
|
|
4778
|
+
getModuleParams("stock", Nomalism.DocumentLineNote.Route)
|
|
4365
4779
|
);
|
|
4366
4780
|
this.SavedProviderProposal = new Repository96(
|
|
4367
|
-
getModuleParams("stock",
|
|
4781
|
+
getModuleParams("stock", Nomalism.SavedProviderProposal.Route)
|
|
4368
4782
|
);
|
|
4369
4783
|
this.ProductGoogleSheets = new Repository97(
|
|
4370
|
-
getModuleParams("stock",
|
|
4784
|
+
getModuleParams("stock", Nomalism.ProductGoogleSheets.Route)
|
|
4785
|
+
);
|
|
4786
|
+
this.Task = new Repository98(getModuleParams("stock", Nomalism.Task.Route));
|
|
4787
|
+
this.TaskMessage = new Repository99(getModuleParams("stock", Nomalism.TaskMessage.Route));
|
|
4788
|
+
this.RecurrentTasks = new Repository100(
|
|
4789
|
+
getModuleParams("stock", Nomalism.RecurrentTasks.Route)
|
|
4371
4790
|
);
|
|
4372
|
-
this.
|
|
4373
|
-
this.
|
|
4374
|
-
this.
|
|
4375
|
-
this.TaskRead = new Repository101(getModuleParams("stock", "task_read"));
|
|
4376
|
-
this.Theme = new Repository102(getModuleParams("users", "theme"));
|
|
4377
|
-
this.Dashboard = new Repository103(getModuleParams("stock", "dashboard"));
|
|
4791
|
+
this.TaskRead = new Repository101(getModuleParams("stock", Nomalism.TaskRead.Route));
|
|
4792
|
+
this.Theme = new Repository102(getModuleParams("users", Nomalism.Theme.Route));
|
|
4793
|
+
this.Dashboard = new Repository103(getModuleParams("stock", Nomalism.Dashboard.Route));
|
|
4378
4794
|
this.ChatRapidMessage = new Repository104(
|
|
4379
|
-
getModuleParams("stock",
|
|
4795
|
+
getModuleParams("stock", Nomalism.ChatRapidMessage.Route)
|
|
4796
|
+
);
|
|
4797
|
+
this.SideMenu = new Repository105(getModuleParams("stock", Nomalism.SideMenu.Route));
|
|
4798
|
+
this.SidemenuHighlight = new Repository106(
|
|
4799
|
+
getModuleParams("stock", Nomalism.SidemenuHighlight.Route)
|
|
4800
|
+
);
|
|
4801
|
+
this.ErrorLog = new Repository107(getModuleParams("view", Nomalism.ErrorLog.Route));
|
|
4802
|
+
this.AdminPanel = new Repository108(getModuleParams("view", Nomalism.AdminPanel.Route));
|
|
4803
|
+
this.DocumentLineRm = new Repository109(
|
|
4804
|
+
getModuleParams("stock", Nomalism.DocumentLineRm.Route)
|
|
4805
|
+
);
|
|
4806
|
+
this.DocumentLineMt = new Repository110(
|
|
4807
|
+
getModuleParams("stock", Nomalism.DocumentLineMt.Route)
|
|
4808
|
+
);
|
|
4809
|
+
this.ChatSubscriber = new Repository111(
|
|
4810
|
+
getModuleParams("users", Nomalism.ChatSubscriber.Route)
|
|
4811
|
+
);
|
|
4812
|
+
this.Tag = new Repository112(getModuleParams("stock", Nomalism.Tag.Route));
|
|
4813
|
+
this.Gmails = new Repository113(getModuleParams("stock", Nomalism.Gmails.Route));
|
|
4814
|
+
this.NPF = new Repository114(getModuleParams("stock", Nomalism.NPF.Route));
|
|
4815
|
+
this.NRCL = new Repository115(getModuleParams("stock", Nomalism.NRCL.Route));
|
|
4816
|
+
this.PaymentBatch = new Repository117(
|
|
4817
|
+
getModuleParams("stock", Nomalism.PaymentBatch.Route)
|
|
4818
|
+
);
|
|
4819
|
+
this.CurrentAccount = new Repository116(
|
|
4820
|
+
getModuleParams("stock", Nomalism.CurrentAccount.Route)
|
|
4821
|
+
);
|
|
4822
|
+
this.Portal = new Repository118(getModuleParams("stock", Nomalism.Portal.Route));
|
|
4823
|
+
this.Saft = new Repository126(getModuleParams("stock", "saft"));
|
|
4824
|
+
this.AccountCode = new Repository120(getModuleParams("stock", "account_code"));
|
|
4825
|
+
this.GoogleSheetPool = new Repository119(
|
|
4826
|
+
getModuleParams("stock", Nomalism.GoogleSheetPool.Route)
|
|
4827
|
+
);
|
|
4828
|
+
this.AccountCode = new Repository120(getModuleParams("stock", Nomalism.AccountCode.Route));
|
|
4829
|
+
this.LLM = new Repository121(getModuleParams("llm", Nomalism.LLM.Route));
|
|
4830
|
+
this.PatchNotes = new Repository122(
|
|
4831
|
+
getModuleParams("integration", Nomalism.PatchNotes.Route)
|
|
4832
|
+
);
|
|
4833
|
+
this.DocumentHeaderSurvey = new Repository123(
|
|
4834
|
+
getModuleParams("stock", Nomalism.DocumentHeaderSurvey.Route)
|
|
4835
|
+
);
|
|
4836
|
+
this.DocumentHeaderSubscriber = new Repository124(
|
|
4837
|
+
getModuleParams("stock", Nomalism.DocumentHeaderSubscriber.Route)
|
|
4380
4838
|
);
|
|
4381
|
-
this.
|
|
4382
|
-
|
|
4383
|
-
this.AdminPanel = new Repository107(getModuleParams("view", "admin_panel"));
|
|
4384
|
-
this.DocumentLineRm = new Repository108(getModuleParams("stock", "document_line_rm"));
|
|
4385
|
-
this.DocumentLineMt = new Repository109(getModuleParams("stock", "document_line_mt"));
|
|
4386
|
-
this.ChatSubscriber = new Repository110(getModuleParams("users", "chat_subscriber"));
|
|
4387
|
-
this.Tag = new Repository111(getModuleParams("stock", "tag"));
|
|
4388
|
-
this.Gmails = new Repository112(getModuleParams("stock", "gmail"));
|
|
4389
|
-
this.NPF = new Repository113(getModuleParams("stock", "npf"));
|
|
4390
|
-
this.NRCL = new Repository114(getModuleParams("stock", "nrcl"));
|
|
4391
|
-
this.PaymentBatch = new Repository116(getModuleParams("stock", "payment_batch"));
|
|
4392
|
-
this.CurrentAccount = new Repository115(getModuleParams("stock", "current_account"));
|
|
4393
|
-
this.Portal = new Repository117(getModuleParams("stock", "portal"));
|
|
4394
|
-
this.GoogleSheetPool = new Repository118(getModuleParams("stock", "google_sheet_pool"));
|
|
4395
|
-
this.Saft = new Repository125(getModuleParams("stock", "saft"));
|
|
4396
|
-
this.AccountCode = new Repository119(getModuleParams("stock", "account_code"));
|
|
4397
|
-
this.LLM = new Repository120(getModuleParams("llm", "llm"));
|
|
4398
|
-
this.PatchNotes = new Repository121(getModuleParams("integration", "patch_notes"));
|
|
4399
|
-
this.DocumentHeaderSurvey = new Repository122(
|
|
4400
|
-
getModuleParams("stock", "document_header_survey")
|
|
4839
|
+
this.GoogleCalendar = new Repository125(
|
|
4840
|
+
getModuleParams("stock", Nomalism.GoogleCalendar.Route)
|
|
4401
4841
|
);
|
|
4402
|
-
this.
|
|
4403
|
-
getModuleParams("stock",
|
|
4842
|
+
this.ProductLocation = new Repository127(
|
|
4843
|
+
getModuleParams("stock", Nomalism.ProductLocation.Route)
|
|
4404
4844
|
);
|
|
4405
|
-
this.
|
|
4845
|
+
this.TimeSheet = new TimesheetRepository(getModuleParams("users", Nomalism.TimeSheet.Route));
|
|
4846
|
+
this.Catalogo = new Repository128(getModuleParams("stock", Nomalism.Catalogo.Route));
|
|
4406
4847
|
}
|
|
4407
4848
|
};
|
|
4408
4849
|
|
|
4409
4850
|
// src/index.ts
|
|
4410
4851
|
var index_default = main_exports;
|
|
4411
4852
|
export {
|
|
4412
|
-
|
|
4853
|
+
ApiError,
|
|
4854
|
+
index_default as default,
|
|
4855
|
+
isApiError,
|
|
4856
|
+
parseApiError
|
|
4413
4857
|
};
|