repzo 1.0.2 → 1.0.5
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 +19 -0
- package/lib/index.d.ts +197 -0
- package/lib/index.js +539 -10
- package/lib/types/index.d.ts +3429 -30
- package/package.json +34 -26
- package/src/index.ts +1312 -6
- package/src/types/index.ts +3507 -30
- package/tsconfig.json +16 -15
package/changelog.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Release Notes
|
|
2
|
+
|
|
3
|
+
## [v1.0.0 (2022-03-14)](https://github.com/Repzo/repzo-ts.git)
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- add files src/ [index, client, types], test/ [index] @maramalshen
|
|
8
|
+
- add Services: Product, Variant @maramalshen
|
|
9
|
+
- add Services: Category @maramalshen
|
|
10
|
+
- add Services: SubCategory, Brand, ProductGroup, measureunit, measureunitFamily, media, priceList, priceListItem, teams, Rep, Tag, warehouse, channel, paymentTerm, bank, customList, full_invoice, proforma, payment, cycle, transfer, AdjustInventory, inventory @maramalshen
|
|
11
|
+
- update Product schema with populatedKeys @maramalshen
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
### Removed
|
|
18
|
+
|
|
19
|
+
## [unreleased (date)](path)
|
package/lib/index.d.ts
CHANGED
|
@@ -15,4 +15,201 @@ export default class Repzo {
|
|
|
15
15
|
update: (id: Service.Client.Update.ID, body: Service.Client.Update.Body) => Promise<Service.Client.Update.Result>;
|
|
16
16
|
remove: (id: Service.Client.Remove.ID) => Promise<Service.Client.Remove.Result>;
|
|
17
17
|
};
|
|
18
|
+
product: {
|
|
19
|
+
_path: string;
|
|
20
|
+
find: (params?: Service.Product.Find.Params | undefined) => Promise<Service.Product.Find.Result>;
|
|
21
|
+
get: (id: Service.Product.Get.ID, params?: Service.Product.Get.Params | undefined) => Promise<Service.Product.Get.Result>;
|
|
22
|
+
create: (body: Service.Product.Create.Body) => Promise<Service.Product.Create.Result>;
|
|
23
|
+
update: (id: Service.Product.Update.ID, body: Service.Product.Update.Body) => Promise<Service.Product.Update.Result>;
|
|
24
|
+
remove: (id: Service.Product.Remove.ID) => Promise<Service.Product.Remove.Result>;
|
|
25
|
+
};
|
|
26
|
+
variant: {
|
|
27
|
+
_path: string;
|
|
28
|
+
find: (params?: Service.Variant.Find.Params | undefined) => Promise<Service.Variant.Find.Result>;
|
|
29
|
+
get: (id: Service.Variant.Get.ID, params?: Service.Variant.Get.Params | undefined) => Promise<Service.Variant.Get.Result>;
|
|
30
|
+
create: (body: Service.Variant.Create.Body) => Promise<Service.Variant.Create.Result>;
|
|
31
|
+
update: (id: Service.Variant.Update.ID, body: Service.Variant.Update.Body) => Promise<Service.Variant.Update.Result>;
|
|
32
|
+
remove: (id: Service.Variant.Remove.ID) => Promise<Service.Variant.Remove.Result>;
|
|
33
|
+
};
|
|
34
|
+
category: {
|
|
35
|
+
_path: string;
|
|
36
|
+
find: (params?: Service.Category.Find.Params | undefined) => Promise<Service.Category.Find.Result>;
|
|
37
|
+
get: (id: Service.Category.Get.ID) => Promise<Service.Category.Get.Result>;
|
|
38
|
+
create: (body: Service.Category.Create.Body) => Promise<Service.Category.Create.Result>;
|
|
39
|
+
update: (id: Service.Category.Update.ID, body: Service.Category.Update.Body) => Promise<Service.Category.Update.Result>;
|
|
40
|
+
remove: (id: Service.Category.Remove.ID) => Promise<Service.Category.Remove.Result>;
|
|
41
|
+
};
|
|
42
|
+
sub_category: {
|
|
43
|
+
_path: string;
|
|
44
|
+
find: (params?: Service.SubCategory.Find.Params | undefined) => Promise<Service.SubCategory.Find.Result>;
|
|
45
|
+
get: (id: Service.SubCategory.Get.ID, params?: Service.SubCategory.Get.Params | undefined) => Promise<Service.SubCategory.Get.Result>;
|
|
46
|
+
create: (body: Service.SubCategory.Create.Body) => Promise<Service.SubCategory.Create.Result>;
|
|
47
|
+
update: (id: Service.SubCategory.Update.ID, body: Service.SubCategory.Update.Body) => Promise<Service.SubCategory.Update.Result>;
|
|
48
|
+
remove: (id: Service.SubCategory.Remove.ID) => Promise<Service.SubCategory.Remove.Result>;
|
|
49
|
+
};
|
|
50
|
+
brand: {
|
|
51
|
+
_path: string;
|
|
52
|
+
find: (params?: Service.Brand.Find.Params | undefined) => Promise<Service.Brand.Find.Result>;
|
|
53
|
+
get: (id: Service.Brand.Get.ID) => Promise<Service.Brand.Get.Result>;
|
|
54
|
+
create: (body: Service.Brand.Create.Body) => Promise<Service.Brand.Create.Result>;
|
|
55
|
+
update: (id: Service.Brand.Update.ID, body: Service.Brand.Update.Body) => Promise<Service.Brand.Update.Result>;
|
|
56
|
+
remove: (id: Service.Brand.Remove.ID) => Promise<Service.Brand.Remove.Result>;
|
|
57
|
+
};
|
|
58
|
+
product_group: {
|
|
59
|
+
_path: string;
|
|
60
|
+
find: (params?: Service.ProductGroup.Find.Params | undefined) => Promise<Service.ProductGroup.Find.Result>;
|
|
61
|
+
get: (id: Service.ProductGroup.Get.ID) => Promise<Service.ProductGroup.Get.Result>;
|
|
62
|
+
create: (body: Service.ProductGroup.Create.Body) => Promise<Service.ProductGroup.Create.Result>;
|
|
63
|
+
update: (id: Service.ProductGroup.Update.ID, body: Service.ProductGroup.Update.Body) => Promise<Service.ProductGroup.Update.Result>;
|
|
64
|
+
remove: (id: Service.ProductGroup.Remove.ID) => Promise<Service.ProductGroup.Remove.Result>;
|
|
65
|
+
};
|
|
66
|
+
tax: {
|
|
67
|
+
_path: string;
|
|
68
|
+
find: (params?: Service.Tax.Find.Params | undefined) => Promise<Service.Tax.Find.Result>;
|
|
69
|
+
get: (id: Service.Tax.Get.ID) => Promise<Service.Tax.Get.Result>;
|
|
70
|
+
create: (body: Service.Tax.Create.Body) => Promise<Service.Tax.Create.Result>;
|
|
71
|
+
update: (id: Service.Tax.Update.ID, body: Service.Tax.Update.Body) => Promise<Service.Tax.Update.Result>;
|
|
72
|
+
remove: (id: Service.Tax.Remove.ID) => Promise<Service.Tax.Remove.Result>;
|
|
73
|
+
};
|
|
74
|
+
measureunit: {
|
|
75
|
+
_path: string;
|
|
76
|
+
find: (params?: Service.MeasureUnit.Find.Params | undefined) => Promise<Service.MeasureUnit.Find.Result>;
|
|
77
|
+
get: (id: Service.MeasureUnit.Get.ID) => Promise<Service.MeasureUnit.Get.Result>;
|
|
78
|
+
create: (body: Service.MeasureUnit.Create.Body) => Promise<Service.MeasureUnit.Create.Result>;
|
|
79
|
+
update: (id: Service.MeasureUnit.Update.ID, body: Service.MeasureUnit.Update.Body) => Promise<Service.MeasureUnit.Update.Result>;
|
|
80
|
+
remove: (id: Service.MeasureUnit.Remove.ID) => Promise<Service.MeasureUnit.Remove.Result>;
|
|
81
|
+
};
|
|
82
|
+
measureunitFamily: {
|
|
83
|
+
_path: string;
|
|
84
|
+
find: (params?: Service.MeasureUnitFamily.Find.Params | undefined) => Promise<Service.MeasureUnitFamily.Find.Result>;
|
|
85
|
+
get: (id: Service.MeasureUnitFamily.Get.ID) => Promise<Service.MeasureUnitFamily.Get.Result>;
|
|
86
|
+
create: (body: Service.MeasureUnitFamily.Create.Body) => Promise<Service.MeasureUnitFamily.Create.Result>;
|
|
87
|
+
update: (id: Service.MeasureUnitFamily.Update.ID, body: Service.MeasureUnitFamily.Update.Body) => Promise<Service.MeasureUnitFamily.Update.Result>;
|
|
88
|
+
remove: (id: Service.MeasureUnitFamily.Remove.ID) => Promise<Service.MeasureUnitFamily.Remove.Result>;
|
|
89
|
+
};
|
|
90
|
+
media: {
|
|
91
|
+
_path: string;
|
|
92
|
+
find: (params?: Service.Media.Find.Params | undefined) => Promise<Service.Media.Find.Result>;
|
|
93
|
+
get: (id: Service.Media.Get.ID) => Promise<Service.Media.Get.Result>;
|
|
94
|
+
create: (body: Service.Media.Create.Body) => Promise<Service.Media.Create.Result>;
|
|
95
|
+
update: (id: Service.Media.Update.ID, body: Service.Media.Update.Body) => Promise<Service.Media.Update.Result>;
|
|
96
|
+
remove: (id: Service.Media.Remove.ID) => Promise<Service.Media.Remove.Result>;
|
|
97
|
+
};
|
|
98
|
+
priceList: {
|
|
99
|
+
_path: string;
|
|
100
|
+
find: (params?: Service.PriceList.Find.Params | undefined) => Promise<Service.PriceList.Find.Result>;
|
|
101
|
+
get: (id: Service.PriceList.Get.ID) => Promise<Service.PriceList.Get.Result>;
|
|
102
|
+
create: (body: Service.PriceList.Create.Body) => Promise<Service.PriceList.Create.Result>;
|
|
103
|
+
update: (id: Service.PriceList.Update.ID, body: Service.PriceList.Update.Body) => Promise<Service.PriceList.Update.Result>;
|
|
104
|
+
remove: (id: Service.PriceList.Remove.ID) => Promise<Service.PriceList.Remove.Result>;
|
|
105
|
+
};
|
|
106
|
+
priceListItem: {
|
|
107
|
+
_path: string;
|
|
108
|
+
find: (params?: Service.PriceListItem.Find.Params | undefined) => Promise<Service.PriceListItem.Find.Result>;
|
|
109
|
+
get: (id: Service.PriceListItem.Get.ID) => Promise<Service.PriceListItem.Get.Result>;
|
|
110
|
+
create: (body: Service.PriceListItem.Create.Body) => Promise<Service.PriceListItem.Create.Result>;
|
|
111
|
+
update: (id: Service.PriceListItem.Update.ID, body: Service.PriceListItem.Update.Body) => Promise<Service.PriceListItem.Update.Result>;
|
|
112
|
+
remove: (id: Service.PriceListItem.Remove.ID) => Promise<Service.PriceListItem.Remove.Result>;
|
|
113
|
+
};
|
|
114
|
+
team: {
|
|
115
|
+
_path: string;
|
|
116
|
+
find: (params?: Service.Team.Find.Params | undefined) => Promise<Service.Team.Find.Result>;
|
|
117
|
+
get: (id: Service.Team.Get.ID) => Promise<Service.Team.Get.Result>;
|
|
118
|
+
create: (body: Service.Team.Create.Body) => Promise<Service.Team.Create.Result>;
|
|
119
|
+
update: (id: Service.Team.Update.ID, body: Service.Team.Update.Body) => Promise<Service.Team.Update.Result>;
|
|
120
|
+
remove: (id: Service.Team.Remove.ID) => Promise<Service.Team.Remove.Result>;
|
|
121
|
+
};
|
|
122
|
+
rep: {
|
|
123
|
+
_path: string;
|
|
124
|
+
find: (params?: Service.Rep.Find.Params | undefined) => Promise<Service.Rep.Find.Result>;
|
|
125
|
+
get: (id: Service.Rep.Get.ID, params?: Service.Client.Get.Params | undefined) => Promise<Service.Rep.Get.Result>;
|
|
126
|
+
create: (body: Service.Rep.Create.Body) => Promise<Service.Rep.Create.Result>;
|
|
127
|
+
update: (id: Service.Rep.Update.ID, body: Service.Rep.Update.Body) => Promise<Service.Rep.Update.Result>;
|
|
128
|
+
remove: (id: Service.Rep.Remove.ID) => Promise<Service.Rep.Remove.Result>;
|
|
129
|
+
};
|
|
130
|
+
tag: {
|
|
131
|
+
_path: string;
|
|
132
|
+
find: (params?: Service.Tag.Find.Params | undefined) => Promise<Service.Tag.Find.Result>;
|
|
133
|
+
get: (id: Service.Tag.Get.ID) => Promise<Service.Tag.Get.Result>;
|
|
134
|
+
create: (body: Service.Tag.Create.Body) => Promise<Service.Tag.Create.Result>;
|
|
135
|
+
update: (id: Service.Tag.Update.ID, body: Service.Tag.Update.Body) => Promise<Service.Tag.Update.Result>;
|
|
136
|
+
remove: (id: Service.Tag.Remove.ID) => Promise<Service.Tag.Remove.Result>;
|
|
137
|
+
};
|
|
138
|
+
warehouse: {
|
|
139
|
+
_path: string;
|
|
140
|
+
find: (params?: Service.Warehouse.Find.Params | undefined) => Promise<Service.Warehouse.Find.Result>;
|
|
141
|
+
get: (id: Service.Warehouse.Get.ID) => Promise<Service.Warehouse.Get.Result>;
|
|
142
|
+
create: (body: Service.Warehouse.Create.Body) => Promise<Service.Warehouse.Create.Result>;
|
|
143
|
+
update: (id: Service.Warehouse.Update.ID, body: Service.Warehouse.Update.Body) => Promise<Service.Warehouse.Update.Result>;
|
|
144
|
+
remove: (id: Service.Warehouse.Remove.ID) => Promise<Service.Warehouse.Remove.Result>;
|
|
145
|
+
};
|
|
146
|
+
channel: {
|
|
147
|
+
_path: string;
|
|
148
|
+
find: (params?: Service.Channel.Find.Params | undefined) => Promise<Service.Channel.Find.Result>;
|
|
149
|
+
get: (id: Service.Channel.Get.ID) => Promise<Service.Channel.Get.Result>;
|
|
150
|
+
create: (body: Service.Channel.Create.Body) => Promise<Service.Channel.Create.Result>;
|
|
151
|
+
update: (id: Service.Channel.Update.ID, body: Service.Channel.Update.Body) => Promise<Service.Channel.Update.Result>;
|
|
152
|
+
remove: (id: Service.Channel.Remove.ID) => Promise<Service.Channel.Remove.Result>;
|
|
153
|
+
};
|
|
154
|
+
paymentTerm: {
|
|
155
|
+
_path: string;
|
|
156
|
+
find: (params?: Service.PaymentTerm.Find.Params | undefined) => Promise<Service.PaymentTerm.Find.Result>;
|
|
157
|
+
get: (id: Service.PaymentTerm.Get.ID) => Promise<Service.PaymentTerm.Get.Result>;
|
|
158
|
+
create: (body: Service.PaymentTerm.Create.Body) => Promise<Service.PaymentTerm.Create.Result>;
|
|
159
|
+
update: (id: Service.PaymentTerm.Update.ID, body: Service.PaymentTerm.Update.Body) => Promise<Service.PaymentTerm.Update.Result>;
|
|
160
|
+
remove: (id: Service.PaymentTerm.Remove.ID) => Promise<Service.PaymentTerm.Remove.Result>;
|
|
161
|
+
};
|
|
162
|
+
bank: {
|
|
163
|
+
_path: string;
|
|
164
|
+
find: (params?: Service.Bank.Find.Params | undefined) => Promise<Service.Bank.Find.Result>;
|
|
165
|
+
get: (id: Service.Bank.Get.ID) => Promise<Service.Bank.Get.Result>;
|
|
166
|
+
create: (body: Service.Bank.Create.Body) => Promise<Service.Bank.Create.Result>;
|
|
167
|
+
update: (id: Service.Bank.Update.ID, body: Service.Bank.Update.Body) => Promise<Service.Bank.Update.Result>;
|
|
168
|
+
};
|
|
169
|
+
customStatus: {
|
|
170
|
+
_path: string;
|
|
171
|
+
find: (params?: Service.CustomStatus.Find.Params | undefined) => Promise<Service.CustomStatus.Find.Result>;
|
|
172
|
+
get: (id: Service.CustomStatus.Get.ID) => Promise<Service.CustomStatus.Get.Result>;
|
|
173
|
+
create: (body: Service.CustomStatus.Create.Body) => Promise<Service.CustomStatus.Create.Result>;
|
|
174
|
+
update: (id: Service.CustomStatus.Update.ID, body: Service.CustomStatus.Update.Body) => Promise<Service.CustomStatus.Update.Result>;
|
|
175
|
+
remove: (id: Service.CustomStatus.Remove.ID) => Promise<Service.CustomStatus.Remove.Result>;
|
|
176
|
+
};
|
|
177
|
+
invoice: {
|
|
178
|
+
_path: string;
|
|
179
|
+
find: (params?: Service.FullInvoice.Find.Params | undefined) => Promise<Service.FullInvoice.Find.Result>;
|
|
180
|
+
get: (id: Service.FullInvoice.Get.ID, params?: Service.FullInvoice.Get.Params | undefined) => Promise<Service.FullInvoice.Get.Result>;
|
|
181
|
+
create: (body: Service.FullInvoice.Create.Body) => Promise<Service.FullInvoice.Create.Result>;
|
|
182
|
+
update: (id: Service.FullInvoice.Update.ID, body: Service.FullInvoice.Update.Body) => Promise<Service.FullInvoice.Update.Result>;
|
|
183
|
+
};
|
|
184
|
+
proforma: {
|
|
185
|
+
_path: string;
|
|
186
|
+
find: (params?: Service.Proforma.Find.Params | undefined) => Promise<Service.Proforma.Find.Result>;
|
|
187
|
+
get: (id: Service.Proforma.Get.ID, params?: Service.Proforma.Get.Params | undefined) => Promise<Service.Proforma.Get.Result>;
|
|
188
|
+
create: (body: Service.Proforma.Create.Body) => Promise<Service.Proforma.Create.Result>;
|
|
189
|
+
update: (id: Service.Proforma.Update.ID, body: Service.Proforma.Update.Body) => Promise<Service.Proforma.Update.Result>;
|
|
190
|
+
};
|
|
191
|
+
payment: {
|
|
192
|
+
_path: string;
|
|
193
|
+
find: (params?: Service.Payment.Find.Params | undefined) => Promise<Service.Payment.Find.Result>;
|
|
194
|
+
get: (id: Service.Payment.Get.ID, params?: Service.Payment.Get.Params | undefined) => Promise<Service.Payment.Get.Result>;
|
|
195
|
+
create: (body: Service.Payment.Create.Body) => Promise<Service.Payment.Create.Result>;
|
|
196
|
+
update: (id: Service.Payment.Update.ID, body: Service.Payment.Update.Body) => Promise<Service.Payment.Update.Result>;
|
|
197
|
+
};
|
|
198
|
+
transfer: {
|
|
199
|
+
_path: string;
|
|
200
|
+
find: (params?: Service.Transfer.Find.Params | undefined) => Promise<Service.Transfer.Find.Result>;
|
|
201
|
+
get: (id: Service.Transfer.Get.ID, params?: Service.Transfer.Get.Params | undefined) => Promise<Service.Transfer.Get.Result>;
|
|
202
|
+
create: (body: Service.Transfer.Create.Body) => Promise<Service.Transfer.Create.Result>;
|
|
203
|
+
update: (id: Service.Transfer.Update.ID, body: Service.Transfer.Update.Body) => Promise<Service.Transfer.Update.Result>;
|
|
204
|
+
};
|
|
205
|
+
adjustInventory: {
|
|
206
|
+
_path: string;
|
|
207
|
+
find: (params?: Service.AdjustAccount.Find.Params | undefined) => Promise<Service.AdjustAccount.Find.Result>;
|
|
208
|
+
get: (id: Service.AdjustAccount.Get.ID, params?: Service.AdjustAccount.Get.Params | undefined) => Promise<Service.AdjustAccount.Get.Result>;
|
|
209
|
+
create: (body: Service.AdjustAccount.Create.Body) => Promise<Service.AdjustAccount.Create.Result>;
|
|
210
|
+
};
|
|
211
|
+
inventory: {
|
|
212
|
+
_path: string;
|
|
213
|
+
find: (params?: Service.Inventory.Find.Params | undefined) => Promise<Service.Inventory.Find.Result>;
|
|
214
|
+
};
|
|
18
215
|
}
|