@brytdesigns/shopify-ajax-cart-api 1.0.43 → 3.0.0
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/dist/effect/api/CartAdd.js +36 -9
- package/dist/effect/api/CartAdd.js.map +1 -1
- package/dist/effect/api/CartChange.js +32 -9
- package/dist/effect/api/CartChange.js.map +1 -1
- package/dist/effect/api/CartClear.js +26 -9
- package/dist/effect/api/CartClear.js.map +1 -1
- package/dist/effect/api/CartGet.js +35 -9
- package/dist/effect/api/CartGet.js.map +1 -1
- package/dist/effect/api/CartUpdate.js +31 -9
- package/dist/effect/api/CartUpdate.js.map +1 -1
- package/dist/effect/index.d.ts +1746 -899
- package/dist/effect/index.js +13 -13
- package/dist/effect/index.js.map +1 -1
- package/dist/effect/schema.js +970 -1059
- package/dist/effect/schema.js.map +1 -1
- package/dist/main/effect/api/CartAdd.js +36 -9
- package/dist/main/effect/api/CartAdd.js.map +1 -1
- package/dist/main/effect/api/CartChange.js +32 -9
- package/dist/main/effect/api/CartChange.js.map +1 -1
- package/dist/main/effect/api/CartClear.js +26 -9
- package/dist/main/effect/api/CartClear.js.map +1 -1
- package/dist/main/effect/api/CartGet.js +35 -9
- package/dist/main/effect/api/CartGet.js.map +1 -1
- package/dist/main/effect/api/CartUpdate.js +31 -9
- package/dist/main/effect/api/CartUpdate.js.map +1 -1
- package/dist/main/effect/index.js +13 -13
- package/dist/main/effect/index.js.map +1 -1
- package/dist/main/effect/schema.js +970 -1059
- package/dist/main/effect/schema.js.map +1 -1
- package/dist/main/index.d.ts +586 -1808
- package/dist/main/index.js +123 -235
- package/dist/main/index.js.map +1 -1
- package/package.json +11 -13
- package/dist/esm/index.js +0 -19525
- package/dist/esm/index.js.map +0 -1
package/dist/effect/index.d.ts
CHANGED
|
@@ -1,94 +1,207 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
+
import * as Cause from 'effect/Cause';
|
|
4
|
+
import * as Context from 'effect/Context';
|
|
5
|
+
import * as Data from 'effect/Data';
|
|
6
|
+
import * as Effect from 'effect/Effect';
|
|
7
|
+
import * as Layer from 'effect/Layer';
|
|
8
|
+
import * as LogLevel from 'effect/LogLevel';
|
|
9
|
+
import * as Pipeable from 'effect/Pipeable';
|
|
3
10
|
import * as Schema from 'effect/Schema';
|
|
4
11
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
declare const Input: Schema.Struct<{
|
|
13
|
+
readonly sections: Schema.optional<Schema.decodeTo<Schema.String, Schema.$Array<Schema.String>, never, never>>;
|
|
14
|
+
readonly sections_url: Schema.optional<Schema.String>;
|
|
15
|
+
}>;
|
|
16
|
+
export type UniqueKeys<T extends string> = T extends `${infer K},${infer Rest}` ? K | UniqueKeys<Rest> : T;
|
|
17
|
+
declare function makeResponseSchema<const T extends string>(input: T): Schema.$Record<Schema.Literals<UniqueKeys<T>[]>, Schema.NullOr<Schema.decodeTo<Schema.instanceOf<Element, Element>, Schema.String, never, never>>>;
|
|
18
|
+
declare const Origins: Context.Reference<readonly string[]>;
|
|
19
|
+
declare const layer$1: (origins: readonly string[]) => Layer.Layer<never>;
|
|
20
|
+
export interface IShopifyRoutes {
|
|
21
|
+
readonly account_addresses_url: string;
|
|
22
|
+
readonly account_login_url: string;
|
|
23
|
+
readonly account_logout_url: string;
|
|
24
|
+
readonly account_recover_url: string;
|
|
25
|
+
readonly account_register_url: string;
|
|
26
|
+
readonly account_url: string;
|
|
27
|
+
readonly all_products_collection_url: string;
|
|
28
|
+
readonly product_url: string;
|
|
29
|
+
readonly products_url: string;
|
|
30
|
+
readonly cart_add_url: string;
|
|
31
|
+
readonly cart_change_url: string;
|
|
32
|
+
readonly cart_clear_url: string;
|
|
33
|
+
readonly cart_update_url: string;
|
|
34
|
+
readonly cart_url: string;
|
|
35
|
+
readonly collections_url: string;
|
|
36
|
+
readonly predictive_search_url: string;
|
|
37
|
+
readonly product_recommendations_url: string;
|
|
38
|
+
readonly root_url: string;
|
|
39
|
+
readonly search_url: string;
|
|
40
|
+
readonly storefront_login_url: string;
|
|
41
|
+
}
|
|
42
|
+
export interface IStorefrontClientConfig {
|
|
43
|
+
readonly accessToken: string;
|
|
44
|
+
readonly shopName: string;
|
|
45
|
+
apiVersion: string;
|
|
46
|
+
}
|
|
47
|
+
declare const Defaults: IShopifyRoutes;
|
|
48
|
+
declare class ShopifyRoutes extends Data.Class<IShopifyRoutes> {
|
|
49
|
+
constructor();
|
|
50
|
+
}
|
|
51
|
+
declare const make: () => ShopifyRoutes;
|
|
52
|
+
declare const Routes: Context.Reference<IShopifyRoutes>;
|
|
53
|
+
declare const layer$2: (routes: IShopifyRoutes) => Layer.Layer<never>;
|
|
54
|
+
declare class StorefrontClientConfig extends Data.Class<IStorefrontClientConfig> {
|
|
55
|
+
constructor();
|
|
56
|
+
}
|
|
57
|
+
declare const make$1: () => StorefrontClientConfig;
|
|
58
|
+
declare const Origin: Context.Reference<string>;
|
|
59
|
+
declare const layer$3: (origin: string) => Layer.Layer<never>;
|
|
60
|
+
declare namespace Sections {
|
|
61
|
+
export { Input, makeResponseSchema };
|
|
62
|
+
}
|
|
63
|
+
declare namespace StorefrontOrigin {
|
|
64
|
+
export { Origin, layer$3 as layer$3 };
|
|
65
|
+
}
|
|
66
|
+
declare namespace AllowedRouteOrigins {
|
|
67
|
+
export { Origins, layer$1 as layer$1 };
|
|
68
|
+
}
|
|
69
|
+
declare namespace ShopifyRoutes$1 {
|
|
70
|
+
export { Defaults, Routes, ShopifyRoutes, layer$2 as layer$2, make };
|
|
71
|
+
}
|
|
72
|
+
declare namespace StorefrontClientConfig$1 {
|
|
73
|
+
export { StorefrontClientConfig, make$1 as make$1 };
|
|
74
|
+
}
|
|
75
|
+
declare namespace Window$1 {
|
|
76
|
+
export { AllowedRouteOrigins, ShopifyRoutes$1 as ShopifyRoutes$1, StorefrontClientConfig$1 as StorefrontClientConfig$1, StorefrontOrigin };
|
|
77
|
+
}
|
|
78
|
+
declare namespace Ajax {
|
|
79
|
+
export { Sections, Window$1 as Window$1 };
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Every route's input extends Shopify's `sections` pair, decoded.
|
|
83
|
+
*
|
|
84
|
+
* Constraining the descriptor on this is what lets {@link execute} read
|
|
85
|
+
* `decodedInput.sections` and {@link withSections} write it without a cast.
|
|
86
|
+
*/
|
|
87
|
+
export type AjaxInput = typeof Ajax.Sections.Input.Type;
|
|
88
|
+
/**
|
|
89
|
+
* The same input, encoded — which is what a descriptor actually carries.
|
|
90
|
+
*
|
|
91
|
+
* Worth stating plainly because the two differ in a way that bites:
|
|
92
|
+
* `sections` decodes from `ReadonlyArray<string>` to a comma-joined `string`,
|
|
93
|
+
* so the encoded side is the array. A descriptor holds encoded input, so
|
|
94
|
+
* {@link withSections} takes the array form.
|
|
95
|
+
*/
|
|
96
|
+
export type AjaxInputEncoded = typeof Ajax.Sections.Input.Encoded;
|
|
97
|
+
declare const METHODS_BY_URL: {
|
|
98
|
+
readonly products_url: "get";
|
|
99
|
+
readonly product_url: "get";
|
|
100
|
+
readonly predictive_search_url: "get";
|
|
101
|
+
readonly product_recommendations_url: "get";
|
|
102
|
+
readonly cart_add_url: "post";
|
|
103
|
+
readonly cart_update_url: "post";
|
|
104
|
+
readonly cart_url: "get";
|
|
105
|
+
readonly cart_change_url: "post";
|
|
106
|
+
readonly cart_clear_url: "post";
|
|
107
|
+
};
|
|
108
|
+
export type ValidAjaxRoutes = keyof typeof METHODS_BY_URL;
|
|
109
|
+
declare const TypeIdSymbol: unique symbol;
|
|
110
|
+
export type TypeId = typeof TypeIdSymbol;
|
|
111
|
+
/**
|
|
112
|
+
* A description of a Shopify Ajax request, before it is run.
|
|
113
|
+
*
|
|
114
|
+
* The reason this type exists at all: headers, sections and input are consumed
|
|
115
|
+
* *inside* the request effect, so there is nothing to modify once that effect
|
|
116
|
+
* has been constructed. `pipe(getCart(), withHeaders(...))` can only work if
|
|
117
|
+
* the thing in the pipe is a description rather than an `Effect`. {@link execute}
|
|
118
|
+
* is where the description becomes one.
|
|
119
|
+
*/
|
|
120
|
+
export interface AjaxRequest<A extends AjaxInput, I extends AjaxInputEncoded, RD, B, J, SD> extends Pipeable.Pipeable {
|
|
121
|
+
readonly [TypeIdSymbol]: TypeId;
|
|
122
|
+
readonly routeName: ValidAjaxRoutes;
|
|
123
|
+
readonly inputSchema: Schema.Codec<A, I, RD>;
|
|
124
|
+
readonly outputSchema: (sections?: string) => Schema.Codec<B, J, SD>;
|
|
125
|
+
readonly input: I;
|
|
126
|
+
readonly headers: Readonly<Record<string, string>>;
|
|
127
|
+
}
|
|
128
|
+
export type CartAddInput = Schema.Codec.Encoded<typeof CartAddInput>;
|
|
129
|
+
declare const CartAddInput: Schema.Struct<{
|
|
130
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
131
|
+
readonly id: Schema.Union<readonly [
|
|
132
|
+
Schema.Number,
|
|
133
|
+
Schema.NumberFromString,
|
|
134
|
+
Schema.String
|
|
12
135
|
]>;
|
|
13
|
-
quantity: Schema.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
selling_plan: Schema.optional<Schema.Union<[
|
|
25
|
-
typeof Schema.Number,
|
|
26
|
-
typeof Schema.NumberFromString,
|
|
27
|
-
typeof Schema.String
|
|
136
|
+
readonly quantity: Schema.withDecodingDefaultType<Schema.Number, never>;
|
|
137
|
+
readonly properties: Schema.withDecodingDefaultType<Schema.$Record<Schema.String, Schema.Union<readonly [
|
|
138
|
+
Schema.Null,
|
|
139
|
+
Schema.String,
|
|
140
|
+
Schema.Boolean,
|
|
141
|
+
Schema.Number
|
|
142
|
+
]>>, never>;
|
|
143
|
+
readonly selling_plan: Schema.optional<Schema.Union<readonly [
|
|
144
|
+
Schema.Number,
|
|
145
|
+
Schema.NumberFromString,
|
|
146
|
+
Schema.String
|
|
28
147
|
]>>;
|
|
29
148
|
}>>;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
Schema
|
|
38
|
-
Schema.Array$<typeof Schema.Number>
|
|
149
|
+
readonly sections: Schema.optional<Schema.decodeTo<Schema.String, Schema.$Array<Schema.String>, never, never>>;
|
|
150
|
+
readonly sections_url: Schema.optional<Schema.String>;
|
|
151
|
+
}>;
|
|
152
|
+
export type CartUpdateInput = Schema.Codec.Encoded<typeof CartUpdateInput>;
|
|
153
|
+
declare const CartUpdateInput: Schema.Struct<{
|
|
154
|
+
readonly updates: Schema.optional<Schema.Union<readonly [
|
|
155
|
+
Schema.$Record<Schema.String, Schema.Number>,
|
|
156
|
+
Schema.$Array<Schema.Number>
|
|
39
157
|
]>>;
|
|
40
|
-
note: Schema.optional<Schema.NullOr<
|
|
41
|
-
attributes: Schema.optional<Schema
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
158
|
+
readonly note: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
159
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Union<readonly [
|
|
160
|
+
Schema.Null,
|
|
161
|
+
Schema.String,
|
|
162
|
+
Schema.Boolean,
|
|
163
|
+
Schema.Number
|
|
46
164
|
]>>>;
|
|
47
|
-
discount: Schema.optional<Schema.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
typeof Schema.NumberFromString,
|
|
62
|
-
typeof Schema.String
|
|
165
|
+
readonly discount: Schema.optional<Schema.decodeTo<Schema.String, Schema.$Array<Schema.String>, never, never>>;
|
|
166
|
+
readonly sections: Schema.optional<Schema.decodeTo<Schema.String, Schema.$Array<Schema.String>, never, never>>;
|
|
167
|
+
readonly sections_url: Schema.optional<Schema.String>;
|
|
168
|
+
}>;
|
|
169
|
+
export type CartChangeInput = Schema.Codec.Encoded<typeof CartChangeInput>;
|
|
170
|
+
declare const CartChangeInput: Schema.Union<readonly [
|
|
171
|
+
Schema.Struct<{
|
|
172
|
+
readonly id: Schema.String;
|
|
173
|
+
readonly quantity: Schema.optional<Schema.Number>;
|
|
174
|
+
readonly properties: Schema.optional<Schema.$Record<Schema.String, Schema.NullOr<Schema.String>>>;
|
|
175
|
+
readonly selling_plan: Schema.optional<Schema.NullOr<Schema.Union<readonly [
|
|
176
|
+
Schema.Number,
|
|
177
|
+
Schema.NumberFromString,
|
|
178
|
+
Schema.String
|
|
63
179
|
]>>>;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
typeof Schema.NumberFromString,
|
|
76
|
-
typeof Schema.String
|
|
180
|
+
readonly sections: Schema.optional<Schema.decodeTo<Schema.String, Schema.$Array<Schema.String>, never, never>>;
|
|
181
|
+
readonly sections_url: Schema.optional<Schema.String>;
|
|
182
|
+
}>,
|
|
183
|
+
Schema.Struct<{
|
|
184
|
+
readonly line: Schema.Number;
|
|
185
|
+
readonly quantity: Schema.optional<Schema.Number>;
|
|
186
|
+
readonly properties: Schema.optional<Schema.$Record<Schema.String, Schema.NullOr<Schema.String>>>;
|
|
187
|
+
readonly selling_plan: Schema.optional<Schema.NullOr<Schema.Union<readonly [
|
|
188
|
+
Schema.Number,
|
|
189
|
+
Schema.NumberFromString,
|
|
190
|
+
Schema.String
|
|
77
191
|
]>>>;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}>>>
|
|
192
|
+
readonly sections: Schema.optional<Schema.decodeTo<Schema.String, Schema.$Array<Schema.String>, never, never>>;
|
|
193
|
+
readonly sections_url: Schema.optional<Schema.String>;
|
|
194
|
+
}>
|
|
82
195
|
]>;
|
|
83
|
-
export type CartClearInput = Schema.
|
|
196
|
+
export type CartClearInput = Schema.Codec.Encoded<typeof CartClearInput>;
|
|
84
197
|
declare const CartClearInput: Schema.Struct<{
|
|
85
|
-
sections: Schema.optional<Schema.
|
|
86
|
-
sections_url: Schema.optional<
|
|
198
|
+
readonly sections: Schema.optional<Schema.decodeTo<Schema.String, Schema.$Array<Schema.String>, never, never>>;
|
|
199
|
+
readonly sections_url: Schema.optional<Schema.String>;
|
|
87
200
|
}>;
|
|
88
|
-
export type CartGetInput = Schema.
|
|
201
|
+
export type CartGetInput = Schema.Codec.Encoded<typeof CartClearInput>;
|
|
89
202
|
declare const CartGetInput: Schema.Struct<{
|
|
90
|
-
sections: Schema.optional<Schema.
|
|
91
|
-
sections_url: Schema.optional<
|
|
203
|
+
readonly sections: Schema.optional<Schema.decodeTo<Schema.String, Schema.$Array<Schema.String>, never, never>>;
|
|
204
|
+
readonly sections_url: Schema.optional<Schema.String>;
|
|
92
205
|
}>;
|
|
93
206
|
export type AddInput = CartAddInput;
|
|
94
207
|
export type ChangeInput = CartChangeInput;
|
|
@@ -98,7 +211,7 @@ export type UpdateInput = CartUpdateInput;
|
|
|
98
211
|
export declare namespace add {
|
|
99
212
|
type Input = AddInput;
|
|
100
213
|
}
|
|
101
|
-
export declare const add: (input?:
|
|
214
|
+
export declare const add: (input?: {
|
|
102
215
|
readonly items: readonly {
|
|
103
216
|
readonly id: string | number;
|
|
104
217
|
readonly selling_plan?: string | number | undefined;
|
|
@@ -107,965 +220,1699 @@ export declare const add: (input?: ({
|
|
|
107
220
|
} | undefined;
|
|
108
221
|
readonly quantity?: number | undefined;
|
|
109
222
|
}[];
|
|
110
|
-
} & {
|
|
111
223
|
readonly sections?: readonly string[] | undefined;
|
|
112
224
|
readonly sections_url?: string | undefined;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
readonly
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
readonly
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
225
|
+
} | undefined) => AjaxRequest<{
|
|
226
|
+
readonly items: readonly {
|
|
227
|
+
readonly id: string | number;
|
|
228
|
+
readonly properties: {
|
|
229
|
+
readonly [x: string]: string | number | boolean | null;
|
|
230
|
+
};
|
|
231
|
+
readonly quantity: number;
|
|
232
|
+
readonly selling_plan?: string | number | undefined;
|
|
233
|
+
}[];
|
|
234
|
+
readonly sections?: string | undefined;
|
|
235
|
+
readonly sections_url?: string | undefined;
|
|
236
|
+
}, {
|
|
237
|
+
readonly items: readonly {
|
|
238
|
+
readonly id: string | number;
|
|
239
|
+
readonly selling_plan?: string | number | undefined;
|
|
240
|
+
readonly properties?: {
|
|
241
|
+
readonly [x: string]: string | number | boolean | null;
|
|
242
|
+
} | undefined;
|
|
243
|
+
readonly quantity?: number | undefined;
|
|
244
|
+
}[];
|
|
245
|
+
readonly sections?: readonly string[] | undefined;
|
|
246
|
+
readonly sections_url?: string | undefined;
|
|
247
|
+
}, never, {
|
|
248
|
+
readonly items: readonly {
|
|
249
|
+
readonly title: string;
|
|
250
|
+
readonly key: string;
|
|
251
|
+
readonly url: string;
|
|
252
|
+
readonly image: string | null;
|
|
253
|
+
readonly price: number;
|
|
254
|
+
readonly id: string | number;
|
|
255
|
+
readonly selling_plan_allocation: {
|
|
256
|
+
readonly price_adjustments: readonly {
|
|
257
|
+
readonly position: number;
|
|
137
258
|
readonly price: number;
|
|
259
|
+
}[];
|
|
260
|
+
readonly price: number;
|
|
261
|
+
readonly compare_at_price: number;
|
|
262
|
+
readonly per_delivery_price: number;
|
|
263
|
+
readonly selling_plan: {
|
|
264
|
+
readonly id: string | number;
|
|
265
|
+
readonly name: string;
|
|
266
|
+
readonly description: string | null;
|
|
267
|
+
readonly options: readonly {
|
|
268
|
+
readonly name: string;
|
|
269
|
+
readonly position: number;
|
|
270
|
+
readonly value: string;
|
|
271
|
+
}[];
|
|
272
|
+
readonly recurring_deliveries: boolean;
|
|
273
|
+
readonly fixed_selling_plan: boolean;
|
|
138
274
|
readonly price_adjustments: readonly {
|
|
275
|
+
readonly order_count: number | null;
|
|
139
276
|
readonly position: number;
|
|
140
|
-
readonly
|
|
277
|
+
readonly value: string | number;
|
|
278
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
141
279
|
}[];
|
|
142
|
-
readonly selling_plan: {
|
|
143
|
-
readonly description: string | null;
|
|
144
|
-
readonly name: string;
|
|
145
|
-
readonly id: string | number;
|
|
146
|
-
readonly options: readonly {
|
|
147
|
-
readonly value: string;
|
|
148
|
-
readonly name: string;
|
|
149
|
-
readonly position: number;
|
|
150
|
-
}[];
|
|
151
|
-
readonly recurring_deliveries: boolean;
|
|
152
|
-
readonly fixed_selling_plan: boolean;
|
|
153
|
-
readonly price_adjustments: readonly {
|
|
154
|
-
readonly value: string | number;
|
|
155
|
-
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
156
|
-
readonly position: number;
|
|
157
|
-
readonly order_count: number | null;
|
|
158
|
-
}[];
|
|
159
|
-
};
|
|
160
|
-
readonly compare_at_price: number;
|
|
161
|
-
readonly per_delivery_price: number;
|
|
162
|
-
} | null;
|
|
163
|
-
readonly unit_price_measurement?: {
|
|
164
|
-
readonly measured_type: "volume" | "weight" | "dimension";
|
|
165
|
-
readonly quantity_unit: string;
|
|
166
|
-
readonly quantity_value: number;
|
|
167
|
-
readonly reference_unit: string;
|
|
168
|
-
readonly reference_value: number;
|
|
169
|
-
} | undefined;
|
|
170
|
-
readonly variant_options: readonly string[];
|
|
171
|
-
readonly properties: {
|
|
172
|
-
readonly [x: string]: string | number | boolean | null;
|
|
173
280
|
};
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
readonly
|
|
178
|
-
readonly
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
281
|
+
} | null;
|
|
282
|
+
readonly variant_options: readonly string[];
|
|
283
|
+
readonly discounts: readonly {
|
|
284
|
+
readonly amount: number;
|
|
285
|
+
readonly title: string;
|
|
286
|
+
}[];
|
|
287
|
+
readonly sku: string | null;
|
|
288
|
+
readonly product_type: string | null;
|
|
289
|
+
readonly product_description: string | null;
|
|
290
|
+
readonly variant_title: string | null;
|
|
291
|
+
readonly options_with_values: readonly {
|
|
292
|
+
readonly name: string;
|
|
293
|
+
readonly value: string;
|
|
294
|
+
}[];
|
|
295
|
+
readonly line_level_discount_allocations: readonly {
|
|
296
|
+
readonly amount: number;
|
|
297
|
+
readonly discount_application: {
|
|
298
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
299
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
182
300
|
readonly title: string;
|
|
183
|
-
readonly
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
readonly taxable: boolean;
|
|
189
|
-
readonly product_id: string | number;
|
|
190
|
-
readonly product_has_only_default_variant: boolean;
|
|
191
|
-
readonly gift_card: boolean;
|
|
192
|
-
readonly final_line_price: number;
|
|
193
|
-
readonly final_price: number;
|
|
194
|
-
readonly featured_image: {
|
|
195
|
-
readonly aspect_ratio: number | null;
|
|
196
|
-
readonly alt: string | null;
|
|
197
|
-
readonly height: number | null;
|
|
198
|
-
readonly url: string | null;
|
|
199
|
-
readonly width: number | null;
|
|
301
|
+
readonly total_allocated_amount: number;
|
|
302
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
303
|
+
readonly value: number;
|
|
304
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
305
|
+
readonly description: string | null;
|
|
200
306
|
};
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
readonly
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
readonly
|
|
225
|
-
readonly
|
|
226
|
-
readonly
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
307
|
+
}[];
|
|
308
|
+
readonly has_components: boolean;
|
|
309
|
+
readonly properties: {
|
|
310
|
+
readonly [x: string]: string | number | boolean | null;
|
|
311
|
+
};
|
|
312
|
+
readonly quantity: number;
|
|
313
|
+
readonly variant_id: string | number;
|
|
314
|
+
readonly original_price: number;
|
|
315
|
+
readonly discounted_price: number;
|
|
316
|
+
readonly line_price: number;
|
|
317
|
+
readonly original_line_price: number;
|
|
318
|
+
readonly total_discount: number;
|
|
319
|
+
readonly grams: number;
|
|
320
|
+
readonly vendor: string;
|
|
321
|
+
readonly taxable: boolean;
|
|
322
|
+
readonly product_id: string | number;
|
|
323
|
+
readonly product_has_only_default_variant: boolean;
|
|
324
|
+
readonly gift_card: boolean;
|
|
325
|
+
readonly final_line_price: number;
|
|
326
|
+
readonly final_price: number;
|
|
327
|
+
readonly featured_image: {
|
|
328
|
+
readonly aspect_ratio: number | null;
|
|
329
|
+
readonly alt: string | null;
|
|
330
|
+
readonly height: number | null;
|
|
331
|
+
readonly url: string | null;
|
|
332
|
+
readonly width: number | null;
|
|
333
|
+
};
|
|
334
|
+
readonly handle: string;
|
|
335
|
+
readonly requires_shipping: boolean;
|
|
336
|
+
readonly product_title: string;
|
|
337
|
+
readonly line_level_total_discount: number;
|
|
338
|
+
readonly properties_array: readonly {
|
|
339
|
+
readonly key: string;
|
|
340
|
+
readonly value: string | number | boolean | null;
|
|
341
|
+
}[];
|
|
342
|
+
readonly private_properties: {
|
|
343
|
+
readonly [x: string]: string | number | boolean | null;
|
|
344
|
+
};
|
|
345
|
+
readonly private_properties_array: readonly {
|
|
346
|
+
readonly key: string;
|
|
347
|
+
readonly value: string | number | boolean | null;
|
|
348
|
+
}[];
|
|
349
|
+
readonly public_properties: {
|
|
350
|
+
readonly [x: string]: string | number | boolean | null;
|
|
351
|
+
};
|
|
352
|
+
readonly public_properties_array: readonly {
|
|
353
|
+
readonly key: string;
|
|
354
|
+
readonly value: string | number | boolean | null;
|
|
355
|
+
}[];
|
|
356
|
+
readonly quantity_rule?: {
|
|
357
|
+
readonly min: number;
|
|
358
|
+
readonly max: number | null;
|
|
359
|
+
readonly increment: number;
|
|
360
|
+
} | undefined;
|
|
361
|
+
readonly unit_price_measurement?: {
|
|
362
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
363
|
+
readonly quantity_unit: string;
|
|
364
|
+
readonly quantity_value: number;
|
|
365
|
+
readonly reference_unit: string;
|
|
366
|
+
readonly reference_value: number;
|
|
367
|
+
} | undefined;
|
|
368
|
+
readonly unit_price?: number | undefined;
|
|
369
|
+
}[];
|
|
370
|
+
}, {
|
|
371
|
+
readonly items: readonly {
|
|
372
|
+
readonly title: string;
|
|
373
|
+
readonly key: string;
|
|
374
|
+
readonly url: string;
|
|
375
|
+
readonly image: string | null;
|
|
376
|
+
readonly price: number;
|
|
377
|
+
readonly id: string | number;
|
|
378
|
+
readonly sku: string | null;
|
|
379
|
+
readonly product_type: string | null;
|
|
380
|
+
readonly product_description: string | null;
|
|
381
|
+
readonly variant_title: string | null;
|
|
382
|
+
readonly options_with_values: readonly {
|
|
383
|
+
readonly name: string;
|
|
384
|
+
readonly value: string;
|
|
385
|
+
}[];
|
|
386
|
+
readonly line_level_discount_allocations: readonly {
|
|
387
|
+
readonly amount: number;
|
|
388
|
+
readonly discount_application: {
|
|
389
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
390
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
391
|
+
readonly title: string;
|
|
392
|
+
readonly total_allocated_amount: number;
|
|
393
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
394
|
+
readonly value: string | number;
|
|
395
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
396
|
+
readonly description: string | null;
|
|
234
397
|
};
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
398
|
+
}[];
|
|
399
|
+
readonly properties: {
|
|
400
|
+
readonly [x: string]: string | number | boolean | null;
|
|
401
|
+
};
|
|
402
|
+
readonly quantity: number;
|
|
403
|
+
readonly variant_id: string | number;
|
|
404
|
+
readonly original_price: number;
|
|
405
|
+
readonly discounted_price: number;
|
|
406
|
+
readonly line_price: number;
|
|
407
|
+
readonly original_line_price: number;
|
|
408
|
+
readonly total_discount: number;
|
|
409
|
+
readonly grams: number;
|
|
410
|
+
readonly vendor: string;
|
|
411
|
+
readonly taxable: boolean;
|
|
412
|
+
readonly product_id: string | number;
|
|
413
|
+
readonly product_has_only_default_variant: boolean;
|
|
414
|
+
readonly gift_card: boolean;
|
|
415
|
+
readonly final_line_price: number;
|
|
416
|
+
readonly final_price: number;
|
|
417
|
+
readonly featured_image: {
|
|
418
|
+
readonly aspect_ratio: number | null;
|
|
419
|
+
readonly alt: string | null;
|
|
420
|
+
readonly height: number | null;
|
|
421
|
+
readonly url: string | null;
|
|
422
|
+
readonly width: number | null;
|
|
423
|
+
};
|
|
424
|
+
readonly handle: string;
|
|
425
|
+
readonly requires_shipping: boolean;
|
|
426
|
+
readonly product_title: string;
|
|
427
|
+
readonly line_level_total_discount: number;
|
|
428
|
+
readonly quantity_rule?: {
|
|
429
|
+
readonly min: number;
|
|
430
|
+
readonly max: number | null;
|
|
431
|
+
readonly increment: number;
|
|
432
|
+
} | undefined;
|
|
433
|
+
readonly selling_plan_allocation?: {
|
|
434
|
+
readonly price_adjustments: readonly {
|
|
435
|
+
readonly position: number;
|
|
436
|
+
readonly price: number;
|
|
238
437
|
}[];
|
|
239
|
-
readonly
|
|
240
|
-
|
|
438
|
+
readonly price: number;
|
|
439
|
+
readonly compare_at_price: number;
|
|
440
|
+
readonly per_delivery_price: number;
|
|
441
|
+
readonly selling_plan: {
|
|
442
|
+
readonly description: string | null;
|
|
443
|
+
readonly name: string;
|
|
444
|
+
readonly options: readonly {
|
|
445
|
+
readonly name: string;
|
|
446
|
+
readonly position: number;
|
|
447
|
+
readonly value: string;
|
|
448
|
+
}[];
|
|
449
|
+
readonly price_adjustments: readonly {
|
|
450
|
+
readonly order_count: number | null;
|
|
451
|
+
readonly position: number;
|
|
452
|
+
readonly value: string | number;
|
|
453
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
454
|
+
}[];
|
|
455
|
+
readonly id: string | number;
|
|
456
|
+
readonly recurring_deliveries?: boolean | undefined;
|
|
457
|
+
readonly fixed_selling_plan?: boolean | undefined;
|
|
241
458
|
};
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
459
|
+
} | null | undefined;
|
|
460
|
+
readonly unit_price_measurement?: {
|
|
461
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
462
|
+
readonly quantity_unit: string;
|
|
463
|
+
readonly quantity_value: number;
|
|
464
|
+
readonly reference_unit: string;
|
|
465
|
+
readonly reference_value: number;
|
|
466
|
+
} | undefined;
|
|
467
|
+
readonly variant_options?: readonly string[] | undefined;
|
|
468
|
+
readonly discounts?: readonly {
|
|
469
|
+
readonly amount: number;
|
|
470
|
+
readonly title: string;
|
|
471
|
+
}[] | undefined;
|
|
472
|
+
readonly has_components?: boolean | undefined;
|
|
473
|
+
readonly unit_price?: number | undefined;
|
|
474
|
+
}[];
|
|
475
|
+
}, never>;
|
|
254
476
|
export declare namespace change {
|
|
255
477
|
type Input = ChangeInput;
|
|
256
478
|
}
|
|
257
|
-
export declare const change: (input?:
|
|
479
|
+
export declare const change: (input?: {
|
|
258
480
|
readonly id: string;
|
|
259
|
-
} & {
|
|
260
481
|
readonly selling_plan?: string | number | null | undefined;
|
|
261
482
|
readonly properties?: {
|
|
262
483
|
readonly [x: string]: string | null;
|
|
263
484
|
} | undefined;
|
|
264
485
|
readonly quantity?: number | undefined;
|
|
265
|
-
} & {
|
|
266
486
|
readonly sections?: readonly string[] | undefined;
|
|
267
487
|
readonly sections_url?: string | undefined;
|
|
268
|
-
}
|
|
488
|
+
} | {
|
|
269
489
|
readonly line: number;
|
|
270
|
-
} & {
|
|
271
490
|
readonly selling_plan?: string | number | null | undefined;
|
|
272
491
|
readonly properties?: {
|
|
273
492
|
readonly [x: string]: string | null;
|
|
274
493
|
} | undefined;
|
|
275
494
|
readonly quantity?: number | undefined;
|
|
276
|
-
} & {
|
|
277
495
|
readonly sections?: readonly string[] | undefined;
|
|
278
496
|
readonly sections_url?: string | undefined;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
readonly
|
|
283
|
-
|
|
284
|
-
status: number;
|
|
285
|
-
message: string;
|
|
286
|
-
description?: string;
|
|
497
|
+
} | undefined) => AjaxRequest<{
|
|
498
|
+
readonly id: string;
|
|
499
|
+
readonly selling_plan?: string | number | null | undefined;
|
|
500
|
+
readonly properties?: {
|
|
501
|
+
readonly [x: string]: string | null;
|
|
287
502
|
} | undefined;
|
|
503
|
+
readonly quantity?: number | undefined;
|
|
504
|
+
readonly sections?: string | undefined;
|
|
505
|
+
readonly sections_url?: string | undefined;
|
|
288
506
|
} | {
|
|
289
|
-
readonly
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
readonly
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
507
|
+
readonly line: number;
|
|
508
|
+
readonly selling_plan?: string | number | null | undefined;
|
|
509
|
+
readonly properties?: {
|
|
510
|
+
readonly [x: string]: string | null;
|
|
511
|
+
} | undefined;
|
|
512
|
+
readonly quantity?: number | undefined;
|
|
513
|
+
readonly sections?: string | undefined;
|
|
514
|
+
readonly sections_url?: string | undefined;
|
|
515
|
+
}, {
|
|
516
|
+
readonly id: string;
|
|
517
|
+
readonly selling_plan?: string | number | null | undefined;
|
|
518
|
+
readonly properties?: {
|
|
519
|
+
readonly [x: string]: string | null;
|
|
520
|
+
} | undefined;
|
|
521
|
+
readonly quantity?: number | undefined;
|
|
522
|
+
readonly sections?: readonly string[] | undefined;
|
|
523
|
+
readonly sections_url?: string | undefined;
|
|
524
|
+
} | {
|
|
525
|
+
readonly line: number;
|
|
526
|
+
readonly selling_plan?: string | number | null | undefined;
|
|
527
|
+
readonly properties?: {
|
|
528
|
+
readonly [x: string]: string | null;
|
|
529
|
+
} | undefined;
|
|
530
|
+
readonly quantity?: number | undefined;
|
|
531
|
+
readonly sections?: readonly string[] | undefined;
|
|
532
|
+
readonly sections_url?: string | undefined;
|
|
533
|
+
}, never, {
|
|
534
|
+
readonly token: string;
|
|
535
|
+
readonly note: string | null;
|
|
536
|
+
readonly attributes: {
|
|
537
|
+
readonly [x: string]: string | number | boolean | null;
|
|
538
|
+
};
|
|
539
|
+
readonly discounts: readonly {
|
|
540
|
+
readonly amount: number;
|
|
541
|
+
readonly title: string;
|
|
542
|
+
}[];
|
|
543
|
+
readonly discount_codes: readonly {
|
|
544
|
+
readonly code: string;
|
|
545
|
+
readonly applicable: boolean;
|
|
546
|
+
}[];
|
|
547
|
+
readonly original_total_price: number;
|
|
548
|
+
readonly total_price: number;
|
|
549
|
+
readonly total_discount: number;
|
|
550
|
+
readonly total_weight: number;
|
|
551
|
+
readonly item_count: number;
|
|
552
|
+
readonly items: readonly {
|
|
553
|
+
readonly title: string;
|
|
554
|
+
readonly key: string;
|
|
555
|
+
readonly url: string;
|
|
556
|
+
readonly image: string | null;
|
|
557
|
+
readonly price: number;
|
|
558
|
+
readonly id: string | number;
|
|
559
|
+
readonly selling_plan_allocation: {
|
|
560
|
+
readonly price_adjustments: readonly {
|
|
561
|
+
readonly position: number;
|
|
322
562
|
readonly price: number;
|
|
563
|
+
}[];
|
|
564
|
+
readonly price: number;
|
|
565
|
+
readonly compare_at_price: number;
|
|
566
|
+
readonly per_delivery_price: number;
|
|
567
|
+
readonly selling_plan: {
|
|
568
|
+
readonly id: string | number;
|
|
569
|
+
readonly name: string;
|
|
570
|
+
readonly description: string | null;
|
|
571
|
+
readonly options: readonly {
|
|
572
|
+
readonly name: string;
|
|
573
|
+
readonly position: number;
|
|
574
|
+
readonly value: string;
|
|
575
|
+
}[];
|
|
576
|
+
readonly recurring_deliveries: boolean;
|
|
577
|
+
readonly fixed_selling_plan: boolean;
|
|
323
578
|
readonly price_adjustments: readonly {
|
|
579
|
+
readonly order_count: number | null;
|
|
324
580
|
readonly position: number;
|
|
325
|
-
readonly
|
|
581
|
+
readonly value: string | number;
|
|
582
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
326
583
|
}[];
|
|
327
|
-
readonly selling_plan: {
|
|
328
|
-
readonly description: string | null;
|
|
329
|
-
readonly name: string;
|
|
330
|
-
readonly id: string | number;
|
|
331
|
-
readonly options: readonly {
|
|
332
|
-
readonly value: string;
|
|
333
|
-
readonly name: string;
|
|
334
|
-
readonly position: number;
|
|
335
|
-
}[];
|
|
336
|
-
readonly recurring_deliveries: boolean;
|
|
337
|
-
readonly fixed_selling_plan: boolean;
|
|
338
|
-
readonly price_adjustments: readonly {
|
|
339
|
-
readonly value: string | number;
|
|
340
|
-
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
341
|
-
readonly position: number;
|
|
342
|
-
readonly order_count: number | null;
|
|
343
|
-
}[];
|
|
344
|
-
};
|
|
345
|
-
readonly compare_at_price: number;
|
|
346
|
-
readonly per_delivery_price: number;
|
|
347
|
-
} | null;
|
|
348
|
-
readonly unit_price_measurement?: {
|
|
349
|
-
readonly measured_type: "volume" | "weight" | "dimension";
|
|
350
|
-
readonly quantity_unit: string;
|
|
351
|
-
readonly quantity_value: number;
|
|
352
|
-
readonly reference_unit: string;
|
|
353
|
-
readonly reference_value: number;
|
|
354
|
-
} | undefined;
|
|
355
|
-
readonly variant_options: readonly string[];
|
|
356
|
-
readonly properties: {
|
|
357
|
-
readonly [x: string]: string | number | boolean | null;
|
|
358
584
|
};
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
readonly
|
|
363
|
-
readonly
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
585
|
+
} | null;
|
|
586
|
+
readonly variant_options: readonly string[];
|
|
587
|
+
readonly discounts: readonly {
|
|
588
|
+
readonly amount: number;
|
|
589
|
+
readonly title: string;
|
|
590
|
+
}[];
|
|
591
|
+
readonly sku: string | null;
|
|
592
|
+
readonly product_type: string | null;
|
|
593
|
+
readonly product_description: string | null;
|
|
594
|
+
readonly variant_title: string | null;
|
|
595
|
+
readonly options_with_values: readonly {
|
|
596
|
+
readonly name: string;
|
|
597
|
+
readonly value: string;
|
|
598
|
+
}[];
|
|
599
|
+
readonly line_level_discount_allocations: readonly {
|
|
600
|
+
readonly amount: number;
|
|
601
|
+
readonly discount_application: {
|
|
602
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
603
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
367
604
|
readonly title: string;
|
|
368
|
-
readonly
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
readonly taxable: boolean;
|
|
374
|
-
readonly product_id: string | number;
|
|
375
|
-
readonly product_has_only_default_variant: boolean;
|
|
376
|
-
readonly gift_card: boolean;
|
|
377
|
-
readonly final_line_price: number;
|
|
378
|
-
readonly final_price: number;
|
|
379
|
-
readonly featured_image: {
|
|
380
|
-
readonly aspect_ratio: number | null;
|
|
381
|
-
readonly alt: string | null;
|
|
382
|
-
readonly height: number | null;
|
|
383
|
-
readonly url: string | null;
|
|
384
|
-
readonly width: number | null;
|
|
385
|
-
};
|
|
386
|
-
readonly handle: string;
|
|
387
|
-
readonly requires_shipping: boolean;
|
|
388
|
-
readonly product_type: string | null;
|
|
389
|
-
readonly product_title: string;
|
|
390
|
-
readonly product_description: string | null;
|
|
391
|
-
readonly variant_title: string | null;
|
|
392
|
-
readonly options_with_values: readonly {
|
|
393
|
-
readonly value: string;
|
|
394
|
-
readonly name: string;
|
|
395
|
-
}[];
|
|
396
|
-
readonly line_level_discount_allocations: readonly {
|
|
397
|
-
readonly discount_application: {
|
|
398
|
-
readonly title: string;
|
|
399
|
-
readonly description: string | null;
|
|
400
|
-
readonly value: number;
|
|
401
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
402
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
403
|
-
readonly total_allocated_amount: number;
|
|
404
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
405
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
406
|
-
};
|
|
407
|
-
readonly amount: number;
|
|
408
|
-
}[];
|
|
409
|
-
readonly line_level_total_discount: number;
|
|
410
|
-
readonly has_components: boolean;
|
|
411
|
-
readonly unit_price?: number | undefined;
|
|
412
|
-
} & {
|
|
413
|
-
readonly properties_array: readonly {
|
|
414
|
-
readonly key: string;
|
|
415
|
-
readonly value: string | number | boolean | null;
|
|
416
|
-
}[];
|
|
417
|
-
readonly private_properties: {
|
|
418
|
-
readonly [x: string]: string | number | boolean | null;
|
|
605
|
+
readonly total_allocated_amount: number;
|
|
606
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
607
|
+
readonly value: number;
|
|
608
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
609
|
+
readonly description: string | null;
|
|
419
610
|
};
|
|
420
|
-
readonly private_properties_array: readonly {
|
|
421
|
-
readonly key: string;
|
|
422
|
-
readonly value: string | number | boolean | null;
|
|
423
|
-
}[];
|
|
424
|
-
readonly public_properties: {
|
|
425
|
-
readonly [x: string]: string | number | boolean | null;
|
|
426
|
-
};
|
|
427
|
-
readonly public_properties_array: readonly {
|
|
428
|
-
readonly key: string;
|
|
429
|
-
readonly value: string | number | boolean | null;
|
|
430
|
-
}[];
|
|
431
|
-
})[];
|
|
432
|
-
readonly currency: string;
|
|
433
|
-
readonly items_subtotal_price: number;
|
|
434
|
-
readonly cart_level_discount_applications: readonly {
|
|
435
|
-
readonly title: string;
|
|
436
|
-
readonly description: string | null;
|
|
437
|
-
readonly value: number;
|
|
438
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
439
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
440
|
-
readonly total_allocated_amount: number;
|
|
441
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
442
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
443
611
|
}[];
|
|
444
|
-
|
|
445
|
-
readonly
|
|
612
|
+
readonly has_components: boolean;
|
|
613
|
+
readonly properties: {
|
|
614
|
+
readonly [x: string]: string | number | boolean | null;
|
|
615
|
+
};
|
|
616
|
+
readonly quantity: number;
|
|
617
|
+
readonly variant_id: string | number;
|
|
618
|
+
readonly original_price: number;
|
|
619
|
+
readonly discounted_price: number;
|
|
620
|
+
readonly line_price: number;
|
|
621
|
+
readonly original_line_price: number;
|
|
622
|
+
readonly total_discount: number;
|
|
623
|
+
readonly grams: number;
|
|
624
|
+
readonly vendor: string;
|
|
625
|
+
readonly taxable: boolean;
|
|
626
|
+
readonly product_id: string | number;
|
|
627
|
+
readonly product_has_only_default_variant: boolean;
|
|
628
|
+
readonly gift_card: boolean;
|
|
629
|
+
readonly final_line_price: number;
|
|
630
|
+
readonly final_price: number;
|
|
631
|
+
readonly featured_image: {
|
|
632
|
+
readonly aspect_ratio: number | null;
|
|
633
|
+
readonly alt: string | null;
|
|
634
|
+
readonly height: number | null;
|
|
635
|
+
readonly url: string | null;
|
|
636
|
+
readonly width: number | null;
|
|
637
|
+
};
|
|
638
|
+
readonly handle: string;
|
|
639
|
+
readonly requires_shipping: boolean;
|
|
640
|
+
readonly product_title: string;
|
|
641
|
+
readonly line_level_total_discount: number;
|
|
642
|
+
readonly properties_array: readonly {
|
|
446
643
|
readonly key: string;
|
|
447
644
|
readonly value: string | number | boolean | null;
|
|
448
645
|
}[];
|
|
449
|
-
readonly
|
|
646
|
+
readonly private_properties: {
|
|
450
647
|
readonly [x: string]: string | number | boolean | null;
|
|
451
648
|
};
|
|
452
|
-
readonly
|
|
649
|
+
readonly private_properties_array: readonly {
|
|
453
650
|
readonly key: string;
|
|
454
651
|
readonly value: string | number | boolean | null;
|
|
455
652
|
}[];
|
|
456
|
-
readonly
|
|
653
|
+
readonly public_properties: {
|
|
457
654
|
readonly [x: string]: string | number | boolean | null;
|
|
458
655
|
};
|
|
459
|
-
readonly
|
|
656
|
+
readonly public_properties_array: readonly {
|
|
460
657
|
readonly key: string;
|
|
461
658
|
readonly value: string | number | boolean | null;
|
|
462
659
|
}[];
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
readonly
|
|
480
|
-
readonly
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
readonly
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
readonly
|
|
660
|
+
readonly quantity_rule?: {
|
|
661
|
+
readonly min: number;
|
|
662
|
+
readonly max: number | null;
|
|
663
|
+
readonly increment: number;
|
|
664
|
+
} | undefined;
|
|
665
|
+
readonly unit_price_measurement?: {
|
|
666
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
667
|
+
readonly quantity_unit: string;
|
|
668
|
+
readonly quantity_value: number;
|
|
669
|
+
readonly reference_unit: string;
|
|
670
|
+
readonly reference_value: number;
|
|
671
|
+
} | undefined;
|
|
672
|
+
readonly unit_price?: number | undefined;
|
|
673
|
+
}[];
|
|
674
|
+
readonly requires_shipping: boolean;
|
|
675
|
+
readonly currency: string;
|
|
676
|
+
readonly items_subtotal_price: number;
|
|
677
|
+
readonly cart_level_discount_applications: readonly {
|
|
678
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
679
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
680
|
+
readonly title: string;
|
|
681
|
+
readonly total_allocated_amount: number;
|
|
682
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
683
|
+
readonly value: number;
|
|
684
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
685
|
+
readonly description: string | null;
|
|
686
|
+
}[];
|
|
687
|
+
readonly attributes_array: readonly {
|
|
688
|
+
readonly key: string;
|
|
689
|
+
readonly value: string | number | boolean | null;
|
|
690
|
+
}[];
|
|
691
|
+
readonly private_attributes: {
|
|
692
|
+
readonly [x: string]: string | number | boolean | null;
|
|
693
|
+
};
|
|
694
|
+
readonly private_attributes_array: readonly {
|
|
695
|
+
readonly key: string;
|
|
696
|
+
readonly value: string | number | boolean | null;
|
|
697
|
+
}[];
|
|
698
|
+
readonly public_attributes: {
|
|
699
|
+
readonly [x: string]: string | number | boolean | null;
|
|
700
|
+
};
|
|
701
|
+
readonly public_attributes_array: readonly {
|
|
702
|
+
readonly key: string;
|
|
703
|
+
readonly value: string | number | boolean | null;
|
|
704
|
+
}[];
|
|
705
|
+
}, {
|
|
706
|
+
readonly attributes: {
|
|
707
|
+
readonly [x: string]: string | number | boolean | null;
|
|
708
|
+
};
|
|
709
|
+
readonly total_discount: number;
|
|
710
|
+
readonly requires_shipping: boolean;
|
|
711
|
+
readonly note: string | null;
|
|
712
|
+
readonly cart_level_discount_applications: readonly ({
|
|
713
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
714
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
715
|
+
readonly title: string;
|
|
716
|
+
readonly total_allocated_amount: number;
|
|
717
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
718
|
+
readonly value: string | number;
|
|
719
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
720
|
+
readonly description: string | null;
|
|
721
|
+
} | {
|
|
722
|
+
readonly discount_application: {
|
|
723
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
724
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
492
725
|
readonly title: string;
|
|
726
|
+
readonly total_allocated_amount: number;
|
|
727
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
728
|
+
readonly value: string | number;
|
|
729
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
730
|
+
readonly description: string | null;
|
|
731
|
+
};
|
|
732
|
+
})[];
|
|
733
|
+
readonly token: string;
|
|
734
|
+
readonly original_total_price: number;
|
|
735
|
+
readonly total_price: number;
|
|
736
|
+
readonly total_weight: number;
|
|
737
|
+
readonly item_count: number;
|
|
738
|
+
readonly items: readonly {
|
|
739
|
+
readonly title: string;
|
|
740
|
+
readonly key: string;
|
|
741
|
+
readonly url: string;
|
|
742
|
+
readonly image: string | null;
|
|
743
|
+
readonly price: number;
|
|
744
|
+
readonly id: string | number;
|
|
745
|
+
readonly sku: string | null;
|
|
746
|
+
readonly product_type: string | null;
|
|
747
|
+
readonly product_description: string | null;
|
|
748
|
+
readonly variant_title: string | null;
|
|
749
|
+
readonly options_with_values: readonly {
|
|
750
|
+
readonly name: string;
|
|
751
|
+
readonly value: string;
|
|
752
|
+
}[];
|
|
753
|
+
readonly line_level_discount_allocations: readonly {
|
|
493
754
|
readonly amount: number;
|
|
755
|
+
readonly discount_application: {
|
|
756
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
757
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
758
|
+
readonly title: string;
|
|
759
|
+
readonly total_allocated_amount: number;
|
|
760
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
761
|
+
readonly value: string | number;
|
|
762
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
763
|
+
readonly description: string | null;
|
|
764
|
+
};
|
|
494
765
|
}[];
|
|
766
|
+
readonly properties: {
|
|
767
|
+
readonly [x: string]: string | number | boolean | null;
|
|
768
|
+
};
|
|
769
|
+
readonly quantity: number;
|
|
770
|
+
readonly variant_id: string | number;
|
|
771
|
+
readonly original_price: number;
|
|
772
|
+
readonly discounted_price: number;
|
|
773
|
+
readonly line_price: number;
|
|
774
|
+
readonly original_line_price: number;
|
|
775
|
+
readonly total_discount: number;
|
|
776
|
+
readonly grams: number;
|
|
777
|
+
readonly vendor: string;
|
|
778
|
+
readonly taxable: boolean;
|
|
779
|
+
readonly product_id: string | number;
|
|
780
|
+
readonly product_has_only_default_variant: boolean;
|
|
781
|
+
readonly gift_card: boolean;
|
|
782
|
+
readonly final_line_price: number;
|
|
783
|
+
readonly final_price: number;
|
|
784
|
+
readonly featured_image: {
|
|
785
|
+
readonly aspect_ratio: number | null;
|
|
786
|
+
readonly alt: string | null;
|
|
787
|
+
readonly height: number | null;
|
|
788
|
+
readonly url: string | null;
|
|
789
|
+
readonly width: number | null;
|
|
790
|
+
};
|
|
791
|
+
readonly handle: string;
|
|
495
792
|
readonly requires_shipping: boolean;
|
|
496
|
-
readonly
|
|
497
|
-
readonly
|
|
498
|
-
readonly
|
|
499
|
-
readonly
|
|
500
|
-
readonly
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
readonly
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
readonly items: readonly ({
|
|
507
|
-
readonly title: string;
|
|
508
|
-
readonly key: string;
|
|
509
|
-
readonly url: string;
|
|
510
|
-
readonly image: string | null;
|
|
511
|
-
readonly quantity_rule?: {
|
|
512
|
-
readonly min: number;
|
|
513
|
-
readonly max: number | null;
|
|
514
|
-
readonly increment: number;
|
|
515
|
-
} | undefined;
|
|
516
|
-
readonly price: number;
|
|
517
|
-
readonly id: string | number;
|
|
518
|
-
readonly selling_plan_allocation: {
|
|
793
|
+
readonly product_title: string;
|
|
794
|
+
readonly line_level_total_discount: number;
|
|
795
|
+
readonly quantity_rule?: {
|
|
796
|
+
readonly min: number;
|
|
797
|
+
readonly max: number | null;
|
|
798
|
+
readonly increment: number;
|
|
799
|
+
} | undefined;
|
|
800
|
+
readonly selling_plan_allocation?: {
|
|
801
|
+
readonly price_adjustments: readonly {
|
|
802
|
+
readonly position: number;
|
|
519
803
|
readonly price: number;
|
|
804
|
+
}[];
|
|
805
|
+
readonly price: number;
|
|
806
|
+
readonly compare_at_price: number;
|
|
807
|
+
readonly per_delivery_price: number;
|
|
808
|
+
readonly selling_plan: {
|
|
809
|
+
readonly description: string | null;
|
|
810
|
+
readonly name: string;
|
|
811
|
+
readonly options: readonly {
|
|
812
|
+
readonly name: string;
|
|
813
|
+
readonly position: number;
|
|
814
|
+
readonly value: string;
|
|
815
|
+
}[];
|
|
520
816
|
readonly price_adjustments: readonly {
|
|
817
|
+
readonly order_count: number | null;
|
|
521
818
|
readonly position: number;
|
|
522
|
-
readonly
|
|
819
|
+
readonly value: string | number;
|
|
820
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
523
821
|
}[];
|
|
524
|
-
readonly
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
readonly id: string | number;
|
|
528
|
-
readonly options: readonly {
|
|
529
|
-
readonly value: string;
|
|
530
|
-
readonly name: string;
|
|
531
|
-
readonly position: number;
|
|
532
|
-
}[];
|
|
533
|
-
readonly recurring_deliveries: boolean;
|
|
534
|
-
readonly fixed_selling_plan: boolean;
|
|
535
|
-
readonly price_adjustments: readonly {
|
|
536
|
-
readonly value: string | number;
|
|
537
|
-
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
538
|
-
readonly position: number;
|
|
539
|
-
readonly order_count: number | null;
|
|
540
|
-
}[];
|
|
541
|
-
};
|
|
542
|
-
readonly compare_at_price: number;
|
|
543
|
-
readonly per_delivery_price: number;
|
|
544
|
-
} | null;
|
|
545
|
-
readonly unit_price_measurement?: {
|
|
546
|
-
readonly measured_type: "volume" | "weight" | "dimension";
|
|
547
|
-
readonly quantity_unit: string;
|
|
548
|
-
readonly quantity_value: number;
|
|
549
|
-
readonly reference_unit: string;
|
|
550
|
-
readonly reference_value: number;
|
|
551
|
-
} | undefined;
|
|
552
|
-
readonly variant_options: readonly string[];
|
|
553
|
-
readonly properties: {
|
|
554
|
-
readonly [x: string]: string | number | boolean | null;
|
|
555
|
-
};
|
|
556
|
-
readonly quantity: number;
|
|
557
|
-
readonly variant_id: string | number;
|
|
558
|
-
readonly original_price: number;
|
|
559
|
-
readonly discounted_price: number;
|
|
560
|
-
readonly line_price: number;
|
|
561
|
-
readonly original_line_price: number;
|
|
562
|
-
readonly total_discount: number;
|
|
563
|
-
readonly discounts: readonly {
|
|
564
|
-
readonly title: string;
|
|
565
|
-
readonly amount: number;
|
|
566
|
-
}[];
|
|
567
|
-
readonly sku: string | null;
|
|
568
|
-
readonly grams: number;
|
|
569
|
-
readonly vendor: string;
|
|
570
|
-
readonly taxable: boolean;
|
|
571
|
-
readonly product_id: string | number;
|
|
572
|
-
readonly product_has_only_default_variant: boolean;
|
|
573
|
-
readonly gift_card: boolean;
|
|
574
|
-
readonly final_line_price: number;
|
|
575
|
-
readonly final_price: number;
|
|
576
|
-
readonly featured_image: {
|
|
577
|
-
readonly aspect_ratio: number | null;
|
|
578
|
-
readonly alt: string | null;
|
|
579
|
-
readonly height: number | null;
|
|
580
|
-
readonly url: string | null;
|
|
581
|
-
readonly width: number | null;
|
|
582
|
-
};
|
|
583
|
-
readonly handle: string;
|
|
584
|
-
readonly requires_shipping: boolean;
|
|
585
|
-
readonly product_type: string | null;
|
|
586
|
-
readonly product_title: string;
|
|
587
|
-
readonly product_description: string | null;
|
|
588
|
-
readonly variant_title: string | null;
|
|
589
|
-
readonly options_with_values: readonly {
|
|
590
|
-
readonly value: string;
|
|
591
|
-
readonly name: string;
|
|
592
|
-
}[];
|
|
593
|
-
readonly line_level_discount_allocations: readonly {
|
|
594
|
-
readonly discount_application: {
|
|
595
|
-
readonly title: string;
|
|
596
|
-
readonly description: string | null;
|
|
597
|
-
readonly value: number;
|
|
598
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
599
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
600
|
-
readonly total_allocated_amount: number;
|
|
601
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
602
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
603
|
-
};
|
|
604
|
-
readonly amount: number;
|
|
605
|
-
}[];
|
|
606
|
-
readonly line_level_total_discount: number;
|
|
607
|
-
readonly has_components: boolean;
|
|
608
|
-
readonly unit_price?: number | undefined;
|
|
609
|
-
} & {
|
|
610
|
-
readonly properties_array: readonly {
|
|
611
|
-
readonly key: string;
|
|
612
|
-
readonly value: string | number | boolean | null;
|
|
613
|
-
}[];
|
|
614
|
-
readonly private_properties: {
|
|
615
|
-
readonly [x: string]: string | number | boolean | null;
|
|
616
|
-
};
|
|
617
|
-
readonly private_properties_array: readonly {
|
|
618
|
-
readonly key: string;
|
|
619
|
-
readonly value: string | number | boolean | null;
|
|
620
|
-
}[];
|
|
621
|
-
readonly public_properties: {
|
|
622
|
-
readonly [x: string]: string | number | boolean | null;
|
|
822
|
+
readonly id: string | number;
|
|
823
|
+
readonly recurring_deliveries?: boolean | undefined;
|
|
824
|
+
readonly fixed_selling_plan?: boolean | undefined;
|
|
623
825
|
};
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
826
|
+
} | null | undefined;
|
|
827
|
+
readonly unit_price_measurement?: {
|
|
828
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
829
|
+
readonly quantity_unit: string;
|
|
830
|
+
readonly quantity_value: number;
|
|
831
|
+
readonly reference_unit: string;
|
|
832
|
+
readonly reference_value: number;
|
|
833
|
+
} | undefined;
|
|
834
|
+
readonly variant_options?: readonly string[] | undefined;
|
|
835
|
+
readonly discounts?: readonly {
|
|
836
|
+
readonly amount: number;
|
|
837
|
+
readonly title: string;
|
|
838
|
+
}[] | undefined;
|
|
839
|
+
readonly has_components?: boolean | undefined;
|
|
840
|
+
readonly unit_price?: number | undefined;
|
|
841
|
+
}[];
|
|
842
|
+
readonly currency: string;
|
|
843
|
+
readonly items_subtotal_price: number;
|
|
844
|
+
readonly items_added: readonly {
|
|
845
|
+
readonly product_id: number;
|
|
846
|
+
readonly variant_id: number;
|
|
847
|
+
readonly id: string;
|
|
848
|
+
readonly image: string | null;
|
|
849
|
+
readonly price: string;
|
|
850
|
+
readonly presentment_price: number;
|
|
851
|
+
readonly quantity: number;
|
|
852
|
+
readonly title: string;
|
|
853
|
+
readonly product_title: string;
|
|
854
|
+
readonly variant_title: string;
|
|
855
|
+
readonly vendor: string;
|
|
856
|
+
readonly product_type: string;
|
|
857
|
+
readonly sku: string | null;
|
|
858
|
+
readonly url: string;
|
|
859
|
+
readonly untranslated_product_title: string;
|
|
860
|
+
readonly untranslated_variant_title: string;
|
|
861
|
+
readonly view_key: string;
|
|
862
|
+
}[];
|
|
863
|
+
readonly items_removed: readonly {
|
|
864
|
+
readonly product_id: number;
|
|
865
|
+
readonly variant_id: number;
|
|
866
|
+
readonly id: string;
|
|
867
|
+
readonly image: string | null;
|
|
868
|
+
readonly price: string;
|
|
869
|
+
readonly presentment_price: number;
|
|
870
|
+
readonly quantity: number;
|
|
871
|
+
readonly title: string;
|
|
872
|
+
readonly product_title: string;
|
|
873
|
+
readonly variant_title: string;
|
|
874
|
+
readonly vendor: string;
|
|
875
|
+
readonly product_type: string;
|
|
876
|
+
readonly sku: string | null;
|
|
877
|
+
readonly url: string;
|
|
878
|
+
readonly untranslated_product_title: string;
|
|
879
|
+
readonly untranslated_variant_title: string;
|
|
880
|
+
readonly view_key: string;
|
|
881
|
+
}[];
|
|
882
|
+
readonly discounts?: readonly {
|
|
883
|
+
readonly amount: number;
|
|
884
|
+
readonly title: string;
|
|
885
|
+
}[] | undefined;
|
|
886
|
+
readonly discount_codes?: readonly {
|
|
887
|
+
readonly code: string;
|
|
888
|
+
readonly applicable: boolean;
|
|
889
|
+
}[] | undefined;
|
|
890
|
+
}, never>;
|
|
891
|
+
export declare namespace clear {
|
|
892
|
+
type Input = ClearInput;
|
|
893
|
+
}
|
|
894
|
+
export declare const clear: (input?: {
|
|
895
|
+
readonly sections?: readonly string[] | undefined;
|
|
896
|
+
readonly sections_url?: string | undefined;
|
|
897
|
+
} | undefined) => AjaxRequest<{
|
|
898
|
+
readonly sections?: string | undefined;
|
|
899
|
+
readonly sections_url?: string | undefined;
|
|
900
|
+
}, {
|
|
901
|
+
readonly sections?: readonly string[] | undefined;
|
|
902
|
+
readonly sections_url?: string | undefined;
|
|
903
|
+
}, never, {
|
|
904
|
+
readonly token: string;
|
|
905
|
+
readonly note: string | null;
|
|
906
|
+
readonly attributes: {
|
|
907
|
+
readonly [x: string]: string | number | boolean | null;
|
|
908
|
+
};
|
|
909
|
+
readonly discounts: readonly {
|
|
910
|
+
readonly amount: number;
|
|
911
|
+
readonly title: string;
|
|
912
|
+
}[];
|
|
913
|
+
readonly discount_codes: readonly {
|
|
914
|
+
readonly code: string;
|
|
915
|
+
readonly applicable: boolean;
|
|
916
|
+
}[];
|
|
917
|
+
readonly original_total_price: number;
|
|
918
|
+
readonly total_price: number;
|
|
919
|
+
readonly total_discount: number;
|
|
920
|
+
readonly total_weight: number;
|
|
921
|
+
readonly item_count: number;
|
|
922
|
+
readonly items: readonly {
|
|
923
|
+
readonly title: string;
|
|
924
|
+
readonly key: string;
|
|
925
|
+
readonly url: string;
|
|
926
|
+
readonly image: string | null;
|
|
927
|
+
readonly price: number;
|
|
928
|
+
readonly id: string | number;
|
|
929
|
+
readonly selling_plan_allocation: {
|
|
930
|
+
readonly price_adjustments: readonly {
|
|
931
|
+
readonly position: number;
|
|
932
|
+
readonly price: number;
|
|
933
|
+
}[];
|
|
934
|
+
readonly price: number;
|
|
935
|
+
readonly compare_at_price: number;
|
|
936
|
+
readonly per_delivery_price: number;
|
|
937
|
+
readonly selling_plan: {
|
|
938
|
+
readonly id: string | number;
|
|
939
|
+
readonly name: string;
|
|
940
|
+
readonly description: string | null;
|
|
941
|
+
readonly options: readonly {
|
|
942
|
+
readonly name: string;
|
|
943
|
+
readonly position: number;
|
|
944
|
+
readonly value: string;
|
|
945
|
+
}[];
|
|
946
|
+
readonly recurring_deliveries: boolean;
|
|
947
|
+
readonly fixed_selling_plan: boolean;
|
|
948
|
+
readonly price_adjustments: readonly {
|
|
949
|
+
readonly order_count: number | null;
|
|
950
|
+
readonly position: number;
|
|
951
|
+
readonly value: string | number;
|
|
952
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
953
|
+
}[];
|
|
954
|
+
};
|
|
955
|
+
} | null;
|
|
956
|
+
readonly variant_options: readonly string[];
|
|
957
|
+
readonly discounts: readonly {
|
|
958
|
+
readonly amount: number;
|
|
632
959
|
readonly title: string;
|
|
633
|
-
readonly description: string | null;
|
|
634
|
-
readonly value: number;
|
|
635
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
636
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
637
|
-
readonly total_allocated_amount: number;
|
|
638
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
639
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
640
960
|
}[];
|
|
641
|
-
|
|
642
|
-
readonly
|
|
643
|
-
|
|
644
|
-
|
|
961
|
+
readonly sku: string | null;
|
|
962
|
+
readonly product_type: string | null;
|
|
963
|
+
readonly product_description: string | null;
|
|
964
|
+
readonly variant_title: string | null;
|
|
965
|
+
readonly options_with_values: readonly {
|
|
966
|
+
readonly name: string;
|
|
967
|
+
readonly value: string;
|
|
645
968
|
}[];
|
|
646
|
-
readonly
|
|
969
|
+
readonly line_level_discount_allocations: readonly {
|
|
970
|
+
readonly amount: number;
|
|
971
|
+
readonly discount_application: {
|
|
972
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
973
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
974
|
+
readonly title: string;
|
|
975
|
+
readonly total_allocated_amount: number;
|
|
976
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
977
|
+
readonly value: number;
|
|
978
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
979
|
+
readonly description: string | null;
|
|
980
|
+
};
|
|
981
|
+
}[];
|
|
982
|
+
readonly has_components: boolean;
|
|
983
|
+
readonly properties: {
|
|
647
984
|
readonly [x: string]: string | number | boolean | null;
|
|
648
985
|
};
|
|
649
|
-
readonly
|
|
986
|
+
readonly quantity: number;
|
|
987
|
+
readonly variant_id: string | number;
|
|
988
|
+
readonly original_price: number;
|
|
989
|
+
readonly discounted_price: number;
|
|
990
|
+
readonly line_price: number;
|
|
991
|
+
readonly original_line_price: number;
|
|
992
|
+
readonly total_discount: number;
|
|
993
|
+
readonly grams: number;
|
|
994
|
+
readonly vendor: string;
|
|
995
|
+
readonly taxable: boolean;
|
|
996
|
+
readonly product_id: string | number;
|
|
997
|
+
readonly product_has_only_default_variant: boolean;
|
|
998
|
+
readonly gift_card: boolean;
|
|
999
|
+
readonly final_line_price: number;
|
|
1000
|
+
readonly final_price: number;
|
|
1001
|
+
readonly featured_image: {
|
|
1002
|
+
readonly aspect_ratio: number | null;
|
|
1003
|
+
readonly alt: string | null;
|
|
1004
|
+
readonly height: number | null;
|
|
1005
|
+
readonly url: string | null;
|
|
1006
|
+
readonly width: number | null;
|
|
1007
|
+
};
|
|
1008
|
+
readonly handle: string;
|
|
1009
|
+
readonly requires_shipping: boolean;
|
|
1010
|
+
readonly product_title: string;
|
|
1011
|
+
readonly line_level_total_discount: number;
|
|
1012
|
+
readonly properties_array: readonly {
|
|
650
1013
|
readonly key: string;
|
|
651
1014
|
readonly value: string | number | boolean | null;
|
|
652
1015
|
}[];
|
|
653
|
-
readonly
|
|
1016
|
+
readonly private_properties: {
|
|
654
1017
|
readonly [x: string]: string | number | boolean | null;
|
|
655
1018
|
};
|
|
656
|
-
readonly
|
|
1019
|
+
readonly private_properties_array: readonly {
|
|
657
1020
|
readonly key: string;
|
|
658
1021
|
readonly value: string | number | boolean | null;
|
|
659
1022
|
}[];
|
|
660
|
-
|
|
661
|
-
readonly error?: {
|
|
662
|
-
status: number;
|
|
663
|
-
message: string;
|
|
664
|
-
description?: string;
|
|
665
|
-
} | undefined;
|
|
666
|
-
}, Error, import("@effect/platform/HttpClient").HttpClient>;
|
|
667
|
-
export declare namespace get {
|
|
668
|
-
type Input = GetInput;
|
|
669
|
-
}
|
|
670
|
-
export declare const get: (input?: {
|
|
671
|
-
readonly sections?: readonly string[] | undefined;
|
|
672
|
-
readonly sections_url?: string | undefined;
|
|
673
|
-
} | undefined, options?: {
|
|
674
|
-
headers?: Record<string, string>;
|
|
675
|
-
}) => import("effect/Effect").Effect<{
|
|
676
|
-
readonly data?: undefined;
|
|
677
|
-
readonly error?: {
|
|
678
|
-
status: number;
|
|
679
|
-
message: string;
|
|
680
|
-
description?: string;
|
|
681
|
-
} | undefined;
|
|
682
|
-
} | {
|
|
683
|
-
readonly data?: ({
|
|
684
|
-
readonly attributes: {
|
|
1023
|
+
readonly public_properties: {
|
|
685
1024
|
readonly [x: string]: string | number | boolean | null;
|
|
686
1025
|
};
|
|
687
|
-
readonly
|
|
688
|
-
|
|
1026
|
+
readonly public_properties_array: readonly {
|
|
1027
|
+
readonly key: string;
|
|
1028
|
+
readonly value: string | number | boolean | null;
|
|
1029
|
+
}[];
|
|
1030
|
+
readonly quantity_rule?: {
|
|
1031
|
+
readonly min: number;
|
|
1032
|
+
readonly max: number | null;
|
|
1033
|
+
readonly increment: number;
|
|
1034
|
+
} | undefined;
|
|
1035
|
+
readonly unit_price_measurement?: {
|
|
1036
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
1037
|
+
readonly quantity_unit: string;
|
|
1038
|
+
readonly quantity_value: number;
|
|
1039
|
+
readonly reference_unit: string;
|
|
1040
|
+
readonly reference_value: number;
|
|
1041
|
+
} | undefined;
|
|
1042
|
+
readonly unit_price?: number | undefined;
|
|
1043
|
+
}[];
|
|
1044
|
+
readonly requires_shipping: boolean;
|
|
1045
|
+
readonly currency: string;
|
|
1046
|
+
readonly items_subtotal_price: number;
|
|
1047
|
+
readonly cart_level_discount_applications: readonly {
|
|
1048
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1049
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1050
|
+
readonly title: string;
|
|
1051
|
+
readonly total_allocated_amount: number;
|
|
1052
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1053
|
+
readonly value: number;
|
|
1054
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1055
|
+
readonly description: string | null;
|
|
1056
|
+
}[];
|
|
1057
|
+
readonly attributes_array: readonly {
|
|
1058
|
+
readonly key: string;
|
|
1059
|
+
readonly value: string | number | boolean | null;
|
|
1060
|
+
}[];
|
|
1061
|
+
readonly private_attributes: {
|
|
1062
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1063
|
+
};
|
|
1064
|
+
readonly private_attributes_array: readonly {
|
|
1065
|
+
readonly key: string;
|
|
1066
|
+
readonly value: string | number | boolean | null;
|
|
1067
|
+
}[];
|
|
1068
|
+
readonly public_attributes: {
|
|
1069
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1070
|
+
};
|
|
1071
|
+
readonly public_attributes_array: readonly {
|
|
1072
|
+
readonly key: string;
|
|
1073
|
+
readonly value: string | number | boolean | null;
|
|
1074
|
+
}[];
|
|
1075
|
+
}, {
|
|
1076
|
+
readonly attributes: {
|
|
1077
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1078
|
+
};
|
|
1079
|
+
readonly total_discount: number;
|
|
1080
|
+
readonly requires_shipping: boolean;
|
|
1081
|
+
readonly note: string | null;
|
|
1082
|
+
readonly cart_level_discount_applications: readonly ({
|
|
1083
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1084
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1085
|
+
readonly title: string;
|
|
1086
|
+
readonly total_allocated_amount: number;
|
|
1087
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1088
|
+
readonly value: string | number;
|
|
1089
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1090
|
+
readonly description: string | null;
|
|
1091
|
+
} | {
|
|
1092
|
+
readonly discount_application: {
|
|
1093
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1094
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
689
1095
|
readonly title: string;
|
|
1096
|
+
readonly total_allocated_amount: number;
|
|
1097
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1098
|
+
readonly value: string | number;
|
|
1099
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1100
|
+
readonly description: string | null;
|
|
1101
|
+
};
|
|
1102
|
+
})[];
|
|
1103
|
+
readonly token: string;
|
|
1104
|
+
readonly original_total_price: number;
|
|
1105
|
+
readonly total_price: number;
|
|
1106
|
+
readonly total_weight: number;
|
|
1107
|
+
readonly item_count: number;
|
|
1108
|
+
readonly items: readonly {
|
|
1109
|
+
readonly title: string;
|
|
1110
|
+
readonly key: string;
|
|
1111
|
+
readonly url: string;
|
|
1112
|
+
readonly image: string | null;
|
|
1113
|
+
readonly price: number;
|
|
1114
|
+
readonly id: string | number;
|
|
1115
|
+
readonly sku: string | null;
|
|
1116
|
+
readonly product_type: string | null;
|
|
1117
|
+
readonly product_description: string | null;
|
|
1118
|
+
readonly variant_title: string | null;
|
|
1119
|
+
readonly options_with_values: readonly {
|
|
1120
|
+
readonly name: string;
|
|
1121
|
+
readonly value: string;
|
|
1122
|
+
}[];
|
|
1123
|
+
readonly line_level_discount_allocations: readonly {
|
|
690
1124
|
readonly amount: number;
|
|
1125
|
+
readonly discount_application: {
|
|
1126
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1127
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1128
|
+
readonly title: string;
|
|
1129
|
+
readonly total_allocated_amount: number;
|
|
1130
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1131
|
+
readonly value: string | number;
|
|
1132
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1133
|
+
readonly description: string | null;
|
|
1134
|
+
};
|
|
691
1135
|
}[];
|
|
1136
|
+
readonly properties: {
|
|
1137
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1138
|
+
};
|
|
1139
|
+
readonly quantity: number;
|
|
1140
|
+
readonly variant_id: string | number;
|
|
1141
|
+
readonly original_price: number;
|
|
1142
|
+
readonly discounted_price: number;
|
|
1143
|
+
readonly line_price: number;
|
|
1144
|
+
readonly original_line_price: number;
|
|
1145
|
+
readonly total_discount: number;
|
|
1146
|
+
readonly grams: number;
|
|
1147
|
+
readonly vendor: string;
|
|
1148
|
+
readonly taxable: boolean;
|
|
1149
|
+
readonly product_id: string | number;
|
|
1150
|
+
readonly product_has_only_default_variant: boolean;
|
|
1151
|
+
readonly gift_card: boolean;
|
|
1152
|
+
readonly final_line_price: number;
|
|
1153
|
+
readonly final_price: number;
|
|
1154
|
+
readonly featured_image: {
|
|
1155
|
+
readonly aspect_ratio: number | null;
|
|
1156
|
+
readonly alt: string | null;
|
|
1157
|
+
readonly height: number | null;
|
|
1158
|
+
readonly url: string | null;
|
|
1159
|
+
readonly width: number | null;
|
|
1160
|
+
};
|
|
1161
|
+
readonly handle: string;
|
|
692
1162
|
readonly requires_shipping: boolean;
|
|
693
|
-
readonly
|
|
694
|
-
readonly
|
|
695
|
-
readonly
|
|
696
|
-
readonly
|
|
697
|
-
readonly
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
readonly
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
readonly items: readonly ({
|
|
704
|
-
readonly title: string;
|
|
705
|
-
readonly key: string;
|
|
706
|
-
readonly url: string;
|
|
707
|
-
readonly image: string | null;
|
|
708
|
-
readonly quantity_rule?: {
|
|
709
|
-
readonly min: number;
|
|
710
|
-
readonly max: number | null;
|
|
711
|
-
readonly increment: number;
|
|
712
|
-
} | undefined;
|
|
713
|
-
readonly price: number;
|
|
714
|
-
readonly id: string | number;
|
|
715
|
-
readonly selling_plan_allocation: {
|
|
1163
|
+
readonly product_title: string;
|
|
1164
|
+
readonly line_level_total_discount: number;
|
|
1165
|
+
readonly quantity_rule?: {
|
|
1166
|
+
readonly min: number;
|
|
1167
|
+
readonly max: number | null;
|
|
1168
|
+
readonly increment: number;
|
|
1169
|
+
} | undefined;
|
|
1170
|
+
readonly selling_plan_allocation?: {
|
|
1171
|
+
readonly price_adjustments: readonly {
|
|
1172
|
+
readonly position: number;
|
|
716
1173
|
readonly price: number;
|
|
1174
|
+
}[];
|
|
1175
|
+
readonly price: number;
|
|
1176
|
+
readonly compare_at_price: number;
|
|
1177
|
+
readonly per_delivery_price: number;
|
|
1178
|
+
readonly selling_plan: {
|
|
1179
|
+
readonly description: string | null;
|
|
1180
|
+
readonly name: string;
|
|
1181
|
+
readonly options: readonly {
|
|
1182
|
+
readonly name: string;
|
|
1183
|
+
readonly position: number;
|
|
1184
|
+
readonly value: string;
|
|
1185
|
+
}[];
|
|
717
1186
|
readonly price_adjustments: readonly {
|
|
1187
|
+
readonly order_count: number | null;
|
|
718
1188
|
readonly position: number;
|
|
719
|
-
readonly
|
|
1189
|
+
readonly value: string | number;
|
|
1190
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
720
1191
|
}[];
|
|
721
|
-
readonly
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
readonly id: string | number;
|
|
725
|
-
readonly options: readonly {
|
|
726
|
-
readonly value: string;
|
|
727
|
-
readonly name: string;
|
|
728
|
-
readonly position: number;
|
|
729
|
-
}[];
|
|
730
|
-
readonly recurring_deliveries: boolean;
|
|
731
|
-
readonly fixed_selling_plan: boolean;
|
|
732
|
-
readonly price_adjustments: readonly {
|
|
733
|
-
readonly value: string | number;
|
|
734
|
-
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
735
|
-
readonly position: number;
|
|
736
|
-
readonly order_count: number | null;
|
|
737
|
-
}[];
|
|
738
|
-
};
|
|
739
|
-
readonly compare_at_price: number;
|
|
740
|
-
readonly per_delivery_price: number;
|
|
741
|
-
} | null;
|
|
742
|
-
readonly unit_price_measurement?: {
|
|
743
|
-
readonly measured_type: "volume" | "weight" | "dimension";
|
|
744
|
-
readonly quantity_unit: string;
|
|
745
|
-
readonly quantity_value: number;
|
|
746
|
-
readonly reference_unit: string;
|
|
747
|
-
readonly reference_value: number;
|
|
748
|
-
} | undefined;
|
|
749
|
-
readonly variant_options: readonly string[];
|
|
750
|
-
readonly properties: {
|
|
751
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1192
|
+
readonly id: string | number;
|
|
1193
|
+
readonly recurring_deliveries?: boolean | undefined;
|
|
1194
|
+
readonly fixed_selling_plan?: boolean | undefined;
|
|
752
1195
|
};
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
readonly
|
|
756
|
-
readonly
|
|
757
|
-
readonly
|
|
758
|
-
readonly
|
|
759
|
-
readonly
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
1196
|
+
} | null | undefined;
|
|
1197
|
+
readonly unit_price_measurement?: {
|
|
1198
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
1199
|
+
readonly quantity_unit: string;
|
|
1200
|
+
readonly quantity_value: number;
|
|
1201
|
+
readonly reference_unit: string;
|
|
1202
|
+
readonly reference_value: number;
|
|
1203
|
+
} | undefined;
|
|
1204
|
+
readonly variant_options?: readonly string[] | undefined;
|
|
1205
|
+
readonly discounts?: readonly {
|
|
1206
|
+
readonly amount: number;
|
|
1207
|
+
readonly title: string;
|
|
1208
|
+
}[] | undefined;
|
|
1209
|
+
readonly has_components?: boolean | undefined;
|
|
1210
|
+
readonly unit_price?: number | undefined;
|
|
1211
|
+
}[];
|
|
1212
|
+
readonly currency: string;
|
|
1213
|
+
readonly items_subtotal_price: number;
|
|
1214
|
+
readonly discounts?: readonly {
|
|
1215
|
+
readonly amount: number;
|
|
1216
|
+
readonly title: string;
|
|
1217
|
+
}[] | undefined;
|
|
1218
|
+
readonly discount_codes?: readonly {
|
|
1219
|
+
readonly code: string;
|
|
1220
|
+
readonly applicable: boolean;
|
|
1221
|
+
}[] | undefined;
|
|
1222
|
+
}, never>;
|
|
1223
|
+
export declare namespace get {
|
|
1224
|
+
type Input = GetInput;
|
|
1225
|
+
}
|
|
1226
|
+
export declare const get: (input?: {
|
|
1227
|
+
readonly sections?: readonly string[] | undefined;
|
|
1228
|
+
readonly sections_url?: string | undefined;
|
|
1229
|
+
} | undefined) => AjaxRequest<{
|
|
1230
|
+
readonly sections?: string | undefined;
|
|
1231
|
+
readonly sections_url?: string | undefined;
|
|
1232
|
+
}, {
|
|
1233
|
+
readonly sections?: readonly string[] | undefined;
|
|
1234
|
+
readonly sections_url?: string | undefined;
|
|
1235
|
+
}, never, {
|
|
1236
|
+
readonly token: string;
|
|
1237
|
+
readonly note: string | null;
|
|
1238
|
+
readonly attributes: {
|
|
1239
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1240
|
+
};
|
|
1241
|
+
readonly discounts: readonly {
|
|
1242
|
+
readonly amount: number;
|
|
1243
|
+
readonly title: string;
|
|
1244
|
+
}[];
|
|
1245
|
+
readonly discount_codes: readonly {
|
|
1246
|
+
readonly code: string;
|
|
1247
|
+
readonly applicable: boolean;
|
|
1248
|
+
}[];
|
|
1249
|
+
readonly original_total_price: number;
|
|
1250
|
+
readonly total_price: number;
|
|
1251
|
+
readonly total_discount: number;
|
|
1252
|
+
readonly total_weight: number;
|
|
1253
|
+
readonly item_count: number;
|
|
1254
|
+
readonly items: readonly {
|
|
1255
|
+
readonly title: string;
|
|
1256
|
+
readonly key: string;
|
|
1257
|
+
readonly url: string;
|
|
1258
|
+
readonly image: string | null;
|
|
1259
|
+
readonly price: number;
|
|
1260
|
+
readonly id: string | number;
|
|
1261
|
+
readonly selling_plan_allocation: {
|
|
1262
|
+
readonly price_adjustments: readonly {
|
|
1263
|
+
readonly position: number;
|
|
1264
|
+
readonly price: number;
|
|
763
1265
|
}[];
|
|
764
|
-
readonly
|
|
765
|
-
readonly
|
|
766
|
-
readonly
|
|
767
|
-
readonly
|
|
768
|
-
|
|
769
|
-
readonly product_has_only_default_variant: boolean;
|
|
770
|
-
readonly gift_card: boolean;
|
|
771
|
-
readonly final_line_price: number;
|
|
772
|
-
readonly final_price: number;
|
|
773
|
-
readonly featured_image: {
|
|
774
|
-
readonly aspect_ratio: number | null;
|
|
775
|
-
readonly alt: string | null;
|
|
776
|
-
readonly height: number | null;
|
|
777
|
-
readonly url: string | null;
|
|
778
|
-
readonly width: number | null;
|
|
779
|
-
};
|
|
780
|
-
readonly handle: string;
|
|
781
|
-
readonly requires_shipping: boolean;
|
|
782
|
-
readonly product_type: string | null;
|
|
783
|
-
readonly product_title: string;
|
|
784
|
-
readonly product_description: string | null;
|
|
785
|
-
readonly variant_title: string | null;
|
|
786
|
-
readonly options_with_values: readonly {
|
|
787
|
-
readonly value: string;
|
|
1266
|
+
readonly price: number;
|
|
1267
|
+
readonly compare_at_price: number;
|
|
1268
|
+
readonly per_delivery_price: number;
|
|
1269
|
+
readonly selling_plan: {
|
|
1270
|
+
readonly id: string | number;
|
|
788
1271
|
readonly name: string;
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
readonly
|
|
793
|
-
readonly
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
readonly
|
|
799
|
-
readonly
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
readonly line_level_total_discount: number;
|
|
804
|
-
readonly has_components: boolean;
|
|
805
|
-
readonly unit_price?: number | undefined;
|
|
806
|
-
} & {
|
|
807
|
-
readonly properties_array: readonly {
|
|
808
|
-
readonly key: string;
|
|
809
|
-
readonly value: string | number | boolean | null;
|
|
810
|
-
}[];
|
|
811
|
-
readonly private_properties: {
|
|
812
|
-
readonly [x: string]: string | number | boolean | null;
|
|
813
|
-
};
|
|
814
|
-
readonly private_properties_array: readonly {
|
|
815
|
-
readonly key: string;
|
|
816
|
-
readonly value: string | number | boolean | null;
|
|
817
|
-
}[];
|
|
818
|
-
readonly public_properties: {
|
|
819
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1272
|
+
readonly description: string | null;
|
|
1273
|
+
readonly options: readonly {
|
|
1274
|
+
readonly name: string;
|
|
1275
|
+
readonly position: number;
|
|
1276
|
+
readonly value: string;
|
|
1277
|
+
}[];
|
|
1278
|
+
readonly recurring_deliveries: boolean;
|
|
1279
|
+
readonly fixed_selling_plan: boolean;
|
|
1280
|
+
readonly price_adjustments: readonly {
|
|
1281
|
+
readonly order_count: number | null;
|
|
1282
|
+
readonly position: number;
|
|
1283
|
+
readonly value: string | number;
|
|
1284
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
1285
|
+
}[];
|
|
820
1286
|
};
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
})[];
|
|
826
|
-
readonly currency: string;
|
|
827
|
-
readonly items_subtotal_price: number;
|
|
828
|
-
readonly cart_level_discount_applications: readonly {
|
|
1287
|
+
} | null;
|
|
1288
|
+
readonly variant_options: readonly string[];
|
|
1289
|
+
readonly discounts: readonly {
|
|
1290
|
+
readonly amount: number;
|
|
829
1291
|
readonly title: string;
|
|
830
|
-
readonly description: string | null;
|
|
831
|
-
readonly value: number;
|
|
832
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
833
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
834
|
-
readonly total_allocated_amount: number;
|
|
835
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
836
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
837
1292
|
}[];
|
|
838
|
-
|
|
839
|
-
readonly
|
|
1293
|
+
readonly sku: string | null;
|
|
1294
|
+
readonly product_type: string | null;
|
|
1295
|
+
readonly product_description: string | null;
|
|
1296
|
+
readonly variant_title: string | null;
|
|
1297
|
+
readonly options_with_values: readonly {
|
|
1298
|
+
readonly name: string;
|
|
1299
|
+
readonly value: string;
|
|
1300
|
+
}[];
|
|
1301
|
+
readonly line_level_discount_allocations: readonly {
|
|
1302
|
+
readonly amount: number;
|
|
1303
|
+
readonly discount_application: {
|
|
1304
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1305
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1306
|
+
readonly title: string;
|
|
1307
|
+
readonly total_allocated_amount: number;
|
|
1308
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1309
|
+
readonly value: number;
|
|
1310
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1311
|
+
readonly description: string | null;
|
|
1312
|
+
};
|
|
1313
|
+
}[];
|
|
1314
|
+
readonly has_components: boolean;
|
|
1315
|
+
readonly properties: {
|
|
1316
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1317
|
+
};
|
|
1318
|
+
readonly quantity: number;
|
|
1319
|
+
readonly variant_id: string | number;
|
|
1320
|
+
readonly original_price: number;
|
|
1321
|
+
readonly discounted_price: number;
|
|
1322
|
+
readonly line_price: number;
|
|
1323
|
+
readonly original_line_price: number;
|
|
1324
|
+
readonly total_discount: number;
|
|
1325
|
+
readonly grams: number;
|
|
1326
|
+
readonly vendor: string;
|
|
1327
|
+
readonly taxable: boolean;
|
|
1328
|
+
readonly product_id: string | number;
|
|
1329
|
+
readonly product_has_only_default_variant: boolean;
|
|
1330
|
+
readonly gift_card: boolean;
|
|
1331
|
+
readonly final_line_price: number;
|
|
1332
|
+
readonly final_price: number;
|
|
1333
|
+
readonly featured_image: {
|
|
1334
|
+
readonly aspect_ratio: number | null;
|
|
1335
|
+
readonly alt: string | null;
|
|
1336
|
+
readonly height: number | null;
|
|
1337
|
+
readonly url: string | null;
|
|
1338
|
+
readonly width: number | null;
|
|
1339
|
+
};
|
|
1340
|
+
readonly handle: string;
|
|
1341
|
+
readonly requires_shipping: boolean;
|
|
1342
|
+
readonly product_title: string;
|
|
1343
|
+
readonly line_level_total_discount: number;
|
|
1344
|
+
readonly properties_array: readonly {
|
|
840
1345
|
readonly key: string;
|
|
841
1346
|
readonly value: string | number | boolean | null;
|
|
842
1347
|
}[];
|
|
843
|
-
readonly
|
|
1348
|
+
readonly private_properties: {
|
|
844
1349
|
readonly [x: string]: string | number | boolean | null;
|
|
845
1350
|
};
|
|
846
|
-
readonly
|
|
1351
|
+
readonly private_properties_array: readonly {
|
|
847
1352
|
readonly key: string;
|
|
848
1353
|
readonly value: string | number | boolean | null;
|
|
849
1354
|
}[];
|
|
850
|
-
readonly
|
|
1355
|
+
readonly public_properties: {
|
|
851
1356
|
readonly [x: string]: string | number | boolean | null;
|
|
852
1357
|
};
|
|
853
|
-
readonly
|
|
1358
|
+
readonly public_properties_array: readonly {
|
|
854
1359
|
readonly key: string;
|
|
855
1360
|
readonly value: string | number | boolean | null;
|
|
856
1361
|
}[];
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
1362
|
+
readonly quantity_rule?: {
|
|
1363
|
+
readonly min: number;
|
|
1364
|
+
readonly max: number | null;
|
|
1365
|
+
readonly increment: number;
|
|
1366
|
+
} | undefined;
|
|
1367
|
+
readonly unit_price_measurement?: {
|
|
1368
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
1369
|
+
readonly quantity_unit: string;
|
|
1370
|
+
readonly quantity_value: number;
|
|
1371
|
+
readonly reference_unit: string;
|
|
1372
|
+
readonly reference_value: number;
|
|
1373
|
+
} | undefined;
|
|
1374
|
+
readonly unit_price?: number | undefined;
|
|
1375
|
+
}[];
|
|
1376
|
+
readonly requires_shipping: boolean;
|
|
1377
|
+
readonly currency: string;
|
|
1378
|
+
readonly items_subtotal_price: number;
|
|
1379
|
+
readonly cart_level_discount_applications: readonly {
|
|
1380
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1381
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1382
|
+
readonly title: string;
|
|
1383
|
+
readonly total_allocated_amount: number;
|
|
1384
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1385
|
+
readonly value: number;
|
|
1386
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1387
|
+
readonly description: string | null;
|
|
1388
|
+
}[];
|
|
1389
|
+
readonly attributes_array: readonly {
|
|
1390
|
+
readonly key: string;
|
|
1391
|
+
readonly value: string | number | boolean | null;
|
|
1392
|
+
}[];
|
|
1393
|
+
readonly private_attributes: {
|
|
1394
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1395
|
+
};
|
|
1396
|
+
readonly private_attributes_array: readonly {
|
|
1397
|
+
readonly key: string;
|
|
1398
|
+
readonly value: string | number | boolean | null;
|
|
1399
|
+
}[];
|
|
1400
|
+
readonly public_attributes: {
|
|
1401
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1402
|
+
};
|
|
1403
|
+
readonly public_attributes_array: readonly {
|
|
1404
|
+
readonly key: string;
|
|
1405
|
+
readonly value: string | number | boolean | null;
|
|
1406
|
+
}[];
|
|
1407
|
+
}, {
|
|
1408
|
+
readonly attributes: {
|
|
1409
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1410
|
+
};
|
|
1411
|
+
readonly total_discount: number;
|
|
1412
|
+
readonly requires_shipping: boolean;
|
|
1413
|
+
readonly note: string | null;
|
|
1414
|
+
readonly cart_level_discount_applications: readonly ({
|
|
1415
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1416
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1417
|
+
readonly title: string;
|
|
1418
|
+
readonly total_allocated_amount: number;
|
|
1419
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1420
|
+
readonly value: string | number;
|
|
1421
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1422
|
+
readonly description: string | null;
|
|
1423
|
+
} | {
|
|
1424
|
+
readonly discount_application: {
|
|
1425
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1426
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1427
|
+
readonly title: string;
|
|
1428
|
+
readonly total_allocated_amount: number;
|
|
1429
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1430
|
+
readonly value: string | number;
|
|
1431
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1432
|
+
readonly description: string | null;
|
|
1433
|
+
};
|
|
1434
|
+
})[];
|
|
1435
|
+
readonly token: string;
|
|
1436
|
+
readonly original_total_price: number;
|
|
1437
|
+
readonly total_price: number;
|
|
1438
|
+
readonly total_weight: number;
|
|
1439
|
+
readonly item_count: number;
|
|
1440
|
+
readonly items: readonly {
|
|
1441
|
+
readonly title: string;
|
|
1442
|
+
readonly key: string;
|
|
1443
|
+
readonly url: string;
|
|
1444
|
+
readonly image: string | null;
|
|
1445
|
+
readonly price: number;
|
|
1446
|
+
readonly id: string | number;
|
|
1447
|
+
readonly sku: string | null;
|
|
1448
|
+
readonly product_type: string | null;
|
|
1449
|
+
readonly product_description: string | null;
|
|
1450
|
+
readonly variant_title: string | null;
|
|
1451
|
+
readonly options_with_values: readonly {
|
|
1452
|
+
readonly name: string;
|
|
1453
|
+
readonly value: string;
|
|
1454
|
+
}[];
|
|
1455
|
+
readonly line_level_discount_allocations: readonly {
|
|
1456
|
+
readonly amount: number;
|
|
1457
|
+
readonly discount_application: {
|
|
1458
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1459
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1460
|
+
readonly title: string;
|
|
1461
|
+
readonly total_allocated_amount: number;
|
|
1462
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1463
|
+
readonly value: string | number;
|
|
1464
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1465
|
+
readonly description: string | null;
|
|
1466
|
+
};
|
|
1467
|
+
}[];
|
|
1468
|
+
readonly properties: {
|
|
1469
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1470
|
+
};
|
|
1471
|
+
readonly quantity: number;
|
|
1472
|
+
readonly variant_id: string | number;
|
|
1473
|
+
readonly original_price: number;
|
|
1474
|
+
readonly discounted_price: number;
|
|
1475
|
+
readonly line_price: number;
|
|
1476
|
+
readonly original_line_price: number;
|
|
1477
|
+
readonly total_discount: number;
|
|
1478
|
+
readonly grams: number;
|
|
1479
|
+
readonly vendor: string;
|
|
1480
|
+
readonly taxable: boolean;
|
|
1481
|
+
readonly product_id: string | number;
|
|
1482
|
+
readonly product_has_only_default_variant: boolean;
|
|
1483
|
+
readonly gift_card: boolean;
|
|
1484
|
+
readonly final_line_price: number;
|
|
1485
|
+
readonly final_price: number;
|
|
1486
|
+
readonly featured_image: {
|
|
1487
|
+
readonly aspect_ratio: number | null;
|
|
1488
|
+
readonly alt: string | null;
|
|
1489
|
+
readonly height: number | null;
|
|
1490
|
+
readonly url: string | null;
|
|
1491
|
+
readonly width: number | null;
|
|
1492
|
+
};
|
|
1493
|
+
readonly handle: string;
|
|
1494
|
+
readonly requires_shipping: boolean;
|
|
1495
|
+
readonly product_title: string;
|
|
1496
|
+
readonly line_level_total_discount: number;
|
|
1497
|
+
readonly quantity_rule?: {
|
|
1498
|
+
readonly min: number;
|
|
1499
|
+
readonly max: number | null;
|
|
1500
|
+
readonly increment: number;
|
|
1501
|
+
} | undefined;
|
|
1502
|
+
readonly selling_plan_allocation?: {
|
|
1503
|
+
readonly price_adjustments: readonly {
|
|
1504
|
+
readonly position: number;
|
|
1505
|
+
readonly price: number;
|
|
1506
|
+
}[];
|
|
1507
|
+
readonly price: number;
|
|
1508
|
+
readonly compare_at_price: number;
|
|
1509
|
+
readonly per_delivery_price: number;
|
|
1510
|
+
readonly selling_plan: {
|
|
1511
|
+
readonly description: string | null;
|
|
1512
|
+
readonly name: string;
|
|
1513
|
+
readonly options: readonly {
|
|
1514
|
+
readonly name: string;
|
|
1515
|
+
readonly position: number;
|
|
1516
|
+
readonly value: string;
|
|
1517
|
+
}[];
|
|
1518
|
+
readonly price_adjustments: readonly {
|
|
1519
|
+
readonly order_count: number | null;
|
|
1520
|
+
readonly position: number;
|
|
1521
|
+
readonly value: string | number;
|
|
1522
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
1523
|
+
}[];
|
|
1524
|
+
readonly id: string | number;
|
|
1525
|
+
readonly recurring_deliveries?: boolean | undefined;
|
|
1526
|
+
readonly fixed_selling_plan?: boolean | undefined;
|
|
1527
|
+
};
|
|
1528
|
+
} | null | undefined;
|
|
1529
|
+
readonly unit_price_measurement?: {
|
|
1530
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
1531
|
+
readonly quantity_unit: string;
|
|
1532
|
+
readonly quantity_value: number;
|
|
1533
|
+
readonly reference_unit: string;
|
|
1534
|
+
readonly reference_value: number;
|
|
1535
|
+
} | undefined;
|
|
1536
|
+
readonly variant_options?: readonly string[] | undefined;
|
|
1537
|
+
readonly discounts?: readonly {
|
|
1538
|
+
readonly amount: number;
|
|
1539
|
+
readonly title: string;
|
|
1540
|
+
}[] | undefined;
|
|
1541
|
+
readonly has_components?: boolean | undefined;
|
|
1542
|
+
readonly unit_price?: number | undefined;
|
|
1543
|
+
}[];
|
|
1544
|
+
readonly currency: string;
|
|
1545
|
+
readonly items_subtotal_price: number;
|
|
1546
|
+
readonly discounts?: readonly {
|
|
1547
|
+
readonly amount: number;
|
|
1548
|
+
readonly title: string;
|
|
1549
|
+
}[] | undefined;
|
|
1550
|
+
readonly discount_codes?: readonly {
|
|
1551
|
+
readonly code: string;
|
|
1552
|
+
readonly applicable: boolean;
|
|
1553
|
+
}[] | undefined;
|
|
1554
|
+
}, never>;
|
|
864
1555
|
export declare namespace update {
|
|
865
1556
|
type Input = UpdateInput;
|
|
866
1557
|
}
|
|
867
|
-
export declare const update: (input?:
|
|
1558
|
+
export declare const update: (input?: {
|
|
868
1559
|
readonly attributes?: {
|
|
869
1560
|
readonly [x: string]: string | number | boolean | null;
|
|
870
1561
|
} | undefined;
|
|
871
1562
|
readonly discount?: readonly string[] | undefined;
|
|
872
1563
|
readonly note?: string | null | undefined;
|
|
873
|
-
readonly
|
|
1564
|
+
readonly sections?: readonly string[] | undefined;
|
|
1565
|
+
readonly sections_url?: string | undefined;
|
|
1566
|
+
readonly updates?: readonly number[] | {
|
|
1567
|
+
readonly [x: string]: number;
|
|
1568
|
+
} | undefined;
|
|
1569
|
+
} | undefined) => AjaxRequest<{
|
|
1570
|
+
readonly attributes?: {
|
|
1571
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1572
|
+
} | undefined;
|
|
1573
|
+
readonly discount?: string | undefined;
|
|
1574
|
+
readonly note?: string | null | undefined;
|
|
1575
|
+
readonly sections?: string | undefined;
|
|
1576
|
+
readonly sections_url?: string | undefined;
|
|
1577
|
+
readonly updates?: readonly number[] | {
|
|
874
1578
|
readonly [x: string]: number;
|
|
875
|
-
} |
|
|
876
|
-
}
|
|
1579
|
+
} | undefined;
|
|
1580
|
+
}, {
|
|
1581
|
+
readonly attributes?: {
|
|
1582
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1583
|
+
} | undefined;
|
|
1584
|
+
readonly discount?: readonly string[] | undefined;
|
|
1585
|
+
readonly note?: string | null | undefined;
|
|
877
1586
|
readonly sections?: readonly string[] | undefined;
|
|
878
1587
|
readonly sections_url?: string | undefined;
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
}) => import("effect/Effect").Effect<{
|
|
882
|
-
readonly data?: undefined;
|
|
883
|
-
readonly error?: {
|
|
884
|
-
status: number;
|
|
885
|
-
message: string;
|
|
886
|
-
description?: string;
|
|
1588
|
+
readonly updates?: readonly number[] | {
|
|
1589
|
+
readonly [x: string]: number;
|
|
887
1590
|
} | undefined;
|
|
888
|
-
}
|
|
889
|
-
readonly
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
readonly
|
|
900
|
-
readonly
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
readonly
|
|
909
|
-
readonly
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
readonly
|
|
917
|
-
readonly increment: number;
|
|
918
|
-
} | undefined;
|
|
919
|
-
readonly price: number;
|
|
920
|
-
readonly id: string | number;
|
|
921
|
-
readonly selling_plan_allocation: {
|
|
1591
|
+
}, never, {
|
|
1592
|
+
readonly token: string;
|
|
1593
|
+
readonly note: string | null;
|
|
1594
|
+
readonly attributes: {
|
|
1595
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1596
|
+
};
|
|
1597
|
+
readonly discounts: readonly {
|
|
1598
|
+
readonly amount: number;
|
|
1599
|
+
readonly title: string;
|
|
1600
|
+
}[];
|
|
1601
|
+
readonly discount_codes: readonly {
|
|
1602
|
+
readonly code: string;
|
|
1603
|
+
readonly applicable: boolean;
|
|
1604
|
+
}[];
|
|
1605
|
+
readonly original_total_price: number;
|
|
1606
|
+
readonly total_price: number;
|
|
1607
|
+
readonly total_discount: number;
|
|
1608
|
+
readonly total_weight: number;
|
|
1609
|
+
readonly item_count: number;
|
|
1610
|
+
readonly items: readonly {
|
|
1611
|
+
readonly title: string;
|
|
1612
|
+
readonly key: string;
|
|
1613
|
+
readonly url: string;
|
|
1614
|
+
readonly image: string | null;
|
|
1615
|
+
readonly price: number;
|
|
1616
|
+
readonly id: string | number;
|
|
1617
|
+
readonly selling_plan_allocation: {
|
|
1618
|
+
readonly price_adjustments: readonly {
|
|
1619
|
+
readonly position: number;
|
|
922
1620
|
readonly price: number;
|
|
1621
|
+
}[];
|
|
1622
|
+
readonly price: number;
|
|
1623
|
+
readonly compare_at_price: number;
|
|
1624
|
+
readonly per_delivery_price: number;
|
|
1625
|
+
readonly selling_plan: {
|
|
1626
|
+
readonly id: string | number;
|
|
1627
|
+
readonly name: string;
|
|
1628
|
+
readonly description: string | null;
|
|
1629
|
+
readonly options: readonly {
|
|
1630
|
+
readonly name: string;
|
|
1631
|
+
readonly position: number;
|
|
1632
|
+
readonly value: string;
|
|
1633
|
+
}[];
|
|
1634
|
+
readonly recurring_deliveries: boolean;
|
|
1635
|
+
readonly fixed_selling_plan: boolean;
|
|
923
1636
|
readonly price_adjustments: readonly {
|
|
1637
|
+
readonly order_count: number | null;
|
|
924
1638
|
readonly position: number;
|
|
925
|
-
readonly
|
|
1639
|
+
readonly value: string | number;
|
|
1640
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
926
1641
|
}[];
|
|
927
|
-
readonly selling_plan: {
|
|
928
|
-
readonly description: string | null;
|
|
929
|
-
readonly name: string;
|
|
930
|
-
readonly id: string | number;
|
|
931
|
-
readonly options: readonly {
|
|
932
|
-
readonly value: string;
|
|
933
|
-
readonly name: string;
|
|
934
|
-
readonly position: number;
|
|
935
|
-
}[];
|
|
936
|
-
readonly recurring_deliveries: boolean;
|
|
937
|
-
readonly fixed_selling_plan: boolean;
|
|
938
|
-
readonly price_adjustments: readonly {
|
|
939
|
-
readonly value: string | number;
|
|
940
|
-
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
941
|
-
readonly position: number;
|
|
942
|
-
readonly order_count: number | null;
|
|
943
|
-
}[];
|
|
944
|
-
};
|
|
945
|
-
readonly compare_at_price: number;
|
|
946
|
-
readonly per_delivery_price: number;
|
|
947
|
-
} | null;
|
|
948
|
-
readonly unit_price_measurement?: {
|
|
949
|
-
readonly measured_type: "volume" | "weight" | "dimension";
|
|
950
|
-
readonly quantity_unit: string;
|
|
951
|
-
readonly quantity_value: number;
|
|
952
|
-
readonly reference_unit: string;
|
|
953
|
-
readonly reference_value: number;
|
|
954
|
-
} | undefined;
|
|
955
|
-
readonly variant_options: readonly string[];
|
|
956
|
-
readonly properties: {
|
|
957
|
-
readonly [x: string]: string | number | boolean | null;
|
|
958
1642
|
};
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
readonly
|
|
963
|
-
readonly
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
1643
|
+
} | null;
|
|
1644
|
+
readonly variant_options: readonly string[];
|
|
1645
|
+
readonly discounts: readonly {
|
|
1646
|
+
readonly amount: number;
|
|
1647
|
+
readonly title: string;
|
|
1648
|
+
}[];
|
|
1649
|
+
readonly sku: string | null;
|
|
1650
|
+
readonly product_type: string | null;
|
|
1651
|
+
readonly product_description: string | null;
|
|
1652
|
+
readonly variant_title: string | null;
|
|
1653
|
+
readonly options_with_values: readonly {
|
|
1654
|
+
readonly name: string;
|
|
1655
|
+
readonly value: string;
|
|
1656
|
+
}[];
|
|
1657
|
+
readonly line_level_discount_allocations: readonly {
|
|
1658
|
+
readonly amount: number;
|
|
1659
|
+
readonly discount_application: {
|
|
1660
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1661
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
967
1662
|
readonly title: string;
|
|
968
|
-
readonly
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
readonly taxable: boolean;
|
|
974
|
-
readonly product_id: string | number;
|
|
975
|
-
readonly product_has_only_default_variant: boolean;
|
|
976
|
-
readonly gift_card: boolean;
|
|
977
|
-
readonly final_line_price: number;
|
|
978
|
-
readonly final_price: number;
|
|
979
|
-
readonly featured_image: {
|
|
980
|
-
readonly aspect_ratio: number | null;
|
|
981
|
-
readonly alt: string | null;
|
|
982
|
-
readonly height: number | null;
|
|
983
|
-
readonly url: string | null;
|
|
984
|
-
readonly width: number | null;
|
|
1663
|
+
readonly total_allocated_amount: number;
|
|
1664
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1665
|
+
readonly value: number;
|
|
1666
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1667
|
+
readonly description: string | null;
|
|
985
1668
|
};
|
|
986
|
-
readonly handle: string;
|
|
987
|
-
readonly requires_shipping: boolean;
|
|
988
|
-
readonly product_type: string | null;
|
|
989
|
-
readonly product_title: string;
|
|
990
|
-
readonly product_description: string | null;
|
|
991
|
-
readonly variant_title: string | null;
|
|
992
|
-
readonly options_with_values: readonly {
|
|
993
|
-
readonly value: string;
|
|
994
|
-
readonly name: string;
|
|
995
|
-
}[];
|
|
996
|
-
readonly line_level_discount_allocations: readonly {
|
|
997
|
-
readonly discount_application: {
|
|
998
|
-
readonly title: string;
|
|
999
|
-
readonly description: string | null;
|
|
1000
|
-
readonly value: number;
|
|
1001
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1002
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
1003
|
-
readonly total_allocated_amount: number;
|
|
1004
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1005
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
1006
|
-
};
|
|
1007
|
-
readonly amount: number;
|
|
1008
|
-
}[];
|
|
1009
|
-
readonly line_level_total_discount: number;
|
|
1010
|
-
readonly has_components: boolean;
|
|
1011
|
-
readonly unit_price?: number | undefined;
|
|
1012
|
-
} & {
|
|
1013
|
-
readonly properties_array: readonly {
|
|
1014
|
-
readonly key: string;
|
|
1015
|
-
readonly value: string | number | boolean | null;
|
|
1016
|
-
}[];
|
|
1017
|
-
readonly private_properties: {
|
|
1018
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1019
|
-
};
|
|
1020
|
-
readonly private_properties_array: readonly {
|
|
1021
|
-
readonly key: string;
|
|
1022
|
-
readonly value: string | number | boolean | null;
|
|
1023
|
-
}[];
|
|
1024
|
-
readonly public_properties: {
|
|
1025
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1026
|
-
};
|
|
1027
|
-
readonly public_properties_array: readonly {
|
|
1028
|
-
readonly key: string;
|
|
1029
|
-
readonly value: string | number | boolean | null;
|
|
1030
|
-
}[];
|
|
1031
|
-
})[];
|
|
1032
|
-
readonly currency: string;
|
|
1033
|
-
readonly items_subtotal_price: number;
|
|
1034
|
-
readonly cart_level_discount_applications: readonly {
|
|
1035
|
-
readonly title: string;
|
|
1036
|
-
readonly description: string | null;
|
|
1037
|
-
readonly value: number;
|
|
1038
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1039
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
1040
|
-
readonly total_allocated_amount: number;
|
|
1041
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1042
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
1043
1669
|
}[];
|
|
1044
|
-
|
|
1045
|
-
readonly
|
|
1670
|
+
readonly has_components: boolean;
|
|
1671
|
+
readonly properties: {
|
|
1672
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1673
|
+
};
|
|
1674
|
+
readonly quantity: number;
|
|
1675
|
+
readonly variant_id: string | number;
|
|
1676
|
+
readonly original_price: number;
|
|
1677
|
+
readonly discounted_price: number;
|
|
1678
|
+
readonly line_price: number;
|
|
1679
|
+
readonly original_line_price: number;
|
|
1680
|
+
readonly total_discount: number;
|
|
1681
|
+
readonly grams: number;
|
|
1682
|
+
readonly vendor: string;
|
|
1683
|
+
readonly taxable: boolean;
|
|
1684
|
+
readonly product_id: string | number;
|
|
1685
|
+
readonly product_has_only_default_variant: boolean;
|
|
1686
|
+
readonly gift_card: boolean;
|
|
1687
|
+
readonly final_line_price: number;
|
|
1688
|
+
readonly final_price: number;
|
|
1689
|
+
readonly featured_image: {
|
|
1690
|
+
readonly aspect_ratio: number | null;
|
|
1691
|
+
readonly alt: string | null;
|
|
1692
|
+
readonly height: number | null;
|
|
1693
|
+
readonly url: string | null;
|
|
1694
|
+
readonly width: number | null;
|
|
1695
|
+
};
|
|
1696
|
+
readonly handle: string;
|
|
1697
|
+
readonly requires_shipping: boolean;
|
|
1698
|
+
readonly product_title: string;
|
|
1699
|
+
readonly line_level_total_discount: number;
|
|
1700
|
+
readonly properties_array: readonly {
|
|
1046
1701
|
readonly key: string;
|
|
1047
1702
|
readonly value: string | number | boolean | null;
|
|
1048
1703
|
}[];
|
|
1049
|
-
readonly
|
|
1704
|
+
readonly private_properties: {
|
|
1050
1705
|
readonly [x: string]: string | number | boolean | null;
|
|
1051
1706
|
};
|
|
1052
|
-
readonly
|
|
1707
|
+
readonly private_properties_array: readonly {
|
|
1053
1708
|
readonly key: string;
|
|
1054
1709
|
readonly value: string | number | boolean | null;
|
|
1055
1710
|
}[];
|
|
1056
|
-
readonly
|
|
1711
|
+
readonly public_properties: {
|
|
1057
1712
|
readonly [x: string]: string | number | boolean | null;
|
|
1058
1713
|
};
|
|
1059
|
-
readonly
|
|
1714
|
+
readonly public_properties_array: readonly {
|
|
1060
1715
|
readonly key: string;
|
|
1061
1716
|
readonly value: string | number | boolean | null;
|
|
1062
1717
|
}[];
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1718
|
+
readonly quantity_rule?: {
|
|
1719
|
+
readonly min: number;
|
|
1720
|
+
readonly max: number | null;
|
|
1721
|
+
readonly increment: number;
|
|
1722
|
+
} | undefined;
|
|
1723
|
+
readonly unit_price_measurement?: {
|
|
1724
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
1725
|
+
readonly quantity_unit: string;
|
|
1726
|
+
readonly quantity_value: number;
|
|
1727
|
+
readonly reference_unit: string;
|
|
1728
|
+
readonly reference_value: number;
|
|
1729
|
+
} | undefined;
|
|
1730
|
+
readonly unit_price?: number | undefined;
|
|
1731
|
+
}[];
|
|
1732
|
+
readonly requires_shipping: boolean;
|
|
1733
|
+
readonly currency: string;
|
|
1734
|
+
readonly items_subtotal_price: number;
|
|
1735
|
+
readonly cart_level_discount_applications: readonly {
|
|
1736
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1737
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1738
|
+
readonly title: string;
|
|
1739
|
+
readonly total_allocated_amount: number;
|
|
1740
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1741
|
+
readonly value: number;
|
|
1742
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1743
|
+
readonly description: string | null;
|
|
1744
|
+
}[];
|
|
1745
|
+
readonly attributes_array: readonly {
|
|
1746
|
+
readonly key: string;
|
|
1747
|
+
readonly value: string | number | boolean | null;
|
|
1748
|
+
}[];
|
|
1749
|
+
readonly private_attributes: {
|
|
1750
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1751
|
+
};
|
|
1752
|
+
readonly private_attributes_array: readonly {
|
|
1753
|
+
readonly key: string;
|
|
1754
|
+
readonly value: string | number | boolean | null;
|
|
1755
|
+
}[];
|
|
1756
|
+
readonly public_attributes: {
|
|
1757
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1758
|
+
};
|
|
1759
|
+
readonly public_attributes_array: readonly {
|
|
1760
|
+
readonly key: string;
|
|
1761
|
+
readonly value: string | number | boolean | null;
|
|
1762
|
+
}[];
|
|
1763
|
+
}, {
|
|
1764
|
+
readonly attributes: {
|
|
1765
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1766
|
+
};
|
|
1767
|
+
readonly total_discount: number;
|
|
1768
|
+
readonly requires_shipping: boolean;
|
|
1769
|
+
readonly note: string | null;
|
|
1770
|
+
readonly cart_level_discount_applications: readonly ({
|
|
1771
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1772
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1773
|
+
readonly title: string;
|
|
1774
|
+
readonly total_allocated_amount: number;
|
|
1775
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1776
|
+
readonly value: string | number;
|
|
1777
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1778
|
+
readonly description: string | null;
|
|
1779
|
+
} | {
|
|
1780
|
+
readonly discount_application: {
|
|
1781
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1782
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1783
|
+
readonly title: string;
|
|
1784
|
+
readonly total_allocated_amount: number;
|
|
1785
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1786
|
+
readonly value: string | number;
|
|
1787
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1788
|
+
readonly description: string | null;
|
|
1789
|
+
};
|
|
1790
|
+
})[];
|
|
1791
|
+
readonly token: string;
|
|
1792
|
+
readonly original_total_price: number;
|
|
1793
|
+
readonly total_price: number;
|
|
1794
|
+
readonly total_weight: number;
|
|
1795
|
+
readonly item_count: number;
|
|
1796
|
+
readonly items: readonly {
|
|
1797
|
+
readonly title: string;
|
|
1798
|
+
readonly key: string;
|
|
1799
|
+
readonly url: string;
|
|
1800
|
+
readonly image: string | null;
|
|
1801
|
+
readonly price: number;
|
|
1802
|
+
readonly id: string | number;
|
|
1803
|
+
readonly sku: string | null;
|
|
1804
|
+
readonly product_type: string | null;
|
|
1805
|
+
readonly product_description: string | null;
|
|
1806
|
+
readonly variant_title: string | null;
|
|
1807
|
+
readonly options_with_values: readonly {
|
|
1808
|
+
readonly name: string;
|
|
1809
|
+
readonly value: string;
|
|
1810
|
+
}[];
|
|
1811
|
+
readonly line_level_discount_allocations: readonly {
|
|
1812
|
+
readonly amount: number;
|
|
1813
|
+
readonly discount_application: {
|
|
1814
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1815
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1816
|
+
readonly title: string;
|
|
1817
|
+
readonly total_allocated_amount: number;
|
|
1818
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1819
|
+
readonly value: string | number;
|
|
1820
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1821
|
+
readonly description: string | null;
|
|
1822
|
+
};
|
|
1823
|
+
}[];
|
|
1824
|
+
readonly properties: {
|
|
1825
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1826
|
+
};
|
|
1827
|
+
readonly quantity: number;
|
|
1828
|
+
readonly variant_id: string | number;
|
|
1829
|
+
readonly original_price: number;
|
|
1830
|
+
readonly discounted_price: number;
|
|
1831
|
+
readonly line_price: number;
|
|
1832
|
+
readonly original_line_price: number;
|
|
1833
|
+
readonly total_discount: number;
|
|
1834
|
+
readonly grams: number;
|
|
1835
|
+
readonly vendor: string;
|
|
1836
|
+
readonly taxable: boolean;
|
|
1837
|
+
readonly product_id: string | number;
|
|
1838
|
+
readonly product_has_only_default_variant: boolean;
|
|
1839
|
+
readonly gift_card: boolean;
|
|
1840
|
+
readonly final_line_price: number;
|
|
1841
|
+
readonly final_price: number;
|
|
1842
|
+
readonly featured_image: {
|
|
1843
|
+
readonly aspect_ratio: number | null;
|
|
1844
|
+
readonly alt: string | null;
|
|
1845
|
+
readonly height: number | null;
|
|
1846
|
+
readonly url: string | null;
|
|
1847
|
+
readonly width: number | null;
|
|
1848
|
+
};
|
|
1849
|
+
readonly handle: string;
|
|
1850
|
+
readonly requires_shipping: boolean;
|
|
1851
|
+
readonly product_title: string;
|
|
1852
|
+
readonly line_level_total_discount: number;
|
|
1853
|
+
readonly quantity_rule?: {
|
|
1854
|
+
readonly min: number;
|
|
1855
|
+
readonly max: number | null;
|
|
1856
|
+
readonly increment: number;
|
|
1857
|
+
} | undefined;
|
|
1858
|
+
readonly selling_plan_allocation?: {
|
|
1859
|
+
readonly price_adjustments: readonly {
|
|
1860
|
+
readonly position: number;
|
|
1861
|
+
readonly price: number;
|
|
1862
|
+
}[];
|
|
1863
|
+
readonly price: number;
|
|
1864
|
+
readonly compare_at_price: number;
|
|
1865
|
+
readonly per_delivery_price: number;
|
|
1866
|
+
readonly selling_plan: {
|
|
1867
|
+
readonly description: string | null;
|
|
1868
|
+
readonly name: string;
|
|
1869
|
+
readonly options: readonly {
|
|
1870
|
+
readonly name: string;
|
|
1871
|
+
readonly position: number;
|
|
1872
|
+
readonly value: string;
|
|
1873
|
+
}[];
|
|
1874
|
+
readonly price_adjustments: readonly {
|
|
1875
|
+
readonly order_count: number | null;
|
|
1876
|
+
readonly position: number;
|
|
1877
|
+
readonly value: string | number;
|
|
1878
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
1879
|
+
}[];
|
|
1880
|
+
readonly id: string | number;
|
|
1881
|
+
readonly recurring_deliveries?: boolean | undefined;
|
|
1882
|
+
readonly fixed_selling_plan?: boolean | undefined;
|
|
1883
|
+
};
|
|
1884
|
+
} | null | undefined;
|
|
1885
|
+
readonly unit_price_measurement?: {
|
|
1886
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
1887
|
+
readonly quantity_unit: string;
|
|
1888
|
+
readonly quantity_value: number;
|
|
1889
|
+
readonly reference_unit: string;
|
|
1890
|
+
readonly reference_value: number;
|
|
1891
|
+
} | undefined;
|
|
1892
|
+
readonly variant_options?: readonly string[] | undefined;
|
|
1893
|
+
readonly discounts?: readonly {
|
|
1894
|
+
readonly amount: number;
|
|
1895
|
+
readonly title: string;
|
|
1896
|
+
}[] | undefined;
|
|
1897
|
+
readonly has_components?: boolean | undefined;
|
|
1898
|
+
readonly unit_price?: number | undefined;
|
|
1899
|
+
}[];
|
|
1900
|
+
readonly currency: string;
|
|
1901
|
+
readonly items_subtotal_price: number;
|
|
1902
|
+
readonly items_changelog: {
|
|
1903
|
+
readonly added: readonly {
|
|
1904
|
+
readonly variant_id: number;
|
|
1905
|
+
readonly quantity: number;
|
|
1906
|
+
}[];
|
|
1907
|
+
};
|
|
1908
|
+
readonly discounts?: readonly {
|
|
1909
|
+
readonly amount: number;
|
|
1910
|
+
readonly title: string;
|
|
1911
|
+
}[] | undefined;
|
|
1912
|
+
readonly discount_codes?: readonly {
|
|
1913
|
+
readonly code: string;
|
|
1914
|
+
readonly applicable: boolean;
|
|
1915
|
+
}[] | undefined;
|
|
1916
|
+
}, never>;
|
|
1070
1917
|
|
|
1071
1918
|
export {};
|