repzo 1.0.82 → 1.0.84
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/changelog.md +12 -0
- package/lib/index.d.ts +199 -84
- package/lib/index.js +238 -0
- package/lib/types/index.d.ts +983 -11
- package/package.json +2 -2
- package/src/index.ts +316 -0
- package/src/types/index.ts +891 -0
package/lib/index.d.ts
CHANGED
|
@@ -14,15 +14,16 @@ export default class Repzo {
|
|
|
14
14
|
private _fetch;
|
|
15
15
|
private _create;
|
|
16
16
|
private _update;
|
|
17
|
+
private _patch;
|
|
17
18
|
private _delete;
|
|
18
19
|
client: {
|
|
19
20
|
_path: string;
|
|
20
21
|
find: (
|
|
21
|
-
params?: Service.Client.Find.Params
|
|
22
|
+
params?: Service.Client.Find.Params | undefined
|
|
22
23
|
) => Promise<Service.Client.Find.Result>;
|
|
23
24
|
get: (
|
|
24
25
|
id: Service.Client.Get.ID,
|
|
25
|
-
params?: Service.Client.Get.Params
|
|
26
|
+
params?: Service.Client.Get.Params | undefined
|
|
26
27
|
) => Promise<Service.Client.Get.Result>;
|
|
27
28
|
create: (
|
|
28
29
|
body: Service.Client.Create.Body
|
|
@@ -38,11 +39,11 @@ export default class Repzo {
|
|
|
38
39
|
product: {
|
|
39
40
|
_path: string;
|
|
40
41
|
find: (
|
|
41
|
-
params?: Service.Product.Find.Params
|
|
42
|
+
params?: Service.Product.Find.Params | undefined
|
|
42
43
|
) => Promise<Service.Product.Find.Result>;
|
|
43
44
|
get: (
|
|
44
45
|
id: Service.Product.Get.ID,
|
|
45
|
-
params?: Service.Product.Get.Params
|
|
46
|
+
params?: Service.Product.Get.Params | undefined
|
|
46
47
|
) => Promise<Service.Product.Get.Result>;
|
|
47
48
|
create: (
|
|
48
49
|
body: Service.Product.Create.Body
|
|
@@ -58,11 +59,11 @@ export default class Repzo {
|
|
|
58
59
|
variant: {
|
|
59
60
|
_path: string;
|
|
60
61
|
find: (
|
|
61
|
-
params?: Service.Variant.Find.Params
|
|
62
|
+
params?: Service.Variant.Find.Params | undefined
|
|
62
63
|
) => Promise<Service.Variant.Find.Result>;
|
|
63
64
|
get: (
|
|
64
65
|
id: Service.Variant.Get.ID,
|
|
65
|
-
params?: Service.Variant.Get.Params
|
|
66
|
+
params?: Service.Variant.Get.Params | undefined
|
|
66
67
|
) => Promise<Service.Variant.Get.Result>;
|
|
67
68
|
create: (
|
|
68
69
|
body: Service.Variant.Create.Body
|
|
@@ -78,7 +79,7 @@ export default class Repzo {
|
|
|
78
79
|
category: {
|
|
79
80
|
_path: string;
|
|
80
81
|
find: (
|
|
81
|
-
params?: Service.Category.Find.Params
|
|
82
|
+
params?: Service.Category.Find.Params | undefined
|
|
82
83
|
) => Promise<Service.Category.Find.Result>;
|
|
83
84
|
get: (id: Service.Category.Get.ID) => Promise<Service.Category.Get.Result>;
|
|
84
85
|
create: (
|
|
@@ -95,11 +96,11 @@ export default class Repzo {
|
|
|
95
96
|
sub_category: {
|
|
96
97
|
_path: string;
|
|
97
98
|
find: (
|
|
98
|
-
params?: Service.SubCategory.Find.Params
|
|
99
|
+
params?: Service.SubCategory.Find.Params | undefined
|
|
99
100
|
) => Promise<Service.SubCategory.Find.Result>;
|
|
100
101
|
get: (
|
|
101
102
|
id: Service.SubCategory.Get.ID,
|
|
102
|
-
params?: Service.SubCategory.Get.Params
|
|
103
|
+
params?: Service.SubCategory.Get.Params | undefined
|
|
103
104
|
) => Promise<Service.SubCategory.Get.Result>;
|
|
104
105
|
create: (
|
|
105
106
|
body: Service.SubCategory.Create.Body
|
|
@@ -115,7 +116,7 @@ export default class Repzo {
|
|
|
115
116
|
brand: {
|
|
116
117
|
_path: string;
|
|
117
118
|
find: (
|
|
118
|
-
params?: Service.Brand.Find.Params
|
|
119
|
+
params?: Service.Brand.Find.Params | undefined
|
|
119
120
|
) => Promise<Service.Brand.Find.Result>;
|
|
120
121
|
get: (id: Service.Brand.Get.ID) => Promise<Service.Brand.Get.Result>;
|
|
121
122
|
create: (
|
|
@@ -132,7 +133,7 @@ export default class Repzo {
|
|
|
132
133
|
product_group: {
|
|
133
134
|
_path: string;
|
|
134
135
|
find: (
|
|
135
|
-
params?: Service.ProductGroup.Find.Params
|
|
136
|
+
params?: Service.ProductGroup.Find.Params | undefined
|
|
136
137
|
) => Promise<Service.ProductGroup.Find.Result>;
|
|
137
138
|
get: (
|
|
138
139
|
id: Service.ProductGroup.Get.ID
|
|
@@ -151,7 +152,7 @@ export default class Repzo {
|
|
|
151
152
|
tax: {
|
|
152
153
|
_path: string;
|
|
153
154
|
find: (
|
|
154
|
-
params?: Service.Tax.Find.Params
|
|
155
|
+
params?: Service.Tax.Find.Params | undefined
|
|
155
156
|
) => Promise<Service.Tax.Find.Result>;
|
|
156
157
|
get: (id: Service.Tax.Get.ID) => Promise<Service.Tax.Get.Result>;
|
|
157
158
|
create: (
|
|
@@ -166,7 +167,7 @@ export default class Repzo {
|
|
|
166
167
|
measureunit: {
|
|
167
168
|
_path: string;
|
|
168
169
|
find: (
|
|
169
|
-
params?: Service.MeasureUnit.Find.Params
|
|
170
|
+
params?: Service.MeasureUnit.Find.Params | undefined
|
|
170
171
|
) => Promise<Service.MeasureUnit.Find.Result>;
|
|
171
172
|
get: (
|
|
172
173
|
id: Service.MeasureUnit.Get.ID
|
|
@@ -185,7 +186,7 @@ export default class Repzo {
|
|
|
185
186
|
measureunitFamily: {
|
|
186
187
|
_path: string;
|
|
187
188
|
find: (
|
|
188
|
-
params?: Service.MeasureUnitFamily.Find.Params
|
|
189
|
+
params?: Service.MeasureUnitFamily.Find.Params | undefined
|
|
189
190
|
) => Promise<Service.MeasureUnitFamily.Find.Result>;
|
|
190
191
|
get: (
|
|
191
192
|
id: Service.MeasureUnitFamily.Get.ID
|
|
@@ -204,7 +205,7 @@ export default class Repzo {
|
|
|
204
205
|
media: {
|
|
205
206
|
_path: string;
|
|
206
207
|
find: (
|
|
207
|
-
params?: Service.Media.Find.Params
|
|
208
|
+
params?: Service.Media.Find.Params | undefined
|
|
208
209
|
) => Promise<Service.Media.Find.Result>;
|
|
209
210
|
get: (id: Service.Media.Get.ID) => Promise<Service.Media.Get.Result>;
|
|
210
211
|
create: (
|
|
@@ -221,7 +222,7 @@ export default class Repzo {
|
|
|
221
222
|
priceList: {
|
|
222
223
|
_path: string;
|
|
223
224
|
find: (
|
|
224
|
-
params?: Service.PriceList.Find.Params
|
|
225
|
+
params?: Service.PriceList.Find.Params | undefined
|
|
225
226
|
) => Promise<Service.PriceList.Find.Result>;
|
|
226
227
|
get: (
|
|
227
228
|
id: Service.PriceList.Get.ID
|
|
@@ -240,7 +241,7 @@ export default class Repzo {
|
|
|
240
241
|
priceListItem: {
|
|
241
242
|
_path: string;
|
|
242
243
|
find: (
|
|
243
|
-
params?: Service.PriceListItem.Find.Params
|
|
244
|
+
params?: Service.PriceListItem.Find.Params | undefined
|
|
244
245
|
) => Promise<Service.PriceListItem.Find.Result>;
|
|
245
246
|
get: (
|
|
246
247
|
id: Service.PriceListItem.Get.ID
|
|
@@ -259,7 +260,7 @@ export default class Repzo {
|
|
|
259
260
|
team: {
|
|
260
261
|
_path: string;
|
|
261
262
|
find: (
|
|
262
|
-
params?: Service.Team.Find.Params
|
|
263
|
+
params?: Service.Team.Find.Params | undefined
|
|
263
264
|
) => Promise<Service.Team.Find.Result>;
|
|
264
265
|
get: (id: Service.Team.Get.ID) => Promise<Service.Team.Get.Result>;
|
|
265
266
|
create: (
|
|
@@ -274,7 +275,7 @@ export default class Repzo {
|
|
|
274
275
|
returnReason: {
|
|
275
276
|
_path: string;
|
|
276
277
|
find: (
|
|
277
|
-
params?: Service.ReturnReason.Find.Params
|
|
278
|
+
params?: Service.ReturnReason.Find.Params | undefined
|
|
278
279
|
) => Promise<Service.ReturnReason.Find.Result>;
|
|
279
280
|
get: (
|
|
280
281
|
id: Service.ReturnReason.Get.ID
|
|
@@ -293,11 +294,11 @@ export default class Repzo {
|
|
|
293
294
|
rep: {
|
|
294
295
|
_path: string;
|
|
295
296
|
find: (
|
|
296
|
-
params?: Service.Rep.Find.Params
|
|
297
|
+
params?: Service.Rep.Find.Params | undefined
|
|
297
298
|
) => Promise<Service.Rep.Find.Result>;
|
|
298
299
|
get: (
|
|
299
300
|
id: Service.Rep.Get.ID,
|
|
300
|
-
params?: Service.Client.Get.Params
|
|
301
|
+
params?: Service.Client.Get.Params | undefined
|
|
301
302
|
) => Promise<Service.Rep.Get.Result>;
|
|
302
303
|
create: (
|
|
303
304
|
body: Service.Rep.Create.Body
|
|
@@ -311,7 +312,7 @@ export default class Repzo {
|
|
|
311
312
|
tag: {
|
|
312
313
|
_path: string;
|
|
313
314
|
find: (
|
|
314
|
-
params?: Service.Tag.Find.Params
|
|
315
|
+
params?: Service.Tag.Find.Params | undefined
|
|
315
316
|
) => Promise<Service.Tag.Find.Result>;
|
|
316
317
|
get: (id: Service.Tag.Get.ID) => Promise<Service.Tag.Get.Result>;
|
|
317
318
|
create: (
|
|
@@ -326,7 +327,7 @@ export default class Repzo {
|
|
|
326
327
|
warehouse: {
|
|
327
328
|
_path: string;
|
|
328
329
|
find: (
|
|
329
|
-
params?: Service.Warehouse.Find.Params
|
|
330
|
+
params?: Service.Warehouse.Find.Params | undefined
|
|
330
331
|
) => Promise<Service.Warehouse.Find.Result>;
|
|
331
332
|
get: (
|
|
332
333
|
id: Service.Warehouse.Get.ID
|
|
@@ -345,7 +346,7 @@ export default class Repzo {
|
|
|
345
346
|
route: {
|
|
346
347
|
_path: string;
|
|
347
348
|
find: (
|
|
348
|
-
params?: Service.Route.Find.Params
|
|
349
|
+
params?: Service.Route.Find.Params | undefined
|
|
349
350
|
) => Promise<Service.Route.Find.Result>;
|
|
350
351
|
get: (id: Service.Route.Get.ID) => Promise<Service.Route.Get.Result>;
|
|
351
352
|
create: (
|
|
@@ -362,7 +363,7 @@ export default class Repzo {
|
|
|
362
363
|
productModifiersGroup: {
|
|
363
364
|
_path: string;
|
|
364
365
|
find: (
|
|
365
|
-
params?: Service.ProductModifiersGroup.Find.Params
|
|
366
|
+
params?: Service.ProductModifiersGroup.Find.Params | undefined
|
|
366
367
|
) => Promise<Service.ProductModifiersGroup.Find.Result>;
|
|
367
368
|
get: (
|
|
368
369
|
id: Service.ProductModifiersGroup.Get.ID
|
|
@@ -381,7 +382,7 @@ export default class Repzo {
|
|
|
381
382
|
channel: {
|
|
382
383
|
_path: string;
|
|
383
384
|
find: (
|
|
384
|
-
params?: Service.Channel.Find.Params
|
|
385
|
+
params?: Service.Channel.Find.Params | undefined
|
|
385
386
|
) => Promise<Service.Channel.Find.Result>;
|
|
386
387
|
get: (id: Service.Channel.Get.ID) => Promise<Service.Channel.Get.Result>;
|
|
387
388
|
create: (
|
|
@@ -398,7 +399,7 @@ export default class Repzo {
|
|
|
398
399
|
speciality: {
|
|
399
400
|
_path: string;
|
|
400
401
|
find: (
|
|
401
|
-
params?: Service.Speciality.Find.Params
|
|
402
|
+
params?: Service.Speciality.Find.Params | undefined
|
|
402
403
|
) => Promise<Service.Speciality.Find.Result>;
|
|
403
404
|
get: (
|
|
404
405
|
id: Service.Speciality.Get.ID
|
|
@@ -417,7 +418,7 @@ export default class Repzo {
|
|
|
417
418
|
clientContact: {
|
|
418
419
|
_path: string;
|
|
419
420
|
find: (
|
|
420
|
-
params?: Service.ClientContact.Find.Params
|
|
421
|
+
params?: Service.ClientContact.Find.Params | undefined
|
|
421
422
|
) => Promise<Service.ClientContact.Find.Result>;
|
|
422
423
|
get: (
|
|
423
424
|
id: Service.ClientContact.Get.ID
|
|
@@ -436,7 +437,7 @@ export default class Repzo {
|
|
|
436
437
|
paymentTerm: {
|
|
437
438
|
_path: string;
|
|
438
439
|
find: (
|
|
439
|
-
params?: Service.PaymentTerm.Find.Params
|
|
440
|
+
params?: Service.PaymentTerm.Find.Params | undefined
|
|
440
441
|
) => Promise<Service.PaymentTerm.Find.Result>;
|
|
441
442
|
get: (
|
|
442
443
|
id: Service.PaymentTerm.Get.ID
|
|
@@ -455,7 +456,7 @@ export default class Repzo {
|
|
|
455
456
|
bank: {
|
|
456
457
|
_path: string;
|
|
457
458
|
find: (
|
|
458
|
-
params?: Service.Bank.Find.Params
|
|
459
|
+
params?: Service.Bank.Find.Params | undefined
|
|
459
460
|
) => Promise<Service.Bank.Find.Result>;
|
|
460
461
|
get: (id: Service.Bank.Get.ID) => Promise<Service.Bank.Get.Result>;
|
|
461
462
|
create: (
|
|
@@ -469,7 +470,7 @@ export default class Repzo {
|
|
|
469
470
|
bank_list: {
|
|
470
471
|
_path: string;
|
|
471
472
|
find: (
|
|
472
|
-
params?: Service.BankList.Find.Params
|
|
473
|
+
params?: Service.BankList.Find.Params | undefined
|
|
473
474
|
) => Promise<Service.BankList.Find.Result>;
|
|
474
475
|
get: (id: Service.BankList.Get.ID) => Promise<Service.BankList.Get.Result>;
|
|
475
476
|
create: (
|
|
@@ -483,7 +484,7 @@ export default class Repzo {
|
|
|
483
484
|
customStatus: {
|
|
484
485
|
_path: string;
|
|
485
486
|
find: (
|
|
486
|
-
params?: Service.CustomStatus.Find.Params
|
|
487
|
+
params?: Service.CustomStatus.Find.Params | undefined
|
|
487
488
|
) => Promise<Service.CustomStatus.Find.Result>;
|
|
488
489
|
get: (
|
|
489
490
|
id: Service.CustomStatus.Get.ID
|
|
@@ -502,11 +503,11 @@ export default class Repzo {
|
|
|
502
503
|
customList: {
|
|
503
504
|
_path: string;
|
|
504
505
|
find: (
|
|
505
|
-
params?: Service.CustomList.Find.Params
|
|
506
|
+
params?: Service.CustomList.Find.Params | undefined
|
|
506
507
|
) => Promise<Service.CustomList.Find.Result>;
|
|
507
508
|
get: (
|
|
508
509
|
id: Service.CustomList.Get.ID,
|
|
509
|
-
params?: Service.CustomList.Get.Params
|
|
510
|
+
params?: Service.CustomList.Get.Params | undefined
|
|
510
511
|
) => Promise<Service.CustomList.Get.Result>;
|
|
511
512
|
create: (
|
|
512
513
|
body: Service.CustomList.Create.Body
|
|
@@ -522,11 +523,11 @@ export default class Repzo {
|
|
|
522
523
|
customListItem: {
|
|
523
524
|
_path: string;
|
|
524
525
|
find: (
|
|
525
|
-
params?: Service.CustomListItem.Find.Params
|
|
526
|
+
params?: Service.CustomListItem.Find.Params | undefined
|
|
526
527
|
) => Promise<Service.CustomListItem.Find.Result>;
|
|
527
528
|
get: (
|
|
528
529
|
id: Service.CustomListItem.Get.ID,
|
|
529
|
-
params?: Service.CustomListItem.Get.Params
|
|
530
|
+
params?: Service.CustomListItem.Get.Params | undefined
|
|
530
531
|
) => Promise<Service.CustomListItem.Get.Result>;
|
|
531
532
|
create: (
|
|
532
533
|
body: Service.CustomListItem.Create.Body
|
|
@@ -542,7 +543,7 @@ export default class Repzo {
|
|
|
542
543
|
inventoryAdjustmentReason: {
|
|
543
544
|
_path: string;
|
|
544
545
|
find: (
|
|
545
|
-
params?: Service.InventoryAdjustmentReason.Find.Params
|
|
546
|
+
params?: Service.InventoryAdjustmentReason.Find.Params | undefined
|
|
546
547
|
) => Promise<Service.InventoryAdjustmentReason.Find.Result>;
|
|
547
548
|
get: (
|
|
548
549
|
id: Service.InventoryAdjustmentReason.Get.ID
|
|
@@ -561,21 +562,21 @@ export default class Repzo {
|
|
|
561
562
|
workorder: {
|
|
562
563
|
_path: string;
|
|
563
564
|
find: (
|
|
564
|
-
params?: Service.Workorder.Find.Params
|
|
565
|
+
params?: Service.Workorder.Find.Params | undefined
|
|
565
566
|
) => Promise<Service.Workorder.Find.Result>;
|
|
566
567
|
get: (
|
|
567
568
|
id: Service.Workorder.Get.ID,
|
|
568
|
-
params?: Service.Workorder.Get.Params
|
|
569
|
+
params?: Service.Workorder.Get.Params | undefined
|
|
569
570
|
) => Promise<Service.Workorder.Get.Result>;
|
|
570
571
|
};
|
|
571
572
|
supplier: {
|
|
572
573
|
_path: string;
|
|
573
574
|
find: (
|
|
574
|
-
params?: Service.Supplier.Find.Params
|
|
575
|
+
params?: Service.Supplier.Find.Params | undefined
|
|
575
576
|
) => Promise<Service.Supplier.Find.Result>;
|
|
576
577
|
get: (
|
|
577
578
|
id: Service.Supplier.Get.ID,
|
|
578
|
-
params?: Service.Supplier.Get.Params
|
|
579
|
+
params?: Service.Supplier.Get.Params | undefined
|
|
579
580
|
) => Promise<Service.Supplier.Get.Result>;
|
|
580
581
|
create: (
|
|
581
582
|
body: Service.Supplier.Create.Body
|
|
@@ -588,11 +589,11 @@ export default class Repzo {
|
|
|
588
589
|
quickConvertToPdf: {
|
|
589
590
|
_path: string;
|
|
590
591
|
find: (
|
|
591
|
-
params?: Service.QuickConvertToPdf.Find.Params
|
|
592
|
+
params?: Service.QuickConvertToPdf.Find.Params | undefined
|
|
592
593
|
) => Promise<Service.QuickConvertToPdf.Find.Result>;
|
|
593
594
|
get: (
|
|
594
595
|
id: Service.QuickConvertToPdf.Get.ID,
|
|
595
|
-
params?: Service.QuickConvertToPdf.Get.Params
|
|
596
|
+
params?: Service.QuickConvertToPdf.Get.Params | undefined
|
|
596
597
|
) => Promise<Service.QuickConvertToPdf.Get.Result>;
|
|
597
598
|
create: (
|
|
598
599
|
body: Service.QuickConvertToPdf.Create.Body
|
|
@@ -604,11 +605,11 @@ export default class Repzo {
|
|
|
604
605
|
visit: {
|
|
605
606
|
_path: string;
|
|
606
607
|
find: (
|
|
607
|
-
params?: Service.Visit.Find.Params
|
|
608
|
+
params?: Service.Visit.Find.Params | undefined
|
|
608
609
|
) => Promise<Service.Visit.Find.Result>;
|
|
609
610
|
get: (
|
|
610
611
|
id: Service.Visit.Get.ID,
|
|
611
|
-
params?: Service.Visit.Get.Params
|
|
612
|
+
params?: Service.Visit.Get.Params | undefined
|
|
612
613
|
) => Promise<Service.Visit.Get.Result>;
|
|
613
614
|
create: (
|
|
614
615
|
body: Service.Visit.Create.Body
|
|
@@ -621,11 +622,11 @@ export default class Repzo {
|
|
|
621
622
|
invoice: {
|
|
622
623
|
_path: string;
|
|
623
624
|
find: (
|
|
624
|
-
params?: Service.FullInvoice.Find.Params
|
|
625
|
+
params?: Service.FullInvoice.Find.Params | undefined
|
|
625
626
|
) => Promise<Service.FullInvoice.Find.Result>;
|
|
626
627
|
get: (
|
|
627
628
|
id: Service.FullInvoice.Get.ID,
|
|
628
|
-
params?: Service.FullInvoice.Get.Params
|
|
629
|
+
params?: Service.FullInvoice.Get.Params | undefined
|
|
629
630
|
) => Promise<Service.FullInvoice.Get.Result>;
|
|
630
631
|
create: (
|
|
631
632
|
body: Service.FullInvoice.Create.Body
|
|
@@ -638,11 +639,11 @@ export default class Repzo {
|
|
|
638
639
|
proforma: {
|
|
639
640
|
_path: string;
|
|
640
641
|
find: (
|
|
641
|
-
params?: Service.Proforma.Find.Params
|
|
642
|
+
params?: Service.Proforma.Find.Params | undefined
|
|
642
643
|
) => Promise<Service.Proforma.Find.Result>;
|
|
643
644
|
get: (
|
|
644
645
|
id: Service.Proforma.Get.ID,
|
|
645
|
-
params?: Service.Proforma.Get.Params
|
|
646
|
+
params?: Service.Proforma.Get.Params | undefined
|
|
646
647
|
) => Promise<Service.Proforma.Get.Result>;
|
|
647
648
|
create: (
|
|
648
649
|
body: Service.Proforma.Create.Body
|
|
@@ -655,11 +656,11 @@ export default class Repzo {
|
|
|
655
656
|
payment: {
|
|
656
657
|
_path: string;
|
|
657
658
|
find: (
|
|
658
|
-
params?: Service.Payment.Find.Params
|
|
659
|
+
params?: Service.Payment.Find.Params | undefined
|
|
659
660
|
) => Promise<Service.Payment.Find.Result>;
|
|
660
661
|
get: (
|
|
661
662
|
id: Service.Payment.Get.ID,
|
|
662
|
-
params?: Service.Payment.Get.Params
|
|
663
|
+
params?: Service.Payment.Get.Params | undefined
|
|
663
664
|
) => Promise<Service.Payment.Get.Result>;
|
|
664
665
|
create: (
|
|
665
666
|
body: Service.Payment.Create.Body
|
|
@@ -672,11 +673,11 @@ export default class Repzo {
|
|
|
672
673
|
refund: {
|
|
673
674
|
_path: string;
|
|
674
675
|
find: (
|
|
675
|
-
params?: Service.Refund.Find.Params
|
|
676
|
+
params?: Service.Refund.Find.Params | undefined
|
|
676
677
|
) => Promise<Service.Refund.Find.Result>;
|
|
677
678
|
get: (
|
|
678
679
|
id: Service.Refund.Get.ID,
|
|
679
|
-
params?: Service.Refund.Get.Params
|
|
680
|
+
params?: Service.Refund.Get.Params | undefined
|
|
680
681
|
) => Promise<Service.Refund.Get.Result>;
|
|
681
682
|
create: (
|
|
682
683
|
body: Service.Refund.Create.Body
|
|
@@ -689,11 +690,11 @@ export default class Repzo {
|
|
|
689
690
|
settlement: {
|
|
690
691
|
_path: string;
|
|
691
692
|
find: (
|
|
692
|
-
params?: Service.Settlement.Find.Params
|
|
693
|
+
params?: Service.Settlement.Find.Params | undefined
|
|
693
694
|
) => Promise<Service.Settlement.Find.Result>;
|
|
694
695
|
get: (
|
|
695
696
|
id: Service.Settlement.Get.ID,
|
|
696
|
-
params?: Service.Settlement.Get.Params
|
|
697
|
+
params?: Service.Settlement.Get.Params | undefined
|
|
697
698
|
) => Promise<Service.Settlement.Get.Result>;
|
|
698
699
|
create: (
|
|
699
700
|
body: Service.Settlement.Create.Body
|
|
@@ -706,11 +707,11 @@ export default class Repzo {
|
|
|
706
707
|
check: {
|
|
707
708
|
_path: string;
|
|
708
709
|
find: (
|
|
709
|
-
params?: Service.Check.Find.Params
|
|
710
|
+
params?: Service.Check.Find.Params | undefined
|
|
710
711
|
) => Promise<Service.Check.Find.Result>;
|
|
711
712
|
get: (
|
|
712
713
|
id: Service.Check.Get.ID,
|
|
713
|
-
params?: Service.Check.Get.Params
|
|
714
|
+
params?: Service.Check.Get.Params | undefined
|
|
714
715
|
) => Promise<Service.Check.Get.Result>;
|
|
715
716
|
create: (
|
|
716
717
|
body: Service.Check.Create.Body
|
|
@@ -719,11 +720,11 @@ export default class Repzo {
|
|
|
719
720
|
day: {
|
|
720
721
|
_path: string;
|
|
721
722
|
find: (
|
|
722
|
-
params?: Service.Day.Find.Params
|
|
723
|
+
params?: Service.Day.Find.Params | undefined
|
|
723
724
|
) => Promise<Service.Day.Find.Result>;
|
|
724
725
|
get: (
|
|
725
726
|
id: Service.Day.Get.ID,
|
|
726
|
-
params?: Service.Day.Get.Params
|
|
727
|
+
params?: Service.Day.Get.Params | undefined
|
|
727
728
|
) => Promise<Service.Day.Get.Result>;
|
|
728
729
|
create: (
|
|
729
730
|
body: Service.Day.Create.Body
|
|
@@ -732,11 +733,11 @@ export default class Repzo {
|
|
|
732
733
|
receivingMaterial: {
|
|
733
734
|
_path: string;
|
|
734
735
|
find: (
|
|
735
|
-
params?: Service.ReceivingMaterial.Find.Params
|
|
736
|
+
params?: Service.ReceivingMaterial.Find.Params | undefined
|
|
736
737
|
) => Promise<Service.ReceivingMaterial.Find.Result>;
|
|
737
738
|
get: (
|
|
738
739
|
id: Service.ReceivingMaterial.Get.ID,
|
|
739
|
-
params?: Service.ReceivingMaterial.Get.Params
|
|
740
|
+
params?: Service.ReceivingMaterial.Get.Params | undefined
|
|
740
741
|
) => Promise<Service.ReceivingMaterial.Get.Result>;
|
|
741
742
|
create: (
|
|
742
743
|
body: Service.ReceivingMaterial.Create.Body
|
|
@@ -749,11 +750,11 @@ export default class Repzo {
|
|
|
749
750
|
adjustAccount: {
|
|
750
751
|
_path: string;
|
|
751
752
|
find: (
|
|
752
|
-
params?: Service.AdjustAccount.Find.Params
|
|
753
|
+
params?: Service.AdjustAccount.Find.Params | undefined
|
|
753
754
|
) => Promise<Service.AdjustAccount.Find.Result>;
|
|
754
755
|
get: (
|
|
755
756
|
id: Service.AdjustAccount.Get.ID,
|
|
756
|
-
params?: Service.AdjustAccount.Get.Params
|
|
757
|
+
params?: Service.AdjustAccount.Get.Params | undefined
|
|
757
758
|
) => Promise<Service.AdjustAccount.Get.Result>;
|
|
758
759
|
create: (
|
|
759
760
|
body: Service.AdjustAccount.Create.Body
|
|
@@ -762,11 +763,11 @@ export default class Repzo {
|
|
|
762
763
|
transfer: {
|
|
763
764
|
_path: string;
|
|
764
765
|
find: (
|
|
765
|
-
params?: Service.Transfer.Find.Params
|
|
766
|
+
params?: Service.Transfer.Find.Params | undefined
|
|
766
767
|
) => Promise<Service.Transfer.Find.Result>;
|
|
767
768
|
get: (
|
|
768
769
|
id: Service.Transfer.Get.ID,
|
|
769
|
-
params?: Service.Transfer.Get.Params
|
|
770
|
+
params?: Service.Transfer.Get.Params | undefined
|
|
770
771
|
) => Promise<Service.Transfer.Get.Result>;
|
|
771
772
|
create: (
|
|
772
773
|
body: Service.Transfer.Create.Body
|
|
@@ -779,11 +780,11 @@ export default class Repzo {
|
|
|
779
780
|
msl: {
|
|
780
781
|
_path: string;
|
|
781
782
|
find: (
|
|
782
|
-
params?: Service.Msl.Find.Params
|
|
783
|
+
params?: Service.Msl.Find.Params | undefined
|
|
783
784
|
) => Promise<Service.Msl.Find.Result>;
|
|
784
785
|
get: (
|
|
785
786
|
id: Service.Msl.Get.ID,
|
|
786
|
-
params?: Service.Msl.Get.Params
|
|
787
|
+
params?: Service.Msl.Get.Params | undefined
|
|
787
788
|
) => Promise<Service.Msl.Get.Result>;
|
|
788
789
|
create: (
|
|
789
790
|
body: Service.Msl.Create.Body
|
|
@@ -797,11 +798,11 @@ export default class Repzo {
|
|
|
797
798
|
mslProduct: {
|
|
798
799
|
_path: string;
|
|
799
800
|
find: (
|
|
800
|
-
params?: Service.MslProduct.Find.Params
|
|
801
|
+
params?: Service.MslProduct.Find.Params | undefined
|
|
801
802
|
) => Promise<Service.MslProduct.Find.Result>;
|
|
802
803
|
get: (
|
|
803
804
|
id: Service.MslProduct.Get.ID,
|
|
804
|
-
params?: Service.MslProduct.Get.Params
|
|
805
|
+
params?: Service.MslProduct.Get.Params | undefined
|
|
805
806
|
) => Promise<Service.MslProduct.Get.Result>;
|
|
806
807
|
create: (
|
|
807
808
|
body: Service.MslProduct.Create.Body
|
|
@@ -817,11 +818,11 @@ export default class Repzo {
|
|
|
817
818
|
mediaStorage: {
|
|
818
819
|
_path: string;
|
|
819
820
|
find: (
|
|
820
|
-
params?: Service.MediaStorage.Find.Params
|
|
821
|
+
params?: Service.MediaStorage.Find.Params | undefined
|
|
821
822
|
) => Promise<Service.MediaStorage.Find.Result>;
|
|
822
823
|
get: (
|
|
823
824
|
id: Service.MediaStorage.Get.ID,
|
|
824
|
-
params?: Service.MediaStorage.Get.Params
|
|
825
|
+
params?: Service.MediaStorage.Get.Params | undefined
|
|
825
826
|
) => Promise<Service.MediaStorage.Get.Result>;
|
|
826
827
|
create: (
|
|
827
828
|
body: Service.MediaStorage.Create.Body
|
|
@@ -837,11 +838,11 @@ export default class Repzo {
|
|
|
837
838
|
storecheckTemplate: {
|
|
838
839
|
_path: string;
|
|
839
840
|
find: (
|
|
840
|
-
params?: Service.StorecheckTemplate.Find.Params
|
|
841
|
+
params?: Service.StorecheckTemplate.Find.Params | undefined
|
|
841
842
|
) => Promise<Service.StorecheckTemplate.Find.Result>;
|
|
842
843
|
get: (
|
|
843
844
|
id: Service.StorecheckTemplate.Get.ID,
|
|
844
|
-
params?: Service.StorecheckTemplate.Get.Params
|
|
845
|
+
params?: Service.StorecheckTemplate.Get.Params | undefined
|
|
845
846
|
) => Promise<Service.StorecheckTemplate.Get.Result>;
|
|
846
847
|
create: (
|
|
847
848
|
body: Service.StorecheckTemplate.Create.Body
|
|
@@ -857,11 +858,11 @@ export default class Repzo {
|
|
|
857
858
|
activityStorecheck: {
|
|
858
859
|
_path: string;
|
|
859
860
|
find: (
|
|
860
|
-
params?: Service.ActivityStorecheck.Find.Params
|
|
861
|
+
params?: Service.ActivityStorecheck.Find.Params | undefined
|
|
861
862
|
) => Promise<Service.ActivityStorecheck.Find.Result>;
|
|
862
863
|
get: (
|
|
863
864
|
id: Service.ActivityStorecheck.Get.ID,
|
|
864
|
-
params?: Service.ActivityStorecheck.Get.Params
|
|
865
|
+
params?: Service.ActivityStorecheck.Get.Params | undefined
|
|
865
866
|
) => Promise<Service.ActivityStorecheck.Get.Result>;
|
|
866
867
|
create: (
|
|
867
868
|
body: Service.ActivityStorecheck.Create.Body
|
|
@@ -874,11 +875,11 @@ export default class Repzo {
|
|
|
874
875
|
adjustInventory: {
|
|
875
876
|
_path: string;
|
|
876
877
|
find: (
|
|
877
|
-
params?: Service.AdjustInventory.Find.Params
|
|
878
|
+
params?: Service.AdjustInventory.Find.Params | undefined
|
|
878
879
|
) => Promise<Service.AdjustInventory.Find.Result>;
|
|
879
880
|
get: (
|
|
880
881
|
id: Service.AdjustInventory.Get.ID,
|
|
881
|
-
params?: Service.AdjustInventory.Get.Params
|
|
882
|
+
params?: Service.AdjustInventory.Get.Params | undefined
|
|
882
883
|
) => Promise<Service.AdjustInventory.Get.Result>;
|
|
883
884
|
create: (
|
|
884
885
|
body: Service.AdjustInventory.Create.Body
|
|
@@ -887,17 +888,17 @@ export default class Repzo {
|
|
|
887
888
|
inventory: {
|
|
888
889
|
_path: string;
|
|
889
890
|
find: (
|
|
890
|
-
params?: Service.Inventory.Find.Params
|
|
891
|
+
params?: Service.Inventory.Find.Params | undefined
|
|
891
892
|
) => Promise<Service.Inventory.Find.Result>;
|
|
892
893
|
};
|
|
893
894
|
integrationApp: {
|
|
894
895
|
_path: string;
|
|
895
896
|
find: (
|
|
896
|
-
params?: Service.App.Find.Params
|
|
897
|
+
params?: Service.App.Find.Params | undefined
|
|
897
898
|
) => Promise<Service.App.Find.Result>;
|
|
898
899
|
get: (
|
|
899
900
|
id: Service.App.Get.ID,
|
|
900
|
-
params?: Service.App.Find.Params
|
|
901
|
+
params?: Service.App.Find.Params | undefined
|
|
901
902
|
) => Promise<Service.App.Get.Result>;
|
|
902
903
|
create: (
|
|
903
904
|
body: Service.App.Create.Body
|
|
@@ -947,7 +948,7 @@ export default class Repzo {
|
|
|
947
948
|
superThis: Repzo,
|
|
948
949
|
app: Service.App.Schema_with_populated_AvailableApp,
|
|
949
950
|
command: string,
|
|
950
|
-
trigger?: string
|
|
951
|
+
trigger?: string | undefined
|
|
951
952
|
): {
|
|
952
953
|
_path: string;
|
|
953
954
|
available_app_name: string;
|
|
@@ -990,7 +991,10 @@ export default class Repzo {
|
|
|
990
991
|
onGoing: boolean;
|
|
991
992
|
trigger?: string | undefined;
|
|
992
993
|
superThis: Repzo;
|
|
993
|
-
load(
|
|
994
|
+
load(
|
|
995
|
+
sync_id?: string | undefined,
|
|
996
|
+
retries?: number | undefined
|
|
997
|
+
): Promise<any>;
|
|
994
998
|
setStatus(status: Service.CommandLog.Status, error?: any): any;
|
|
995
999
|
setBody(body: any): any;
|
|
996
1000
|
setMeta(meta: any): any;
|
|
@@ -1002,7 +1006,7 @@ export default class Repzo {
|
|
|
1002
1006
|
_path: string;
|
|
1003
1007
|
create: (
|
|
1004
1008
|
body: Service.PatchAction.Create.Body,
|
|
1005
|
-
params?: Service.PatchAction.Create.Params
|
|
1009
|
+
params?: Service.PatchAction.Create.Params | undefined
|
|
1006
1010
|
) => Promise<Service.PatchAction.Create.Result>;
|
|
1007
1011
|
update: (
|
|
1008
1012
|
body: Service.PatchAction.Update.Body
|
|
@@ -1012,7 +1016,118 @@ export default class Repzo {
|
|
|
1012
1016
|
_path: string;
|
|
1013
1017
|
create: (
|
|
1014
1018
|
body: Service.UpdateIntegrationMeta.Create.Body,
|
|
1015
|
-
params?: Service.UpdateIntegrationMeta.Create.Params
|
|
1019
|
+
params?: Service.UpdateIntegrationMeta.Create.Params | undefined
|
|
1016
1020
|
) => Promise<Service.UpdateIntegrationMeta.Create.Result>;
|
|
1017
1021
|
};
|
|
1022
|
+
assetPartType: {
|
|
1023
|
+
_path: string;
|
|
1024
|
+
find: (
|
|
1025
|
+
params?: Service.AssetPartType.Find.Params | undefined
|
|
1026
|
+
) => Promise<Service.AssetPartType.Find.Result>;
|
|
1027
|
+
get: (
|
|
1028
|
+
id: Service.AssetPartType.Get.ID
|
|
1029
|
+
) => Promise<Service.AssetPartType.Get.Result>;
|
|
1030
|
+
create: (
|
|
1031
|
+
body: Service.AssetPartType.Create.Body
|
|
1032
|
+
) => Promise<Service.AssetPartType.Create.Result>;
|
|
1033
|
+
update: (
|
|
1034
|
+
id: Service.AssetPartType.Update.ID,
|
|
1035
|
+
body: Service.AssetPartType.Update.Body
|
|
1036
|
+
) => Promise<Service.AssetPartType.Update.Result>;
|
|
1037
|
+
remove: (
|
|
1038
|
+
id: Service.AssetPartType.Remove.ID
|
|
1039
|
+
) => Promise<Service.AssetPartType.Remove.Result>;
|
|
1040
|
+
};
|
|
1041
|
+
assetPart: {
|
|
1042
|
+
_path: string;
|
|
1043
|
+
find: (
|
|
1044
|
+
params?: Service.AssetPart.Find.Params | undefined
|
|
1045
|
+
) => Promise<Service.AssetPart.Find.Result>;
|
|
1046
|
+
get: (
|
|
1047
|
+
id: Service.AssetPart.Get.ID
|
|
1048
|
+
) => Promise<Service.AssetPart.Get.Result>;
|
|
1049
|
+
create: (
|
|
1050
|
+
body: Service.AssetPart.Create.Body
|
|
1051
|
+
) => Promise<Service.AssetPart.Create.Result>;
|
|
1052
|
+
update: (
|
|
1053
|
+
id: Service.AssetPart.Update.ID,
|
|
1054
|
+
body: Service.AssetPart.Update.Body
|
|
1055
|
+
) => Promise<Service.AssetPart.Update.Result>;
|
|
1056
|
+
remove: (
|
|
1057
|
+
id: Service.AssetPart.Remove.ID
|
|
1058
|
+
) => Promise<Service.AssetPart.Remove.Result>;
|
|
1059
|
+
};
|
|
1060
|
+
assetPartUnit: {
|
|
1061
|
+
_path: string;
|
|
1062
|
+
find: (
|
|
1063
|
+
params?: Service.AssetPartUnit.Find.Params | undefined
|
|
1064
|
+
) => Promise<Service.AssetPartUnit.Find.Result>;
|
|
1065
|
+
get: (
|
|
1066
|
+
id: Service.AssetPartUnit.Get.ID
|
|
1067
|
+
) => Promise<Service.AssetPartUnit.Get.Result>;
|
|
1068
|
+
update: (
|
|
1069
|
+
id: Service.AssetPartUnit.Update.ID,
|
|
1070
|
+
body: Service.AssetPartUnit.Update.Body
|
|
1071
|
+
) => Promise<Service.AssetPartUnit.Update.Result>;
|
|
1072
|
+
};
|
|
1073
|
+
assetPartReceival: {
|
|
1074
|
+
_path: string;
|
|
1075
|
+
find: (
|
|
1076
|
+
params?: Service.AssetPartReceival.Find.Params | undefined
|
|
1077
|
+
) => Promise<Service.AssetPartReceival.Find.Result>;
|
|
1078
|
+
get: (
|
|
1079
|
+
id: Service.AssetPartReceival.Get.ID
|
|
1080
|
+
) => Promise<Service.AssetPartReceival.Get.Result>;
|
|
1081
|
+
create: (
|
|
1082
|
+
body: Service.AssetPartReceival.Create.Body
|
|
1083
|
+
) => Promise<Service.AssetPartReceival.Create.Result>;
|
|
1084
|
+
update: (
|
|
1085
|
+
id: Service.AssetPartReceival.Update.ID,
|
|
1086
|
+
body: Service.AssetPartReceival.Update.Body
|
|
1087
|
+
) => Promise<Service.AssetPartReceival.Update.Result>;
|
|
1088
|
+
patch: (
|
|
1089
|
+
params: Service.AssetPartReceival.Patch.Params,
|
|
1090
|
+
body: Service.AssetPartReceival.Patch.Body
|
|
1091
|
+
) => Promise<Service.AssetPartReceival.Patch.Result>;
|
|
1092
|
+
};
|
|
1093
|
+
assetPartTransfer: {
|
|
1094
|
+
_path: string;
|
|
1095
|
+
find: (
|
|
1096
|
+
params?: Service.AssetPartTransfer.Find.Params | undefined
|
|
1097
|
+
) => Promise<Service.AssetPartTransfer.Find.Result>;
|
|
1098
|
+
get: (
|
|
1099
|
+
id: Service.AssetPartTransfer.Get.ID
|
|
1100
|
+
) => Promise<Service.AssetPartTransfer.Get.Result>;
|
|
1101
|
+
create: (
|
|
1102
|
+
body: Service.AssetPartTransfer.Create.Body
|
|
1103
|
+
) => Promise<Service.AssetPartTransfer.Create.Result>;
|
|
1104
|
+
update: (
|
|
1105
|
+
id: Service.AssetPartTransfer.Update.ID,
|
|
1106
|
+
body: Service.AssetPartTransfer.Update.Body
|
|
1107
|
+
) => Promise<Service.AssetPartTransfer.Update.Result>;
|
|
1108
|
+
patch: (
|
|
1109
|
+
params: Service.AssetPartTransfer.Patch.Params,
|
|
1110
|
+
body: Service.AssetPartTransfer.Patch.Body
|
|
1111
|
+
) => Promise<Service.AssetPartTransfer.Patch.Result>;
|
|
1112
|
+
};
|
|
1113
|
+
returnStoreAssetPartUnit: {
|
|
1114
|
+
_path: string;
|
|
1115
|
+
find: (
|
|
1116
|
+
params?: Service.ReturnStoreAssetPartUnit.Find.Params | undefined
|
|
1117
|
+
) => Promise<Service.ReturnStoreAssetPartUnit.Find.Result>;
|
|
1118
|
+
get: (
|
|
1119
|
+
id: Service.ReturnStoreAssetPartUnit.Get.ID
|
|
1120
|
+
) => Promise<Service.ReturnStoreAssetPartUnit.Get.Result>;
|
|
1121
|
+
create: (
|
|
1122
|
+
body: Service.ReturnStoreAssetPartUnit.Create.Body
|
|
1123
|
+
) => Promise<Service.ReturnStoreAssetPartUnit.Create.Result>;
|
|
1124
|
+
update: (
|
|
1125
|
+
id: Service.ReturnStoreAssetPartUnit.Update.ID,
|
|
1126
|
+
body: Service.ReturnStoreAssetPartUnit.Update.Body
|
|
1127
|
+
) => Promise<Service.ReturnStoreAssetPartUnit.Update.Result>;
|
|
1128
|
+
patch: (
|
|
1129
|
+
params: Service.ReturnStoreAssetPartUnit.Patch.Params,
|
|
1130
|
+
body: Service.ReturnStoreAssetPartUnit.Patch.Body
|
|
1131
|
+
) => Promise<Service.ReturnStoreAssetPartUnit.Patch.Result>;
|
|
1132
|
+
};
|
|
1018
1133
|
}
|