repzo 1.0.145 → 1.0.147
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 +816 -1849
- package/lib/index.js +2200 -3560
- package/lib/types/index.d.ts +13430 -14649
- package/package.json +1 -1
- package/src/types/index.ts +112 -61
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -458,29 +458,42 @@ export namespace Service {
|
|
|
458
458
|
target: number;
|
|
459
459
|
classification: string;
|
|
460
460
|
}
|
|
461
|
+
interface Sales {
|
|
462
|
+
name_on_invoice?: string;
|
|
463
|
+
invoice_footer?: string;
|
|
464
|
+
logo_media?: StringId;
|
|
465
|
+
invoice_title?: string;
|
|
466
|
+
invoice_local_title?: string;
|
|
467
|
+
proforma_title?: string;
|
|
468
|
+
proforma_local_title?: string;
|
|
469
|
+
return_invoice_title?: string;
|
|
470
|
+
return_invoice_local_title?: string;
|
|
471
|
+
address_1?: string;
|
|
472
|
+
address_2?: string;
|
|
473
|
+
}
|
|
461
474
|
export interface ClientSchema {
|
|
462
|
-
_id:
|
|
475
|
+
_id: StringId;
|
|
476
|
+
name: string;
|
|
477
|
+
disabled: boolean;
|
|
463
478
|
local_name?: string;
|
|
464
|
-
tags?:
|
|
479
|
+
tags?: StringId[];
|
|
465
480
|
cell_phone?: string;
|
|
466
481
|
city?: string;
|
|
467
482
|
client_code?: string;
|
|
468
483
|
contact_name?: string;
|
|
469
484
|
contact_title?: string;
|
|
470
|
-
contacts?:
|
|
485
|
+
contacts?: StringId[];
|
|
471
486
|
country?: string;
|
|
472
|
-
disabled?: boolean;
|
|
473
487
|
formatted_address?: string;
|
|
474
488
|
lat?: number;
|
|
475
489
|
lng?: number;
|
|
476
490
|
location_verified?: boolean;
|
|
477
|
-
name: string;
|
|
478
491
|
phone?: string;
|
|
479
492
|
state?: string;
|
|
480
493
|
zip?: string;
|
|
481
|
-
assigned_to:
|
|
494
|
+
assigned_to: StringId[];
|
|
482
495
|
last_location_update?: number;
|
|
483
|
-
credit_limit?: number;
|
|
496
|
+
// credit_limit?: number;
|
|
484
497
|
tax_number?: string;
|
|
485
498
|
sync_id?: string;
|
|
486
499
|
rep_targets?: RepTarget[];
|
|
@@ -493,26 +506,26 @@ export namespace Service {
|
|
|
493
506
|
parent_client_id?: string;
|
|
494
507
|
target_visit?: number;
|
|
495
508
|
geofencing_radius?: number;
|
|
496
|
-
price_tag?:
|
|
509
|
+
price_tag?: StringId;
|
|
497
510
|
jobs?: JobObject[];
|
|
498
|
-
status?:
|
|
499
|
-
job_category?:
|
|
500
|
-
availability_msl?:
|
|
501
|
-
territory?:
|
|
502
|
-
sv_priceList?:
|
|
503
|
-
assigned_media?:
|
|
504
|
-
assigned_products?:
|
|
505
|
-
assigned_product_groups?:
|
|
511
|
+
status?: StringId;
|
|
512
|
+
job_category?: StringId[];
|
|
513
|
+
availability_msl?: StringId[];
|
|
514
|
+
territory?: StringId;
|
|
515
|
+
sv_priceList?: StringId;
|
|
516
|
+
assigned_media?: StringId[];
|
|
517
|
+
assigned_products?: StringId[];
|
|
518
|
+
assigned_product_groups?: StringId[];
|
|
506
519
|
verifiedUntil?: number;
|
|
507
520
|
financials?: Financials;
|
|
508
521
|
customFields?: { [key: string]: any };
|
|
509
|
-
paymentTerm?:
|
|
510
|
-
speciality?:
|
|
522
|
+
paymentTerm?: StringId;
|
|
523
|
+
speciality?: StringId[];
|
|
511
524
|
company_namespace: string[];
|
|
512
|
-
channel?:
|
|
525
|
+
channel?: StringId;
|
|
513
526
|
isChain?: boolean;
|
|
514
|
-
chain?:
|
|
515
|
-
teams?:
|
|
527
|
+
chain?: StringId;
|
|
528
|
+
teams?: StringId[];
|
|
516
529
|
payment_type: "cash" | "credit";
|
|
517
530
|
integration_meta?: { [key: string]: any };
|
|
518
531
|
integrated_client_balance?: number;
|
|
@@ -520,10 +533,19 @@ export namespace Service {
|
|
|
520
533
|
payment_terms_grace_period_days?: number;
|
|
521
534
|
enable_invoice_balance_limit?: boolean;
|
|
522
535
|
enable_payment_terms_grace_period_days?: boolean;
|
|
536
|
+
enable_credit_limit_on_invoice?: boolean;
|
|
537
|
+
enable_credit_limit_on_proforma?: boolean;
|
|
538
|
+
enable_invoice_balance_limit_on_proforma?: boolean;
|
|
539
|
+
enable_payment_terms_grace_period_days_on_proforma?: boolean;
|
|
523
540
|
is_simplified?: boolean;
|
|
524
541
|
last_login_time?: number;
|
|
525
|
-
assigned_forms_v2_templates?:
|
|
526
|
-
retail_execution_templates?:
|
|
542
|
+
assigned_forms_v2_templates?: StringId[];
|
|
543
|
+
retail_execution_templates?: StringId[];
|
|
544
|
+
last_sales_invoice_time?: number;
|
|
545
|
+
last_sales_proforma_time?: number;
|
|
546
|
+
media?: StringId[];
|
|
547
|
+
cover_photo?: StringId;
|
|
548
|
+
sales?: Sales;
|
|
527
549
|
createdAt: string;
|
|
528
550
|
updatedAt: string;
|
|
529
551
|
__v: number;
|
|
@@ -531,13 +553,13 @@ export namespace Service {
|
|
|
531
553
|
export interface CreateBody {
|
|
532
554
|
name?: string;
|
|
533
555
|
local_name?: string;
|
|
534
|
-
tags?:
|
|
556
|
+
tags?: StringId[];
|
|
535
557
|
cell_phone?: string;
|
|
536
558
|
city?: string;
|
|
537
559
|
client_code?: string;
|
|
538
560
|
contact_name?: string;
|
|
539
561
|
contact_title?: string;
|
|
540
|
-
contacts?:
|
|
562
|
+
contacts?: StringId[];
|
|
541
563
|
country?: string;
|
|
542
564
|
disabled?: boolean;
|
|
543
565
|
formatted_address?: string;
|
|
@@ -547,9 +569,9 @@ export namespace Service {
|
|
|
547
569
|
phone?: string;
|
|
548
570
|
state?: string;
|
|
549
571
|
zip?: string;
|
|
550
|
-
assigned_to?:
|
|
572
|
+
assigned_to?: StringId[];
|
|
551
573
|
last_location_update?: number;
|
|
552
|
-
credit_limit?: number;
|
|
574
|
+
// credit_limit?: number;
|
|
553
575
|
tax_number?: string;
|
|
554
576
|
sync_id?: string;
|
|
555
577
|
rep_targets?: RepTarget[];
|
|
@@ -562,26 +584,26 @@ export namespace Service {
|
|
|
562
584
|
parent_client_id?: string;
|
|
563
585
|
target_visit?: number;
|
|
564
586
|
geofencing_radius?: number;
|
|
565
|
-
price_tag?:
|
|
587
|
+
price_tag?: StringId;
|
|
566
588
|
jobs?: JobObject[];
|
|
567
|
-
status?:
|
|
568
|
-
job_category?:
|
|
569
|
-
availability_msl?:
|
|
570
|
-
territory?:
|
|
571
|
-
sv_priceList?:
|
|
572
|
-
assigned_media?:
|
|
573
|
-
assigned_products?:
|
|
574
|
-
assigned_product_groups?:
|
|
589
|
+
status?: StringId;
|
|
590
|
+
job_category?: StringId[];
|
|
591
|
+
availability_msl?: StringId[];
|
|
592
|
+
territory?: StringId;
|
|
593
|
+
sv_priceList?: StringId;
|
|
594
|
+
assigned_media?: StringId[];
|
|
595
|
+
assigned_products?: StringId[];
|
|
596
|
+
assigned_product_groups?: StringId[];
|
|
575
597
|
verifiedUntil?: number;
|
|
576
598
|
financials?: Financials;
|
|
577
599
|
customFields?: { [key: string]: any };
|
|
578
|
-
paymentTerm?:
|
|
579
|
-
speciality?:
|
|
580
|
-
company_namespace
|
|
581
|
-
channel?:
|
|
600
|
+
paymentTerm?: StringId;
|
|
601
|
+
speciality?: StringId[];
|
|
602
|
+
company_namespace: string[];
|
|
603
|
+
channel?: StringId;
|
|
582
604
|
isChain?: boolean;
|
|
583
|
-
chain?:
|
|
584
|
-
teams?:
|
|
605
|
+
chain?: StringId;
|
|
606
|
+
teams?: StringId[];
|
|
585
607
|
payment_type?: "cash" | "credit";
|
|
586
608
|
integration_meta?: { [key: string]: any };
|
|
587
609
|
integrated_client_balance?: number;
|
|
@@ -589,10 +611,19 @@ export namespace Service {
|
|
|
589
611
|
payment_terms_grace_period_days?: number;
|
|
590
612
|
enable_invoice_balance_limit?: boolean;
|
|
591
613
|
enable_payment_terms_grace_period_days?: boolean;
|
|
614
|
+
enable_credit_limit_on_invoice?: boolean;
|
|
615
|
+
enable_credit_limit_on_proforma?: boolean;
|
|
616
|
+
enable_invoice_balance_limit_on_proforma?: boolean;
|
|
617
|
+
enable_payment_terms_grace_period_days_on_proforma?: boolean;
|
|
592
618
|
is_simplified?: boolean;
|
|
593
619
|
last_login_time?: number;
|
|
594
|
-
assigned_forms_v2_templates?:
|
|
595
|
-
retail_execution_templates?:
|
|
620
|
+
assigned_forms_v2_templates?: StringId[];
|
|
621
|
+
retail_execution_templates?: StringId[];
|
|
622
|
+
last_sales_invoice_time?: number;
|
|
623
|
+
last_sales_proforma_time?: number;
|
|
624
|
+
media?: StringId[];
|
|
625
|
+
cover_photo?: StringId;
|
|
626
|
+
sales?: Sales;
|
|
596
627
|
}
|
|
597
628
|
export type PopulatedKeys =
|
|
598
629
|
| "tags"
|
|
@@ -604,6 +635,7 @@ export namespace Service {
|
|
|
604
635
|
| "msl"
|
|
605
636
|
| "chain"
|
|
606
637
|
| "channel"
|
|
638
|
+
| "status"
|
|
607
639
|
| "product"
|
|
608
640
|
| "assigned_products"
|
|
609
641
|
| "assigned_product_groups"
|
|
@@ -611,31 +643,48 @@ export namespace Service {
|
|
|
611
643
|
| "teams"
|
|
612
644
|
| "contacts"
|
|
613
645
|
| "retail_execution_templates"
|
|
614
|
-
| "assigned_forms_v2_templates"
|
|
646
|
+
| "assigned_forms_v2_templates"
|
|
647
|
+
| "media"
|
|
648
|
+
| "cover_photo"
|
|
649
|
+
| "sales.logo_media";
|
|
615
650
|
|
|
616
651
|
type ClientSchemaWithPopulatedKeys = ClientSchema & {
|
|
617
652
|
assigned_products?:
|
|
618
|
-
|
|
|
653
|
+
| StringId[]
|
|
619
654
|
| Pick<Product.ProductSchema, "_id" | "name">[];
|
|
620
655
|
assigned_product_groups?:
|
|
621
|
-
|
|
|
656
|
+
| StringId
|
|
622
657
|
| Pick<ProductGroup.ProductGroupSchema, "_id" | "name">[];
|
|
623
|
-
teams?:
|
|
624
|
-
contacts?:
|
|
625
|
-
speciality?:
|
|
626
|
-
assigned_to?:
|
|
627
|
-
tags?:
|
|
628
|
-
price_tag?:
|
|
629
|
-
job_category?:
|
|
630
|
-
sv_priceList?:
|
|
658
|
+
teams?: StringId[] | Pick<Team.TeamSchema, "_id" | "name">[];
|
|
659
|
+
contacts?: StringId[] | ClientContact.ClientContactSchema[];
|
|
660
|
+
speciality?: StringId[] | Speciality.SpecialitySchema[];
|
|
661
|
+
assigned_to?: StringId[] | Pick<Rep.RepSchema, "_id" | "name">[];
|
|
662
|
+
tags?: StringId[] | Tag.TagSchema[];
|
|
663
|
+
price_tag?: StringId | Tag.TagSchema;
|
|
664
|
+
job_category?: StringId[] | JobCategory.JobCategorySchema[];
|
|
665
|
+
sv_priceList?:
|
|
666
|
+
| StringId
|
|
667
|
+
| Pick<PriceList.PriceListSchema, "_id" | "name">[];
|
|
631
668
|
chain?:
|
|
632
|
-
|
|
|
633
|
-
| Pick<
|
|
634
|
-
|
|
635
|
-
|
|
669
|
+
| StringId
|
|
670
|
+
| Pick<
|
|
671
|
+
Client.ClientSchema,
|
|
672
|
+
"_id" | "name" | "client_code" | "local_name"
|
|
673
|
+
>;
|
|
674
|
+
channel?: StringId | Channel.ChannelSchema;
|
|
675
|
+
assigned_forms_v2_templates?:
|
|
676
|
+
| StringId[]
|
|
677
|
+
| Pick<FormPopulated, "_id" | "name">[];
|
|
636
678
|
retail_execution_templates?:
|
|
637
|
-
|
|
|
638
|
-
| RetailExecutionTemplatePopulated[];
|
|
679
|
+
| StringId[]
|
|
680
|
+
| Pick<RetailExecutionTemplatePopulated, "_id" | "name">[];
|
|
681
|
+
media?: StringId[] | PopulatedMediaStorage[];
|
|
682
|
+
cover_photo?: StringId | PopulatedMediaStorage;
|
|
683
|
+
paymentTerm?:
|
|
684
|
+
| StringId
|
|
685
|
+
| Pick<PaymentTerm.PaymentTermSchema, "_id" | "name" | "due_days">;
|
|
686
|
+
sales?: Sales & { logo_media?: StringId | MediaPopulated };
|
|
687
|
+
// availability_msl?: StringId[] | AvailabilityMsl.AvailabilityMslSchema[];
|
|
639
688
|
};
|
|
640
689
|
|
|
641
690
|
export namespace Find {
|
|
@@ -9891,6 +9940,8 @@ export namespace Service {
|
|
|
9891
9940
|
cover_photo?: MediaDoc;
|
|
9892
9941
|
});
|
|
9893
9942
|
asset_part_name: string;
|
|
9943
|
+
warehouse_name: string;
|
|
9944
|
+
receival_warehouse_name: string;
|
|
9894
9945
|
qty: number;
|
|
9895
9946
|
custom_status?:
|
|
9896
9947
|
| StringId
|