repzo 1.0.100 → 1.0.102

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 CHANGED
@@ -91,11 +91,11 @@ export default class Repzo {
91
91
  client: {
92
92
  _path: "client";
93
93
  find: (
94
- params?: Service.Client.Find.Params | undefined
94
+ params?: Service.Client.Find.Params
95
95
  ) => Promise<Service.Client.Find.Result>;
96
96
  get: (
97
97
  id: Service.Client.Get.ID,
98
- params?: Service.Client.Get.Params | undefined
98
+ params?: Service.Client.Get.Params
99
99
  ) => Promise<Service.Client.Get.Result>;
100
100
  create: (
101
101
  body: Service.Client.Create.Body
@@ -111,11 +111,11 @@ export default class Repzo {
111
111
  product: {
112
112
  _path: "product";
113
113
  find: (
114
- params?: Service.Product.Find.Params | undefined
114
+ params?: Service.Product.Find.Params
115
115
  ) => Promise<Service.Product.Find.Result>;
116
116
  get: (
117
117
  id: Service.Product.Get.ID,
118
- params?: Service.Product.Get.Params | undefined
118
+ params?: Service.Product.Get.Params
119
119
  ) => Promise<Service.Product.Get.Result>;
120
120
  create: (
121
121
  body: Service.Product.Create.Body
@@ -131,11 +131,11 @@ export default class Repzo {
131
131
  variant: {
132
132
  _path: "variant";
133
133
  find: (
134
- params?: Service.Variant.Find.Params | undefined
134
+ params?: Service.Variant.Find.Params
135
135
  ) => Promise<Service.Variant.Find.Result>;
136
136
  get: (
137
137
  id: Service.Variant.Get.ID,
138
- params?: Service.Variant.Get.Params | undefined
138
+ params?: Service.Variant.Get.Params
139
139
  ) => Promise<Service.Variant.Get.Result>;
140
140
  create: (
141
141
  body: Service.Variant.Create.Body
@@ -151,7 +151,7 @@ export default class Repzo {
151
151
  category: {
152
152
  _path: "product-category";
153
153
  find: (
154
- params?: Service.Category.Find.Params | undefined
154
+ params?: Service.Category.Find.Params
155
155
  ) => Promise<Service.Category.Find.Result>;
156
156
  get: (id: Service.Category.Get.ID) => Promise<Service.Category.Get.Result>;
157
157
  create: (
@@ -168,11 +168,11 @@ export default class Repzo {
168
168
  sub_category: {
169
169
  _path: "product-sub-category";
170
170
  find: (
171
- params?: Service.SubCategory.Find.Params | undefined
171
+ params?: Service.SubCategory.Find.Params
172
172
  ) => Promise<Service.SubCategory.Find.Result>;
173
173
  get: (
174
174
  id: Service.SubCategory.Get.ID,
175
- params?: Service.SubCategory.Get.Params | undefined
175
+ params?: Service.SubCategory.Get.Params
176
176
  ) => Promise<Service.SubCategory.Get.Result>;
177
177
  create: (
178
178
  body: Service.SubCategory.Create.Body
@@ -188,7 +188,7 @@ export default class Repzo {
188
188
  brand: {
189
189
  _path: "product-brand";
190
190
  find: (
191
- params?: Service.Brand.Find.Params | undefined
191
+ params?: Service.Brand.Find.Params
192
192
  ) => Promise<Service.Brand.Find.Result>;
193
193
  get: (id: Service.Brand.Get.ID) => Promise<Service.Brand.Get.Result>;
194
194
  create: (
@@ -205,7 +205,7 @@ export default class Repzo {
205
205
  product_group: {
206
206
  _path: "product-group";
207
207
  find: (
208
- params?: Service.ProductGroup.Find.Params | undefined
208
+ params?: Service.ProductGroup.Find.Params
209
209
  ) => Promise<Service.ProductGroup.Find.Result>;
210
210
  get: (
211
211
  id: Service.ProductGroup.Get.ID
@@ -224,7 +224,7 @@ export default class Repzo {
224
224
  tax: {
225
225
  _path: "tax";
226
226
  find: (
227
- params?: Service.Tax.Find.Params | undefined
227
+ params?: Service.Tax.Find.Params
228
228
  ) => Promise<Service.Tax.Find.Result>;
229
229
  get: (id: Service.Tax.Get.ID) => Promise<Service.Tax.Get.Result>;
230
230
  create: (
@@ -239,7 +239,7 @@ export default class Repzo {
239
239
  measureunit: {
240
240
  _path: "measureunits";
241
241
  find: (
242
- params?: Service.MeasureUnit.Find.Params | undefined
242
+ params?: Service.MeasureUnit.Find.Params
243
243
  ) => Promise<Service.MeasureUnit.Find.Result>;
244
244
  get: (
245
245
  id: Service.MeasureUnit.Get.ID
@@ -258,7 +258,7 @@ export default class Repzo {
258
258
  measureunitFamily: {
259
259
  _path: "measureunit-family";
260
260
  find: (
261
- params?: Service.MeasureUnitFamily.Find.Params | undefined
261
+ params?: Service.MeasureUnitFamily.Find.Params
262
262
  ) => Promise<Service.MeasureUnitFamily.Find.Result>;
263
263
  get: (
264
264
  id: Service.MeasureUnitFamily.Get.ID
@@ -277,7 +277,7 @@ export default class Repzo {
277
277
  media: {
278
278
  _path: "media";
279
279
  find: (
280
- params?: Service.Media.Find.Params | undefined
280
+ params?: Service.Media.Find.Params
281
281
  ) => Promise<Service.Media.Find.Result>;
282
282
  get: (id: Service.Media.Get.ID) => Promise<Service.Media.Get.Result>;
283
283
  create: (
@@ -294,7 +294,7 @@ export default class Repzo {
294
294
  priceList: {
295
295
  _path: "pricelists";
296
296
  find: (
297
- params?: Service.PriceList.Find.Params | undefined
297
+ params?: Service.PriceList.Find.Params
298
298
  ) => Promise<Service.PriceList.Find.Result>;
299
299
  get: (
300
300
  id: Service.PriceList.Get.ID
@@ -313,7 +313,7 @@ export default class Repzo {
313
313
  priceListItem: {
314
314
  _path: "pricelistsitems";
315
315
  find: (
316
- params?: Service.PriceListItem.Find.Params | undefined
316
+ params?: Service.PriceListItem.Find.Params
317
317
  ) => Promise<Service.PriceListItem.Find.Result>;
318
318
  get: (
319
319
  id: Service.PriceListItem.Get.ID
@@ -332,7 +332,7 @@ export default class Repzo {
332
332
  team: {
333
333
  _path: "teams";
334
334
  find: (
335
- params?: Service.Team.Find.Params | undefined
335
+ params?: Service.Team.Find.Params
336
336
  ) => Promise<Service.Team.Find.Result>;
337
337
  get: (id: Service.Team.Get.ID) => Promise<Service.Team.Get.Result>;
338
338
  create: (
@@ -347,7 +347,7 @@ export default class Repzo {
347
347
  returnReason: {
348
348
  _path: "return-reason";
349
349
  find: (
350
- params?: Service.ReturnReason.Find.Params | undefined
350
+ params?: Service.ReturnReason.Find.Params
351
351
  ) => Promise<Service.ReturnReason.Find.Result>;
352
352
  get: (
353
353
  id: Service.ReturnReason.Get.ID
@@ -366,11 +366,11 @@ export default class Repzo {
366
366
  rep: {
367
367
  _path: "rep";
368
368
  find: (
369
- params?: Service.Rep.Find.Params | undefined
369
+ params?: Service.Rep.Find.Params
370
370
  ) => Promise<Service.Rep.Find.Result>;
371
371
  get: (
372
372
  id: Service.Rep.Get.ID,
373
- params?: Service.Client.Get.Params | undefined
373
+ params?: Service.Client.Get.Params
374
374
  ) => Promise<Service.Rep.Get.Result>;
375
375
  create: (
376
376
  body: Service.Rep.Create.Body
@@ -384,7 +384,7 @@ export default class Repzo {
384
384
  tag: {
385
385
  _path: "tag";
386
386
  find: (
387
- params?: Service.Tag.Find.Params | undefined
387
+ params?: Service.Tag.Find.Params
388
388
  ) => Promise<Service.Tag.Find.Result>;
389
389
  get: (id: Service.Tag.Get.ID) => Promise<Service.Tag.Get.Result>;
390
390
  create: (
@@ -399,7 +399,7 @@ export default class Repzo {
399
399
  warehouse: {
400
400
  _path: "warehouse";
401
401
  find: (
402
- params?: Service.Warehouse.Find.Params | undefined
402
+ params?: Service.Warehouse.Find.Params
403
403
  ) => Promise<Service.Warehouse.Find.Result>;
404
404
  get: (
405
405
  id: Service.Warehouse.Get.ID
@@ -418,7 +418,7 @@ export default class Repzo {
418
418
  route: {
419
419
  _path: "route";
420
420
  find: (
421
- params?: Service.Route.Find.Params | undefined
421
+ params?: Service.Route.Find.Params
422
422
  ) => Promise<Service.Route.Find.Result>;
423
423
  get: (id: Service.Route.Get.ID) => Promise<Service.Route.Get.Result>;
424
424
  create: (
@@ -435,7 +435,7 @@ export default class Repzo {
435
435
  productModifiersGroup: {
436
436
  _path: "product-modifiers-group";
437
437
  find: (
438
- params?: Service.ProductModifiersGroup.Find.Params | undefined
438
+ params?: Service.ProductModifiersGroup.Find.Params
439
439
  ) => Promise<Service.ProductModifiersGroup.Find.Result>;
440
440
  get: (
441
441
  id: Service.ProductModifiersGroup.Get.ID
@@ -454,7 +454,7 @@ export default class Repzo {
454
454
  channel: {
455
455
  _path: "client-channel";
456
456
  find: (
457
- params?: Service.Channel.Find.Params | undefined
457
+ params?: Service.Channel.Find.Params
458
458
  ) => Promise<Service.Channel.Find.Result>;
459
459
  get: (id: Service.Channel.Get.ID) => Promise<Service.Channel.Get.Result>;
460
460
  create: (
@@ -471,7 +471,7 @@ export default class Repzo {
471
471
  speciality: {
472
472
  _path: "speciality";
473
473
  find: (
474
- params?: Service.Speciality.Find.Params | undefined
474
+ params?: Service.Speciality.Find.Params
475
475
  ) => Promise<Service.Speciality.Find.Result>;
476
476
  get: (
477
477
  id: Service.Speciality.Get.ID
@@ -490,7 +490,7 @@ export default class Repzo {
490
490
  clientContact: {
491
491
  _path: "client-contact";
492
492
  find: (
493
- params?: Service.ClientContact.Find.Params | undefined
493
+ params?: Service.ClientContact.Find.Params
494
494
  ) => Promise<Service.ClientContact.Find.Result>;
495
495
  get: (
496
496
  id: Service.ClientContact.Get.ID
@@ -509,7 +509,7 @@ export default class Repzo {
509
509
  paymentTerm: {
510
510
  _path: "paymentterms";
511
511
  find: (
512
- params?: Service.PaymentTerm.Find.Params | undefined
512
+ params?: Service.PaymentTerm.Find.Params
513
513
  ) => Promise<Service.PaymentTerm.Find.Result>;
514
514
  get: (
515
515
  id: Service.PaymentTerm.Get.ID
@@ -528,7 +528,7 @@ export default class Repzo {
528
528
  bank: {
529
529
  _path: "banks";
530
530
  find: (
531
- params?: Service.Bank.Find.Params | undefined
531
+ params?: Service.Bank.Find.Params
532
532
  ) => Promise<Service.Bank.Find.Result>;
533
533
  get: (id: Service.Bank.Get.ID) => Promise<Service.Bank.Get.Result>;
534
534
  create: (
@@ -542,7 +542,7 @@ export default class Repzo {
542
542
  bank_list: {
543
543
  _path: "bankslists";
544
544
  find: (
545
- params?: Service.BankList.Find.Params | undefined
545
+ params?: Service.BankList.Find.Params
546
546
  ) => Promise<Service.BankList.Find.Result>;
547
547
  get: (id: Service.BankList.Get.ID) => Promise<Service.BankList.Get.Result>;
548
548
  create: (
@@ -556,7 +556,7 @@ export default class Repzo {
556
556
  customStatus: {
557
557
  _path: "custom-status";
558
558
  find: (
559
- params?: Service.CustomStatus.Find.Params | undefined
559
+ params?: Service.CustomStatus.Find.Params
560
560
  ) => Promise<Service.CustomStatus.Find.Result>;
561
561
  get: (
562
562
  id: Service.CustomStatus.Get.ID
@@ -575,11 +575,11 @@ export default class Repzo {
575
575
  customList: {
576
576
  _path: "custom-list";
577
577
  find: (
578
- params?: Service.CustomList.Find.Params | undefined
578
+ params?: Service.CustomList.Find.Params
579
579
  ) => Promise<Service.CustomList.Find.Result>;
580
580
  get: (
581
581
  id: Service.CustomList.Get.ID,
582
- params?: Service.CustomList.Get.Params | undefined
582
+ params?: Service.CustomList.Get.Params
583
583
  ) => Promise<Service.CustomList.Get.Result>;
584
584
  create: (
585
585
  body: Service.CustomList.Create.Body
@@ -595,11 +595,11 @@ export default class Repzo {
595
595
  customListItem: {
596
596
  _path: "custom-list-item";
597
597
  find: (
598
- params?: Service.CustomListItem.Find.Params | undefined
598
+ params?: Service.CustomListItem.Find.Params
599
599
  ) => Promise<Service.CustomListItem.Find.Result>;
600
600
  get: (
601
601
  id: Service.CustomListItem.Get.ID,
602
- params?: Service.CustomListItem.Get.Params | undefined
602
+ params?: Service.CustomListItem.Get.Params
603
603
  ) => Promise<Service.CustomListItem.Get.Result>;
604
604
  create: (
605
605
  body: Service.CustomListItem.Create.Body
@@ -615,7 +615,7 @@ export default class Repzo {
615
615
  inventoryAdjustmentReason: {
616
616
  _path: "inventory-adjustment-reason";
617
617
  find: (
618
- params?: Service.InventoryAdjustmentReason.Find.Params | undefined
618
+ params?: Service.InventoryAdjustmentReason.Find.Params
619
619
  ) => Promise<Service.InventoryAdjustmentReason.Find.Result>;
620
620
  get: (
621
621
  id: Service.InventoryAdjustmentReason.Get.ID
@@ -634,21 +634,21 @@ export default class Repzo {
634
634
  workorder: {
635
635
  _path: "workorder";
636
636
  find: (
637
- params?: Service.Workorder.Find.Params | undefined
637
+ params?: Service.Workorder.Find.Params
638
638
  ) => Promise<Service.Workorder.Find.Result>;
639
639
  get: (
640
640
  id: Service.Workorder.Get.ID,
641
- params?: Service.Workorder.Get.Params | undefined
641
+ params?: Service.Workorder.Get.Params
642
642
  ) => Promise<Service.Workorder.Get.Result>;
643
643
  };
644
644
  supplier: {
645
645
  _path: "supplier";
646
646
  find: (
647
- params?: Service.Supplier.Find.Params | undefined
647
+ params?: Service.Supplier.Find.Params
648
648
  ) => Promise<Service.Supplier.Find.Result>;
649
649
  get: (
650
650
  id: Service.Supplier.Get.ID,
651
- params?: Service.Supplier.Get.Params | undefined
651
+ params?: Service.Supplier.Get.Params
652
652
  ) => Promise<Service.Supplier.Get.Result>;
653
653
  create: (
654
654
  body: Service.Supplier.Create.Body
@@ -661,11 +661,11 @@ export default class Repzo {
661
661
  quickConvertToPdf: {
662
662
  _path: "quick-convert-to-pdf";
663
663
  find: (
664
- params?: Service.QuickConvertToPdf.Find.Params | undefined
664
+ params?: Service.QuickConvertToPdf.Find.Params
665
665
  ) => Promise<Service.QuickConvertToPdf.Find.Result>;
666
666
  get: (
667
667
  id: Service.QuickConvertToPdf.Get.ID,
668
- params?: Service.QuickConvertToPdf.Get.Params | undefined
668
+ params?: Service.QuickConvertToPdf.Get.Params
669
669
  ) => Promise<Service.QuickConvertToPdf.Get.Result>;
670
670
  create: (
671
671
  body: Service.QuickConvertToPdf.Create.Body
@@ -677,11 +677,11 @@ export default class Repzo {
677
677
  visit: {
678
678
  _path: "visit";
679
679
  find: (
680
- params?: Service.Visit.Find.Params | undefined
680
+ params?: Service.Visit.Find.Params
681
681
  ) => Promise<Service.Visit.Find.Result>;
682
682
  get: (
683
683
  id: Service.Visit.Get.ID,
684
- params?: Service.Visit.Get.Params | undefined
684
+ params?: Service.Visit.Get.Params
685
685
  ) => Promise<Service.Visit.Get.Result>;
686
686
  create: (
687
687
  body: Service.Visit.Create.Body
@@ -694,11 +694,11 @@ export default class Repzo {
694
694
  invoice: {
695
695
  _path: "fullinvoices";
696
696
  find: (
697
- params?: Service.FullInvoice.Find.Params | undefined
697
+ params?: Service.FullInvoice.Find.Params
698
698
  ) => Promise<Service.FullInvoice.Find.Result>;
699
699
  get: (
700
700
  id: Service.FullInvoice.Get.ID,
701
- params?: Service.FullInvoice.Get.Params | undefined
701
+ params?: Service.FullInvoice.Get.Params
702
702
  ) => Promise<Service.FullInvoice.Get.Result>;
703
703
  create: (
704
704
  body: Service.FullInvoice.Create.Body
@@ -711,11 +711,11 @@ export default class Repzo {
711
711
  proforma: {
712
712
  _path: "proforma";
713
713
  find: (
714
- params?: Service.Proforma.Find.Params | undefined
714
+ params?: Service.Proforma.Find.Params
715
715
  ) => Promise<Service.Proforma.Find.Result>;
716
716
  get: (
717
717
  id: Service.Proforma.Get.ID,
718
- params?: Service.Proforma.Get.Params | undefined
718
+ params?: Service.Proforma.Get.Params
719
719
  ) => Promise<Service.Proforma.Get.Result>;
720
720
  create: (
721
721
  body: Service.Proforma.Create.Body
@@ -728,11 +728,11 @@ export default class Repzo {
728
728
  payment: {
729
729
  _path: "payments";
730
730
  find: (
731
- params?: Service.Payment.Find.Params | undefined
731
+ params?: Service.Payment.Find.Params
732
732
  ) => Promise<Service.Payment.Find.Result>;
733
733
  get: (
734
734
  id: Service.Payment.Get.ID,
735
- params?: Service.Payment.Get.Params | undefined
735
+ params?: Service.Payment.Get.Params
736
736
  ) => Promise<Service.Payment.Get.Result>;
737
737
  create: (
738
738
  body: Service.Payment.Create.Body
@@ -745,11 +745,11 @@ export default class Repzo {
745
745
  refund: {
746
746
  _path: "refund";
747
747
  find: (
748
- params?: Service.Refund.Find.Params | undefined
748
+ params?: Service.Refund.Find.Params
749
749
  ) => Promise<Service.Refund.Find.Result>;
750
750
  get: (
751
751
  id: Service.Refund.Get.ID,
752
- params?: Service.Refund.Get.Params | undefined
752
+ params?: Service.Refund.Get.Params
753
753
  ) => Promise<Service.Refund.Get.Result>;
754
754
  create: (
755
755
  body: Service.Refund.Create.Body
@@ -762,11 +762,11 @@ export default class Repzo {
762
762
  settlement: {
763
763
  _path: "settlement";
764
764
  find: (
765
- params?: Service.Settlement.Find.Params | undefined
765
+ params?: Service.Settlement.Find.Params
766
766
  ) => Promise<Service.Settlement.Find.Result>;
767
767
  get: (
768
768
  id: Service.Settlement.Get.ID,
769
- params?: Service.Settlement.Get.Params | undefined
769
+ params?: Service.Settlement.Get.Params
770
770
  ) => Promise<Service.Settlement.Get.Result>;
771
771
  create: (
772
772
  body: Service.Settlement.Create.Body
@@ -775,11 +775,11 @@ export default class Repzo {
775
775
  check: {
776
776
  _path: "checks";
777
777
  find: (
778
- params?: Service.Check.Find.Params | undefined
778
+ params?: Service.Check.Find.Params
779
779
  ) => Promise<Service.Check.Find.Result>;
780
780
  get: (
781
781
  id: Service.Check.Get.ID,
782
- params?: Service.Check.Get.Params | undefined
782
+ params?: Service.Check.Get.Params
783
783
  ) => Promise<Service.Check.Get.Result>;
784
784
  create: (
785
785
  body: Service.Check.Create.Body
@@ -788,11 +788,11 @@ export default class Repzo {
788
788
  day: {
789
789
  _path: "day";
790
790
  find: (
791
- params?: Service.Day.Find.Params | undefined
791
+ params?: Service.Day.Find.Params
792
792
  ) => Promise<Service.Day.Find.Result>;
793
793
  get: (
794
794
  id: Service.Day.Get.ID,
795
- params?: Service.Day.Get.Params | undefined
795
+ params?: Service.Day.Get.Params
796
796
  ) => Promise<Service.Day.Get.Result>;
797
797
  create: (
798
798
  body: Service.Day.Create.Body
@@ -801,11 +801,11 @@ export default class Repzo {
801
801
  receivingMaterial: {
802
802
  _path: "receiving-material";
803
803
  find: (
804
- params?: Service.ReceivingMaterial.Find.Params | undefined
804
+ params?: Service.ReceivingMaterial.Find.Params
805
805
  ) => Promise<Service.ReceivingMaterial.Find.Result>;
806
806
  get: (
807
807
  id: Service.ReceivingMaterial.Get.ID,
808
- params?: Service.ReceivingMaterial.Get.Params | undefined
808
+ params?: Service.ReceivingMaterial.Get.Params
809
809
  ) => Promise<Service.ReceivingMaterial.Get.Result>;
810
810
  create: (
811
811
  body: Service.ReceivingMaterial.Create.Body
@@ -818,11 +818,11 @@ export default class Repzo {
818
818
  adjustAccount: {
819
819
  _path: "adjust-account";
820
820
  find: (
821
- params?: Service.AdjustAccount.Find.Params | undefined
821
+ params?: Service.AdjustAccount.Find.Params
822
822
  ) => Promise<Service.AdjustAccount.Find.Result>;
823
823
  get: (
824
824
  id: Service.AdjustAccount.Get.ID,
825
- params?: Service.AdjustAccount.Get.Params | undefined
825
+ params?: Service.AdjustAccount.Get.Params
826
826
  ) => Promise<Service.AdjustAccount.Get.Result>;
827
827
  create: (
828
828
  body: Service.AdjustAccount.Create.Body
@@ -831,11 +831,11 @@ export default class Repzo {
831
831
  transfer: {
832
832
  _path: "transfer";
833
833
  find: (
834
- params?: Service.Transfer.Find.Params | undefined
834
+ params?: Service.Transfer.Find.Params
835
835
  ) => Promise<Service.Transfer.Find.Result>;
836
836
  get: (
837
837
  id: Service.Transfer.Get.ID,
838
- params?: Service.Transfer.Get.Params | undefined
838
+ params?: Service.Transfer.Get.Params
839
839
  ) => Promise<Service.Transfer.Get.Result>;
840
840
  create: (
841
841
  body: Service.Transfer.Create.Body
@@ -848,11 +848,11 @@ export default class Repzo {
848
848
  msl: {
849
849
  _path: "msl";
850
850
  find: (
851
- params?: Service.Msl.Find.Params | undefined
851
+ params?: Service.Msl.Find.Params
852
852
  ) => Promise<Service.Msl.Find.Result>;
853
853
  get: (
854
854
  id: Service.Msl.Get.ID,
855
- params?: Service.Msl.Get.Params | undefined
855
+ params?: Service.Msl.Get.Params
856
856
  ) => Promise<Service.Msl.Get.Result>;
857
857
  create: (
858
858
  body: Service.Msl.Create.Body
@@ -866,11 +866,11 @@ export default class Repzo {
866
866
  mslProduct: {
867
867
  _path: "msl-products";
868
868
  find: (
869
- params?: Service.MslProduct.Find.Params | undefined
869
+ params?: Service.MslProduct.Find.Params
870
870
  ) => Promise<Service.MslProduct.Find.Result>;
871
871
  get: (
872
872
  id: Service.MslProduct.Get.ID,
873
- params?: Service.MslProduct.Get.Params | undefined
873
+ params?: Service.MslProduct.Get.Params
874
874
  ) => Promise<Service.MslProduct.Get.Result>;
875
875
  create: (
876
876
  body: Service.MslProduct.Create.Body
@@ -886,11 +886,11 @@ export default class Repzo {
886
886
  mediaStorage: {
887
887
  _path: "media-storage";
888
888
  find: (
889
- params?: Service.MediaStorage.Find.Params | undefined
889
+ params?: Service.MediaStorage.Find.Params
890
890
  ) => Promise<Service.MediaStorage.Find.Result>;
891
891
  get: (
892
892
  id: Service.MediaStorage.Get.ID,
893
- params?: Service.MediaStorage.Get.Params | undefined
893
+ params?: Service.MediaStorage.Get.Params
894
894
  ) => Promise<Service.MediaStorage.Get.Result>;
895
895
  create: (
896
896
  body: Service.MediaStorage.Create.Body
@@ -906,11 +906,11 @@ export default class Repzo {
906
906
  storecheckTemplate: {
907
907
  _path: "storecheck-template";
908
908
  find: (
909
- params?: Service.StorecheckTemplate.Find.Params | undefined
909
+ params?: Service.StorecheckTemplate.Find.Params
910
910
  ) => Promise<Service.StorecheckTemplate.Find.Result>;
911
911
  get: (
912
912
  id: Service.StorecheckTemplate.Get.ID,
913
- params?: Service.StorecheckTemplate.Get.Params | undefined
913
+ params?: Service.StorecheckTemplate.Get.Params
914
914
  ) => Promise<Service.StorecheckTemplate.Get.Result>;
915
915
  create: (
916
916
  body: Service.StorecheckTemplate.Create.Body
@@ -926,11 +926,11 @@ export default class Repzo {
926
926
  activityStorecheck: {
927
927
  _path: "activity-storecheck";
928
928
  find: (
929
- params?: Service.ActivityStorecheck.Find.Params | undefined
929
+ params?: Service.ActivityStorecheck.Find.Params
930
930
  ) => Promise<Service.ActivityStorecheck.Find.Result>;
931
931
  get: (
932
932
  id: Service.ActivityStorecheck.Get.ID,
933
- params?: Service.ActivityStorecheck.Get.Params | undefined
933
+ params?: Service.ActivityStorecheck.Get.Params
934
934
  ) => Promise<Service.ActivityStorecheck.Get.Result>;
935
935
  create: (
936
936
  body: Service.ActivityStorecheck.Create.Body
@@ -943,11 +943,11 @@ export default class Repzo {
943
943
  adjustInventory: {
944
944
  _path: "adjust-inventory";
945
945
  find: (
946
- params?: Service.AdjustInventory.Find.Params | undefined
946
+ params?: Service.AdjustInventory.Find.Params
947
947
  ) => Promise<Service.AdjustInventory.Find.Result>;
948
948
  get: (
949
949
  id: Service.AdjustInventory.Get.ID,
950
- params?: Service.AdjustInventory.Get.Params | undefined
950
+ params?: Service.AdjustInventory.Get.Params
951
951
  ) => Promise<Service.AdjustInventory.Get.Result>;
952
952
  create: (
953
953
  body: Service.AdjustInventory.Create.Body
@@ -956,17 +956,17 @@ export default class Repzo {
956
956
  inventory: {
957
957
  _path: "inventory";
958
958
  find: (
959
- params?: Service.Inventory.Find.Params | undefined
959
+ params?: Service.Inventory.Find.Params
960
960
  ) => Promise<Service.Inventory.Find.Result>;
961
961
  };
962
962
  integrationApp: {
963
963
  _path: "integration-app";
964
964
  find: (
965
- params?: Service.App.Find.Params | undefined
965
+ params?: Service.App.Find.Params
966
966
  ) => Promise<Service.App.Find.Result>;
967
967
  get: (
968
968
  id: Service.App.Get.ID,
969
- params?: Service.App.Find.Params | undefined
969
+ params?: Service.App.Find.Params
970
970
  ) => Promise<Service.App.Get.Result>;
971
971
  create: (
972
972
  body: Service.App.Create.Body
@@ -1016,7 +1016,7 @@ export default class Repzo {
1016
1016
  superThis: Repzo,
1017
1017
  app: Service.App.Schema_with_populated_AvailableApp,
1018
1018
  command: string,
1019
- trigger?: string | undefined
1019
+ trigger?: string
1020
1020
  ): {
1021
1021
  _path: string;
1022
1022
  available_app_name: string;
@@ -1059,10 +1059,7 @@ export default class Repzo {
1059
1059
  onGoing: boolean;
1060
1060
  trigger?: string | undefined;
1061
1061
  superThis: Repzo;
1062
- load(
1063
- sync_id?: string | undefined,
1064
- retries?: number | undefined
1065
- ): Promise<any>;
1062
+ load(sync_id?: string, retries?: number): Promise<any>;
1066
1063
  setStatus(status: Service.CommandLog.Status, error?: any): any;
1067
1064
  setBody(body: any): any;
1068
1065
  setMeta(meta: any): any;
@@ -1074,7 +1071,7 @@ export default class Repzo {
1074
1071
  _path: "patch-action";
1075
1072
  create: (
1076
1073
  body: Service.PatchAction.Create.Body,
1077
- params?: Service.PatchAction.Create.Params | undefined
1074
+ params?: Service.PatchAction.Create.Params
1078
1075
  ) => Promise<Service.PatchAction.Create.Result>;
1079
1076
  update: (
1080
1077
  body: Service.PatchAction.Update.Body
@@ -1084,13 +1081,13 @@ export default class Repzo {
1084
1081
  _path: "update-integration-meta";
1085
1082
  create: (
1086
1083
  body: Service.UpdateIntegrationMeta.Create.Body,
1087
- params?: Service.UpdateIntegrationMeta.Create.Params | undefined
1084
+ params?: Service.UpdateIntegrationMeta.Create.Params
1088
1085
  ) => Promise<Service.UpdateIntegrationMeta.Create.Result>;
1089
1086
  };
1090
1087
  assetPartType: {
1091
1088
  _path: "asset-part-type";
1092
1089
  find: (
1093
- params?: Service.AssetPartType.Find.Params | undefined
1090
+ params?: Service.AssetPartType.Find.Params
1094
1091
  ) => Promise<Service.AssetPartType.Find.Result>;
1095
1092
  get: (
1096
1093
  id: Service.AssetPartType.Get.ID
@@ -1109,11 +1106,11 @@ export default class Repzo {
1109
1106
  assetPart: {
1110
1107
  _path: "asset-part";
1111
1108
  find: (
1112
- params?: Service.AssetPart.Find.Params | undefined
1109
+ params?: Service.AssetPart.Find.Params
1113
1110
  ) => Promise<Service.AssetPart.Find.Result>;
1114
1111
  get: (
1115
1112
  id: Service.AssetPart.Get.ID,
1116
- params?: Service.AssetPart.Get.Params | undefined
1113
+ params?: Service.AssetPart.Get.Params
1117
1114
  ) => Promise<Service.AssetPart.Get.Result>;
1118
1115
  create: (
1119
1116
  body: Service.AssetPart.Create.Body
@@ -1129,11 +1126,11 @@ export default class Repzo {
1129
1126
  assetPartUnit: {
1130
1127
  _path: "asset-part-unit";
1131
1128
  find: (
1132
- params?: Service.AssetPartUnit.Find.Params | undefined
1129
+ params?: Service.AssetPartUnit.Find.Params
1133
1130
  ) => Promise<Service.AssetPartUnit.Find.Result>;
1134
1131
  get: (
1135
1132
  id: Service.AssetPartUnit.Get.ID,
1136
- params?: Service.AssetPartUnit.Get.Params | undefined
1133
+ params?: Service.AssetPartUnit.Get.Params
1137
1134
  ) => Promise<Service.AssetPartUnit.Get.Result>;
1138
1135
  update: (
1139
1136
  id: Service.AssetPartUnit.Update.ID,
@@ -1143,11 +1140,11 @@ export default class Repzo {
1143
1140
  assetPartReceival: {
1144
1141
  _path: "asset-part-receival";
1145
1142
  find: (
1146
- params?: Service.AssetPartReceival.Find.Params | undefined
1143
+ params?: Service.AssetPartReceival.Find.Params
1147
1144
  ) => Promise<Service.AssetPartReceival.Find.Result>;
1148
1145
  get: (
1149
1146
  id: Service.AssetPartReceival.Get.ID,
1150
- params?: Service.AssetPartReceival.Get.Params | undefined
1147
+ params?: Service.AssetPartReceival.Get.Params
1151
1148
  ) => Promise<Service.AssetPartReceival.Get.Result>;
1152
1149
  create: (
1153
1150
  body: Service.AssetPartReceival.Create.Body
@@ -1164,11 +1161,11 @@ export default class Repzo {
1164
1161
  assetPartTransfer: {
1165
1162
  _path: "asset-part-transfer";
1166
1163
  find: (
1167
- params?: Service.AssetPartTransfer.Find.Params | undefined
1164
+ params?: Service.AssetPartTransfer.Find.Params
1168
1165
  ) => Promise<Service.AssetPartTransfer.Find.Result>;
1169
1166
  get: (
1170
1167
  id: Service.AssetPartTransfer.Get.ID,
1171
- params?: Service.AssetPartTransfer.Get.Params | undefined
1168
+ params?: Service.AssetPartTransfer.Get.Params
1172
1169
  ) => Promise<Service.AssetPartTransfer.Get.Result>;
1173
1170
  create: (
1174
1171
  body: Service.AssetPartTransfer.Create.Body
@@ -1185,11 +1182,11 @@ export default class Repzo {
1185
1182
  returnAssetPartUnit: {
1186
1183
  _path: "return-asset-part-unit";
1187
1184
  find: (
1188
- params?: Service.ReturnAssetPartUnit.Find.Params | undefined
1185
+ params?: Service.ReturnAssetPartUnit.Find.Params
1189
1186
  ) => Promise<Service.ReturnAssetPartUnit.Find.Result>;
1190
1187
  get: (
1191
1188
  id: Service.ReturnAssetPartUnit.Get.ID,
1192
- params?: Service.ReturnAssetPartUnit.Get.Params | undefined
1189
+ params?: Service.ReturnAssetPartUnit.Get.Params
1193
1190
  ) => Promise<Service.ReturnAssetPartUnit.Get.Result>;
1194
1191
  create: (
1195
1192
  body: Service.ReturnAssetPartUnit.Create.Body
@@ -1206,11 +1203,11 @@ export default class Repzo {
1206
1203
  storeAssetPartUnit: {
1207
1204
  _path: "store-asset-part-unit";
1208
1205
  find: (
1209
- params?: Service.StoreAssetPartUnit.Find.Params | undefined
1206
+ params?: Service.StoreAssetPartUnit.Find.Params
1210
1207
  ) => Promise<Service.StoreAssetPartUnit.Find.Result>;
1211
1208
  get: (
1212
1209
  id: Service.StoreAssetPartUnit.Get.ID,
1213
- params?: Service.StoreAssetPartUnit.Get.Params | undefined
1210
+ params?: Service.StoreAssetPartUnit.Get.Params
1214
1211
  ) => Promise<Service.StoreAssetPartUnit.Get.Result>;
1215
1212
  create: (
1216
1213
  body: Service.StoreAssetPartUnit.Create.Body
@@ -1227,7 +1224,7 @@ export default class Repzo {
1227
1224
  ocrInvoiceJobTemplate: {
1228
1225
  _path: "ocr-invoice-job-template";
1229
1226
  find: (
1230
- params?: Service.OcrInvoiceJobTemplate.Find.Params | undefined
1227
+ params?: Service.OcrInvoiceJobTemplate.Find.Params
1231
1228
  ) => Promise<Service.OcrInvoiceJobTemplate.Find.Result>;
1232
1229
  get: (
1233
1230
  id: Service.OcrInvoiceJobTemplate.Get.ID
@@ -1243,7 +1240,7 @@ export default class Repzo {
1243
1240
  ocrInvoiceJobGroup: {
1244
1241
  _path: "ocr-invoice-job-group";
1245
1242
  find: (
1246
- params?: Service.OcrInvoiceJobGroup.Find.Params | undefined
1243
+ params?: Service.OcrInvoiceJobGroup.Find.Params
1247
1244
  ) => Promise<Service.OcrInvoiceJobGroup.Find.Result>;
1248
1245
  get: (
1249
1246
  id: Service.OcrInvoiceJobGroup.Get.ID
@@ -1255,7 +1252,7 @@ export default class Repzo {
1255
1252
  activityAiSalesOrder: {
1256
1253
  _path: "activity-ai-sales-order";
1257
1254
  find: (
1258
- params?: Service.ActivityAiSalesOrder.Find.Params | undefined
1255
+ params?: Service.ActivityAiSalesOrder.Find.Params
1259
1256
  ) => Promise<Service.ActivityAiSalesOrder.Find.Result>;
1260
1257
  get: (
1261
1258
  id: Service.ActivityAiSalesOrder.Get.ID
@@ -1267,7 +1264,7 @@ export default class Repzo {
1267
1264
  ocrInvoiceJob: {
1268
1265
  _path: "ocr-invoice-job";
1269
1266
  find: (
1270
- params?: Service.OcrInvoiceJob.Find.Params | undefined
1267
+ params?: Service.OcrInvoiceJob.Find.Params
1271
1268
  ) => Promise<Service.OcrInvoiceJob.Find.Result>;
1272
1269
  get: (
1273
1270
  id: Service.OcrInvoiceJob.Get.ID
@@ -1276,7 +1273,7 @@ export default class Repzo {
1276
1273
  ocrInvoiceJobPage: {
1277
1274
  _path: "ocr-invoice-job-page";
1278
1275
  find: (
1279
- params?: Service.OcrInvoiceJobPage.Find.Params | undefined
1276
+ params?: Service.OcrInvoiceJobPage.Find.Params
1280
1277
  ) => Promise<Service.OcrInvoiceJobPage.Find.Result>;
1281
1278
  get: (
1282
1279
  id: Service.OcrInvoiceJobPage.Get.ID
@@ -200,21 +200,21 @@ export interface Build {
200
200
  list: List[];
201
201
  start_date?: number | undefined;
202
202
  }
203
- export declare type Calendar = CalendarWeekly | CalendarWeeklyGroup;
203
+ export type Calendar = CalendarWeekly | CalendarWeeklyGroup;
204
204
  export interface Route {
205
205
  disabled: boolean;
206
206
  list: List[];
207
207
  _id: string;
208
208
  }
209
- export declare type Priority = 0 | 1 | 2 | 3;
210
- export declare type WorkorderStatus =
209
+ export type Priority = 0 | 1 | 2 | 3;
210
+ export type WorkorderStatus =
211
211
  | "open"
212
212
  | "done"
213
213
  | "cancelled"
214
214
  | "inprogress"
215
215
  | "onhold";
216
- export declare type Priority_human = "none" | "low" | "medium" | "high";
217
- export declare type Day =
216
+ export type Priority_human = "none" | "low" | "medium" | "high";
217
+ export type Day =
218
218
  | "Sun"
219
219
  | "Mon"
220
220
  | "Tue"
@@ -223,7 +223,7 @@ export declare type Day =
223
223
  | "Fri"
224
224
  | "Sat"
225
225
  | string;
226
- export declare type FieldType =
226
+ export type FieldType =
227
227
  | "Text"
228
228
  | "String"
229
229
  | "Date"
@@ -269,7 +269,7 @@ export interface CalendarWeeklyGroup {
269
269
  note?: string;
270
270
  _id: string;
271
271
  }
272
- export declare type Model =
272
+ export type Model =
273
273
  | "quickConvertToPdf"
274
274
  | "warehouses"
275
275
  | "transfers"
@@ -294,7 +294,7 @@ export declare type Model =
294
294
  | "activities"
295
295
  | "bigReports"
296
296
  | "admins";
297
- export declare type DocumentTypes =
297
+ export type DocumentTypes =
298
298
  | "form"
299
299
  | "quickConvertToPdf"
300
300
  | "clients"
@@ -338,7 +338,7 @@ export declare type DocumentTypes =
338
338
  | "retailExecutionPreset"
339
339
  | "paymentMethod"
340
340
  | "approvalRequest";
341
- export declare type PrintTypes = "workorder" | "form" | "invoice" | "proforma";
341
+ export type PrintTypes = "workorder" | "form" | "invoice" | "proforma";
342
342
  export interface MediaDoc {
343
343
  _id?: string;
344
344
  media_id: string;
@@ -7418,7 +7418,7 @@ export declare namespace Service {
7418
7418
  to_createdAt?: number;
7419
7419
  from_updatedAt?: number;
7420
7420
  to_updatedAt?: number;
7421
- populatesKeys?: PopulatedKeys[];
7421
+ populatedKeys?: PopulatedKeys[];
7422
7422
  };
7423
7423
  interface Result extends DefaultPaginationResult {
7424
7424
  data: Data[] | PopulatedData[];
@@ -8253,7 +8253,7 @@ export declare namespace Service {
8253
8253
  asset_part_types?: string[] | string;
8254
8254
  assets?: string[] | string;
8255
8255
  asset_units?: string[] | string;
8256
- populatesKeys?: PopulatedKeys[];
8256
+ populatedKeys?: PopulatedKeys[];
8257
8257
  sortBy?: {
8258
8258
  field:
8259
8259
  | "_id"
@@ -8273,7 +8273,7 @@ export declare namespace Service {
8273
8273
  export namespace Get {
8274
8274
  type ID = string;
8275
8275
  type Params = {
8276
- populatesKeys?: PopulatedKeys[];
8276
+ populatedKeys?: PopulatedKeys[];
8277
8277
  [key: string]: any;
8278
8278
  };
8279
8279
  type Result = Data | PopulatedDoc;
@@ -8502,7 +8502,7 @@ export declare namespace Service {
8502
8502
  to_updatedAt?: number;
8503
8503
  from_createdAt?: number;
8504
8504
  to_createdAt?: number;
8505
- populatesKeys?: PopulatedKeys[];
8505
+ populatedKeys?: PopulatedKeys[];
8506
8506
  sortBy?: {
8507
8507
  field: "_id" | "asset_part_index" | "createdAt" | "updatedAt";
8508
8508
  type: "asc" | "desc";
@@ -8525,7 +8525,7 @@ export declare namespace Service {
8525
8525
  export namespace Get {
8526
8526
  type ID = string;
8527
8527
  type Params = {
8528
- populatesKeys?: PopulatedKeys[];
8528
+ populatedKeys?: PopulatedKeys[];
8529
8529
  [key: string]: any;
8530
8530
  };
8531
8531
  type Result = Data | PopulatedDoc;
@@ -8696,7 +8696,7 @@ export declare namespace Service {
8696
8696
  from_updatedAt?: number;
8697
8697
  to_updatedAt?: number;
8698
8698
  workorder?: StringId | StringId[];
8699
- populatesKeys?: PopulatedKeys[];
8699
+ populatedKeys?: PopulatedKeys[];
8700
8700
  sortBy?: {
8701
8701
  field: "_id" | "time" | "createdAt" | "updatedAt";
8702
8702
  type: "asc" | "desc";
@@ -8710,7 +8710,7 @@ export declare namespace Service {
8710
8710
  export namespace Get {
8711
8711
  type ID = string;
8712
8712
  type Params = {
8713
- populatesKeys?: PopulatedKeys[];
8713
+ populatedKeys?: PopulatedKeys[];
8714
8714
  [key: string]: any;
8715
8715
  };
8716
8716
  type Result = Data | PopulatedDoc;
@@ -8989,7 +8989,7 @@ export declare namespace Service {
8989
8989
  to_createdAt?: number;
8990
8990
  from_updatedAt?: number;
8991
8991
  to_updatedAt?: number;
8992
- populatesKeys?: PopulatedKeys[];
8992
+ populatedKeys?: PopulatedKeys[];
8993
8993
  sortBy?: {
8994
8994
  field: "_id" | "time" | "createdAt" | "updatedAt";
8995
8995
  type: "asc" | "desc";
@@ -9005,7 +9005,7 @@ export declare namespace Service {
9005
9005
  type Params = {
9006
9006
  withCycle?: boolean;
9007
9007
  validityCheck?: boolean;
9008
- populatesKeys?: PopulatedKeys[];
9008
+ populatedKeys?: PopulatedKeys[];
9009
9009
  [key: string]: any;
9010
9010
  };
9011
9011
  type Result = (Data | PopulatedDoc) & {
@@ -9282,7 +9282,7 @@ export declare namespace Service {
9282
9282
  from_updatedAt?: number;
9283
9283
  to_updatedAt?: number;
9284
9284
  workorder?: StringId | StringId[];
9285
- populatesKeys?: PopulatedKeys[];
9285
+ populatedKeys?: PopulatedKeys[];
9286
9286
  sortBy?: {
9287
9287
  field: "_id" | "time" | "createdAt" | "updatedAt";
9288
9288
  type: "asc" | "desc";
@@ -9298,7 +9298,7 @@ export declare namespace Service {
9298
9298
  type Params = {
9299
9299
  withCycle?: boolean;
9300
9300
  validityCheck?: boolean;
9301
- populatesKeys?: PopulatedKeys[];
9301
+ populatedKeys?: PopulatedKeys[];
9302
9302
  [key: string]: any;
9303
9303
  };
9304
9304
  type Result = (Data | PopulatedDoc) & {
@@ -9556,7 +9556,7 @@ export declare namespace Service {
9556
9556
  to_createdAt?: number;
9557
9557
  from_updatedAt?: number;
9558
9558
  to_updatedAt?: number;
9559
- populatesKeys?: PopulatedKeys[];
9559
+ populatedKeys?: PopulatedKeys[];
9560
9560
  sortBy?: {
9561
9561
  field: "_id" | "time" | "createdAt" | "updatedAt";
9562
9562
  type: "asc" | "desc";
@@ -9572,7 +9572,7 @@ export declare namespace Service {
9572
9572
  type Params = {
9573
9573
  withCycle?: boolean;
9574
9574
  validityCheck?: boolean;
9575
- populatesKeys?: PopulatedKeys[];
9575
+ populatedKeys?: PopulatedKeys[];
9576
9576
  [key: string]: any;
9577
9577
  };
9578
9578
  type Result = (Data | PopulatedDoc) & {
@@ -10289,12 +10289,12 @@ export declare namespace Service {
10289
10289
  doc_type?: string[] | string;
10290
10290
  };
10291
10291
  interface Result extends DefaultPaginationResult {
10292
- data: Data[] | PopulatedDoc[];
10292
+ data: Data[] & PopulatedDoc[];
10293
10293
  }
10294
10294
  }
10295
10295
  namespace Get {
10296
10296
  type ID = string;
10297
- type Result = Data | PopulatedDoc;
10297
+ type Result = Data & PopulatedDoc;
10298
10298
  }
10299
10299
  namespace Create {
10300
10300
  type Body = CreateBody;
@@ -10336,7 +10336,7 @@ export declare namespace Service {
10336
10336
  company_namespace: string[];
10337
10337
  disabled: boolean;
10338
10338
  template: StringId;
10339
- template_poplated: OcrInvoiceJobTemplate.Data;
10339
+ template_populated: OcrInvoiceJobTemplate.Data;
10340
10340
  client: StringId;
10341
10341
  client_populated: Pick<Client.ClientSchema, "name" | "_id">;
10342
10342
  doc_type: "pdf" | "image";
@@ -10376,7 +10376,7 @@ export declare namespace Service {
10376
10376
  visit_id?: StringId[] | StringId;
10377
10377
  from_time?: number;
10378
10378
  to_time?: number;
10379
- status: string[];
10379
+ status?: string[];
10380
10380
  rep?: StringId[] | StringId;
10381
10381
  admin?: StringId[] | StringId;
10382
10382
  "creator._id"?: StringId[] | StringId;
@@ -10384,12 +10384,12 @@ export declare namespace Service {
10384
10384
  search?: string;
10385
10385
  };
10386
10386
  interface Result extends DefaultPaginationResult {
10387
- data: Data[] | PopulatedDoc[];
10387
+ data: Data[] & PopulatedDoc[];
10388
10388
  }
10389
10389
  }
10390
10390
  namespace Get {
10391
10391
  type ID = string;
10392
- type Result = Data | PopulatedDoc;
10392
+ type Result = Data & PopulatedDoc;
10393
10393
  }
10394
10394
  namespace Create {
10395
10395
  type Body = CreateBody;
@@ -10539,18 +10539,18 @@ export declare namespace Service {
10539
10539
  type Params = DefaultPaginationQueryParams & {
10540
10540
  _id?: StringId[] | StringId;
10541
10541
  disabled?: boolean;
10542
- template: StringId[] | StringId;
10542
+ template?: StringId[] | StringId;
10543
10543
  client?: StringId[] | StringId;
10544
10544
  doc_type?: string[] | string;
10545
10545
  job_group?: StringId[] | StringId;
10546
10546
  };
10547
10547
  interface Result extends DefaultPaginationResult {
10548
- data: Data[] | PopulatedDoc[];
10548
+ data: Data[] & PopulatedDoc[];
10549
10549
  }
10550
10550
  }
10551
10551
  export namespace Get {
10552
10552
  type ID = string;
10553
- type Result = Data | PopulatedDoc;
10553
+ type Result = Data & PopulatedDoc;
10554
10554
  }
10555
10555
  export {};
10556
10556
  }
@@ -10773,15 +10773,15 @@ export declare namespace Service {
10773
10773
  template?: StringId | StringId[];
10774
10774
  page_number?: number;
10775
10775
  proforma?: StringId | StringId[];
10776
- status: string | string[];
10776
+ status?: string | string[];
10777
10777
  };
10778
10778
  interface Result extends DefaultPaginationResult {
10779
- data: Data[] | PopulatedDoc[];
10779
+ data: Data[] & PopulatedDoc[];
10780
10780
  }
10781
10781
  }
10782
10782
  namespace Get {
10783
10783
  type ID = string;
10784
- type Result = Data | PopulatedDoc;
10784
+ type Result = Data & PopulatedDoc;
10785
10785
  }
10786
10786
  namespace Update {
10787
10787
  type ID = StringId;
@@ -10916,15 +10916,15 @@ export declare namespace Service {
10916
10916
  template?: StringId | StringId[];
10917
10917
  page_number?: number;
10918
10918
  proforma?: StringId | StringId[];
10919
- status: string | string[];
10919
+ status?: string | string[];
10920
10920
  };
10921
10921
  interface Result extends DefaultPaginationResult {
10922
- data: Data[] | PopulatedDoc[];
10922
+ data: Data[] & PopulatedDoc[];
10923
10923
  }
10924
10924
  }
10925
10925
  namespace Get {
10926
10926
  type ID = string;
10927
- type Result = Data | PopulatedDoc;
10927
+ type Result = Data & PopulatedDoc;
10928
10928
  }
10929
10929
  namespace Create {
10930
10930
  type Body = CreateBody;
@@ -10932,8 +10932,8 @@ export declare namespace Service {
10932
10932
  }
10933
10933
  }
10934
10934
  }
10935
- export declare type StringId = string;
10936
- export declare type NameSpaces = string[];
10935
+ export type StringId = string;
10936
+ export type NameSpaces = string[];
10937
10937
  export interface AdminOrRep {
10938
10938
  _id: StringId;
10939
10939
  name?: string;
@@ -10948,7 +10948,7 @@ interface ValidityCheck {
10948
10948
  code: string;
10949
10949
  }[];
10950
10950
  }
10951
- declare type PopulatedMediaStorage = Pick<
10951
+ type PopulatedMediaStorage = Pick<
10952
10952
  Service.MediaStorage.MediaStorageSchema,
10953
10953
  | "_id"
10954
10954
  | "createdAt"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.100",
3
+ "version": "1.0.102",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",
@@ -7415,7 +7415,7 @@ export namespace Service {
7415
7415
  to_createdAt?: number;
7416
7416
  from_updatedAt?: number;
7417
7417
  to_updatedAt?: number;
7418
- populatesKeys?: PopulatedKeys[];
7418
+ populatedKeys?: PopulatedKeys[];
7419
7419
  };
7420
7420
  export interface Result extends DefaultPaginationResult {
7421
7421
  data: Data[] | PopulatedData[];
@@ -8186,7 +8186,7 @@ export namespace Service {
8186
8186
  asset_part_types?: string[] | string;
8187
8187
  assets?: string[] | string;
8188
8188
  asset_units?: string[] | string;
8189
- populatesKeys?: PopulatedKeys[];
8189
+ populatedKeys?: PopulatedKeys[];
8190
8190
  sortBy?: {
8191
8191
  field:
8192
8192
  | "_id"
@@ -8206,7 +8206,7 @@ export namespace Service {
8206
8206
  export namespace Get {
8207
8207
  export type ID = string;
8208
8208
  export type Params = {
8209
- populatesKeys?: PopulatedKeys[];
8209
+ populatedKeys?: PopulatedKeys[];
8210
8210
  [key: string]: any;
8211
8211
  };
8212
8212
  export type Result = Data | PopulatedDoc;
@@ -8431,7 +8431,7 @@ export namespace Service {
8431
8431
  to_updatedAt?: number;
8432
8432
  from_createdAt?: number;
8433
8433
  to_createdAt?: number;
8434
- populatesKeys?: PopulatedKeys[];
8434
+ populatedKeys?: PopulatedKeys[];
8435
8435
  sortBy?: {
8436
8436
  field: "_id" | "asset_part_index" | "createdAt" | "updatedAt";
8437
8437
  type: "asc" | "desc";
@@ -8454,7 +8454,7 @@ export namespace Service {
8454
8454
  export namespace Get {
8455
8455
  export type ID = string;
8456
8456
  export type Params = {
8457
- populatesKeys?: PopulatedKeys[];
8457
+ populatedKeys?: PopulatedKeys[];
8458
8458
  [key: string]: any;
8459
8459
  };
8460
8460
  export type Result = Data | PopulatedDoc;
@@ -8619,7 +8619,7 @@ export namespace Service {
8619
8619
  from_updatedAt?: number;
8620
8620
  to_updatedAt?: number;
8621
8621
  workorder?: StringId | StringId[];
8622
- populatesKeys?: PopulatedKeys[];
8622
+ populatedKeys?: PopulatedKeys[];
8623
8623
  sortBy?: {
8624
8624
  field: "_id" | "time" | "createdAt" | "updatedAt";
8625
8625
  type: "asc" | "desc";
@@ -8633,7 +8633,7 @@ export namespace Service {
8633
8633
  export namespace Get {
8634
8634
  export type ID = string;
8635
8635
  export type Params = {
8636
- populatesKeys?: PopulatedKeys[];
8636
+ populatedKeys?: PopulatedKeys[];
8637
8637
  [key: string]: any;
8638
8638
  };
8639
8639
  export type Result = Data | PopulatedDoc;
@@ -8874,7 +8874,7 @@ export namespace Service {
8874
8874
  to_createdAt?: number;
8875
8875
  from_updatedAt?: number;
8876
8876
  to_updatedAt?: number;
8877
- populatesKeys?: PopulatedKeys[];
8877
+ populatedKeys?: PopulatedKeys[];
8878
8878
  sortBy?: {
8879
8879
  field: "_id" | "time" | "createdAt" | "updatedAt";
8880
8880
  type: "asc" | "desc";
@@ -8890,7 +8890,7 @@ export namespace Service {
8890
8890
  export type Params = {
8891
8891
  withCycle?: boolean;
8892
8892
  validityCheck?: boolean;
8893
- populatesKeys?: PopulatedKeys[];
8893
+ populatedKeys?: PopulatedKeys[];
8894
8894
  [key: string]: any; // integration_meta.
8895
8895
  };
8896
8896
  export type Result = (Data | PopulatedDoc) & {
@@ -9134,7 +9134,7 @@ export namespace Service {
9134
9134
  from_updatedAt?: number;
9135
9135
  to_updatedAt?: number;
9136
9136
  workorder?: StringId | StringId[];
9137
- populatesKeys?: PopulatedKeys[];
9137
+ populatedKeys?: PopulatedKeys[];
9138
9138
  sortBy?: {
9139
9139
  field: "_id" | "time" | "createdAt" | "updatedAt";
9140
9140
  type: "asc" | "desc";
@@ -9150,7 +9150,7 @@ export namespace Service {
9150
9150
  export type Params = {
9151
9151
  withCycle?: boolean;
9152
9152
  validityCheck?: boolean;
9153
- populatesKeys?: PopulatedKeys[];
9153
+ populatedKeys?: PopulatedKeys[];
9154
9154
  [key: string]: any; // integration_meta.
9155
9155
  };
9156
9156
  export type Result = (Data | PopulatedDoc) & {
@@ -9375,7 +9375,7 @@ export namespace Service {
9375
9375
  to_createdAt?: number;
9376
9376
  from_updatedAt?: number;
9377
9377
  to_updatedAt?: number;
9378
- populatesKeys?: PopulatedKeys[];
9378
+ populatedKeys?: PopulatedKeys[];
9379
9379
  sortBy?: {
9380
9380
  field: "_id" | "time" | "createdAt" | "updatedAt";
9381
9381
  type: "asc" | "desc";
@@ -9391,7 +9391,7 @@ export namespace Service {
9391
9391
  export type Params = {
9392
9392
  withCycle?: boolean;
9393
9393
  validityCheck?: boolean;
9394
- populatesKeys?: PopulatedKeys[];
9394
+ populatedKeys?: PopulatedKeys[];
9395
9395
  [key: string]: any; // integration_meta.
9396
9396
  };
9397
9397
  export type Result = (Data | PopulatedDoc) & {
@@ -10044,12 +10044,12 @@ export namespace Service {
10044
10044
  doc_type?: string[] | string;
10045
10045
  };
10046
10046
  export interface Result extends DefaultPaginationResult {
10047
- data: Data[] | PopulatedDoc[];
10047
+ data: Data[] & PopulatedDoc[];
10048
10048
  }
10049
10049
  }
10050
10050
  export namespace Get {
10051
10051
  export type ID = string;
10052
- export type Result = Data | PopulatedDoc;
10052
+ export type Result = Data & PopulatedDoc;
10053
10053
  }
10054
10054
  export namespace Create {
10055
10055
  export type Body = CreateBody;
@@ -10092,7 +10092,7 @@ export namespace Service {
10092
10092
  company_namespace: string[];
10093
10093
  disabled: boolean;
10094
10094
  template: StringId;
10095
- template_poplated: OcrInvoiceJobTemplate.Data;
10095
+ template_populated: OcrInvoiceJobTemplate.Data;
10096
10096
  client: StringId;
10097
10097
  client_populated: Pick<Client.ClientSchema, "name" | "_id">;
10098
10098
  doc_type: "pdf" | "image";
@@ -10133,7 +10133,7 @@ export namespace Service {
10133
10133
  visit_id?: StringId[] | StringId;
10134
10134
  from_time?: number;
10135
10135
  to_time?: number;
10136
- status: string[];
10136
+ status?: string[];
10137
10137
  rep?: StringId[] | StringId;
10138
10138
  admin?: StringId[] | StringId;
10139
10139
  "creator._id"?: StringId[] | StringId;
@@ -10141,12 +10141,12 @@ export namespace Service {
10141
10141
  search?: string;
10142
10142
  };
10143
10143
  export interface Result extends DefaultPaginationResult {
10144
- data: Data[] | PopulatedDoc[];
10144
+ data: Data[] & PopulatedDoc[];
10145
10145
  }
10146
10146
  }
10147
10147
  export namespace Get {
10148
10148
  export type ID = string;
10149
- export type Result = Data | PopulatedDoc;
10149
+ export type Result = Data & PopulatedDoc;
10150
10150
  }
10151
10151
  export namespace Create {
10152
10152
  export type Body = CreateBody;
@@ -10309,18 +10309,18 @@ export namespace Service {
10309
10309
  export type Params = DefaultPaginationQueryParams & {
10310
10310
  _id?: StringId[] | StringId;
10311
10311
  disabled?: boolean;
10312
- template: StringId[] | StringId;
10312
+ template?: StringId[] | StringId;
10313
10313
  client?: StringId[] | StringId;
10314
10314
  doc_type?: string[] | string;
10315
10315
  job_group?: StringId[] | StringId;
10316
10316
  };
10317
10317
  export interface Result extends DefaultPaginationResult {
10318
- data: Data[] | PopulatedDoc[];
10318
+ data: Data[] & PopulatedDoc[];
10319
10319
  }
10320
10320
  }
10321
10321
  export namespace Get {
10322
10322
  export type ID = string;
10323
- export type Result = Data | PopulatedDoc;
10323
+ export type Result = Data & PopulatedDoc;
10324
10324
  }
10325
10325
  }
10326
10326
 
@@ -10541,15 +10541,15 @@ export namespace Service {
10541
10541
  template?: StringId | StringId[];
10542
10542
  page_number?: number;
10543
10543
  proforma?: StringId | StringId[];
10544
- status: string | string[];
10544
+ status?: string | string[];
10545
10545
  };
10546
10546
  export interface Result extends DefaultPaginationResult {
10547
- data: Data[] | PopulatedDoc[];
10547
+ data: Data[] & PopulatedDoc[];
10548
10548
  }
10549
10549
  }
10550
10550
  export namespace Get {
10551
10551
  export type ID = string;
10552
- export type Result = Data | PopulatedDoc;
10552
+ export type Result = Data & PopulatedDoc;
10553
10553
  }
10554
10554
  export namespace Update {
10555
10555
  export type ID = StringId;
@@ -10685,15 +10685,15 @@ export namespace Service {
10685
10685
  template?: StringId | StringId[];
10686
10686
  page_number?: number;
10687
10687
  proforma?: StringId | StringId[];
10688
- status: string | string[];
10688
+ status?: string | string[];
10689
10689
  };
10690
10690
  export interface Result extends DefaultPaginationResult {
10691
- data: Data[] | PopulatedDoc[];
10691
+ data: Data[] & PopulatedDoc[];
10692
10692
  }
10693
10693
  }
10694
10694
  export namespace Get {
10695
10695
  export type ID = string;
10696
- export type Result = Data | PopulatedDoc;
10696
+ export type Result = Data & PopulatedDoc;
10697
10697
  }
10698
10698
 
10699
10699
  export namespace Create {