@brytdesigns/shopify-ajax-cart-api 1.0.32 → 1.0.34
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 +2 -3
- package/dist/effect/api/CartAdd.js.map +1 -1
- package/dist/effect/api/CartChange.js +2 -3
- package/dist/effect/api/CartChange.js.map +1 -1
- package/dist/effect/api/CartClear.js +2 -3
- package/dist/effect/api/CartClear.js.map +1 -1
- package/dist/effect/api/CartGet.js +2 -3
- package/dist/effect/api/CartGet.js.map +1 -1
- package/dist/effect/api/CartUpdate.js +2 -3
- package/dist/effect/api/CartUpdate.js.map +1 -1
- package/dist/effect/index.d.ts +787 -757
- package/dist/effect/index.js +0 -1
- package/dist/effect/index.js.map +1 -1
- package/dist/esm/index.js +1174 -846
- package/dist/esm/index.js.map +1 -1
- package/dist/main/effect/api/CartAdd.js +2 -3
- package/dist/main/effect/api/CartAdd.js.map +1 -1
- package/dist/main/effect/api/CartChange.js +2 -3
- package/dist/main/effect/api/CartChange.js.map +1 -1
- package/dist/main/effect/api/CartClear.js +2 -3
- package/dist/main/effect/api/CartClear.js.map +1 -1
- package/dist/main/effect/api/CartGet.js +2 -3
- package/dist/main/effect/api/CartGet.js.map +1 -1
- package/dist/main/effect/api/CartUpdate.js +2 -3
- package/dist/main/effect/api/CartUpdate.js.map +1 -1
- package/dist/main/effect/index.js +0 -1
- package/dist/main/effect/index.js.map +1 -1
- package/dist/main/index.d.ts +1616 -1498
- package/dist/main/index.js +42 -132
- package/dist/main/index.js.map +1 -1
- package/package.json +6 -8
- package/dist/effect/data/AjaxClientResponse.js +0 -9
- package/dist/effect/data/AjaxClientResponse.js.map +0 -1
- package/dist/effect/data/index.js +0 -4
- package/dist/effect/data/index.js.map +0 -1
- package/dist/effect/errors.js +0 -17
- package/dist/effect/errors.js.map +0 -1
- package/dist/effect/logger/LoggerUtils.js +0 -10
- package/dist/effect/logger/LoggerUtils.js.map +0 -1
- package/dist/effect/services/AjaxRequest.js +0 -105
- package/dist/effect/services/AjaxRequest.js.map +0 -1
- package/dist/main/effect/data/AjaxClientResponse.js +0 -9
- package/dist/main/effect/data/AjaxClientResponse.js.map +0 -1
- package/dist/main/effect/data/index.js +0 -4
- package/dist/main/effect/data/index.js.map +0 -1
- package/dist/main/effect/errors.js +0 -17
- package/dist/main/effect/errors.js.map +0 -1
- package/dist/main/effect/logger/LoggerUtils.js +0 -10
- package/dist/main/effect/logger/LoggerUtils.js.map +0 -1
- package/dist/main/effect/services/AjaxRequest.js +0 -105
- package/dist/main/effect/services/AjaxRequest.js.map +0 -1
package/dist/effect/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
-
import * as Data from 'effect/Data';
|
|
4
3
|
import * as Schema from 'effect/Schema';
|
|
5
4
|
|
|
6
5
|
export type CartAddInput = Schema.Schema.Encoded<typeof CartAddInput>;
|
|
@@ -29,7 +28,7 @@ declare const CartAddInput: Schema.extend<Schema.Struct<{
|
|
|
29
28
|
]>>;
|
|
30
29
|
}>>;
|
|
31
30
|
}>, Schema.Struct<{
|
|
32
|
-
sections: Schema.optional<typeof Schema.String
|
|
31
|
+
sections: Schema.optional<Schema.transform<Schema.Array$<typeof Schema.String>, typeof Schema.String>>;
|
|
33
32
|
sections_url: Schema.optional<typeof Schema.String>;
|
|
34
33
|
}>>;
|
|
35
34
|
export type CartUpdateInput = Schema.Schema.Encoded<typeof CartUpdateInput>;
|
|
@@ -47,7 +46,7 @@ declare const CartUpdateInput: Schema.extend<Schema.Struct<{
|
|
|
47
46
|
]>>>;
|
|
48
47
|
discount: Schema.optional<Schema.transform<Schema.Array$<typeof Schema.String>, typeof Schema.String>>;
|
|
49
48
|
}>, Schema.Struct<{
|
|
50
|
-
sections: Schema.optional<typeof Schema.String
|
|
49
|
+
sections: Schema.optional<Schema.transform<Schema.Array$<typeof Schema.String>, typeof Schema.String>>;
|
|
51
50
|
sections_url: Schema.optional<typeof Schema.String>;
|
|
52
51
|
}>>;
|
|
53
52
|
export type CartChangeInput = Schema.Schema.Encoded<typeof CartChangeInput>;
|
|
@@ -63,7 +62,7 @@ declare const CartChangeInput: Schema.Union<[
|
|
|
63
62
|
typeof Schema.String
|
|
64
63
|
]>>>;
|
|
65
64
|
}>, Schema.Struct<{
|
|
66
|
-
sections: Schema.optional<typeof Schema.String
|
|
65
|
+
sections: Schema.optional<Schema.transform<Schema.Array$<typeof Schema.String>, typeof Schema.String>>;
|
|
67
66
|
sections_url: Schema.optional<typeof Schema.String>;
|
|
68
67
|
}>>>,
|
|
69
68
|
Schema.extend<Schema.Struct<{
|
|
@@ -77,59 +76,20 @@ declare const CartChangeInput: Schema.Union<[
|
|
|
77
76
|
typeof Schema.String
|
|
78
77
|
]>>>;
|
|
79
78
|
}>, Schema.Struct<{
|
|
80
|
-
sections: Schema.optional<typeof Schema.String
|
|
79
|
+
sections: Schema.optional<Schema.transform<Schema.Array$<typeof Schema.String>, typeof Schema.String>>;
|
|
81
80
|
sections_url: Schema.optional<typeof Schema.String>;
|
|
82
81
|
}>>>
|
|
83
82
|
]>;
|
|
84
83
|
export type CartClearInput = Schema.Schema.Encoded<typeof CartClearInput>;
|
|
85
84
|
declare const CartClearInput: Schema.Struct<{
|
|
86
|
-
sections: Schema.optional<typeof Schema.String
|
|
85
|
+
sections: Schema.optional<Schema.transform<Schema.Array$<typeof Schema.String>, typeof Schema.String>>;
|
|
87
86
|
sections_url: Schema.optional<typeof Schema.String>;
|
|
88
87
|
}>;
|
|
89
88
|
export type CartGetInput = Schema.Schema.Encoded<typeof CartClearInput>;
|
|
90
89
|
declare const CartGetInput: Schema.Struct<{
|
|
91
|
-
sections: Schema.optional<typeof Schema.String
|
|
90
|
+
sections: Schema.optional<Schema.transform<Schema.Array$<typeof Schema.String>, typeof Schema.String>>;
|
|
92
91
|
sections_url: Schema.optional<typeof Schema.String>;
|
|
93
92
|
}>;
|
|
94
|
-
export interface IAjaxClientResponse<TData = any> {
|
|
95
|
-
data?: TData;
|
|
96
|
-
error?: {
|
|
97
|
-
status: number;
|
|
98
|
-
message: string;
|
|
99
|
-
description?: string;
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
declare class AjaxClientResponse<TData = any> extends Data.Class<IAjaxClientResponse<TData>> {
|
|
103
|
-
}
|
|
104
|
-
declare const CartError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : {
|
|
105
|
-
readonly [P in keyof A as P extends "_tag" ? never : P]: A[P];
|
|
106
|
-
}) => import("effect/Cause").YieldableError & {
|
|
107
|
-
readonly _tag: "@brytdesigns/hybrid-cart-client/CartError";
|
|
108
|
-
} & Readonly<A>;
|
|
109
|
-
/**
|
|
110
|
-
* @internal
|
|
111
|
-
*
|
|
112
|
-
*/
|
|
113
|
-
export declare class CartError extends CartError_base<{
|
|
114
|
-
status: number;
|
|
115
|
-
message: string;
|
|
116
|
-
description: string;
|
|
117
|
-
}> {
|
|
118
|
-
}
|
|
119
|
-
declare const InvalidAjaxMethodError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : {
|
|
120
|
-
readonly [P in keyof A as P extends "_tag" ? never : P]: A[P];
|
|
121
|
-
}) => import("effect/Cause").YieldableError & {
|
|
122
|
-
readonly _tag: "@brytdesigns/hybrid-cart-client/InvalidAjaxMethodError";
|
|
123
|
-
} & Readonly<A>;
|
|
124
|
-
/**
|
|
125
|
-
* @internal
|
|
126
|
-
*
|
|
127
|
-
*/
|
|
128
|
-
export declare class InvalidAjaxMethodError extends InvalidAjaxMethodError_base<{
|
|
129
|
-
message: string;
|
|
130
|
-
}> {
|
|
131
|
-
constructor();
|
|
132
|
-
}
|
|
133
93
|
export type AddInput = CartAddInput;
|
|
134
94
|
export type ChangeInput = CartChangeInput;
|
|
135
95
|
export type ClearInput = CartClearInput;
|
|
@@ -148,135 +108,149 @@ export declare const add: (input?: ({
|
|
|
148
108
|
readonly quantity?: number | undefined;
|
|
149
109
|
}[];
|
|
150
110
|
} & {
|
|
151
|
-
readonly sections?: string | undefined;
|
|
111
|
+
readonly sections?: readonly string[] | undefined;
|
|
152
112
|
readonly sections_url?: string | undefined;
|
|
153
113
|
}) | undefined, options?: {
|
|
154
114
|
headers?: Record<string, string>;
|
|
155
|
-
}) => import("effect/Effect").Effect<
|
|
156
|
-
readonly
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
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 {
|
|
115
|
+
}) => import("effect/Effect").Effect<{
|
|
116
|
+
readonly data?: undefined;
|
|
117
|
+
readonly error?: {
|
|
118
|
+
status: number;
|
|
119
|
+
message: string;
|
|
120
|
+
description?: string;
|
|
121
|
+
} | undefined;
|
|
122
|
+
} | {
|
|
123
|
+
readonly data?: {
|
|
124
|
+
readonly items: readonly ({
|
|
125
|
+
readonly key: string;
|
|
173
126
|
readonly title: string;
|
|
174
|
-
readonly
|
|
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 | null;
|
|
187
|
-
readonly alt: string | null;
|
|
188
|
-
readonly height: number | null;
|
|
189
|
-
readonly url: string | null;
|
|
190
|
-
readonly width: number | null;
|
|
191
|
-
};
|
|
192
|
-
readonly image: string | null;
|
|
193
|
-
readonly handle: string;
|
|
194
|
-
readonly requires_shipping: boolean;
|
|
195
|
-
readonly product_type: string | null;
|
|
196
|
-
readonly product_title: string;
|
|
197
|
-
readonly product_description: string | null;
|
|
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 value: number;
|
|
208
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
209
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
210
|
-
readonly title: string;
|
|
211
|
-
readonly total_allocated_amount: number;
|
|
212
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
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: {
|
|
127
|
+
readonly url: string;
|
|
233
128
|
readonly price: number;
|
|
234
|
-
readonly
|
|
235
|
-
|
|
236
|
-
readonly
|
|
129
|
+
readonly id: string | number;
|
|
130
|
+
readonly properties: {
|
|
131
|
+
readonly [x: string]: string | number | boolean | null;
|
|
132
|
+
};
|
|
133
|
+
readonly quantity: number;
|
|
134
|
+
readonly variant_id: string | number;
|
|
135
|
+
readonly original_price: number;
|
|
136
|
+
readonly discounted_price: number;
|
|
137
|
+
readonly line_price: number;
|
|
138
|
+
readonly original_line_price: number;
|
|
139
|
+
readonly total_discount: number;
|
|
140
|
+
readonly discounts: readonly {
|
|
141
|
+
readonly title: string;
|
|
142
|
+
readonly amount: number;
|
|
237
143
|
}[];
|
|
238
|
-
readonly
|
|
239
|
-
readonly
|
|
240
|
-
readonly
|
|
241
|
-
|
|
144
|
+
readonly sku: string | null;
|
|
145
|
+
readonly grams: number;
|
|
146
|
+
readonly vendor: string;
|
|
147
|
+
readonly taxable: boolean;
|
|
148
|
+
readonly product_id: string | number;
|
|
149
|
+
readonly product_has_only_default_variant: boolean;
|
|
150
|
+
readonly gift_card: boolean;
|
|
151
|
+
readonly final_line_price: number;
|
|
152
|
+
readonly final_price: number;
|
|
153
|
+
readonly featured_image: {
|
|
154
|
+
readonly aspect_ratio: number | null;
|
|
155
|
+
readonly alt: string | null;
|
|
156
|
+
readonly height: number | null;
|
|
157
|
+
readonly url: string | null;
|
|
158
|
+
readonly width: number | null;
|
|
159
|
+
};
|
|
160
|
+
readonly image: string | null;
|
|
161
|
+
readonly handle: string;
|
|
162
|
+
readonly requires_shipping: boolean;
|
|
163
|
+
readonly product_type: string | null;
|
|
164
|
+
readonly product_title: string;
|
|
165
|
+
readonly product_description: string | null;
|
|
166
|
+
readonly variant_title: string | null;
|
|
167
|
+
readonly variant_options: readonly string[];
|
|
168
|
+
readonly options_with_values: readonly {
|
|
169
|
+
readonly value: string;
|
|
242
170
|
readonly name: string;
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
readonly
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
171
|
+
}[];
|
|
172
|
+
readonly line_level_discount_allocations: readonly {
|
|
173
|
+
readonly amount: number;
|
|
174
|
+
readonly discount_application: {
|
|
175
|
+
readonly value: number;
|
|
176
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
177
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
178
|
+
readonly title: string;
|
|
179
|
+
readonly total_allocated_amount: number;
|
|
180
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
181
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
182
|
+
readonly description: string | null;
|
|
183
|
+
};
|
|
184
|
+
}[];
|
|
185
|
+
readonly line_level_total_discount: number;
|
|
186
|
+
readonly quantity_rule?: {
|
|
187
|
+
readonly min: number;
|
|
188
|
+
readonly max: number | null;
|
|
189
|
+
readonly increment: number;
|
|
190
|
+
} | undefined;
|
|
191
|
+
readonly has_components: boolean;
|
|
192
|
+
readonly unit_price?: number | undefined;
|
|
193
|
+
readonly unit_price_measurement?: {
|
|
194
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
195
|
+
readonly quantity_unit: string;
|
|
196
|
+
readonly quantity_value: number;
|
|
197
|
+
readonly reference_unit: string;
|
|
198
|
+
readonly reference_value: number;
|
|
199
|
+
} | undefined;
|
|
200
|
+
readonly selling_plan_allocation: {
|
|
201
|
+
readonly price: number;
|
|
251
202
|
readonly price_adjustments: readonly {
|
|
252
|
-
readonly value: string | number;
|
|
253
|
-
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
254
203
|
readonly position: number;
|
|
255
|
-
readonly
|
|
204
|
+
readonly price: number;
|
|
256
205
|
}[];
|
|
206
|
+
readonly compare_at_price: number;
|
|
207
|
+
readonly per_delivery_price: number;
|
|
208
|
+
readonly selling_plan: {
|
|
209
|
+
readonly description: string | null;
|
|
210
|
+
readonly name: string;
|
|
211
|
+
readonly id: string | number;
|
|
212
|
+
readonly options: readonly {
|
|
213
|
+
readonly value: string;
|
|
214
|
+
readonly name: string;
|
|
215
|
+
readonly position: number;
|
|
216
|
+
}[];
|
|
217
|
+
readonly recurring_deliveries: boolean;
|
|
218
|
+
readonly fixed_selling_plan: boolean;
|
|
219
|
+
readonly price_adjustments: readonly {
|
|
220
|
+
readonly value: string | number;
|
|
221
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
222
|
+
readonly position: number;
|
|
223
|
+
readonly order_count: number | null;
|
|
224
|
+
}[];
|
|
225
|
+
};
|
|
226
|
+
} | null;
|
|
227
|
+
} & {
|
|
228
|
+
readonly properties_array: readonly {
|
|
229
|
+
readonly key: string;
|
|
230
|
+
readonly value: string | number | boolean | null;
|
|
231
|
+
}[];
|
|
232
|
+
readonly private_properties: {
|
|
233
|
+
readonly [x: string]: string | number | boolean | null;
|
|
257
234
|
};
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
readonly
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
readonly
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
}[];
|
|
278
|
-
})[];
|
|
279
|
-
}>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
|
|
235
|
+
readonly private_properties_array: readonly {
|
|
236
|
+
readonly key: string;
|
|
237
|
+
readonly value: string | number | boolean | null;
|
|
238
|
+
}[];
|
|
239
|
+
readonly public_properties: {
|
|
240
|
+
readonly [x: string]: string | number | boolean | null;
|
|
241
|
+
};
|
|
242
|
+
readonly public_properties_array: readonly {
|
|
243
|
+
readonly key: string;
|
|
244
|
+
readonly value: string | number | boolean | null;
|
|
245
|
+
}[];
|
|
246
|
+
})[];
|
|
247
|
+
} | undefined;
|
|
248
|
+
readonly error?: {
|
|
249
|
+
status: number;
|
|
250
|
+
message: string;
|
|
251
|
+
description?: string;
|
|
252
|
+
} | undefined;
|
|
253
|
+
}, Error, import("@effect/platform/HttpClient").HttpClient>;
|
|
280
254
|
export declare namespace change {
|
|
281
255
|
type Input = ChangeInput;
|
|
282
256
|
}
|
|
@@ -289,7 +263,7 @@ export declare const change: (input?: ({
|
|
|
289
263
|
} | undefined;
|
|
290
264
|
readonly quantity?: number | undefined;
|
|
291
265
|
} & {
|
|
292
|
-
readonly sections?: string | undefined;
|
|
266
|
+
readonly sections?: readonly string[] | undefined;
|
|
293
267
|
readonly sections_url?: string | undefined;
|
|
294
268
|
}) | ({
|
|
295
269
|
readonly line: number;
|
|
@@ -300,551 +274,593 @@ export declare const change: (input?: ({
|
|
|
300
274
|
} | undefined;
|
|
301
275
|
readonly quantity?: number | undefined;
|
|
302
276
|
} & {
|
|
303
|
-
readonly sections?: string | undefined;
|
|
277
|
+
readonly sections?: readonly string[] | undefined;
|
|
304
278
|
readonly sections_url?: string | undefined;
|
|
305
279
|
}) | undefined, options?: {
|
|
306
280
|
headers?: Record<string, string>;
|
|
307
|
-
}) => import("effect/Effect").Effect<
|
|
308
|
-
readonly
|
|
309
|
-
readonly
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
readonly
|
|
316
|
-
readonly attributes: {
|
|
317
|
-
readonly [x: string]: string | number | boolean | null;
|
|
318
|
-
};
|
|
319
|
-
readonly discount_codes: readonly {
|
|
320
|
-
readonly code: string;
|
|
321
|
-
readonly applicable: boolean;
|
|
322
|
-
}[];
|
|
323
|
-
readonly original_total_price: number;
|
|
324
|
-
readonly total_price: number;
|
|
325
|
-
readonly total_weight: number;
|
|
326
|
-
readonly item_count: number;
|
|
327
|
-
readonly items: readonly ({
|
|
328
|
-
readonly key: string;
|
|
329
|
-
readonly title: string;
|
|
330
|
-
readonly url: string;
|
|
331
|
-
readonly price: number;
|
|
332
|
-
readonly id: string | number;
|
|
333
|
-
readonly properties: {
|
|
334
|
-
readonly [x: string]: string | number | boolean | null;
|
|
335
|
-
};
|
|
336
|
-
readonly quantity: number;
|
|
337
|
-
readonly variant_id: string | number;
|
|
338
|
-
readonly original_price: number;
|
|
339
|
-
readonly discounted_price: number;
|
|
340
|
-
readonly line_price: number;
|
|
341
|
-
readonly original_line_price: number;
|
|
281
|
+
}) => import("effect/Effect").Effect<{
|
|
282
|
+
readonly data?: undefined;
|
|
283
|
+
readonly error?: {
|
|
284
|
+
status: number;
|
|
285
|
+
message: string;
|
|
286
|
+
description?: string;
|
|
287
|
+
} | undefined;
|
|
288
|
+
} | {
|
|
289
|
+
readonly data?: ({
|
|
342
290
|
readonly total_discount: number;
|
|
343
291
|
readonly discounts: readonly {
|
|
344
292
|
readonly title: string;
|
|
345
293
|
readonly amount: number;
|
|
346
294
|
}[];
|
|
347
|
-
readonly sku: string | null;
|
|
348
|
-
readonly grams: number;
|
|
349
|
-
readonly vendor: string;
|
|
350
|
-
readonly taxable: boolean;
|
|
351
|
-
readonly product_id: string | number;
|
|
352
|
-
readonly product_has_only_default_variant: boolean;
|
|
353
|
-
readonly gift_card: boolean;
|
|
354
|
-
readonly final_line_price: number;
|
|
355
|
-
readonly final_price: number;
|
|
356
|
-
readonly featured_image: {
|
|
357
|
-
readonly aspect_ratio: number | null;
|
|
358
|
-
readonly alt: string | null;
|
|
359
|
-
readonly height: number | null;
|
|
360
|
-
readonly url: string | null;
|
|
361
|
-
readonly width: number | null;
|
|
362
|
-
};
|
|
363
|
-
readonly image: string | null;
|
|
364
|
-
readonly handle: string;
|
|
365
295
|
readonly requires_shipping: boolean;
|
|
366
|
-
readonly
|
|
367
|
-
readonly
|
|
368
|
-
readonly
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
readonly
|
|
372
|
-
readonly
|
|
373
|
-
readonly
|
|
374
|
-
}[];
|
|
375
|
-
readonly line_level_discount_allocations: readonly {
|
|
376
|
-
readonly amount: number;
|
|
377
|
-
readonly discount_application: {
|
|
378
|
-
readonly value: number;
|
|
379
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
380
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
381
|
-
readonly title: string;
|
|
382
|
-
readonly total_allocated_amount: number;
|
|
383
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
384
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
385
|
-
readonly description: string | null;
|
|
386
|
-
};
|
|
296
|
+
readonly token: string;
|
|
297
|
+
readonly note: string | null;
|
|
298
|
+
readonly attributes: {
|
|
299
|
+
readonly [x: string]: string | number | boolean | null;
|
|
300
|
+
};
|
|
301
|
+
readonly discount_codes: readonly {
|
|
302
|
+
readonly code: string;
|
|
303
|
+
readonly applicable: boolean;
|
|
387
304
|
}[];
|
|
388
|
-
readonly
|
|
389
|
-
readonly
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
readonly unit_price_measurement?: {
|
|
397
|
-
readonly measured_type: "volume" | "weight" | "dimension";
|
|
398
|
-
readonly quantity_unit: string;
|
|
399
|
-
readonly quantity_value: number;
|
|
400
|
-
readonly reference_unit: string;
|
|
401
|
-
readonly reference_value: number;
|
|
402
|
-
} | undefined;
|
|
403
|
-
readonly selling_plan_allocation: {
|
|
305
|
+
readonly original_total_price: number;
|
|
306
|
+
readonly total_price: number;
|
|
307
|
+
readonly total_weight: number;
|
|
308
|
+
readonly item_count: number;
|
|
309
|
+
readonly items: readonly ({
|
|
310
|
+
readonly key: string;
|
|
311
|
+
readonly title: string;
|
|
312
|
+
readonly url: string;
|
|
404
313
|
readonly price: number;
|
|
405
|
-
readonly
|
|
406
|
-
|
|
407
|
-
readonly
|
|
314
|
+
readonly id: string | number;
|
|
315
|
+
readonly properties: {
|
|
316
|
+
readonly [x: string]: string | number | boolean | null;
|
|
317
|
+
};
|
|
318
|
+
readonly quantity: number;
|
|
319
|
+
readonly variant_id: string | number;
|
|
320
|
+
readonly original_price: number;
|
|
321
|
+
readonly discounted_price: number;
|
|
322
|
+
readonly line_price: number;
|
|
323
|
+
readonly original_line_price: number;
|
|
324
|
+
readonly total_discount: number;
|
|
325
|
+
readonly discounts: readonly {
|
|
326
|
+
readonly title: string;
|
|
327
|
+
readonly amount: number;
|
|
408
328
|
}[];
|
|
409
|
-
readonly
|
|
410
|
-
readonly
|
|
411
|
-
readonly
|
|
412
|
-
|
|
329
|
+
readonly sku: string | null;
|
|
330
|
+
readonly grams: number;
|
|
331
|
+
readonly vendor: string;
|
|
332
|
+
readonly taxable: boolean;
|
|
333
|
+
readonly product_id: string | number;
|
|
334
|
+
readonly product_has_only_default_variant: boolean;
|
|
335
|
+
readonly gift_card: boolean;
|
|
336
|
+
readonly final_line_price: number;
|
|
337
|
+
readonly final_price: number;
|
|
338
|
+
readonly featured_image: {
|
|
339
|
+
readonly aspect_ratio: number | null;
|
|
340
|
+
readonly alt: string | null;
|
|
341
|
+
readonly height: number | null;
|
|
342
|
+
readonly url: string | null;
|
|
343
|
+
readonly width: number | null;
|
|
344
|
+
};
|
|
345
|
+
readonly image: string | null;
|
|
346
|
+
readonly handle: string;
|
|
347
|
+
readonly requires_shipping: boolean;
|
|
348
|
+
readonly product_type: string | null;
|
|
349
|
+
readonly product_title: string;
|
|
350
|
+
readonly product_description: string | null;
|
|
351
|
+
readonly variant_title: string | null;
|
|
352
|
+
readonly variant_options: readonly string[];
|
|
353
|
+
readonly options_with_values: readonly {
|
|
354
|
+
readonly value: string;
|
|
413
355
|
readonly name: string;
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
readonly
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
356
|
+
}[];
|
|
357
|
+
readonly line_level_discount_allocations: readonly {
|
|
358
|
+
readonly amount: number;
|
|
359
|
+
readonly discount_application: {
|
|
360
|
+
readonly value: number;
|
|
361
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
362
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
363
|
+
readonly title: string;
|
|
364
|
+
readonly total_allocated_amount: number;
|
|
365
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
366
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
367
|
+
readonly description: string | null;
|
|
368
|
+
};
|
|
369
|
+
}[];
|
|
370
|
+
readonly line_level_total_discount: number;
|
|
371
|
+
readonly quantity_rule?: {
|
|
372
|
+
readonly min: number;
|
|
373
|
+
readonly max: number | null;
|
|
374
|
+
readonly increment: number;
|
|
375
|
+
} | undefined;
|
|
376
|
+
readonly has_components: boolean;
|
|
377
|
+
readonly unit_price?: number | undefined;
|
|
378
|
+
readonly unit_price_measurement?: {
|
|
379
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
380
|
+
readonly quantity_unit: string;
|
|
381
|
+
readonly quantity_value: number;
|
|
382
|
+
readonly reference_unit: string;
|
|
383
|
+
readonly reference_value: number;
|
|
384
|
+
} | undefined;
|
|
385
|
+
readonly selling_plan_allocation: {
|
|
386
|
+
readonly price: number;
|
|
422
387
|
readonly price_adjustments: readonly {
|
|
423
|
-
readonly value: string | number;
|
|
424
|
-
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
425
388
|
readonly position: number;
|
|
426
|
-
readonly
|
|
389
|
+
readonly price: number;
|
|
427
390
|
}[];
|
|
391
|
+
readonly compare_at_price: number;
|
|
392
|
+
readonly per_delivery_price: number;
|
|
393
|
+
readonly selling_plan: {
|
|
394
|
+
readonly description: string | null;
|
|
395
|
+
readonly name: string;
|
|
396
|
+
readonly id: string | number;
|
|
397
|
+
readonly options: readonly {
|
|
398
|
+
readonly value: string;
|
|
399
|
+
readonly name: string;
|
|
400
|
+
readonly position: number;
|
|
401
|
+
}[];
|
|
402
|
+
readonly recurring_deliveries: boolean;
|
|
403
|
+
readonly fixed_selling_plan: boolean;
|
|
404
|
+
readonly price_adjustments: readonly {
|
|
405
|
+
readonly value: string | number;
|
|
406
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
407
|
+
readonly position: number;
|
|
408
|
+
readonly order_count: number | null;
|
|
409
|
+
}[];
|
|
410
|
+
};
|
|
411
|
+
} | null;
|
|
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;
|
|
419
|
+
};
|
|
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;
|
|
428
426
|
};
|
|
429
|
-
|
|
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 value: number;
|
|
436
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
437
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
438
|
+
readonly title: string;
|
|
439
|
+
readonly total_allocated_amount: number;
|
|
440
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
441
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
442
|
+
readonly description: string | null;
|
|
443
|
+
}[];
|
|
430
444
|
} & {
|
|
431
|
-
readonly
|
|
445
|
+
readonly attributes_array: readonly {
|
|
432
446
|
readonly key: string;
|
|
433
447
|
readonly value: string | number | boolean | null;
|
|
434
448
|
}[];
|
|
435
|
-
readonly
|
|
449
|
+
readonly private_attributes: {
|
|
436
450
|
readonly [x: string]: string | number | boolean | null;
|
|
437
451
|
};
|
|
438
|
-
readonly
|
|
452
|
+
readonly private_attributes_array: readonly {
|
|
439
453
|
readonly key: string;
|
|
440
454
|
readonly value: string | number | boolean | null;
|
|
441
455
|
}[];
|
|
442
|
-
readonly
|
|
456
|
+
readonly public_attributes: {
|
|
443
457
|
readonly [x: string]: string | number | boolean | null;
|
|
444
458
|
};
|
|
445
|
-
readonly
|
|
459
|
+
readonly public_attributes_array: readonly {
|
|
446
460
|
readonly key: string;
|
|
447
461
|
readonly value: string | number | boolean | null;
|
|
448
462
|
}[];
|
|
449
|
-
})
|
|
450
|
-
readonly
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
readonly title: string;
|
|
457
|
-
readonly total_allocated_amount: number;
|
|
458
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
459
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
460
|
-
readonly description: string | null;
|
|
461
|
-
}[];
|
|
462
|
-
} & {
|
|
463
|
-
readonly attributes_array: readonly {
|
|
464
|
-
readonly key: string;
|
|
465
|
-
readonly value: string | number | boolean | null;
|
|
466
|
-
}[];
|
|
467
|
-
readonly private_attributes: {
|
|
468
|
-
readonly [x: string]: string | number | boolean | null;
|
|
469
|
-
};
|
|
470
|
-
readonly private_attributes_array: readonly {
|
|
471
|
-
readonly key: string;
|
|
472
|
-
readonly value: string | number | boolean | null;
|
|
473
|
-
}[];
|
|
474
|
-
readonly public_attributes: {
|
|
475
|
-
readonly [x: string]: string | number | boolean | null;
|
|
476
|
-
};
|
|
477
|
-
readonly public_attributes_array: readonly {
|
|
478
|
-
readonly key: string;
|
|
479
|
-
readonly value: string | number | boolean | null;
|
|
480
|
-
}[];
|
|
481
|
-
}>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
|
|
463
|
+
}) | undefined;
|
|
464
|
+
readonly error?: {
|
|
465
|
+
status: number;
|
|
466
|
+
message: string;
|
|
467
|
+
description?: string;
|
|
468
|
+
} | undefined;
|
|
469
|
+
}, Error, import("@effect/platform/HttpClient").HttpClient>;
|
|
482
470
|
export declare namespace clear {
|
|
483
471
|
type Input = ClearInput;
|
|
484
472
|
}
|
|
485
473
|
export declare const clear: (input?: {
|
|
486
|
-
readonly sections?: string | undefined;
|
|
474
|
+
readonly sections?: readonly string[] | undefined;
|
|
487
475
|
readonly sections_url?: string | undefined;
|
|
488
476
|
} | undefined, options?: {
|
|
489
477
|
headers?: Record<string, string>;
|
|
490
|
-
}) => import("effect/Effect").Effect<
|
|
491
|
-
readonly
|
|
492
|
-
readonly
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
readonly
|
|
499
|
-
readonly attributes: {
|
|
500
|
-
readonly [x: string]: string | number | boolean | null;
|
|
501
|
-
};
|
|
502
|
-
readonly discount_codes: readonly {
|
|
503
|
-
readonly code: string;
|
|
504
|
-
readonly applicable: boolean;
|
|
505
|
-
}[];
|
|
506
|
-
readonly original_total_price: number;
|
|
507
|
-
readonly total_price: number;
|
|
508
|
-
readonly total_weight: number;
|
|
509
|
-
readonly item_count: number;
|
|
510
|
-
readonly items: readonly ({
|
|
511
|
-
readonly key: string;
|
|
512
|
-
readonly title: string;
|
|
513
|
-
readonly url: string;
|
|
514
|
-
readonly price: number;
|
|
515
|
-
readonly id: string | number;
|
|
516
|
-
readonly properties: {
|
|
517
|
-
readonly [x: string]: string | number | boolean | null;
|
|
518
|
-
};
|
|
519
|
-
readonly quantity: number;
|
|
520
|
-
readonly variant_id: string | number;
|
|
521
|
-
readonly original_price: number;
|
|
522
|
-
readonly discounted_price: number;
|
|
523
|
-
readonly line_price: number;
|
|
524
|
-
readonly original_line_price: number;
|
|
478
|
+
}) => import("effect/Effect").Effect<{
|
|
479
|
+
readonly data?: undefined;
|
|
480
|
+
readonly error?: {
|
|
481
|
+
status: number;
|
|
482
|
+
message: string;
|
|
483
|
+
description?: string;
|
|
484
|
+
} | undefined;
|
|
485
|
+
} | {
|
|
486
|
+
readonly data?: ({
|
|
525
487
|
readonly total_discount: number;
|
|
526
488
|
readonly discounts: readonly {
|
|
527
489
|
readonly title: string;
|
|
528
490
|
readonly amount: number;
|
|
529
491
|
}[];
|
|
530
|
-
readonly sku: string | null;
|
|
531
|
-
readonly grams: number;
|
|
532
|
-
readonly vendor: string;
|
|
533
|
-
readonly taxable: boolean;
|
|
534
|
-
readonly product_id: string | number;
|
|
535
|
-
readonly product_has_only_default_variant: boolean;
|
|
536
|
-
readonly gift_card: boolean;
|
|
537
|
-
readonly final_line_price: number;
|
|
538
|
-
readonly final_price: number;
|
|
539
|
-
readonly featured_image: {
|
|
540
|
-
readonly aspect_ratio: number | null;
|
|
541
|
-
readonly alt: string | null;
|
|
542
|
-
readonly height: number | null;
|
|
543
|
-
readonly url: string | null;
|
|
544
|
-
readonly width: number | null;
|
|
545
|
-
};
|
|
546
|
-
readonly image: string | null;
|
|
547
|
-
readonly handle: string;
|
|
548
492
|
readonly requires_shipping: boolean;
|
|
549
|
-
readonly
|
|
550
|
-
readonly
|
|
551
|
-
readonly
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
readonly
|
|
555
|
-
readonly
|
|
556
|
-
readonly
|
|
557
|
-
}[];
|
|
558
|
-
readonly line_level_discount_allocations: readonly {
|
|
559
|
-
readonly amount: number;
|
|
560
|
-
readonly discount_application: {
|
|
561
|
-
readonly value: number;
|
|
562
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
563
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
564
|
-
readonly title: string;
|
|
565
|
-
readonly total_allocated_amount: number;
|
|
566
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
567
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
568
|
-
readonly description: string | null;
|
|
569
|
-
};
|
|
493
|
+
readonly token: string;
|
|
494
|
+
readonly note: string | null;
|
|
495
|
+
readonly attributes: {
|
|
496
|
+
readonly [x: string]: string | number | boolean | null;
|
|
497
|
+
};
|
|
498
|
+
readonly discount_codes: readonly {
|
|
499
|
+
readonly code: string;
|
|
500
|
+
readonly applicable: boolean;
|
|
570
501
|
}[];
|
|
571
|
-
readonly
|
|
572
|
-
readonly
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
readonly unit_price_measurement?: {
|
|
580
|
-
readonly measured_type: "volume" | "weight" | "dimension";
|
|
581
|
-
readonly quantity_unit: string;
|
|
582
|
-
readonly quantity_value: number;
|
|
583
|
-
readonly reference_unit: string;
|
|
584
|
-
readonly reference_value: number;
|
|
585
|
-
} | undefined;
|
|
586
|
-
readonly selling_plan_allocation: {
|
|
502
|
+
readonly original_total_price: number;
|
|
503
|
+
readonly total_price: number;
|
|
504
|
+
readonly total_weight: number;
|
|
505
|
+
readonly item_count: number;
|
|
506
|
+
readonly items: readonly ({
|
|
507
|
+
readonly key: string;
|
|
508
|
+
readonly title: string;
|
|
509
|
+
readonly url: string;
|
|
587
510
|
readonly price: number;
|
|
588
|
-
readonly
|
|
589
|
-
|
|
590
|
-
readonly
|
|
511
|
+
readonly id: string | number;
|
|
512
|
+
readonly properties: {
|
|
513
|
+
readonly [x: string]: string | number | boolean | null;
|
|
514
|
+
};
|
|
515
|
+
readonly quantity: number;
|
|
516
|
+
readonly variant_id: string | number;
|
|
517
|
+
readonly original_price: number;
|
|
518
|
+
readonly discounted_price: number;
|
|
519
|
+
readonly line_price: number;
|
|
520
|
+
readonly original_line_price: number;
|
|
521
|
+
readonly total_discount: number;
|
|
522
|
+
readonly discounts: readonly {
|
|
523
|
+
readonly title: string;
|
|
524
|
+
readonly amount: number;
|
|
591
525
|
}[];
|
|
592
|
-
readonly
|
|
593
|
-
readonly
|
|
594
|
-
readonly
|
|
595
|
-
|
|
526
|
+
readonly sku: string | null;
|
|
527
|
+
readonly grams: number;
|
|
528
|
+
readonly vendor: string;
|
|
529
|
+
readonly taxable: boolean;
|
|
530
|
+
readonly product_id: string | number;
|
|
531
|
+
readonly product_has_only_default_variant: boolean;
|
|
532
|
+
readonly gift_card: boolean;
|
|
533
|
+
readonly final_line_price: number;
|
|
534
|
+
readonly final_price: number;
|
|
535
|
+
readonly featured_image: {
|
|
536
|
+
readonly aspect_ratio: number | null;
|
|
537
|
+
readonly alt: string | null;
|
|
538
|
+
readonly height: number | null;
|
|
539
|
+
readonly url: string | null;
|
|
540
|
+
readonly width: number | null;
|
|
541
|
+
};
|
|
542
|
+
readonly image: string | null;
|
|
543
|
+
readonly handle: string;
|
|
544
|
+
readonly requires_shipping: boolean;
|
|
545
|
+
readonly product_type: string | null;
|
|
546
|
+
readonly product_title: string;
|
|
547
|
+
readonly product_description: string | null;
|
|
548
|
+
readonly variant_title: string | null;
|
|
549
|
+
readonly variant_options: readonly string[];
|
|
550
|
+
readonly options_with_values: readonly {
|
|
551
|
+
readonly value: string;
|
|
596
552
|
readonly name: string;
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
readonly
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
553
|
+
}[];
|
|
554
|
+
readonly line_level_discount_allocations: readonly {
|
|
555
|
+
readonly amount: number;
|
|
556
|
+
readonly discount_application: {
|
|
557
|
+
readonly value: number;
|
|
558
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
559
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
560
|
+
readonly title: string;
|
|
561
|
+
readonly total_allocated_amount: number;
|
|
562
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
563
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
564
|
+
readonly description: string | null;
|
|
565
|
+
};
|
|
566
|
+
}[];
|
|
567
|
+
readonly line_level_total_discount: number;
|
|
568
|
+
readonly quantity_rule?: {
|
|
569
|
+
readonly min: number;
|
|
570
|
+
readonly max: number | null;
|
|
571
|
+
readonly increment: number;
|
|
572
|
+
} | undefined;
|
|
573
|
+
readonly has_components: boolean;
|
|
574
|
+
readonly unit_price?: number | undefined;
|
|
575
|
+
readonly unit_price_measurement?: {
|
|
576
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
577
|
+
readonly quantity_unit: string;
|
|
578
|
+
readonly quantity_value: number;
|
|
579
|
+
readonly reference_unit: string;
|
|
580
|
+
readonly reference_value: number;
|
|
581
|
+
} | undefined;
|
|
582
|
+
readonly selling_plan_allocation: {
|
|
583
|
+
readonly price: number;
|
|
605
584
|
readonly price_adjustments: readonly {
|
|
606
|
-
readonly value: string | number;
|
|
607
|
-
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
608
585
|
readonly position: number;
|
|
609
|
-
readonly
|
|
586
|
+
readonly price: number;
|
|
610
587
|
}[];
|
|
588
|
+
readonly compare_at_price: number;
|
|
589
|
+
readonly per_delivery_price: number;
|
|
590
|
+
readonly selling_plan: {
|
|
591
|
+
readonly description: string | null;
|
|
592
|
+
readonly name: string;
|
|
593
|
+
readonly id: string | number;
|
|
594
|
+
readonly options: readonly {
|
|
595
|
+
readonly value: string;
|
|
596
|
+
readonly name: string;
|
|
597
|
+
readonly position: number;
|
|
598
|
+
}[];
|
|
599
|
+
readonly recurring_deliveries: boolean;
|
|
600
|
+
readonly fixed_selling_plan: boolean;
|
|
601
|
+
readonly price_adjustments: readonly {
|
|
602
|
+
readonly value: string | number;
|
|
603
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
604
|
+
readonly position: number;
|
|
605
|
+
readonly order_count: number | null;
|
|
606
|
+
}[];
|
|
607
|
+
};
|
|
608
|
+
} | null;
|
|
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;
|
|
611
623
|
};
|
|
612
|
-
|
|
624
|
+
readonly public_properties_array: readonly {
|
|
625
|
+
readonly key: string;
|
|
626
|
+
readonly value: string | number | boolean | null;
|
|
627
|
+
}[];
|
|
628
|
+
})[];
|
|
629
|
+
readonly currency: string;
|
|
630
|
+
readonly items_subtotal_price: number;
|
|
631
|
+
readonly cart_level_discount_applications: readonly {
|
|
632
|
+
readonly value: number;
|
|
633
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
634
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
635
|
+
readonly title: string;
|
|
636
|
+
readonly total_allocated_amount: number;
|
|
637
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
638
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
639
|
+
readonly description: string | null;
|
|
640
|
+
}[];
|
|
613
641
|
} & {
|
|
614
|
-
readonly
|
|
642
|
+
readonly attributes_array: readonly {
|
|
615
643
|
readonly key: string;
|
|
616
644
|
readonly value: string | number | boolean | null;
|
|
617
645
|
}[];
|
|
618
|
-
readonly
|
|
646
|
+
readonly private_attributes: {
|
|
619
647
|
readonly [x: string]: string | number | boolean | null;
|
|
620
648
|
};
|
|
621
|
-
readonly
|
|
649
|
+
readonly private_attributes_array: readonly {
|
|
622
650
|
readonly key: string;
|
|
623
651
|
readonly value: string | number | boolean | null;
|
|
624
652
|
}[];
|
|
625
|
-
readonly
|
|
653
|
+
readonly public_attributes: {
|
|
626
654
|
readonly [x: string]: string | number | boolean | null;
|
|
627
655
|
};
|
|
628
|
-
readonly
|
|
656
|
+
readonly public_attributes_array: readonly {
|
|
629
657
|
readonly key: string;
|
|
630
658
|
readonly value: string | number | boolean | null;
|
|
631
659
|
}[];
|
|
632
|
-
})
|
|
633
|
-
readonly
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
readonly title: string;
|
|
640
|
-
readonly total_allocated_amount: number;
|
|
641
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
642
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
643
|
-
readonly description: string | null;
|
|
644
|
-
}[];
|
|
645
|
-
} & {
|
|
646
|
-
readonly attributes_array: readonly {
|
|
647
|
-
readonly key: string;
|
|
648
|
-
readonly value: string | number | boolean | null;
|
|
649
|
-
}[];
|
|
650
|
-
readonly private_attributes: {
|
|
651
|
-
readonly [x: string]: string | number | boolean | null;
|
|
652
|
-
};
|
|
653
|
-
readonly private_attributes_array: readonly {
|
|
654
|
-
readonly key: string;
|
|
655
|
-
readonly value: string | number | boolean | null;
|
|
656
|
-
}[];
|
|
657
|
-
readonly public_attributes: {
|
|
658
|
-
readonly [x: string]: string | number | boolean | null;
|
|
659
|
-
};
|
|
660
|
-
readonly public_attributes_array: readonly {
|
|
661
|
-
readonly key: string;
|
|
662
|
-
readonly value: string | number | boolean | null;
|
|
663
|
-
}[];
|
|
664
|
-
}>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
|
|
660
|
+
}) | undefined;
|
|
661
|
+
readonly error?: {
|
|
662
|
+
status: number;
|
|
663
|
+
message: string;
|
|
664
|
+
description?: string;
|
|
665
|
+
} | undefined;
|
|
666
|
+
}, Error, import("@effect/platform/HttpClient").HttpClient>;
|
|
665
667
|
export declare namespace get {
|
|
666
668
|
type Input = GetInput;
|
|
667
669
|
}
|
|
668
670
|
export declare const get: (input?: {
|
|
669
|
-
readonly sections?: string | undefined;
|
|
671
|
+
readonly sections?: readonly string[] | undefined;
|
|
670
672
|
readonly sections_url?: string | undefined;
|
|
671
673
|
} | undefined, options?: {
|
|
672
674
|
headers?: Record<string, string>;
|
|
673
|
-
}) => import("effect/Effect").Effect<
|
|
674
|
-
readonly
|
|
675
|
-
readonly
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
readonly
|
|
682
|
-
readonly attributes: {
|
|
683
|
-
readonly [x: string]: string | number | boolean | null;
|
|
684
|
-
};
|
|
685
|
-
readonly discount_codes: readonly {
|
|
686
|
-
readonly code: string;
|
|
687
|
-
readonly applicable: boolean;
|
|
688
|
-
}[];
|
|
689
|
-
readonly original_total_price: number;
|
|
690
|
-
readonly total_price: number;
|
|
691
|
-
readonly total_weight: number;
|
|
692
|
-
readonly item_count: number;
|
|
693
|
-
readonly items: readonly ({
|
|
694
|
-
readonly key: string;
|
|
695
|
-
readonly title: string;
|
|
696
|
-
readonly url: string;
|
|
697
|
-
readonly price: number;
|
|
698
|
-
readonly id: string | number;
|
|
699
|
-
readonly properties: {
|
|
700
|
-
readonly [x: string]: string | number | boolean | null;
|
|
701
|
-
};
|
|
702
|
-
readonly quantity: number;
|
|
703
|
-
readonly variant_id: string | number;
|
|
704
|
-
readonly original_price: number;
|
|
705
|
-
readonly discounted_price: number;
|
|
706
|
-
readonly line_price: number;
|
|
707
|
-
readonly original_line_price: number;
|
|
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?: ({
|
|
708
684
|
readonly total_discount: number;
|
|
709
685
|
readonly discounts: readonly {
|
|
710
686
|
readonly title: string;
|
|
711
687
|
readonly amount: number;
|
|
712
688
|
}[];
|
|
713
|
-
readonly sku: string | null;
|
|
714
|
-
readonly grams: number;
|
|
715
|
-
readonly vendor: string;
|
|
716
|
-
readonly taxable: boolean;
|
|
717
|
-
readonly product_id: string | number;
|
|
718
|
-
readonly product_has_only_default_variant: boolean;
|
|
719
|
-
readonly gift_card: boolean;
|
|
720
|
-
readonly final_line_price: number;
|
|
721
|
-
readonly final_price: number;
|
|
722
|
-
readonly featured_image: {
|
|
723
|
-
readonly aspect_ratio: number | null;
|
|
724
|
-
readonly alt: string | null;
|
|
725
|
-
readonly height: number | null;
|
|
726
|
-
readonly url: string | null;
|
|
727
|
-
readonly width: number | null;
|
|
728
|
-
};
|
|
729
|
-
readonly image: string | null;
|
|
730
|
-
readonly handle: string;
|
|
731
689
|
readonly requires_shipping: boolean;
|
|
732
|
-
readonly
|
|
733
|
-
readonly
|
|
734
|
-
readonly
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
readonly
|
|
738
|
-
readonly
|
|
739
|
-
readonly
|
|
740
|
-
}[];
|
|
741
|
-
readonly line_level_discount_allocations: readonly {
|
|
742
|
-
readonly amount: number;
|
|
743
|
-
readonly discount_application: {
|
|
744
|
-
readonly value: number;
|
|
745
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
746
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
747
|
-
readonly title: string;
|
|
748
|
-
readonly total_allocated_amount: number;
|
|
749
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
750
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
751
|
-
readonly description: string | null;
|
|
752
|
-
};
|
|
690
|
+
readonly token: string;
|
|
691
|
+
readonly note: string | null;
|
|
692
|
+
readonly attributes: {
|
|
693
|
+
readonly [x: string]: string | number | boolean | null;
|
|
694
|
+
};
|
|
695
|
+
readonly discount_codes: readonly {
|
|
696
|
+
readonly code: string;
|
|
697
|
+
readonly applicable: boolean;
|
|
753
698
|
}[];
|
|
754
|
-
readonly
|
|
755
|
-
readonly
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
readonly unit_price_measurement?: {
|
|
763
|
-
readonly measured_type: "volume" | "weight" | "dimension";
|
|
764
|
-
readonly quantity_unit: string;
|
|
765
|
-
readonly quantity_value: number;
|
|
766
|
-
readonly reference_unit: string;
|
|
767
|
-
readonly reference_value: number;
|
|
768
|
-
} | undefined;
|
|
769
|
-
readonly selling_plan_allocation: {
|
|
699
|
+
readonly original_total_price: number;
|
|
700
|
+
readonly total_price: number;
|
|
701
|
+
readonly total_weight: number;
|
|
702
|
+
readonly item_count: number;
|
|
703
|
+
readonly items: readonly ({
|
|
704
|
+
readonly key: string;
|
|
705
|
+
readonly title: string;
|
|
706
|
+
readonly url: string;
|
|
770
707
|
readonly price: number;
|
|
771
|
-
readonly
|
|
772
|
-
|
|
773
|
-
readonly
|
|
708
|
+
readonly id: string | number;
|
|
709
|
+
readonly properties: {
|
|
710
|
+
readonly [x: string]: string | number | boolean | null;
|
|
711
|
+
};
|
|
712
|
+
readonly quantity: number;
|
|
713
|
+
readonly variant_id: string | number;
|
|
714
|
+
readonly original_price: number;
|
|
715
|
+
readonly discounted_price: number;
|
|
716
|
+
readonly line_price: number;
|
|
717
|
+
readonly original_line_price: number;
|
|
718
|
+
readonly total_discount: number;
|
|
719
|
+
readonly discounts: readonly {
|
|
720
|
+
readonly title: string;
|
|
721
|
+
readonly amount: number;
|
|
774
722
|
}[];
|
|
775
|
-
readonly
|
|
776
|
-
readonly
|
|
777
|
-
readonly
|
|
778
|
-
|
|
723
|
+
readonly sku: string | null;
|
|
724
|
+
readonly grams: number;
|
|
725
|
+
readonly vendor: string;
|
|
726
|
+
readonly taxable: boolean;
|
|
727
|
+
readonly product_id: string | number;
|
|
728
|
+
readonly product_has_only_default_variant: boolean;
|
|
729
|
+
readonly gift_card: boolean;
|
|
730
|
+
readonly final_line_price: number;
|
|
731
|
+
readonly final_price: number;
|
|
732
|
+
readonly featured_image: {
|
|
733
|
+
readonly aspect_ratio: number | null;
|
|
734
|
+
readonly alt: string | null;
|
|
735
|
+
readonly height: number | null;
|
|
736
|
+
readonly url: string | null;
|
|
737
|
+
readonly width: number | null;
|
|
738
|
+
};
|
|
739
|
+
readonly image: string | null;
|
|
740
|
+
readonly handle: string;
|
|
741
|
+
readonly requires_shipping: boolean;
|
|
742
|
+
readonly product_type: string | null;
|
|
743
|
+
readonly product_title: string;
|
|
744
|
+
readonly product_description: string | null;
|
|
745
|
+
readonly variant_title: string | null;
|
|
746
|
+
readonly variant_options: readonly string[];
|
|
747
|
+
readonly options_with_values: readonly {
|
|
748
|
+
readonly value: string;
|
|
779
749
|
readonly name: string;
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
readonly
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
750
|
+
}[];
|
|
751
|
+
readonly line_level_discount_allocations: readonly {
|
|
752
|
+
readonly amount: number;
|
|
753
|
+
readonly discount_application: {
|
|
754
|
+
readonly value: number;
|
|
755
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
756
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
757
|
+
readonly title: string;
|
|
758
|
+
readonly total_allocated_amount: number;
|
|
759
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
760
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
761
|
+
readonly description: string | null;
|
|
762
|
+
};
|
|
763
|
+
}[];
|
|
764
|
+
readonly line_level_total_discount: number;
|
|
765
|
+
readonly quantity_rule?: {
|
|
766
|
+
readonly min: number;
|
|
767
|
+
readonly max: number | null;
|
|
768
|
+
readonly increment: number;
|
|
769
|
+
} | undefined;
|
|
770
|
+
readonly has_components: boolean;
|
|
771
|
+
readonly unit_price?: number | undefined;
|
|
772
|
+
readonly unit_price_measurement?: {
|
|
773
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
774
|
+
readonly quantity_unit: string;
|
|
775
|
+
readonly quantity_value: number;
|
|
776
|
+
readonly reference_unit: string;
|
|
777
|
+
readonly reference_value: number;
|
|
778
|
+
} | undefined;
|
|
779
|
+
readonly selling_plan_allocation: {
|
|
780
|
+
readonly price: number;
|
|
788
781
|
readonly price_adjustments: readonly {
|
|
789
|
-
readonly value: string | number;
|
|
790
|
-
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
791
782
|
readonly position: number;
|
|
792
|
-
readonly
|
|
783
|
+
readonly price: number;
|
|
793
784
|
}[];
|
|
785
|
+
readonly compare_at_price: number;
|
|
786
|
+
readonly per_delivery_price: number;
|
|
787
|
+
readonly selling_plan: {
|
|
788
|
+
readonly description: string | null;
|
|
789
|
+
readonly name: string;
|
|
790
|
+
readonly id: string | number;
|
|
791
|
+
readonly options: readonly {
|
|
792
|
+
readonly value: string;
|
|
793
|
+
readonly name: string;
|
|
794
|
+
readonly position: number;
|
|
795
|
+
}[];
|
|
796
|
+
readonly recurring_deliveries: boolean;
|
|
797
|
+
readonly fixed_selling_plan: boolean;
|
|
798
|
+
readonly price_adjustments: readonly {
|
|
799
|
+
readonly value: string | number;
|
|
800
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
801
|
+
readonly position: number;
|
|
802
|
+
readonly order_count: number | null;
|
|
803
|
+
}[];
|
|
804
|
+
};
|
|
805
|
+
} | null;
|
|
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;
|
|
794
813
|
};
|
|
795
|
-
|
|
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;
|
|
820
|
+
};
|
|
821
|
+
readonly public_properties_array: readonly {
|
|
822
|
+
readonly key: string;
|
|
823
|
+
readonly value: string | number | boolean | null;
|
|
824
|
+
}[];
|
|
825
|
+
})[];
|
|
826
|
+
readonly currency: string;
|
|
827
|
+
readonly items_subtotal_price: number;
|
|
828
|
+
readonly cart_level_discount_applications: readonly {
|
|
829
|
+
readonly value: number;
|
|
830
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
831
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
832
|
+
readonly title: string;
|
|
833
|
+
readonly total_allocated_amount: number;
|
|
834
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
835
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
836
|
+
readonly description: string | null;
|
|
837
|
+
}[];
|
|
796
838
|
} & {
|
|
797
|
-
readonly
|
|
839
|
+
readonly attributes_array: readonly {
|
|
798
840
|
readonly key: string;
|
|
799
841
|
readonly value: string | number | boolean | null;
|
|
800
842
|
}[];
|
|
801
|
-
readonly
|
|
843
|
+
readonly private_attributes: {
|
|
802
844
|
readonly [x: string]: string | number | boolean | null;
|
|
803
845
|
};
|
|
804
|
-
readonly
|
|
846
|
+
readonly private_attributes_array: readonly {
|
|
805
847
|
readonly key: string;
|
|
806
848
|
readonly value: string | number | boolean | null;
|
|
807
849
|
}[];
|
|
808
|
-
readonly
|
|
850
|
+
readonly public_attributes: {
|
|
809
851
|
readonly [x: string]: string | number | boolean | null;
|
|
810
852
|
};
|
|
811
|
-
readonly
|
|
853
|
+
readonly public_attributes_array: readonly {
|
|
812
854
|
readonly key: string;
|
|
813
855
|
readonly value: string | number | boolean | null;
|
|
814
856
|
}[];
|
|
815
|
-
})
|
|
816
|
-
readonly
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
readonly title: string;
|
|
823
|
-
readonly total_allocated_amount: number;
|
|
824
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
825
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
826
|
-
readonly description: string | null;
|
|
827
|
-
}[];
|
|
828
|
-
} & {
|
|
829
|
-
readonly attributes_array: readonly {
|
|
830
|
-
readonly key: string;
|
|
831
|
-
readonly value: string | number | boolean | null;
|
|
832
|
-
}[];
|
|
833
|
-
readonly private_attributes: {
|
|
834
|
-
readonly [x: string]: string | number | boolean | null;
|
|
835
|
-
};
|
|
836
|
-
readonly private_attributes_array: readonly {
|
|
837
|
-
readonly key: string;
|
|
838
|
-
readonly value: string | number | boolean | null;
|
|
839
|
-
}[];
|
|
840
|
-
readonly public_attributes: {
|
|
841
|
-
readonly [x: string]: string | number | boolean | null;
|
|
842
|
-
};
|
|
843
|
-
readonly public_attributes_array: readonly {
|
|
844
|
-
readonly key: string;
|
|
845
|
-
readonly value: string | number | boolean | null;
|
|
846
|
-
}[];
|
|
847
|
-
}>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
|
|
857
|
+
}) | undefined;
|
|
858
|
+
readonly error?: {
|
|
859
|
+
status: number;
|
|
860
|
+
message: string;
|
|
861
|
+
description?: string;
|
|
862
|
+
} | undefined;
|
|
863
|
+
}, Error, import("@effect/platform/HttpClient").HttpClient>;
|
|
848
864
|
export declare namespace update {
|
|
849
865
|
type Input = UpdateInput;
|
|
850
866
|
}
|
|
@@ -858,184 +874,198 @@ export declare const update: (input?: ({
|
|
|
858
874
|
} | readonly number[] | undefined;
|
|
859
875
|
readonly discount?: readonly string[] | undefined;
|
|
860
876
|
} & {
|
|
861
|
-
readonly sections?: string | undefined;
|
|
877
|
+
readonly sections?: readonly string[] | undefined;
|
|
862
878
|
readonly sections_url?: string | undefined;
|
|
863
879
|
}) | undefined, options?: {
|
|
864
880
|
headers?: Record<string, string>;
|
|
865
|
-
}) => import("effect/Effect").Effect<
|
|
866
|
-
readonly
|
|
867
|
-
readonly
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
readonly
|
|
874
|
-
readonly attributes: {
|
|
875
|
-
readonly [x: string]: string | number | boolean | null;
|
|
876
|
-
};
|
|
877
|
-
readonly discount_codes: readonly {
|
|
878
|
-
readonly code: string;
|
|
879
|
-
readonly applicable: boolean;
|
|
880
|
-
}[];
|
|
881
|
-
readonly original_total_price: number;
|
|
882
|
-
readonly total_price: number;
|
|
883
|
-
readonly total_weight: number;
|
|
884
|
-
readonly item_count: number;
|
|
885
|
-
readonly items: readonly ({
|
|
886
|
-
readonly key: string;
|
|
887
|
-
readonly title: string;
|
|
888
|
-
readonly url: string;
|
|
889
|
-
readonly price: number;
|
|
890
|
-
readonly id: string | number;
|
|
891
|
-
readonly properties: {
|
|
892
|
-
readonly [x: string]: string | number | boolean | null;
|
|
893
|
-
};
|
|
894
|
-
readonly quantity: number;
|
|
895
|
-
readonly variant_id: string | number;
|
|
896
|
-
readonly original_price: number;
|
|
897
|
-
readonly discounted_price: number;
|
|
898
|
-
readonly line_price: number;
|
|
899
|
-
readonly original_line_price: number;
|
|
881
|
+
}) => import("effect/Effect").Effect<{
|
|
882
|
+
readonly data?: undefined;
|
|
883
|
+
readonly error?: {
|
|
884
|
+
status: number;
|
|
885
|
+
message: string;
|
|
886
|
+
description?: string;
|
|
887
|
+
} | undefined;
|
|
888
|
+
} | {
|
|
889
|
+
readonly data?: ({
|
|
900
890
|
readonly total_discount: number;
|
|
901
891
|
readonly discounts: readonly {
|
|
902
892
|
readonly title: string;
|
|
903
893
|
readonly amount: number;
|
|
904
894
|
}[];
|
|
905
|
-
readonly sku: string | null;
|
|
906
|
-
readonly grams: number;
|
|
907
|
-
readonly vendor: string;
|
|
908
|
-
readonly taxable: boolean;
|
|
909
|
-
readonly product_id: string | number;
|
|
910
|
-
readonly product_has_only_default_variant: boolean;
|
|
911
|
-
readonly gift_card: boolean;
|
|
912
|
-
readonly final_line_price: number;
|
|
913
|
-
readonly final_price: number;
|
|
914
|
-
readonly featured_image: {
|
|
915
|
-
readonly aspect_ratio: number | null;
|
|
916
|
-
readonly alt: string | null;
|
|
917
|
-
readonly height: number | null;
|
|
918
|
-
readonly url: string | null;
|
|
919
|
-
readonly width: number | null;
|
|
920
|
-
};
|
|
921
|
-
readonly image: string | null;
|
|
922
|
-
readonly handle: string;
|
|
923
895
|
readonly requires_shipping: boolean;
|
|
924
|
-
readonly
|
|
925
|
-
readonly
|
|
926
|
-
readonly
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
readonly
|
|
930
|
-
readonly
|
|
931
|
-
readonly
|
|
932
|
-
}[];
|
|
933
|
-
readonly line_level_discount_allocations: readonly {
|
|
934
|
-
readonly amount: number;
|
|
935
|
-
readonly discount_application: {
|
|
936
|
-
readonly value: number;
|
|
937
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
938
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
939
|
-
readonly title: string;
|
|
940
|
-
readonly total_allocated_amount: number;
|
|
941
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
942
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
943
|
-
readonly description: string | null;
|
|
944
|
-
};
|
|
896
|
+
readonly token: string;
|
|
897
|
+
readonly note: string | null;
|
|
898
|
+
readonly attributes: {
|
|
899
|
+
readonly [x: string]: string | number | boolean | null;
|
|
900
|
+
};
|
|
901
|
+
readonly discount_codes: readonly {
|
|
902
|
+
readonly code: string;
|
|
903
|
+
readonly applicable: boolean;
|
|
945
904
|
}[];
|
|
946
|
-
readonly
|
|
947
|
-
readonly
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
readonly unit_price_measurement?: {
|
|
955
|
-
readonly measured_type: "volume" | "weight" | "dimension";
|
|
956
|
-
readonly quantity_unit: string;
|
|
957
|
-
readonly quantity_value: number;
|
|
958
|
-
readonly reference_unit: string;
|
|
959
|
-
readonly reference_value: number;
|
|
960
|
-
} | undefined;
|
|
961
|
-
readonly selling_plan_allocation: {
|
|
905
|
+
readonly original_total_price: number;
|
|
906
|
+
readonly total_price: number;
|
|
907
|
+
readonly total_weight: number;
|
|
908
|
+
readonly item_count: number;
|
|
909
|
+
readonly items: readonly ({
|
|
910
|
+
readonly key: string;
|
|
911
|
+
readonly title: string;
|
|
912
|
+
readonly url: string;
|
|
962
913
|
readonly price: number;
|
|
963
|
-
readonly
|
|
964
|
-
|
|
965
|
-
readonly
|
|
914
|
+
readonly id: string | number;
|
|
915
|
+
readonly properties: {
|
|
916
|
+
readonly [x: string]: string | number | boolean | null;
|
|
917
|
+
};
|
|
918
|
+
readonly quantity: number;
|
|
919
|
+
readonly variant_id: string | number;
|
|
920
|
+
readonly original_price: number;
|
|
921
|
+
readonly discounted_price: number;
|
|
922
|
+
readonly line_price: number;
|
|
923
|
+
readonly original_line_price: number;
|
|
924
|
+
readonly total_discount: number;
|
|
925
|
+
readonly discounts: readonly {
|
|
926
|
+
readonly title: string;
|
|
927
|
+
readonly amount: number;
|
|
966
928
|
}[];
|
|
967
|
-
readonly
|
|
968
|
-
readonly
|
|
969
|
-
readonly
|
|
970
|
-
|
|
929
|
+
readonly sku: string | null;
|
|
930
|
+
readonly grams: number;
|
|
931
|
+
readonly vendor: string;
|
|
932
|
+
readonly taxable: boolean;
|
|
933
|
+
readonly product_id: string | number;
|
|
934
|
+
readonly product_has_only_default_variant: boolean;
|
|
935
|
+
readonly gift_card: boolean;
|
|
936
|
+
readonly final_line_price: number;
|
|
937
|
+
readonly final_price: number;
|
|
938
|
+
readonly featured_image: {
|
|
939
|
+
readonly aspect_ratio: number | null;
|
|
940
|
+
readonly alt: string | null;
|
|
941
|
+
readonly height: number | null;
|
|
942
|
+
readonly url: string | null;
|
|
943
|
+
readonly width: number | null;
|
|
944
|
+
};
|
|
945
|
+
readonly image: string | null;
|
|
946
|
+
readonly handle: string;
|
|
947
|
+
readonly requires_shipping: boolean;
|
|
948
|
+
readonly product_type: string | null;
|
|
949
|
+
readonly product_title: string;
|
|
950
|
+
readonly product_description: string | null;
|
|
951
|
+
readonly variant_title: string | null;
|
|
952
|
+
readonly variant_options: readonly string[];
|
|
953
|
+
readonly options_with_values: readonly {
|
|
954
|
+
readonly value: string;
|
|
971
955
|
readonly name: string;
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
readonly
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
956
|
+
}[];
|
|
957
|
+
readonly line_level_discount_allocations: readonly {
|
|
958
|
+
readonly amount: number;
|
|
959
|
+
readonly discount_application: {
|
|
960
|
+
readonly value: number;
|
|
961
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
962
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
963
|
+
readonly title: string;
|
|
964
|
+
readonly total_allocated_amount: number;
|
|
965
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
966
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
967
|
+
readonly description: string | null;
|
|
968
|
+
};
|
|
969
|
+
}[];
|
|
970
|
+
readonly line_level_total_discount: number;
|
|
971
|
+
readonly quantity_rule?: {
|
|
972
|
+
readonly min: number;
|
|
973
|
+
readonly max: number | null;
|
|
974
|
+
readonly increment: number;
|
|
975
|
+
} | undefined;
|
|
976
|
+
readonly has_components: boolean;
|
|
977
|
+
readonly unit_price?: number | undefined;
|
|
978
|
+
readonly unit_price_measurement?: {
|
|
979
|
+
readonly measured_type: "volume" | "weight" | "dimension";
|
|
980
|
+
readonly quantity_unit: string;
|
|
981
|
+
readonly quantity_value: number;
|
|
982
|
+
readonly reference_unit: string;
|
|
983
|
+
readonly reference_value: number;
|
|
984
|
+
} | undefined;
|
|
985
|
+
readonly selling_plan_allocation: {
|
|
986
|
+
readonly price: number;
|
|
980
987
|
readonly price_adjustments: readonly {
|
|
981
|
-
readonly value: string | number;
|
|
982
|
-
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
983
988
|
readonly position: number;
|
|
984
|
-
readonly
|
|
989
|
+
readonly price: number;
|
|
985
990
|
}[];
|
|
991
|
+
readonly compare_at_price: number;
|
|
992
|
+
readonly per_delivery_price: number;
|
|
993
|
+
readonly selling_plan: {
|
|
994
|
+
readonly description: string | null;
|
|
995
|
+
readonly name: string;
|
|
996
|
+
readonly id: string | number;
|
|
997
|
+
readonly options: readonly {
|
|
998
|
+
readonly value: string;
|
|
999
|
+
readonly name: string;
|
|
1000
|
+
readonly position: number;
|
|
1001
|
+
}[];
|
|
1002
|
+
readonly recurring_deliveries: boolean;
|
|
1003
|
+
readonly fixed_selling_plan: boolean;
|
|
1004
|
+
readonly price_adjustments: readonly {
|
|
1005
|
+
readonly value: string | number;
|
|
1006
|
+
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
1007
|
+
readonly position: number;
|
|
1008
|
+
readonly order_count: number | null;
|
|
1009
|
+
}[];
|
|
1010
|
+
};
|
|
1011
|
+
} | null;
|
|
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;
|
|
986
1019
|
};
|
|
987
|
-
|
|
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 value: number;
|
|
1036
|
+
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1037
|
+
readonly target_type: "line_item" | "shipping_line";
|
|
1038
|
+
readonly title: string;
|
|
1039
|
+
readonly total_allocated_amount: number;
|
|
1040
|
+
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1041
|
+
readonly value_type: "fixed_amount" | "percentage";
|
|
1042
|
+
readonly description: string | null;
|
|
1043
|
+
}[];
|
|
988
1044
|
} & {
|
|
989
|
-
readonly
|
|
1045
|
+
readonly attributes_array: readonly {
|
|
990
1046
|
readonly key: string;
|
|
991
1047
|
readonly value: string | number | boolean | null;
|
|
992
1048
|
}[];
|
|
993
|
-
readonly
|
|
1049
|
+
readonly private_attributes: {
|
|
994
1050
|
readonly [x: string]: string | number | boolean | null;
|
|
995
1051
|
};
|
|
996
|
-
readonly
|
|
1052
|
+
readonly private_attributes_array: readonly {
|
|
997
1053
|
readonly key: string;
|
|
998
1054
|
readonly value: string | number | boolean | null;
|
|
999
1055
|
}[];
|
|
1000
|
-
readonly
|
|
1056
|
+
readonly public_attributes: {
|
|
1001
1057
|
readonly [x: string]: string | number | boolean | null;
|
|
1002
1058
|
};
|
|
1003
|
-
readonly
|
|
1059
|
+
readonly public_attributes_array: readonly {
|
|
1004
1060
|
readonly key: string;
|
|
1005
1061
|
readonly value: string | number | boolean | null;
|
|
1006
1062
|
}[];
|
|
1007
|
-
})
|
|
1008
|
-
readonly
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
readonly title: string;
|
|
1015
|
-
readonly total_allocated_amount: number;
|
|
1016
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1017
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
1018
|
-
readonly description: string | null;
|
|
1019
|
-
}[];
|
|
1020
|
-
} & {
|
|
1021
|
-
readonly attributes_array: readonly {
|
|
1022
|
-
readonly key: string;
|
|
1023
|
-
readonly value: string | number | boolean | null;
|
|
1024
|
-
}[];
|
|
1025
|
-
readonly private_attributes: {
|
|
1026
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1027
|
-
};
|
|
1028
|
-
readonly private_attributes_array: readonly {
|
|
1029
|
-
readonly key: string;
|
|
1030
|
-
readonly value: string | number | boolean | null;
|
|
1031
|
-
}[];
|
|
1032
|
-
readonly public_attributes: {
|
|
1033
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1034
|
-
};
|
|
1035
|
-
readonly public_attributes_array: readonly {
|
|
1036
|
-
readonly key: string;
|
|
1037
|
-
readonly value: string | number | boolean | null;
|
|
1038
|
-
}[];
|
|
1039
|
-
}>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
|
|
1063
|
+
}) | undefined;
|
|
1064
|
+
readonly error?: {
|
|
1065
|
+
status: number;
|
|
1066
|
+
message: string;
|
|
1067
|
+
description?: string;
|
|
1068
|
+
} | undefined;
|
|
1069
|
+
}, Error, import("@effect/platform/HttpClient").HttpClient>;
|
|
1040
1070
|
|
|
1041
1071
|
export {};
|