repzo 1.0.52 → 1.0.53
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 +373 -760
- package/lib/index.js +1088 -1709
- package/lib/types/index.d.ts +5518 -5740
- package/package.json +1 -1
- package/src/types/index.ts +134 -4
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -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[];
|
|
@@ -4506,6 +4507,7 @@ export namespace Service {
|
|
|
4506
4507
|
delivery_date?: string;
|
|
4507
4508
|
currency?: string;
|
|
4508
4509
|
serial_number?: SerialNumber;
|
|
4510
|
+
return_serial_number?: SerialNumber;
|
|
4509
4511
|
geo_tag?: {
|
|
4510
4512
|
type: "Point";
|
|
4511
4513
|
coordinates: number[];
|
|
@@ -4600,6 +4602,7 @@ export namespace Service {
|
|
|
4600
4602
|
delivery_date?: string;
|
|
4601
4603
|
currency?: string;
|
|
4602
4604
|
serial_number?: SerialNumber;
|
|
4605
|
+
return_serial_number?: SerialNumber;
|
|
4603
4606
|
geo_tag?: {
|
|
4604
4607
|
type: "Point";
|
|
4605
4608
|
coordinates: number[];
|
|
@@ -4686,14 +4689,141 @@ export namespace Service {
|
|
|
4686
4689
|
}
|
|
4687
4690
|
|
|
4688
4691
|
type ProformaSchemaWithPopulatedKeys = ProformaSchema & {
|
|
4689
|
-
items:
|
|
4690
|
-
variant:
|
|
4691
|
-
|
|
4692
|
+
items: {
|
|
4693
|
+
variant: {
|
|
4694
|
+
product_name: string;
|
|
4695
|
+
variant_id:
|
|
4696
|
+
| string
|
|
4697
|
+
| Pick<Variant.VariantSchema, "sku" | "_id" | "barcode">;
|
|
4698
|
+
product_id:
|
|
4699
|
+
| string
|
|
4700
|
+
| Pick<Product.ProductSchema, "sku" | "_id" | "barcode">;
|
|
4701
|
+
variant_name: string;
|
|
4702
|
+
listed_price: number;
|
|
4703
|
+
variant_local_name?: string;
|
|
4704
|
+
variant_img?: string;
|
|
4705
|
+
product_local_name?: string;
|
|
4706
|
+
product_img?: string;
|
|
4692
4707
|
product_sku?: string;
|
|
4708
|
+
product_barcode?: string;
|
|
4709
|
+
variant_sku?: string;
|
|
4693
4710
|
variant_barcode?: string;
|
|
4711
|
+
};
|
|
4712
|
+
measureunit: {
|
|
4713
|
+
_id: string;
|
|
4714
|
+
name: string;
|
|
4715
|
+
factor: number;
|
|
4716
|
+
parent?: string;
|
|
4717
|
+
disabled?: boolean;
|
|
4718
|
+
company_namespace: string[];
|
|
4719
|
+
};
|
|
4720
|
+
tax: {
|
|
4721
|
+
name: string;
|
|
4722
|
+
rate: number;
|
|
4723
|
+
type: "inclusive" | "additive" | "N/A";
|
|
4724
|
+
disabled?: boolean;
|
|
4725
|
+
};
|
|
4726
|
+
promotions?: Promotion.Schema[];
|
|
4727
|
+
used_promotions?: { id: string; name: string; ref?: string }[];
|
|
4728
|
+
general_promotions?: { id: string; name: string; ref?: string }[];
|
|
4729
|
+
applicable_promotions?: { id: string; name: string; ref?: string }[];
|
|
4730
|
+
modifiers_groups?: Item.ModifierGroup[];
|
|
4731
|
+
isAdditional?: boolean;
|
|
4732
|
+
qty: number;
|
|
4733
|
+
base_unit_qty?: number;
|
|
4734
|
+
overwritePrice?: number;
|
|
4735
|
+
price: number;
|
|
4736
|
+
discounted_price: number;
|
|
4737
|
+
tax_amount: number;
|
|
4738
|
+
tax_total: number;
|
|
4739
|
+
class: string;
|
|
4740
|
+
discount_value: number;
|
|
4741
|
+
gross_value?: number;
|
|
4742
|
+
line_total?: number;
|
|
4743
|
+
total_before_tax?: number;
|
|
4744
|
+
hidden_price?: number;
|
|
4745
|
+
modifiers_total?: number;
|
|
4746
|
+
modifiers_total_before_tax?: number;
|
|
4747
|
+
modifiers_tax_total?: number;
|
|
4748
|
+
tax_total_without_modifiers?: number;
|
|
4749
|
+
line_total_without_modifiers?: number;
|
|
4750
|
+
total_before_tax_without_modifiers?: number;
|
|
4751
|
+
deductionRatio?: number;
|
|
4752
|
+
deductedTax?: number;
|
|
4753
|
+
deduction?: number;
|
|
4754
|
+
deductionBeforeTax?: number;
|
|
4755
|
+
lineTotalAfterDeduction?: number;
|
|
4756
|
+
company_namespace?: string[];
|
|
4757
|
+
note?: string;
|
|
4758
|
+
}[];
|
|
4759
|
+
return_items: {
|
|
4760
|
+
variant: {
|
|
4761
|
+
product_name: string;
|
|
4762
|
+
variant_id:
|
|
4763
|
+
| string
|
|
4764
|
+
| Pick<Variant.VariantSchema, "sku" | "_id" | "barcode">;
|
|
4765
|
+
product_id:
|
|
4766
|
+
| string
|
|
4767
|
+
| Pick<Product.ProductSchema, "sku" | "_id" | "barcode">;
|
|
4768
|
+
variant_name: string;
|
|
4769
|
+
listed_price: number;
|
|
4770
|
+
variant_local_name?: string;
|
|
4771
|
+
variant_img?: string;
|
|
4772
|
+
product_local_name?: string;
|
|
4773
|
+
product_img?: string;
|
|
4774
|
+
product_sku?: string;
|
|
4694
4775
|
product_barcode?: string;
|
|
4776
|
+
variant_sku?: string;
|
|
4777
|
+
variant_barcode?: string;
|
|
4695
4778
|
};
|
|
4696
|
-
|
|
4779
|
+
measureunit: {
|
|
4780
|
+
_id: string;
|
|
4781
|
+
name: string;
|
|
4782
|
+
factor: number;
|
|
4783
|
+
parent?: string;
|
|
4784
|
+
disabled?: boolean;
|
|
4785
|
+
company_namespace: string[];
|
|
4786
|
+
};
|
|
4787
|
+
tax: {
|
|
4788
|
+
name: string;
|
|
4789
|
+
rate: number;
|
|
4790
|
+
type: "inclusive" | "additive" | "N/A";
|
|
4791
|
+
disabled?: boolean;
|
|
4792
|
+
};
|
|
4793
|
+
promotions?: Promotion.Schema[];
|
|
4794
|
+
used_promotions?: { id: string; name: string; ref?: string }[];
|
|
4795
|
+
general_promotions?: { id: string; name: string; ref?: string }[];
|
|
4796
|
+
applicable_promotions?: { id: string; name: string; ref?: string }[];
|
|
4797
|
+
modifiers_groups?: Item.ModifierGroup[];
|
|
4798
|
+
isAdditional?: boolean;
|
|
4799
|
+
qty: number;
|
|
4800
|
+
base_unit_qty?: number;
|
|
4801
|
+
overwritePrice?: number;
|
|
4802
|
+
price: number;
|
|
4803
|
+
discounted_price: number;
|
|
4804
|
+
tax_amount: number;
|
|
4805
|
+
tax_total: number;
|
|
4806
|
+
discount_value: number;
|
|
4807
|
+
gross_value?: number;
|
|
4808
|
+
line_total?: number;
|
|
4809
|
+
total_before_tax?: number;
|
|
4810
|
+
hidden_price?: number;
|
|
4811
|
+
modifiers_total?: number;
|
|
4812
|
+
modifiers_total_before_tax?: number;
|
|
4813
|
+
modifiers_tax_total?: number;
|
|
4814
|
+
tax_total_without_modifiers?: number;
|
|
4815
|
+
line_total_without_modifiers?: number;
|
|
4816
|
+
total_before_tax_without_modifiers?: number;
|
|
4817
|
+
deductionRatio?: number;
|
|
4818
|
+
deductedTax?: number;
|
|
4819
|
+
deduction?: number;
|
|
4820
|
+
deductionBeforeTax?: number;
|
|
4821
|
+
lineTotalAfterDeduction?: number;
|
|
4822
|
+
company_namespace?: string[];
|
|
4823
|
+
note?: string;
|
|
4824
|
+
class: string;
|
|
4825
|
+
return_reason?: string | ReturnReason.Schema;
|
|
4826
|
+
}[];
|
|
4697
4827
|
client_id?: string | Client.ClientSchema;
|
|
4698
4828
|
custom_status?: string | CustomStatus.CustomStatusSchema;
|
|
4699
4829
|
cycle?: Cycle.Schema;
|