repzo 1.0.26 → 1.0.28
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 +652 -326
- package/lib/index.js +1475 -960
- package/lib/types/index.d.ts +4872 -4542
- package/package.json +1 -1
- package/src/types/index.ts +14 -15
package/lib/index.d.ts
CHANGED
|
@@ -1,328 +1,654 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Data,
|
|
3
|
+
Service,
|
|
4
|
+
Options,
|
|
5
|
+
Headers,
|
|
6
|
+
StringId,
|
|
7
|
+
NameSpaces,
|
|
8
|
+
} from "./types/index";
|
|
2
9
|
export default class Repzo {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
10
|
+
private svAPIEndpoint;
|
|
11
|
+
headers: Headers;
|
|
12
|
+
constructor(apiKey: string, options?: Options);
|
|
13
|
+
private _fetch;
|
|
14
|
+
private _create;
|
|
15
|
+
private _update;
|
|
16
|
+
private _delete;
|
|
17
|
+
client: {
|
|
18
|
+
_path: string;
|
|
19
|
+
find: (
|
|
20
|
+
params?: Service.Client.Find.Params | undefined,
|
|
21
|
+
) => Promise<Service.Client.Find.Result>;
|
|
22
|
+
get: (
|
|
23
|
+
id: Service.Client.Get.ID,
|
|
24
|
+
params?: Service.Client.Get.Params | undefined,
|
|
25
|
+
) => Promise<Service.Client.Get.Result>;
|
|
26
|
+
create: (
|
|
27
|
+
body: Service.Client.Create.Body,
|
|
28
|
+
) => Promise<Service.Client.Create.Result>;
|
|
29
|
+
update: (
|
|
30
|
+
id: Service.Client.Update.ID,
|
|
31
|
+
body: Service.Client.Update.Body,
|
|
32
|
+
) => Promise<Service.Client.Update.Result>;
|
|
33
|
+
remove: (
|
|
34
|
+
id: Service.Client.Remove.ID,
|
|
35
|
+
) => Promise<Service.Client.Remove.Result>;
|
|
36
|
+
};
|
|
37
|
+
product: {
|
|
38
|
+
_path: string;
|
|
39
|
+
find: (
|
|
40
|
+
params?: Service.Product.Find.Params | undefined,
|
|
41
|
+
) => Promise<Service.Product.Find.Result>;
|
|
42
|
+
get: (
|
|
43
|
+
id: Service.Product.Get.ID,
|
|
44
|
+
params?: Service.Product.Get.Params | undefined,
|
|
45
|
+
) => Promise<Service.Product.Get.Result>;
|
|
46
|
+
create: (
|
|
47
|
+
body: Service.Product.Create.Body,
|
|
48
|
+
) => Promise<Service.Product.Create.Result>;
|
|
49
|
+
update: (
|
|
50
|
+
id: Service.Product.Update.ID,
|
|
51
|
+
body: Service.Product.Update.Body,
|
|
52
|
+
) => Promise<Service.Product.Update.Result>;
|
|
53
|
+
remove: (
|
|
54
|
+
id: Service.Product.Remove.ID,
|
|
55
|
+
) => Promise<Service.Product.Remove.Result>;
|
|
56
|
+
};
|
|
57
|
+
variant: {
|
|
58
|
+
_path: string;
|
|
59
|
+
find: (
|
|
60
|
+
params?: Service.Variant.Find.Params | undefined,
|
|
61
|
+
) => Promise<Service.Variant.Find.Result>;
|
|
62
|
+
get: (
|
|
63
|
+
id: Service.Variant.Get.ID,
|
|
64
|
+
params?: Service.Variant.Get.Params | undefined,
|
|
65
|
+
) => Promise<Service.Variant.Get.Result>;
|
|
66
|
+
create: (
|
|
67
|
+
body: Service.Variant.Create.Body,
|
|
68
|
+
) => Promise<Service.Variant.Create.Result>;
|
|
69
|
+
update: (
|
|
70
|
+
id: Service.Variant.Update.ID,
|
|
71
|
+
body: Service.Variant.Update.Body,
|
|
72
|
+
) => Promise<Service.Variant.Update.Result>;
|
|
73
|
+
remove: (
|
|
74
|
+
id: Service.Variant.Remove.ID,
|
|
75
|
+
) => Promise<Service.Variant.Remove.Result>;
|
|
76
|
+
};
|
|
77
|
+
category: {
|
|
78
|
+
_path: string;
|
|
79
|
+
find: (
|
|
80
|
+
params?: Service.Category.Find.Params | undefined,
|
|
81
|
+
) => Promise<Service.Category.Find.Result>;
|
|
82
|
+
get: (id: Service.Category.Get.ID) => Promise<Service.Category.Get.Result>;
|
|
83
|
+
create: (
|
|
84
|
+
body: Service.Category.Create.Body,
|
|
85
|
+
) => Promise<Service.Category.Create.Result>;
|
|
86
|
+
update: (
|
|
87
|
+
id: Service.Category.Update.ID,
|
|
88
|
+
body: Service.Category.Update.Body,
|
|
89
|
+
) => Promise<Service.Category.Update.Result>;
|
|
90
|
+
remove: (
|
|
91
|
+
id: Service.Category.Remove.ID,
|
|
92
|
+
) => Promise<Service.Category.Remove.Result>;
|
|
93
|
+
};
|
|
94
|
+
sub_category: {
|
|
95
|
+
_path: string;
|
|
96
|
+
find: (
|
|
97
|
+
params?: Service.SubCategory.Find.Params | undefined,
|
|
98
|
+
) => Promise<Service.SubCategory.Find.Result>;
|
|
99
|
+
get: (
|
|
100
|
+
id: Service.SubCategory.Get.ID,
|
|
101
|
+
params?: Service.SubCategory.Get.Params | undefined,
|
|
102
|
+
) => Promise<Service.SubCategory.Get.Result>;
|
|
103
|
+
create: (
|
|
104
|
+
body: Service.SubCategory.Create.Body,
|
|
105
|
+
) => Promise<Service.SubCategory.Create.Result>;
|
|
106
|
+
update: (
|
|
107
|
+
id: Service.SubCategory.Update.ID,
|
|
108
|
+
body: Service.SubCategory.Update.Body,
|
|
109
|
+
) => Promise<Service.SubCategory.Update.Result>;
|
|
110
|
+
remove: (
|
|
111
|
+
id: Service.SubCategory.Remove.ID,
|
|
112
|
+
) => Promise<Service.SubCategory.Remove.Result>;
|
|
113
|
+
};
|
|
114
|
+
brand: {
|
|
115
|
+
_path: string;
|
|
116
|
+
find: (
|
|
117
|
+
params?: Service.Brand.Find.Params | undefined,
|
|
118
|
+
) => Promise<Service.Brand.Find.Result>;
|
|
119
|
+
get: (id: Service.Brand.Get.ID) => Promise<Service.Brand.Get.Result>;
|
|
120
|
+
create: (
|
|
121
|
+
body: Service.Brand.Create.Body,
|
|
122
|
+
) => Promise<Service.Brand.Create.Result>;
|
|
123
|
+
update: (
|
|
124
|
+
id: Service.Brand.Update.ID,
|
|
125
|
+
body: Service.Brand.Update.Body,
|
|
126
|
+
) => Promise<Service.Brand.Update.Result>;
|
|
127
|
+
remove: (
|
|
128
|
+
id: Service.Brand.Remove.ID,
|
|
129
|
+
) => Promise<Service.Brand.Remove.Result>;
|
|
130
|
+
};
|
|
131
|
+
product_group: {
|
|
132
|
+
_path: string;
|
|
133
|
+
find: (
|
|
134
|
+
params?: Service.ProductGroup.Find.Params | undefined,
|
|
135
|
+
) => Promise<Service.ProductGroup.Find.Result>;
|
|
136
|
+
get: (
|
|
137
|
+
id: Service.ProductGroup.Get.ID,
|
|
138
|
+
) => Promise<Service.ProductGroup.Get.Result>;
|
|
139
|
+
create: (
|
|
140
|
+
body: Service.ProductGroup.Create.Body,
|
|
141
|
+
) => Promise<Service.ProductGroup.Create.Result>;
|
|
142
|
+
update: (
|
|
143
|
+
id: Service.ProductGroup.Update.ID,
|
|
144
|
+
body: Service.ProductGroup.Update.Body,
|
|
145
|
+
) => Promise<Service.ProductGroup.Update.Result>;
|
|
146
|
+
remove: (
|
|
147
|
+
id: Service.ProductGroup.Remove.ID,
|
|
148
|
+
) => Promise<Service.ProductGroup.Remove.Result>;
|
|
149
|
+
};
|
|
150
|
+
tax: {
|
|
151
|
+
_path: string;
|
|
152
|
+
find: (
|
|
153
|
+
params?: Service.Tax.Find.Params | undefined,
|
|
154
|
+
) => Promise<Service.Tax.Find.Result>;
|
|
155
|
+
get: (id: Service.Tax.Get.ID) => Promise<Service.Tax.Get.Result>;
|
|
156
|
+
create: (
|
|
157
|
+
body: Service.Tax.Create.Body,
|
|
158
|
+
) => Promise<Service.Tax.Create.Result>;
|
|
159
|
+
update: (
|
|
160
|
+
id: Service.Tax.Update.ID,
|
|
161
|
+
body: Service.Tax.Update.Body,
|
|
162
|
+
) => Promise<Service.Tax.Update.Result>;
|
|
163
|
+
remove: (id: Service.Tax.Remove.ID) => Promise<Service.Tax.Remove.Result>;
|
|
164
|
+
};
|
|
165
|
+
measureunit: {
|
|
166
|
+
_path: string;
|
|
167
|
+
find: (
|
|
168
|
+
params?: Service.MeasureUnit.Find.Params | undefined,
|
|
169
|
+
) => Promise<Service.MeasureUnit.Find.Result>;
|
|
170
|
+
get: (
|
|
171
|
+
id: Service.MeasureUnit.Get.ID,
|
|
172
|
+
) => Promise<Service.MeasureUnit.Get.Result>;
|
|
173
|
+
create: (
|
|
174
|
+
body: Service.MeasureUnit.Create.Body,
|
|
175
|
+
) => Promise<Service.MeasureUnit.Create.Result>;
|
|
176
|
+
update: (
|
|
177
|
+
id: Service.MeasureUnit.Update.ID,
|
|
178
|
+
body: Service.MeasureUnit.Update.Body,
|
|
179
|
+
) => Promise<Service.MeasureUnit.Update.Result>;
|
|
180
|
+
remove: (
|
|
181
|
+
id: Service.MeasureUnit.Remove.ID,
|
|
182
|
+
) => Promise<Service.MeasureUnit.Remove.Result>;
|
|
183
|
+
};
|
|
184
|
+
measureunitFamily: {
|
|
185
|
+
_path: string;
|
|
186
|
+
find: (
|
|
187
|
+
params?: Service.MeasureUnitFamily.Find.Params | undefined,
|
|
188
|
+
) => Promise<Service.MeasureUnitFamily.Find.Result>;
|
|
189
|
+
get: (
|
|
190
|
+
id: Service.MeasureUnitFamily.Get.ID,
|
|
191
|
+
) => Promise<Service.MeasureUnitFamily.Get.Result>;
|
|
192
|
+
create: (
|
|
193
|
+
body: Service.MeasureUnitFamily.Create.Body,
|
|
194
|
+
) => Promise<Service.MeasureUnitFamily.Create.Result>;
|
|
195
|
+
update: (
|
|
196
|
+
id: Service.MeasureUnitFamily.Update.ID,
|
|
197
|
+
body: Service.MeasureUnitFamily.Update.Body,
|
|
198
|
+
) => Promise<Service.MeasureUnitFamily.Update.Result>;
|
|
199
|
+
remove: (
|
|
200
|
+
id: Service.MeasureUnitFamily.Remove.ID,
|
|
201
|
+
) => Promise<Service.MeasureUnitFamily.Remove.Result>;
|
|
202
|
+
};
|
|
203
|
+
media: {
|
|
204
|
+
_path: string;
|
|
205
|
+
find: (
|
|
206
|
+
params?: Service.Media.Find.Params | undefined,
|
|
207
|
+
) => Promise<Service.Media.Find.Result>;
|
|
208
|
+
get: (id: Service.Media.Get.ID) => Promise<Service.Media.Get.Result>;
|
|
209
|
+
create: (
|
|
210
|
+
body: Service.Media.Create.Body,
|
|
211
|
+
) => Promise<Service.Media.Create.Result>;
|
|
212
|
+
update: (
|
|
213
|
+
id: Service.Media.Update.ID,
|
|
214
|
+
body: Service.Media.Update.Body,
|
|
215
|
+
) => Promise<Service.Media.Update.Result>;
|
|
216
|
+
remove: (
|
|
217
|
+
id: Service.Media.Remove.ID,
|
|
218
|
+
) => Promise<Service.Media.Remove.Result>;
|
|
219
|
+
};
|
|
220
|
+
priceList: {
|
|
221
|
+
_path: string;
|
|
222
|
+
find: (
|
|
223
|
+
params?: Service.PriceList.Find.Params | undefined,
|
|
224
|
+
) => Promise<Service.PriceList.Find.Result>;
|
|
225
|
+
get: (
|
|
226
|
+
id: Service.PriceList.Get.ID,
|
|
227
|
+
) => Promise<Service.PriceList.Get.Result>;
|
|
228
|
+
create: (
|
|
229
|
+
body: Service.PriceList.Create.Body,
|
|
230
|
+
) => Promise<Service.PriceList.Create.Result>;
|
|
231
|
+
update: (
|
|
232
|
+
id: Service.PriceList.Update.ID,
|
|
233
|
+
body: Service.PriceList.Update.Body,
|
|
234
|
+
) => Promise<Service.PriceList.Update.Result>;
|
|
235
|
+
remove: (
|
|
236
|
+
id: Service.PriceList.Remove.ID,
|
|
237
|
+
) => Promise<Service.PriceList.Remove.Result>;
|
|
238
|
+
};
|
|
239
|
+
priceListItem: {
|
|
240
|
+
_path: string;
|
|
241
|
+
find: (
|
|
242
|
+
params?: Service.PriceListItem.Find.Params | undefined,
|
|
243
|
+
) => Promise<Service.PriceListItem.Find.Result>;
|
|
244
|
+
get: (
|
|
245
|
+
id: Service.PriceListItem.Get.ID,
|
|
246
|
+
) => Promise<Service.PriceListItem.Get.Result>;
|
|
247
|
+
create: (
|
|
248
|
+
body: Service.PriceListItem.Create.Body,
|
|
249
|
+
) => Promise<Service.PriceListItem.Create.Result>;
|
|
250
|
+
update: (
|
|
251
|
+
id: Service.PriceListItem.Update.ID,
|
|
252
|
+
body: Service.PriceListItem.Update.Body,
|
|
253
|
+
) => Promise<Service.PriceListItem.Update.Result>;
|
|
254
|
+
remove: (
|
|
255
|
+
id: Service.PriceListItem.Remove.ID,
|
|
256
|
+
) => Promise<Service.PriceListItem.Remove.Result>;
|
|
257
|
+
};
|
|
258
|
+
team: {
|
|
259
|
+
_path: string;
|
|
260
|
+
find: (
|
|
261
|
+
params?: Service.Team.Find.Params | undefined,
|
|
262
|
+
) => Promise<Service.Team.Find.Result>;
|
|
263
|
+
get: (id: Service.Team.Get.ID) => Promise<Service.Team.Get.Result>;
|
|
264
|
+
create: (
|
|
265
|
+
body: Service.Team.Create.Body,
|
|
266
|
+
) => Promise<Service.Team.Create.Result>;
|
|
267
|
+
update: (
|
|
268
|
+
id: Service.Team.Update.ID,
|
|
269
|
+
body: Service.Team.Update.Body,
|
|
270
|
+
) => Promise<Service.Team.Update.Result>;
|
|
271
|
+
remove: (id: Service.Team.Remove.ID) => Promise<Service.Team.Remove.Result>;
|
|
272
|
+
};
|
|
273
|
+
rep: {
|
|
274
|
+
_path: string;
|
|
275
|
+
find: (
|
|
276
|
+
params?: Service.Rep.Find.Params | undefined,
|
|
277
|
+
) => Promise<Service.Rep.Find.Result>;
|
|
278
|
+
get: (
|
|
279
|
+
id: Service.Rep.Get.ID,
|
|
280
|
+
params?: Service.Client.Get.Params | undefined,
|
|
281
|
+
) => Promise<Service.Rep.Get.Result>;
|
|
282
|
+
create: (
|
|
283
|
+
body: Service.Rep.Create.Body,
|
|
284
|
+
) => Promise<Service.Rep.Create.Result>;
|
|
285
|
+
update: (
|
|
286
|
+
id: Service.Rep.Update.ID,
|
|
287
|
+
body: Service.Rep.Update.Body,
|
|
288
|
+
) => Promise<Service.Rep.Update.Result>;
|
|
289
|
+
remove: (id: Service.Rep.Remove.ID) => Promise<Service.Rep.Remove.Result>;
|
|
290
|
+
};
|
|
291
|
+
tag: {
|
|
292
|
+
_path: string;
|
|
293
|
+
find: (
|
|
294
|
+
params?: Service.Tag.Find.Params | undefined,
|
|
295
|
+
) => Promise<Service.Tag.Find.Result>;
|
|
296
|
+
get: (id: Service.Tag.Get.ID) => Promise<Service.Tag.Get.Result>;
|
|
297
|
+
create: (
|
|
298
|
+
body: Service.Tag.Create.Body,
|
|
299
|
+
) => Promise<Service.Tag.Create.Result>;
|
|
300
|
+
update: (
|
|
301
|
+
id: Service.Tag.Update.ID,
|
|
302
|
+
body: Service.Tag.Update.Body,
|
|
303
|
+
) => Promise<Service.Tag.Update.Result>;
|
|
304
|
+
remove: (id: Service.Tag.Remove.ID) => Promise<Service.Tag.Remove.Result>;
|
|
305
|
+
};
|
|
306
|
+
warehouse: {
|
|
307
|
+
_path: string;
|
|
308
|
+
find: (
|
|
309
|
+
params?: Service.Warehouse.Find.Params | undefined,
|
|
310
|
+
) => Promise<Service.Warehouse.Find.Result>;
|
|
311
|
+
get: (
|
|
312
|
+
id: Service.Warehouse.Get.ID,
|
|
313
|
+
) => Promise<Service.Warehouse.Get.Result>;
|
|
314
|
+
create: (
|
|
315
|
+
body: Service.Warehouse.Create.Body,
|
|
316
|
+
) => Promise<Service.Warehouse.Create.Result>;
|
|
317
|
+
update: (
|
|
318
|
+
id: Service.Warehouse.Update.ID,
|
|
319
|
+
body: Service.Warehouse.Update.Body,
|
|
320
|
+
) => Promise<Service.Warehouse.Update.Result>;
|
|
321
|
+
remove: (
|
|
322
|
+
id: Service.Warehouse.Remove.ID,
|
|
323
|
+
) => Promise<Service.Warehouse.Remove.Result>;
|
|
324
|
+
};
|
|
325
|
+
channel: {
|
|
326
|
+
_path: string;
|
|
327
|
+
find: (
|
|
328
|
+
params?: Service.Channel.Find.Params | undefined,
|
|
329
|
+
) => Promise<Service.Channel.Find.Result>;
|
|
330
|
+
get: (id: Service.Channel.Get.ID) => Promise<Service.Channel.Get.Result>;
|
|
331
|
+
create: (
|
|
332
|
+
body: Service.Channel.Create.Body,
|
|
333
|
+
) => Promise<Service.Channel.Create.Result>;
|
|
334
|
+
update: (
|
|
335
|
+
id: Service.Channel.Update.ID,
|
|
336
|
+
body: Service.Channel.Update.Body,
|
|
337
|
+
) => Promise<Service.Channel.Update.Result>;
|
|
338
|
+
remove: (
|
|
339
|
+
id: Service.Channel.Remove.ID,
|
|
340
|
+
) => Promise<Service.Channel.Remove.Result>;
|
|
341
|
+
};
|
|
342
|
+
paymentTerm: {
|
|
343
|
+
_path: string;
|
|
344
|
+
find: (
|
|
345
|
+
params?: Service.PaymentTerm.Find.Params | undefined,
|
|
346
|
+
) => Promise<Service.PaymentTerm.Find.Result>;
|
|
347
|
+
get: (
|
|
348
|
+
id: Service.PaymentTerm.Get.ID,
|
|
349
|
+
) => Promise<Service.PaymentTerm.Get.Result>;
|
|
350
|
+
create: (
|
|
351
|
+
body: Service.PaymentTerm.Create.Body,
|
|
352
|
+
) => Promise<Service.PaymentTerm.Create.Result>;
|
|
353
|
+
update: (
|
|
354
|
+
id: Service.PaymentTerm.Update.ID,
|
|
355
|
+
body: Service.PaymentTerm.Update.Body,
|
|
356
|
+
) => Promise<Service.PaymentTerm.Update.Result>;
|
|
357
|
+
remove: (
|
|
358
|
+
id: Service.PaymentTerm.Remove.ID,
|
|
359
|
+
) => Promise<Service.PaymentTerm.Remove.Result>;
|
|
360
|
+
};
|
|
361
|
+
bank: {
|
|
362
|
+
_path: string;
|
|
363
|
+
find: (
|
|
364
|
+
params?: Service.Bank.Find.Params | undefined,
|
|
365
|
+
) => Promise<Service.Bank.Find.Result>;
|
|
366
|
+
get: (id: Service.Bank.Get.ID) => Promise<Service.Bank.Get.Result>;
|
|
367
|
+
create: (
|
|
368
|
+
body: Service.Bank.Create.Body,
|
|
369
|
+
) => Promise<Service.Bank.Create.Result>;
|
|
370
|
+
update: (
|
|
371
|
+
id: Service.Bank.Update.ID,
|
|
372
|
+
body: Service.Bank.Update.Body,
|
|
373
|
+
) => Promise<Service.Bank.Update.Result>;
|
|
374
|
+
};
|
|
375
|
+
bank_list: {
|
|
376
|
+
_path: string;
|
|
377
|
+
find: (
|
|
378
|
+
params?: Service.BankList.Find.Params | undefined,
|
|
379
|
+
) => Promise<Service.BankList.Find.Result>;
|
|
380
|
+
get: (id: Service.BankList.Get.ID) => Promise<Service.BankList.Get.Result>;
|
|
381
|
+
create: (
|
|
382
|
+
body: Service.BankList.Create.Body,
|
|
383
|
+
) => Promise<Service.BankList.Create.Result>;
|
|
384
|
+
update: (
|
|
385
|
+
id: Service.BankList.Update.ID,
|
|
386
|
+
body: Service.BankList.Update.Body,
|
|
387
|
+
) => Promise<Service.BankList.Update.Result>;
|
|
388
|
+
};
|
|
389
|
+
customStatus: {
|
|
390
|
+
_path: string;
|
|
391
|
+
find: (
|
|
392
|
+
params?: Service.CustomStatus.Find.Params | undefined,
|
|
393
|
+
) => Promise<Service.CustomStatus.Find.Result>;
|
|
394
|
+
get: (
|
|
395
|
+
id: Service.CustomStatus.Get.ID,
|
|
396
|
+
) => Promise<Service.CustomStatus.Get.Result>;
|
|
397
|
+
create: (
|
|
398
|
+
body: Service.CustomStatus.Create.Body,
|
|
399
|
+
) => Promise<Service.CustomStatus.Create.Result>;
|
|
400
|
+
update: (
|
|
401
|
+
id: Service.CustomStatus.Update.ID,
|
|
402
|
+
body: Service.CustomStatus.Update.Body,
|
|
403
|
+
) => Promise<Service.CustomStatus.Update.Result>;
|
|
404
|
+
remove: (
|
|
405
|
+
id: Service.CustomStatus.Remove.ID,
|
|
406
|
+
) => Promise<Service.CustomStatus.Remove.Result>;
|
|
407
|
+
};
|
|
408
|
+
workorder: {
|
|
409
|
+
_path: string;
|
|
410
|
+
find: (
|
|
411
|
+
params?: Service.Workorder.Find.Params | undefined,
|
|
412
|
+
) => Promise<Service.Workorder.Find.Result>;
|
|
413
|
+
get: (
|
|
414
|
+
id: Service.Workorder.Get.ID,
|
|
415
|
+
params?: Service.Workorder.Get.Params | undefined,
|
|
416
|
+
) => Promise<Service.Workorder.Get.Result>;
|
|
417
|
+
};
|
|
418
|
+
quickConvertToPdf: {
|
|
419
|
+
_path: string;
|
|
420
|
+
find: (
|
|
421
|
+
params?: Service.QuickConvertToPdf.Find.Params | undefined,
|
|
422
|
+
) => Promise<Service.QuickConvertToPdf.Find.Result>;
|
|
423
|
+
get: (
|
|
424
|
+
id: Service.QuickConvertToPdf.Get.ID,
|
|
425
|
+
params?: Service.QuickConvertToPdf.Get.Params | undefined,
|
|
426
|
+
) => Promise<Service.QuickConvertToPdf.Get.Result>;
|
|
427
|
+
create: (
|
|
428
|
+
body: Service.QuickConvertToPdf.Create.Body,
|
|
429
|
+
) => Promise<Service.QuickConvertToPdf.Create.Result>;
|
|
430
|
+
remove: (
|
|
431
|
+
id: Service.QuickConvertToPdf.Remove.ID,
|
|
432
|
+
) => Promise<Service.QuickConvertToPdf.Remove.Result>;
|
|
433
|
+
};
|
|
434
|
+
invoice: {
|
|
435
|
+
_path: string;
|
|
436
|
+
find: (
|
|
437
|
+
params?: Service.FullInvoice.Find.Params | undefined,
|
|
438
|
+
) => Promise<Service.FullInvoice.Find.Result>;
|
|
439
|
+
get: (
|
|
440
|
+
id: Service.FullInvoice.Get.ID,
|
|
441
|
+
params?: Service.FullInvoice.Get.Params | undefined,
|
|
442
|
+
) => Promise<Service.FullInvoice.Get.Result>;
|
|
443
|
+
create: (
|
|
444
|
+
body: Service.FullInvoice.Create.Body,
|
|
445
|
+
) => Promise<Service.FullInvoice.Create.Result>;
|
|
446
|
+
update: (
|
|
447
|
+
id: Service.FullInvoice.Update.ID,
|
|
448
|
+
body: Service.FullInvoice.Update.Body,
|
|
449
|
+
) => Promise<Service.FullInvoice.Update.Result>;
|
|
450
|
+
};
|
|
451
|
+
proforma: {
|
|
452
|
+
_path: string;
|
|
453
|
+
find: (
|
|
454
|
+
params?: Service.Proforma.Find.Params | undefined,
|
|
455
|
+
) => Promise<Service.Proforma.Find.Result>;
|
|
456
|
+
get: (
|
|
457
|
+
id: Service.Proforma.Get.ID,
|
|
458
|
+
params?: Service.Proforma.Get.Params | undefined,
|
|
459
|
+
) => Promise<Service.Proforma.Get.Result>;
|
|
460
|
+
create: (
|
|
461
|
+
body: Service.Proforma.Create.Body,
|
|
462
|
+
) => Promise<Service.Proforma.Create.Result>;
|
|
463
|
+
update: (
|
|
464
|
+
id: Service.Proforma.Update.ID,
|
|
465
|
+
body: Service.Proforma.Update.Body,
|
|
466
|
+
) => Promise<Service.Proforma.Update.Result>;
|
|
467
|
+
};
|
|
468
|
+
payment: {
|
|
469
|
+
_path: string;
|
|
470
|
+
find: (
|
|
471
|
+
params?: Service.Payment.Find.Params | undefined,
|
|
472
|
+
) => Promise<Service.Payment.Find.Result>;
|
|
473
|
+
get: (
|
|
474
|
+
id: Service.Payment.Get.ID,
|
|
475
|
+
params?: Service.Payment.Get.Params | undefined,
|
|
476
|
+
) => Promise<Service.Payment.Get.Result>;
|
|
477
|
+
create: (
|
|
478
|
+
body: Service.Payment.Create.Body,
|
|
479
|
+
) => Promise<Service.Payment.Create.Result>;
|
|
480
|
+
update: (
|
|
481
|
+
id: Service.Payment.Update.ID,
|
|
482
|
+
body: Service.Payment.Update.Body,
|
|
483
|
+
) => Promise<Service.Payment.Update.Result>;
|
|
484
|
+
};
|
|
485
|
+
refund: {
|
|
486
|
+
_path: string;
|
|
487
|
+
find: (
|
|
488
|
+
params?: Service.Refund.Find.Params | undefined,
|
|
489
|
+
) => Promise<Service.Refund.Find.Result>;
|
|
490
|
+
get: (
|
|
491
|
+
id: Service.Refund.Get.ID,
|
|
492
|
+
params?: Service.Refund.Get.Params | undefined,
|
|
493
|
+
) => Promise<Service.Refund.Get.Result>;
|
|
494
|
+
create: (
|
|
495
|
+
body: Service.Refund.Create.Body,
|
|
496
|
+
) => Promise<Service.Refund.Create.Result>;
|
|
497
|
+
update: (
|
|
498
|
+
id: Service.Refund.Update.ID,
|
|
499
|
+
body: Service.Refund.Update.Body,
|
|
500
|
+
) => Promise<Service.Refund.Update.Result>;
|
|
501
|
+
};
|
|
502
|
+
transfer: {
|
|
503
|
+
_path: string;
|
|
504
|
+
find: (
|
|
505
|
+
params?: Service.Transfer.Find.Params | undefined,
|
|
506
|
+
) => Promise<Service.Transfer.Find.Result>;
|
|
507
|
+
get: (
|
|
508
|
+
id: Service.Transfer.Get.ID,
|
|
509
|
+
params?: Service.Transfer.Get.Params | undefined,
|
|
510
|
+
) => Promise<Service.Transfer.Get.Result>;
|
|
511
|
+
create: (
|
|
512
|
+
body: Service.Transfer.Create.Body,
|
|
513
|
+
) => Promise<Service.Transfer.Create.Result>;
|
|
514
|
+
update: (
|
|
515
|
+
id: Service.Transfer.Update.ID,
|
|
516
|
+
body: Service.Transfer.Update.Body,
|
|
517
|
+
) => Promise<Service.Transfer.Update.Result>;
|
|
518
|
+
};
|
|
519
|
+
adjustInventory: {
|
|
520
|
+
_path: string;
|
|
521
|
+
find: (
|
|
522
|
+
params?: Service.AdjustInventory.Find.Params | undefined,
|
|
523
|
+
) => Promise<Service.AdjustInventory.Find.Result>;
|
|
524
|
+
get: (
|
|
525
|
+
id: Service.AdjustInventory.Get.ID,
|
|
526
|
+
params?: Service.AdjustInventory.Get.Params | undefined,
|
|
527
|
+
) => Promise<Service.AdjustInventory.Get.Result>;
|
|
528
|
+
create: (
|
|
529
|
+
body: Service.AdjustInventory.Create.Body,
|
|
530
|
+
) => Promise<Service.AdjustInventory.Create.Result>;
|
|
531
|
+
};
|
|
532
|
+
inventory: {
|
|
533
|
+
_path: string;
|
|
534
|
+
find: (
|
|
535
|
+
params?: Service.Inventory.Find.Params | undefined,
|
|
536
|
+
) => Promise<Service.Inventory.Find.Result>;
|
|
537
|
+
};
|
|
538
|
+
integrationApp: {
|
|
539
|
+
_path: string;
|
|
540
|
+
find: (
|
|
541
|
+
params?: Service.App.Find.Params | undefined,
|
|
542
|
+
) => Promise<Service.App.Find.Result>;
|
|
543
|
+
get: (
|
|
544
|
+
id: Service.App.Get.ID,
|
|
545
|
+
params?: Service.App.Find.Params | undefined,
|
|
546
|
+
) => Promise<Service.App.Get.Result>;
|
|
547
|
+
create: (
|
|
548
|
+
body: Service.App.Create.Body,
|
|
549
|
+
) => Promise<Service.App.Create.Result>;
|
|
550
|
+
update: (
|
|
551
|
+
id: Service.App.Update.ID,
|
|
552
|
+
body: Service.App.Update.Body,
|
|
553
|
+
) => Promise<Service.App.Update.Result>;
|
|
554
|
+
};
|
|
555
|
+
joinActionsWebHook: {
|
|
556
|
+
_path: string;
|
|
557
|
+
update: (
|
|
558
|
+
id: null,
|
|
559
|
+
body: Service.JoinActionsWeHook.Data,
|
|
560
|
+
) => Promise<Service.JoinActionsWeHook.Result>;
|
|
561
|
+
};
|
|
562
|
+
static ActionLogs: {
|
|
563
|
+
new (superThis: Repzo, sync_id: string): {
|
|
564
|
+
_path: string;
|
|
565
|
+
available_app_name: string;
|
|
566
|
+
available_app_id: StringId;
|
|
567
|
+
app_id: StringId;
|
|
568
|
+
action: string;
|
|
569
|
+
status: Service.ActionLogs.Status;
|
|
570
|
+
error?: any;
|
|
571
|
+
start_time: number;
|
|
572
|
+
end_time?: number | undefined;
|
|
573
|
+
total_time?: number | undefined;
|
|
574
|
+
company_namespace?: NameSpaces | undefined;
|
|
575
|
+
body?: any;
|
|
576
|
+
meta?: any;
|
|
577
|
+
message: string;
|
|
578
|
+
details: Service.ActionLogs.Detail[];
|
|
579
|
+
sync_id: string;
|
|
580
|
+
isOld: boolean;
|
|
581
|
+
superThis: Repzo;
|
|
582
|
+
load(sync_id: string): Promise<any>;
|
|
583
|
+
setStatus(status: Service.ActionLogs.Status, error?: any): any;
|
|
584
|
+
setBody(body: any): any;
|
|
585
|
+
setMeta(meta: any): any;
|
|
586
|
+
commit(): Promise<any>;
|
|
587
|
+
addDetail(detail: string, meta?: any): any;
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
static CommandLog: {
|
|
591
|
+
new (
|
|
592
|
+
superThis: Repzo,
|
|
593
|
+
app: Service.App.Schema_with_populated_AvailableApp,
|
|
594
|
+
command: string,
|
|
595
|
+
trigger?: string | undefined,
|
|
596
|
+
): {
|
|
597
|
+
_path: string;
|
|
598
|
+
available_app_name: string;
|
|
599
|
+
available_app_id: StringId;
|
|
600
|
+
app_id: StringId;
|
|
601
|
+
command: string;
|
|
602
|
+
status: Service.CommandLog.Status;
|
|
603
|
+
error?: any;
|
|
604
|
+
start_time: number;
|
|
605
|
+
end_time?: number | undefined;
|
|
606
|
+
total_time?: number | undefined;
|
|
607
|
+
company_namespace: NameSpaces;
|
|
608
|
+
body?: any;
|
|
609
|
+
meta?: any;
|
|
610
|
+
message: string;
|
|
611
|
+
details: Service.CommandLog.Detail[];
|
|
612
|
+
sync_id: string;
|
|
613
|
+
isOld: boolean;
|
|
614
|
+
priority?: number | undefined;
|
|
615
|
+
isPrioritized: boolean;
|
|
616
|
+
retries: number;
|
|
617
|
+
queuedAt?: Date | undefined;
|
|
618
|
+
failedAt?: Date | undefined;
|
|
619
|
+
succeededAt?: Date | undefined;
|
|
620
|
+
skippedAt?: Date | undefined;
|
|
621
|
+
receivedAt?: Date | undefined;
|
|
622
|
+
processedAt?: Date | undefined;
|
|
623
|
+
onGoing: boolean;
|
|
624
|
+
trigger?: string | undefined;
|
|
625
|
+
superThis: Repzo;
|
|
626
|
+
load(
|
|
627
|
+
sync_id?: string | undefined,
|
|
628
|
+
retries?: number | undefined,
|
|
629
|
+
): Promise<any>;
|
|
630
|
+
setStatus(status: Service.CommandLog.Status, error?: any): any;
|
|
631
|
+
setBody(body: any): any;
|
|
632
|
+
setMeta(meta: any): any;
|
|
633
|
+
commit(): Promise<any>;
|
|
634
|
+
addDetail(detail: string, meta?: any): any;
|
|
635
|
+
};
|
|
636
|
+
};
|
|
637
|
+
patchAction: {
|
|
638
|
+
_path: string;
|
|
639
|
+
create: (
|
|
640
|
+
body: Service.PatchAction.Create.Body,
|
|
641
|
+
params?: Service.PatchAction.Create.Params | undefined,
|
|
642
|
+
) => Promise<Service.PatchAction.Create.Result>;
|
|
643
|
+
update: (
|
|
644
|
+
body: Service.PatchAction.Update.Body,
|
|
645
|
+
) => Promise<Service.PatchAction.Update.Result>;
|
|
646
|
+
};
|
|
647
|
+
updateIntegrationMeta: {
|
|
648
|
+
_path: string;
|
|
649
|
+
create: (
|
|
650
|
+
body: Service.UpdateIntegrationMeta.Create.Body,
|
|
651
|
+
params?: Service.UpdateIntegrationMeta.Create.Params | undefined,
|
|
652
|
+
) => Promise<Service.UpdateIntegrationMeta.Create.Result>;
|
|
653
|
+
};
|
|
328
654
|
}
|