repzo 1.0.4 → 1.0.7

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 CHANGED
@@ -1,19 +1,21 @@
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 @maramalshen
11
- - update Product schema with populatedKeys @maramalshen
12
-
13
- ### Changed
14
-
15
- ### Fixed
16
-
17
- ### Removed
18
-
19
- ## [unreleased (date)](path)
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
+ - add ActionLogs, CommandLog, ReturnReason @maramalshen
13
+ - add IntegrationApp @maramalshen
14
+
15
+ ### Changed
16
+
17
+ ### Fixed
18
+
19
+ ### Removed
20
+
21
+ ## [unreleased (date)](path)
package/lib/index.d.ts ADDED
@@ -0,0 +1,580 @@
1
+ import {
2
+ Data,
3
+ Service,
4
+ Options,
5
+ Headers,
6
+ StringId,
7
+ NameSpaces,
8
+ } from "./types/index";
9
+ export default class Repzo {
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
+ customStatus: {
376
+ _path: string;
377
+ find: (
378
+ params?: Service.CustomStatus.Find.Params | undefined
379
+ ) => Promise<Service.CustomStatus.Find.Result>;
380
+ get: (
381
+ id: Service.CustomStatus.Get.ID
382
+ ) => Promise<Service.CustomStatus.Get.Result>;
383
+ create: (
384
+ body: Service.CustomStatus.Create.Body
385
+ ) => Promise<Service.CustomStatus.Create.Result>;
386
+ update: (
387
+ id: Service.CustomStatus.Update.ID,
388
+ body: Service.CustomStatus.Update.Body
389
+ ) => Promise<Service.CustomStatus.Update.Result>;
390
+ remove: (
391
+ id: Service.CustomStatus.Remove.ID
392
+ ) => Promise<Service.CustomStatus.Remove.Result>;
393
+ };
394
+ invoice: {
395
+ _path: string;
396
+ find: (
397
+ params?: Service.FullInvoice.Find.Params | undefined
398
+ ) => Promise<Service.FullInvoice.Find.Result>;
399
+ get: (
400
+ id: Service.FullInvoice.Get.ID,
401
+ params?: Service.FullInvoice.Get.Params | undefined
402
+ ) => Promise<Service.FullInvoice.Get.Result>;
403
+ create: (
404
+ body: Service.FullInvoice.Create.Body
405
+ ) => Promise<Service.FullInvoice.Create.Result>;
406
+ update: (
407
+ id: Service.FullInvoice.Update.ID,
408
+ body: Service.FullInvoice.Update.Body
409
+ ) => Promise<Service.FullInvoice.Update.Result>;
410
+ };
411
+ proforma: {
412
+ _path: string;
413
+ find: (
414
+ params?: Service.Proforma.Find.Params | undefined
415
+ ) => Promise<Service.Proforma.Find.Result>;
416
+ get: (
417
+ id: Service.Proforma.Get.ID,
418
+ params?: Service.Proforma.Get.Params | undefined
419
+ ) => Promise<Service.Proforma.Get.Result>;
420
+ create: (
421
+ body: Service.Proforma.Create.Body
422
+ ) => Promise<Service.Proforma.Create.Result>;
423
+ update: (
424
+ id: Service.Proforma.Update.ID,
425
+ body: Service.Proforma.Update.Body
426
+ ) => Promise<Service.Proforma.Update.Result>;
427
+ };
428
+ payment: {
429
+ _path: string;
430
+ find: (
431
+ params?: Service.Payment.Find.Params | undefined
432
+ ) => Promise<Service.Payment.Find.Result>;
433
+ get: (
434
+ id: Service.Payment.Get.ID,
435
+ params?: Service.Payment.Get.Params | undefined
436
+ ) => Promise<Service.Payment.Get.Result>;
437
+ create: (
438
+ body: Service.Payment.Create.Body
439
+ ) => Promise<Service.Payment.Create.Result>;
440
+ update: (
441
+ id: Service.Payment.Update.ID,
442
+ body: Service.Payment.Update.Body
443
+ ) => Promise<Service.Payment.Update.Result>;
444
+ };
445
+ transfer: {
446
+ _path: string;
447
+ find: (
448
+ params?: Service.Transfer.Find.Params | undefined
449
+ ) => Promise<Service.Transfer.Find.Result>;
450
+ get: (
451
+ id: Service.Transfer.Get.ID,
452
+ params?: Service.Transfer.Get.Params | undefined
453
+ ) => Promise<Service.Transfer.Get.Result>;
454
+ create: (
455
+ body: Service.Transfer.Create.Body
456
+ ) => Promise<Service.Transfer.Create.Result>;
457
+ update: (
458
+ id: Service.Transfer.Update.ID,
459
+ body: Service.Transfer.Update.Body
460
+ ) => Promise<Service.Transfer.Update.Result>;
461
+ };
462
+ adjustInventory: {
463
+ _path: string;
464
+ find: (
465
+ params?: Service.AdjustAccount.Find.Params | undefined
466
+ ) => Promise<Service.AdjustAccount.Find.Result>;
467
+ get: (
468
+ id: Service.AdjustAccount.Get.ID,
469
+ params?: Service.AdjustAccount.Get.Params | undefined
470
+ ) => Promise<Service.AdjustAccount.Get.Result>;
471
+ create: (
472
+ body: Service.AdjustAccount.Create.Body
473
+ ) => Promise<Service.AdjustAccount.Create.Result>;
474
+ };
475
+ inventory: {
476
+ _path: string;
477
+ find: (
478
+ params?: Service.Inventory.Find.Params | undefined
479
+ ) => Promise<Service.Inventory.Find.Result>;
480
+ };
481
+ integrationApp: {
482
+ _path: string;
483
+ find: (
484
+ params?: Service.App.Find.Params | undefined
485
+ ) => Promise<Service.App.Find.Result>;
486
+ get: (
487
+ id: Service.App.Get.ID,
488
+ params?: Service.App.Find.Params | undefined
489
+ ) => Promise<Service.App.Get.Result>;
490
+ create: (
491
+ body: Service.App.Create.Body
492
+ ) => Promise<Service.App.Create.Result>;
493
+ update: (
494
+ id: Service.App.Update.ID,
495
+ body: Service.App.Update.Body
496
+ ) => Promise<Service.App.Update.Result>;
497
+ };
498
+ joinActionsWebHook: {
499
+ _path: string;
500
+ update: (
501
+ id: null,
502
+ body: Service.JoinActionsWeHook.Data
503
+ ) => Promise<Service.JoinActionsWeHook.Result>;
504
+ };
505
+ static ActionLogs: {
506
+ new (superThis: Repzo, sync_id: string): {
507
+ _path: string;
508
+ available_app_name: string;
509
+ available_app_id: StringId;
510
+ app_id: StringId;
511
+ action: string;
512
+ status: Service.ActionLogs.Status;
513
+ error?: any;
514
+ start_time: number;
515
+ end_time?: number | undefined;
516
+ total_time?: number | undefined;
517
+ company_namespace?: NameSpaces | undefined;
518
+ body?: any;
519
+ meta?: any;
520
+ message: string;
521
+ details: Service.ActionLogs.Detail[];
522
+ sync_id: string;
523
+ isOld: boolean;
524
+ superThis: Repzo;
525
+ load(sync_id: string): Promise<any>;
526
+ setStatus(status: Service.ActionLogs.Status, error?: any): Promise<any>;
527
+ setBody(body: any): any;
528
+ setMeta(meta: any): any;
529
+ commit(): Promise<any>;
530
+ addDetail(detail: string, meta: any): any;
531
+ };
532
+ };
533
+ static CommandLog: {
534
+ new (
535
+ superThis: Repzo,
536
+ app: Service.App.Schema_with_populated_AvailableApp,
537
+ command: string,
538
+ trigger?: string | undefined
539
+ ): {
540
+ _path: string;
541
+ available_app_name: string;
542
+ available_app_id: StringId;
543
+ app_id: StringId;
544
+ command: string;
545
+ status: Service.CommandLog.Status;
546
+ error?: any;
547
+ start_time: number;
548
+ end_time?: number | undefined;
549
+ total_time?: number | undefined;
550
+ company_namespace: NameSpaces;
551
+ body?: any;
552
+ meta?: any;
553
+ message: string;
554
+ details: Service.CommandLog.Detail[];
555
+ sync_id: string;
556
+ isOld: boolean;
557
+ priority?: number | undefined;
558
+ isPrioritized: boolean;
559
+ retries: number;
560
+ queuedAt?: Date | undefined;
561
+ failedAt?: Date | undefined;
562
+ succeededAt?: Date | undefined;
563
+ skippedAt?: Date | undefined;
564
+ receivedAt?: Date | undefined;
565
+ processedAt?: Date | undefined;
566
+ onGoing: boolean;
567
+ trigger?: string | undefined;
568
+ superThis: Repzo;
569
+ load(
570
+ sync_id?: string | undefined,
571
+ retries?: number | undefined
572
+ ): Promise<any>;
573
+ setStatus(status: Service.CommandLog.Status, error?: any): any;
574
+ setBody(body: any): any;
575
+ setMeta(meta: any): any;
576
+ commit(): Promise<any>;
577
+ addDetail(detail: string, meta?: any): any;
578
+ };
579
+ };
580
+ }