@konversi/konversi-client 1.4.10 → 1.5.0
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.mts +2880 -1
- package/dist/index.d.ts +2880 -1
- package/dist/index.js +2881 -153
- package/dist/index.mjs +2874 -152
- package/package.json +4 -1
- package/.github/workflows/publish_npm.yaml +0 -20
- package/KonversiError.ts +0 -31
- package/axiosAPI.ts +0 -27
- package/crudEndpoints.ts +0 -122
- package/index.ts +0 -178
- package/test/createCustomObject.ts +0 -21
- package/test/getCustomer.ts +0 -5
- package/tsconfig.json +0 -109
package/dist/index.js
CHANGED
|
@@ -3,8 +3,22 @@ var __create = Object.create;
|
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
8
22
|
var __export = (target, all) => {
|
|
9
23
|
for (var name in all)
|
|
10
24
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -51,8 +65,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
51
65
|
var index_exports = {};
|
|
52
66
|
__export(index_exports, {
|
|
53
67
|
Entity: () => Entity,
|
|
68
|
+
createCustomObject: () => createCustomObject,
|
|
69
|
+
createObject: () => createObject,
|
|
54
70
|
default: () => index_default,
|
|
55
|
-
|
|
71
|
+
deleteCustomObject: () => deleteCustomObject,
|
|
72
|
+
deleteObject: () => deleteObject,
|
|
73
|
+
getAllObjects: () => getAllObjects,
|
|
74
|
+
getObjectById: () => getObjectById,
|
|
75
|
+
runScript: () => runScript,
|
|
76
|
+
updateObject: () => updateObject
|
|
56
77
|
});
|
|
57
78
|
module.exports = __toCommonJS(index_exports);
|
|
58
79
|
|
|
@@ -264,191 +285,2898 @@ Caused by: ${filteredStack}`;
|
|
|
264
285
|
}
|
|
265
286
|
};
|
|
266
287
|
|
|
267
|
-
// index.ts
|
|
268
|
-
|
|
288
|
+
// generated/modules/index.ts
|
|
289
|
+
var modules_exports = {};
|
|
290
|
+
__export(modules_exports, {
|
|
291
|
+
account: () => account,
|
|
292
|
+
attendance: () => attendance,
|
|
293
|
+
auditLog: () => auditLog,
|
|
294
|
+
automationJob: () => automationJob,
|
|
295
|
+
automationScript: () => automationScript,
|
|
296
|
+
bomComponent: () => bomComponent,
|
|
297
|
+
bomOperation: () => bomOperation,
|
|
298
|
+
companyAlias: () => companyAlias,
|
|
299
|
+
companyOption: () => companyOption,
|
|
300
|
+
companyPermission: () => companyPermission,
|
|
301
|
+
customDocument: () => customDocument,
|
|
302
|
+
customEntityField: () => customEntityField,
|
|
303
|
+
customEntityObject: () => customEntityObject,
|
|
304
|
+
customEntitySchema: () => customEntitySchema,
|
|
305
|
+
customField: () => customField,
|
|
306
|
+
customReport: () => customReport,
|
|
307
|
+
customer: () => customer,
|
|
308
|
+
deliveryJob: () => deliveryJob,
|
|
309
|
+
employee: () => employee,
|
|
310
|
+
expense: () => expense,
|
|
311
|
+
expenseLine: () => expenseLine,
|
|
312
|
+
fixedAsset: () => fixedAsset,
|
|
313
|
+
form: () => form,
|
|
314
|
+
geofence: () => geofence,
|
|
315
|
+
identifierGroup: () => identifierGroup,
|
|
316
|
+
identifierToken: () => identifierToken,
|
|
317
|
+
incomingDelivery: () => incomingDelivery,
|
|
318
|
+
incomingDeliveryLine: () => incomingDeliveryLine,
|
|
319
|
+
incomingPaymentMethod: () => incomingPaymentMethod,
|
|
320
|
+
incomingShipment: () => incomingShipment,
|
|
321
|
+
internalDelivery: () => internalDelivery,
|
|
322
|
+
internalDeliveryLine: () => internalDeliveryLine,
|
|
323
|
+
invitation: () => invitation,
|
|
324
|
+
invoice: () => invoice,
|
|
325
|
+
invoiceLine: () => invoiceLine,
|
|
326
|
+
iotDevice: () => iotDevice,
|
|
327
|
+
iotJob: () => iotJob,
|
|
328
|
+
jobCard: () => jobCard,
|
|
329
|
+
journalEntry: () => journalEntry,
|
|
330
|
+
journalEntryLine: () => journalEntryLine,
|
|
331
|
+
notification: () => notification,
|
|
332
|
+
outgoingDelivery: () => outgoingDelivery,
|
|
333
|
+
outgoingDeliveryLine: () => outgoingDeliveryLine,
|
|
334
|
+
outgoingShipment: () => outgoingShipment,
|
|
335
|
+
payment: () => payment,
|
|
336
|
+
printJob: () => printJob,
|
|
337
|
+
product: () => product,
|
|
338
|
+
productGroup: () => productGroup,
|
|
339
|
+
productItem: () => productItem,
|
|
340
|
+
productSupplier: () => productSupplier,
|
|
341
|
+
productionOrder: () => productionOrder,
|
|
342
|
+
productionOrderLine: () => productionOrderLine,
|
|
343
|
+
purchaseOrder: () => purchaseOrder,
|
|
344
|
+
purchaseOrderLine: () => purchaseOrderLine,
|
|
345
|
+
quote: () => quote,
|
|
346
|
+
quoteLine: () => quoteLine,
|
|
347
|
+
rentalOrder: () => rentalOrder,
|
|
348
|
+
rentalOrderLine: () => rentalOrderLine,
|
|
349
|
+
salesOrder: () => salesOrder,
|
|
350
|
+
salesOrderLine: () => salesOrderLine,
|
|
351
|
+
shift: () => shift,
|
|
352
|
+
stockAdjustment: () => stockAdjustment,
|
|
353
|
+
store: () => store,
|
|
354
|
+
storeProduct: () => storeProduct,
|
|
355
|
+
storeProductAttribute: () => storeProductAttribute,
|
|
356
|
+
storeProductAttributeValue: () => storeProductAttributeValue,
|
|
357
|
+
storeProductGroup: () => storeProductGroup,
|
|
358
|
+
subsidiary: () => subsidiary,
|
|
359
|
+
supplier: () => supplier,
|
|
360
|
+
userAction: () => userAction,
|
|
361
|
+
userPersona: () => userPersona,
|
|
362
|
+
userPersonaCustomSchemaPermission: () => userPersonaCustomSchemaPermission,
|
|
363
|
+
userPersonaEntityAccessStatus: () => userPersonaEntityAccessStatus,
|
|
364
|
+
userPersonaEntityPermission: () => userPersonaEntityPermission,
|
|
365
|
+
vehicle: () => vehicle,
|
|
366
|
+
warehouse: () => warehouse,
|
|
367
|
+
workstation: () => workstation
|
|
368
|
+
});
|
|
369
|
+
|
|
370
|
+
// generated/modules/notification.ts
|
|
371
|
+
function findAll(options) {
|
|
269
372
|
return __async(this, null, function* () {
|
|
270
|
-
return yield
|
|
373
|
+
return yield getAllObjects(NOTIFICATION, options == null ? void 0 : options.where);
|
|
271
374
|
});
|
|
272
375
|
}
|
|
273
|
-
function
|
|
274
|
-
return __async(this,
|
|
275
|
-
|
|
276
|
-
try {
|
|
277
|
-
const response = yield axiosAPI_default.request({
|
|
278
|
-
method: "get",
|
|
279
|
-
url: `custom-entity/object/${schemaName}`,
|
|
280
|
-
params: queryParams
|
|
281
|
-
});
|
|
282
|
-
return response.data;
|
|
283
|
-
} catch (e) {
|
|
284
|
-
throw new KonversiError(e.message + ` ${(_a2 = e.response) == null ? void 0 : _a2.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
285
|
-
}
|
|
376
|
+
function findOne(id) {
|
|
377
|
+
return __async(this, null, function* () {
|
|
378
|
+
return yield getObjectById(NOTIFICATION, id);
|
|
286
379
|
});
|
|
287
380
|
}
|
|
288
|
-
function
|
|
381
|
+
function create(data) {
|
|
289
382
|
return __async(this, null, function* () {
|
|
290
|
-
|
|
291
|
-
try {
|
|
292
|
-
const response = yield axiosAPI_default.request({
|
|
293
|
-
method: "get",
|
|
294
|
-
url: `custom-entity/object/${schemaName}/${id}`
|
|
295
|
-
});
|
|
296
|
-
return response.data;
|
|
297
|
-
} catch (e) {
|
|
298
|
-
throw new KonversiError(e.message + ` ${(_a2 = e.response) == null ? void 0 : _a2.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
299
|
-
}
|
|
383
|
+
return yield createObject(NOTIFICATION, data);
|
|
300
384
|
});
|
|
301
385
|
}
|
|
302
|
-
function
|
|
386
|
+
function update(id, newData) {
|
|
303
387
|
return __async(this, null, function* () {
|
|
304
|
-
|
|
305
|
-
try {
|
|
306
|
-
const response = yield axiosAPI_default.request({
|
|
307
|
-
method: "put",
|
|
308
|
-
url: `custom-entity/object/${schemaName}/${id}`,
|
|
309
|
-
headers: {
|
|
310
|
-
"Content-Type": "application/json"
|
|
311
|
-
},
|
|
312
|
-
data: JSON.stringify(newData)
|
|
313
|
-
});
|
|
314
|
-
return response.data;
|
|
315
|
-
} catch (e) {
|
|
316
|
-
throw new KonversiError(e.message + ` ${(_a2 = e.response) == null ? void 0 : _a2.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
317
|
-
}
|
|
388
|
+
return yield updateObject(NOTIFICATION, id, newData);
|
|
318
389
|
});
|
|
319
390
|
}
|
|
320
|
-
function
|
|
391
|
+
function remove(id) {
|
|
321
392
|
return __async(this, null, function* () {
|
|
322
|
-
|
|
323
|
-
try {
|
|
324
|
-
const response = yield axiosAPI_default.request({
|
|
325
|
-
method: "post",
|
|
326
|
-
url: `custom-entity/object/${schemaName}`,
|
|
327
|
-
data
|
|
328
|
-
});
|
|
329
|
-
return response.data;
|
|
330
|
-
} catch (e) {
|
|
331
|
-
throw new KonversiError(e.message + ` ${(_a2 = e.response) == null ? void 0 : _a2.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
332
|
-
}
|
|
393
|
+
return yield deleteObject(NOTIFICATION, id);
|
|
333
394
|
});
|
|
334
395
|
}
|
|
335
|
-
|
|
396
|
+
var notification = {
|
|
397
|
+
findAll,
|
|
398
|
+
findOne,
|
|
399
|
+
create,
|
|
400
|
+
update,
|
|
401
|
+
remove
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
// generated/modules/account.ts
|
|
405
|
+
function findAll2(options) {
|
|
336
406
|
return __async(this, null, function* () {
|
|
337
|
-
|
|
338
|
-
try {
|
|
339
|
-
const response = yield axiosAPI_default.request({
|
|
340
|
-
method: "delete",
|
|
341
|
-
maxBodyLength: Infinity,
|
|
342
|
-
url: `custom-entity/object/${schemaName}/${id}`
|
|
343
|
-
});
|
|
344
|
-
return response.data;
|
|
345
|
-
} catch (e) {
|
|
346
|
-
throw new KonversiError(e.message + ` ${(_a2 = e.response) == null ? void 0 : _a2.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
347
|
-
}
|
|
407
|
+
return yield getAllObjects(ACCOUNT, options == null ? void 0 : options.where);
|
|
348
408
|
});
|
|
349
409
|
}
|
|
350
|
-
function
|
|
351
|
-
return __async(this,
|
|
352
|
-
|
|
353
|
-
try {
|
|
354
|
-
const response = yield axiosAPI_default.get(`${entity}`, {
|
|
355
|
-
params: queryParams
|
|
356
|
-
});
|
|
357
|
-
return response.data;
|
|
358
|
-
} catch (e) {
|
|
359
|
-
throw new KonversiError(e.message + ` ${(_a2 = e.response) == null ? void 0 : _a2.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
360
|
-
}
|
|
410
|
+
function findOne2(id) {
|
|
411
|
+
return __async(this, null, function* () {
|
|
412
|
+
return yield getObjectById(ACCOUNT, id);
|
|
361
413
|
});
|
|
362
414
|
}
|
|
363
|
-
function
|
|
415
|
+
function create2(data) {
|
|
364
416
|
return __async(this, null, function* () {
|
|
365
|
-
|
|
366
|
-
try {
|
|
367
|
-
const response = yield axiosAPI_default.get(`${entity}/${id}`);
|
|
368
|
-
return response.data;
|
|
369
|
-
} catch (e) {
|
|
370
|
-
throw new KonversiError(e.message + ` ${(_a2 = e.response) == null ? void 0 : _a2.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
371
|
-
}
|
|
417
|
+
return yield createObject(ACCOUNT, data);
|
|
372
418
|
});
|
|
373
419
|
}
|
|
374
|
-
function
|
|
420
|
+
function update2(id, newData) {
|
|
375
421
|
return __async(this, null, function* () {
|
|
376
|
-
|
|
377
|
-
try {
|
|
378
|
-
const response = yield axiosAPI_default.put(`${entity}/${id}`, newData);
|
|
379
|
-
return response.data;
|
|
380
|
-
} catch (e) {
|
|
381
|
-
throw new KonversiError(e.message + ` ${(_a2 = e.response) == null ? void 0 : _a2.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
382
|
-
}
|
|
422
|
+
return yield updateObject(ACCOUNT, id, newData);
|
|
383
423
|
});
|
|
384
424
|
}
|
|
385
|
-
function
|
|
425
|
+
function remove2(id) {
|
|
386
426
|
return __async(this, null, function* () {
|
|
387
|
-
|
|
388
|
-
try {
|
|
389
|
-
const response = yield axiosAPI_default.post(`${entity}`, data);
|
|
390
|
-
return response.data;
|
|
391
|
-
} catch (e) {
|
|
392
|
-
throw new KonversiError(e.message + ` ${(_a2 = e.response) == null ? void 0 : _a2.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
393
|
-
}
|
|
427
|
+
return yield deleteObject(ACCOUNT, id);
|
|
394
428
|
});
|
|
395
429
|
}
|
|
396
|
-
|
|
430
|
+
var account = {
|
|
431
|
+
findAll: findAll2,
|
|
432
|
+
findOne: findOne2,
|
|
433
|
+
create: create2,
|
|
434
|
+
update: update2,
|
|
435
|
+
remove: remove2
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
// generated/modules/journal-entry-line.ts
|
|
439
|
+
function findAll3(options) {
|
|
397
440
|
return __async(this, null, function* () {
|
|
398
|
-
|
|
399
|
-
try {
|
|
400
|
-
const response = yield axiosAPI_default.delete(`${entity}/${id}`);
|
|
401
|
-
return response.data;
|
|
402
|
-
} catch (e) {
|
|
403
|
-
throw new KonversiError(e.message + ` ${(_a2 = e.response) == null ? void 0 : _a2.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
404
|
-
}
|
|
441
|
+
return yield getAllObjects(JOURNAL_ENTRY_LINE, options == null ? void 0 : options.where);
|
|
405
442
|
});
|
|
406
443
|
}
|
|
407
|
-
function
|
|
444
|
+
function findOne3(id) {
|
|
408
445
|
return __async(this, null, function* () {
|
|
409
|
-
|
|
410
|
-
try {
|
|
411
|
-
if (sync) {
|
|
412
|
-
const response2 = yield axiosAPI_default.post(`/automation/script/${scriptNameOrId}/run?mode=sync`, { input });
|
|
413
|
-
return response2.data;
|
|
414
|
-
}
|
|
415
|
-
const response = yield axiosAPI_default.post(`/automation/script/${scriptNameOrId}/run`, { input });
|
|
416
|
-
return response.data;
|
|
417
|
-
} catch (e) {
|
|
418
|
-
let errorMessage = e.message;
|
|
419
|
-
errorMessage = ((_b = (_a2 = e == null ? void 0 : e.response) == null ? void 0 : _a2.data) == null ? void 0 : _b.message) || errorMessage;
|
|
420
|
-
if (((_c = e.response) == null ? void 0 : _c.status) === 422) {
|
|
421
|
-
errorMessage = (_e = (_d = e.response) == null ? void 0 : _d.data) == null ? void 0 : _e.errorMessage;
|
|
422
|
-
}
|
|
423
|
-
throw new KonversiError(errorMessage, e);
|
|
424
|
-
}
|
|
446
|
+
return yield getObjectById(JOURNAL_ENTRY_LINE, id);
|
|
425
447
|
});
|
|
426
448
|
}
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
449
|
+
function create3(data) {
|
|
450
|
+
return __async(this, null, function* () {
|
|
451
|
+
return yield createObject(JOURNAL_ENTRY_LINE, data);
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
function update3(id, newData) {
|
|
455
|
+
return __async(this, null, function* () {
|
|
456
|
+
return yield updateObject(JOURNAL_ENTRY_LINE, id, newData);
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
function remove3(id) {
|
|
460
|
+
return __async(this, null, function* () {
|
|
461
|
+
return yield deleteObject(JOURNAL_ENTRY_LINE, id);
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
var journalEntryLine = {
|
|
465
|
+
findAll: findAll3,
|
|
466
|
+
findOne: findOne3,
|
|
467
|
+
create: create3,
|
|
468
|
+
update: update3,
|
|
469
|
+
remove: remove3
|
|
447
470
|
};
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
471
|
+
|
|
472
|
+
// generated/modules/journal-entry.ts
|
|
473
|
+
function findAll4(options) {
|
|
474
|
+
return __async(this, null, function* () {
|
|
475
|
+
return yield getAllObjects(JOURNAL_ENTRY, options == null ? void 0 : options.where);
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
function findOne4(id) {
|
|
479
|
+
return __async(this, null, function* () {
|
|
480
|
+
return yield getObjectById(JOURNAL_ENTRY, id);
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
function create4(data) {
|
|
484
|
+
return __async(this, null, function* () {
|
|
485
|
+
return yield createObject(JOURNAL_ENTRY, data);
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
function update4(id, newData) {
|
|
489
|
+
return __async(this, null, function* () {
|
|
490
|
+
return yield updateObject(JOURNAL_ENTRY, id, newData);
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
function remove4(id) {
|
|
494
|
+
return __async(this, null, function* () {
|
|
495
|
+
return yield deleteObject(JOURNAL_ENTRY, id);
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
var journalEntry = {
|
|
499
|
+
findAll: findAll4,
|
|
500
|
+
findOne: findOne4,
|
|
501
|
+
create: create4,
|
|
502
|
+
update: update4,
|
|
503
|
+
remove: remove4
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
// generated/modules/audit-log.ts
|
|
507
|
+
function findAll5(options) {
|
|
508
|
+
return __async(this, null, function* () {
|
|
509
|
+
return yield getAllObjects(AUDIT_LOG, options == null ? void 0 : options.where);
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
function findOne5(id) {
|
|
513
|
+
return __async(this, null, function* () {
|
|
514
|
+
return yield getObjectById(AUDIT_LOG, id);
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
function create5(data) {
|
|
518
|
+
return __async(this, null, function* () {
|
|
519
|
+
return yield createObject(AUDIT_LOG, data);
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
function update5(id, newData) {
|
|
523
|
+
return __async(this, null, function* () {
|
|
524
|
+
return yield updateObject(AUDIT_LOG, id, newData);
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
function remove5(id) {
|
|
528
|
+
return __async(this, null, function* () {
|
|
529
|
+
return yield deleteObject(AUDIT_LOG, id);
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
var auditLog = {
|
|
533
|
+
findAll: findAll5,
|
|
534
|
+
findOne: findOne5,
|
|
535
|
+
create: create5,
|
|
536
|
+
update: update5,
|
|
537
|
+
remove: remove5
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
// generated/modules/subsidiary.ts
|
|
541
|
+
function findAll6(options) {
|
|
542
|
+
return __async(this, null, function* () {
|
|
543
|
+
return yield getAllObjects(SUBSIDIARY, options == null ? void 0 : options.where);
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
function findOne6(id) {
|
|
547
|
+
return __async(this, null, function* () {
|
|
548
|
+
return yield getObjectById(SUBSIDIARY, id);
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
function create6(data) {
|
|
552
|
+
return __async(this, null, function* () {
|
|
553
|
+
return yield createObject(SUBSIDIARY, data);
|
|
554
|
+
});
|
|
555
|
+
}
|
|
556
|
+
function update6(id, newData) {
|
|
557
|
+
return __async(this, null, function* () {
|
|
558
|
+
return yield updateObject(SUBSIDIARY, id, newData);
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
function remove6(id) {
|
|
562
|
+
return __async(this, null, function* () {
|
|
563
|
+
return yield deleteObject(SUBSIDIARY, id);
|
|
564
|
+
});
|
|
565
|
+
}
|
|
566
|
+
var subsidiary = {
|
|
567
|
+
findAll: findAll6,
|
|
568
|
+
findOne: findOne6,
|
|
569
|
+
create: create6,
|
|
570
|
+
update: update6,
|
|
571
|
+
remove: remove6
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
// generated/modules/company-option.ts
|
|
575
|
+
function findAll7(options) {
|
|
576
|
+
return __async(this, null, function* () {
|
|
577
|
+
return yield getAllObjects(COMPANY_OPTION, options == null ? void 0 : options.where);
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
function findOne7(id) {
|
|
581
|
+
return __async(this, null, function* () {
|
|
582
|
+
return yield getObjectById(COMPANY_OPTION, id);
|
|
583
|
+
});
|
|
584
|
+
}
|
|
585
|
+
function create7(data) {
|
|
586
|
+
return __async(this, null, function* () {
|
|
587
|
+
return yield createObject(COMPANY_OPTION, data);
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
function update7(id, newData) {
|
|
591
|
+
return __async(this, null, function* () {
|
|
592
|
+
return yield updateObject(COMPANY_OPTION, id, newData);
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
function remove7(id) {
|
|
596
|
+
return __async(this, null, function* () {
|
|
597
|
+
return yield deleteObject(COMPANY_OPTION, id);
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
var companyOption = {
|
|
601
|
+
findAll: findAll7,
|
|
602
|
+
findOne: findOne7,
|
|
603
|
+
create: create7,
|
|
604
|
+
update: update7,
|
|
605
|
+
remove: remove7
|
|
606
|
+
};
|
|
607
|
+
|
|
608
|
+
// generated/modules/company-permission.ts
|
|
609
|
+
function findAll8(options) {
|
|
610
|
+
return __async(this, null, function* () {
|
|
611
|
+
return yield getAllObjects(COMPANY_PERMISSION, options == null ? void 0 : options.where);
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
function findOne8(id) {
|
|
615
|
+
return __async(this, null, function* () {
|
|
616
|
+
return yield getObjectById(COMPANY_PERMISSION, id);
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
function create8(data) {
|
|
620
|
+
return __async(this, null, function* () {
|
|
621
|
+
return yield createObject(COMPANY_PERMISSION, data);
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
function update8(id, newData) {
|
|
625
|
+
return __async(this, null, function* () {
|
|
626
|
+
return yield updateObject(COMPANY_PERMISSION, id, newData);
|
|
627
|
+
});
|
|
628
|
+
}
|
|
629
|
+
function remove8(id) {
|
|
630
|
+
return __async(this, null, function* () {
|
|
631
|
+
return yield deleteObject(COMPANY_PERMISSION, id);
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
var companyPermission = {
|
|
635
|
+
findAll: findAll8,
|
|
636
|
+
findOne: findOne8,
|
|
637
|
+
create: create8,
|
|
638
|
+
update: update8,
|
|
639
|
+
remove: remove8
|
|
640
|
+
};
|
|
641
|
+
|
|
642
|
+
// generated/modules/customer.ts
|
|
643
|
+
function findAll9(options) {
|
|
644
|
+
return __async(this, null, function* () {
|
|
645
|
+
return yield getAllObjects(CUSTOMER, options == null ? void 0 : options.where);
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
function findOne9(id) {
|
|
649
|
+
return __async(this, null, function* () {
|
|
650
|
+
return yield getObjectById(CUSTOMER, id);
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
function create9(data) {
|
|
654
|
+
return __async(this, null, function* () {
|
|
655
|
+
return yield createObject(CUSTOMER, data);
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
function update9(id, newData) {
|
|
659
|
+
return __async(this, null, function* () {
|
|
660
|
+
return yield updateObject(CUSTOMER, id, newData);
|
|
661
|
+
});
|
|
662
|
+
}
|
|
663
|
+
function remove9(id) {
|
|
664
|
+
return __async(this, null, function* () {
|
|
665
|
+
return yield deleteObject(CUSTOMER, id);
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
var customer = {
|
|
669
|
+
findAll: findAll9,
|
|
670
|
+
findOne: findOne9,
|
|
671
|
+
create: create9,
|
|
672
|
+
update: update9,
|
|
673
|
+
remove: remove9
|
|
674
|
+
};
|
|
675
|
+
|
|
676
|
+
// generated/modules/supplier.ts
|
|
677
|
+
function findAll10(options) {
|
|
678
|
+
return __async(this, null, function* () {
|
|
679
|
+
return yield getAllObjects(SUPPLIER, options == null ? void 0 : options.where);
|
|
680
|
+
});
|
|
681
|
+
}
|
|
682
|
+
function findOne10(id) {
|
|
683
|
+
return __async(this, null, function* () {
|
|
684
|
+
return yield getObjectById(SUPPLIER, id);
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
function create10(data) {
|
|
688
|
+
return __async(this, null, function* () {
|
|
689
|
+
return yield createObject(SUPPLIER, data);
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
function update10(id, newData) {
|
|
693
|
+
return __async(this, null, function* () {
|
|
694
|
+
return yield updateObject(SUPPLIER, id, newData);
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
function remove10(id) {
|
|
698
|
+
return __async(this, null, function* () {
|
|
699
|
+
return yield deleteObject(SUPPLIER, id);
|
|
700
|
+
});
|
|
701
|
+
}
|
|
702
|
+
var supplier = {
|
|
703
|
+
findAll: findAll10,
|
|
704
|
+
findOne: findOne10,
|
|
705
|
+
create: create10,
|
|
706
|
+
update: update10,
|
|
707
|
+
remove: remove10
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
// generated/modules/custom-entity-field.ts
|
|
711
|
+
function findAll11(options) {
|
|
712
|
+
return __async(this, null, function* () {
|
|
713
|
+
return yield getAllObjects(CUSTOM_ENTITY_FIELD, options == null ? void 0 : options.where);
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
function findOne11(id) {
|
|
717
|
+
return __async(this, null, function* () {
|
|
718
|
+
return yield getObjectById(CUSTOM_ENTITY_FIELD, id);
|
|
719
|
+
});
|
|
720
|
+
}
|
|
721
|
+
function create11(data) {
|
|
722
|
+
return __async(this, null, function* () {
|
|
723
|
+
return yield createObject(CUSTOM_ENTITY_FIELD, data);
|
|
724
|
+
});
|
|
725
|
+
}
|
|
726
|
+
function update11(id, newData) {
|
|
727
|
+
return __async(this, null, function* () {
|
|
728
|
+
return yield updateObject(CUSTOM_ENTITY_FIELD, id, newData);
|
|
729
|
+
});
|
|
730
|
+
}
|
|
731
|
+
function remove11(id) {
|
|
732
|
+
return __async(this, null, function* () {
|
|
733
|
+
return yield deleteObject(CUSTOM_ENTITY_FIELD, id);
|
|
734
|
+
});
|
|
735
|
+
}
|
|
736
|
+
var customEntityField = {
|
|
737
|
+
findAll: findAll11,
|
|
738
|
+
findOne: findOne11,
|
|
739
|
+
create: create11,
|
|
740
|
+
update: update11,
|
|
741
|
+
remove: remove11
|
|
742
|
+
};
|
|
743
|
+
|
|
744
|
+
// generated/modules/custom-entity-object.ts
|
|
745
|
+
function findAll12(options) {
|
|
746
|
+
return __async(this, null, function* () {
|
|
747
|
+
return yield getAllObjects(CUSTOM_ENTITY_OBJECT, options == null ? void 0 : options.where);
|
|
748
|
+
});
|
|
749
|
+
}
|
|
750
|
+
function findOne12(id) {
|
|
751
|
+
return __async(this, null, function* () {
|
|
752
|
+
return yield getObjectById(CUSTOM_ENTITY_OBJECT, id);
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
function create12(data) {
|
|
756
|
+
return __async(this, null, function* () {
|
|
757
|
+
return yield createObject(CUSTOM_ENTITY_OBJECT, data);
|
|
758
|
+
});
|
|
759
|
+
}
|
|
760
|
+
function update12(id, newData) {
|
|
761
|
+
return __async(this, null, function* () {
|
|
762
|
+
return yield updateObject(CUSTOM_ENTITY_OBJECT, id, newData);
|
|
763
|
+
});
|
|
764
|
+
}
|
|
765
|
+
function remove12(id) {
|
|
766
|
+
return __async(this, null, function* () {
|
|
767
|
+
return yield deleteObject(CUSTOM_ENTITY_OBJECT, id);
|
|
768
|
+
});
|
|
769
|
+
}
|
|
770
|
+
var customEntityObject = {
|
|
771
|
+
findAll: findAll12,
|
|
772
|
+
findOne: findOne12,
|
|
773
|
+
create: create12,
|
|
774
|
+
update: update12,
|
|
775
|
+
remove: remove12
|
|
776
|
+
};
|
|
777
|
+
|
|
778
|
+
// generated/modules/custom-entity-schema.ts
|
|
779
|
+
function findAll13(options) {
|
|
780
|
+
return __async(this, null, function* () {
|
|
781
|
+
return yield getAllObjects(CUSTOM_ENTITY_SCHEMA, options == null ? void 0 : options.where);
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
function findOne13(id) {
|
|
785
|
+
return __async(this, null, function* () {
|
|
786
|
+
return yield getObjectById(CUSTOM_ENTITY_SCHEMA, id);
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
function create13(data) {
|
|
790
|
+
return __async(this, null, function* () {
|
|
791
|
+
return yield createObject(CUSTOM_ENTITY_SCHEMA, data);
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
function update13(id, newData) {
|
|
795
|
+
return __async(this, null, function* () {
|
|
796
|
+
return yield updateObject(CUSTOM_ENTITY_SCHEMA, id, newData);
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
function remove13(id) {
|
|
800
|
+
return __async(this, null, function* () {
|
|
801
|
+
return yield deleteObject(CUSTOM_ENTITY_SCHEMA, id);
|
|
802
|
+
});
|
|
803
|
+
}
|
|
804
|
+
var customEntitySchema = {
|
|
805
|
+
findAll: findAll13,
|
|
806
|
+
findOne: findOne13,
|
|
807
|
+
create: create13,
|
|
808
|
+
update: update13,
|
|
809
|
+
remove: remove13
|
|
810
|
+
};
|
|
811
|
+
|
|
812
|
+
// generated/modules/custom-field.ts
|
|
813
|
+
function findAll14(options) {
|
|
814
|
+
return __async(this, null, function* () {
|
|
815
|
+
return yield getAllObjects(CUSTOM_FIELD, options == null ? void 0 : options.where);
|
|
816
|
+
});
|
|
817
|
+
}
|
|
818
|
+
function findOne14(id) {
|
|
819
|
+
return __async(this, null, function* () {
|
|
820
|
+
return yield getObjectById(CUSTOM_FIELD, id);
|
|
821
|
+
});
|
|
822
|
+
}
|
|
823
|
+
function create14(data) {
|
|
824
|
+
return __async(this, null, function* () {
|
|
825
|
+
return yield createObject(CUSTOM_FIELD, data);
|
|
826
|
+
});
|
|
827
|
+
}
|
|
828
|
+
function update14(id, newData) {
|
|
829
|
+
return __async(this, null, function* () {
|
|
830
|
+
return yield updateObject(CUSTOM_FIELD, id, newData);
|
|
831
|
+
});
|
|
832
|
+
}
|
|
833
|
+
function remove14(id) {
|
|
834
|
+
return __async(this, null, function* () {
|
|
835
|
+
return yield deleteObject(CUSTOM_FIELD, id);
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
var customField = {
|
|
839
|
+
findAll: findAll14,
|
|
840
|
+
findOne: findOne14,
|
|
841
|
+
create: create14,
|
|
842
|
+
update: update14,
|
|
843
|
+
remove: remove14
|
|
844
|
+
};
|
|
845
|
+
|
|
846
|
+
// generated/modules/incoming-delivery-line.ts
|
|
847
|
+
function findAll15(options) {
|
|
848
|
+
return __async(this, null, function* () {
|
|
849
|
+
return yield getAllObjects(INCOMING_DELIVERY_LINE, options == null ? void 0 : options.where);
|
|
850
|
+
});
|
|
851
|
+
}
|
|
852
|
+
function findOne15(id) {
|
|
853
|
+
return __async(this, null, function* () {
|
|
854
|
+
return yield getObjectById(INCOMING_DELIVERY_LINE, id);
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
function create15(data) {
|
|
858
|
+
return __async(this, null, function* () {
|
|
859
|
+
return yield createObject(INCOMING_DELIVERY_LINE, data);
|
|
860
|
+
});
|
|
861
|
+
}
|
|
862
|
+
function update15(id, newData) {
|
|
863
|
+
return __async(this, null, function* () {
|
|
864
|
+
return yield updateObject(INCOMING_DELIVERY_LINE, id, newData);
|
|
865
|
+
});
|
|
866
|
+
}
|
|
867
|
+
function remove15(id) {
|
|
868
|
+
return __async(this, null, function* () {
|
|
869
|
+
return yield deleteObject(INCOMING_DELIVERY_LINE, id);
|
|
870
|
+
});
|
|
871
|
+
}
|
|
872
|
+
var incomingDeliveryLine = {
|
|
873
|
+
findAll: findAll15,
|
|
874
|
+
findOne: findOne15,
|
|
875
|
+
create: create15,
|
|
876
|
+
update: update15,
|
|
877
|
+
remove: remove15
|
|
878
|
+
};
|
|
879
|
+
|
|
880
|
+
// generated/modules/incoming-delivery.ts
|
|
881
|
+
function findAll16(options) {
|
|
882
|
+
return __async(this, null, function* () {
|
|
883
|
+
return yield getAllObjects(INCOMING_DELIVERY, options == null ? void 0 : options.where);
|
|
884
|
+
});
|
|
885
|
+
}
|
|
886
|
+
function findOne16(id) {
|
|
887
|
+
return __async(this, null, function* () {
|
|
888
|
+
return yield getObjectById(INCOMING_DELIVERY, id);
|
|
889
|
+
});
|
|
890
|
+
}
|
|
891
|
+
function create16(data) {
|
|
892
|
+
return __async(this, null, function* () {
|
|
893
|
+
return yield createObject(INCOMING_DELIVERY, data);
|
|
894
|
+
});
|
|
895
|
+
}
|
|
896
|
+
function update16(id, newData) {
|
|
897
|
+
return __async(this, null, function* () {
|
|
898
|
+
return yield updateObject(INCOMING_DELIVERY, id, newData);
|
|
899
|
+
});
|
|
900
|
+
}
|
|
901
|
+
function remove16(id) {
|
|
902
|
+
return __async(this, null, function* () {
|
|
903
|
+
return yield deleteObject(INCOMING_DELIVERY, id);
|
|
904
|
+
});
|
|
905
|
+
}
|
|
906
|
+
var incomingDelivery = {
|
|
907
|
+
findAll: findAll16,
|
|
908
|
+
findOne: findOne16,
|
|
909
|
+
create: create16,
|
|
910
|
+
update: update16,
|
|
911
|
+
remove: remove16
|
|
912
|
+
};
|
|
913
|
+
|
|
914
|
+
// generated/modules/internal-delivery-line.ts
|
|
915
|
+
function findAll17(options) {
|
|
916
|
+
return __async(this, null, function* () {
|
|
917
|
+
return yield getAllObjects(INTERNAL_DELIVERY_LINE, options == null ? void 0 : options.where);
|
|
918
|
+
});
|
|
919
|
+
}
|
|
920
|
+
function findOne17(id) {
|
|
921
|
+
return __async(this, null, function* () {
|
|
922
|
+
return yield getObjectById(INTERNAL_DELIVERY_LINE, id);
|
|
923
|
+
});
|
|
924
|
+
}
|
|
925
|
+
function create17(data) {
|
|
926
|
+
return __async(this, null, function* () {
|
|
927
|
+
return yield createObject(INTERNAL_DELIVERY_LINE, data);
|
|
928
|
+
});
|
|
929
|
+
}
|
|
930
|
+
function update17(id, newData) {
|
|
931
|
+
return __async(this, null, function* () {
|
|
932
|
+
return yield updateObject(INTERNAL_DELIVERY_LINE, id, newData);
|
|
933
|
+
});
|
|
934
|
+
}
|
|
935
|
+
function remove17(id) {
|
|
936
|
+
return __async(this, null, function* () {
|
|
937
|
+
return yield deleteObject(INTERNAL_DELIVERY_LINE, id);
|
|
938
|
+
});
|
|
939
|
+
}
|
|
940
|
+
var internalDeliveryLine = {
|
|
941
|
+
findAll: findAll17,
|
|
942
|
+
findOne: findOne17,
|
|
943
|
+
create: create17,
|
|
944
|
+
update: update17,
|
|
945
|
+
remove: remove17
|
|
946
|
+
};
|
|
947
|
+
|
|
948
|
+
// generated/modules/internal-delivery.ts
|
|
949
|
+
function findAll18(options) {
|
|
950
|
+
return __async(this, null, function* () {
|
|
951
|
+
return yield getAllObjects(INTERNAL_DELIVERY, options == null ? void 0 : options.where);
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
function findOne18(id) {
|
|
955
|
+
return __async(this, null, function* () {
|
|
956
|
+
return yield getObjectById(INTERNAL_DELIVERY, id);
|
|
957
|
+
});
|
|
958
|
+
}
|
|
959
|
+
function create18(data) {
|
|
960
|
+
return __async(this, null, function* () {
|
|
961
|
+
return yield createObject(INTERNAL_DELIVERY, data);
|
|
962
|
+
});
|
|
963
|
+
}
|
|
964
|
+
function update18(id, newData) {
|
|
965
|
+
return __async(this, null, function* () {
|
|
966
|
+
return yield updateObject(INTERNAL_DELIVERY, id, newData);
|
|
967
|
+
});
|
|
968
|
+
}
|
|
969
|
+
function remove18(id) {
|
|
970
|
+
return __async(this, null, function* () {
|
|
971
|
+
return yield deleteObject(INTERNAL_DELIVERY, id);
|
|
972
|
+
});
|
|
973
|
+
}
|
|
974
|
+
var internalDelivery = {
|
|
975
|
+
findAll: findAll18,
|
|
976
|
+
findOne: findOne18,
|
|
977
|
+
create: create18,
|
|
978
|
+
update: update18,
|
|
979
|
+
remove: remove18
|
|
980
|
+
};
|
|
981
|
+
|
|
982
|
+
// generated/modules/outgoing-delivery-line.ts
|
|
983
|
+
function findAll19(options) {
|
|
984
|
+
return __async(this, null, function* () {
|
|
985
|
+
return yield getAllObjects(OUTGOING_DELIVERY_LINE, options == null ? void 0 : options.where);
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
function findOne19(id) {
|
|
989
|
+
return __async(this, null, function* () {
|
|
990
|
+
return yield getObjectById(OUTGOING_DELIVERY_LINE, id);
|
|
991
|
+
});
|
|
992
|
+
}
|
|
993
|
+
function create19(data) {
|
|
994
|
+
return __async(this, null, function* () {
|
|
995
|
+
return yield createObject(OUTGOING_DELIVERY_LINE, data);
|
|
996
|
+
});
|
|
997
|
+
}
|
|
998
|
+
function update19(id, newData) {
|
|
999
|
+
return __async(this, null, function* () {
|
|
1000
|
+
return yield updateObject(OUTGOING_DELIVERY_LINE, id, newData);
|
|
1001
|
+
});
|
|
1002
|
+
}
|
|
1003
|
+
function remove19(id) {
|
|
1004
|
+
return __async(this, null, function* () {
|
|
1005
|
+
return yield deleteObject(OUTGOING_DELIVERY_LINE, id);
|
|
1006
|
+
});
|
|
1007
|
+
}
|
|
1008
|
+
var outgoingDeliveryLine = {
|
|
1009
|
+
findAll: findAll19,
|
|
1010
|
+
findOne: findOne19,
|
|
1011
|
+
create: create19,
|
|
1012
|
+
update: update19,
|
|
1013
|
+
remove: remove19
|
|
1014
|
+
};
|
|
1015
|
+
|
|
1016
|
+
// generated/modules/outgoing-delivery.ts
|
|
1017
|
+
function findAll20(options) {
|
|
1018
|
+
return __async(this, null, function* () {
|
|
1019
|
+
return yield getAllObjects(OUTGOING_DELIVERY, options == null ? void 0 : options.where);
|
|
1020
|
+
});
|
|
1021
|
+
}
|
|
1022
|
+
function findOne20(id) {
|
|
1023
|
+
return __async(this, null, function* () {
|
|
1024
|
+
return yield getObjectById(OUTGOING_DELIVERY, id);
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
function create20(data) {
|
|
1028
|
+
return __async(this, null, function* () {
|
|
1029
|
+
return yield createObject(OUTGOING_DELIVERY, data);
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
1032
|
+
function update20(id, newData) {
|
|
1033
|
+
return __async(this, null, function* () {
|
|
1034
|
+
return yield updateObject(OUTGOING_DELIVERY, id, newData);
|
|
1035
|
+
});
|
|
1036
|
+
}
|
|
1037
|
+
function remove20(id) {
|
|
1038
|
+
return __async(this, null, function* () {
|
|
1039
|
+
return yield deleteObject(OUTGOING_DELIVERY, id);
|
|
1040
|
+
});
|
|
1041
|
+
}
|
|
1042
|
+
var outgoingDelivery = {
|
|
1043
|
+
findAll: findAll20,
|
|
1044
|
+
findOne: findOne20,
|
|
1045
|
+
create: create20,
|
|
1046
|
+
update: update20,
|
|
1047
|
+
remove: remove20
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1050
|
+
// generated/modules/custom-document.ts
|
|
1051
|
+
function findAll21(options) {
|
|
1052
|
+
return __async(this, null, function* () {
|
|
1053
|
+
return yield getAllObjects(CUSTOM_DOCUMENT, options == null ? void 0 : options.where);
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
function findOne21(id) {
|
|
1057
|
+
return __async(this, null, function* () {
|
|
1058
|
+
return yield getObjectById(CUSTOM_DOCUMENT, id);
|
|
1059
|
+
});
|
|
1060
|
+
}
|
|
1061
|
+
function create21(data) {
|
|
1062
|
+
return __async(this, null, function* () {
|
|
1063
|
+
return yield createObject(CUSTOM_DOCUMENT, data);
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
1066
|
+
function update21(id, newData) {
|
|
1067
|
+
return __async(this, null, function* () {
|
|
1068
|
+
return yield updateObject(CUSTOM_DOCUMENT, id, newData);
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
1071
|
+
function remove21(id) {
|
|
1072
|
+
return __async(this, null, function* () {
|
|
1073
|
+
return yield deleteObject(CUSTOM_DOCUMENT, id);
|
|
1074
|
+
});
|
|
1075
|
+
}
|
|
1076
|
+
var customDocument = {
|
|
1077
|
+
findAll: findAll21,
|
|
1078
|
+
findOne: findOne21,
|
|
1079
|
+
create: create21,
|
|
1080
|
+
update: update21,
|
|
1081
|
+
remove: remove21
|
|
1082
|
+
};
|
|
1083
|
+
|
|
1084
|
+
// generated/modules/identifier-group.ts
|
|
1085
|
+
function findAll22(options) {
|
|
1086
|
+
return __async(this, null, function* () {
|
|
1087
|
+
return yield getAllObjects(IDENTIFIER_GROUP, options == null ? void 0 : options.where);
|
|
1088
|
+
});
|
|
1089
|
+
}
|
|
1090
|
+
function findOne22(id) {
|
|
1091
|
+
return __async(this, null, function* () {
|
|
1092
|
+
return yield getObjectById(IDENTIFIER_GROUP, id);
|
|
1093
|
+
});
|
|
1094
|
+
}
|
|
1095
|
+
function create22(data) {
|
|
1096
|
+
return __async(this, null, function* () {
|
|
1097
|
+
return yield createObject(IDENTIFIER_GROUP, data);
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
1100
|
+
function update22(id, newData) {
|
|
1101
|
+
return __async(this, null, function* () {
|
|
1102
|
+
return yield updateObject(IDENTIFIER_GROUP, id, newData);
|
|
1103
|
+
});
|
|
1104
|
+
}
|
|
1105
|
+
function remove22(id) {
|
|
1106
|
+
return __async(this, null, function* () {
|
|
1107
|
+
return yield deleteObject(IDENTIFIER_GROUP, id);
|
|
1108
|
+
});
|
|
1109
|
+
}
|
|
1110
|
+
var identifierGroup = {
|
|
1111
|
+
findAll: findAll22,
|
|
1112
|
+
findOne: findOne22,
|
|
1113
|
+
create: create22,
|
|
1114
|
+
update: update22,
|
|
1115
|
+
remove: remove22
|
|
1116
|
+
};
|
|
1117
|
+
|
|
1118
|
+
// generated/modules/identifier-token.ts
|
|
1119
|
+
function findAll23(options) {
|
|
1120
|
+
return __async(this, null, function* () {
|
|
1121
|
+
return yield getAllObjects(IDENTIFIER_TOKEN, options == null ? void 0 : options.where);
|
|
1122
|
+
});
|
|
1123
|
+
}
|
|
1124
|
+
function findOne23(id) {
|
|
1125
|
+
return __async(this, null, function* () {
|
|
1126
|
+
return yield getObjectById(IDENTIFIER_TOKEN, id);
|
|
1127
|
+
});
|
|
1128
|
+
}
|
|
1129
|
+
function create23(data) {
|
|
1130
|
+
return __async(this, null, function* () {
|
|
1131
|
+
return yield createObject(IDENTIFIER_TOKEN, data);
|
|
1132
|
+
});
|
|
1133
|
+
}
|
|
1134
|
+
function update23(id, newData) {
|
|
1135
|
+
return __async(this, null, function* () {
|
|
1136
|
+
return yield updateObject(IDENTIFIER_TOKEN, id, newData);
|
|
1137
|
+
});
|
|
1138
|
+
}
|
|
1139
|
+
function remove23(id) {
|
|
1140
|
+
return __async(this, null, function* () {
|
|
1141
|
+
return yield deleteObject(IDENTIFIER_TOKEN, id);
|
|
1142
|
+
});
|
|
1143
|
+
}
|
|
1144
|
+
var identifierToken = {
|
|
1145
|
+
findAll: findAll23,
|
|
1146
|
+
findOne: findOne23,
|
|
1147
|
+
create: create23,
|
|
1148
|
+
update: update23,
|
|
1149
|
+
remove: remove23
|
|
1150
|
+
};
|
|
1151
|
+
|
|
1152
|
+
// generated/modules/invoice-line.ts
|
|
1153
|
+
function findAll24(options) {
|
|
1154
|
+
return __async(this, null, function* () {
|
|
1155
|
+
return yield getAllObjects(INVOICE_LINE, options == null ? void 0 : options.where);
|
|
1156
|
+
});
|
|
1157
|
+
}
|
|
1158
|
+
function findOne24(id) {
|
|
1159
|
+
return __async(this, null, function* () {
|
|
1160
|
+
return yield getObjectById(INVOICE_LINE, id);
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
function create24(data) {
|
|
1164
|
+
return __async(this, null, function* () {
|
|
1165
|
+
return yield createObject(INVOICE_LINE, data);
|
|
1166
|
+
});
|
|
1167
|
+
}
|
|
1168
|
+
function update24(id, newData) {
|
|
1169
|
+
return __async(this, null, function* () {
|
|
1170
|
+
return yield updateObject(INVOICE_LINE, id, newData);
|
|
1171
|
+
});
|
|
1172
|
+
}
|
|
1173
|
+
function remove24(id) {
|
|
1174
|
+
return __async(this, null, function* () {
|
|
1175
|
+
return yield deleteObject(INVOICE_LINE, id);
|
|
1176
|
+
});
|
|
1177
|
+
}
|
|
1178
|
+
var invoiceLine = {
|
|
1179
|
+
findAll: findAll24,
|
|
1180
|
+
findOne: findOne24,
|
|
1181
|
+
create: create24,
|
|
1182
|
+
update: update24,
|
|
1183
|
+
remove: remove24
|
|
1184
|
+
};
|
|
1185
|
+
|
|
1186
|
+
// generated/modules/invoice.ts
|
|
1187
|
+
function findAll25(options) {
|
|
1188
|
+
return __async(this, null, function* () {
|
|
1189
|
+
return yield getAllObjects(INVOICE, options == null ? void 0 : options.where);
|
|
1190
|
+
});
|
|
1191
|
+
}
|
|
1192
|
+
function findOne25(id) {
|
|
1193
|
+
return __async(this, null, function* () {
|
|
1194
|
+
return yield getObjectById(INVOICE, id);
|
|
1195
|
+
});
|
|
1196
|
+
}
|
|
1197
|
+
function create25(data) {
|
|
1198
|
+
return __async(this, null, function* () {
|
|
1199
|
+
return yield createObject(INVOICE, data);
|
|
1200
|
+
});
|
|
1201
|
+
}
|
|
1202
|
+
function update25(id, newData) {
|
|
1203
|
+
return __async(this, null, function* () {
|
|
1204
|
+
return yield updateObject(INVOICE, id, newData);
|
|
1205
|
+
});
|
|
1206
|
+
}
|
|
1207
|
+
function remove25(id) {
|
|
1208
|
+
return __async(this, null, function* () {
|
|
1209
|
+
return yield deleteObject(INVOICE, id);
|
|
1210
|
+
});
|
|
1211
|
+
}
|
|
1212
|
+
var invoice = {
|
|
1213
|
+
findAll: findAll25,
|
|
1214
|
+
findOne: findOne25,
|
|
1215
|
+
create: create25,
|
|
1216
|
+
update: update25,
|
|
1217
|
+
remove: remove25
|
|
1218
|
+
};
|
|
1219
|
+
|
|
1220
|
+
// generated/modules/purchase-order-line.ts
|
|
1221
|
+
function findAll26(options) {
|
|
1222
|
+
return __async(this, null, function* () {
|
|
1223
|
+
return yield getAllObjects(PURCHASE_ORDER_LINE, options == null ? void 0 : options.where);
|
|
1224
|
+
});
|
|
1225
|
+
}
|
|
1226
|
+
function findOne26(id) {
|
|
1227
|
+
return __async(this, null, function* () {
|
|
1228
|
+
return yield getObjectById(PURCHASE_ORDER_LINE, id);
|
|
1229
|
+
});
|
|
1230
|
+
}
|
|
1231
|
+
function create26(data) {
|
|
1232
|
+
return __async(this, null, function* () {
|
|
1233
|
+
return yield createObject(PURCHASE_ORDER_LINE, data);
|
|
1234
|
+
});
|
|
1235
|
+
}
|
|
1236
|
+
function update26(id, newData) {
|
|
1237
|
+
return __async(this, null, function* () {
|
|
1238
|
+
return yield updateObject(PURCHASE_ORDER_LINE, id, newData);
|
|
1239
|
+
});
|
|
1240
|
+
}
|
|
1241
|
+
function remove26(id) {
|
|
1242
|
+
return __async(this, null, function* () {
|
|
1243
|
+
return yield deleteObject(PURCHASE_ORDER_LINE, id);
|
|
1244
|
+
});
|
|
1245
|
+
}
|
|
1246
|
+
var purchaseOrderLine = {
|
|
1247
|
+
findAll: findAll26,
|
|
1248
|
+
findOne: findOne26,
|
|
1249
|
+
create: create26,
|
|
1250
|
+
update: update26,
|
|
1251
|
+
remove: remove26
|
|
1252
|
+
};
|
|
1253
|
+
|
|
1254
|
+
// generated/modules/purchase-order.ts
|
|
1255
|
+
function findAll27(options) {
|
|
1256
|
+
return __async(this, null, function* () {
|
|
1257
|
+
return yield getAllObjects(PURCHASE_ORDER, options == null ? void 0 : options.where);
|
|
1258
|
+
});
|
|
1259
|
+
}
|
|
1260
|
+
function findOne27(id) {
|
|
1261
|
+
return __async(this, null, function* () {
|
|
1262
|
+
return yield getObjectById(PURCHASE_ORDER, id);
|
|
1263
|
+
});
|
|
1264
|
+
}
|
|
1265
|
+
function create27(data) {
|
|
1266
|
+
return __async(this, null, function* () {
|
|
1267
|
+
return yield createObject(PURCHASE_ORDER, data);
|
|
1268
|
+
});
|
|
1269
|
+
}
|
|
1270
|
+
function update27(id, newData) {
|
|
1271
|
+
return __async(this, null, function* () {
|
|
1272
|
+
return yield updateObject(PURCHASE_ORDER, id, newData);
|
|
1273
|
+
});
|
|
1274
|
+
}
|
|
1275
|
+
function remove27(id) {
|
|
1276
|
+
return __async(this, null, function* () {
|
|
1277
|
+
return yield deleteObject(PURCHASE_ORDER, id);
|
|
1278
|
+
});
|
|
1279
|
+
}
|
|
1280
|
+
var purchaseOrder = {
|
|
1281
|
+
findAll: findAll27,
|
|
1282
|
+
findOne: findOne27,
|
|
1283
|
+
create: create27,
|
|
1284
|
+
update: update27,
|
|
1285
|
+
remove: remove27
|
|
1286
|
+
};
|
|
1287
|
+
|
|
1288
|
+
// generated/modules/sales-order-line.ts
|
|
1289
|
+
function findAll28(options) {
|
|
1290
|
+
return __async(this, null, function* () {
|
|
1291
|
+
return yield getAllObjects(SALES_ORDER_LINE, options == null ? void 0 : options.where);
|
|
1292
|
+
});
|
|
1293
|
+
}
|
|
1294
|
+
function findOne28(id) {
|
|
1295
|
+
return __async(this, null, function* () {
|
|
1296
|
+
return yield getObjectById(SALES_ORDER_LINE, id);
|
|
1297
|
+
});
|
|
1298
|
+
}
|
|
1299
|
+
function create28(data) {
|
|
1300
|
+
return __async(this, null, function* () {
|
|
1301
|
+
return yield createObject(SALES_ORDER_LINE, data);
|
|
1302
|
+
});
|
|
1303
|
+
}
|
|
1304
|
+
function update28(id, newData) {
|
|
1305
|
+
return __async(this, null, function* () {
|
|
1306
|
+
return yield updateObject(SALES_ORDER_LINE, id, newData);
|
|
1307
|
+
});
|
|
1308
|
+
}
|
|
1309
|
+
function remove28(id) {
|
|
1310
|
+
return __async(this, null, function* () {
|
|
1311
|
+
return yield deleteObject(SALES_ORDER_LINE, id);
|
|
1312
|
+
});
|
|
1313
|
+
}
|
|
1314
|
+
var salesOrderLine = {
|
|
1315
|
+
findAll: findAll28,
|
|
1316
|
+
findOne: findOne28,
|
|
1317
|
+
create: create28,
|
|
1318
|
+
update: update28,
|
|
1319
|
+
remove: remove28
|
|
1320
|
+
};
|
|
1321
|
+
|
|
1322
|
+
// generated/modules/sales-order.ts
|
|
1323
|
+
function findAll29(options) {
|
|
1324
|
+
return __async(this, null, function* () {
|
|
1325
|
+
return yield getAllObjects(SALES_ORDER, options == null ? void 0 : options.where);
|
|
1326
|
+
});
|
|
1327
|
+
}
|
|
1328
|
+
function findOne29(id) {
|
|
1329
|
+
return __async(this, null, function* () {
|
|
1330
|
+
return yield getObjectById(SALES_ORDER, id);
|
|
1331
|
+
});
|
|
1332
|
+
}
|
|
1333
|
+
function create29(data) {
|
|
1334
|
+
return __async(this, null, function* () {
|
|
1335
|
+
return yield createObject(SALES_ORDER, data);
|
|
1336
|
+
});
|
|
1337
|
+
}
|
|
1338
|
+
function update29(id, newData) {
|
|
1339
|
+
return __async(this, null, function* () {
|
|
1340
|
+
return yield updateObject(SALES_ORDER, id, newData);
|
|
1341
|
+
});
|
|
1342
|
+
}
|
|
1343
|
+
function remove29(id) {
|
|
1344
|
+
return __async(this, null, function* () {
|
|
1345
|
+
return yield deleteObject(SALES_ORDER, id);
|
|
1346
|
+
});
|
|
1347
|
+
}
|
|
1348
|
+
var salesOrder = {
|
|
1349
|
+
findAll: findAll29,
|
|
1350
|
+
findOne: findOne29,
|
|
1351
|
+
create: create29,
|
|
1352
|
+
update: update29,
|
|
1353
|
+
remove: remove29
|
|
1354
|
+
};
|
|
1355
|
+
|
|
1356
|
+
// generated/modules/product-item.ts
|
|
1357
|
+
function findAll30(options) {
|
|
1358
|
+
return __async(this, null, function* () {
|
|
1359
|
+
return yield getAllObjects(PRODUCT_ITEM, options == null ? void 0 : options.where);
|
|
1360
|
+
});
|
|
1361
|
+
}
|
|
1362
|
+
function findOne30(id) {
|
|
1363
|
+
return __async(this, null, function* () {
|
|
1364
|
+
return yield getObjectById(PRODUCT_ITEM, id);
|
|
1365
|
+
});
|
|
1366
|
+
}
|
|
1367
|
+
function create30(data) {
|
|
1368
|
+
return __async(this, null, function* () {
|
|
1369
|
+
return yield createObject(PRODUCT_ITEM, data);
|
|
1370
|
+
});
|
|
1371
|
+
}
|
|
1372
|
+
function update30(id, newData) {
|
|
1373
|
+
return __async(this, null, function* () {
|
|
1374
|
+
return yield updateObject(PRODUCT_ITEM, id, newData);
|
|
1375
|
+
});
|
|
1376
|
+
}
|
|
1377
|
+
function remove30(id) {
|
|
1378
|
+
return __async(this, null, function* () {
|
|
1379
|
+
return yield deleteObject(PRODUCT_ITEM, id);
|
|
1380
|
+
});
|
|
1381
|
+
}
|
|
1382
|
+
var productItem = {
|
|
1383
|
+
findAll: findAll30,
|
|
1384
|
+
findOne: findOne30,
|
|
1385
|
+
create: create30,
|
|
1386
|
+
update: update30,
|
|
1387
|
+
remove: remove30
|
|
1388
|
+
};
|
|
1389
|
+
|
|
1390
|
+
// generated/modules/product-supplier.ts
|
|
1391
|
+
function findAll31(options) {
|
|
1392
|
+
return __async(this, null, function* () {
|
|
1393
|
+
return yield getAllObjects(PRODUCT_SUPPLIER, options == null ? void 0 : options.where);
|
|
1394
|
+
});
|
|
1395
|
+
}
|
|
1396
|
+
function findOne31(id) {
|
|
1397
|
+
return __async(this, null, function* () {
|
|
1398
|
+
return yield getObjectById(PRODUCT_SUPPLIER, id);
|
|
1399
|
+
});
|
|
1400
|
+
}
|
|
1401
|
+
function create31(data) {
|
|
1402
|
+
return __async(this, null, function* () {
|
|
1403
|
+
return yield createObject(PRODUCT_SUPPLIER, data);
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1406
|
+
function update31(id, newData) {
|
|
1407
|
+
return __async(this, null, function* () {
|
|
1408
|
+
return yield updateObject(PRODUCT_SUPPLIER, id, newData);
|
|
1409
|
+
});
|
|
1410
|
+
}
|
|
1411
|
+
function remove31(id) {
|
|
1412
|
+
return __async(this, null, function* () {
|
|
1413
|
+
return yield deleteObject(PRODUCT_SUPPLIER, id);
|
|
1414
|
+
});
|
|
1415
|
+
}
|
|
1416
|
+
var productSupplier = {
|
|
1417
|
+
findAll: findAll31,
|
|
1418
|
+
findOne: findOne31,
|
|
1419
|
+
create: create31,
|
|
1420
|
+
update: update31,
|
|
1421
|
+
remove: remove31
|
|
1422
|
+
};
|
|
1423
|
+
|
|
1424
|
+
// generated/modules/product.ts
|
|
1425
|
+
function findAll32(options) {
|
|
1426
|
+
return __async(this, null, function* () {
|
|
1427
|
+
return yield getAllObjects(PRODUCT, options == null ? void 0 : options.where);
|
|
1428
|
+
});
|
|
1429
|
+
}
|
|
1430
|
+
function findOne32(id) {
|
|
1431
|
+
return __async(this, null, function* () {
|
|
1432
|
+
return yield getObjectById(PRODUCT, id);
|
|
1433
|
+
});
|
|
1434
|
+
}
|
|
1435
|
+
function create32(data) {
|
|
1436
|
+
return __async(this, null, function* () {
|
|
1437
|
+
return yield createObject(PRODUCT, data);
|
|
1438
|
+
});
|
|
1439
|
+
}
|
|
1440
|
+
function update32(id, newData) {
|
|
1441
|
+
return __async(this, null, function* () {
|
|
1442
|
+
return yield updateObject(PRODUCT, id, newData);
|
|
1443
|
+
});
|
|
1444
|
+
}
|
|
1445
|
+
function remove32(id) {
|
|
1446
|
+
return __async(this, null, function* () {
|
|
1447
|
+
return yield deleteObject(PRODUCT, id);
|
|
1448
|
+
});
|
|
1449
|
+
}
|
|
1450
|
+
var product = {
|
|
1451
|
+
findAll: findAll32,
|
|
1452
|
+
findOne: findOne32,
|
|
1453
|
+
create: create32,
|
|
1454
|
+
update: update32,
|
|
1455
|
+
remove: remove32
|
|
1456
|
+
};
|
|
1457
|
+
|
|
1458
|
+
// generated/modules/product-group.ts
|
|
1459
|
+
function findAll33(options) {
|
|
1460
|
+
return __async(this, null, function* () {
|
|
1461
|
+
return yield getAllObjects(PRODUCT_GROUP, options == null ? void 0 : options.where);
|
|
1462
|
+
});
|
|
1463
|
+
}
|
|
1464
|
+
function findOne33(id) {
|
|
1465
|
+
return __async(this, null, function* () {
|
|
1466
|
+
return yield getObjectById(PRODUCT_GROUP, id);
|
|
1467
|
+
});
|
|
1468
|
+
}
|
|
1469
|
+
function create33(data) {
|
|
1470
|
+
return __async(this, null, function* () {
|
|
1471
|
+
return yield createObject(PRODUCT_GROUP, data);
|
|
1472
|
+
});
|
|
1473
|
+
}
|
|
1474
|
+
function update33(id, newData) {
|
|
1475
|
+
return __async(this, null, function* () {
|
|
1476
|
+
return yield updateObject(PRODUCT_GROUP, id, newData);
|
|
1477
|
+
});
|
|
1478
|
+
}
|
|
1479
|
+
function remove33(id) {
|
|
1480
|
+
return __async(this, null, function* () {
|
|
1481
|
+
return yield deleteObject(PRODUCT_GROUP, id);
|
|
1482
|
+
});
|
|
1483
|
+
}
|
|
1484
|
+
var productGroup = {
|
|
1485
|
+
findAll: findAll33,
|
|
1486
|
+
findOne: findOne33,
|
|
1487
|
+
create: create33,
|
|
1488
|
+
update: update33,
|
|
1489
|
+
remove: remove33
|
|
1490
|
+
};
|
|
1491
|
+
|
|
1492
|
+
// generated/modules/quote-line.ts
|
|
1493
|
+
function findAll34(options) {
|
|
1494
|
+
return __async(this, null, function* () {
|
|
1495
|
+
return yield getAllObjects(QUOTE_LINE, options == null ? void 0 : options.where);
|
|
1496
|
+
});
|
|
1497
|
+
}
|
|
1498
|
+
function findOne34(id) {
|
|
1499
|
+
return __async(this, null, function* () {
|
|
1500
|
+
return yield getObjectById(QUOTE_LINE, id);
|
|
1501
|
+
});
|
|
1502
|
+
}
|
|
1503
|
+
function create34(data) {
|
|
1504
|
+
return __async(this, null, function* () {
|
|
1505
|
+
return yield createObject(QUOTE_LINE, data);
|
|
1506
|
+
});
|
|
1507
|
+
}
|
|
1508
|
+
function update34(id, newData) {
|
|
1509
|
+
return __async(this, null, function* () {
|
|
1510
|
+
return yield updateObject(QUOTE_LINE, id, newData);
|
|
1511
|
+
});
|
|
1512
|
+
}
|
|
1513
|
+
function remove34(id) {
|
|
1514
|
+
return __async(this, null, function* () {
|
|
1515
|
+
return yield deleteObject(QUOTE_LINE, id);
|
|
1516
|
+
});
|
|
1517
|
+
}
|
|
1518
|
+
var quoteLine = {
|
|
1519
|
+
findAll: findAll34,
|
|
1520
|
+
findOne: findOne34,
|
|
1521
|
+
create: create34,
|
|
1522
|
+
update: update34,
|
|
1523
|
+
remove: remove34
|
|
1524
|
+
};
|
|
1525
|
+
|
|
1526
|
+
// generated/modules/quote.ts
|
|
1527
|
+
function findAll35(options) {
|
|
1528
|
+
return __async(this, null, function* () {
|
|
1529
|
+
return yield getAllObjects(QUOTE, options == null ? void 0 : options.where);
|
|
1530
|
+
});
|
|
1531
|
+
}
|
|
1532
|
+
function findOne35(id) {
|
|
1533
|
+
return __async(this, null, function* () {
|
|
1534
|
+
return yield getObjectById(QUOTE, id);
|
|
1535
|
+
});
|
|
1536
|
+
}
|
|
1537
|
+
function create35(data) {
|
|
1538
|
+
return __async(this, null, function* () {
|
|
1539
|
+
return yield createObject(QUOTE, data);
|
|
1540
|
+
});
|
|
1541
|
+
}
|
|
1542
|
+
function update35(id, newData) {
|
|
1543
|
+
return __async(this, null, function* () {
|
|
1544
|
+
return yield updateObject(QUOTE, id, newData);
|
|
1545
|
+
});
|
|
1546
|
+
}
|
|
1547
|
+
function remove35(id) {
|
|
1548
|
+
return __async(this, null, function* () {
|
|
1549
|
+
return yield deleteObject(QUOTE, id);
|
|
1550
|
+
});
|
|
1551
|
+
}
|
|
1552
|
+
var quote = {
|
|
1553
|
+
findAll: findAll35,
|
|
1554
|
+
findOne: findOne35,
|
|
1555
|
+
create: create35,
|
|
1556
|
+
update: update35,
|
|
1557
|
+
remove: remove35
|
|
1558
|
+
};
|
|
1559
|
+
|
|
1560
|
+
// generated/modules/custom-report.ts
|
|
1561
|
+
function findAll36(options) {
|
|
1562
|
+
return __async(this, null, function* () {
|
|
1563
|
+
return yield getAllObjects(CUSTOM_REPORT, options == null ? void 0 : options.where);
|
|
1564
|
+
});
|
|
1565
|
+
}
|
|
1566
|
+
function findOne36(id) {
|
|
1567
|
+
return __async(this, null, function* () {
|
|
1568
|
+
return yield getObjectById(CUSTOM_REPORT, id);
|
|
1569
|
+
});
|
|
1570
|
+
}
|
|
1571
|
+
function create36(data) {
|
|
1572
|
+
return __async(this, null, function* () {
|
|
1573
|
+
return yield createObject(CUSTOM_REPORT, data);
|
|
1574
|
+
});
|
|
1575
|
+
}
|
|
1576
|
+
function update36(id, newData) {
|
|
1577
|
+
return __async(this, null, function* () {
|
|
1578
|
+
return yield updateObject(CUSTOM_REPORT, id, newData);
|
|
1579
|
+
});
|
|
1580
|
+
}
|
|
1581
|
+
function remove36(id) {
|
|
1582
|
+
return __async(this, null, function* () {
|
|
1583
|
+
return yield deleteObject(CUSTOM_REPORT, id);
|
|
1584
|
+
});
|
|
1585
|
+
}
|
|
1586
|
+
var customReport = {
|
|
1587
|
+
findAll: findAll36,
|
|
1588
|
+
findOne: findOne36,
|
|
1589
|
+
create: create36,
|
|
1590
|
+
update: update36,
|
|
1591
|
+
remove: remove36
|
|
1592
|
+
};
|
|
1593
|
+
|
|
1594
|
+
// generated/modules/incoming-shipment.ts
|
|
1595
|
+
function findAll37(options) {
|
|
1596
|
+
return __async(this, null, function* () {
|
|
1597
|
+
return yield getAllObjects(INCOMING_SHIPMENT, options == null ? void 0 : options.where);
|
|
1598
|
+
});
|
|
1599
|
+
}
|
|
1600
|
+
function findOne37(id) {
|
|
1601
|
+
return __async(this, null, function* () {
|
|
1602
|
+
return yield getObjectById(INCOMING_SHIPMENT, id);
|
|
1603
|
+
});
|
|
1604
|
+
}
|
|
1605
|
+
function create37(data) {
|
|
1606
|
+
return __async(this, null, function* () {
|
|
1607
|
+
return yield createObject(INCOMING_SHIPMENT, data);
|
|
1608
|
+
});
|
|
1609
|
+
}
|
|
1610
|
+
function update37(id, newData) {
|
|
1611
|
+
return __async(this, null, function* () {
|
|
1612
|
+
return yield updateObject(INCOMING_SHIPMENT, id, newData);
|
|
1613
|
+
});
|
|
1614
|
+
}
|
|
1615
|
+
function remove37(id) {
|
|
1616
|
+
return __async(this, null, function* () {
|
|
1617
|
+
return yield deleteObject(INCOMING_SHIPMENT, id);
|
|
1618
|
+
});
|
|
1619
|
+
}
|
|
1620
|
+
var incomingShipment = {
|
|
1621
|
+
findAll: findAll37,
|
|
1622
|
+
findOne: findOne37,
|
|
1623
|
+
create: create37,
|
|
1624
|
+
update: update37,
|
|
1625
|
+
remove: remove37
|
|
1626
|
+
};
|
|
1627
|
+
|
|
1628
|
+
// generated/modules/outgoing-shipment.ts
|
|
1629
|
+
function findAll38(options) {
|
|
1630
|
+
return __async(this, null, function* () {
|
|
1631
|
+
return yield getAllObjects(OUTGOING_SHIPMENT, options == null ? void 0 : options.where);
|
|
1632
|
+
});
|
|
1633
|
+
}
|
|
1634
|
+
function findOne38(id) {
|
|
1635
|
+
return __async(this, null, function* () {
|
|
1636
|
+
return yield getObjectById(OUTGOING_SHIPMENT, id);
|
|
1637
|
+
});
|
|
1638
|
+
}
|
|
1639
|
+
function create38(data) {
|
|
1640
|
+
return __async(this, null, function* () {
|
|
1641
|
+
return yield createObject(OUTGOING_SHIPMENT, data);
|
|
1642
|
+
});
|
|
1643
|
+
}
|
|
1644
|
+
function update38(id, newData) {
|
|
1645
|
+
return __async(this, null, function* () {
|
|
1646
|
+
return yield updateObject(OUTGOING_SHIPMENT, id, newData);
|
|
1647
|
+
});
|
|
1648
|
+
}
|
|
1649
|
+
function remove38(id) {
|
|
1650
|
+
return __async(this, null, function* () {
|
|
1651
|
+
return yield deleteObject(OUTGOING_SHIPMENT, id);
|
|
1652
|
+
});
|
|
1653
|
+
}
|
|
1654
|
+
var outgoingShipment = {
|
|
1655
|
+
findAll: findAll38,
|
|
1656
|
+
findOne: findOne38,
|
|
1657
|
+
create: create38,
|
|
1658
|
+
update: update38,
|
|
1659
|
+
remove: remove38
|
|
1660
|
+
};
|
|
1661
|
+
|
|
1662
|
+
// generated/modules/stock-adjustment.ts
|
|
1663
|
+
function findAll39(options) {
|
|
1664
|
+
return __async(this, null, function* () {
|
|
1665
|
+
return yield getAllObjects(STOCK_ADJUSTMENT, options == null ? void 0 : options.where);
|
|
1666
|
+
});
|
|
1667
|
+
}
|
|
1668
|
+
function findOne39(id) {
|
|
1669
|
+
return __async(this, null, function* () {
|
|
1670
|
+
return yield getObjectById(STOCK_ADJUSTMENT, id);
|
|
1671
|
+
});
|
|
1672
|
+
}
|
|
1673
|
+
function create39(data) {
|
|
1674
|
+
return __async(this, null, function* () {
|
|
1675
|
+
return yield createObject(STOCK_ADJUSTMENT, data);
|
|
1676
|
+
});
|
|
1677
|
+
}
|
|
1678
|
+
function update39(id, newData) {
|
|
1679
|
+
return __async(this, null, function* () {
|
|
1680
|
+
return yield updateObject(STOCK_ADJUSTMENT, id, newData);
|
|
1681
|
+
});
|
|
1682
|
+
}
|
|
1683
|
+
function remove39(id) {
|
|
1684
|
+
return __async(this, null, function* () {
|
|
1685
|
+
return yield deleteObject(STOCK_ADJUSTMENT, id);
|
|
1686
|
+
});
|
|
1687
|
+
}
|
|
1688
|
+
var stockAdjustment = {
|
|
1689
|
+
findAll: findAll39,
|
|
1690
|
+
findOne: findOne39,
|
|
1691
|
+
create: create39,
|
|
1692
|
+
update: update39,
|
|
1693
|
+
remove: remove39
|
|
1694
|
+
};
|
|
1695
|
+
|
|
1696
|
+
// generated/modules/store-product-attribute-value.ts
|
|
1697
|
+
function findAll40(options) {
|
|
1698
|
+
return __async(this, null, function* () {
|
|
1699
|
+
return yield getAllObjects(STORE_PRODUCT_ATTRIBUTE_VALUE, options == null ? void 0 : options.where);
|
|
1700
|
+
});
|
|
1701
|
+
}
|
|
1702
|
+
function findOne40(id) {
|
|
1703
|
+
return __async(this, null, function* () {
|
|
1704
|
+
return yield getObjectById(STORE_PRODUCT_ATTRIBUTE_VALUE, id);
|
|
1705
|
+
});
|
|
1706
|
+
}
|
|
1707
|
+
function create40(data) {
|
|
1708
|
+
return __async(this, null, function* () {
|
|
1709
|
+
return yield createObject(STORE_PRODUCT_ATTRIBUTE_VALUE, data);
|
|
1710
|
+
});
|
|
1711
|
+
}
|
|
1712
|
+
function update40(id, newData) {
|
|
1713
|
+
return __async(this, null, function* () {
|
|
1714
|
+
return yield updateObject(STORE_PRODUCT_ATTRIBUTE_VALUE, id, newData);
|
|
1715
|
+
});
|
|
1716
|
+
}
|
|
1717
|
+
function remove40(id) {
|
|
1718
|
+
return __async(this, null, function* () {
|
|
1719
|
+
return yield deleteObject(STORE_PRODUCT_ATTRIBUTE_VALUE, id);
|
|
1720
|
+
});
|
|
1721
|
+
}
|
|
1722
|
+
var storeProductAttributeValue = {
|
|
1723
|
+
findAll: findAll40,
|
|
1724
|
+
findOne: findOne40,
|
|
1725
|
+
create: create40,
|
|
1726
|
+
update: update40,
|
|
1727
|
+
remove: remove40
|
|
1728
|
+
};
|
|
1729
|
+
|
|
1730
|
+
// generated/modules/store-product-attribute.ts
|
|
1731
|
+
function findAll41(options) {
|
|
1732
|
+
return __async(this, null, function* () {
|
|
1733
|
+
return yield getAllObjects(STORE_PRODUCT_ATTRIBUTE, options == null ? void 0 : options.where);
|
|
1734
|
+
});
|
|
1735
|
+
}
|
|
1736
|
+
function findOne41(id) {
|
|
1737
|
+
return __async(this, null, function* () {
|
|
1738
|
+
return yield getObjectById(STORE_PRODUCT_ATTRIBUTE, id);
|
|
1739
|
+
});
|
|
1740
|
+
}
|
|
1741
|
+
function create41(data) {
|
|
1742
|
+
return __async(this, null, function* () {
|
|
1743
|
+
return yield createObject(STORE_PRODUCT_ATTRIBUTE, data);
|
|
1744
|
+
});
|
|
1745
|
+
}
|
|
1746
|
+
function update41(id, newData) {
|
|
1747
|
+
return __async(this, null, function* () {
|
|
1748
|
+
return yield updateObject(STORE_PRODUCT_ATTRIBUTE, id, newData);
|
|
1749
|
+
});
|
|
1750
|
+
}
|
|
1751
|
+
function remove41(id) {
|
|
1752
|
+
return __async(this, null, function* () {
|
|
1753
|
+
return yield deleteObject(STORE_PRODUCT_ATTRIBUTE, id);
|
|
1754
|
+
});
|
|
1755
|
+
}
|
|
1756
|
+
var storeProductAttribute = {
|
|
1757
|
+
findAll: findAll41,
|
|
1758
|
+
findOne: findOne41,
|
|
1759
|
+
create: create41,
|
|
1760
|
+
update: update41,
|
|
1761
|
+
remove: remove41
|
|
1762
|
+
};
|
|
1763
|
+
|
|
1764
|
+
// generated/modules/store-product-group.ts
|
|
1765
|
+
function findAll42(options) {
|
|
1766
|
+
return __async(this, null, function* () {
|
|
1767
|
+
return yield getAllObjects(STORE_PRODUCT_GROUP, options == null ? void 0 : options.where);
|
|
1768
|
+
});
|
|
1769
|
+
}
|
|
1770
|
+
function findOne42(id) {
|
|
1771
|
+
return __async(this, null, function* () {
|
|
1772
|
+
return yield getObjectById(STORE_PRODUCT_GROUP, id);
|
|
1773
|
+
});
|
|
1774
|
+
}
|
|
1775
|
+
function create42(data) {
|
|
1776
|
+
return __async(this, null, function* () {
|
|
1777
|
+
return yield createObject(STORE_PRODUCT_GROUP, data);
|
|
1778
|
+
});
|
|
1779
|
+
}
|
|
1780
|
+
function update42(id, newData) {
|
|
1781
|
+
return __async(this, null, function* () {
|
|
1782
|
+
return yield updateObject(STORE_PRODUCT_GROUP, id, newData);
|
|
1783
|
+
});
|
|
1784
|
+
}
|
|
1785
|
+
function remove42(id) {
|
|
1786
|
+
return __async(this, null, function* () {
|
|
1787
|
+
return yield deleteObject(STORE_PRODUCT_GROUP, id);
|
|
1788
|
+
});
|
|
1789
|
+
}
|
|
1790
|
+
var storeProductGroup = {
|
|
1791
|
+
findAll: findAll42,
|
|
1792
|
+
findOne: findOne42,
|
|
1793
|
+
create: create42,
|
|
1794
|
+
update: update42,
|
|
1795
|
+
remove: remove42
|
|
1796
|
+
};
|
|
1797
|
+
|
|
1798
|
+
// generated/modules/store-product.ts
|
|
1799
|
+
function findAll43(options) {
|
|
1800
|
+
return __async(this, null, function* () {
|
|
1801
|
+
return yield getAllObjects(STORE_PRODUCT, options == null ? void 0 : options.where);
|
|
1802
|
+
});
|
|
1803
|
+
}
|
|
1804
|
+
function findOne43(id) {
|
|
1805
|
+
return __async(this, null, function* () {
|
|
1806
|
+
return yield getObjectById(STORE_PRODUCT, id);
|
|
1807
|
+
});
|
|
1808
|
+
}
|
|
1809
|
+
function create43(data) {
|
|
1810
|
+
return __async(this, null, function* () {
|
|
1811
|
+
return yield createObject(STORE_PRODUCT, data);
|
|
1812
|
+
});
|
|
1813
|
+
}
|
|
1814
|
+
function update43(id, newData) {
|
|
1815
|
+
return __async(this, null, function* () {
|
|
1816
|
+
return yield updateObject(STORE_PRODUCT, id, newData);
|
|
1817
|
+
});
|
|
1818
|
+
}
|
|
1819
|
+
function remove43(id) {
|
|
1820
|
+
return __async(this, null, function* () {
|
|
1821
|
+
return yield deleteObject(STORE_PRODUCT, id);
|
|
1822
|
+
});
|
|
1823
|
+
}
|
|
1824
|
+
var storeProduct = {
|
|
1825
|
+
findAll: findAll43,
|
|
1826
|
+
findOne: findOne43,
|
|
1827
|
+
create: create43,
|
|
1828
|
+
update: update43,
|
|
1829
|
+
remove: remove43
|
|
1830
|
+
};
|
|
1831
|
+
|
|
1832
|
+
// generated/modules/store.ts
|
|
1833
|
+
function findAll44(options) {
|
|
1834
|
+
return __async(this, null, function* () {
|
|
1835
|
+
return yield getAllObjects(STORE, options == null ? void 0 : options.where);
|
|
1836
|
+
});
|
|
1837
|
+
}
|
|
1838
|
+
function findOne44(id) {
|
|
1839
|
+
return __async(this, null, function* () {
|
|
1840
|
+
return yield getObjectById(STORE, id);
|
|
1841
|
+
});
|
|
1842
|
+
}
|
|
1843
|
+
function create44(data) {
|
|
1844
|
+
return __async(this, null, function* () {
|
|
1845
|
+
return yield createObject(STORE, data);
|
|
1846
|
+
});
|
|
1847
|
+
}
|
|
1848
|
+
function update44(id, newData) {
|
|
1849
|
+
return __async(this, null, function* () {
|
|
1850
|
+
return yield updateObject(STORE, id, newData);
|
|
1851
|
+
});
|
|
1852
|
+
}
|
|
1853
|
+
function remove44(id) {
|
|
1854
|
+
return __async(this, null, function* () {
|
|
1855
|
+
return yield deleteObject(STORE, id);
|
|
1856
|
+
});
|
|
1857
|
+
}
|
|
1858
|
+
var store = {
|
|
1859
|
+
findAll: findAll44,
|
|
1860
|
+
findOne: findOne44,
|
|
1861
|
+
create: create44,
|
|
1862
|
+
update: update44,
|
|
1863
|
+
remove: remove44
|
|
1864
|
+
};
|
|
1865
|
+
|
|
1866
|
+
// generated/modules/print-job.ts
|
|
1867
|
+
function findAll45(options) {
|
|
1868
|
+
return __async(this, null, function* () {
|
|
1869
|
+
return yield getAllObjects(PRINT_JOB, options == null ? void 0 : options.where);
|
|
1870
|
+
});
|
|
1871
|
+
}
|
|
1872
|
+
function findOne45(id) {
|
|
1873
|
+
return __async(this, null, function* () {
|
|
1874
|
+
return yield getObjectById(PRINT_JOB, id);
|
|
1875
|
+
});
|
|
1876
|
+
}
|
|
1877
|
+
function create45(data) {
|
|
1878
|
+
return __async(this, null, function* () {
|
|
1879
|
+
return yield createObject(PRINT_JOB, data);
|
|
1880
|
+
});
|
|
1881
|
+
}
|
|
1882
|
+
function update45(id, newData) {
|
|
1883
|
+
return __async(this, null, function* () {
|
|
1884
|
+
return yield updateObject(PRINT_JOB, id, newData);
|
|
1885
|
+
});
|
|
1886
|
+
}
|
|
1887
|
+
function remove45(id) {
|
|
1888
|
+
return __async(this, null, function* () {
|
|
1889
|
+
return yield deleteObject(PRINT_JOB, id);
|
|
1890
|
+
});
|
|
1891
|
+
}
|
|
1892
|
+
var printJob = {
|
|
1893
|
+
findAll: findAll45,
|
|
1894
|
+
findOne: findOne45,
|
|
1895
|
+
create: create45,
|
|
1896
|
+
update: update45,
|
|
1897
|
+
remove: remove45
|
|
1898
|
+
};
|
|
1899
|
+
|
|
1900
|
+
// generated/modules/invitation.ts
|
|
1901
|
+
function findAll46(options) {
|
|
1902
|
+
return __async(this, null, function* () {
|
|
1903
|
+
return yield getAllObjects(INVITATION, options == null ? void 0 : options.where);
|
|
1904
|
+
});
|
|
1905
|
+
}
|
|
1906
|
+
function findOne46(id) {
|
|
1907
|
+
return __async(this, null, function* () {
|
|
1908
|
+
return yield getObjectById(INVITATION, id);
|
|
1909
|
+
});
|
|
1910
|
+
}
|
|
1911
|
+
function create46(data) {
|
|
1912
|
+
return __async(this, null, function* () {
|
|
1913
|
+
return yield createObject(INVITATION, data);
|
|
1914
|
+
});
|
|
1915
|
+
}
|
|
1916
|
+
function update46(id, newData) {
|
|
1917
|
+
return __async(this, null, function* () {
|
|
1918
|
+
return yield updateObject(INVITATION, id, newData);
|
|
1919
|
+
});
|
|
1920
|
+
}
|
|
1921
|
+
function remove46(id) {
|
|
1922
|
+
return __async(this, null, function* () {
|
|
1923
|
+
return yield deleteObject(INVITATION, id);
|
|
1924
|
+
});
|
|
1925
|
+
}
|
|
1926
|
+
var invitation = {
|
|
1927
|
+
findAll: findAll46,
|
|
1928
|
+
findOne: findOne46,
|
|
1929
|
+
create: create46,
|
|
1930
|
+
update: update46,
|
|
1931
|
+
remove: remove46
|
|
1932
|
+
};
|
|
1933
|
+
|
|
1934
|
+
// generated/modules/warehouse.ts
|
|
1935
|
+
function findAll47(options) {
|
|
1936
|
+
return __async(this, null, function* () {
|
|
1937
|
+
return yield getAllObjects(WAREHOUSE, options == null ? void 0 : options.where);
|
|
1938
|
+
});
|
|
1939
|
+
}
|
|
1940
|
+
function findOne47(id) {
|
|
1941
|
+
return __async(this, null, function* () {
|
|
1942
|
+
return yield getObjectById(WAREHOUSE, id);
|
|
1943
|
+
});
|
|
1944
|
+
}
|
|
1945
|
+
function create47(data) {
|
|
1946
|
+
return __async(this, null, function* () {
|
|
1947
|
+
return yield createObject(WAREHOUSE, data);
|
|
1948
|
+
});
|
|
1949
|
+
}
|
|
1950
|
+
function update47(id, newData) {
|
|
1951
|
+
return __async(this, null, function* () {
|
|
1952
|
+
return yield updateObject(WAREHOUSE, id, newData);
|
|
1953
|
+
});
|
|
1954
|
+
}
|
|
1955
|
+
function remove47(id) {
|
|
1956
|
+
return __async(this, null, function* () {
|
|
1957
|
+
return yield deleteObject(WAREHOUSE, id);
|
|
1958
|
+
});
|
|
1959
|
+
}
|
|
1960
|
+
var warehouse = {
|
|
1961
|
+
findAll: findAll47,
|
|
1962
|
+
findOne: findOne47,
|
|
1963
|
+
create: create47,
|
|
1964
|
+
update: update47,
|
|
1965
|
+
remove: remove47
|
|
1966
|
+
};
|
|
1967
|
+
|
|
1968
|
+
// generated/modules/expense-line.ts
|
|
1969
|
+
function findAll48(options) {
|
|
1970
|
+
return __async(this, null, function* () {
|
|
1971
|
+
return yield getAllObjects(EXPENSE_LINE, options == null ? void 0 : options.where);
|
|
1972
|
+
});
|
|
1973
|
+
}
|
|
1974
|
+
function findOne48(id) {
|
|
1975
|
+
return __async(this, null, function* () {
|
|
1976
|
+
return yield getObjectById(EXPENSE_LINE, id);
|
|
1977
|
+
});
|
|
1978
|
+
}
|
|
1979
|
+
function create48(data) {
|
|
1980
|
+
return __async(this, null, function* () {
|
|
1981
|
+
return yield createObject(EXPENSE_LINE, data);
|
|
1982
|
+
});
|
|
1983
|
+
}
|
|
1984
|
+
function update48(id, newData) {
|
|
1985
|
+
return __async(this, null, function* () {
|
|
1986
|
+
return yield updateObject(EXPENSE_LINE, id, newData);
|
|
1987
|
+
});
|
|
1988
|
+
}
|
|
1989
|
+
function remove48(id) {
|
|
1990
|
+
return __async(this, null, function* () {
|
|
1991
|
+
return yield deleteObject(EXPENSE_LINE, id);
|
|
1992
|
+
});
|
|
1993
|
+
}
|
|
1994
|
+
var expenseLine = {
|
|
1995
|
+
findAll: findAll48,
|
|
1996
|
+
findOne: findOne48,
|
|
1997
|
+
create: create48,
|
|
1998
|
+
update: update48,
|
|
1999
|
+
remove: remove48
|
|
2000
|
+
};
|
|
2001
|
+
|
|
2002
|
+
// generated/modules/expense.ts
|
|
2003
|
+
function findAll49(options) {
|
|
2004
|
+
return __async(this, null, function* () {
|
|
2005
|
+
return yield getAllObjects(EXPENSE, options == null ? void 0 : options.where);
|
|
2006
|
+
});
|
|
2007
|
+
}
|
|
2008
|
+
function findOne49(id) {
|
|
2009
|
+
return __async(this, null, function* () {
|
|
2010
|
+
return yield getObjectById(EXPENSE, id);
|
|
2011
|
+
});
|
|
2012
|
+
}
|
|
2013
|
+
function create49(data) {
|
|
2014
|
+
return __async(this, null, function* () {
|
|
2015
|
+
return yield createObject(EXPENSE, data);
|
|
2016
|
+
});
|
|
2017
|
+
}
|
|
2018
|
+
function update49(id, newData) {
|
|
2019
|
+
return __async(this, null, function* () {
|
|
2020
|
+
return yield updateObject(EXPENSE, id, newData);
|
|
2021
|
+
});
|
|
2022
|
+
}
|
|
2023
|
+
function remove49(id) {
|
|
2024
|
+
return __async(this, null, function* () {
|
|
2025
|
+
return yield deleteObject(EXPENSE, id);
|
|
2026
|
+
});
|
|
2027
|
+
}
|
|
2028
|
+
var expense = {
|
|
2029
|
+
findAll: findAll49,
|
|
2030
|
+
findOne: findOne49,
|
|
2031
|
+
create: create49,
|
|
2032
|
+
update: update49,
|
|
2033
|
+
remove: remove49
|
|
2034
|
+
};
|
|
2035
|
+
|
|
2036
|
+
// generated/modules/fixed-asset.ts
|
|
2037
|
+
function findAll50(options) {
|
|
2038
|
+
return __async(this, null, function* () {
|
|
2039
|
+
return yield getAllObjects(FIXED_ASSET, options == null ? void 0 : options.where);
|
|
2040
|
+
});
|
|
2041
|
+
}
|
|
2042
|
+
function findOne50(id) {
|
|
2043
|
+
return __async(this, null, function* () {
|
|
2044
|
+
return yield getObjectById(FIXED_ASSET, id);
|
|
2045
|
+
});
|
|
2046
|
+
}
|
|
2047
|
+
function create50(data) {
|
|
2048
|
+
return __async(this, null, function* () {
|
|
2049
|
+
return yield createObject(FIXED_ASSET, data);
|
|
2050
|
+
});
|
|
2051
|
+
}
|
|
2052
|
+
function update50(id, newData) {
|
|
2053
|
+
return __async(this, null, function* () {
|
|
2054
|
+
return yield updateObject(FIXED_ASSET, id, newData);
|
|
2055
|
+
});
|
|
2056
|
+
}
|
|
2057
|
+
function remove50(id) {
|
|
2058
|
+
return __async(this, null, function* () {
|
|
2059
|
+
return yield deleteObject(FIXED_ASSET, id);
|
|
2060
|
+
});
|
|
2061
|
+
}
|
|
2062
|
+
var fixedAsset = {
|
|
2063
|
+
findAll: findAll50,
|
|
2064
|
+
findOne: findOne50,
|
|
2065
|
+
create: create50,
|
|
2066
|
+
update: update50,
|
|
2067
|
+
remove: remove50
|
|
2068
|
+
};
|
|
2069
|
+
|
|
2070
|
+
// generated/modules/incoming-payment-method.ts
|
|
2071
|
+
function findAll51(options) {
|
|
2072
|
+
return __async(this, null, function* () {
|
|
2073
|
+
return yield getAllObjects(INCOMING_PAYMENT_METHOD, options == null ? void 0 : options.where);
|
|
2074
|
+
});
|
|
2075
|
+
}
|
|
2076
|
+
function findOne51(id) {
|
|
2077
|
+
return __async(this, null, function* () {
|
|
2078
|
+
return yield getObjectById(INCOMING_PAYMENT_METHOD, id);
|
|
2079
|
+
});
|
|
2080
|
+
}
|
|
2081
|
+
function create51(data) {
|
|
2082
|
+
return __async(this, null, function* () {
|
|
2083
|
+
return yield createObject(INCOMING_PAYMENT_METHOD, data);
|
|
2084
|
+
});
|
|
2085
|
+
}
|
|
2086
|
+
function update51(id, newData) {
|
|
2087
|
+
return __async(this, null, function* () {
|
|
2088
|
+
return yield updateObject(INCOMING_PAYMENT_METHOD, id, newData);
|
|
2089
|
+
});
|
|
2090
|
+
}
|
|
2091
|
+
function remove51(id) {
|
|
2092
|
+
return __async(this, null, function* () {
|
|
2093
|
+
return yield deleteObject(INCOMING_PAYMENT_METHOD, id);
|
|
2094
|
+
});
|
|
2095
|
+
}
|
|
2096
|
+
var incomingPaymentMethod = {
|
|
2097
|
+
findAll: findAll51,
|
|
2098
|
+
findOne: findOne51,
|
|
2099
|
+
create: create51,
|
|
2100
|
+
update: update51,
|
|
2101
|
+
remove: remove51
|
|
2102
|
+
};
|
|
2103
|
+
|
|
2104
|
+
// generated/modules/payment.ts
|
|
2105
|
+
function findAll52(options) {
|
|
2106
|
+
return __async(this, null, function* () {
|
|
2107
|
+
return yield getAllObjects(PAYMENT, options == null ? void 0 : options.where);
|
|
2108
|
+
});
|
|
2109
|
+
}
|
|
2110
|
+
function findOne52(id) {
|
|
2111
|
+
return __async(this, null, function* () {
|
|
2112
|
+
return yield getObjectById(PAYMENT, id);
|
|
2113
|
+
});
|
|
2114
|
+
}
|
|
2115
|
+
function create52(data) {
|
|
2116
|
+
return __async(this, null, function* () {
|
|
2117
|
+
return yield createObject(PAYMENT, data);
|
|
2118
|
+
});
|
|
2119
|
+
}
|
|
2120
|
+
function update52(id, newData) {
|
|
2121
|
+
return __async(this, null, function* () {
|
|
2122
|
+
return yield updateObject(PAYMENT, id, newData);
|
|
2123
|
+
});
|
|
2124
|
+
}
|
|
2125
|
+
function remove52(id) {
|
|
2126
|
+
return __async(this, null, function* () {
|
|
2127
|
+
return yield deleteObject(PAYMENT, id);
|
|
2128
|
+
});
|
|
2129
|
+
}
|
|
2130
|
+
var payment = {
|
|
2131
|
+
findAll: findAll52,
|
|
2132
|
+
findOne: findOne52,
|
|
2133
|
+
create: create52,
|
|
2134
|
+
update: update52,
|
|
2135
|
+
remove: remove52
|
|
2136
|
+
};
|
|
2137
|
+
|
|
2138
|
+
// generated/modules/automation-job.ts
|
|
2139
|
+
function findAll53(options) {
|
|
2140
|
+
return __async(this, null, function* () {
|
|
2141
|
+
return yield getAllObjects(AUTOMATION_JOB, options == null ? void 0 : options.where);
|
|
2142
|
+
});
|
|
2143
|
+
}
|
|
2144
|
+
function findOne53(id) {
|
|
2145
|
+
return __async(this, null, function* () {
|
|
2146
|
+
return yield getObjectById(AUTOMATION_JOB, id);
|
|
2147
|
+
});
|
|
2148
|
+
}
|
|
2149
|
+
function create53(data) {
|
|
2150
|
+
return __async(this, null, function* () {
|
|
2151
|
+
return yield createObject(AUTOMATION_JOB, data);
|
|
2152
|
+
});
|
|
2153
|
+
}
|
|
2154
|
+
function update53(id, newData) {
|
|
2155
|
+
return __async(this, null, function* () {
|
|
2156
|
+
return yield updateObject(AUTOMATION_JOB, id, newData);
|
|
2157
|
+
});
|
|
2158
|
+
}
|
|
2159
|
+
function remove53(id) {
|
|
2160
|
+
return __async(this, null, function* () {
|
|
2161
|
+
return yield deleteObject(AUTOMATION_JOB, id);
|
|
2162
|
+
});
|
|
2163
|
+
}
|
|
2164
|
+
var automationJob = {
|
|
2165
|
+
findAll: findAll53,
|
|
2166
|
+
findOne: findOne53,
|
|
2167
|
+
create: create53,
|
|
2168
|
+
update: update53,
|
|
2169
|
+
remove: remove53
|
|
2170
|
+
};
|
|
2171
|
+
|
|
2172
|
+
// generated/modules/automation-script.ts
|
|
2173
|
+
function findAll54(options) {
|
|
2174
|
+
return __async(this, null, function* () {
|
|
2175
|
+
return yield getAllObjects(AUTOMATION_SCRIPT, options == null ? void 0 : options.where);
|
|
2176
|
+
});
|
|
2177
|
+
}
|
|
2178
|
+
function findOne54(id) {
|
|
2179
|
+
return __async(this, null, function* () {
|
|
2180
|
+
return yield getObjectById(AUTOMATION_SCRIPT, id);
|
|
2181
|
+
});
|
|
2182
|
+
}
|
|
2183
|
+
function create54(data) {
|
|
2184
|
+
return __async(this, null, function* () {
|
|
2185
|
+
return yield createObject(AUTOMATION_SCRIPT, data);
|
|
2186
|
+
});
|
|
2187
|
+
}
|
|
2188
|
+
function update54(id, newData) {
|
|
2189
|
+
return __async(this, null, function* () {
|
|
2190
|
+
return yield updateObject(AUTOMATION_SCRIPT, id, newData);
|
|
2191
|
+
});
|
|
2192
|
+
}
|
|
2193
|
+
function remove54(id) {
|
|
2194
|
+
return __async(this, null, function* () {
|
|
2195
|
+
return yield deleteObject(AUTOMATION_SCRIPT, id);
|
|
2196
|
+
});
|
|
2197
|
+
}
|
|
2198
|
+
var automationScript = {
|
|
2199
|
+
findAll: findAll54,
|
|
2200
|
+
findOne: findOne54,
|
|
2201
|
+
create: create54,
|
|
2202
|
+
update: update54,
|
|
2203
|
+
remove: remove54
|
|
2204
|
+
};
|
|
2205
|
+
|
|
2206
|
+
// generated/modules/user-action.ts
|
|
2207
|
+
function findAll55(options) {
|
|
2208
|
+
return __async(this, null, function* () {
|
|
2209
|
+
return yield getAllObjects(USER_ACTION, options == null ? void 0 : options.where);
|
|
2210
|
+
});
|
|
2211
|
+
}
|
|
2212
|
+
function findOne55(id) {
|
|
2213
|
+
return __async(this, null, function* () {
|
|
2214
|
+
return yield getObjectById(USER_ACTION, id);
|
|
2215
|
+
});
|
|
2216
|
+
}
|
|
2217
|
+
function create55(data) {
|
|
2218
|
+
return __async(this, null, function* () {
|
|
2219
|
+
return yield createObject(USER_ACTION, data);
|
|
2220
|
+
});
|
|
2221
|
+
}
|
|
2222
|
+
function update55(id, newData) {
|
|
2223
|
+
return __async(this, null, function* () {
|
|
2224
|
+
return yield updateObject(USER_ACTION, id, newData);
|
|
2225
|
+
});
|
|
2226
|
+
}
|
|
2227
|
+
function remove55(id) {
|
|
2228
|
+
return __async(this, null, function* () {
|
|
2229
|
+
return yield deleteObject(USER_ACTION, id);
|
|
2230
|
+
});
|
|
2231
|
+
}
|
|
2232
|
+
var userAction = {
|
|
2233
|
+
findAll: findAll55,
|
|
2234
|
+
findOne: findOne55,
|
|
2235
|
+
create: create55,
|
|
2236
|
+
update: update55,
|
|
2237
|
+
remove: remove55
|
|
2238
|
+
};
|
|
2239
|
+
|
|
2240
|
+
// generated/modules/company-alias.ts
|
|
2241
|
+
function findAll56(options) {
|
|
2242
|
+
return __async(this, null, function* () {
|
|
2243
|
+
return yield getAllObjects(COMPANY_ALIAS, options == null ? void 0 : options.where);
|
|
2244
|
+
});
|
|
2245
|
+
}
|
|
2246
|
+
function findOne56(id) {
|
|
2247
|
+
return __async(this, null, function* () {
|
|
2248
|
+
return yield getObjectById(COMPANY_ALIAS, id);
|
|
2249
|
+
});
|
|
2250
|
+
}
|
|
2251
|
+
function create56(data) {
|
|
2252
|
+
return __async(this, null, function* () {
|
|
2253
|
+
return yield createObject(COMPANY_ALIAS, data);
|
|
2254
|
+
});
|
|
2255
|
+
}
|
|
2256
|
+
function update56(id, newData) {
|
|
2257
|
+
return __async(this, null, function* () {
|
|
2258
|
+
return yield updateObject(COMPANY_ALIAS, id, newData);
|
|
2259
|
+
});
|
|
2260
|
+
}
|
|
2261
|
+
function remove56(id) {
|
|
2262
|
+
return __async(this, null, function* () {
|
|
2263
|
+
return yield deleteObject(COMPANY_ALIAS, id);
|
|
2264
|
+
});
|
|
2265
|
+
}
|
|
2266
|
+
var companyAlias = {
|
|
2267
|
+
findAll: findAll56,
|
|
2268
|
+
findOne: findOne56,
|
|
2269
|
+
create: create56,
|
|
2270
|
+
update: update56,
|
|
2271
|
+
remove: remove56
|
|
2272
|
+
};
|
|
2273
|
+
|
|
2274
|
+
// generated/modules/form.ts
|
|
2275
|
+
function findAll57(options) {
|
|
2276
|
+
return __async(this, null, function* () {
|
|
2277
|
+
return yield getAllObjects(FORM, options == null ? void 0 : options.where);
|
|
2278
|
+
});
|
|
2279
|
+
}
|
|
2280
|
+
function findOne57(id) {
|
|
2281
|
+
return __async(this, null, function* () {
|
|
2282
|
+
return yield getObjectById(FORM, id);
|
|
2283
|
+
});
|
|
2284
|
+
}
|
|
2285
|
+
function create57(data) {
|
|
2286
|
+
return __async(this, null, function* () {
|
|
2287
|
+
return yield createObject(FORM, data);
|
|
2288
|
+
});
|
|
2289
|
+
}
|
|
2290
|
+
function update57(id, newData) {
|
|
2291
|
+
return __async(this, null, function* () {
|
|
2292
|
+
return yield updateObject(FORM, id, newData);
|
|
2293
|
+
});
|
|
2294
|
+
}
|
|
2295
|
+
function remove57(id) {
|
|
2296
|
+
return __async(this, null, function* () {
|
|
2297
|
+
return yield deleteObject(FORM, id);
|
|
2298
|
+
});
|
|
2299
|
+
}
|
|
2300
|
+
var form = {
|
|
2301
|
+
findAll: findAll57,
|
|
2302
|
+
findOne: findOne57,
|
|
2303
|
+
create: create57,
|
|
2304
|
+
update: update57,
|
|
2305
|
+
remove: remove57
|
|
2306
|
+
};
|
|
2307
|
+
|
|
2308
|
+
// generated/modules/delivery-job.ts
|
|
2309
|
+
function findAll58(options) {
|
|
2310
|
+
return __async(this, null, function* () {
|
|
2311
|
+
return yield getAllObjects(DELIVERY_JOB, options == null ? void 0 : options.where);
|
|
2312
|
+
});
|
|
2313
|
+
}
|
|
2314
|
+
function findOne58(id) {
|
|
2315
|
+
return __async(this, null, function* () {
|
|
2316
|
+
return yield getObjectById(DELIVERY_JOB, id);
|
|
2317
|
+
});
|
|
2318
|
+
}
|
|
2319
|
+
function create58(data) {
|
|
2320
|
+
return __async(this, null, function* () {
|
|
2321
|
+
return yield createObject(DELIVERY_JOB, data);
|
|
2322
|
+
});
|
|
2323
|
+
}
|
|
2324
|
+
function update58(id, newData) {
|
|
2325
|
+
return __async(this, null, function* () {
|
|
2326
|
+
return yield updateObject(DELIVERY_JOB, id, newData);
|
|
2327
|
+
});
|
|
2328
|
+
}
|
|
2329
|
+
function remove58(id) {
|
|
2330
|
+
return __async(this, null, function* () {
|
|
2331
|
+
return yield deleteObject(DELIVERY_JOB, id);
|
|
2332
|
+
});
|
|
2333
|
+
}
|
|
2334
|
+
var deliveryJob = {
|
|
2335
|
+
findAll: findAll58,
|
|
2336
|
+
findOne: findOne58,
|
|
2337
|
+
create: create58,
|
|
2338
|
+
update: update58,
|
|
2339
|
+
remove: remove58
|
|
2340
|
+
};
|
|
2341
|
+
|
|
2342
|
+
// generated/modules/vehicle.ts
|
|
2343
|
+
function findAll59(options) {
|
|
2344
|
+
return __async(this, null, function* () {
|
|
2345
|
+
return yield getAllObjects(VEHICLE, options == null ? void 0 : options.where);
|
|
2346
|
+
});
|
|
2347
|
+
}
|
|
2348
|
+
function findOne59(id) {
|
|
2349
|
+
return __async(this, null, function* () {
|
|
2350
|
+
return yield getObjectById(VEHICLE, id);
|
|
2351
|
+
});
|
|
2352
|
+
}
|
|
2353
|
+
function create59(data) {
|
|
2354
|
+
return __async(this, null, function* () {
|
|
2355
|
+
return yield createObject(VEHICLE, data);
|
|
2356
|
+
});
|
|
2357
|
+
}
|
|
2358
|
+
function update59(id, newData) {
|
|
2359
|
+
return __async(this, null, function* () {
|
|
2360
|
+
return yield updateObject(VEHICLE, id, newData);
|
|
2361
|
+
});
|
|
2362
|
+
}
|
|
2363
|
+
function remove59(id) {
|
|
2364
|
+
return __async(this, null, function* () {
|
|
2365
|
+
return yield deleteObject(VEHICLE, id);
|
|
2366
|
+
});
|
|
2367
|
+
}
|
|
2368
|
+
var vehicle = {
|
|
2369
|
+
findAll: findAll59,
|
|
2370
|
+
findOne: findOne59,
|
|
2371
|
+
create: create59,
|
|
2372
|
+
update: update59,
|
|
2373
|
+
remove: remove59
|
|
2374
|
+
};
|
|
2375
|
+
|
|
2376
|
+
// generated/modules/attendance.ts
|
|
2377
|
+
function findAll60(options) {
|
|
2378
|
+
return __async(this, null, function* () {
|
|
2379
|
+
return yield getAllObjects(ATTENDANCE, options == null ? void 0 : options.where);
|
|
2380
|
+
});
|
|
2381
|
+
}
|
|
2382
|
+
function findOne60(id) {
|
|
2383
|
+
return __async(this, null, function* () {
|
|
2384
|
+
return yield getObjectById(ATTENDANCE, id);
|
|
2385
|
+
});
|
|
2386
|
+
}
|
|
2387
|
+
function create60(data) {
|
|
2388
|
+
return __async(this, null, function* () {
|
|
2389
|
+
return yield createObject(ATTENDANCE, data);
|
|
2390
|
+
});
|
|
2391
|
+
}
|
|
2392
|
+
function update60(id, newData) {
|
|
2393
|
+
return __async(this, null, function* () {
|
|
2394
|
+
return yield updateObject(ATTENDANCE, id, newData);
|
|
2395
|
+
});
|
|
2396
|
+
}
|
|
2397
|
+
function remove60(id) {
|
|
2398
|
+
return __async(this, null, function* () {
|
|
2399
|
+
return yield deleteObject(ATTENDANCE, id);
|
|
2400
|
+
});
|
|
2401
|
+
}
|
|
2402
|
+
var attendance = {
|
|
2403
|
+
findAll: findAll60,
|
|
2404
|
+
findOne: findOne60,
|
|
2405
|
+
create: create60,
|
|
2406
|
+
update: update60,
|
|
2407
|
+
remove: remove60
|
|
2408
|
+
};
|
|
2409
|
+
|
|
2410
|
+
// generated/modules/employee.ts
|
|
2411
|
+
function findAll61(options) {
|
|
2412
|
+
return __async(this, null, function* () {
|
|
2413
|
+
return yield getAllObjects(EMPLOYEE, options == null ? void 0 : options.where);
|
|
2414
|
+
});
|
|
2415
|
+
}
|
|
2416
|
+
function findOne61(id) {
|
|
2417
|
+
return __async(this, null, function* () {
|
|
2418
|
+
return yield getObjectById(EMPLOYEE, id);
|
|
2419
|
+
});
|
|
2420
|
+
}
|
|
2421
|
+
function create61(data) {
|
|
2422
|
+
return __async(this, null, function* () {
|
|
2423
|
+
return yield createObject(EMPLOYEE, data);
|
|
2424
|
+
});
|
|
2425
|
+
}
|
|
2426
|
+
function update61(id, newData) {
|
|
2427
|
+
return __async(this, null, function* () {
|
|
2428
|
+
return yield updateObject(EMPLOYEE, id, newData);
|
|
2429
|
+
});
|
|
2430
|
+
}
|
|
2431
|
+
function remove61(id) {
|
|
2432
|
+
return __async(this, null, function* () {
|
|
2433
|
+
return yield deleteObject(EMPLOYEE, id);
|
|
2434
|
+
});
|
|
2435
|
+
}
|
|
2436
|
+
var employee = {
|
|
2437
|
+
findAll: findAll61,
|
|
2438
|
+
findOne: findOne61,
|
|
2439
|
+
create: create61,
|
|
2440
|
+
update: update61,
|
|
2441
|
+
remove: remove61
|
|
2442
|
+
};
|
|
2443
|
+
|
|
2444
|
+
// generated/modules/geofence.ts
|
|
2445
|
+
function findAll62(options) {
|
|
2446
|
+
return __async(this, null, function* () {
|
|
2447
|
+
return yield getAllObjects(GEOFENCE, options == null ? void 0 : options.where);
|
|
2448
|
+
});
|
|
2449
|
+
}
|
|
2450
|
+
function findOne62(id) {
|
|
2451
|
+
return __async(this, null, function* () {
|
|
2452
|
+
return yield getObjectById(GEOFENCE, id);
|
|
2453
|
+
});
|
|
2454
|
+
}
|
|
2455
|
+
function create62(data) {
|
|
2456
|
+
return __async(this, null, function* () {
|
|
2457
|
+
return yield createObject(GEOFENCE, data);
|
|
2458
|
+
});
|
|
2459
|
+
}
|
|
2460
|
+
function update62(id, newData) {
|
|
2461
|
+
return __async(this, null, function* () {
|
|
2462
|
+
return yield updateObject(GEOFENCE, id, newData);
|
|
2463
|
+
});
|
|
2464
|
+
}
|
|
2465
|
+
function remove62(id) {
|
|
2466
|
+
return __async(this, null, function* () {
|
|
2467
|
+
return yield deleteObject(GEOFENCE, id);
|
|
2468
|
+
});
|
|
2469
|
+
}
|
|
2470
|
+
var geofence = {
|
|
2471
|
+
findAll: findAll62,
|
|
2472
|
+
findOne: findOne62,
|
|
2473
|
+
create: create62,
|
|
2474
|
+
update: update62,
|
|
2475
|
+
remove: remove62
|
|
2476
|
+
};
|
|
2477
|
+
|
|
2478
|
+
// generated/modules/iot-device.ts
|
|
2479
|
+
function findAll63(options) {
|
|
2480
|
+
return __async(this, null, function* () {
|
|
2481
|
+
return yield getAllObjects(IOT_DEVICE, options == null ? void 0 : options.where);
|
|
2482
|
+
});
|
|
2483
|
+
}
|
|
2484
|
+
function findOne63(id) {
|
|
2485
|
+
return __async(this, null, function* () {
|
|
2486
|
+
return yield getObjectById(IOT_DEVICE, id);
|
|
2487
|
+
});
|
|
2488
|
+
}
|
|
2489
|
+
function create63(data) {
|
|
2490
|
+
return __async(this, null, function* () {
|
|
2491
|
+
return yield createObject(IOT_DEVICE, data);
|
|
2492
|
+
});
|
|
2493
|
+
}
|
|
2494
|
+
function update63(id, newData) {
|
|
2495
|
+
return __async(this, null, function* () {
|
|
2496
|
+
return yield updateObject(IOT_DEVICE, id, newData);
|
|
2497
|
+
});
|
|
2498
|
+
}
|
|
2499
|
+
function remove63(id) {
|
|
2500
|
+
return __async(this, null, function* () {
|
|
2501
|
+
return yield deleteObject(IOT_DEVICE, id);
|
|
2502
|
+
});
|
|
2503
|
+
}
|
|
2504
|
+
var iotDevice = {
|
|
2505
|
+
findAll: findAll63,
|
|
2506
|
+
findOne: findOne63,
|
|
2507
|
+
create: create63,
|
|
2508
|
+
update: update63,
|
|
2509
|
+
remove: remove63
|
|
2510
|
+
};
|
|
2511
|
+
|
|
2512
|
+
// generated/modules/iot-job.ts
|
|
2513
|
+
function findAll64(options) {
|
|
2514
|
+
return __async(this, null, function* () {
|
|
2515
|
+
return yield getAllObjects(IOT_JOB, options == null ? void 0 : options.where);
|
|
2516
|
+
});
|
|
2517
|
+
}
|
|
2518
|
+
function findOne64(id) {
|
|
2519
|
+
return __async(this, null, function* () {
|
|
2520
|
+
return yield getObjectById(IOT_JOB, id);
|
|
2521
|
+
});
|
|
2522
|
+
}
|
|
2523
|
+
function create64(data) {
|
|
2524
|
+
return __async(this, null, function* () {
|
|
2525
|
+
return yield createObject(IOT_JOB, data);
|
|
2526
|
+
});
|
|
2527
|
+
}
|
|
2528
|
+
function update64(id, newData) {
|
|
2529
|
+
return __async(this, null, function* () {
|
|
2530
|
+
return yield updateObject(IOT_JOB, id, newData);
|
|
2531
|
+
});
|
|
2532
|
+
}
|
|
2533
|
+
function remove64(id) {
|
|
2534
|
+
return __async(this, null, function* () {
|
|
2535
|
+
return yield deleteObject(IOT_JOB, id);
|
|
2536
|
+
});
|
|
2537
|
+
}
|
|
2538
|
+
var iotJob = {
|
|
2539
|
+
findAll: findAll64,
|
|
2540
|
+
findOne: findOne64,
|
|
2541
|
+
create: create64,
|
|
2542
|
+
update: update64,
|
|
2543
|
+
remove: remove64
|
|
2544
|
+
};
|
|
2545
|
+
|
|
2546
|
+
// generated/modules/bom-component.ts
|
|
2547
|
+
function findAll65(options) {
|
|
2548
|
+
return __async(this, null, function* () {
|
|
2549
|
+
return yield getAllObjects(BOM_COMPONENT, options == null ? void 0 : options.where);
|
|
2550
|
+
});
|
|
2551
|
+
}
|
|
2552
|
+
function findOne65(id) {
|
|
2553
|
+
return __async(this, null, function* () {
|
|
2554
|
+
return yield getObjectById(BOM_COMPONENT, id);
|
|
2555
|
+
});
|
|
2556
|
+
}
|
|
2557
|
+
function create65(data) {
|
|
2558
|
+
return __async(this, null, function* () {
|
|
2559
|
+
return yield createObject(BOM_COMPONENT, data);
|
|
2560
|
+
});
|
|
2561
|
+
}
|
|
2562
|
+
function update65(id, newData) {
|
|
2563
|
+
return __async(this, null, function* () {
|
|
2564
|
+
return yield updateObject(BOM_COMPONENT, id, newData);
|
|
2565
|
+
});
|
|
2566
|
+
}
|
|
2567
|
+
function remove65(id) {
|
|
2568
|
+
return __async(this, null, function* () {
|
|
2569
|
+
return yield deleteObject(BOM_COMPONENT, id);
|
|
2570
|
+
});
|
|
2571
|
+
}
|
|
2572
|
+
var bomComponent = {
|
|
2573
|
+
findAll: findAll65,
|
|
2574
|
+
findOne: findOne65,
|
|
2575
|
+
create: create65,
|
|
2576
|
+
update: update65,
|
|
2577
|
+
remove: remove65
|
|
2578
|
+
};
|
|
2579
|
+
|
|
2580
|
+
// generated/modules/bom-operation.ts
|
|
2581
|
+
function findAll66(options) {
|
|
2582
|
+
return __async(this, null, function* () {
|
|
2583
|
+
return yield getAllObjects(BOM_OPERATION, options == null ? void 0 : options.where);
|
|
2584
|
+
});
|
|
2585
|
+
}
|
|
2586
|
+
function findOne66(id) {
|
|
2587
|
+
return __async(this, null, function* () {
|
|
2588
|
+
return yield getObjectById(BOM_OPERATION, id);
|
|
2589
|
+
});
|
|
2590
|
+
}
|
|
2591
|
+
function create66(data) {
|
|
2592
|
+
return __async(this, null, function* () {
|
|
2593
|
+
return yield createObject(BOM_OPERATION, data);
|
|
2594
|
+
});
|
|
2595
|
+
}
|
|
2596
|
+
function update66(id, newData) {
|
|
2597
|
+
return __async(this, null, function* () {
|
|
2598
|
+
return yield updateObject(BOM_OPERATION, id, newData);
|
|
2599
|
+
});
|
|
2600
|
+
}
|
|
2601
|
+
function remove66(id) {
|
|
2602
|
+
return __async(this, null, function* () {
|
|
2603
|
+
return yield deleteObject(BOM_OPERATION, id);
|
|
2604
|
+
});
|
|
2605
|
+
}
|
|
2606
|
+
var bomOperation = {
|
|
2607
|
+
findAll: findAll66,
|
|
2608
|
+
findOne: findOne66,
|
|
2609
|
+
create: create66,
|
|
2610
|
+
update: update66,
|
|
2611
|
+
remove: remove66
|
|
2612
|
+
};
|
|
2613
|
+
|
|
2614
|
+
// generated/modules/job-card.ts
|
|
2615
|
+
function findAll67(options) {
|
|
2616
|
+
return __async(this, null, function* () {
|
|
2617
|
+
return yield getAllObjects(JOB_CARD, options == null ? void 0 : options.where);
|
|
2618
|
+
});
|
|
2619
|
+
}
|
|
2620
|
+
function findOne67(id) {
|
|
2621
|
+
return __async(this, null, function* () {
|
|
2622
|
+
return yield getObjectById(JOB_CARD, id);
|
|
2623
|
+
});
|
|
2624
|
+
}
|
|
2625
|
+
function create67(data) {
|
|
2626
|
+
return __async(this, null, function* () {
|
|
2627
|
+
return yield createObject(JOB_CARD, data);
|
|
2628
|
+
});
|
|
2629
|
+
}
|
|
2630
|
+
function update67(id, newData) {
|
|
2631
|
+
return __async(this, null, function* () {
|
|
2632
|
+
return yield updateObject(JOB_CARD, id, newData);
|
|
2633
|
+
});
|
|
2634
|
+
}
|
|
2635
|
+
function remove67(id) {
|
|
2636
|
+
return __async(this, null, function* () {
|
|
2637
|
+
return yield deleteObject(JOB_CARD, id);
|
|
2638
|
+
});
|
|
2639
|
+
}
|
|
2640
|
+
var jobCard = {
|
|
2641
|
+
findAll: findAll67,
|
|
2642
|
+
findOne: findOne67,
|
|
2643
|
+
create: create67,
|
|
2644
|
+
update: update67,
|
|
2645
|
+
remove: remove67
|
|
2646
|
+
};
|
|
2647
|
+
|
|
2648
|
+
// generated/modules/production-order.ts
|
|
2649
|
+
function findAll68(options) {
|
|
2650
|
+
return __async(this, null, function* () {
|
|
2651
|
+
return yield getAllObjects(PRODUCTION_ORDER, options == null ? void 0 : options.where);
|
|
2652
|
+
});
|
|
2653
|
+
}
|
|
2654
|
+
function findOne68(id) {
|
|
2655
|
+
return __async(this, null, function* () {
|
|
2656
|
+
return yield getObjectById(PRODUCTION_ORDER, id);
|
|
2657
|
+
});
|
|
2658
|
+
}
|
|
2659
|
+
function create68(data) {
|
|
2660
|
+
return __async(this, null, function* () {
|
|
2661
|
+
return yield createObject(PRODUCTION_ORDER, data);
|
|
2662
|
+
});
|
|
2663
|
+
}
|
|
2664
|
+
function update68(id, newData) {
|
|
2665
|
+
return __async(this, null, function* () {
|
|
2666
|
+
return yield updateObject(PRODUCTION_ORDER, id, newData);
|
|
2667
|
+
});
|
|
2668
|
+
}
|
|
2669
|
+
function remove68(id) {
|
|
2670
|
+
return __async(this, null, function* () {
|
|
2671
|
+
return yield deleteObject(PRODUCTION_ORDER, id);
|
|
2672
|
+
});
|
|
2673
|
+
}
|
|
2674
|
+
var productionOrder = {
|
|
2675
|
+
findAll: findAll68,
|
|
2676
|
+
findOne: findOne68,
|
|
2677
|
+
create: create68,
|
|
2678
|
+
update: update68,
|
|
2679
|
+
remove: remove68
|
|
2680
|
+
};
|
|
2681
|
+
|
|
2682
|
+
// generated/modules/production-order-line.ts
|
|
2683
|
+
function findAll69(options) {
|
|
2684
|
+
return __async(this, null, function* () {
|
|
2685
|
+
return yield getAllObjects(PRODUCTION_ORDER_LINE, options == null ? void 0 : options.where);
|
|
2686
|
+
});
|
|
2687
|
+
}
|
|
2688
|
+
function findOne69(id) {
|
|
2689
|
+
return __async(this, null, function* () {
|
|
2690
|
+
return yield getObjectById(PRODUCTION_ORDER_LINE, id);
|
|
2691
|
+
});
|
|
2692
|
+
}
|
|
2693
|
+
function create69(data) {
|
|
2694
|
+
return __async(this, null, function* () {
|
|
2695
|
+
return yield createObject(PRODUCTION_ORDER_LINE, data);
|
|
2696
|
+
});
|
|
2697
|
+
}
|
|
2698
|
+
function update69(id, newData) {
|
|
2699
|
+
return __async(this, null, function* () {
|
|
2700
|
+
return yield updateObject(PRODUCTION_ORDER_LINE, id, newData);
|
|
2701
|
+
});
|
|
2702
|
+
}
|
|
2703
|
+
function remove69(id) {
|
|
2704
|
+
return __async(this, null, function* () {
|
|
2705
|
+
return yield deleteObject(PRODUCTION_ORDER_LINE, id);
|
|
2706
|
+
});
|
|
2707
|
+
}
|
|
2708
|
+
var productionOrderLine = {
|
|
2709
|
+
findAll: findAll69,
|
|
2710
|
+
findOne: findOne69,
|
|
2711
|
+
create: create69,
|
|
2712
|
+
update: update69,
|
|
2713
|
+
remove: remove69
|
|
2714
|
+
};
|
|
2715
|
+
|
|
2716
|
+
// generated/modules/workstation.ts
|
|
2717
|
+
function findAll70(options) {
|
|
2718
|
+
return __async(this, null, function* () {
|
|
2719
|
+
return yield getAllObjects(WORKSTATION, options == null ? void 0 : options.where);
|
|
2720
|
+
});
|
|
2721
|
+
}
|
|
2722
|
+
function findOne70(id) {
|
|
2723
|
+
return __async(this, null, function* () {
|
|
2724
|
+
return yield getObjectById(WORKSTATION, id);
|
|
2725
|
+
});
|
|
2726
|
+
}
|
|
2727
|
+
function create70(data) {
|
|
2728
|
+
return __async(this, null, function* () {
|
|
2729
|
+
return yield createObject(WORKSTATION, data);
|
|
2730
|
+
});
|
|
2731
|
+
}
|
|
2732
|
+
function update70(id, newData) {
|
|
2733
|
+
return __async(this, null, function* () {
|
|
2734
|
+
return yield updateObject(WORKSTATION, id, newData);
|
|
2735
|
+
});
|
|
2736
|
+
}
|
|
2737
|
+
function remove70(id) {
|
|
2738
|
+
return __async(this, null, function* () {
|
|
2739
|
+
return yield deleteObject(WORKSTATION, id);
|
|
2740
|
+
});
|
|
2741
|
+
}
|
|
2742
|
+
var workstation = {
|
|
2743
|
+
findAll: findAll70,
|
|
2744
|
+
findOne: findOne70,
|
|
2745
|
+
create: create70,
|
|
2746
|
+
update: update70,
|
|
2747
|
+
remove: remove70
|
|
2748
|
+
};
|
|
2749
|
+
|
|
2750
|
+
// generated/modules/rental-order-line.ts
|
|
2751
|
+
function findAll71(options) {
|
|
2752
|
+
return __async(this, null, function* () {
|
|
2753
|
+
return yield getAllObjects(RENTAL_ORDER_LINE, options == null ? void 0 : options.where);
|
|
2754
|
+
});
|
|
2755
|
+
}
|
|
2756
|
+
function findOne71(id) {
|
|
2757
|
+
return __async(this, null, function* () {
|
|
2758
|
+
return yield getObjectById(RENTAL_ORDER_LINE, id);
|
|
2759
|
+
});
|
|
2760
|
+
}
|
|
2761
|
+
function create71(data) {
|
|
2762
|
+
return __async(this, null, function* () {
|
|
2763
|
+
return yield createObject(RENTAL_ORDER_LINE, data);
|
|
2764
|
+
});
|
|
2765
|
+
}
|
|
2766
|
+
function update71(id, newData) {
|
|
2767
|
+
return __async(this, null, function* () {
|
|
2768
|
+
return yield updateObject(RENTAL_ORDER_LINE, id, newData);
|
|
2769
|
+
});
|
|
2770
|
+
}
|
|
2771
|
+
function remove71(id) {
|
|
2772
|
+
return __async(this, null, function* () {
|
|
2773
|
+
return yield deleteObject(RENTAL_ORDER_LINE, id);
|
|
2774
|
+
});
|
|
2775
|
+
}
|
|
2776
|
+
var rentalOrderLine = {
|
|
2777
|
+
findAll: findAll71,
|
|
2778
|
+
findOne: findOne71,
|
|
2779
|
+
create: create71,
|
|
2780
|
+
update: update71,
|
|
2781
|
+
remove: remove71
|
|
2782
|
+
};
|
|
2783
|
+
|
|
2784
|
+
// generated/modules/rental-order.ts
|
|
2785
|
+
function findAll72(options) {
|
|
2786
|
+
return __async(this, null, function* () {
|
|
2787
|
+
return yield getAllObjects(RENTAL_ORDER, options == null ? void 0 : options.where);
|
|
2788
|
+
});
|
|
2789
|
+
}
|
|
2790
|
+
function findOne72(id) {
|
|
2791
|
+
return __async(this, null, function* () {
|
|
2792
|
+
return yield getObjectById(RENTAL_ORDER, id);
|
|
2793
|
+
});
|
|
2794
|
+
}
|
|
2795
|
+
function create72(data) {
|
|
2796
|
+
return __async(this, null, function* () {
|
|
2797
|
+
return yield createObject(RENTAL_ORDER, data);
|
|
2798
|
+
});
|
|
2799
|
+
}
|
|
2800
|
+
function update72(id, newData) {
|
|
2801
|
+
return __async(this, null, function* () {
|
|
2802
|
+
return yield updateObject(RENTAL_ORDER, id, newData);
|
|
2803
|
+
});
|
|
2804
|
+
}
|
|
2805
|
+
function remove72(id) {
|
|
2806
|
+
return __async(this, null, function* () {
|
|
2807
|
+
return yield deleteObject(RENTAL_ORDER, id);
|
|
2808
|
+
});
|
|
2809
|
+
}
|
|
2810
|
+
var rentalOrder = {
|
|
2811
|
+
findAll: findAll72,
|
|
2812
|
+
findOne: findOne72,
|
|
2813
|
+
create: create72,
|
|
2814
|
+
update: update72,
|
|
2815
|
+
remove: remove72
|
|
2816
|
+
};
|
|
2817
|
+
|
|
2818
|
+
// generated/modules/user-persona-custom-schema-permission.ts
|
|
2819
|
+
function findAll73(options) {
|
|
2820
|
+
return __async(this, null, function* () {
|
|
2821
|
+
return yield getAllObjects(USER_PERSONA_CUSTOM_SCHEMA_PERMISSION, options == null ? void 0 : options.where);
|
|
2822
|
+
});
|
|
2823
|
+
}
|
|
2824
|
+
function findOne73(id) {
|
|
2825
|
+
return __async(this, null, function* () {
|
|
2826
|
+
return yield getObjectById(USER_PERSONA_CUSTOM_SCHEMA_PERMISSION, id);
|
|
2827
|
+
});
|
|
2828
|
+
}
|
|
2829
|
+
function create73(data) {
|
|
2830
|
+
return __async(this, null, function* () {
|
|
2831
|
+
return yield createObject(USER_PERSONA_CUSTOM_SCHEMA_PERMISSION, data);
|
|
2832
|
+
});
|
|
2833
|
+
}
|
|
2834
|
+
function update73(id, newData) {
|
|
2835
|
+
return __async(this, null, function* () {
|
|
2836
|
+
return yield updateObject(USER_PERSONA_CUSTOM_SCHEMA_PERMISSION, id, newData);
|
|
2837
|
+
});
|
|
2838
|
+
}
|
|
2839
|
+
function remove73(id) {
|
|
2840
|
+
return __async(this, null, function* () {
|
|
2841
|
+
return yield deleteObject(USER_PERSONA_CUSTOM_SCHEMA_PERMISSION, id);
|
|
2842
|
+
});
|
|
2843
|
+
}
|
|
2844
|
+
var userPersonaCustomSchemaPermission = {
|
|
2845
|
+
findAll: findAll73,
|
|
2846
|
+
findOne: findOne73,
|
|
2847
|
+
create: create73,
|
|
2848
|
+
update: update73,
|
|
2849
|
+
remove: remove73
|
|
2850
|
+
};
|
|
2851
|
+
|
|
2852
|
+
// generated/modules/user-persona-entity-access-status.ts
|
|
2853
|
+
function findAll74(options) {
|
|
2854
|
+
return __async(this, null, function* () {
|
|
2855
|
+
return yield getAllObjects(USER_PERSONA_ENTITY_ACCESS_STATUS, options == null ? void 0 : options.where);
|
|
2856
|
+
});
|
|
2857
|
+
}
|
|
2858
|
+
function findOne74(id) {
|
|
2859
|
+
return __async(this, null, function* () {
|
|
2860
|
+
return yield getObjectById(USER_PERSONA_ENTITY_ACCESS_STATUS, id);
|
|
2861
|
+
});
|
|
2862
|
+
}
|
|
2863
|
+
function create74(data) {
|
|
2864
|
+
return __async(this, null, function* () {
|
|
2865
|
+
return yield createObject(USER_PERSONA_ENTITY_ACCESS_STATUS, data);
|
|
2866
|
+
});
|
|
2867
|
+
}
|
|
2868
|
+
function update74(id, newData) {
|
|
2869
|
+
return __async(this, null, function* () {
|
|
2870
|
+
return yield updateObject(USER_PERSONA_ENTITY_ACCESS_STATUS, id, newData);
|
|
2871
|
+
});
|
|
2872
|
+
}
|
|
2873
|
+
function remove74(id) {
|
|
2874
|
+
return __async(this, null, function* () {
|
|
2875
|
+
return yield deleteObject(USER_PERSONA_ENTITY_ACCESS_STATUS, id);
|
|
2876
|
+
});
|
|
2877
|
+
}
|
|
2878
|
+
var userPersonaEntityAccessStatus = {
|
|
2879
|
+
findAll: findAll74,
|
|
2880
|
+
findOne: findOne74,
|
|
2881
|
+
create: create74,
|
|
2882
|
+
update: update74,
|
|
2883
|
+
remove: remove74
|
|
2884
|
+
};
|
|
2885
|
+
|
|
2886
|
+
// generated/modules/user-persona-entity-permission.ts
|
|
2887
|
+
function findAll75(options) {
|
|
2888
|
+
return __async(this, null, function* () {
|
|
2889
|
+
return yield getAllObjects(USER_PERSONA_ENTITY_PERMISSION, options == null ? void 0 : options.where);
|
|
2890
|
+
});
|
|
2891
|
+
}
|
|
2892
|
+
function findOne75(id) {
|
|
2893
|
+
return __async(this, null, function* () {
|
|
2894
|
+
return yield getObjectById(USER_PERSONA_ENTITY_PERMISSION, id);
|
|
2895
|
+
});
|
|
2896
|
+
}
|
|
2897
|
+
function create75(data) {
|
|
2898
|
+
return __async(this, null, function* () {
|
|
2899
|
+
return yield createObject(USER_PERSONA_ENTITY_PERMISSION, data);
|
|
2900
|
+
});
|
|
2901
|
+
}
|
|
2902
|
+
function update75(id, newData) {
|
|
2903
|
+
return __async(this, null, function* () {
|
|
2904
|
+
return yield updateObject(USER_PERSONA_ENTITY_PERMISSION, id, newData);
|
|
2905
|
+
});
|
|
2906
|
+
}
|
|
2907
|
+
function remove75(id) {
|
|
2908
|
+
return __async(this, null, function* () {
|
|
2909
|
+
return yield deleteObject(USER_PERSONA_ENTITY_PERMISSION, id);
|
|
2910
|
+
});
|
|
2911
|
+
}
|
|
2912
|
+
var userPersonaEntityPermission = {
|
|
2913
|
+
findAll: findAll75,
|
|
2914
|
+
findOne: findOne75,
|
|
2915
|
+
create: create75,
|
|
2916
|
+
update: update75,
|
|
2917
|
+
remove: remove75
|
|
2918
|
+
};
|
|
2919
|
+
|
|
2920
|
+
// generated/modules/user-persona.ts
|
|
2921
|
+
function findAll76(options) {
|
|
2922
|
+
return __async(this, null, function* () {
|
|
2923
|
+
return yield getAllObjects(USER_PERSONA, options == null ? void 0 : options.where);
|
|
2924
|
+
});
|
|
2925
|
+
}
|
|
2926
|
+
function findOne76(id) {
|
|
2927
|
+
return __async(this, null, function* () {
|
|
2928
|
+
return yield getObjectById(USER_PERSONA, id);
|
|
2929
|
+
});
|
|
2930
|
+
}
|
|
2931
|
+
function create76(data) {
|
|
2932
|
+
return __async(this, null, function* () {
|
|
2933
|
+
return yield createObject(USER_PERSONA, data);
|
|
2934
|
+
});
|
|
2935
|
+
}
|
|
2936
|
+
function update76(id, newData) {
|
|
2937
|
+
return __async(this, null, function* () {
|
|
2938
|
+
return yield updateObject(USER_PERSONA, id, newData);
|
|
2939
|
+
});
|
|
2940
|
+
}
|
|
2941
|
+
function remove76(id) {
|
|
2942
|
+
return __async(this, null, function* () {
|
|
2943
|
+
return yield deleteObject(USER_PERSONA, id);
|
|
2944
|
+
});
|
|
2945
|
+
}
|
|
2946
|
+
var userPersona = {
|
|
2947
|
+
findAll: findAll76,
|
|
2948
|
+
findOne: findOne76,
|
|
2949
|
+
create: create76,
|
|
2950
|
+
update: update76,
|
|
2951
|
+
remove: remove76
|
|
2952
|
+
};
|
|
2953
|
+
|
|
2954
|
+
// generated/modules/shift.ts
|
|
2955
|
+
function findAll77(options) {
|
|
2956
|
+
return __async(this, null, function* () {
|
|
2957
|
+
return yield getAllObjects(SHIFT, options == null ? void 0 : options.where);
|
|
2958
|
+
});
|
|
2959
|
+
}
|
|
2960
|
+
function findOne77(id) {
|
|
2961
|
+
return __async(this, null, function* () {
|
|
2962
|
+
return yield getObjectById(SHIFT, id);
|
|
2963
|
+
});
|
|
2964
|
+
}
|
|
2965
|
+
function create77(data) {
|
|
2966
|
+
return __async(this, null, function* () {
|
|
2967
|
+
return yield createObject(SHIFT, data);
|
|
2968
|
+
});
|
|
2969
|
+
}
|
|
2970
|
+
function update77(id, newData) {
|
|
2971
|
+
return __async(this, null, function* () {
|
|
2972
|
+
return yield updateObject(SHIFT, id, newData);
|
|
2973
|
+
});
|
|
2974
|
+
}
|
|
2975
|
+
function remove77(id) {
|
|
2976
|
+
return __async(this, null, function* () {
|
|
2977
|
+
return yield deleteObject(SHIFT, id);
|
|
2978
|
+
});
|
|
2979
|
+
}
|
|
2980
|
+
var shift = {
|
|
2981
|
+
findAll: findAll77,
|
|
2982
|
+
findOne: findOne77,
|
|
2983
|
+
create: create77,
|
|
2984
|
+
update: update77,
|
|
2985
|
+
remove: remove77
|
|
2986
|
+
};
|
|
2987
|
+
|
|
2988
|
+
// index.ts
|
|
2989
|
+
function call(axiosRequest) {
|
|
2990
|
+
return __async(this, null, function* () {
|
|
2991
|
+
return yield axiosAPI_default.request(axiosRequest);
|
|
2992
|
+
});
|
|
2993
|
+
}
|
|
2994
|
+
function getAllCustomObjects(_0) {
|
|
2995
|
+
return __async(this, arguments, function* (schemaName, queryParams = {}) {
|
|
2996
|
+
var _a2, _b;
|
|
2997
|
+
try {
|
|
2998
|
+
const response = yield axiosAPI_default.request({
|
|
2999
|
+
method: "get",
|
|
3000
|
+
url: `custom-entity/object/${schemaName}`,
|
|
3001
|
+
params: queryParams
|
|
3002
|
+
});
|
|
3003
|
+
return response.data;
|
|
3004
|
+
} catch (e) {
|
|
3005
|
+
throw new KonversiError(e.message + ` ${(_a2 = e.response) == null ? void 0 : _a2.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
3006
|
+
}
|
|
3007
|
+
});
|
|
3008
|
+
}
|
|
3009
|
+
function getCustomObjectById(schemaName, id) {
|
|
3010
|
+
return __async(this, null, function* () {
|
|
3011
|
+
var _a2, _b;
|
|
3012
|
+
try {
|
|
3013
|
+
const response = yield axiosAPI_default.request({
|
|
3014
|
+
method: "get",
|
|
3015
|
+
url: `custom-entity/object/${schemaName}/${id}`
|
|
3016
|
+
});
|
|
3017
|
+
return response.data;
|
|
3018
|
+
} catch (e) {
|
|
3019
|
+
throw new KonversiError(e.message + ` ${(_a2 = e.response) == null ? void 0 : _a2.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
3020
|
+
}
|
|
3021
|
+
});
|
|
3022
|
+
}
|
|
3023
|
+
function updateCustomObject(schemaName, id, newData) {
|
|
3024
|
+
return __async(this, null, function* () {
|
|
3025
|
+
var _a2, _b;
|
|
3026
|
+
try {
|
|
3027
|
+
const response = yield axiosAPI_default.request({
|
|
3028
|
+
method: "put",
|
|
3029
|
+
url: `custom-entity/object/${schemaName}/${id}`,
|
|
3030
|
+
headers: {
|
|
3031
|
+
"Content-Type": "application/json"
|
|
3032
|
+
},
|
|
3033
|
+
data: JSON.stringify(newData)
|
|
3034
|
+
});
|
|
3035
|
+
return response.data;
|
|
3036
|
+
} catch (e) {
|
|
3037
|
+
throw new KonversiError(e.message + ` ${(_a2 = e.response) == null ? void 0 : _a2.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
3038
|
+
}
|
|
3039
|
+
});
|
|
3040
|
+
}
|
|
3041
|
+
function createCustomObject(schemaName, data) {
|
|
3042
|
+
return __async(this, null, function* () {
|
|
3043
|
+
var _a2, _b;
|
|
3044
|
+
try {
|
|
3045
|
+
const response = yield axiosAPI_default.request({
|
|
3046
|
+
method: "post",
|
|
3047
|
+
url: `custom-entity/object/${schemaName}`,
|
|
3048
|
+
data
|
|
3049
|
+
});
|
|
3050
|
+
return response.data;
|
|
3051
|
+
} catch (e) {
|
|
3052
|
+
throw new KonversiError(e.message + ` ${(_a2 = e.response) == null ? void 0 : _a2.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
3053
|
+
}
|
|
3054
|
+
});
|
|
3055
|
+
}
|
|
3056
|
+
function deleteCustomObject(schemaName, id) {
|
|
3057
|
+
return __async(this, null, function* () {
|
|
3058
|
+
var _a2, _b;
|
|
3059
|
+
try {
|
|
3060
|
+
const response = yield axiosAPI_default.request({
|
|
3061
|
+
method: "delete",
|
|
3062
|
+
maxBodyLength: Infinity,
|
|
3063
|
+
url: `custom-entity/object/${schemaName}/${id}`
|
|
3064
|
+
});
|
|
3065
|
+
return response.data;
|
|
3066
|
+
} catch (e) {
|
|
3067
|
+
throw new KonversiError(e.message + ` ${(_a2 = e.response) == null ? void 0 : _a2.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
3068
|
+
}
|
|
3069
|
+
});
|
|
3070
|
+
}
|
|
3071
|
+
function getAllObjects(_0) {
|
|
3072
|
+
return __async(this, arguments, function* (entity, queryParams = {}) {
|
|
3073
|
+
var _a2, _b;
|
|
3074
|
+
try {
|
|
3075
|
+
const response = yield axiosAPI_default.get(`${entity}`, {
|
|
3076
|
+
params: queryParams
|
|
3077
|
+
});
|
|
3078
|
+
return response.data;
|
|
3079
|
+
} catch (e) {
|
|
3080
|
+
throw new KonversiError(e.message + ` ${(_a2 = e.response) == null ? void 0 : _a2.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
3081
|
+
}
|
|
3082
|
+
});
|
|
3083
|
+
}
|
|
3084
|
+
function getObjectById(entity, id) {
|
|
3085
|
+
return __async(this, null, function* () {
|
|
3086
|
+
var _a2, _b;
|
|
3087
|
+
try {
|
|
3088
|
+
const response = yield axiosAPI_default.get(`${entity}/${id}`);
|
|
3089
|
+
return response.data;
|
|
3090
|
+
} catch (e) {
|
|
3091
|
+
throw new KonversiError(e.message + ` ${(_a2 = e.response) == null ? void 0 : _a2.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
3092
|
+
}
|
|
3093
|
+
});
|
|
3094
|
+
}
|
|
3095
|
+
function updateObject(entity, id, newData) {
|
|
3096
|
+
return __async(this, null, function* () {
|
|
3097
|
+
var _a2, _b;
|
|
3098
|
+
try {
|
|
3099
|
+
const response = yield axiosAPI_default.put(`${entity}/${id}`, newData);
|
|
3100
|
+
return response.data;
|
|
3101
|
+
} catch (e) {
|
|
3102
|
+
throw new KonversiError(e.message + ` ${(_a2 = e.response) == null ? void 0 : _a2.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
3103
|
+
}
|
|
3104
|
+
});
|
|
3105
|
+
}
|
|
3106
|
+
function createObject(entity, data) {
|
|
3107
|
+
return __async(this, null, function* () {
|
|
3108
|
+
var _a2, _b;
|
|
3109
|
+
try {
|
|
3110
|
+
const response = yield axiosAPI_default.post(`${entity}`, data);
|
|
3111
|
+
return response.data;
|
|
3112
|
+
} catch (e) {
|
|
3113
|
+
throw new KonversiError(e.message + ` ${(_a2 = e.response) == null ? void 0 : _a2.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
3114
|
+
}
|
|
3115
|
+
});
|
|
3116
|
+
}
|
|
3117
|
+
function deleteObject(entity, id) {
|
|
3118
|
+
return __async(this, null, function* () {
|
|
3119
|
+
var _a2, _b;
|
|
3120
|
+
try {
|
|
3121
|
+
const response = yield axiosAPI_default.delete(`${entity}/${id}`);
|
|
3122
|
+
return response.data;
|
|
3123
|
+
} catch (e) {
|
|
3124
|
+
throw new KonversiError(e.message + ` ${(_a2 = e.response) == null ? void 0 : _a2.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
3125
|
+
}
|
|
3126
|
+
});
|
|
3127
|
+
}
|
|
3128
|
+
function runScript(scriptNameOrId, input, sync = false) {
|
|
3129
|
+
return __async(this, null, function* () {
|
|
3130
|
+
var _a2, _b, _c, _d, _e;
|
|
3131
|
+
try {
|
|
3132
|
+
if (sync) {
|
|
3133
|
+
const response2 = yield axiosAPI_default.post(`/automation/script/${scriptNameOrId}/run?mode=sync`, { input });
|
|
3134
|
+
return response2.data;
|
|
3135
|
+
}
|
|
3136
|
+
const response = yield axiosAPI_default.post(`/automation/script/${scriptNameOrId}/run`, { input });
|
|
3137
|
+
return response.data;
|
|
3138
|
+
} catch (e) {
|
|
3139
|
+
let errorMessage = e.message;
|
|
3140
|
+
errorMessage = ((_b = (_a2 = e == null ? void 0 : e.response) == null ? void 0 : _a2.data) == null ? void 0 : _b.message) || errorMessage;
|
|
3141
|
+
if (((_c = e.response) == null ? void 0 : _c.status) === 422) {
|
|
3142
|
+
errorMessage = (_e = (_d = e.response) == null ? void 0 : _d.data) == null ? void 0 : _e.errorMessage;
|
|
3143
|
+
}
|
|
3144
|
+
throw new KonversiError(errorMessage, e);
|
|
3145
|
+
}
|
|
3146
|
+
});
|
|
3147
|
+
}
|
|
3148
|
+
var _a;
|
|
3149
|
+
var konversiAPI = __spreadValues({
|
|
3150
|
+
setToken: setAuthToken,
|
|
3151
|
+
setCompanyId,
|
|
3152
|
+
setBaseUrl,
|
|
3153
|
+
getAllCustomObjects,
|
|
3154
|
+
getCustomObjectById,
|
|
3155
|
+
updateCustomObject,
|
|
3156
|
+
deleteCustomObject,
|
|
3157
|
+
createCustomObject,
|
|
3158
|
+
getAllObjects,
|
|
3159
|
+
getObjectById,
|
|
3160
|
+
updateObject,
|
|
3161
|
+
createObject,
|
|
3162
|
+
deleteObject,
|
|
3163
|
+
runScript,
|
|
3164
|
+
call,
|
|
3165
|
+
baseUrl: axiosAPI_default.defaults.baseURL,
|
|
3166
|
+
token: ((_a = axiosAPI_default.defaults.headers.common["Authorization"]) == null ? void 0 : _a.toString().split(" ")[1]) || "",
|
|
3167
|
+
companyId: axiosAPI_default.defaults.headers.common["Company"]
|
|
3168
|
+
}, modules_exports);
|
|
3169
|
+
var index_default = konversiAPI;
|
|
3170
|
+
var Entity = crudEndpoints_exports;
|
|
3171
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
3172
|
+
0 && (module.exports = {
|
|
3173
|
+
Entity,
|
|
3174
|
+
createCustomObject,
|
|
3175
|
+
createObject,
|
|
3176
|
+
deleteCustomObject,
|
|
3177
|
+
deleteObject,
|
|
3178
|
+
getAllObjects,
|
|
3179
|
+
getObjectById,
|
|
3180
|
+
runScript,
|
|
3181
|
+
updateObject
|
|
454
3182
|
});
|