@brytdesigns/shopify-ajax-cart-api 1.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 +13 -0
- package/dist/effect/api/CartAdd.js.map +1 -0
- package/dist/effect/api/CartChange.js +13 -0
- package/dist/effect/api/CartChange.js.map +1 -0
- package/dist/effect/api/CartClear.js +13 -0
- package/dist/effect/api/CartClear.js.map +1 -0
- package/dist/effect/api/CartGet.js +13 -0
- package/dist/effect/api/CartGet.js.map +1 -0
- package/dist/effect/api/CartUpdate.js +13 -0
- package/dist/effect/api/CartUpdate.js.map +1 -0
- package/dist/effect/data/AjaxClientResponse.js +9 -0
- package/dist/effect/data/AjaxClientResponse.js.map +1 -0
- package/dist/effect/data/index.js +4 -0
- package/dist/effect/data/index.js.map +1 -0
- package/dist/effect/errors.js +17 -0
- package/dist/effect/errors.js.map +1 -0
- package/dist/effect/index.d.ts +1629 -0
- package/dist/effect/index.js +16 -0
- package/dist/effect/index.js.map +1 -0
- package/dist/effect/logger/LoggerUtils.js +10 -0
- package/dist/effect/logger/LoggerUtils.js.map +1 -0
- package/dist/effect/schema.js +293 -0
- package/dist/effect/schema.js.map +1 -0
- package/dist/effect/services/AjaxRequest.js +106 -0
- package/dist/effect/services/AjaxRequest.js.map +1 -0
- package/dist/main/effect/api/CartAdd.js +13 -0
- package/dist/main/effect/api/CartAdd.js.map +1 -0
- package/dist/main/effect/api/CartChange.js +13 -0
- package/dist/main/effect/api/CartChange.js.map +1 -0
- package/dist/main/effect/api/CartClear.js +13 -0
- package/dist/main/effect/api/CartClear.js.map +1 -0
- package/dist/main/effect/api/CartGet.js +13 -0
- package/dist/main/effect/api/CartGet.js.map +1 -0
- package/dist/main/effect/api/CartUpdate.js +13 -0
- package/dist/main/effect/api/CartUpdate.js.map +1 -0
- package/dist/main/effect/data/AjaxClientResponse.js +9 -0
- package/dist/main/effect/data/AjaxClientResponse.js.map +1 -0
- package/dist/main/effect/data/index.js +4 -0
- package/dist/main/effect/data/index.js.map +1 -0
- package/dist/main/effect/errors.js +17 -0
- package/dist/main/effect/errors.js.map +1 -0
- package/dist/main/effect/index.js +16 -0
- package/dist/main/effect/index.js.map +1 -0
- package/dist/main/effect/logger/LoggerUtils.js +10 -0
- package/dist/main/effect/logger/LoggerUtils.js.map +1 -0
- package/dist/main/effect/schema.js +293 -0
- package/dist/main/effect/schema.js.map +1 -0
- package/dist/main/effect/services/AjaxRequest.js +106 -0
- package/dist/main/effect/services/AjaxRequest.js.map +1 -0
- package/dist/main/index.d.ts +3044 -0
- package/dist/main/index.js +188 -0
- package/dist/main/index.js.map +1 -0
- package/package.json +42 -0
|
@@ -0,0 +1,1629 @@
|
|
|
1
|
+
// Generated by dts-bundle-generator v9.5.1
|
|
2
|
+
|
|
3
|
+
import * as Data from 'effect/Data';
|
|
4
|
+
import * as Schema from 'effect/Schema';
|
|
5
|
+
|
|
6
|
+
export type CartAddInput = Schema.Schema.Encoded<typeof CartAddInput>;
|
|
7
|
+
declare const CartAddInput: Schema.extend<Schema.Struct<{
|
|
8
|
+
items: Schema.Array$<Schema.Struct<{
|
|
9
|
+
id: Schema.Union<[
|
|
10
|
+
typeof Schema.Number,
|
|
11
|
+
typeof Schema.NumberFromString,
|
|
12
|
+
typeof Schema.String
|
|
13
|
+
]>;
|
|
14
|
+
quantity: Schema.optionalWith<typeof Schema.Number, {
|
|
15
|
+
default: () => number;
|
|
16
|
+
}>;
|
|
17
|
+
properties: Schema.optionalWith<Schema.Record$<typeof Schema.String, Schema.Union<[
|
|
18
|
+
typeof Schema.Null,
|
|
19
|
+
typeof Schema.String,
|
|
20
|
+
typeof Schema.Boolean,
|
|
21
|
+
typeof Schema.Number
|
|
22
|
+
]>>, {
|
|
23
|
+
default: () => {};
|
|
24
|
+
}>;
|
|
25
|
+
selling_plan: Schema.optional<Schema.Union<[
|
|
26
|
+
typeof Schema.Number,
|
|
27
|
+
typeof Schema.NumberFromString,
|
|
28
|
+
typeof Schema.String
|
|
29
|
+
]>>;
|
|
30
|
+
}>>;
|
|
31
|
+
}>, Schema.Struct<{
|
|
32
|
+
sections: Schema.optional<typeof Schema.String>;
|
|
33
|
+
sections_url: Schema.optional<typeof Schema.String>;
|
|
34
|
+
}>>;
|
|
35
|
+
export type CartUpdateInput = Schema.Schema.Encoded<typeof CartUpdateInput>;
|
|
36
|
+
declare const CartUpdateInput: Schema.extend<Schema.Struct<{
|
|
37
|
+
updates: Schema.optional<Schema.Union<[
|
|
38
|
+
Schema.Record$<typeof Schema.String, typeof Schema.Number>,
|
|
39
|
+
Schema.Array$<typeof Schema.Number>
|
|
40
|
+
]>>;
|
|
41
|
+
note: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
42
|
+
attributes: Schema.optional<Schema.Record$<typeof Schema.String, Schema.Union<[
|
|
43
|
+
typeof Schema.Null,
|
|
44
|
+
typeof Schema.String,
|
|
45
|
+
typeof Schema.Boolean,
|
|
46
|
+
typeof Schema.Number
|
|
47
|
+
]>>>;
|
|
48
|
+
discount: Schema.optionalWith<Schema.transform<Schema.Array$<typeof Schema.String>, typeof Schema.String>, {
|
|
49
|
+
default: () => string;
|
|
50
|
+
}>;
|
|
51
|
+
}>, Schema.Struct<{
|
|
52
|
+
sections: Schema.optional<typeof Schema.String>;
|
|
53
|
+
sections_url: Schema.optional<typeof Schema.String>;
|
|
54
|
+
}>>;
|
|
55
|
+
export type CartChangeInput = Schema.Schema.Encoded<typeof CartChangeInput>;
|
|
56
|
+
declare const CartChangeInput: Schema.Union<[
|
|
57
|
+
Schema.extend<Schema.Struct<{
|
|
58
|
+
id: typeof Schema.String;
|
|
59
|
+
}>, Schema.extend<Schema.Struct<{
|
|
60
|
+
quantity: Schema.optional<typeof Schema.Number>;
|
|
61
|
+
properties: Schema.optional<Schema.Record$<typeof Schema.String, Schema.NullOr<typeof Schema.String>>>;
|
|
62
|
+
selling_plan: Schema.optional<Schema.NullOr<Schema.Union<[
|
|
63
|
+
typeof Schema.Number,
|
|
64
|
+
typeof Schema.NumberFromString,
|
|
65
|
+
typeof Schema.String
|
|
66
|
+
]>>>;
|
|
67
|
+
}>, Schema.Struct<{
|
|
68
|
+
sections: Schema.optional<typeof Schema.String>;
|
|
69
|
+
sections_url: Schema.optional<typeof Schema.String>;
|
|
70
|
+
}>>>,
|
|
71
|
+
Schema.extend<Schema.Struct<{
|
|
72
|
+
line: typeof Schema.Number;
|
|
73
|
+
}>, Schema.extend<Schema.Struct<{
|
|
74
|
+
quantity: Schema.optional<typeof Schema.Number>;
|
|
75
|
+
properties: Schema.optional<Schema.Record$<typeof Schema.String, Schema.NullOr<typeof Schema.String>>>;
|
|
76
|
+
selling_plan: Schema.optional<Schema.NullOr<Schema.Union<[
|
|
77
|
+
typeof Schema.Number,
|
|
78
|
+
typeof Schema.NumberFromString,
|
|
79
|
+
typeof Schema.String
|
|
80
|
+
]>>>;
|
|
81
|
+
}>, Schema.Struct<{
|
|
82
|
+
sections: Schema.optional<typeof Schema.String>;
|
|
83
|
+
sections_url: Schema.optional<typeof Schema.String>;
|
|
84
|
+
}>>>
|
|
85
|
+
]>;
|
|
86
|
+
export type CartClearInput = Schema.Schema.Encoded<typeof CartClearInput>;
|
|
87
|
+
declare const CartClearInput: Schema.Struct<{
|
|
88
|
+
sections: Schema.optional<typeof Schema.String>;
|
|
89
|
+
sections_url: Schema.optional<typeof Schema.String>;
|
|
90
|
+
}>;
|
|
91
|
+
export type CartGetInput = Schema.Schema.Encoded<typeof CartClearInput>;
|
|
92
|
+
declare const CartGetInput: Schema.Struct<{
|
|
93
|
+
sections: Schema.optional<typeof Schema.String>;
|
|
94
|
+
sections_url: Schema.optional<typeof Schema.String>;
|
|
95
|
+
}>;
|
|
96
|
+
export interface IAjaxClientResponse<TData = any> {
|
|
97
|
+
data?: TData;
|
|
98
|
+
error?: {
|
|
99
|
+
status: number;
|
|
100
|
+
message: string;
|
|
101
|
+
description?: string;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
declare class AjaxClientResponse<TData = any> extends Data.Class<IAjaxClientResponse<TData>> {
|
|
105
|
+
}
|
|
106
|
+
declare const CartError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : {
|
|
107
|
+
readonly [P in keyof A as P extends "_tag" ? never : P]: A[P];
|
|
108
|
+
}) => import("effect/Cause").YieldableError & {
|
|
109
|
+
readonly _tag: "@brytdesigns/hybrid-cart-client/CartError";
|
|
110
|
+
} & Readonly<A>;
|
|
111
|
+
/**
|
|
112
|
+
* @internal
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
export declare class CartError extends CartError_base<{
|
|
116
|
+
status: number;
|
|
117
|
+
message: string;
|
|
118
|
+
description: string;
|
|
119
|
+
}> {
|
|
120
|
+
}
|
|
121
|
+
declare const InvalidAjaxMethodError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : {
|
|
122
|
+
readonly [P in keyof A as P extends "_tag" ? never : P]: A[P];
|
|
123
|
+
}) => import("effect/Cause").YieldableError & {
|
|
124
|
+
readonly _tag: "@brytdesigns/hybrid-cart-client/InvalidAjaxMethodError";
|
|
125
|
+
} & Readonly<A>;
|
|
126
|
+
/**
|
|
127
|
+
* @internal
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
130
|
+
export declare class InvalidAjaxMethodError extends InvalidAjaxMethodError_base<{
|
|
131
|
+
message: string;
|
|
132
|
+
}> {
|
|
133
|
+
constructor();
|
|
134
|
+
}
|
|
135
|
+
export type AddInput = CartAddInput;
|
|
136
|
+
export type ChangeInput = CartChangeInput;
|
|
137
|
+
export type ClearInput = CartClearInput;
|
|
138
|
+
export type GetInput = CartGetInput;
|
|
139
|
+
export type UpdateInput = CartUpdateInput;
|
|
140
|
+
export declare namespace add {
|
|
141
|
+
type Input = AddInput;
|
|
142
|
+
}
|
|
143
|
+
export declare const add: (input?: ({
|
|
144
|
+
readonly items: readonly {
|
|
145
|
+
readonly id: string | number;
|
|
146
|
+
readonly selling_plan?: string | number | undefined;
|
|
147
|
+
readonly properties?: {
|
|
148
|
+
readonly [x: string]: string | number | boolean | null;
|
|
149
|
+
} | undefined;
|
|
150
|
+
readonly quantity?: number | undefined;
|
|
151
|
+
}[];
|
|
152
|
+
} & {
|
|
153
|
+
readonly sections?: string | undefined;
|
|
154
|
+
readonly sections_url?: string | undefined;
|
|
155
|
+
}) | undefined) => import("effect/Effect").Effect<AjaxClientResponse<undefined> | AjaxClientResponse<{
|
|
156
|
+
readonly items: readonly {
|
|
157
|
+
readonly title: string;
|
|
158
|
+
readonly url: string;
|
|
159
|
+
readonly price: number;
|
|
160
|
+
readonly id: string | number;
|
|
161
|
+
readonly key: string;
|
|
162
|
+
readonly properties: {
|
|
163
|
+
readonly [x: string]: string | number | boolean | null;
|
|
164
|
+
} | null;
|
|
165
|
+
readonly quantity: number;
|
|
166
|
+
readonly variant_id: string | number;
|
|
167
|
+
readonly original_price: number;
|
|
168
|
+
readonly discounted_price: number;
|
|
169
|
+
readonly line_price: number;
|
|
170
|
+
readonly original_line_price: number;
|
|
171
|
+
readonly total_discount: number;
|
|
172
|
+
readonly discounts: readonly {
|
|
173
|
+
readonly title: string;
|
|
174
|
+
readonly amount: number;
|
|
175
|
+
}[];
|
|
176
|
+
readonly sku: string | null;
|
|
177
|
+
readonly grams: number;
|
|
178
|
+
readonly vendor: string;
|
|
179
|
+
readonly taxable: boolean;
|
|
180
|
+
readonly product_id: string | number;
|
|
181
|
+
readonly product_has_only_default_variant: boolean;
|
|
182
|
+
readonly gift_card: boolean;
|
|
183
|
+
readonly final_line_price: number;
|
|
184
|
+
readonly final_price: number;
|
|
185
|
+
readonly featured_image?: {
|
|
186
|
+
readonly aspect_ratio: number;
|
|
187
|
+
readonly alt: string;
|
|
188
|
+
readonly height: number;
|
|
189
|
+
readonly url: string;
|
|
190
|
+
readonly width: number;
|
|
191
|
+
} | undefined;
|
|
192
|
+
readonly image: string;
|
|
193
|
+
readonly handle: string;
|
|
194
|
+
readonly requires_shipping: boolean;
|
|
195
|
+
readonly product_type: string;
|
|
196
|
+
readonly product_title: string;
|
|
197
|
+
readonly product_description: string;
|
|
198
|
+
readonly variant_title: string | null;
|
|
199
|
+
readonly variant_options: readonly string[];
|
|
200
|
+
readonly options_with_values: readonly {
|
|
201
|
+
readonly value: string;
|
|
202
|
+
readonly name: string;
|
|
203
|
+
}[];
|
|
204
|
+
readonly line_level_discount_allocations: readonly {
|
|
205
|
+
readonly amount: number;
|
|
206
|
+
readonly discount_application: {
|
|
207
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
208
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
209
|
+
readonly title: string;
|
|
210
|
+
readonly total_allocated_amount: number;
|
|
211
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
212
|
+
readonly value: number;
|
|
213
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
214
|
+
readonly description: string | null;
|
|
215
|
+
};
|
|
216
|
+
}[];
|
|
217
|
+
readonly line_level_total_discount: number;
|
|
218
|
+
readonly quantity_rule?: {
|
|
219
|
+
readonly min: number;
|
|
220
|
+
readonly max: number | null;
|
|
221
|
+
readonly increment: number;
|
|
222
|
+
} | undefined;
|
|
223
|
+
readonly has_components: boolean;
|
|
224
|
+
readonly unit_price?: number | undefined;
|
|
225
|
+
readonly unit_price_measurement?: {
|
|
226
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
227
|
+
readonly quantity_unit: string;
|
|
228
|
+
readonly quantity_value: number;
|
|
229
|
+
readonly reference_unit: string;
|
|
230
|
+
readonly reference_value: number;
|
|
231
|
+
} | undefined;
|
|
232
|
+
readonly selling_plan_allocation: {
|
|
233
|
+
readonly price: number;
|
|
234
|
+
readonly price_adjustments: readonly {
|
|
235
|
+
readonly position: number;
|
|
236
|
+
readonly price: number;
|
|
237
|
+
}[];
|
|
238
|
+
readonly compare_at_price: number;
|
|
239
|
+
readonly per_delivery_price: number;
|
|
240
|
+
readonly selling_plan: {
|
|
241
|
+
readonly description: string | null;
|
|
242
|
+
readonly name: string;
|
|
243
|
+
readonly id: string | number;
|
|
244
|
+
readonly options: readonly {
|
|
245
|
+
readonly value: string;
|
|
246
|
+
readonly name: string;
|
|
247
|
+
readonly position: number;
|
|
248
|
+
}[];
|
|
249
|
+
readonly recurring_deliveries: boolean;
|
|
250
|
+
readonly fixed_selling_plan: boolean;
|
|
251
|
+
readonly price_adjustments: readonly {
|
|
252
|
+
readonly value: number;
|
|
253
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
254
|
+
readonly position: number;
|
|
255
|
+
readonly order_count: number | null;
|
|
256
|
+
}[];
|
|
257
|
+
};
|
|
258
|
+
} | null;
|
|
259
|
+
}[];
|
|
260
|
+
} & {
|
|
261
|
+
readonly sections: {
|
|
262
|
+
readonly [x: string]: string | null;
|
|
263
|
+
};
|
|
264
|
+
}> | AjaxClientResponse<{
|
|
265
|
+
readonly items: readonly {
|
|
266
|
+
readonly title: string;
|
|
267
|
+
readonly url: string;
|
|
268
|
+
readonly price: number;
|
|
269
|
+
readonly id: string | number;
|
|
270
|
+
readonly key: string;
|
|
271
|
+
readonly properties: {
|
|
272
|
+
readonly [x: string]: string | number | boolean | null;
|
|
273
|
+
} | null;
|
|
274
|
+
readonly quantity: number;
|
|
275
|
+
readonly variant_id: string | number;
|
|
276
|
+
readonly original_price: number;
|
|
277
|
+
readonly discounted_price: number;
|
|
278
|
+
readonly line_price: number;
|
|
279
|
+
readonly original_line_price: number;
|
|
280
|
+
readonly total_discount: number;
|
|
281
|
+
readonly discounts: readonly {
|
|
282
|
+
readonly title: string;
|
|
283
|
+
readonly amount: number;
|
|
284
|
+
}[];
|
|
285
|
+
readonly sku: string | null;
|
|
286
|
+
readonly grams: number;
|
|
287
|
+
readonly vendor: string;
|
|
288
|
+
readonly taxable: boolean;
|
|
289
|
+
readonly product_id: string | number;
|
|
290
|
+
readonly product_has_only_default_variant: boolean;
|
|
291
|
+
readonly gift_card: boolean;
|
|
292
|
+
readonly final_line_price: number;
|
|
293
|
+
readonly final_price: number;
|
|
294
|
+
readonly featured_image?: {
|
|
295
|
+
readonly aspect_ratio: number;
|
|
296
|
+
readonly alt: string;
|
|
297
|
+
readonly height: number;
|
|
298
|
+
readonly url: string;
|
|
299
|
+
readonly width: number;
|
|
300
|
+
} | undefined;
|
|
301
|
+
readonly image: string;
|
|
302
|
+
readonly handle: string;
|
|
303
|
+
readonly requires_shipping: boolean;
|
|
304
|
+
readonly product_type: string;
|
|
305
|
+
readonly product_title: string;
|
|
306
|
+
readonly product_description: string;
|
|
307
|
+
readonly variant_title: string | null;
|
|
308
|
+
readonly variant_options: readonly string[];
|
|
309
|
+
readonly options_with_values: readonly {
|
|
310
|
+
readonly value: string;
|
|
311
|
+
readonly name: string;
|
|
312
|
+
}[];
|
|
313
|
+
readonly line_level_discount_allocations: readonly {
|
|
314
|
+
readonly amount: number;
|
|
315
|
+
readonly discount_application: {
|
|
316
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
317
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
318
|
+
readonly title: string;
|
|
319
|
+
readonly total_allocated_amount: number;
|
|
320
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
321
|
+
readonly value: number;
|
|
322
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
323
|
+
readonly description: string | null;
|
|
324
|
+
};
|
|
325
|
+
}[];
|
|
326
|
+
readonly line_level_total_discount: number;
|
|
327
|
+
readonly quantity_rule?: {
|
|
328
|
+
readonly min: number;
|
|
329
|
+
readonly max: number | null;
|
|
330
|
+
readonly increment: number;
|
|
331
|
+
} | undefined;
|
|
332
|
+
readonly has_components: boolean;
|
|
333
|
+
readonly unit_price?: number | undefined;
|
|
334
|
+
readonly unit_price_measurement?: {
|
|
335
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
336
|
+
readonly quantity_unit: string;
|
|
337
|
+
readonly quantity_value: number;
|
|
338
|
+
readonly reference_unit: string;
|
|
339
|
+
readonly reference_value: number;
|
|
340
|
+
} | undefined;
|
|
341
|
+
readonly selling_plan_allocation: {
|
|
342
|
+
readonly price: number;
|
|
343
|
+
readonly price_adjustments: readonly {
|
|
344
|
+
readonly position: number;
|
|
345
|
+
readonly price: number;
|
|
346
|
+
}[];
|
|
347
|
+
readonly compare_at_price: number;
|
|
348
|
+
readonly per_delivery_price: number;
|
|
349
|
+
readonly selling_plan: {
|
|
350
|
+
readonly description: string | null;
|
|
351
|
+
readonly name: string;
|
|
352
|
+
readonly id: string | number;
|
|
353
|
+
readonly options: readonly {
|
|
354
|
+
readonly value: string;
|
|
355
|
+
readonly name: string;
|
|
356
|
+
readonly position: number;
|
|
357
|
+
}[];
|
|
358
|
+
readonly recurring_deliveries: boolean;
|
|
359
|
+
readonly fixed_selling_plan: boolean;
|
|
360
|
+
readonly price_adjustments: readonly {
|
|
361
|
+
readonly value: number;
|
|
362
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
363
|
+
readonly position: number;
|
|
364
|
+
readonly order_count: number | null;
|
|
365
|
+
}[];
|
|
366
|
+
};
|
|
367
|
+
} | null;
|
|
368
|
+
}[];
|
|
369
|
+
} & {
|
|
370
|
+
readonly sections: null;
|
|
371
|
+
}>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
|
|
372
|
+
export declare namespace change {
|
|
373
|
+
type Input = ChangeInput;
|
|
374
|
+
}
|
|
375
|
+
export declare const change: (input?: ({
|
|
376
|
+
readonly id: string;
|
|
377
|
+
} & {
|
|
378
|
+
readonly selling_plan?: string | number | null | undefined;
|
|
379
|
+
readonly properties?: {
|
|
380
|
+
readonly [x: string]: string | null;
|
|
381
|
+
} | undefined;
|
|
382
|
+
readonly quantity?: number | undefined;
|
|
383
|
+
} & {
|
|
384
|
+
readonly sections?: string | undefined;
|
|
385
|
+
readonly sections_url?: string | undefined;
|
|
386
|
+
}) | ({
|
|
387
|
+
readonly line: number;
|
|
388
|
+
} & {
|
|
389
|
+
readonly selling_plan?: string | number | null | undefined;
|
|
390
|
+
readonly properties?: {
|
|
391
|
+
readonly [x: string]: string | null;
|
|
392
|
+
} | undefined;
|
|
393
|
+
readonly quantity?: number | undefined;
|
|
394
|
+
} & {
|
|
395
|
+
readonly sections?: string | undefined;
|
|
396
|
+
readonly sections_url?: string | undefined;
|
|
397
|
+
}) | undefined) => import("effect/Effect").Effect<AjaxClientResponse<undefined> | AjaxClientResponse<{
|
|
398
|
+
readonly total_discount: number;
|
|
399
|
+
readonly discounts: readonly {
|
|
400
|
+
readonly title: string;
|
|
401
|
+
readonly amount: number;
|
|
402
|
+
}[];
|
|
403
|
+
readonly requires_shipping: boolean;
|
|
404
|
+
readonly token: string;
|
|
405
|
+
readonly note: string | null;
|
|
406
|
+
readonly attributes: {
|
|
407
|
+
readonly [x: string]: string | number | boolean | null;
|
|
408
|
+
};
|
|
409
|
+
readonly discount_codes: readonly {
|
|
410
|
+
readonly code: string;
|
|
411
|
+
readonly applicable: boolean;
|
|
412
|
+
}[];
|
|
413
|
+
readonly original_total_price: number;
|
|
414
|
+
readonly total_price: number;
|
|
415
|
+
readonly total_weight: number;
|
|
416
|
+
readonly item_count: number;
|
|
417
|
+
readonly items: readonly {
|
|
418
|
+
readonly title: string;
|
|
419
|
+
readonly url: string;
|
|
420
|
+
readonly price: number;
|
|
421
|
+
readonly id: string | number;
|
|
422
|
+
readonly key: string;
|
|
423
|
+
readonly properties: {
|
|
424
|
+
readonly [x: string]: string | number | boolean | null;
|
|
425
|
+
} | null;
|
|
426
|
+
readonly quantity: number;
|
|
427
|
+
readonly variant_id: string | number;
|
|
428
|
+
readonly original_price: number;
|
|
429
|
+
readonly discounted_price: number;
|
|
430
|
+
readonly line_price: number;
|
|
431
|
+
readonly original_line_price: number;
|
|
432
|
+
readonly total_discount: number;
|
|
433
|
+
readonly discounts: readonly {
|
|
434
|
+
readonly title: string;
|
|
435
|
+
readonly amount: number;
|
|
436
|
+
}[];
|
|
437
|
+
readonly sku: string | null;
|
|
438
|
+
readonly grams: number;
|
|
439
|
+
readonly vendor: string;
|
|
440
|
+
readonly taxable: boolean;
|
|
441
|
+
readonly product_id: string | number;
|
|
442
|
+
readonly product_has_only_default_variant: boolean;
|
|
443
|
+
readonly gift_card: boolean;
|
|
444
|
+
readonly final_line_price: number;
|
|
445
|
+
readonly final_price: number;
|
|
446
|
+
readonly featured_image?: {
|
|
447
|
+
readonly aspect_ratio: number;
|
|
448
|
+
readonly alt: string;
|
|
449
|
+
readonly height: number;
|
|
450
|
+
readonly url: string;
|
|
451
|
+
readonly width: number;
|
|
452
|
+
} | undefined;
|
|
453
|
+
readonly image: string;
|
|
454
|
+
readonly handle: string;
|
|
455
|
+
readonly requires_shipping: boolean;
|
|
456
|
+
readonly product_type: string;
|
|
457
|
+
readonly product_title: string;
|
|
458
|
+
readonly product_description: string;
|
|
459
|
+
readonly variant_title: string | null;
|
|
460
|
+
readonly variant_options: readonly string[];
|
|
461
|
+
readonly options_with_values: readonly {
|
|
462
|
+
readonly value: string;
|
|
463
|
+
readonly name: string;
|
|
464
|
+
}[];
|
|
465
|
+
readonly line_level_discount_allocations: readonly {
|
|
466
|
+
readonly amount: number;
|
|
467
|
+
readonly discount_application: {
|
|
468
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
469
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
470
|
+
readonly title: string;
|
|
471
|
+
readonly total_allocated_amount: number;
|
|
472
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
473
|
+
readonly value: number;
|
|
474
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
475
|
+
readonly description: string | null;
|
|
476
|
+
};
|
|
477
|
+
}[];
|
|
478
|
+
readonly line_level_total_discount: number;
|
|
479
|
+
readonly quantity_rule?: {
|
|
480
|
+
readonly min: number;
|
|
481
|
+
readonly max: number | null;
|
|
482
|
+
readonly increment: number;
|
|
483
|
+
} | undefined;
|
|
484
|
+
readonly has_components: boolean;
|
|
485
|
+
readonly unit_price?: number | undefined;
|
|
486
|
+
readonly unit_price_measurement?: {
|
|
487
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
488
|
+
readonly quantity_unit: string;
|
|
489
|
+
readonly quantity_value: number;
|
|
490
|
+
readonly reference_unit: string;
|
|
491
|
+
readonly reference_value: number;
|
|
492
|
+
} | undefined;
|
|
493
|
+
readonly selling_plan_allocation: {
|
|
494
|
+
readonly price: number;
|
|
495
|
+
readonly price_adjustments: readonly {
|
|
496
|
+
readonly position: number;
|
|
497
|
+
readonly price: number;
|
|
498
|
+
}[];
|
|
499
|
+
readonly compare_at_price: number;
|
|
500
|
+
readonly per_delivery_price: number;
|
|
501
|
+
readonly selling_plan: {
|
|
502
|
+
readonly description: string | null;
|
|
503
|
+
readonly name: string;
|
|
504
|
+
readonly id: string | number;
|
|
505
|
+
readonly options: readonly {
|
|
506
|
+
readonly value: string;
|
|
507
|
+
readonly name: string;
|
|
508
|
+
readonly position: number;
|
|
509
|
+
}[];
|
|
510
|
+
readonly recurring_deliveries: boolean;
|
|
511
|
+
readonly fixed_selling_plan: boolean;
|
|
512
|
+
readonly price_adjustments: readonly {
|
|
513
|
+
readonly value: number;
|
|
514
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
515
|
+
readonly position: number;
|
|
516
|
+
readonly order_count: number | null;
|
|
517
|
+
}[];
|
|
518
|
+
};
|
|
519
|
+
} | null;
|
|
520
|
+
}[];
|
|
521
|
+
readonly currency: string;
|
|
522
|
+
readonly items_subtotal_price: number;
|
|
523
|
+
readonly cart_level_discount_applications: readonly {
|
|
524
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
525
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
526
|
+
readonly title: string;
|
|
527
|
+
readonly total_allocated_amount: number;
|
|
528
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
529
|
+
readonly value: number;
|
|
530
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
531
|
+
readonly description: string | null;
|
|
532
|
+
}[];
|
|
533
|
+
readonly items_added: readonly {
|
|
534
|
+
readonly title: string;
|
|
535
|
+
readonly url: string;
|
|
536
|
+
readonly price: string;
|
|
537
|
+
readonly id: string;
|
|
538
|
+
readonly quantity: number;
|
|
539
|
+
readonly variant_id: number;
|
|
540
|
+
readonly sku: string;
|
|
541
|
+
readonly vendor: string;
|
|
542
|
+
readonly product_id: number;
|
|
543
|
+
readonly image: string;
|
|
544
|
+
readonly product_type: string;
|
|
545
|
+
readonly product_title: string;
|
|
546
|
+
readonly variant_title: string;
|
|
547
|
+
readonly presentment_price: number;
|
|
548
|
+
readonly untranslated_product_title: string;
|
|
549
|
+
readonly untranslated_variant_title: string;
|
|
550
|
+
readonly view_key: string;
|
|
551
|
+
}[];
|
|
552
|
+
readonly items_removed: readonly {
|
|
553
|
+
readonly title: string;
|
|
554
|
+
readonly url: string;
|
|
555
|
+
readonly price: string;
|
|
556
|
+
readonly id: string;
|
|
557
|
+
readonly quantity: number;
|
|
558
|
+
readonly variant_id: number;
|
|
559
|
+
readonly sku: string;
|
|
560
|
+
readonly vendor: string;
|
|
561
|
+
readonly product_id: number;
|
|
562
|
+
readonly image: string;
|
|
563
|
+
readonly product_type: string;
|
|
564
|
+
readonly product_title: string;
|
|
565
|
+
readonly variant_title: string;
|
|
566
|
+
readonly presentment_price: number;
|
|
567
|
+
readonly untranslated_product_title: string;
|
|
568
|
+
readonly untranslated_variant_title: string;
|
|
569
|
+
readonly view_key: string;
|
|
570
|
+
}[];
|
|
571
|
+
} & {
|
|
572
|
+
readonly sections: {
|
|
573
|
+
readonly [x: string]: string | null;
|
|
574
|
+
};
|
|
575
|
+
}> | AjaxClientResponse<{
|
|
576
|
+
readonly total_discount: number;
|
|
577
|
+
readonly discounts: readonly {
|
|
578
|
+
readonly title: string;
|
|
579
|
+
readonly amount: number;
|
|
580
|
+
}[];
|
|
581
|
+
readonly requires_shipping: boolean;
|
|
582
|
+
readonly token: string;
|
|
583
|
+
readonly note: string | null;
|
|
584
|
+
readonly attributes: {
|
|
585
|
+
readonly [x: string]: string | number | boolean | null;
|
|
586
|
+
};
|
|
587
|
+
readonly discount_codes: readonly {
|
|
588
|
+
readonly code: string;
|
|
589
|
+
readonly applicable: boolean;
|
|
590
|
+
}[];
|
|
591
|
+
readonly original_total_price: number;
|
|
592
|
+
readonly total_price: number;
|
|
593
|
+
readonly total_weight: number;
|
|
594
|
+
readonly item_count: number;
|
|
595
|
+
readonly items: readonly {
|
|
596
|
+
readonly title: string;
|
|
597
|
+
readonly url: string;
|
|
598
|
+
readonly price: number;
|
|
599
|
+
readonly id: string | number;
|
|
600
|
+
readonly key: string;
|
|
601
|
+
readonly properties: {
|
|
602
|
+
readonly [x: string]: string | number | boolean | null;
|
|
603
|
+
} | null;
|
|
604
|
+
readonly quantity: number;
|
|
605
|
+
readonly variant_id: string | number;
|
|
606
|
+
readonly original_price: number;
|
|
607
|
+
readonly discounted_price: number;
|
|
608
|
+
readonly line_price: number;
|
|
609
|
+
readonly original_line_price: number;
|
|
610
|
+
readonly total_discount: number;
|
|
611
|
+
readonly discounts: readonly {
|
|
612
|
+
readonly title: string;
|
|
613
|
+
readonly amount: number;
|
|
614
|
+
}[];
|
|
615
|
+
readonly sku: string | null;
|
|
616
|
+
readonly grams: number;
|
|
617
|
+
readonly vendor: string;
|
|
618
|
+
readonly taxable: boolean;
|
|
619
|
+
readonly product_id: string | number;
|
|
620
|
+
readonly product_has_only_default_variant: boolean;
|
|
621
|
+
readonly gift_card: boolean;
|
|
622
|
+
readonly final_line_price: number;
|
|
623
|
+
readonly final_price: number;
|
|
624
|
+
readonly featured_image?: {
|
|
625
|
+
readonly aspect_ratio: number;
|
|
626
|
+
readonly alt: string;
|
|
627
|
+
readonly height: number;
|
|
628
|
+
readonly url: string;
|
|
629
|
+
readonly width: number;
|
|
630
|
+
} | undefined;
|
|
631
|
+
readonly image: string;
|
|
632
|
+
readonly handle: string;
|
|
633
|
+
readonly requires_shipping: boolean;
|
|
634
|
+
readonly product_type: string;
|
|
635
|
+
readonly product_title: string;
|
|
636
|
+
readonly product_description: string;
|
|
637
|
+
readonly variant_title: string | null;
|
|
638
|
+
readonly variant_options: readonly string[];
|
|
639
|
+
readonly options_with_values: readonly {
|
|
640
|
+
readonly value: string;
|
|
641
|
+
readonly name: string;
|
|
642
|
+
}[];
|
|
643
|
+
readonly line_level_discount_allocations: readonly {
|
|
644
|
+
readonly amount: number;
|
|
645
|
+
readonly discount_application: {
|
|
646
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
647
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
648
|
+
readonly title: string;
|
|
649
|
+
readonly total_allocated_amount: number;
|
|
650
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
651
|
+
readonly value: number;
|
|
652
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
653
|
+
readonly description: string | null;
|
|
654
|
+
};
|
|
655
|
+
}[];
|
|
656
|
+
readonly line_level_total_discount: number;
|
|
657
|
+
readonly quantity_rule?: {
|
|
658
|
+
readonly min: number;
|
|
659
|
+
readonly max: number | null;
|
|
660
|
+
readonly increment: number;
|
|
661
|
+
} | undefined;
|
|
662
|
+
readonly has_components: boolean;
|
|
663
|
+
readonly unit_price?: number | undefined;
|
|
664
|
+
readonly unit_price_measurement?: {
|
|
665
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
666
|
+
readonly quantity_unit: string;
|
|
667
|
+
readonly quantity_value: number;
|
|
668
|
+
readonly reference_unit: string;
|
|
669
|
+
readonly reference_value: number;
|
|
670
|
+
} | undefined;
|
|
671
|
+
readonly selling_plan_allocation: {
|
|
672
|
+
readonly price: number;
|
|
673
|
+
readonly price_adjustments: readonly {
|
|
674
|
+
readonly position: number;
|
|
675
|
+
readonly price: number;
|
|
676
|
+
}[];
|
|
677
|
+
readonly compare_at_price: number;
|
|
678
|
+
readonly per_delivery_price: number;
|
|
679
|
+
readonly selling_plan: {
|
|
680
|
+
readonly description: string | null;
|
|
681
|
+
readonly name: string;
|
|
682
|
+
readonly id: string | number;
|
|
683
|
+
readonly options: readonly {
|
|
684
|
+
readonly value: string;
|
|
685
|
+
readonly name: string;
|
|
686
|
+
readonly position: number;
|
|
687
|
+
}[];
|
|
688
|
+
readonly recurring_deliveries: boolean;
|
|
689
|
+
readonly fixed_selling_plan: boolean;
|
|
690
|
+
readonly price_adjustments: readonly {
|
|
691
|
+
readonly value: number;
|
|
692
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
693
|
+
readonly position: number;
|
|
694
|
+
readonly order_count: number | null;
|
|
695
|
+
}[];
|
|
696
|
+
};
|
|
697
|
+
} | null;
|
|
698
|
+
}[];
|
|
699
|
+
readonly currency: string;
|
|
700
|
+
readonly items_subtotal_price: number;
|
|
701
|
+
readonly cart_level_discount_applications: readonly {
|
|
702
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
703
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
704
|
+
readonly title: string;
|
|
705
|
+
readonly total_allocated_amount: number;
|
|
706
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
707
|
+
readonly value: number;
|
|
708
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
709
|
+
readonly description: string | null;
|
|
710
|
+
}[];
|
|
711
|
+
readonly items_added: readonly {
|
|
712
|
+
readonly title: string;
|
|
713
|
+
readonly url: string;
|
|
714
|
+
readonly price: string;
|
|
715
|
+
readonly id: string;
|
|
716
|
+
readonly quantity: number;
|
|
717
|
+
readonly variant_id: number;
|
|
718
|
+
readonly sku: string;
|
|
719
|
+
readonly vendor: string;
|
|
720
|
+
readonly product_id: number;
|
|
721
|
+
readonly image: string;
|
|
722
|
+
readonly product_type: string;
|
|
723
|
+
readonly product_title: string;
|
|
724
|
+
readonly variant_title: string;
|
|
725
|
+
readonly presentment_price: number;
|
|
726
|
+
readonly untranslated_product_title: string;
|
|
727
|
+
readonly untranslated_variant_title: string;
|
|
728
|
+
readonly view_key: string;
|
|
729
|
+
}[];
|
|
730
|
+
readonly items_removed: readonly {
|
|
731
|
+
readonly title: string;
|
|
732
|
+
readonly url: string;
|
|
733
|
+
readonly price: string;
|
|
734
|
+
readonly id: string;
|
|
735
|
+
readonly quantity: number;
|
|
736
|
+
readonly variant_id: number;
|
|
737
|
+
readonly sku: string;
|
|
738
|
+
readonly vendor: string;
|
|
739
|
+
readonly product_id: number;
|
|
740
|
+
readonly image: string;
|
|
741
|
+
readonly product_type: string;
|
|
742
|
+
readonly product_title: string;
|
|
743
|
+
readonly variant_title: string;
|
|
744
|
+
readonly presentment_price: number;
|
|
745
|
+
readonly untranslated_product_title: string;
|
|
746
|
+
readonly untranslated_variant_title: string;
|
|
747
|
+
readonly view_key: string;
|
|
748
|
+
}[];
|
|
749
|
+
} & {
|
|
750
|
+
readonly sections: null;
|
|
751
|
+
}>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
|
|
752
|
+
export declare namespace clear {
|
|
753
|
+
type Input = ClearInput;
|
|
754
|
+
}
|
|
755
|
+
export declare const clear: (input?: {
|
|
756
|
+
readonly sections?: string | undefined;
|
|
757
|
+
readonly sections_url?: string | undefined;
|
|
758
|
+
} | undefined) => import("effect/Effect").Effect<AjaxClientResponse<undefined> | AjaxClientResponse<{
|
|
759
|
+
readonly total_discount: number;
|
|
760
|
+
readonly discounts: readonly {
|
|
761
|
+
readonly title: string;
|
|
762
|
+
readonly amount: number;
|
|
763
|
+
}[];
|
|
764
|
+
readonly requires_shipping: boolean;
|
|
765
|
+
readonly token: string;
|
|
766
|
+
readonly note: string | null;
|
|
767
|
+
readonly attributes: {
|
|
768
|
+
readonly [x: string]: string | number | boolean | null;
|
|
769
|
+
};
|
|
770
|
+
readonly discount_codes: readonly {
|
|
771
|
+
readonly code: string;
|
|
772
|
+
readonly applicable: boolean;
|
|
773
|
+
}[];
|
|
774
|
+
readonly original_total_price: number;
|
|
775
|
+
readonly total_price: number;
|
|
776
|
+
readonly total_weight: number;
|
|
777
|
+
readonly item_count: number;
|
|
778
|
+
readonly items: readonly {
|
|
779
|
+
readonly title: string;
|
|
780
|
+
readonly url: string;
|
|
781
|
+
readonly price: number;
|
|
782
|
+
readonly id: string | number;
|
|
783
|
+
readonly key: string;
|
|
784
|
+
readonly properties: {
|
|
785
|
+
readonly [x: string]: string | number | boolean | null;
|
|
786
|
+
} | null;
|
|
787
|
+
readonly quantity: number;
|
|
788
|
+
readonly variant_id: string | number;
|
|
789
|
+
readonly original_price: number;
|
|
790
|
+
readonly discounted_price: number;
|
|
791
|
+
readonly line_price: number;
|
|
792
|
+
readonly original_line_price: number;
|
|
793
|
+
readonly total_discount: number;
|
|
794
|
+
readonly discounts: readonly {
|
|
795
|
+
readonly title: string;
|
|
796
|
+
readonly amount: number;
|
|
797
|
+
}[];
|
|
798
|
+
readonly sku: string | null;
|
|
799
|
+
readonly grams: number;
|
|
800
|
+
readonly vendor: string;
|
|
801
|
+
readonly taxable: boolean;
|
|
802
|
+
readonly product_id: string | number;
|
|
803
|
+
readonly product_has_only_default_variant: boolean;
|
|
804
|
+
readonly gift_card: boolean;
|
|
805
|
+
readonly final_line_price: number;
|
|
806
|
+
readonly final_price: number;
|
|
807
|
+
readonly featured_image?: {
|
|
808
|
+
readonly aspect_ratio: number;
|
|
809
|
+
readonly alt: string;
|
|
810
|
+
readonly height: number;
|
|
811
|
+
readonly url: string;
|
|
812
|
+
readonly width: number;
|
|
813
|
+
} | undefined;
|
|
814
|
+
readonly image: string;
|
|
815
|
+
readonly handle: string;
|
|
816
|
+
readonly requires_shipping: boolean;
|
|
817
|
+
readonly product_type: string;
|
|
818
|
+
readonly product_title: string;
|
|
819
|
+
readonly product_description: string;
|
|
820
|
+
readonly variant_title: string | null;
|
|
821
|
+
readonly variant_options: readonly string[];
|
|
822
|
+
readonly options_with_values: readonly {
|
|
823
|
+
readonly value: string;
|
|
824
|
+
readonly name: string;
|
|
825
|
+
}[];
|
|
826
|
+
readonly line_level_discount_allocations: readonly {
|
|
827
|
+
readonly amount: number;
|
|
828
|
+
readonly discount_application: {
|
|
829
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
830
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
831
|
+
readonly title: string;
|
|
832
|
+
readonly total_allocated_amount: number;
|
|
833
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
834
|
+
readonly value: number;
|
|
835
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
836
|
+
readonly description: string | null;
|
|
837
|
+
};
|
|
838
|
+
}[];
|
|
839
|
+
readonly line_level_total_discount: number;
|
|
840
|
+
readonly quantity_rule?: {
|
|
841
|
+
readonly min: number;
|
|
842
|
+
readonly max: number | null;
|
|
843
|
+
readonly increment: number;
|
|
844
|
+
} | undefined;
|
|
845
|
+
readonly has_components: boolean;
|
|
846
|
+
readonly unit_price?: number | undefined;
|
|
847
|
+
readonly unit_price_measurement?: {
|
|
848
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
849
|
+
readonly quantity_unit: string;
|
|
850
|
+
readonly quantity_value: number;
|
|
851
|
+
readonly reference_unit: string;
|
|
852
|
+
readonly reference_value: number;
|
|
853
|
+
} | undefined;
|
|
854
|
+
readonly selling_plan_allocation: {
|
|
855
|
+
readonly price: number;
|
|
856
|
+
readonly price_adjustments: readonly {
|
|
857
|
+
readonly position: number;
|
|
858
|
+
readonly price: number;
|
|
859
|
+
}[];
|
|
860
|
+
readonly compare_at_price: number;
|
|
861
|
+
readonly per_delivery_price: number;
|
|
862
|
+
readonly selling_plan: {
|
|
863
|
+
readonly description: string | null;
|
|
864
|
+
readonly name: string;
|
|
865
|
+
readonly id: string | number;
|
|
866
|
+
readonly options: readonly {
|
|
867
|
+
readonly value: string;
|
|
868
|
+
readonly name: string;
|
|
869
|
+
readonly position: number;
|
|
870
|
+
}[];
|
|
871
|
+
readonly recurring_deliveries: boolean;
|
|
872
|
+
readonly fixed_selling_plan: boolean;
|
|
873
|
+
readonly price_adjustments: readonly {
|
|
874
|
+
readonly value: number;
|
|
875
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
876
|
+
readonly position: number;
|
|
877
|
+
readonly order_count: number | null;
|
|
878
|
+
}[];
|
|
879
|
+
};
|
|
880
|
+
} | null;
|
|
881
|
+
}[];
|
|
882
|
+
readonly currency: string;
|
|
883
|
+
readonly items_subtotal_price: number;
|
|
884
|
+
readonly cart_level_discount_applications: readonly {
|
|
885
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
886
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
887
|
+
readonly title: string;
|
|
888
|
+
readonly total_allocated_amount: number;
|
|
889
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
890
|
+
readonly value: number;
|
|
891
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
892
|
+
readonly description: string | null;
|
|
893
|
+
}[];
|
|
894
|
+
} & {
|
|
895
|
+
readonly sections: {
|
|
896
|
+
readonly [x: string]: string | null;
|
|
897
|
+
};
|
|
898
|
+
}> | AjaxClientResponse<{
|
|
899
|
+
readonly total_discount: number;
|
|
900
|
+
readonly discounts: readonly {
|
|
901
|
+
readonly title: string;
|
|
902
|
+
readonly amount: number;
|
|
903
|
+
}[];
|
|
904
|
+
readonly requires_shipping: boolean;
|
|
905
|
+
readonly token: string;
|
|
906
|
+
readonly note: string | null;
|
|
907
|
+
readonly attributes: {
|
|
908
|
+
readonly [x: string]: string | number | boolean | null;
|
|
909
|
+
};
|
|
910
|
+
readonly discount_codes: readonly {
|
|
911
|
+
readonly code: string;
|
|
912
|
+
readonly applicable: boolean;
|
|
913
|
+
}[];
|
|
914
|
+
readonly original_total_price: number;
|
|
915
|
+
readonly total_price: number;
|
|
916
|
+
readonly total_weight: number;
|
|
917
|
+
readonly item_count: number;
|
|
918
|
+
readonly items: readonly {
|
|
919
|
+
readonly title: string;
|
|
920
|
+
readonly url: string;
|
|
921
|
+
readonly price: number;
|
|
922
|
+
readonly id: string | number;
|
|
923
|
+
readonly key: string;
|
|
924
|
+
readonly properties: {
|
|
925
|
+
readonly [x: string]: string | number | boolean | null;
|
|
926
|
+
} | null;
|
|
927
|
+
readonly quantity: number;
|
|
928
|
+
readonly variant_id: string | number;
|
|
929
|
+
readonly original_price: number;
|
|
930
|
+
readonly discounted_price: number;
|
|
931
|
+
readonly line_price: number;
|
|
932
|
+
readonly original_line_price: number;
|
|
933
|
+
readonly total_discount: number;
|
|
934
|
+
readonly discounts: readonly {
|
|
935
|
+
readonly title: string;
|
|
936
|
+
readonly amount: number;
|
|
937
|
+
}[];
|
|
938
|
+
readonly sku: string | null;
|
|
939
|
+
readonly grams: number;
|
|
940
|
+
readonly vendor: string;
|
|
941
|
+
readonly taxable: boolean;
|
|
942
|
+
readonly product_id: string | number;
|
|
943
|
+
readonly product_has_only_default_variant: boolean;
|
|
944
|
+
readonly gift_card: boolean;
|
|
945
|
+
readonly final_line_price: number;
|
|
946
|
+
readonly final_price: number;
|
|
947
|
+
readonly featured_image?: {
|
|
948
|
+
readonly aspect_ratio: number;
|
|
949
|
+
readonly alt: string;
|
|
950
|
+
readonly height: number;
|
|
951
|
+
readonly url: string;
|
|
952
|
+
readonly width: number;
|
|
953
|
+
} | undefined;
|
|
954
|
+
readonly image: string;
|
|
955
|
+
readonly handle: string;
|
|
956
|
+
readonly requires_shipping: boolean;
|
|
957
|
+
readonly product_type: string;
|
|
958
|
+
readonly product_title: string;
|
|
959
|
+
readonly product_description: string;
|
|
960
|
+
readonly variant_title: string | null;
|
|
961
|
+
readonly variant_options: readonly string[];
|
|
962
|
+
readonly options_with_values: readonly {
|
|
963
|
+
readonly value: string;
|
|
964
|
+
readonly name: string;
|
|
965
|
+
}[];
|
|
966
|
+
readonly line_level_discount_allocations: readonly {
|
|
967
|
+
readonly amount: number;
|
|
968
|
+
readonly discount_application: {
|
|
969
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
970
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
971
|
+
readonly title: string;
|
|
972
|
+
readonly total_allocated_amount: number;
|
|
973
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
974
|
+
readonly value: number;
|
|
975
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
976
|
+
readonly description: string | null;
|
|
977
|
+
};
|
|
978
|
+
}[];
|
|
979
|
+
readonly line_level_total_discount: number;
|
|
980
|
+
readonly quantity_rule?: {
|
|
981
|
+
readonly min: number;
|
|
982
|
+
readonly max: number | null;
|
|
983
|
+
readonly increment: number;
|
|
984
|
+
} | undefined;
|
|
985
|
+
readonly has_components: boolean;
|
|
986
|
+
readonly unit_price?: number | undefined;
|
|
987
|
+
readonly unit_price_measurement?: {
|
|
988
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
989
|
+
readonly quantity_unit: string;
|
|
990
|
+
readonly quantity_value: number;
|
|
991
|
+
readonly reference_unit: string;
|
|
992
|
+
readonly reference_value: number;
|
|
993
|
+
} | undefined;
|
|
994
|
+
readonly selling_plan_allocation: {
|
|
995
|
+
readonly price: number;
|
|
996
|
+
readonly price_adjustments: readonly {
|
|
997
|
+
readonly position: number;
|
|
998
|
+
readonly price: number;
|
|
999
|
+
}[];
|
|
1000
|
+
readonly compare_at_price: number;
|
|
1001
|
+
readonly per_delivery_price: number;
|
|
1002
|
+
readonly selling_plan: {
|
|
1003
|
+
readonly description: string | null;
|
|
1004
|
+
readonly name: string;
|
|
1005
|
+
readonly id: string | number;
|
|
1006
|
+
readonly options: readonly {
|
|
1007
|
+
readonly value: string;
|
|
1008
|
+
readonly name: string;
|
|
1009
|
+
readonly position: number;
|
|
1010
|
+
}[];
|
|
1011
|
+
readonly recurring_deliveries: boolean;
|
|
1012
|
+
readonly fixed_selling_plan: boolean;
|
|
1013
|
+
readonly price_adjustments: readonly {
|
|
1014
|
+
readonly value: number;
|
|
1015
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
1016
|
+
readonly position: number;
|
|
1017
|
+
readonly order_count: number | null;
|
|
1018
|
+
}[];
|
|
1019
|
+
};
|
|
1020
|
+
} | null;
|
|
1021
|
+
}[];
|
|
1022
|
+
readonly currency: string;
|
|
1023
|
+
readonly items_subtotal_price: number;
|
|
1024
|
+
readonly cart_level_discount_applications: readonly {
|
|
1025
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1026
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1027
|
+
readonly title: string;
|
|
1028
|
+
readonly total_allocated_amount: number;
|
|
1029
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1030
|
+
readonly value: number;
|
|
1031
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1032
|
+
readonly description: string | null;
|
|
1033
|
+
}[];
|
|
1034
|
+
} & {
|
|
1035
|
+
readonly sections: null;
|
|
1036
|
+
}>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
|
|
1037
|
+
export declare namespace get {
|
|
1038
|
+
type Input = GetInput;
|
|
1039
|
+
}
|
|
1040
|
+
export declare const get: (input?: {
|
|
1041
|
+
readonly sections?: string | undefined;
|
|
1042
|
+
readonly sections_url?: string | undefined;
|
|
1043
|
+
} | undefined) => import("effect/Effect").Effect<AjaxClientResponse<undefined> | AjaxClientResponse<{
|
|
1044
|
+
readonly total_discount: number;
|
|
1045
|
+
readonly discounts: readonly {
|
|
1046
|
+
readonly title: string;
|
|
1047
|
+
readonly amount: number;
|
|
1048
|
+
}[];
|
|
1049
|
+
readonly requires_shipping: boolean;
|
|
1050
|
+
readonly token: string;
|
|
1051
|
+
readonly note: string | null;
|
|
1052
|
+
readonly attributes: {
|
|
1053
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1054
|
+
};
|
|
1055
|
+
readonly discount_codes: readonly {
|
|
1056
|
+
readonly code: string;
|
|
1057
|
+
readonly applicable: boolean;
|
|
1058
|
+
}[];
|
|
1059
|
+
readonly original_total_price: number;
|
|
1060
|
+
readonly total_price: number;
|
|
1061
|
+
readonly total_weight: number;
|
|
1062
|
+
readonly item_count: number;
|
|
1063
|
+
readonly items: readonly {
|
|
1064
|
+
readonly title: string;
|
|
1065
|
+
readonly url: string;
|
|
1066
|
+
readonly price: number;
|
|
1067
|
+
readonly id: string | number;
|
|
1068
|
+
readonly key: string;
|
|
1069
|
+
readonly properties: {
|
|
1070
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1071
|
+
} | null;
|
|
1072
|
+
readonly quantity: number;
|
|
1073
|
+
readonly variant_id: string | number;
|
|
1074
|
+
readonly original_price: number;
|
|
1075
|
+
readonly discounted_price: number;
|
|
1076
|
+
readonly line_price: number;
|
|
1077
|
+
readonly original_line_price: number;
|
|
1078
|
+
readonly total_discount: number;
|
|
1079
|
+
readonly discounts: readonly {
|
|
1080
|
+
readonly title: string;
|
|
1081
|
+
readonly amount: number;
|
|
1082
|
+
}[];
|
|
1083
|
+
readonly sku: string | null;
|
|
1084
|
+
readonly grams: number;
|
|
1085
|
+
readonly vendor: string;
|
|
1086
|
+
readonly taxable: boolean;
|
|
1087
|
+
readonly product_id: string | number;
|
|
1088
|
+
readonly product_has_only_default_variant: boolean;
|
|
1089
|
+
readonly gift_card: boolean;
|
|
1090
|
+
readonly final_line_price: number;
|
|
1091
|
+
readonly final_price: number;
|
|
1092
|
+
readonly featured_image?: {
|
|
1093
|
+
readonly aspect_ratio: number;
|
|
1094
|
+
readonly alt: string;
|
|
1095
|
+
readonly height: number;
|
|
1096
|
+
readonly url: string;
|
|
1097
|
+
readonly width: number;
|
|
1098
|
+
} | undefined;
|
|
1099
|
+
readonly image: string;
|
|
1100
|
+
readonly handle: string;
|
|
1101
|
+
readonly requires_shipping: boolean;
|
|
1102
|
+
readonly product_type: string;
|
|
1103
|
+
readonly product_title: string;
|
|
1104
|
+
readonly product_description: string;
|
|
1105
|
+
readonly variant_title: string | null;
|
|
1106
|
+
readonly variant_options: readonly string[];
|
|
1107
|
+
readonly options_with_values: readonly {
|
|
1108
|
+
readonly value: string;
|
|
1109
|
+
readonly name: string;
|
|
1110
|
+
}[];
|
|
1111
|
+
readonly line_level_discount_allocations: readonly {
|
|
1112
|
+
readonly amount: number;
|
|
1113
|
+
readonly discount_application: {
|
|
1114
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1115
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1116
|
+
readonly title: string;
|
|
1117
|
+
readonly total_allocated_amount: number;
|
|
1118
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1119
|
+
readonly value: number;
|
|
1120
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1121
|
+
readonly description: string | null;
|
|
1122
|
+
};
|
|
1123
|
+
}[];
|
|
1124
|
+
readonly line_level_total_discount: number;
|
|
1125
|
+
readonly quantity_rule?: {
|
|
1126
|
+
readonly min: number;
|
|
1127
|
+
readonly max: number | null;
|
|
1128
|
+
readonly increment: number;
|
|
1129
|
+
} | undefined;
|
|
1130
|
+
readonly has_components: boolean;
|
|
1131
|
+
readonly unit_price?: number | undefined;
|
|
1132
|
+
readonly unit_price_measurement?: {
|
|
1133
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
1134
|
+
readonly quantity_unit: string;
|
|
1135
|
+
readonly quantity_value: number;
|
|
1136
|
+
readonly reference_unit: string;
|
|
1137
|
+
readonly reference_value: number;
|
|
1138
|
+
} | undefined;
|
|
1139
|
+
readonly selling_plan_allocation: {
|
|
1140
|
+
readonly price: number;
|
|
1141
|
+
readonly price_adjustments: readonly {
|
|
1142
|
+
readonly position: number;
|
|
1143
|
+
readonly price: number;
|
|
1144
|
+
}[];
|
|
1145
|
+
readonly compare_at_price: number;
|
|
1146
|
+
readonly per_delivery_price: number;
|
|
1147
|
+
readonly selling_plan: {
|
|
1148
|
+
readonly description: string | null;
|
|
1149
|
+
readonly name: string;
|
|
1150
|
+
readonly id: string | number;
|
|
1151
|
+
readonly options: readonly {
|
|
1152
|
+
readonly value: string;
|
|
1153
|
+
readonly name: string;
|
|
1154
|
+
readonly position: number;
|
|
1155
|
+
}[];
|
|
1156
|
+
readonly recurring_deliveries: boolean;
|
|
1157
|
+
readonly fixed_selling_plan: boolean;
|
|
1158
|
+
readonly price_adjustments: readonly {
|
|
1159
|
+
readonly value: number;
|
|
1160
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
1161
|
+
readonly position: number;
|
|
1162
|
+
readonly order_count: number | null;
|
|
1163
|
+
}[];
|
|
1164
|
+
};
|
|
1165
|
+
} | null;
|
|
1166
|
+
}[];
|
|
1167
|
+
readonly currency: string;
|
|
1168
|
+
readonly items_subtotal_price: number;
|
|
1169
|
+
readonly cart_level_discount_applications: readonly {
|
|
1170
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1171
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1172
|
+
readonly title: string;
|
|
1173
|
+
readonly total_allocated_amount: number;
|
|
1174
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1175
|
+
readonly value: number;
|
|
1176
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1177
|
+
readonly description: string | null;
|
|
1178
|
+
}[];
|
|
1179
|
+
} & {
|
|
1180
|
+
readonly sections: {
|
|
1181
|
+
readonly [x: string]: string | null;
|
|
1182
|
+
};
|
|
1183
|
+
}> | AjaxClientResponse<{
|
|
1184
|
+
readonly total_discount: number;
|
|
1185
|
+
readonly discounts: readonly {
|
|
1186
|
+
readonly title: string;
|
|
1187
|
+
readonly amount: number;
|
|
1188
|
+
}[];
|
|
1189
|
+
readonly requires_shipping: boolean;
|
|
1190
|
+
readonly token: string;
|
|
1191
|
+
readonly note: string | null;
|
|
1192
|
+
readonly attributes: {
|
|
1193
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1194
|
+
};
|
|
1195
|
+
readonly discount_codes: readonly {
|
|
1196
|
+
readonly code: string;
|
|
1197
|
+
readonly applicable: boolean;
|
|
1198
|
+
}[];
|
|
1199
|
+
readonly original_total_price: number;
|
|
1200
|
+
readonly total_price: number;
|
|
1201
|
+
readonly total_weight: number;
|
|
1202
|
+
readonly item_count: number;
|
|
1203
|
+
readonly items: readonly {
|
|
1204
|
+
readonly title: string;
|
|
1205
|
+
readonly url: string;
|
|
1206
|
+
readonly price: number;
|
|
1207
|
+
readonly id: string | number;
|
|
1208
|
+
readonly key: string;
|
|
1209
|
+
readonly properties: {
|
|
1210
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1211
|
+
} | null;
|
|
1212
|
+
readonly quantity: number;
|
|
1213
|
+
readonly variant_id: string | number;
|
|
1214
|
+
readonly original_price: number;
|
|
1215
|
+
readonly discounted_price: number;
|
|
1216
|
+
readonly line_price: number;
|
|
1217
|
+
readonly original_line_price: number;
|
|
1218
|
+
readonly total_discount: number;
|
|
1219
|
+
readonly discounts: readonly {
|
|
1220
|
+
readonly title: string;
|
|
1221
|
+
readonly amount: number;
|
|
1222
|
+
}[];
|
|
1223
|
+
readonly sku: string | null;
|
|
1224
|
+
readonly grams: number;
|
|
1225
|
+
readonly vendor: string;
|
|
1226
|
+
readonly taxable: boolean;
|
|
1227
|
+
readonly product_id: string | number;
|
|
1228
|
+
readonly product_has_only_default_variant: boolean;
|
|
1229
|
+
readonly gift_card: boolean;
|
|
1230
|
+
readonly final_line_price: number;
|
|
1231
|
+
readonly final_price: number;
|
|
1232
|
+
readonly featured_image?: {
|
|
1233
|
+
readonly aspect_ratio: number;
|
|
1234
|
+
readonly alt: string;
|
|
1235
|
+
readonly height: number;
|
|
1236
|
+
readonly url: string;
|
|
1237
|
+
readonly width: number;
|
|
1238
|
+
} | undefined;
|
|
1239
|
+
readonly image: string;
|
|
1240
|
+
readonly handle: string;
|
|
1241
|
+
readonly requires_shipping: boolean;
|
|
1242
|
+
readonly product_type: string;
|
|
1243
|
+
readonly product_title: string;
|
|
1244
|
+
readonly product_description: string;
|
|
1245
|
+
readonly variant_title: string | null;
|
|
1246
|
+
readonly variant_options: readonly string[];
|
|
1247
|
+
readonly options_with_values: readonly {
|
|
1248
|
+
readonly value: string;
|
|
1249
|
+
readonly name: string;
|
|
1250
|
+
}[];
|
|
1251
|
+
readonly line_level_discount_allocations: readonly {
|
|
1252
|
+
readonly amount: number;
|
|
1253
|
+
readonly discount_application: {
|
|
1254
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1255
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1256
|
+
readonly title: string;
|
|
1257
|
+
readonly total_allocated_amount: number;
|
|
1258
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1259
|
+
readonly value: number;
|
|
1260
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1261
|
+
readonly description: string | null;
|
|
1262
|
+
};
|
|
1263
|
+
}[];
|
|
1264
|
+
readonly line_level_total_discount: number;
|
|
1265
|
+
readonly quantity_rule?: {
|
|
1266
|
+
readonly min: number;
|
|
1267
|
+
readonly max: number | null;
|
|
1268
|
+
readonly increment: number;
|
|
1269
|
+
} | undefined;
|
|
1270
|
+
readonly has_components: boolean;
|
|
1271
|
+
readonly unit_price?: number | undefined;
|
|
1272
|
+
readonly unit_price_measurement?: {
|
|
1273
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
1274
|
+
readonly quantity_unit: string;
|
|
1275
|
+
readonly quantity_value: number;
|
|
1276
|
+
readonly reference_unit: string;
|
|
1277
|
+
readonly reference_value: number;
|
|
1278
|
+
} | undefined;
|
|
1279
|
+
readonly selling_plan_allocation: {
|
|
1280
|
+
readonly price: number;
|
|
1281
|
+
readonly price_adjustments: readonly {
|
|
1282
|
+
readonly position: number;
|
|
1283
|
+
readonly price: number;
|
|
1284
|
+
}[];
|
|
1285
|
+
readonly compare_at_price: number;
|
|
1286
|
+
readonly per_delivery_price: number;
|
|
1287
|
+
readonly selling_plan: {
|
|
1288
|
+
readonly description: string | null;
|
|
1289
|
+
readonly name: string;
|
|
1290
|
+
readonly id: string | number;
|
|
1291
|
+
readonly options: readonly {
|
|
1292
|
+
readonly value: string;
|
|
1293
|
+
readonly name: string;
|
|
1294
|
+
readonly position: number;
|
|
1295
|
+
}[];
|
|
1296
|
+
readonly recurring_deliveries: boolean;
|
|
1297
|
+
readonly fixed_selling_plan: boolean;
|
|
1298
|
+
readonly price_adjustments: readonly {
|
|
1299
|
+
readonly value: number;
|
|
1300
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
1301
|
+
readonly position: number;
|
|
1302
|
+
readonly order_count: number | null;
|
|
1303
|
+
}[];
|
|
1304
|
+
};
|
|
1305
|
+
} | null;
|
|
1306
|
+
}[];
|
|
1307
|
+
readonly currency: string;
|
|
1308
|
+
readonly items_subtotal_price: number;
|
|
1309
|
+
readonly cart_level_discount_applications: readonly {
|
|
1310
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1311
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1312
|
+
readonly title: string;
|
|
1313
|
+
readonly total_allocated_amount: number;
|
|
1314
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1315
|
+
readonly value: number;
|
|
1316
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1317
|
+
readonly description: string | null;
|
|
1318
|
+
}[];
|
|
1319
|
+
} & {
|
|
1320
|
+
readonly sections: null;
|
|
1321
|
+
}>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
|
|
1322
|
+
export declare namespace update {
|
|
1323
|
+
type Input = UpdateInput;
|
|
1324
|
+
}
|
|
1325
|
+
export declare const update: (input?: ({
|
|
1326
|
+
readonly note?: string | null | undefined;
|
|
1327
|
+
readonly attributes?: {
|
|
1328
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1329
|
+
} | undefined;
|
|
1330
|
+
readonly updates?: {
|
|
1331
|
+
readonly [x: string]: number;
|
|
1332
|
+
} | readonly number[] | undefined;
|
|
1333
|
+
readonly discount?: readonly string[] | undefined;
|
|
1334
|
+
} & {
|
|
1335
|
+
readonly sections?: string | undefined;
|
|
1336
|
+
readonly sections_url?: string | undefined;
|
|
1337
|
+
}) | undefined) => import("effect/Effect").Effect<AjaxClientResponse<undefined> | AjaxClientResponse<{
|
|
1338
|
+
readonly total_discount: number;
|
|
1339
|
+
readonly discounts: readonly {
|
|
1340
|
+
readonly title: string;
|
|
1341
|
+
readonly amount: number;
|
|
1342
|
+
}[];
|
|
1343
|
+
readonly requires_shipping: boolean;
|
|
1344
|
+
readonly token: string;
|
|
1345
|
+
readonly note: string | null;
|
|
1346
|
+
readonly attributes: {
|
|
1347
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1348
|
+
};
|
|
1349
|
+
readonly discount_codes: readonly {
|
|
1350
|
+
readonly code: string;
|
|
1351
|
+
readonly applicable: boolean;
|
|
1352
|
+
}[];
|
|
1353
|
+
readonly original_total_price: number;
|
|
1354
|
+
readonly total_price: number;
|
|
1355
|
+
readonly total_weight: number;
|
|
1356
|
+
readonly item_count: number;
|
|
1357
|
+
readonly items: readonly {
|
|
1358
|
+
readonly title: string;
|
|
1359
|
+
readonly url: string;
|
|
1360
|
+
readonly price: number;
|
|
1361
|
+
readonly id: string | number;
|
|
1362
|
+
readonly key: string;
|
|
1363
|
+
readonly properties: {
|
|
1364
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1365
|
+
} | null;
|
|
1366
|
+
readonly quantity: number;
|
|
1367
|
+
readonly variant_id: string | number;
|
|
1368
|
+
readonly original_price: number;
|
|
1369
|
+
readonly discounted_price: number;
|
|
1370
|
+
readonly line_price: number;
|
|
1371
|
+
readonly original_line_price: number;
|
|
1372
|
+
readonly total_discount: number;
|
|
1373
|
+
readonly discounts: readonly {
|
|
1374
|
+
readonly title: string;
|
|
1375
|
+
readonly amount: number;
|
|
1376
|
+
}[];
|
|
1377
|
+
readonly sku: string | null;
|
|
1378
|
+
readonly grams: number;
|
|
1379
|
+
readonly vendor: string;
|
|
1380
|
+
readonly taxable: boolean;
|
|
1381
|
+
readonly product_id: string | number;
|
|
1382
|
+
readonly product_has_only_default_variant: boolean;
|
|
1383
|
+
readonly gift_card: boolean;
|
|
1384
|
+
readonly final_line_price: number;
|
|
1385
|
+
readonly final_price: number;
|
|
1386
|
+
readonly featured_image?: {
|
|
1387
|
+
readonly aspect_ratio: number;
|
|
1388
|
+
readonly alt: string;
|
|
1389
|
+
readonly height: number;
|
|
1390
|
+
readonly url: string;
|
|
1391
|
+
readonly width: number;
|
|
1392
|
+
} | undefined;
|
|
1393
|
+
readonly image: string;
|
|
1394
|
+
readonly handle: string;
|
|
1395
|
+
readonly requires_shipping: boolean;
|
|
1396
|
+
readonly product_type: string;
|
|
1397
|
+
readonly product_title: string;
|
|
1398
|
+
readonly product_description: string;
|
|
1399
|
+
readonly variant_title: string | null;
|
|
1400
|
+
readonly variant_options: readonly string[];
|
|
1401
|
+
readonly options_with_values: readonly {
|
|
1402
|
+
readonly value: string;
|
|
1403
|
+
readonly name: string;
|
|
1404
|
+
}[];
|
|
1405
|
+
readonly line_level_discount_allocations: readonly {
|
|
1406
|
+
readonly amount: number;
|
|
1407
|
+
readonly discount_application: {
|
|
1408
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1409
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1410
|
+
readonly title: string;
|
|
1411
|
+
readonly total_allocated_amount: number;
|
|
1412
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1413
|
+
readonly value: number;
|
|
1414
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1415
|
+
readonly description: string | null;
|
|
1416
|
+
};
|
|
1417
|
+
}[];
|
|
1418
|
+
readonly line_level_total_discount: number;
|
|
1419
|
+
readonly quantity_rule?: {
|
|
1420
|
+
readonly min: number;
|
|
1421
|
+
readonly max: number | null;
|
|
1422
|
+
readonly increment: number;
|
|
1423
|
+
} | undefined;
|
|
1424
|
+
readonly has_components: boolean;
|
|
1425
|
+
readonly unit_price?: number | undefined;
|
|
1426
|
+
readonly unit_price_measurement?: {
|
|
1427
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
1428
|
+
readonly quantity_unit: string;
|
|
1429
|
+
readonly quantity_value: number;
|
|
1430
|
+
readonly reference_unit: string;
|
|
1431
|
+
readonly reference_value: number;
|
|
1432
|
+
} | undefined;
|
|
1433
|
+
readonly selling_plan_allocation: {
|
|
1434
|
+
readonly price: number;
|
|
1435
|
+
readonly price_adjustments: readonly {
|
|
1436
|
+
readonly position: number;
|
|
1437
|
+
readonly price: number;
|
|
1438
|
+
}[];
|
|
1439
|
+
readonly compare_at_price: number;
|
|
1440
|
+
readonly per_delivery_price: number;
|
|
1441
|
+
readonly selling_plan: {
|
|
1442
|
+
readonly description: string | null;
|
|
1443
|
+
readonly name: string;
|
|
1444
|
+
readonly id: string | number;
|
|
1445
|
+
readonly options: readonly {
|
|
1446
|
+
readonly value: string;
|
|
1447
|
+
readonly name: string;
|
|
1448
|
+
readonly position: number;
|
|
1449
|
+
}[];
|
|
1450
|
+
readonly recurring_deliveries: boolean;
|
|
1451
|
+
readonly fixed_selling_plan: boolean;
|
|
1452
|
+
readonly price_adjustments: readonly {
|
|
1453
|
+
readonly value: number;
|
|
1454
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
1455
|
+
readonly position: number;
|
|
1456
|
+
readonly order_count: number | null;
|
|
1457
|
+
}[];
|
|
1458
|
+
};
|
|
1459
|
+
} | null;
|
|
1460
|
+
}[];
|
|
1461
|
+
readonly currency: string;
|
|
1462
|
+
readonly items_subtotal_price: number;
|
|
1463
|
+
readonly cart_level_discount_applications: readonly {
|
|
1464
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1465
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1466
|
+
readonly title: string;
|
|
1467
|
+
readonly total_allocated_amount: number;
|
|
1468
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1469
|
+
readonly value: number;
|
|
1470
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1471
|
+
readonly description: string | null;
|
|
1472
|
+
}[];
|
|
1473
|
+
readonly items_changelog: {
|
|
1474
|
+
readonly added: readonly {
|
|
1475
|
+
readonly quantity: number;
|
|
1476
|
+
readonly variant_id: number;
|
|
1477
|
+
}[];
|
|
1478
|
+
};
|
|
1479
|
+
} & {
|
|
1480
|
+
readonly sections: {
|
|
1481
|
+
readonly [x: string]: string | null;
|
|
1482
|
+
};
|
|
1483
|
+
}> | AjaxClientResponse<{
|
|
1484
|
+
readonly total_discount: number;
|
|
1485
|
+
readonly discounts: readonly {
|
|
1486
|
+
readonly title: string;
|
|
1487
|
+
readonly amount: number;
|
|
1488
|
+
}[];
|
|
1489
|
+
readonly requires_shipping: boolean;
|
|
1490
|
+
readonly token: string;
|
|
1491
|
+
readonly note: string | null;
|
|
1492
|
+
readonly attributes: {
|
|
1493
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1494
|
+
};
|
|
1495
|
+
readonly discount_codes: readonly {
|
|
1496
|
+
readonly code: string;
|
|
1497
|
+
readonly applicable: boolean;
|
|
1498
|
+
}[];
|
|
1499
|
+
readonly original_total_price: number;
|
|
1500
|
+
readonly total_price: number;
|
|
1501
|
+
readonly total_weight: number;
|
|
1502
|
+
readonly item_count: number;
|
|
1503
|
+
readonly items: readonly {
|
|
1504
|
+
readonly title: string;
|
|
1505
|
+
readonly url: string;
|
|
1506
|
+
readonly price: number;
|
|
1507
|
+
readonly id: string | number;
|
|
1508
|
+
readonly key: string;
|
|
1509
|
+
readonly properties: {
|
|
1510
|
+
readonly [x: string]: string | number | boolean | null;
|
|
1511
|
+
} | null;
|
|
1512
|
+
readonly quantity: number;
|
|
1513
|
+
readonly variant_id: string | number;
|
|
1514
|
+
readonly original_price: number;
|
|
1515
|
+
readonly discounted_price: number;
|
|
1516
|
+
readonly line_price: number;
|
|
1517
|
+
readonly original_line_price: number;
|
|
1518
|
+
readonly total_discount: number;
|
|
1519
|
+
readonly discounts: readonly {
|
|
1520
|
+
readonly title: string;
|
|
1521
|
+
readonly amount: number;
|
|
1522
|
+
}[];
|
|
1523
|
+
readonly sku: string | null;
|
|
1524
|
+
readonly grams: number;
|
|
1525
|
+
readonly vendor: string;
|
|
1526
|
+
readonly taxable: boolean;
|
|
1527
|
+
readonly product_id: string | number;
|
|
1528
|
+
readonly product_has_only_default_variant: boolean;
|
|
1529
|
+
readonly gift_card: boolean;
|
|
1530
|
+
readonly final_line_price: number;
|
|
1531
|
+
readonly final_price: number;
|
|
1532
|
+
readonly featured_image?: {
|
|
1533
|
+
readonly aspect_ratio: number;
|
|
1534
|
+
readonly alt: string;
|
|
1535
|
+
readonly height: number;
|
|
1536
|
+
readonly url: string;
|
|
1537
|
+
readonly width: number;
|
|
1538
|
+
} | undefined;
|
|
1539
|
+
readonly image: string;
|
|
1540
|
+
readonly handle: string;
|
|
1541
|
+
readonly requires_shipping: boolean;
|
|
1542
|
+
readonly product_type: string;
|
|
1543
|
+
readonly product_title: string;
|
|
1544
|
+
readonly product_description: string;
|
|
1545
|
+
readonly variant_title: string | null;
|
|
1546
|
+
readonly variant_options: readonly string[];
|
|
1547
|
+
readonly options_with_values: readonly {
|
|
1548
|
+
readonly value: string;
|
|
1549
|
+
readonly name: string;
|
|
1550
|
+
}[];
|
|
1551
|
+
readonly line_level_discount_allocations: readonly {
|
|
1552
|
+
readonly amount: number;
|
|
1553
|
+
readonly discount_application: {
|
|
1554
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1555
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1556
|
+
readonly title: string;
|
|
1557
|
+
readonly total_allocated_amount: number;
|
|
1558
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1559
|
+
readonly value: number;
|
|
1560
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1561
|
+
readonly description: string | null;
|
|
1562
|
+
};
|
|
1563
|
+
}[];
|
|
1564
|
+
readonly line_level_total_discount: number;
|
|
1565
|
+
readonly quantity_rule?: {
|
|
1566
|
+
readonly min: number;
|
|
1567
|
+
readonly max: number | null;
|
|
1568
|
+
readonly increment: number;
|
|
1569
|
+
} | undefined;
|
|
1570
|
+
readonly has_components: boolean;
|
|
1571
|
+
readonly unit_price?: number | undefined;
|
|
1572
|
+
readonly unit_price_measurement?: {
|
|
1573
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
1574
|
+
readonly quantity_unit: string;
|
|
1575
|
+
readonly quantity_value: number;
|
|
1576
|
+
readonly reference_unit: string;
|
|
1577
|
+
readonly reference_value: number;
|
|
1578
|
+
} | undefined;
|
|
1579
|
+
readonly selling_plan_allocation: {
|
|
1580
|
+
readonly price: number;
|
|
1581
|
+
readonly price_adjustments: readonly {
|
|
1582
|
+
readonly position: number;
|
|
1583
|
+
readonly price: number;
|
|
1584
|
+
}[];
|
|
1585
|
+
readonly compare_at_price: number;
|
|
1586
|
+
readonly per_delivery_price: number;
|
|
1587
|
+
readonly selling_plan: {
|
|
1588
|
+
readonly description: string | null;
|
|
1589
|
+
readonly name: string;
|
|
1590
|
+
readonly id: string | number;
|
|
1591
|
+
readonly options: readonly {
|
|
1592
|
+
readonly value: string;
|
|
1593
|
+
readonly name: string;
|
|
1594
|
+
readonly position: number;
|
|
1595
|
+
}[];
|
|
1596
|
+
readonly recurring_deliveries: boolean;
|
|
1597
|
+
readonly fixed_selling_plan: boolean;
|
|
1598
|
+
readonly price_adjustments: readonly {
|
|
1599
|
+
readonly value: number;
|
|
1600
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
1601
|
+
readonly position: number;
|
|
1602
|
+
readonly order_count: number | null;
|
|
1603
|
+
}[];
|
|
1604
|
+
};
|
|
1605
|
+
} | null;
|
|
1606
|
+
}[];
|
|
1607
|
+
readonly currency: string;
|
|
1608
|
+
readonly items_subtotal_price: number;
|
|
1609
|
+
readonly cart_level_discount_applications: readonly {
|
|
1610
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1611
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1612
|
+
readonly title: string;
|
|
1613
|
+
readonly total_allocated_amount: number;
|
|
1614
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1615
|
+
readonly value: number;
|
|
1616
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1617
|
+
readonly description: string | null;
|
|
1618
|
+
}[];
|
|
1619
|
+
readonly items_changelog: {
|
|
1620
|
+
readonly added: readonly {
|
|
1621
|
+
readonly quantity: number;
|
|
1622
|
+
readonly variant_id: number;
|
|
1623
|
+
}[];
|
|
1624
|
+
};
|
|
1625
|
+
} & {
|
|
1626
|
+
readonly sections: null;
|
|
1627
|
+
}>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
|
|
1628
|
+
|
|
1629
|
+
export {};
|