repzo 1.0.52 → 1.0.54

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.
@@ -4354,6 +4354,7 @@ export declare namespace Service {
4354
4354
  delivery_date?: string;
4355
4355
  currency: string;
4356
4356
  serial_number: SerialNumber;
4357
+ return_serial_number?: SerialNumber;
4357
4358
  geo_tag?: {
4358
4359
  type: "Point";
4359
4360
  coordinates: number[];
@@ -4373,6 +4374,7 @@ export declare namespace Service {
4373
4374
  invoice_reference?: string;
4374
4375
  converted_at?: number;
4375
4376
  route?: string;
4377
+ class: "proforma" | "return";
4376
4378
  status: ProformaStatus;
4377
4379
  custom_status?: string;
4378
4380
  editor?: AdminCreator | RepCreator | ClientCreator;
@@ -4387,11 +4389,11 @@ export declare namespace Service {
4387
4389
  pre_taxable_subtotal?: number;
4388
4390
  pre_tax_amount?: number;
4389
4391
  pre_total?: number;
4390
- return_subtotal?: number;
4391
- return_discount_amount?: number;
4392
- return_taxable_subtotal?: number;
4393
- return_tax_amount?: number;
4394
- return_total?: number;
4392
+ return_subtotal: number;
4393
+ return_discount_amount: number;
4394
+ return_taxable_subtotal: number;
4395
+ return_tax_amount: number;
4396
+ return_total: number;
4395
4397
  deductionRatio?: number;
4396
4398
  deductionFixed?: number;
4397
4399
  totalDeductedTax?: number;
@@ -4455,6 +4457,7 @@ export declare namespace Service {
4455
4457
  client_id: string;
4456
4458
  client_name: string;
4457
4459
  comment?: string;
4460
+ class: "proforma" | "return";
4458
4461
  creator: AdminCreator | RepCreator | ClientCreator;
4459
4462
  version?: number;
4460
4463
  time?: number;
@@ -4462,6 +4465,7 @@ export declare namespace Service {
4462
4465
  delivery_date?: string;
4463
4466
  currency?: string;
4464
4467
  serial_number?: SerialNumber;
4468
+ return_serial_number?: SerialNumber;
4465
4469
  geo_tag?: {
4466
4470
  type: "Point";
4467
4471
  coordinates: number[];
@@ -4490,11 +4494,11 @@ export declare namespace Service {
4490
4494
  pre_taxable_subtotal?: number;
4491
4495
  pre_tax_amount?: number;
4492
4496
  pre_total?: number;
4493
- return_subtotal?: number;
4494
- return_discount_amount?: number;
4495
- return_taxable_subtotal?: number;
4496
- return_tax_amount?: number;
4497
- return_total?: number;
4497
+ return_subtotal: number;
4498
+ return_discount_amount: number;
4499
+ return_taxable_subtotal: number;
4500
+ return_tax_amount: number;
4501
+ return_total: number;
4498
4502
  deductionRatio?: number;
4499
4503
  deductionFixed?: number;
4500
4504
  totalDeductedTax?: number;
@@ -4562,8 +4566,10 @@ export declare namespace Service {
4562
4566
  time?: number;
4563
4567
  issue_date?: string;
4564
4568
  delivery_date?: string;
4569
+ class?: "proforma" | "return";
4565
4570
  currency?: string;
4566
4571
  serial_number?: SerialNumber;
4572
+ return_serial_number?: SerialNumber;
4567
4573
  geo_tag?: {
4568
4574
  type: "Point";
4569
4575
  coordinates: number[];
@@ -4655,14 +4661,165 @@ export declare namespace Service {
4655
4661
  __v?: number;
4656
4662
  }
4657
4663
  type ProformaSchemaWithPopulatedKeys = ProformaSchema & {
4658
- items: (Item.Body & {
4659
- variant: Item.Item_Variant & {
4660
- variant_sku?: string;
4664
+ items: {
4665
+ variant: {
4666
+ product_name: string;
4667
+ variant_id:
4668
+ | string
4669
+ | Pick<Variant.VariantSchema, "sku" | "_id" | "barcode">;
4670
+ product_id:
4671
+ | string
4672
+ | Pick<Product.ProductSchema, "sku" | "_id" | "barcode">;
4673
+ variant_name: string;
4674
+ listed_price: number;
4675
+ variant_local_name?: string;
4676
+ variant_img?: string;
4677
+ product_local_name?: string;
4678
+ product_img?: string;
4661
4679
  product_sku?: string;
4680
+ product_barcode?: string;
4681
+ variant_sku?: string;
4662
4682
  variant_barcode?: string;
4683
+ };
4684
+ measureunit: {
4685
+ _id: string;
4686
+ name: string;
4687
+ factor: number;
4688
+ parent?: string;
4689
+ disabled?: boolean;
4690
+ company_namespace: string[];
4691
+ };
4692
+ tax: {
4693
+ name: string;
4694
+ rate: number;
4695
+ type: "inclusive" | "additive" | "N/A";
4696
+ disabled?: boolean;
4697
+ };
4698
+ promotions?: Promotion.Schema[];
4699
+ used_promotions?: {
4700
+ id: string;
4701
+ name: string;
4702
+ ref?: string;
4703
+ }[];
4704
+ general_promotions?: {
4705
+ id: string;
4706
+ name: string;
4707
+ ref?: string;
4708
+ }[];
4709
+ applicable_promotions?: {
4710
+ id: string;
4711
+ name: string;
4712
+ ref?: string;
4713
+ }[];
4714
+ modifiers_groups?: Item.ModifierGroup[];
4715
+ isAdditional?: boolean;
4716
+ qty: number;
4717
+ base_unit_qty?: number;
4718
+ overwritePrice?: number;
4719
+ price: number;
4720
+ discounted_price: number;
4721
+ tax_amount: number;
4722
+ tax_total: number;
4723
+ class: string;
4724
+ discount_value: number;
4725
+ gross_value?: number;
4726
+ line_total?: number;
4727
+ total_before_tax?: number;
4728
+ hidden_price?: number;
4729
+ modifiers_total?: number;
4730
+ modifiers_total_before_tax?: number;
4731
+ modifiers_tax_total?: number;
4732
+ tax_total_without_modifiers?: number;
4733
+ line_total_without_modifiers?: number;
4734
+ total_before_tax_without_modifiers?: number;
4735
+ deductionRatio?: number;
4736
+ deductedTax?: number;
4737
+ deduction?: number;
4738
+ deductionBeforeTax?: number;
4739
+ lineTotalAfterDeduction?: number;
4740
+ company_namespace?: string[];
4741
+ note?: string;
4742
+ }[];
4743
+ return_items: {
4744
+ variant: {
4745
+ product_name: string;
4746
+ variant_id:
4747
+ | string
4748
+ | Pick<Variant.VariantSchema, "sku" | "_id" | "barcode">;
4749
+ product_id:
4750
+ | string
4751
+ | Pick<Product.ProductSchema, "sku" | "_id" | "barcode">;
4752
+ variant_name: string;
4753
+ listed_price: number;
4754
+ variant_local_name?: string;
4755
+ variant_img?: string;
4756
+ product_local_name?: string;
4757
+ product_img?: string;
4758
+ product_sku?: string;
4663
4759
  product_barcode?: string;
4760
+ variant_sku?: string;
4761
+ variant_barcode?: string;
4664
4762
  };
4665
- })[];
4763
+ measureunit: {
4764
+ _id: string;
4765
+ name: string;
4766
+ factor: number;
4767
+ parent?: string;
4768
+ disabled?: boolean;
4769
+ company_namespace: string[];
4770
+ };
4771
+ tax: {
4772
+ name: string;
4773
+ rate: number;
4774
+ type: "inclusive" | "additive" | "N/A";
4775
+ disabled?: boolean;
4776
+ };
4777
+ promotions?: Promotion.Schema[];
4778
+ used_promotions?: {
4779
+ id: string;
4780
+ name: string;
4781
+ ref?: string;
4782
+ }[];
4783
+ general_promotions?: {
4784
+ id: string;
4785
+ name: string;
4786
+ ref?: string;
4787
+ }[];
4788
+ applicable_promotions?: {
4789
+ id: string;
4790
+ name: string;
4791
+ ref?: string;
4792
+ }[];
4793
+ modifiers_groups?: Item.ModifierGroup[];
4794
+ isAdditional?: boolean;
4795
+ qty: number;
4796
+ base_unit_qty?: number;
4797
+ overwritePrice?: number;
4798
+ price: number;
4799
+ discounted_price: number;
4800
+ tax_amount: number;
4801
+ tax_total: number;
4802
+ discount_value: number;
4803
+ gross_value?: number;
4804
+ line_total?: number;
4805
+ total_before_tax?: number;
4806
+ hidden_price?: number;
4807
+ modifiers_total?: number;
4808
+ modifiers_total_before_tax?: number;
4809
+ modifiers_tax_total?: number;
4810
+ tax_total_without_modifiers?: number;
4811
+ line_total_without_modifiers?: number;
4812
+ total_before_tax_without_modifiers?: number;
4813
+ deductionRatio?: number;
4814
+ deductedTax?: number;
4815
+ deduction?: number;
4816
+ deductionBeforeTax?: number;
4817
+ lineTotalAfterDeduction?: number;
4818
+ company_namespace?: string[];
4819
+ note?: string;
4820
+ class: string;
4821
+ return_reason?: string | ReturnReason.Schema;
4822
+ }[];
4666
4823
  client_id?: string | Client.ClientSchema;
4667
4824
  custom_status?: string | CustomStatus.CustomStatusSchema;
4668
4825
  cycle?: Cycle.Schema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.52",
3
+ "version": "1.0.54",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",
@@ -4406,6 +4406,7 @@ export namespace Service {
4406
4406
  delivery_date?: string;
4407
4407
  currency: string;
4408
4408
  serial_number: SerialNumber;
4409
+ return_serial_number?: SerialNumber;
4409
4410
  geo_tag?: {
4410
4411
  type: "Point";
4411
4412
  coordinates: number[];
@@ -4421,6 +4422,7 @@ export namespace Service {
4421
4422
  invoice_reference?: string;
4422
4423
  converted_at?: number;
4423
4424
  route?: string;
4425
+ class: "proforma" | "return";
4424
4426
  status: ProformaStatus;
4425
4427
  custom_status?: string;
4426
4428
  editor?: AdminCreator | RepCreator | ClientCreator;
@@ -4435,11 +4437,11 @@ export namespace Service {
4435
4437
  pre_taxable_subtotal?: number;
4436
4438
  pre_tax_amount?: number;
4437
4439
  pre_total?: number;
4438
- return_subtotal?: number;
4439
- return_discount_amount?: number;
4440
- return_taxable_subtotal?: number;
4441
- return_tax_amount?: number;
4442
- return_total?: number;
4440
+ return_subtotal: number;
4441
+ return_discount_amount: number;
4442
+ return_taxable_subtotal: number;
4443
+ return_tax_amount: number;
4444
+ return_total: number;
4443
4445
  deductionRatio?: number;
4444
4446
  deductionFixed?: number;
4445
4447
  totalDeductedTax?: number;
@@ -4499,6 +4501,7 @@ export namespace Service {
4499
4501
  client_id: string;
4500
4502
  client_name: string;
4501
4503
  comment?: string;
4504
+ class: "proforma" | "return";
4502
4505
  creator: AdminCreator | RepCreator | ClientCreator;
4503
4506
  version?: number;
4504
4507
  time?: number;
@@ -4506,6 +4509,7 @@ export namespace Service {
4506
4509
  delivery_date?: string;
4507
4510
  currency?: string;
4508
4511
  serial_number?: SerialNumber;
4512
+ return_serial_number?: SerialNumber;
4509
4513
  geo_tag?: {
4510
4514
  type: "Point";
4511
4515
  coordinates: number[];
@@ -4530,11 +4534,11 @@ export namespace Service {
4530
4534
  pre_taxable_subtotal?: number;
4531
4535
  pre_tax_amount?: number;
4532
4536
  pre_total?: number;
4533
- return_subtotal?: number;
4534
- return_discount_amount?: number;
4535
- return_taxable_subtotal?: number;
4536
- return_tax_amount?: number;
4537
- return_total?: number;
4537
+ return_subtotal: number;
4538
+ return_discount_amount: number;
4539
+ return_taxable_subtotal: number;
4540
+ return_tax_amount: number;
4541
+ return_total: number;
4538
4542
  deductionRatio?: number;
4539
4543
  deductionFixed?: number;
4540
4544
  totalDeductedTax?: number;
@@ -4598,8 +4602,10 @@ export namespace Service {
4598
4602
  time?: number;
4599
4603
  issue_date?: string;
4600
4604
  delivery_date?: string;
4605
+ class?: "proforma" | "return";
4601
4606
  currency?: string;
4602
4607
  serial_number?: SerialNumber;
4608
+ return_serial_number?: SerialNumber;
4603
4609
  geo_tag?: {
4604
4610
  type: "Point";
4605
4611
  coordinates: number[];
@@ -4686,14 +4692,141 @@ export namespace Service {
4686
4692
  }
4687
4693
 
4688
4694
  type ProformaSchemaWithPopulatedKeys = ProformaSchema & {
4689
- items: (Item.Body & {
4690
- variant: Item.Item_Variant & {
4691
- variant_sku?: string;
4695
+ items: {
4696
+ variant: {
4697
+ product_name: string;
4698
+ variant_id:
4699
+ | string
4700
+ | Pick<Variant.VariantSchema, "sku" | "_id" | "barcode">;
4701
+ product_id:
4702
+ | string
4703
+ | Pick<Product.ProductSchema, "sku" | "_id" | "barcode">;
4704
+ variant_name: string;
4705
+ listed_price: number;
4706
+ variant_local_name?: string;
4707
+ variant_img?: string;
4708
+ product_local_name?: string;
4709
+ product_img?: string;
4692
4710
  product_sku?: string;
4711
+ product_barcode?: string;
4712
+ variant_sku?: string;
4693
4713
  variant_barcode?: string;
4714
+ };
4715
+ measureunit: {
4716
+ _id: string;
4717
+ name: string;
4718
+ factor: number;
4719
+ parent?: string;
4720
+ disabled?: boolean;
4721
+ company_namespace: string[];
4722
+ };
4723
+ tax: {
4724
+ name: string;
4725
+ rate: number;
4726
+ type: "inclusive" | "additive" | "N/A";
4727
+ disabled?: boolean;
4728
+ };
4729
+ promotions?: Promotion.Schema[];
4730
+ used_promotions?: { id: string; name: string; ref?: string }[];
4731
+ general_promotions?: { id: string; name: string; ref?: string }[];
4732
+ applicable_promotions?: { id: string; name: string; ref?: string }[];
4733
+ modifiers_groups?: Item.ModifierGroup[];
4734
+ isAdditional?: boolean;
4735
+ qty: number;
4736
+ base_unit_qty?: number;
4737
+ overwritePrice?: number;
4738
+ price: number;
4739
+ discounted_price: number;
4740
+ tax_amount: number;
4741
+ tax_total: number;
4742
+ class: string;
4743
+ discount_value: number;
4744
+ gross_value?: number;
4745
+ line_total?: number;
4746
+ total_before_tax?: number;
4747
+ hidden_price?: number;
4748
+ modifiers_total?: number;
4749
+ modifiers_total_before_tax?: number;
4750
+ modifiers_tax_total?: number;
4751
+ tax_total_without_modifiers?: number;
4752
+ line_total_without_modifiers?: number;
4753
+ total_before_tax_without_modifiers?: number;
4754
+ deductionRatio?: number;
4755
+ deductedTax?: number;
4756
+ deduction?: number;
4757
+ deductionBeforeTax?: number;
4758
+ lineTotalAfterDeduction?: number;
4759
+ company_namespace?: string[];
4760
+ note?: string;
4761
+ }[];
4762
+ return_items: {
4763
+ variant: {
4764
+ product_name: string;
4765
+ variant_id:
4766
+ | string
4767
+ | Pick<Variant.VariantSchema, "sku" | "_id" | "barcode">;
4768
+ product_id:
4769
+ | string
4770
+ | Pick<Product.ProductSchema, "sku" | "_id" | "barcode">;
4771
+ variant_name: string;
4772
+ listed_price: number;
4773
+ variant_local_name?: string;
4774
+ variant_img?: string;
4775
+ product_local_name?: string;
4776
+ product_img?: string;
4777
+ product_sku?: string;
4694
4778
  product_barcode?: string;
4779
+ variant_sku?: string;
4780
+ variant_barcode?: string;
4695
4781
  };
4696
- })[];
4782
+ measureunit: {
4783
+ _id: string;
4784
+ name: string;
4785
+ factor: number;
4786
+ parent?: string;
4787
+ disabled?: boolean;
4788
+ company_namespace: string[];
4789
+ };
4790
+ tax: {
4791
+ name: string;
4792
+ rate: number;
4793
+ type: "inclusive" | "additive" | "N/A";
4794
+ disabled?: boolean;
4795
+ };
4796
+ promotions?: Promotion.Schema[];
4797
+ used_promotions?: { id: string; name: string; ref?: string }[];
4798
+ general_promotions?: { id: string; name: string; ref?: string }[];
4799
+ applicable_promotions?: { id: string; name: string; ref?: string }[];
4800
+ modifiers_groups?: Item.ModifierGroup[];
4801
+ isAdditional?: boolean;
4802
+ qty: number;
4803
+ base_unit_qty?: number;
4804
+ overwritePrice?: number;
4805
+ price: number;
4806
+ discounted_price: number;
4807
+ tax_amount: number;
4808
+ tax_total: number;
4809
+ discount_value: number;
4810
+ gross_value?: number;
4811
+ line_total?: number;
4812
+ total_before_tax?: number;
4813
+ hidden_price?: number;
4814
+ modifiers_total?: number;
4815
+ modifiers_total_before_tax?: number;
4816
+ modifiers_tax_total?: number;
4817
+ tax_total_without_modifiers?: number;
4818
+ line_total_without_modifiers?: number;
4819
+ total_before_tax_without_modifiers?: number;
4820
+ deductionRatio?: number;
4821
+ deductedTax?: number;
4822
+ deduction?: number;
4823
+ deductionBeforeTax?: number;
4824
+ lineTotalAfterDeduction?: number;
4825
+ company_namespace?: string[];
4826
+ note?: string;
4827
+ class: string;
4828
+ return_reason?: string | ReturnReason.Schema;
4829
+ }[];
4697
4830
  client_id?: string | Client.ClientSchema;
4698
4831
  custom_status?: string | CustomStatus.CustomStatusSchema;
4699
4832
  cycle?: Cycle.Schema;