repzo 1.0.130 → 1.0.132
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/lib/index.d.ts +65 -2
- package/lib/index.js +295 -167
- package/lib/types/index.d.ts +406 -3
- package/package.json +1 -1
- package/src/index.ts +250 -83
- package/src/oas/brand.yaml +17 -17
- package/src/oas/category.yaml +17 -17
- package/src/oas/client.yaml +17 -17
- package/src/oas/measureunit-family.yaml +18 -18
- package/src/oas/measureunit.yaml +24 -24
- package/src/oas/media.yaml +151 -24
- package/src/oas/pricelist-item.yaml +20 -20
- package/src/oas/pricelist.yaml +17 -17
- package/src/oas/product-group.yaml +17 -17
- package/src/oas/product.yaml +19 -19
- package/src/oas/rep.yaml +17 -17
- package/src/oas/return-reason.yaml +17 -17
- package/src/oas/route.yaml +17 -17
- package/src/oas/subcategory.yaml +17 -17
- package/src/oas/tag.yaml +17 -17
- package/src/oas/tax.yaml +17 -17
- package/src/oas/team.yaml +17 -17
- package/src/oas/variant.yaml +17 -17
- package/src/oas/warehouse.yaml +17 -17
- package/src/types/index.ts +389 -6
- package/test.ts +0 -2
package/src/index.ts
CHANGED
|
@@ -37,7 +37,7 @@ export default class Repzo {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
private _end_points = {
|
|
40
|
+
private static _end_points = {
|
|
41
41
|
CLIENT: "client",
|
|
42
42
|
PRODUCT: "product",
|
|
43
43
|
VARIANT: "variant",
|
|
@@ -121,8 +121,13 @@ export default class Repzo {
|
|
|
121
121
|
ACTIVITY_FEEDBACK: "activity-feedback",
|
|
122
122
|
ACTIVITY_FEEDBACKV2: "activity-feedback-v2",
|
|
123
123
|
FEEDBACK_OPTION: "feedback-options",
|
|
124
|
+
WORKORDER_CATEGORY: "workorder-category",
|
|
125
|
+
CONTRACT: "contract",
|
|
126
|
+
CONTRACT_INSTALLMENT: "contract-installment",
|
|
124
127
|
} as const;
|
|
125
|
-
public END_POINTS
|
|
128
|
+
public static get END_POINTS() {
|
|
129
|
+
return Repzo._end_points;
|
|
130
|
+
}
|
|
126
131
|
private async _fetch(baseUrl: string, path: string, params?: Params) {
|
|
127
132
|
if (params) {
|
|
128
133
|
params = normalizeParams(params);
|
|
@@ -187,7 +192,7 @@ export default class Repzo {
|
|
|
187
192
|
}
|
|
188
193
|
|
|
189
194
|
client = {
|
|
190
|
-
_path:
|
|
195
|
+
_path: Repzo._end_points.CLIENT,
|
|
191
196
|
find: async (
|
|
192
197
|
params?: Service.Client.Find.Params
|
|
193
198
|
): Promise<Service.Client.Find.Result> => {
|
|
@@ -241,7 +246,7 @@ export default class Repzo {
|
|
|
241
246
|
};
|
|
242
247
|
|
|
243
248
|
product = {
|
|
244
|
-
_path:
|
|
249
|
+
_path: Repzo._end_points.PRODUCT,
|
|
245
250
|
find: async (
|
|
246
251
|
params?: Service.Product.Find.Params
|
|
247
252
|
): Promise<Service.Product.Find.Result> => {
|
|
@@ -299,7 +304,7 @@ export default class Repzo {
|
|
|
299
304
|
};
|
|
300
305
|
|
|
301
306
|
variant = {
|
|
302
|
-
_path:
|
|
307
|
+
_path: Repzo._end_points.VARIANT,
|
|
303
308
|
find: async (
|
|
304
309
|
params?: Service.Variant.Find.Params
|
|
305
310
|
): Promise<Service.Variant.Find.Result> => {
|
|
@@ -357,7 +362,7 @@ export default class Repzo {
|
|
|
357
362
|
};
|
|
358
363
|
|
|
359
364
|
category = {
|
|
360
|
-
_path:
|
|
365
|
+
_path: Repzo._end_points.CATEGORY,
|
|
361
366
|
find: async (
|
|
362
367
|
params?: Service.Category.Find.Params
|
|
363
368
|
): Promise<Service.Category.Find.Result> => {
|
|
@@ -413,7 +418,7 @@ export default class Repzo {
|
|
|
413
418
|
};
|
|
414
419
|
|
|
415
420
|
sub_category = {
|
|
416
|
-
_path:
|
|
421
|
+
_path: Repzo._end_points.SUB_CATEGORY,
|
|
417
422
|
find: async (
|
|
418
423
|
params?: Service.SubCategory.Find.Params
|
|
419
424
|
): Promise<Service.SubCategory.Find.Result> => {
|
|
@@ -471,7 +476,7 @@ export default class Repzo {
|
|
|
471
476
|
};
|
|
472
477
|
|
|
473
478
|
brand = {
|
|
474
|
-
_path:
|
|
479
|
+
_path: Repzo._end_points.BRAND,
|
|
475
480
|
find: async (
|
|
476
481
|
params?: Service.Brand.Find.Params
|
|
477
482
|
): Promise<Service.Brand.Find.Result> => {
|
|
@@ -520,7 +525,7 @@ export default class Repzo {
|
|
|
520
525
|
};
|
|
521
526
|
|
|
522
527
|
product_group = {
|
|
523
|
-
_path:
|
|
528
|
+
_path: Repzo._end_points.PRODUCT_GROUP,
|
|
524
529
|
find: async (
|
|
525
530
|
params?: Service.ProductGroup.Find.Params
|
|
526
531
|
): Promise<Service.ProductGroup.Find.Result> => {
|
|
@@ -576,7 +581,7 @@ export default class Repzo {
|
|
|
576
581
|
};
|
|
577
582
|
|
|
578
583
|
tax = {
|
|
579
|
-
_path:
|
|
584
|
+
_path: Repzo._end_points.TAX,
|
|
580
585
|
find: async (
|
|
581
586
|
params?: Service.Tax.Find.Params
|
|
582
587
|
): Promise<Service.Tax.Find.Result> => {
|
|
@@ -623,7 +628,7 @@ export default class Repzo {
|
|
|
623
628
|
};
|
|
624
629
|
|
|
625
630
|
measureunit = {
|
|
626
|
-
_path:
|
|
631
|
+
_path: Repzo._end_points.MEASUREUNIT,
|
|
627
632
|
find: async (
|
|
628
633
|
params?: Service.MeasureUnit.Find.Params
|
|
629
634
|
): Promise<Service.MeasureUnit.Find.Result> => {
|
|
@@ -679,7 +684,7 @@ export default class Repzo {
|
|
|
679
684
|
};
|
|
680
685
|
|
|
681
686
|
measureunitFamily = {
|
|
682
|
-
_path:
|
|
687
|
+
_path: Repzo._end_points.MEASUREUNIT_FAMILY,
|
|
683
688
|
find: async (
|
|
684
689
|
params?: Service.MeasureUnitFamily.Find.Params
|
|
685
690
|
): Promise<Service.MeasureUnitFamily.Find.Result> => {
|
|
@@ -735,7 +740,7 @@ export default class Repzo {
|
|
|
735
740
|
};
|
|
736
741
|
|
|
737
742
|
media = {
|
|
738
|
-
_path:
|
|
743
|
+
_path: Repzo._end_points.MEDIA,
|
|
739
744
|
find: async (
|
|
740
745
|
params?: Service.Media.Find.Params
|
|
741
746
|
): Promise<Service.Media.Find.Result> => {
|
|
@@ -784,7 +789,7 @@ export default class Repzo {
|
|
|
784
789
|
};
|
|
785
790
|
|
|
786
791
|
priceList = {
|
|
787
|
-
_path:
|
|
792
|
+
_path: Repzo._end_points.PRICELIST,
|
|
788
793
|
find: async (
|
|
789
794
|
params?: Service.PriceList.Find.Params
|
|
790
795
|
): Promise<Service.PriceList.Find.Result> => {
|
|
@@ -840,7 +845,7 @@ export default class Repzo {
|
|
|
840
845
|
};
|
|
841
846
|
|
|
842
847
|
priceListItem = {
|
|
843
|
-
_path:
|
|
848
|
+
_path: Repzo._end_points.PRICELIST_ITEM,
|
|
844
849
|
find: async (
|
|
845
850
|
params?: Service.PriceListItem.Find.Params
|
|
846
851
|
): Promise<Service.PriceListItem.Find.Result> => {
|
|
@@ -896,7 +901,7 @@ export default class Repzo {
|
|
|
896
901
|
};
|
|
897
902
|
|
|
898
903
|
team = {
|
|
899
|
-
_path:
|
|
904
|
+
_path: Repzo._end_points.TEAM,
|
|
900
905
|
find: async (
|
|
901
906
|
params?: Service.Team.Find.Params
|
|
902
907
|
): Promise<Service.Team.Find.Result> => {
|
|
@@ -943,7 +948,7 @@ export default class Repzo {
|
|
|
943
948
|
};
|
|
944
949
|
|
|
945
950
|
returnReason = {
|
|
946
|
-
_path:
|
|
951
|
+
_path: Repzo._end_points.RETURN_REASON,
|
|
947
952
|
find: async (
|
|
948
953
|
params?: Service.ReturnReason.Find.Params
|
|
949
954
|
): Promise<Service.ReturnReason.Find.Result> => {
|
|
@@ -998,7 +1003,7 @@ export default class Repzo {
|
|
|
998
1003
|
};
|
|
999
1004
|
|
|
1000
1005
|
rep = {
|
|
1001
|
-
_path:
|
|
1006
|
+
_path: Repzo._end_points.REP,
|
|
1002
1007
|
find: async (
|
|
1003
1008
|
params?: Service.Rep.Find.Params
|
|
1004
1009
|
): Promise<Service.Rep.Find.Result> => {
|
|
@@ -1052,7 +1057,7 @@ export default class Repzo {
|
|
|
1052
1057
|
};
|
|
1053
1058
|
|
|
1054
1059
|
tag = {
|
|
1055
|
-
_path:
|
|
1060
|
+
_path: Repzo._end_points.TAG,
|
|
1056
1061
|
find: async (
|
|
1057
1062
|
params?: Service.Tag.Find.Params
|
|
1058
1063
|
): Promise<Service.Tag.Find.Result> => {
|
|
@@ -1099,7 +1104,7 @@ export default class Repzo {
|
|
|
1099
1104
|
};
|
|
1100
1105
|
|
|
1101
1106
|
warehouse = {
|
|
1102
|
-
_path:
|
|
1107
|
+
_path: Repzo._end_points.WAREHOUSE,
|
|
1103
1108
|
find: async (
|
|
1104
1109
|
params?: Service.Warehouse.Find.Params
|
|
1105
1110
|
): Promise<Service.Warehouse.Find.Result> => {
|
|
@@ -1155,7 +1160,7 @@ export default class Repzo {
|
|
|
1155
1160
|
};
|
|
1156
1161
|
|
|
1157
1162
|
route = {
|
|
1158
|
-
_path:
|
|
1163
|
+
_path: Repzo._end_points.ROUTE,
|
|
1159
1164
|
find: async (
|
|
1160
1165
|
params?: Service.Route.Find.Params
|
|
1161
1166
|
): Promise<Service.Route.Find.Result> => {
|
|
@@ -1200,7 +1205,7 @@ export default class Repzo {
|
|
|
1200
1205
|
};
|
|
1201
1206
|
|
|
1202
1207
|
productModifiersGroup = {
|
|
1203
|
-
_path:
|
|
1208
|
+
_path: Repzo._end_points.PRODUCT_MODIFIERS_GROUP,
|
|
1204
1209
|
find: async (
|
|
1205
1210
|
params?: Service.ProductModifiersGroup.Find.Params
|
|
1206
1211
|
): Promise<Service.ProductModifiersGroup.Find.Result> => {
|
|
@@ -1252,7 +1257,7 @@ export default class Repzo {
|
|
|
1252
1257
|
};
|
|
1253
1258
|
|
|
1254
1259
|
channel = {
|
|
1255
|
-
_path:
|
|
1260
|
+
_path: Repzo._end_points.CHANNEL,
|
|
1256
1261
|
find: async (
|
|
1257
1262
|
params?: Service.Channel.Find.Params
|
|
1258
1263
|
): Promise<Service.Channel.Find.Result> => {
|
|
@@ -1307,7 +1312,7 @@ export default class Repzo {
|
|
|
1307
1312
|
},
|
|
1308
1313
|
};
|
|
1309
1314
|
speciality = {
|
|
1310
|
-
_path:
|
|
1315
|
+
_path: Repzo._end_points.SPECIALITY,
|
|
1311
1316
|
find: async (
|
|
1312
1317
|
params?: Service.Speciality.Find.Params
|
|
1313
1318
|
): Promise<Service.Speciality.Find.Result> => {
|
|
@@ -1362,7 +1367,7 @@ export default class Repzo {
|
|
|
1362
1367
|
},
|
|
1363
1368
|
};
|
|
1364
1369
|
clientContact = {
|
|
1365
|
-
_path:
|
|
1370
|
+
_path: Repzo._end_points.CLIENT_CONTACT,
|
|
1366
1371
|
find: async (
|
|
1367
1372
|
params?: Service.ClientContact.Find.Params
|
|
1368
1373
|
): Promise<Service.ClientContact.Find.Result> => {
|
|
@@ -1417,7 +1422,7 @@ export default class Repzo {
|
|
|
1417
1422
|
},
|
|
1418
1423
|
};
|
|
1419
1424
|
paymentTerm = {
|
|
1420
|
-
_path:
|
|
1425
|
+
_path: Repzo._end_points.PAYMENT_TERM,
|
|
1421
1426
|
find: async (
|
|
1422
1427
|
params?: Service.PaymentTerm.Find.Params
|
|
1423
1428
|
): Promise<Service.PaymentTerm.Find.Result> => {
|
|
@@ -1473,7 +1478,7 @@ export default class Repzo {
|
|
|
1473
1478
|
};
|
|
1474
1479
|
|
|
1475
1480
|
bank = {
|
|
1476
|
-
_path:
|
|
1481
|
+
_path: Repzo._end_points.BANK,
|
|
1477
1482
|
find: async (
|
|
1478
1483
|
params?: Service.Bank.Find.Params
|
|
1479
1484
|
): Promise<Service.Bank.Find.Result> => {
|
|
@@ -1510,7 +1515,7 @@ export default class Repzo {
|
|
|
1510
1515
|
};
|
|
1511
1516
|
|
|
1512
1517
|
bank_list = {
|
|
1513
|
-
_path:
|
|
1518
|
+
_path: Repzo._end_points.BANK_LIST,
|
|
1514
1519
|
find: async (
|
|
1515
1520
|
params?: Service.BankList.Find.Params
|
|
1516
1521
|
): Promise<Service.BankList.Find.Result> => {
|
|
@@ -1556,7 +1561,7 @@ export default class Repzo {
|
|
|
1556
1561
|
};
|
|
1557
1562
|
|
|
1558
1563
|
customStatus = {
|
|
1559
|
-
_path:
|
|
1564
|
+
_path: Repzo._end_points.CUSTOM_STATUS,
|
|
1560
1565
|
find: async (
|
|
1561
1566
|
params?: Service.CustomStatus.Find.Params
|
|
1562
1567
|
): Promise<Service.CustomStatus.Find.Result> => {
|
|
@@ -1612,7 +1617,7 @@ export default class Repzo {
|
|
|
1612
1617
|
};
|
|
1613
1618
|
|
|
1614
1619
|
customList = {
|
|
1615
|
-
_path:
|
|
1620
|
+
_path: Repzo._end_points.CUSTOM_LIST,
|
|
1616
1621
|
find: async (
|
|
1617
1622
|
params?: Service.CustomList.Find.Params
|
|
1618
1623
|
): Promise<Service.CustomList.Find.Result> => {
|
|
@@ -1669,7 +1674,7 @@ export default class Repzo {
|
|
|
1669
1674
|
};
|
|
1670
1675
|
|
|
1671
1676
|
customListItem = {
|
|
1672
|
-
_path:
|
|
1677
|
+
_path: Repzo._end_points.CUSTOM_LIST_ITEM,
|
|
1673
1678
|
find: async (
|
|
1674
1679
|
params?: Service.CustomListItem.Find.Params
|
|
1675
1680
|
): Promise<Service.CustomListItem.Find.Result> => {
|
|
@@ -1726,7 +1731,7 @@ export default class Repzo {
|
|
|
1726
1731
|
};
|
|
1727
1732
|
|
|
1728
1733
|
inventoryAdjustmentReason = {
|
|
1729
|
-
_path:
|
|
1734
|
+
_path: Repzo._end_points.INVENTORY_ADJUSTMENT_REASON,
|
|
1730
1735
|
find: async (
|
|
1731
1736
|
params?: Service.InventoryAdjustmentReason.Find.Params
|
|
1732
1737
|
): Promise<Service.InventoryAdjustmentReason.Find.Result> => {
|
|
@@ -1780,7 +1785,7 @@ export default class Repzo {
|
|
|
1780
1785
|
};
|
|
1781
1786
|
|
|
1782
1787
|
workorder = {
|
|
1783
|
-
_path:
|
|
1788
|
+
_path: Repzo._end_points.WORKORDER,
|
|
1784
1789
|
find: async (
|
|
1785
1790
|
params?: Service.Workorder.Find.Params
|
|
1786
1791
|
): Promise<Service.Workorder.Find.Result> => {
|
|
@@ -1834,7 +1839,7 @@ export default class Repzo {
|
|
|
1834
1839
|
};
|
|
1835
1840
|
|
|
1836
1841
|
workorderRequest = {
|
|
1837
|
-
_path:
|
|
1842
|
+
_path: Repzo._end_points.WORKORDER_REQUEST,
|
|
1838
1843
|
find: async (
|
|
1839
1844
|
params?: Service.WorkorderRequest.Find.Params
|
|
1840
1845
|
): Promise<Service.WorkorderRequest.Find.Result> => {
|
|
@@ -1888,7 +1893,7 @@ export default class Repzo {
|
|
|
1888
1893
|
};
|
|
1889
1894
|
|
|
1890
1895
|
supplier = {
|
|
1891
|
-
_path:
|
|
1896
|
+
_path: Repzo._end_points.SUPPLIER,
|
|
1892
1897
|
find: async (
|
|
1893
1898
|
params?: Service.Supplier.Find.Params
|
|
1894
1899
|
): Promise<Service.Supplier.Find.Result> => {
|
|
@@ -1934,7 +1939,7 @@ export default class Repzo {
|
|
|
1934
1939
|
};
|
|
1935
1940
|
|
|
1936
1941
|
quickConvertToPdf = {
|
|
1937
|
-
_path:
|
|
1942
|
+
_path: Repzo._end_points.QUICK_CONVERT_TO_PDF,
|
|
1938
1943
|
find: async (
|
|
1939
1944
|
params?: Service.QuickConvertToPdf.Find.Params
|
|
1940
1945
|
): Promise<Service.QuickConvertToPdf.Find.Result> => {
|
|
@@ -1976,7 +1981,7 @@ export default class Repzo {
|
|
|
1976
1981
|
},
|
|
1977
1982
|
};
|
|
1978
1983
|
visit = {
|
|
1979
|
-
_path:
|
|
1984
|
+
_path: Repzo._end_points.VISIT,
|
|
1980
1985
|
find: async (
|
|
1981
1986
|
params?: Service.Visit.Find.Params
|
|
1982
1987
|
): Promise<Service.Visit.Find.Result> => {
|
|
@@ -2018,7 +2023,7 @@ export default class Repzo {
|
|
|
2018
2023
|
};
|
|
2019
2024
|
|
|
2020
2025
|
activityFeedback = {
|
|
2021
|
-
_path:
|
|
2026
|
+
_path: Repzo._end_points.ACTIVITY_FEEDBACK,
|
|
2022
2027
|
find: async (
|
|
2023
2028
|
params?: Service.ActivityFeedback.Find.Params
|
|
2024
2029
|
): Promise<Service.ActivityFeedback.Find.Result> => {
|
|
@@ -2064,7 +2069,7 @@ export default class Repzo {
|
|
|
2064
2069
|
};
|
|
2065
2070
|
|
|
2066
2071
|
activityFeedbackV2 = {
|
|
2067
|
-
_path:
|
|
2072
|
+
_path: Repzo._end_points.ACTIVITY_FEEDBACKV2,
|
|
2068
2073
|
find: async (
|
|
2069
2074
|
params?: Service.ActivityFeedbackV2.Find.Params
|
|
2070
2075
|
): Promise<Service.ActivityFeedbackV2.Find.Result> => {
|
|
@@ -2110,7 +2115,7 @@ export default class Repzo {
|
|
|
2110
2115
|
};
|
|
2111
2116
|
|
|
2112
2117
|
feedbackOption = {
|
|
2113
|
-
_path:
|
|
2118
|
+
_path: Repzo._end_points.FEEDBACK_OPTION,
|
|
2114
2119
|
find: async (
|
|
2115
2120
|
params?: Service.FeedbackOption.Find.Params
|
|
2116
2121
|
): Promise<Service.FeedbackOption.Find.Result> => {
|
|
@@ -2156,7 +2161,7 @@ export default class Repzo {
|
|
|
2156
2161
|
};
|
|
2157
2162
|
|
|
2158
2163
|
invoice = {
|
|
2159
|
-
_path:
|
|
2164
|
+
_path: Repzo._end_points.INVOICE,
|
|
2160
2165
|
find: async (
|
|
2161
2166
|
params?: Service.FullInvoice.Find.Params
|
|
2162
2167
|
): Promise<Service.FullInvoice.Find.Result> => {
|
|
@@ -2204,7 +2209,7 @@ export default class Repzo {
|
|
|
2204
2209
|
};
|
|
2205
2210
|
|
|
2206
2211
|
proforma = {
|
|
2207
|
-
_path:
|
|
2212
|
+
_path: Repzo._end_points.PROFORMA,
|
|
2208
2213
|
find: async (
|
|
2209
2214
|
params?: Service.Proforma.Find.Params
|
|
2210
2215
|
): Promise<Service.Proforma.Find.Result> => {
|
|
@@ -2252,7 +2257,7 @@ export default class Repzo {
|
|
|
2252
2257
|
};
|
|
2253
2258
|
|
|
2254
2259
|
payment = {
|
|
2255
|
-
_path:
|
|
2260
|
+
_path: Repzo._end_points.PAYMENT,
|
|
2256
2261
|
find: async (
|
|
2257
2262
|
params?: Service.Payment.Find.Params
|
|
2258
2263
|
): Promise<Service.Payment.Find.Result> => {
|
|
@@ -2300,7 +2305,7 @@ export default class Repzo {
|
|
|
2300
2305
|
};
|
|
2301
2306
|
|
|
2302
2307
|
refund = {
|
|
2303
|
-
_path:
|
|
2308
|
+
_path: Repzo._end_points.REFUND,
|
|
2304
2309
|
find: async (
|
|
2305
2310
|
params?: Service.Refund.Find.Params
|
|
2306
2311
|
): Promise<Service.Refund.Find.Result> => {
|
|
@@ -2344,7 +2349,7 @@ export default class Repzo {
|
|
|
2344
2349
|
};
|
|
2345
2350
|
|
|
2346
2351
|
settlement = {
|
|
2347
|
-
_path:
|
|
2352
|
+
_path: Repzo._end_points.SETTLEMENT,
|
|
2348
2353
|
|
|
2349
2354
|
find: async (
|
|
2350
2355
|
params?: Service.Settlement.Find.Params
|
|
@@ -2381,7 +2386,7 @@ export default class Repzo {
|
|
|
2381
2386
|
};
|
|
2382
2387
|
|
|
2383
2388
|
check = {
|
|
2384
|
-
_path:
|
|
2389
|
+
_path: Repzo._end_points.CHECK,
|
|
2385
2390
|
|
|
2386
2391
|
find: async (
|
|
2387
2392
|
params?: Service.Check.Find.Params
|
|
@@ -2414,7 +2419,7 @@ export default class Repzo {
|
|
|
2414
2419
|
};
|
|
2415
2420
|
|
|
2416
2421
|
day = {
|
|
2417
|
-
_path:
|
|
2422
|
+
_path: Repzo._end_points.DAY,
|
|
2418
2423
|
|
|
2419
2424
|
find: async (
|
|
2420
2425
|
params?: Service.Day.Find.Params
|
|
@@ -2447,7 +2452,7 @@ export default class Repzo {
|
|
|
2447
2452
|
};
|
|
2448
2453
|
|
|
2449
2454
|
receivingMaterial = {
|
|
2450
|
-
_path:
|
|
2455
|
+
_path: Repzo._end_points.RECEIVING_MATERIAL,
|
|
2451
2456
|
|
|
2452
2457
|
find: async (
|
|
2453
2458
|
params?: Service.ReceivingMaterial.Find.Params
|
|
@@ -2496,7 +2501,7 @@ export default class Repzo {
|
|
|
2496
2501
|
};
|
|
2497
2502
|
|
|
2498
2503
|
adjustAccount = {
|
|
2499
|
-
_path:
|
|
2504
|
+
_path: Repzo._end_points.ADJUST_ACCOUNT,
|
|
2500
2505
|
find: async (
|
|
2501
2506
|
params?: Service.AdjustAccount.Find.Params
|
|
2502
2507
|
): Promise<Service.AdjustAccount.Find.Result> => {
|
|
@@ -2532,7 +2537,7 @@ export default class Repzo {
|
|
|
2532
2537
|
};
|
|
2533
2538
|
|
|
2534
2539
|
transfer = {
|
|
2535
|
-
_path:
|
|
2540
|
+
_path: Repzo._end_points.TRANSFER,
|
|
2536
2541
|
find: async (
|
|
2537
2542
|
params?: Service.Transfer.Find.Params
|
|
2538
2543
|
): Promise<Service.Transfer.Find.Result> => {
|
|
@@ -2580,7 +2585,7 @@ export default class Repzo {
|
|
|
2580
2585
|
};
|
|
2581
2586
|
|
|
2582
2587
|
msl = {
|
|
2583
|
-
_path:
|
|
2588
|
+
_path: Repzo._end_points.MSL,
|
|
2584
2589
|
find: async (
|
|
2585
2590
|
params?: Service.Msl.Find.Params
|
|
2586
2591
|
): Promise<Service.Msl.Find.Result> => {
|
|
@@ -2634,7 +2639,7 @@ export default class Repzo {
|
|
|
2634
2639
|
};
|
|
2635
2640
|
|
|
2636
2641
|
mslProduct = {
|
|
2637
|
-
_path:
|
|
2642
|
+
_path: Repzo._end_points.MSL_PRODUCT,
|
|
2638
2643
|
find: async (
|
|
2639
2644
|
params?: Service.MslProduct.Find.Params
|
|
2640
2645
|
): Promise<Service.MslProduct.Find.Result> => {
|
|
@@ -2692,7 +2697,7 @@ export default class Repzo {
|
|
|
2692
2697
|
};
|
|
2693
2698
|
|
|
2694
2699
|
mediaStorage = {
|
|
2695
|
-
_path:
|
|
2700
|
+
_path: Repzo._end_points.MEDIA_STORAGE,
|
|
2696
2701
|
find: async (
|
|
2697
2702
|
params?: Service.MediaStorage.Find.Params
|
|
2698
2703
|
): Promise<Service.MediaStorage.Find.Result> => {
|
|
@@ -2750,7 +2755,7 @@ export default class Repzo {
|
|
|
2750
2755
|
};
|
|
2751
2756
|
|
|
2752
2757
|
storecheckTemplate = {
|
|
2753
|
-
_path:
|
|
2758
|
+
_path: Repzo._end_points.STORECHECK_TEMPLATE,
|
|
2754
2759
|
find: async (
|
|
2755
2760
|
params?: Service.StorecheckTemplate.Find.Params
|
|
2756
2761
|
): Promise<Service.StorecheckTemplate.Find.Result> => {
|
|
@@ -2808,7 +2813,7 @@ export default class Repzo {
|
|
|
2808
2813
|
};
|
|
2809
2814
|
|
|
2810
2815
|
activityStorecheck = {
|
|
2811
|
-
_path:
|
|
2816
|
+
_path: Repzo._end_points.ACTIVITY_STORECHECK,
|
|
2812
2817
|
find: async (
|
|
2813
2818
|
params?: Service.ActivityStorecheck.Find.Params
|
|
2814
2819
|
): Promise<Service.ActivityStorecheck.Find.Result> => {
|
|
@@ -2856,7 +2861,7 @@ export default class Repzo {
|
|
|
2856
2861
|
};
|
|
2857
2862
|
|
|
2858
2863
|
adjustInventory = {
|
|
2859
|
-
_path:
|
|
2864
|
+
_path: Repzo._end_points.ADJUST_INVENTORY,
|
|
2860
2865
|
find: async (
|
|
2861
2866
|
params?: Service.AdjustInventory.Find.Params
|
|
2862
2867
|
): Promise<Service.AdjustInventory.Find.Result> => {
|
|
@@ -2892,7 +2897,7 @@ export default class Repzo {
|
|
|
2892
2897
|
};
|
|
2893
2898
|
|
|
2894
2899
|
inventory = {
|
|
2895
|
-
_path:
|
|
2900
|
+
_path: Repzo._end_points.INVENTORY,
|
|
2896
2901
|
find: async (
|
|
2897
2902
|
params?: Service.Inventory.Find.Params
|
|
2898
2903
|
): Promise<Service.Inventory.Find.Result> => {
|
|
@@ -2906,7 +2911,7 @@ export default class Repzo {
|
|
|
2906
2911
|
};
|
|
2907
2912
|
|
|
2908
2913
|
integrationApp = {
|
|
2909
|
-
_path:
|
|
2914
|
+
_path: Repzo._end_points.INTEGRATION_APP,
|
|
2910
2915
|
find: async (
|
|
2911
2916
|
params?: Service.App.Find.Params
|
|
2912
2917
|
): Promise<Service.App.Find.Result> => {
|
|
@@ -2954,7 +2959,7 @@ export default class Repzo {
|
|
|
2954
2959
|
};
|
|
2955
2960
|
|
|
2956
2961
|
joinActionsWebHook = {
|
|
2957
|
-
_path:
|
|
2962
|
+
_path: Repzo._end_points.JOIN_ACTIONS_WEBHOOK,
|
|
2958
2963
|
update: async (
|
|
2959
2964
|
id: null,
|
|
2960
2965
|
body: Service.JoinActionsWeHook.Data
|
|
@@ -3316,7 +3321,7 @@ export default class Repzo {
|
|
|
3316
3321
|
};
|
|
3317
3322
|
|
|
3318
3323
|
patchAction = {
|
|
3319
|
-
_path:
|
|
3324
|
+
_path: Repzo._end_points.PATCH_ACTION,
|
|
3320
3325
|
create: async (
|
|
3321
3326
|
body: Service.PatchAction.Create.Body,
|
|
3322
3327
|
params?: Service.PatchAction.Create.Params
|
|
@@ -3343,7 +3348,7 @@ export default class Repzo {
|
|
|
3343
3348
|
};
|
|
3344
3349
|
|
|
3345
3350
|
updateIntegrationMeta = {
|
|
3346
|
-
_path:
|
|
3351
|
+
_path: Repzo._end_points.UPDATE_INTEGRATION_META,
|
|
3347
3352
|
create: async (
|
|
3348
3353
|
body: Service.UpdateIntegrationMeta.Create.Body,
|
|
3349
3354
|
params?: Service.UpdateIntegrationMeta.Create.Params
|
|
@@ -3359,7 +3364,7 @@ export default class Repzo {
|
|
|
3359
3364
|
};
|
|
3360
3365
|
|
|
3361
3366
|
assetPartType = {
|
|
3362
|
-
_path:
|
|
3367
|
+
_path: Repzo._end_points.ASSET_PART_TYPE,
|
|
3363
3368
|
find: async (
|
|
3364
3369
|
params?: Service.AssetPartType.Find.Params
|
|
3365
3370
|
): Promise<Service.AssetPartType.Find.Result> => {
|
|
@@ -3411,7 +3416,7 @@ export default class Repzo {
|
|
|
3411
3416
|
};
|
|
3412
3417
|
|
|
3413
3418
|
assetPart = {
|
|
3414
|
-
_path:
|
|
3419
|
+
_path: Repzo._end_points.ASSET_PART,
|
|
3415
3420
|
find: async (
|
|
3416
3421
|
params?: Service.AssetPart.Find.Params
|
|
3417
3422
|
): Promise<Service.AssetPart.Find.Result> => {
|
|
@@ -3465,7 +3470,7 @@ export default class Repzo {
|
|
|
3465
3470
|
};
|
|
3466
3471
|
|
|
3467
3472
|
assetPartUnit = {
|
|
3468
|
-
_path:
|
|
3473
|
+
_path: Repzo._end_points.ASSET_PART_UNIT,
|
|
3469
3474
|
find: async (
|
|
3470
3475
|
params?: Service.AssetPartUnit.Find.Params
|
|
3471
3476
|
): Promise<Service.AssetPartUnit.Find.Result> => {
|
|
@@ -3500,7 +3505,7 @@ export default class Repzo {
|
|
|
3500
3505
|
};
|
|
3501
3506
|
|
|
3502
3507
|
assetPartReceival = {
|
|
3503
|
-
_path:
|
|
3508
|
+
_path: Repzo._end_points.ASSET_PART_RECEIVAL,
|
|
3504
3509
|
find: async (
|
|
3505
3510
|
params?: Service.AssetPartReceival.Find.Params
|
|
3506
3511
|
): Promise<Service.AssetPartReceival.Find.Result> => {
|
|
@@ -3557,7 +3562,7 @@ export default class Repzo {
|
|
|
3557
3562
|
};
|
|
3558
3563
|
|
|
3559
3564
|
assetPartTransfer = {
|
|
3560
|
-
_path:
|
|
3565
|
+
_path: Repzo._end_points.ASSET_PART_TRANSFER,
|
|
3561
3566
|
find: async (
|
|
3562
3567
|
params?: Service.AssetPartTransfer.Find.Params
|
|
3563
3568
|
): Promise<Service.AssetPartTransfer.Find.Result> => {
|
|
@@ -3614,7 +3619,7 @@ export default class Repzo {
|
|
|
3614
3619
|
};
|
|
3615
3620
|
|
|
3616
3621
|
returnAssetPartUnit = {
|
|
3617
|
-
_path:
|
|
3622
|
+
_path: Repzo._end_points.RETURN_ASSET_PART_UNIT,
|
|
3618
3623
|
find: async (
|
|
3619
3624
|
params?: Service.ReturnAssetPartUnit.Find.Params
|
|
3620
3625
|
): Promise<Service.ReturnAssetPartUnit.Find.Result> => {
|
|
@@ -3671,7 +3676,7 @@ export default class Repzo {
|
|
|
3671
3676
|
};
|
|
3672
3677
|
|
|
3673
3678
|
storeAssetPartUnit = {
|
|
3674
|
-
_path:
|
|
3679
|
+
_path: Repzo._end_points.STORE_ASSET_PART_UNIT,
|
|
3675
3680
|
find: async (
|
|
3676
3681
|
params?: Service.StoreAssetPartUnit.Find.Params
|
|
3677
3682
|
): Promise<Service.StoreAssetPartUnit.Find.Result> => {
|
|
@@ -3728,7 +3733,7 @@ export default class Repzo {
|
|
|
3728
3733
|
};
|
|
3729
3734
|
|
|
3730
3735
|
ocrInvoiceJobTemplate = {
|
|
3731
|
-
_path:
|
|
3736
|
+
_path: Repzo._end_points.OCR_INVOICE_JOB_TEMPLATE,
|
|
3732
3737
|
find: async (
|
|
3733
3738
|
params?: Service.OcrInvoiceJobTemplate.Find.Params
|
|
3734
3739
|
): Promise<Service.OcrInvoiceJobTemplate.Find.Result> => {
|
|
@@ -3771,7 +3776,7 @@ export default class Repzo {
|
|
|
3771
3776
|
};
|
|
3772
3777
|
|
|
3773
3778
|
ocrInvoiceJobGroup = {
|
|
3774
|
-
_path:
|
|
3779
|
+
_path: Repzo._end_points.OCR_INVOICE_JOB_GROUP,
|
|
3775
3780
|
find: async (
|
|
3776
3781
|
params?: Service.OcrInvoiceJobGroup.Find.Params
|
|
3777
3782
|
): Promise<Service.OcrInvoiceJobGroup.Find.Result> => {
|
|
@@ -3803,7 +3808,7 @@ export default class Repzo {
|
|
|
3803
3808
|
};
|
|
3804
3809
|
|
|
3805
3810
|
activityAiSalesOrder = {
|
|
3806
|
-
_path:
|
|
3811
|
+
_path: Repzo._end_points.ACTIVITY_AI_SALES_ORDER,
|
|
3807
3812
|
find: async (
|
|
3808
3813
|
params?: Service.ActivityAiSalesOrder.Find.Params
|
|
3809
3814
|
): Promise<Service.ActivityAiSalesOrder.Find.Result> => {
|
|
@@ -3835,7 +3840,7 @@ export default class Repzo {
|
|
|
3835
3840
|
};
|
|
3836
3841
|
|
|
3837
3842
|
ocrInvoiceJob = {
|
|
3838
|
-
_path:
|
|
3843
|
+
_path: Repzo._end_points.OCR_INVOICE_JOB,
|
|
3839
3844
|
find: async (
|
|
3840
3845
|
params?: Service.OcrInvoiceJob.Find.Params
|
|
3841
3846
|
): Promise<Service.OcrInvoiceJob.Find.Result> => {
|
|
@@ -3857,7 +3862,7 @@ export default class Repzo {
|
|
|
3857
3862
|
};
|
|
3858
3863
|
|
|
3859
3864
|
ocrInvoiceJobPage = {
|
|
3860
|
-
_path:
|
|
3865
|
+
_path: Repzo._end_points.OCR_INVOICE_JOB_PAGE,
|
|
3861
3866
|
find: async (
|
|
3862
3867
|
params?: Service.OcrInvoiceJobPage.Find.Params
|
|
3863
3868
|
): Promise<Service.OcrInvoiceJobPage.Find.Result> => {
|
|
@@ -3890,7 +3895,7 @@ export default class Repzo {
|
|
|
3890
3895
|
};
|
|
3891
3896
|
|
|
3892
3897
|
settings = {
|
|
3893
|
-
_path:
|
|
3898
|
+
_path: Repzo._end_points.SETTINGS,
|
|
3894
3899
|
find: async (
|
|
3895
3900
|
params?: Service.Settings.Find.Params
|
|
3896
3901
|
): Promise<Service.Settings.Find.Result> => {
|
|
@@ -3923,7 +3928,7 @@ export default class Repzo {
|
|
|
3923
3928
|
};
|
|
3924
3929
|
|
|
3925
3930
|
mailUnsubscribe = {
|
|
3926
|
-
_path:
|
|
3931
|
+
_path: Repzo._end_points.MAIL_UNSUBSCRIBE,
|
|
3927
3932
|
|
|
3928
3933
|
get: async (
|
|
3929
3934
|
id: Service.MailUnsubsrcibe.Get.ID
|
|
@@ -3948,7 +3953,7 @@ export default class Repzo {
|
|
|
3948
3953
|
};
|
|
3949
3954
|
|
|
3950
3955
|
approvalRequest = {
|
|
3951
|
-
_path:
|
|
3956
|
+
_path: Repzo._end_points.APPROVAL_REQUEST,
|
|
3952
3957
|
find: async (
|
|
3953
3958
|
params?: Service.ApprovalRequest.Find.Params
|
|
3954
3959
|
): Promise<Service.ApprovalRequest.Find.Result> => {
|
|
@@ -4004,7 +4009,7 @@ export default class Repzo {
|
|
|
4004
4009
|
};
|
|
4005
4010
|
|
|
4006
4011
|
safeInvoiceSerialCounter = {
|
|
4007
|
-
_path:
|
|
4012
|
+
_path: Repzo._end_points.SAFE_INVOICE_SERIAL_COUNTER,
|
|
4008
4013
|
|
|
4009
4014
|
update: async (
|
|
4010
4015
|
id: Service.SafeInvoiceSerialCounter.Update.ID,
|
|
@@ -4020,7 +4025,7 @@ export default class Repzo {
|
|
|
4020
4025
|
};
|
|
4021
4026
|
|
|
4022
4027
|
clientLocation = {
|
|
4023
|
-
_path:
|
|
4028
|
+
_path: Repzo._end_points.CLIENT_LOCATION,
|
|
4024
4029
|
find: async (
|
|
4025
4030
|
params?: Service.ClientLocation.Find.Params
|
|
4026
4031
|
): Promise<Service.ClientLocation.Find.Result> => {
|
|
@@ -4076,7 +4081,7 @@ export default class Repzo {
|
|
|
4076
4081
|
};
|
|
4077
4082
|
|
|
4078
4083
|
assetType = {
|
|
4079
|
-
_path:
|
|
4084
|
+
_path: Repzo._end_points.ASSET_TYPE,
|
|
4080
4085
|
find: async (
|
|
4081
4086
|
params?: Service.AssetType.Find.Params
|
|
4082
4087
|
): Promise<Service.AssetType.Find.Result> => {
|
|
@@ -4130,7 +4135,7 @@ export default class Repzo {
|
|
|
4130
4135
|
};
|
|
4131
4136
|
|
|
4132
4137
|
asset = {
|
|
4133
|
-
_path:
|
|
4138
|
+
_path: Repzo._end_points.ASSET,
|
|
4134
4139
|
find: async (
|
|
4135
4140
|
params?: Service.Asset.Find.Params
|
|
4136
4141
|
): Promise<Service.Asset.Find.Result> => {
|
|
@@ -4182,7 +4187,7 @@ export default class Repzo {
|
|
|
4182
4187
|
};
|
|
4183
4188
|
|
|
4184
4189
|
assetUnit = {
|
|
4185
|
-
_path:
|
|
4190
|
+
_path: Repzo._end_points.ASSET_UNIT,
|
|
4186
4191
|
find: async (
|
|
4187
4192
|
params?: Service.AssetUnit.Find.Params
|
|
4188
4193
|
): Promise<Service.AssetUnit.Find.Result> => {
|
|
@@ -4238,7 +4243,7 @@ export default class Repzo {
|
|
|
4238
4243
|
};
|
|
4239
4244
|
|
|
4240
4245
|
workorderPortal = {
|
|
4241
|
-
_path:
|
|
4246
|
+
_path: Repzo._end_points.WORKORDER_PORTAL,
|
|
4242
4247
|
find: async (
|
|
4243
4248
|
params?: Service.WorkorderPortal.Find.Params
|
|
4244
4249
|
): Promise<Service.WorkorderPortal.Find.Result> => {
|
|
@@ -4292,7 +4297,7 @@ export default class Repzo {
|
|
|
4292
4297
|
};
|
|
4293
4298
|
|
|
4294
4299
|
approval = {
|
|
4295
|
-
_path:
|
|
4300
|
+
_path: Repzo._end_points.APPROVAL,
|
|
4296
4301
|
find: async (
|
|
4297
4302
|
params?: Service.Approval.Find.Params
|
|
4298
4303
|
): Promise<Service.Approval.Find.Result> => {
|
|
@@ -4344,6 +4349,168 @@ export default class Repzo {
|
|
|
4344
4349
|
return res;
|
|
4345
4350
|
},
|
|
4346
4351
|
};
|
|
4352
|
+
|
|
4353
|
+
workorderCategory = {
|
|
4354
|
+
_path: Repzo._end_points.WORKORDER_CATEGORY,
|
|
4355
|
+
find: async (
|
|
4356
|
+
params?: Service.WorkorderCategory.Find.Params
|
|
4357
|
+
): Promise<Service.WorkorderCategory.Find.Result> => {
|
|
4358
|
+
let res: Service.WorkorderCategory.Find.Result = await this._fetch(
|
|
4359
|
+
this.svAPIEndpoint,
|
|
4360
|
+
this.workorderCategory._path,
|
|
4361
|
+
params
|
|
4362
|
+
);
|
|
4363
|
+
return res;
|
|
4364
|
+
},
|
|
4365
|
+
get: async (
|
|
4366
|
+
id: Service.WorkorderCategory.Get.ID,
|
|
4367
|
+
params?: Service.WorkorderCategory.Get.Params
|
|
4368
|
+
): Promise<Service.WorkorderCategory.Get.Result> => {
|
|
4369
|
+
return await this._fetch(
|
|
4370
|
+
this.svAPIEndpoint,
|
|
4371
|
+
this.workorderCategory._path + `/${id}`,
|
|
4372
|
+
params
|
|
4373
|
+
);
|
|
4374
|
+
},
|
|
4375
|
+
create: async (
|
|
4376
|
+
body: Service.WorkorderCategory.Create.Body
|
|
4377
|
+
): Promise<Service.WorkorderCategory.Create.Result> => {
|
|
4378
|
+
let res = await this._create(
|
|
4379
|
+
this.svAPIEndpoint,
|
|
4380
|
+
this.workorderCategory._path,
|
|
4381
|
+
body
|
|
4382
|
+
);
|
|
4383
|
+
return res;
|
|
4384
|
+
},
|
|
4385
|
+
update: async (
|
|
4386
|
+
id: Service.WorkorderCategory.Update.ID,
|
|
4387
|
+
body: Service.WorkorderCategory.Update.Body
|
|
4388
|
+
): Promise<Service.WorkorderCategory.Update.Result> => {
|
|
4389
|
+
let res: Service.WorkorderCategory.Update.Result = await this._update(
|
|
4390
|
+
this.svAPIEndpoint,
|
|
4391
|
+
this.workorderCategory._path + `/${id}`,
|
|
4392
|
+
body
|
|
4393
|
+
);
|
|
4394
|
+
return res;
|
|
4395
|
+
},
|
|
4396
|
+
remove: async (
|
|
4397
|
+
id: Service.WorkorderCategory.Remove.ID
|
|
4398
|
+
): Promise<Service.WorkorderCategory.Remove.Result> => {
|
|
4399
|
+
let res: Service.WorkorderCategory.Remove.Result = await this._delete(
|
|
4400
|
+
this.svAPIEndpoint,
|
|
4401
|
+
this.workorderCategory._path + `/${id}`
|
|
4402
|
+
);
|
|
4403
|
+
return res;
|
|
4404
|
+
},
|
|
4405
|
+
};
|
|
4406
|
+
|
|
4407
|
+
contract = {
|
|
4408
|
+
_path: Repzo._end_points.CONTRACT,
|
|
4409
|
+
find: async (
|
|
4410
|
+
params?: Service.Contract.Find.Params
|
|
4411
|
+
): Promise<Service.Contract.Find.Result> => {
|
|
4412
|
+
let res: Service.Contract.Find.Result = await this._fetch(
|
|
4413
|
+
this.svAPIEndpoint,
|
|
4414
|
+
this.contract._path,
|
|
4415
|
+
params
|
|
4416
|
+
);
|
|
4417
|
+
return res;
|
|
4418
|
+
},
|
|
4419
|
+
get: async (
|
|
4420
|
+
id: Service.Contract.Get.ID,
|
|
4421
|
+
params?: Service.Contract.Get.Params
|
|
4422
|
+
): Promise<Service.Contract.Get.Result> => {
|
|
4423
|
+
return await this._fetch(
|
|
4424
|
+
this.svAPIEndpoint,
|
|
4425
|
+
this.contract._path + `/${id}`,
|
|
4426
|
+
params
|
|
4427
|
+
);
|
|
4428
|
+
},
|
|
4429
|
+
create: async (
|
|
4430
|
+
body: Service.Contract.Create.Body
|
|
4431
|
+
): Promise<Service.Contract.Create.Result> => {
|
|
4432
|
+
let res = await this._create(
|
|
4433
|
+
this.svAPIEndpoint,
|
|
4434
|
+
this.contract._path,
|
|
4435
|
+
body
|
|
4436
|
+
);
|
|
4437
|
+
return res;
|
|
4438
|
+
},
|
|
4439
|
+
update: async (
|
|
4440
|
+
id: Service.Contract.Update.ID,
|
|
4441
|
+
body: Service.Contract.Update.Body
|
|
4442
|
+
): Promise<Service.Contract.Update.Result> => {
|
|
4443
|
+
let res: Service.Contract.Update.Result = await this._update(
|
|
4444
|
+
this.svAPIEndpoint,
|
|
4445
|
+
this.contract._path + `/${id}`,
|
|
4446
|
+
body
|
|
4447
|
+
);
|
|
4448
|
+
return res;
|
|
4449
|
+
},
|
|
4450
|
+
remove: async (
|
|
4451
|
+
id: Service.Contract.Remove.ID
|
|
4452
|
+
): Promise<Service.Contract.Remove.Result> => {
|
|
4453
|
+
let res: Service.Contract.Remove.Result = await this._delete(
|
|
4454
|
+
this.svAPIEndpoint,
|
|
4455
|
+
this.contract._path + `/${id}`
|
|
4456
|
+
);
|
|
4457
|
+
return res;
|
|
4458
|
+
},
|
|
4459
|
+
};
|
|
4460
|
+
|
|
4461
|
+
contractInstallment = {
|
|
4462
|
+
_path: Repzo._end_points.CONTRACT_INSTALLMENT,
|
|
4463
|
+
find: async (
|
|
4464
|
+
params?: Service.ContractInstallment.Find.Params
|
|
4465
|
+
): Promise<Service.ContractInstallment.Find.Result> => {
|
|
4466
|
+
let res: Service.ContractInstallment.Find.Result = await this._fetch(
|
|
4467
|
+
this.svAPIEndpoint,
|
|
4468
|
+
this.contractInstallment._path,
|
|
4469
|
+
params
|
|
4470
|
+
);
|
|
4471
|
+
return res;
|
|
4472
|
+
},
|
|
4473
|
+
get: async (
|
|
4474
|
+
id: Service.ContractInstallment.Get.ID,
|
|
4475
|
+
params?: Service.ContractInstallment.Get.Params
|
|
4476
|
+
): Promise<Service.ContractInstallment.Get.Result> => {
|
|
4477
|
+
return await this._fetch(
|
|
4478
|
+
this.svAPIEndpoint,
|
|
4479
|
+
this.contractInstallment._path + `/${id}`,
|
|
4480
|
+
params
|
|
4481
|
+
);
|
|
4482
|
+
},
|
|
4483
|
+
create: async (
|
|
4484
|
+
body: Service.ContractInstallment.Create.Body
|
|
4485
|
+
): Promise<Service.ContractInstallment.Create.Result> => {
|
|
4486
|
+
let res = await this._create(
|
|
4487
|
+
this.svAPIEndpoint,
|
|
4488
|
+
this.contractInstallment._path,
|
|
4489
|
+
body
|
|
4490
|
+
);
|
|
4491
|
+
return res;
|
|
4492
|
+
},
|
|
4493
|
+
update: async (
|
|
4494
|
+
id: Service.ContractInstallment.Update.ID,
|
|
4495
|
+
body: Service.ContractInstallment.Update.Body
|
|
4496
|
+
): Promise<Service.ContractInstallment.Update.Result> => {
|
|
4497
|
+
let res: Service.ContractInstallment.Update.Result = await this._update(
|
|
4498
|
+
this.svAPIEndpoint,
|
|
4499
|
+
this.contractInstallment._path + `/${id}`,
|
|
4500
|
+
body
|
|
4501
|
+
);
|
|
4502
|
+
return res;
|
|
4503
|
+
},
|
|
4504
|
+
remove: async (
|
|
4505
|
+
id: Service.ContractInstallment.Remove.ID
|
|
4506
|
+
): Promise<Service.ContractInstallment.Remove.Result> => {
|
|
4507
|
+
let res: Service.ContractInstallment.Remove.Result = await this._delete(
|
|
4508
|
+
this.svAPIEndpoint,
|
|
4509
|
+
this.contractInstallment._path + `/${id}`
|
|
4510
|
+
);
|
|
4511
|
+
return res;
|
|
4512
|
+
},
|
|
4513
|
+
};
|
|
4347
4514
|
}
|
|
4348
4515
|
|
|
4349
4516
|
function normalizeParams(params: Params): { [key: string]: any } {
|