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