repzo 1.0.224 → 1.0.225
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/types/index.d.ts +19 -11
- package/package.json +1 -1
- package/src/types/index.ts +20 -11
package/lib/types/index.d.ts
CHANGED
|
@@ -3893,6 +3893,7 @@ export declare namespace Service {
|
|
|
3893
3893
|
}
|
|
3894
3894
|
namespace Promotion {
|
|
3895
3895
|
export interface CartFilter {
|
|
3896
|
+
_id?: StringId;
|
|
3896
3897
|
filter_type: "product" | "category" | "sub_category" | "product_group" | "brand" | "variant" | "cart_total" | "items_count" | "client" | "tag" | "channel" | "distinct_variants_count" | "distinct_products_count" | "promotion" | "cart_type" | "invoice_payment_type" | "creator_id";
|
|
3897
3898
|
value: string[];
|
|
3898
3899
|
operator: "lte" | "lt" | "gte" | "gt" | "eq";
|
|
@@ -3902,41 +3903,47 @@ export declare namespace Service {
|
|
|
3902
3903
|
};
|
|
3903
3904
|
limit_type: "count" | "price_amount";
|
|
3904
3905
|
limit_value: number;
|
|
3905
|
-
variants?:
|
|
3906
|
+
variants?: StringId[];
|
|
3906
3907
|
}
|
|
3907
3908
|
export interface ItemFilter {
|
|
3908
|
-
|
|
3909
|
-
|
|
3909
|
+
_id?: StringId;
|
|
3910
|
+
filter_type: "product" | "category" | "sub_category" | "product_group" | "brand" | "variant" | "any" | "gift";
|
|
3911
|
+
value: StringId[];
|
|
3910
3912
|
limit_type: "count" | "price_amount";
|
|
3911
3913
|
limit_value: number;
|
|
3912
|
-
variants?:
|
|
3914
|
+
variants?: StringId[];
|
|
3913
3915
|
}
|
|
3914
3916
|
export interface CartAdjustment {
|
|
3917
|
+
_id?: StringId;
|
|
3915
3918
|
adjustment_type: "discount_amount" | "discount_ratio" | "shipping_fixed_price" | "shipping_discount_amount" | "shipping_discount_ratio" | "tax_exempt";
|
|
3916
3919
|
value: any;
|
|
3917
3920
|
}
|
|
3918
3921
|
export interface LineFilter {
|
|
3922
|
+
_id?: StringId;
|
|
3919
3923
|
filter_type: "product" | "category" | "sub_category" | "product_group" | "brand" | "variant" | "line_total" | "base_unit_qty" | "promotion";
|
|
3920
3924
|
value: string[];
|
|
3921
3925
|
operator: "lte" | "lt" | "gte" | "gt" | "eq";
|
|
3922
3926
|
reject_if_pass: boolean;
|
|
3923
3927
|
limit_type: "count" | "price_amount";
|
|
3924
3928
|
limit_value: number;
|
|
3925
|
-
variants?:
|
|
3929
|
+
variants?: StringId[];
|
|
3926
3930
|
}
|
|
3927
3931
|
export interface LineAdjustment {
|
|
3932
|
+
_id?: StringId;
|
|
3928
3933
|
adjustment_type: "discount_amount" | "discount_ratio" | "fixed_price";
|
|
3929
3934
|
value: number;
|
|
3930
3935
|
}
|
|
3931
3936
|
export interface GetItem {
|
|
3937
|
+
_id?: StringId;
|
|
3932
3938
|
filter_type: "product" | "category" | "sub_category" | "product_group" | "brand" | "variant" | "gift";
|
|
3933
3939
|
value: string[];
|
|
3934
3940
|
limit_type: "count";
|
|
3935
3941
|
limit_value: number;
|
|
3936
3942
|
discount_ratio: number;
|
|
3937
|
-
variants?:
|
|
3943
|
+
variants?: StringId[];
|
|
3938
3944
|
}
|
|
3939
3945
|
interface Compound {
|
|
3946
|
+
_id?: StringId;
|
|
3940
3947
|
type: "compound";
|
|
3941
3948
|
manual_allocation?: boolean;
|
|
3942
3949
|
appliedCount: number;
|
|
@@ -3967,7 +3974,7 @@ export declare namespace Service {
|
|
|
3967
3974
|
}[];
|
|
3968
3975
|
}
|
|
3969
3976
|
export interface Data {
|
|
3970
|
-
_id:
|
|
3977
|
+
_id: StringId;
|
|
3971
3978
|
type: "compound";
|
|
3972
3979
|
from: number;
|
|
3973
3980
|
to: number;
|
|
@@ -3978,13 +3985,14 @@ export declare namespace Service {
|
|
|
3978
3985
|
duration?: number;
|
|
3979
3986
|
startsAt?: string;
|
|
3980
3987
|
disabled: boolean;
|
|
3981
|
-
promotions_groups?:
|
|
3988
|
+
promotions_groups?: StringId[];
|
|
3982
3989
|
details: Compound;
|
|
3983
|
-
copied_from?:
|
|
3990
|
+
copied_from?: StringId;
|
|
3984
3991
|
ref?: string;
|
|
3985
3992
|
company_namespace: string[];
|
|
3986
|
-
createdAt:
|
|
3987
|
-
updatedAt:
|
|
3993
|
+
createdAt: string;
|
|
3994
|
+
updatedAt: string;
|
|
3995
|
+
__v?: number;
|
|
3988
3996
|
}
|
|
3989
3997
|
interface CreateBody {
|
|
3990
3998
|
type: "compound";
|
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -4399,6 +4399,7 @@ export namespace Service {
|
|
|
4399
4399
|
|
|
4400
4400
|
export namespace Promotion {
|
|
4401
4401
|
export interface CartFilter {
|
|
4402
|
+
_id?: StringId;
|
|
4402
4403
|
filter_type:
|
|
4403
4404
|
| "product"
|
|
4404
4405
|
| "category"
|
|
@@ -4422,9 +4423,10 @@ export namespace Service {
|
|
|
4422
4423
|
reject_if_pass: { type: Boolean; default: false };
|
|
4423
4424
|
limit_type: "count" | "price_amount";
|
|
4424
4425
|
limit_value: number;
|
|
4425
|
-
variants?:
|
|
4426
|
+
variants?: StringId[];
|
|
4426
4427
|
}
|
|
4427
4428
|
export interface ItemFilter {
|
|
4429
|
+
_id?: StringId;
|
|
4428
4430
|
filter_type:
|
|
4429
4431
|
| "product"
|
|
4430
4432
|
| "category"
|
|
@@ -4432,13 +4434,15 @@ export namespace Service {
|
|
|
4432
4434
|
| "product_group"
|
|
4433
4435
|
| "brand"
|
|
4434
4436
|
| "variant"
|
|
4435
|
-
| "any"
|
|
4436
|
-
|
|
4437
|
+
| "any"
|
|
4438
|
+
| "gift";
|
|
4439
|
+
value: StringId[];
|
|
4437
4440
|
limit_type: "count" | "price_amount";
|
|
4438
4441
|
limit_value: number;
|
|
4439
|
-
variants?:
|
|
4442
|
+
variants?: StringId[];
|
|
4440
4443
|
}
|
|
4441
4444
|
export interface CartAdjustment {
|
|
4445
|
+
_id?: StringId;
|
|
4442
4446
|
adjustment_type:
|
|
4443
4447
|
| "discount_amount"
|
|
4444
4448
|
| "discount_ratio"
|
|
@@ -4449,6 +4453,7 @@ export namespace Service {
|
|
|
4449
4453
|
value: any;
|
|
4450
4454
|
}
|
|
4451
4455
|
export interface LineFilter {
|
|
4456
|
+
_id?: StringId;
|
|
4452
4457
|
filter_type:
|
|
4453
4458
|
| "product"
|
|
4454
4459
|
| "category"
|
|
@@ -4464,13 +4469,15 @@ export namespace Service {
|
|
|
4464
4469
|
reject_if_pass: boolean;
|
|
4465
4470
|
limit_type: "count" | "price_amount";
|
|
4466
4471
|
limit_value: number;
|
|
4467
|
-
variants?:
|
|
4472
|
+
variants?: StringId[];
|
|
4468
4473
|
}
|
|
4469
4474
|
export interface LineAdjustment {
|
|
4475
|
+
_id?: StringId;
|
|
4470
4476
|
adjustment_type: "discount_amount" | "discount_ratio" | "fixed_price";
|
|
4471
4477
|
value: number;
|
|
4472
4478
|
}
|
|
4473
4479
|
export interface GetItem {
|
|
4480
|
+
_id?: StringId;
|
|
4474
4481
|
filter_type:
|
|
4475
4482
|
| "product"
|
|
4476
4483
|
| "category"
|
|
@@ -4483,10 +4490,11 @@ export namespace Service {
|
|
|
4483
4490
|
limit_type: "count";
|
|
4484
4491
|
limit_value: number;
|
|
4485
4492
|
discount_ratio: number;
|
|
4486
|
-
variants?:
|
|
4493
|
+
variants?: StringId[];
|
|
4487
4494
|
}
|
|
4488
4495
|
|
|
4489
4496
|
interface Compound {
|
|
4497
|
+
_id?: StringId;
|
|
4490
4498
|
type: "compound";
|
|
4491
4499
|
manual_allocation?: boolean;
|
|
4492
4500
|
appliedCount: number;
|
|
@@ -4522,7 +4530,7 @@ export namespace Service {
|
|
|
4522
4530
|
}
|
|
4523
4531
|
|
|
4524
4532
|
export interface Data {
|
|
4525
|
-
_id:
|
|
4533
|
+
_id: StringId;
|
|
4526
4534
|
type: "compound";
|
|
4527
4535
|
from: number;
|
|
4528
4536
|
to: number;
|
|
@@ -4533,13 +4541,14 @@ export namespace Service {
|
|
|
4533
4541
|
duration?: number;
|
|
4534
4542
|
startsAt?: string;
|
|
4535
4543
|
disabled: boolean;
|
|
4536
|
-
promotions_groups?:
|
|
4544
|
+
promotions_groups?: StringId[];
|
|
4537
4545
|
details: Compound;
|
|
4538
|
-
copied_from?:
|
|
4546
|
+
copied_from?: StringId;
|
|
4539
4547
|
ref?: string;
|
|
4540
4548
|
company_namespace: string[];
|
|
4541
|
-
createdAt:
|
|
4542
|
-
updatedAt:
|
|
4549
|
+
createdAt: string;
|
|
4550
|
+
updatedAt: string;
|
|
4551
|
+
__v?: number;
|
|
4543
4552
|
}
|
|
4544
4553
|
|
|
4545
4554
|
interface CreateBody {
|