@medusajs/types 1.12.0-snapshot-20240405070935 → 1.12.0-snapshot-20240405154416
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth/common/auth-user.d.ts +21 -16
- package/dist/auth/common/auth-user.d.ts.map +1 -1
- package/dist/auth/common/provider.d.ts +28 -15
- package/dist/auth/common/provider.d.ts.map +1 -1
- package/dist/auth/service.d.ts +137 -75
- package/dist/auth/service.d.ts.map +1 -1
- package/dist/bundles.d.ts +2 -0
- package/dist/bundles.d.ts.map +1 -1
- package/dist/bundles.js +3 -1
- package/dist/bundles.js.map +1 -1
- package/dist/cart/common.d.ts +443 -62
- package/dist/cart/common.d.ts.map +1 -1
- package/dist/cart/mutations.d.ts +483 -0
- package/dist/cart/mutations.d.ts.map +1 -1
- package/dist/cart/mutations.js.map +1 -1
- package/dist/cart/service.d.ts +1607 -0
- package/dist/cart/service.d.ts.map +1 -1
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +1 -0
- package/dist/common/index.js.map +1 -1
- package/dist/common/rule.d.ts +2 -0
- package/dist/common/rule.d.ts.map +1 -0
- package/dist/common/rule.js +3 -0
- package/dist/common/rule.js.map +1 -0
- package/dist/customer/service.d.ts +445 -197
- package/dist/customer/service.d.ts.map +1 -1
- package/dist/file/common.d.ts +14 -0
- package/dist/file/common.d.ts.map +1 -0
- package/dist/file/common.js +3 -0
- package/dist/file/common.js.map +1 -0
- package/dist/file/index.d.ts +4 -0
- package/dist/file/index.d.ts.map +1 -0
- package/dist/file/index.js +20 -0
- package/dist/file/index.js.map +1 -0
- package/dist/file/mutations.d.ts +18 -0
- package/dist/file/mutations.d.ts.map +1 -0
- package/dist/file/mutations.js +3 -0
- package/dist/file/mutations.js.map +1 -0
- package/dist/file/service.d.ts +76 -0
- package/dist/file/service.d.ts.map +1 -0
- package/dist/file/service.js +3 -0
- package/dist/file/service.js.map +1 -0
- package/dist/fulfillment/mutations/shipping-option-rule.d.ts +2 -2
- package/dist/fulfillment/mutations/shipping-option-rule.d.ts.map +1 -1
- package/dist/http/fulfillment/admin/fulfillment-address.d.ts +22 -0
- package/dist/http/fulfillment/admin/fulfillment-address.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-address.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-address.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-item.d.ts +17 -0
- package/dist/http/fulfillment/admin/fulfillment-item.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-item.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-item.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-label.d.ts +14 -0
- package/dist/http/fulfillment/admin/fulfillment-label.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-label.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-label.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-provider.d.ts +12 -0
- package/dist/http/fulfillment/admin/fulfillment-provider.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-provider.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-provider.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-set.d.ts +15 -0
- package/dist/http/fulfillment/admin/fulfillment-set.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-set.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-set.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment.d.ts +27 -0
- package/dist/http/fulfillment/admin/fulfillment.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment.js.map +1 -0
- package/dist/http/fulfillment/admin/geo-zone.d.ts +17 -0
- package/dist/http/fulfillment/admin/geo-zone.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/geo-zone.js +3 -0
- package/dist/http/fulfillment/admin/geo-zone.js.map +1 -0
- package/dist/http/fulfillment/admin/index.d.ts +13 -0
- package/dist/http/fulfillment/admin/index.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/index.js +29 -0
- package/dist/http/fulfillment/admin/index.js.map +1 -0
- package/dist/http/fulfillment/admin/service-zone.d.ts +14 -0
- package/dist/http/fulfillment/admin/service-zone.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/service-zone.js +3 -0
- package/dist/http/fulfillment/admin/service-zone.js.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option-rule.d.ts +16 -0
- package/dist/http/fulfillment/admin/shipping-option-rule.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option-rule.js +3 -0
- package/dist/http/fulfillment/admin/shipping-option-rule.js.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option-type.d.ts +14 -0
- package/dist/http/fulfillment/admin/shipping-option-type.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option-type.js +3 -0
- package/dist/http/fulfillment/admin/shipping-option-type.js.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option.d.ts +31 -0
- package/dist/http/fulfillment/admin/shipping-option.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option.js +3 -0
- package/dist/http/fulfillment/admin/shipping-option.js.map +1 -0
- package/dist/http/fulfillment/admin/shipping-profile.d.ts +13 -0
- package/dist/http/fulfillment/admin/shipping-profile.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/shipping-profile.js +3 -0
- package/dist/http/fulfillment/admin/shipping-profile.js.map +1 -0
- package/dist/http/fulfillment/index.d.ts +2 -0
- package/dist/http/fulfillment/index.d.ts.map +1 -0
- package/dist/http/fulfillment/index.js +18 -0
- package/dist/http/fulfillment/index.js.map +1 -0
- package/dist/http/index.d.ts +2 -0
- package/dist/http/index.d.ts.map +1 -0
- package/dist/http/index.js +18 -0
- package/dist/http/index.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/inventory/common/inventory-item.d.ts +55 -64
- package/dist/inventory/common/inventory-item.d.ts.map +1 -1
- package/dist/inventory/common/inventory-level.d.ts +37 -37
- package/dist/inventory/common/inventory-level.d.ts.map +1 -1
- package/dist/inventory/common/reservation-item.d.ts +34 -44
- package/dist/inventory/common/reservation-item.d.ts.map +1 -1
- package/dist/inventory/service-next.d.ts +596 -534
- package/dist/inventory/service-next.d.ts.map +1 -1
- package/dist/payment/common.d.ts +174 -53
- package/dist/payment/common.d.ts.map +1 -1
- package/dist/payment/common.js +3 -3
- package/dist/payment/common.js.map +1 -1
- package/dist/payment/mutations.d.ts +58 -17
- package/dist/payment/mutations.d.ts.map +1 -1
- package/dist/payment/provider.d.ts +128 -43
- package/dist/payment/provider.d.ts.map +1 -1
- package/dist/payment/provider.js.map +1 -1
- package/dist/payment/service.d.ts +460 -39
- package/dist/payment/service.d.ts.map +1 -1
- package/dist/pricing/common/price-list.d.ts +2 -2
- package/dist/pricing/common/price-set.d.ts +6 -4
- package/dist/pricing/common/price-set.d.ts.map +1 -1
- package/dist/pricing/service.d.ts +731 -1695
- package/dist/pricing/service.d.ts.map +1 -1
- package/dist/promotion/common/application-method.d.ts +153 -0
- package/dist/promotion/common/application-method.d.ts.map +1 -1
- package/dist/promotion/common/campaign-budget.d.ts +37 -0
- package/dist/promotion/common/campaign-budget.d.ts.map +1 -1
- package/dist/promotion/common/campaign.d.ts +36 -0
- package/dist/promotion/common/campaign.d.ts.map +1 -1
- package/dist/promotion/common/compute-actions.d.ts +135 -0
- package/dist/promotion/common/compute-actions.d.ts.map +1 -1
- package/dist/promotion/common/promotion-rule-value.d.ts +30 -0
- package/dist/promotion/common/promotion-rule-value.d.ts.map +1 -1
- package/dist/promotion/common/promotion-rule.d.ts +77 -0
- package/dist/promotion/common/promotion-rule.d.ts.map +1 -1
- package/dist/promotion/common/promotion.d.ts +100 -0
- package/dist/promotion/common/promotion.d.ts.map +1 -1
- package/dist/promotion/mutations.d.ts +84 -0
- package/dist/promotion/mutations.d.ts.map +1 -1
- package/dist/promotion/service.d.ts +786 -0
- package/dist/promotion/service.d.ts.map +1 -1
- package/dist/stock-location/common.d.ts +14 -0
- package/dist/stock-location/common.d.ts.map +1 -1
- package/dist/stock-location/service-next.d.ts +178 -186
- package/dist/stock-location/service-next.d.ts.map +1 -1
- package/dist/store/common/store.d.ts +42 -0
- package/dist/store/common/store.d.ts.map +1 -1
- package/dist/store/mutations/store.d.ts +75 -0
- package/dist/store/mutations/store.d.ts.map +1 -1
- package/dist/store/service.d.ts +113 -75
- package/dist/store/service.d.ts.map +1 -1
- package/dist/tax/common.d.ts +298 -10
- package/dist/tax/common.d.ts.map +1 -1
- package/dist/tax/mutations.d.ts +157 -0
- package/dist/tax/mutations.d.ts.map +1 -1
- package/dist/tax/provider.d.ts +126 -0
- package/dist/tax/provider.d.ts.map +1 -1
- package/dist/tax/service.d.ts +600 -0
- package/dist/tax/service.d.ts.map +1 -1
- package/package.json +1 -1
@@ -1,31 +1,108 @@
|
|
1
1
|
import { BaseFilterable } from "../../dal";
|
2
2
|
import { PromotionRuleValueDTO } from "./promotion-rule-value";
|
3
|
+
/**
|
4
|
+
* @interface
|
5
|
+
*
|
6
|
+
* The possible operators to use in a promotion rule.
|
7
|
+
*/
|
3
8
|
export type PromotionRuleOperatorValues = "gt" | "lt" | "eq" | "ne" | "in" | "lte" | "gte";
|
9
|
+
/**
|
10
|
+
* The promotion rule details.
|
11
|
+
*/
|
4
12
|
export interface PromotionRuleDTO {
|
13
|
+
/**
|
14
|
+
* The ID of the promotion rule.
|
15
|
+
*/
|
5
16
|
id: string;
|
17
|
+
/**
|
18
|
+
* The description of the promotion rule.
|
19
|
+
*/
|
6
20
|
description?: string | null;
|
21
|
+
/**
|
22
|
+
* The attribute of the promotion rule.
|
23
|
+
*/
|
7
24
|
attribute?: string;
|
25
|
+
/**
|
26
|
+
* The operator of the promotion rule.
|
27
|
+
*/
|
8
28
|
operator?: PromotionRuleOperatorValues;
|
29
|
+
/**
|
30
|
+
* The values of the promotion rule.
|
31
|
+
*/
|
9
32
|
values: PromotionRuleValueDTO[];
|
10
33
|
}
|
34
|
+
/**
|
35
|
+
* The promotion rule to be created.
|
36
|
+
*/
|
11
37
|
export interface CreatePromotionRuleDTO {
|
38
|
+
/**
|
39
|
+
* The description of the promotion rule.
|
40
|
+
*/
|
12
41
|
description?: string | null;
|
42
|
+
/**
|
43
|
+
* The attribute of the promotion rule.
|
44
|
+
*/
|
13
45
|
attribute: string;
|
46
|
+
/**
|
47
|
+
* The operator of the promotion rule.
|
48
|
+
*/
|
14
49
|
operator: PromotionRuleOperatorValues;
|
50
|
+
/**
|
51
|
+
* The values of the promotion rule.
|
52
|
+
* When provided, `PromotionRuleValue` records are
|
53
|
+
* created and associated with the promotion rule.
|
54
|
+
*/
|
15
55
|
values: string[] | string;
|
16
56
|
}
|
57
|
+
/**
|
58
|
+
* The attributes to update in the promotion rule.
|
59
|
+
*/
|
17
60
|
export interface UpdatePromotionRuleDTO {
|
61
|
+
/**
|
62
|
+
* The ID of the promotion rule.
|
63
|
+
*/
|
18
64
|
id: string;
|
65
|
+
/**
|
66
|
+
* The description of the promotion rule.
|
67
|
+
*/
|
19
68
|
description?: string | null;
|
69
|
+
/**
|
70
|
+
* The attribute of the promotion rule.
|
71
|
+
*/
|
20
72
|
attribute?: string;
|
73
|
+
/**
|
74
|
+
* The operator of the promotion rule.
|
75
|
+
*/
|
21
76
|
operator?: PromotionRuleOperatorValues;
|
77
|
+
/**
|
78
|
+
* The values of the promotion rule.
|
79
|
+
* When provided, `PromotionRuleValue` records are
|
80
|
+
* created and associated with the promotion rule.
|
81
|
+
*/
|
22
82
|
values?: string[] | string;
|
23
83
|
}
|
84
|
+
/**
|
85
|
+
* The details required when removing a promotion rule.
|
86
|
+
*/
|
24
87
|
export interface RemovePromotionRuleDTO {
|
88
|
+
/**
|
89
|
+
* The ID of the promotion rule to remove.
|
90
|
+
*/
|
25
91
|
id: string;
|
26
92
|
}
|
93
|
+
/**
|
94
|
+
* The filters to apply on the retrieved promotion rules.
|
95
|
+
*/
|
27
96
|
export interface FilterablePromotionRuleProps extends BaseFilterable<FilterablePromotionRuleProps> {
|
97
|
+
/**
|
98
|
+
* The IDs to filter the promotion rules by.
|
99
|
+
*/
|
28
100
|
id?: string[];
|
29
101
|
}
|
102
|
+
/**
|
103
|
+
* @interface
|
104
|
+
*
|
105
|
+
* The promotion rule's possible types.
|
106
|
+
*/
|
30
107
|
export type PromotionRuleTypes = "buy_rules" | "target_rules" | "rules";
|
31
108
|
//# sourceMappingURL=promotion-rule.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"promotion-rule.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/promotion-rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAE9D,MAAM,MAAM,2BAA2B,GACnC,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,KAAK,CAAA;AAET,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;
|
1
|
+
{"version":3,"file":"promotion-rule.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/promotion-rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAE9D;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GACnC,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,KAAK,CAAA;AAET;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,2BAA2B,CAAA;IAEtC;;OAEG;IACH,MAAM,EAAE,qBAAqB,EAAE,CAAA;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,QAAQ,EAAE,2BAA2B,CAAA;IAErC;;;;OAIG;IACH,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,2BAA2B,CAAA;IAEtC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;CACX;AAED;;GAEG;AACH,MAAM,WAAW,4BACf,SAAQ,cAAc,CAAC,4BAA4B,CAAC;IACpD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;CACd;AAED;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,cAAc,GAAG,OAAO,CAAA"}
|
@@ -3,38 +3,138 @@ import { CreateCampaignDTO } from "../mutations";
|
|
3
3
|
import { ApplicationMethodDTO, CreateApplicationMethodDTO, UpdateApplicationMethodDTO } from "./application-method";
|
4
4
|
import { CampaignDTO } from "./campaign";
|
5
5
|
import { CreatePromotionRuleDTO, PromotionRuleDTO } from "./promotion-rule";
|
6
|
+
/**
|
7
|
+
* @interface
|
8
|
+
*
|
9
|
+
* The promotion's possible types.
|
10
|
+
*/
|
6
11
|
export type PromotionTypeValues = "standard" | "buyget";
|
12
|
+
/**
|
13
|
+
* The promotion details.
|
14
|
+
*/
|
7
15
|
export interface PromotionDTO {
|
16
|
+
/**
|
17
|
+
* The ID of the promotion.
|
18
|
+
*/
|
8
19
|
id: string;
|
20
|
+
/**
|
21
|
+
* The code of the promotion.
|
22
|
+
*/
|
9
23
|
code?: string;
|
24
|
+
/**
|
25
|
+
* The type of the promotion:
|
26
|
+
*
|
27
|
+
* - `standard` indicates that a promotion is a standard one applied with conditions.
|
28
|
+
* - `buyget` indicates that a promotion is a "Buy X get Y" promotion.
|
29
|
+
*
|
30
|
+
*/
|
10
31
|
type?: PromotionTypeValues;
|
32
|
+
/**
|
33
|
+
* Whether the promotion is applied automatically.
|
34
|
+
*/
|
11
35
|
is_automatic?: boolean;
|
36
|
+
/**
|
37
|
+
* The associated application method.
|
38
|
+
*/
|
12
39
|
application_method?: ApplicationMethodDTO;
|
40
|
+
/**
|
41
|
+
* The rules of the promotion.
|
42
|
+
*/
|
13
43
|
rules?: PromotionRuleDTO[];
|
44
|
+
/**
|
45
|
+
* The associated campaign.
|
46
|
+
*/
|
14
47
|
campaign?: CampaignDTO;
|
15
48
|
}
|
49
|
+
/**
|
50
|
+
* The promotion to be created.
|
51
|
+
*/
|
16
52
|
export interface CreatePromotionDTO {
|
53
|
+
/**
|
54
|
+
* The code of the promotion.
|
55
|
+
*/
|
17
56
|
code: string;
|
57
|
+
/**
|
58
|
+
* The type of the promotion:
|
59
|
+
*
|
60
|
+
* - `standard` indicates that a promotion is a standard one applied with conditions.
|
61
|
+
* - `buyget` indicates that a promotion is a "Buy X get Y" promotion.
|
62
|
+
*
|
63
|
+
*/
|
18
64
|
type: PromotionTypeValues;
|
65
|
+
/**
|
66
|
+
* Whether the promotion is applied automatically.
|
67
|
+
*/
|
19
68
|
is_automatic?: boolean;
|
69
|
+
/**
|
70
|
+
* The associated application method.
|
71
|
+
*/
|
20
72
|
application_method?: CreateApplicationMethodDTO;
|
73
|
+
/**
|
74
|
+
* The rules of the promotion.
|
75
|
+
*/
|
21
76
|
rules?: CreatePromotionRuleDTO[];
|
77
|
+
/**
|
78
|
+
* The associated campaign.
|
79
|
+
*/
|
22
80
|
campaign?: CreateCampaignDTO;
|
81
|
+
/**
|
82
|
+
* The associated campaign's ID.
|
83
|
+
*/
|
23
84
|
campaign_id?: string;
|
24
85
|
}
|
86
|
+
/**
|
87
|
+
* The attributes to update in the promotion.
|
88
|
+
*/
|
25
89
|
export interface UpdatePromotionDTO {
|
90
|
+
/**
|
91
|
+
* The ID of the promotion.
|
92
|
+
*/
|
26
93
|
id: string;
|
94
|
+
/**
|
95
|
+
* Whether the promotion is applied automatically.
|
96
|
+
*/
|
27
97
|
is_automatic?: boolean;
|
98
|
+
/**
|
99
|
+
* The code of the promotion.
|
100
|
+
*/
|
28
101
|
code?: string;
|
102
|
+
/**
|
103
|
+
* The type of the promotion.
|
104
|
+
*/
|
29
105
|
type?: PromotionTypeValues;
|
106
|
+
/**
|
107
|
+
* The associated application method.
|
108
|
+
*/
|
30
109
|
application_method?: UpdateApplicationMethodDTO;
|
110
|
+
/**
|
111
|
+
* The associated campaign's ID.
|
112
|
+
*/
|
31
113
|
campaign_id?: string;
|
32
114
|
}
|
115
|
+
/**
|
116
|
+
* The filters to apply on the retrieved promotions.
|
117
|
+
*/
|
33
118
|
export interface FilterablePromotionProps extends BaseFilterable<FilterablePromotionProps> {
|
119
|
+
/**
|
120
|
+
* The IDs to filter the promotions by.
|
121
|
+
*/
|
34
122
|
id?: string | string[];
|
123
|
+
/**
|
124
|
+
* Filter promotions by their code.
|
125
|
+
*/
|
35
126
|
code?: string | string[] | OperatorMap<string>;
|
127
|
+
/**
|
128
|
+
* Filter promotions by the ID of their associated campaign budget.
|
129
|
+
*/
|
36
130
|
budget_id?: string[] | OperatorMap<string>;
|
131
|
+
/**
|
132
|
+
* Filter promotions by whether they're applied automatically.
|
133
|
+
*/
|
37
134
|
is_automatic?: boolean;
|
135
|
+
/**
|
136
|
+
* Filter promotions by their type.
|
137
|
+
*/
|
38
138
|
type?: PromotionTypeValues[];
|
39
139
|
}
|
40
140
|
//# sourceMappingURL=promotion.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"promotion.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/promotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAE3E,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,QAAQ,CAAA;AAEvD,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;
|
1
|
+
{"version":3,"file":"promotion.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/promotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAE3E;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,QAAQ,CAAA;AAEvD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,mBAAmB,CAAA;IAE1B;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IAEtB;;OAEG;IACH,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;IAEzC;;OAEG;IACH,KAAK,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAA;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;;;;;OAMG;IACH,IAAI,EAAE,mBAAmB,CAAA;IAEzB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IAEtB;;OAEG;IACH,kBAAkB,CAAC,EAAE,0BAA0B,CAAA;IAE/C;;OAEG;IACH,KAAK,CAAC,EAAE,sBAAsB,EAAE,CAAA;IAEhC;;OAEG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAE5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,mBAAmB,CAAA;IAE1B;;OAEG;IACH,kBAAkB,CAAC,EAAE,0BAA0B,CAAA;IAE/C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,wBACf,SAAQ,cAAc,CAAC,wBAAwB,CAAC;IAChD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAE9C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAE1C;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,mBAAmB,EAAE,CAAA;CAC7B"}
|
@@ -1,34 +1,118 @@
|
|
1
1
|
import { CampaignBudgetTypeValues, PromotionDTO } from "./common";
|
2
|
+
/**
|
3
|
+
* The campaign budget to be created.
|
4
|
+
*/
|
2
5
|
export interface CreateCampaignBudgetDTO {
|
6
|
+
/**
|
7
|
+
* The type of the campaign budget.
|
8
|
+
*/
|
3
9
|
type: CampaignBudgetTypeValues;
|
10
|
+
/**
|
11
|
+
* The limit of the campaign budget.
|
12
|
+
*/
|
4
13
|
limit: number | null;
|
14
|
+
/**
|
15
|
+
* How much is used of the campaign budget.
|
16
|
+
*/
|
5
17
|
used?: number;
|
6
18
|
}
|
19
|
+
/**
|
20
|
+
* The attributes to update in the campaign budget.
|
21
|
+
*/
|
7
22
|
export interface UpdateCampaignBudgetDTO {
|
23
|
+
/**
|
24
|
+
* The ID of the campaign budget.
|
25
|
+
*/
|
8
26
|
id: string;
|
27
|
+
/**
|
28
|
+
* The type of the campaign budget.
|
29
|
+
*/
|
9
30
|
type?: CampaignBudgetTypeValues;
|
31
|
+
/**
|
32
|
+
* The limit of the campaign budget.
|
33
|
+
*/
|
10
34
|
limit?: number | null;
|
35
|
+
/**
|
36
|
+
* How much is used of the campaign budget.
|
37
|
+
*/
|
11
38
|
used?: number;
|
12
39
|
}
|
40
|
+
/**
|
41
|
+
* The campaign to be created.
|
42
|
+
*/
|
13
43
|
export interface CreateCampaignDTO {
|
44
|
+
/**
|
45
|
+
* The name of the campaign.
|
46
|
+
*/
|
14
47
|
name: string;
|
48
|
+
/**
|
49
|
+
* The description of the campaign.
|
50
|
+
*/
|
15
51
|
description?: string;
|
52
|
+
/**
|
53
|
+
* The currency of the campaign.
|
54
|
+
*/
|
16
55
|
currency?: string;
|
56
|
+
/**
|
57
|
+
* The campaign identifier of the campaign.
|
58
|
+
*/
|
17
59
|
campaign_identifier: string;
|
60
|
+
/**
|
61
|
+
* The start date of the campaign.
|
62
|
+
*/
|
18
63
|
starts_at: Date;
|
64
|
+
/**
|
65
|
+
* The end date of the campaign.
|
66
|
+
*/
|
19
67
|
ends_at: Date;
|
68
|
+
/**
|
69
|
+
* The associated campaign budget.
|
70
|
+
*/
|
20
71
|
budget?: CreateCampaignBudgetDTO;
|
72
|
+
/**
|
73
|
+
* The promotions of the campaign.
|
74
|
+
*/
|
21
75
|
promotions?: Pick<PromotionDTO, "id">[];
|
22
76
|
}
|
77
|
+
/**
|
78
|
+
* The attributes to update in the campaign.
|
79
|
+
*/
|
23
80
|
export interface UpdateCampaignDTO {
|
81
|
+
/**
|
82
|
+
* The ID of the campaign.
|
83
|
+
*/
|
24
84
|
id: string;
|
85
|
+
/**
|
86
|
+
* The name of the campaign.
|
87
|
+
*/
|
25
88
|
name?: string;
|
89
|
+
/**
|
90
|
+
* The description of the campaign.
|
91
|
+
*/
|
26
92
|
description?: string;
|
93
|
+
/**
|
94
|
+
* The currency of the campaign.
|
95
|
+
*/
|
27
96
|
currency?: string;
|
97
|
+
/**
|
98
|
+
* The campaign identifier of the campaign.
|
99
|
+
*/
|
28
100
|
campaign_identifier?: string;
|
101
|
+
/**
|
102
|
+
* The start date of the campaign.
|
103
|
+
*/
|
29
104
|
starts_at?: Date;
|
105
|
+
/**
|
106
|
+
* The end date of the campaign.
|
107
|
+
*/
|
30
108
|
ends_at?: Date;
|
109
|
+
/**
|
110
|
+
* The budget of the campaign.
|
111
|
+
*/
|
31
112
|
budget?: Omit<UpdateCampaignBudgetDTO, "id">;
|
113
|
+
/**
|
114
|
+
* The promotions of the campaign.
|
115
|
+
*/
|
32
116
|
promotions?: Pick<PromotionDTO, "id">[];
|
33
117
|
}
|
34
118
|
//# sourceMappingURL=mutations.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/promotion/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEjE,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,wBAAwB,CAAA;
|
1
|
+
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/promotion/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEjE;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,EAAE,wBAAwB,CAAA;IAE9B;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,IAAI,CAAC,EAAE,wBAAwB,CAAA;IAE/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAE3B;;OAEG;IACH,SAAS,EAAE,IAAI,CAAA;IAEf;;OAEG;IACH,OAAO,EAAE,IAAI,CAAA;IAEb;;OAEG;IACH,MAAM,CAAC,EAAE,uBAAuB,CAAA;IAEhC;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,EAAE,CAAA;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAE5B;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAA;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,IAAI,CAAA;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAA;IAE5C;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,EAAE,CAAA;CACxC"}
|