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/lib/index.d.ts
CHANGED
|
@@ -12,8 +12,8 @@ export default class Repzo {
|
|
|
12
12
|
headers: Headers;
|
|
13
13
|
private timeout;
|
|
14
14
|
constructor(apiKey: string, options?: Options);
|
|
15
|
-
private _end_points;
|
|
16
|
-
END_POINTS: {
|
|
15
|
+
private static _end_points;
|
|
16
|
+
static get END_POINTS(): {
|
|
17
17
|
readonly CLIENT: "client";
|
|
18
18
|
readonly PRODUCT: "product";
|
|
19
19
|
readonly VARIANT: "variant";
|
|
@@ -97,6 +97,9 @@ export default class Repzo {
|
|
|
97
97
|
readonly ACTIVITY_FEEDBACK: "activity-feedback";
|
|
98
98
|
readonly ACTIVITY_FEEDBACKV2: "activity-feedback-v2";
|
|
99
99
|
readonly FEEDBACK_OPTION: "feedback-options";
|
|
100
|
+
readonly WORKORDER_CATEGORY: "workorder-category";
|
|
101
|
+
readonly CONTRACT: "contract";
|
|
102
|
+
readonly CONTRACT_INSTALLMENT: "contract-installment";
|
|
100
103
|
};
|
|
101
104
|
private _fetch;
|
|
102
105
|
private _create;
|
|
@@ -1550,4 +1553,64 @@ export default class Repzo {
|
|
|
1550
1553
|
id: Service.Approval.Remove.ID
|
|
1551
1554
|
) => Promise<Service.Approval.Remove.Result>;
|
|
1552
1555
|
};
|
|
1556
|
+
workorderCategory: {
|
|
1557
|
+
_path: "workorder-category";
|
|
1558
|
+
find: (
|
|
1559
|
+
params?: Service.WorkorderCategory.Find.Params
|
|
1560
|
+
) => Promise<Service.WorkorderCategory.Find.Result>;
|
|
1561
|
+
get: (
|
|
1562
|
+
id: Service.WorkorderCategory.Get.ID,
|
|
1563
|
+
params?: Service.WorkorderCategory.Get.Params
|
|
1564
|
+
) => Promise<Service.WorkorderCategory.Get.Result>;
|
|
1565
|
+
create: (
|
|
1566
|
+
body: Service.WorkorderCategory.Create.Body
|
|
1567
|
+
) => Promise<Service.WorkorderCategory.Create.Result>;
|
|
1568
|
+
update: (
|
|
1569
|
+
id: Service.WorkorderCategory.Update.ID,
|
|
1570
|
+
body: Service.WorkorderCategory.Update.Body
|
|
1571
|
+
) => Promise<Service.WorkorderCategory.Update.Result>;
|
|
1572
|
+
remove: (
|
|
1573
|
+
id: Service.WorkorderCategory.Remove.ID
|
|
1574
|
+
) => Promise<Service.WorkorderCategory.Remove.Result>;
|
|
1575
|
+
};
|
|
1576
|
+
contract: {
|
|
1577
|
+
_path: "contract";
|
|
1578
|
+
find: (
|
|
1579
|
+
params?: Service.Contract.Find.Params
|
|
1580
|
+
) => Promise<Service.Contract.Find.Result>;
|
|
1581
|
+
get: (
|
|
1582
|
+
id: Service.Contract.Get.ID,
|
|
1583
|
+
params?: Service.Contract.Get.Params
|
|
1584
|
+
) => Promise<Service.Contract.Get.Result>;
|
|
1585
|
+
create: (
|
|
1586
|
+
body: Service.Contract.Create.Body
|
|
1587
|
+
) => Promise<Service.Contract.Create.Result>;
|
|
1588
|
+
update: (
|
|
1589
|
+
id: Service.Contract.Update.ID,
|
|
1590
|
+
body: Service.Contract.Update.Body
|
|
1591
|
+
) => Promise<Service.Contract.Update.Result>;
|
|
1592
|
+
remove: (
|
|
1593
|
+
id: Service.Contract.Remove.ID
|
|
1594
|
+
) => Promise<Service.Contract.Remove.Result>;
|
|
1595
|
+
};
|
|
1596
|
+
contractInstallment: {
|
|
1597
|
+
_path: "contract-installment";
|
|
1598
|
+
find: (
|
|
1599
|
+
params?: Service.ContractInstallment.Find.Params
|
|
1600
|
+
) => Promise<Service.ContractInstallment.Find.Result>;
|
|
1601
|
+
get: (
|
|
1602
|
+
id: Service.ContractInstallment.Get.ID,
|
|
1603
|
+
params?: Service.ContractInstallment.Get.Params
|
|
1604
|
+
) => Promise<Service.ContractInstallment.Get.Result>;
|
|
1605
|
+
create: (
|
|
1606
|
+
body: Service.ContractInstallment.Create.Body
|
|
1607
|
+
) => Promise<Service.ContractInstallment.Create.Result>;
|
|
1608
|
+
update: (
|
|
1609
|
+
id: Service.ContractInstallment.Update.ID,
|
|
1610
|
+
body: Service.ContractInstallment.Update.Body
|
|
1611
|
+
) => Promise<Service.ContractInstallment.Update.Result>;
|
|
1612
|
+
remove: (
|
|
1613
|
+
id: Service.ContractInstallment.Remove.ID
|
|
1614
|
+
) => Promise<Service.ContractInstallment.Remove.Result>;
|
|
1615
|
+
};
|
|
1553
1616
|
}
|