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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.145",
3
+ "version": "1.0.147",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -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: string;
475
+ _id: StringId;
476
+ name: string;
477
+ disabled: boolean;
463
478
  local_name?: string;
464
- tags?: string[];
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?: string[];
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: string[];
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?: string;
509
+ price_tag?: StringId;
497
510
  jobs?: JobObject[];
498
- status?: string;
499
- job_category?: string[];
500
- availability_msl?: string[];
501
- territory?: string;
502
- sv_priceList?: string;
503
- assigned_media?: string[];
504
- assigned_products?: string[];
505
- assigned_product_groups?: string;
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?: string;
510
- speciality?: string[];
522
+ paymentTerm?: StringId;
523
+ speciality?: StringId[];
511
524
  company_namespace: string[];
512
- channel?: string;
525
+ channel?: StringId;
513
526
  isChain?: boolean;
514
- chain?: string;
515
- teams?: string[];
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?: string[];
526
- retail_execution_templates?: string[];
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?: string[];
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?: string[];
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?: string[];
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?: string;
587
+ price_tag?: StringId;
566
588
  jobs?: JobObject[];
567
- status?: string;
568
- job_category?: string[];
569
- availability_msl?: string[];
570
- territory?: string;
571
- sv_priceList?: string;
572
- assigned_media?: string[];
573
- assigned_products?: string[];
574
- assigned_product_groups?: string;
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?: string;
579
- speciality?: string[];
580
- company_namespace?: string[];
581
- channel?: string;
600
+ paymentTerm?: StringId;
601
+ speciality?: StringId[];
602
+ company_namespace: string[];
603
+ channel?: StringId;
582
604
  isChain?: boolean;
583
- chain?: string;
584
- teams?: string[];
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?: string[];
595
- retail_execution_templates?: string[];
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
- | string[]
653
+ | StringId[]
619
654
  | Pick<Product.ProductSchema, "_id" | "name">[];
620
655
  assigned_product_groups?:
621
- | string
656
+ | StringId
622
657
  | Pick<ProductGroup.ProductGroupSchema, "_id" | "name">[];
623
- teams?: string[] | Pick<Team.TeamSchema, "_id" | "name">[];
624
- contacts?: string[] | ClientContact.ClientContactSchema[];
625
- speciality?: string[] | Speciality.SpecialitySchema[];
626
- assigned_to?: string[] | Pick<Rep.RepSchema, "_id" | "name">[];
627
- tags?: string[] | Tag.TagSchema[];
628
- price_tag?: string | Tag.TagSchema;
629
- job_category?: string[] | JobCategory.JobCategorySchema[];
630
- sv_priceList?: string | Pick<PriceList.PriceListSchema, "_id" | "name">[];
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
- | string
633
- | Pick<Client.ClientSchema, "_id" | "name" | "client_code">;
634
- channel?: string | Channel.ChannelSchema;
635
- assigned_forms_v2_templates?: string[] | FormPopulated[];
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
- | string[]
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