@ecomweb/sdk 0.4.0 → 0.5.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/index.d.ts +436 -6
- package/dist/index.js +1352 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3094,6 +3094,380 @@ declare function resolveThemeSettings(schema: ThemeSchema, input: unknown): {
|
|
|
3094
3094
|
/** "Set" means not null, not "" and not false. */
|
|
3095
3095
|
declare function isSettingVisible(setting: ThemeSetting, values: ThemeValues): boolean;
|
|
3096
3096
|
|
|
3097
|
+
/**
|
|
3098
|
+
* Metafields and metaobjects: the type engine (spec 2026-10-05
|
|
3099
|
+
* metafields-metaobjects §5). Plain TypeScript with no imports and no I/O, so
|
|
3100
|
+
* it runs unchanged in the API, the dashboard and storefronts.
|
|
3101
|
+
*
|
|
3102
|
+
* ecomweb-api (src/modules/metafields/domain/metafield-engine.ts) and
|
|
3103
|
+
* ecomweb-dashboard (lib/metafields/engine.ts) keep VERBATIM copies of
|
|
3104
|
+
* everything below the marker line. To change the engine: edit it here, update
|
|
3105
|
+
* ENGINE_BODY_SHA256 in metafield-engine.body-hash.spec.ts, then re-copy the
|
|
3106
|
+
* body into both repos with the new hash in their headers.
|
|
3107
|
+
*/
|
|
3108
|
+
declare const METAFIELD_OWNER_TYPES: readonly ["product", "variant", "collection", "customer", "order", "page", "blog_post", "location", "shop"];
|
|
3109
|
+
type MetafieldOwnerType = (typeof METAFIELD_OWNER_TYPES)[number];
|
|
3110
|
+
declare const METAFIELD_BASE_TYPES: readonly ["single_line_text", "multi_line_text", "rich_text", "email", "integer", "decimal", "date", "date_time", "url", "link", "weight", "volume", "dimension", "boolean", "color", "rating", "money", "language", "json", "file", "image", "video", "product", "variant", "collection", "page", "blog_post", "customer", "order", "metaobject_reference", "mixed_reference"];
|
|
3111
|
+
type MetafieldBaseType = (typeof METAFIELD_BASE_TYPES)[number];
|
|
3112
|
+
type MetafieldListType = `list.${MetafieldBaseType}`;
|
|
3113
|
+
type MetafieldType = MetafieldBaseType | MetafieldListType;
|
|
3114
|
+
declare function isMetafieldType(value: unknown): value is MetafieldType;
|
|
3115
|
+
declare function isListType(type: MetafieldType): type is MetafieldListType;
|
|
3116
|
+
declare function baseTypeOf(type: MetafieldType): MetafieldBaseType;
|
|
3117
|
+
type MetafieldTypeGroup = "text" | "media" | "reference" | "link" | "date_time" | "number" | "measurement" | "other" | "advanced";
|
|
3118
|
+
/** Type picker groups in display order (spec §7.2). Labels are the consumer's. */
|
|
3119
|
+
declare const METAFIELD_TYPE_GROUPS: readonly {
|
|
3120
|
+
readonly group: MetafieldTypeGroup;
|
|
3121
|
+
readonly types: readonly MetafieldBaseType[];
|
|
3122
|
+
}[];
|
|
3123
|
+
declare const RESOURCE_REFERENCE_TYPES: readonly ["product", "variant", "collection", "page", "blog_post", "customer", "order"];
|
|
3124
|
+
declare const METAOBJECT_REFERENCE_TYPES: readonly ["metaobject_reference", "mixed_reference"];
|
|
3125
|
+
declare const MEDIA_TYPES: readonly ["file", "image", "video"];
|
|
3126
|
+
/** Never resolved outside the admin (spec §6.5). */
|
|
3127
|
+
declare const PRIVATE_REFERENCE_TYPES: readonly ["customer", "order"];
|
|
3128
|
+
declare const METAFIELD_LIMITS: {
|
|
3129
|
+
readonly definitions_per_owner_type: 100;
|
|
3130
|
+
readonly pinned_per_owner_type: 20;
|
|
3131
|
+
readonly metaobject_definitions: 100;
|
|
3132
|
+
readonly fields_per_metaobject: 40;
|
|
3133
|
+
readonly filter_keys: 5;
|
|
3134
|
+
readonly value_bytes: 65536;
|
|
3135
|
+
readonly list_items: 128;
|
|
3136
|
+
readonly choices: 128;
|
|
3137
|
+
readonly allowed_domains: 20;
|
|
3138
|
+
readonly regex_length: 200;
|
|
3139
|
+
readonly regex_value_length: 500;
|
|
3140
|
+
readonly single_line_text_length: 5000;
|
|
3141
|
+
readonly multi_line_text_length: 65000;
|
|
3142
|
+
readonly link_text_length: 255;
|
|
3143
|
+
readonly email_length: 254;
|
|
3144
|
+
readonly name_length: 255;
|
|
3145
|
+
readonly description_length: 5000;
|
|
3146
|
+
readonly mixed_reference_definitions_min: 2;
|
|
3147
|
+
readonly mixed_reference_definitions_max: 10;
|
|
3148
|
+
};
|
|
3149
|
+
type MetafieldIssueCode = "blank" | "required" | "unknown_key" | "duplicate" | "immutable" | "not_allowed" | "invalid_type" | "invalid_format" | "too_short" | "too_long" | "too_small" | "too_big" | "too_large" | "pattern_mismatch" | "not_a_choice" | "precision_exceeded" | "domain_not_allowed" | "invalid_unit" | "scale_mismatch" | "currency_mismatch" | "list_too_short" | "list_too_long" | "invalid_node" | "unsafe_url" | "invalid_validation" | "unsafe_regex";
|
|
3150
|
+
/** `path` is relative to the validated input: "", "[2]", "[2].amount", "fields[0].type". */
|
|
3151
|
+
interface MetafieldIssue {
|
|
3152
|
+
path: string;
|
|
3153
|
+
code: MetafieldIssueCode;
|
|
3154
|
+
message: string;
|
|
3155
|
+
}
|
|
3156
|
+
/** `errors` and `value` are optional-undefined on the other arm so both read cleanly without strictNullChecks. */
|
|
3157
|
+
type EngineResult<T> = {
|
|
3158
|
+
ok: true;
|
|
3159
|
+
value: T;
|
|
3160
|
+
errors?: undefined;
|
|
3161
|
+
} | {
|
|
3162
|
+
ok: false;
|
|
3163
|
+
errors: MetafieldIssue[];
|
|
3164
|
+
value?: undefined;
|
|
3165
|
+
};
|
|
3166
|
+
type FileKind = "image" | "video" | "document";
|
|
3167
|
+
interface MeasurementValue {
|
|
3168
|
+
value: string;
|
|
3169
|
+
unit: string;
|
|
3170
|
+
}
|
|
3171
|
+
interface LinkValue {
|
|
3172
|
+
url: string;
|
|
3173
|
+
text: string;
|
|
3174
|
+
}
|
|
3175
|
+
interface RatingValue {
|
|
3176
|
+
value: string;
|
|
3177
|
+
scale_min: string;
|
|
3178
|
+
scale_max: string;
|
|
3179
|
+
}
|
|
3180
|
+
interface MoneyValue {
|
|
3181
|
+
amount: string;
|
|
3182
|
+
currency_code: string;
|
|
3183
|
+
}
|
|
3184
|
+
/** integer: number; decimal: decimal string; date/date_time: canonical string; measurements: MeasurementValue. */
|
|
3185
|
+
type MetafieldBound = number | string | MeasurementValue;
|
|
3186
|
+
/** Canonical validations, as validateValidations returns them (spec §5.2). */
|
|
3187
|
+
interface MetafieldValidations {
|
|
3188
|
+
min_length?: number;
|
|
3189
|
+
max_length?: number;
|
|
3190
|
+
regex?: string;
|
|
3191
|
+
choices?: string[];
|
|
3192
|
+
min?: MetafieldBound;
|
|
3193
|
+
max?: MetafieldBound;
|
|
3194
|
+
max_precision?: number;
|
|
3195
|
+
allowed_domains?: string[];
|
|
3196
|
+
scale_min?: string;
|
|
3197
|
+
scale_max?: string;
|
|
3198
|
+
file_types?: FileKind[];
|
|
3199
|
+
metaobject_definition_id?: string;
|
|
3200
|
+
metaobject_definition_ids?: string[];
|
|
3201
|
+
list_min?: number;
|
|
3202
|
+
list_max?: number;
|
|
3203
|
+
}
|
|
3204
|
+
/** Store facts a value check needs. The engine never looks anything up. */
|
|
3205
|
+
interface MetafieldContext {
|
|
3206
|
+
currency_code: string;
|
|
3207
|
+
}
|
|
3208
|
+
declare const METAFIELD_KEY_PATTERN: RegExp;
|
|
3209
|
+
declare const METAOBJECT_TYPE_PATTERN: RegExp;
|
|
3210
|
+
declare const ENTRY_HANDLE_PATTERN: RegExp;
|
|
3211
|
+
/** "Đánh giá khách hàng" → "danh_gia_khach_hang". "" when nothing usable remains. */
|
|
3212
|
+
declare function toMetafieldKey(text: string): string;
|
|
3213
|
+
/** "Lan Anh – Hà Nội" → "lan-anh-ha-noi". "" when nothing usable remains. */
|
|
3214
|
+
declare function toEntryHandle(text: string): string;
|
|
3215
|
+
/** True for a well-formed entry handle that is not a reserved name. */
|
|
3216
|
+
declare function isValidEntryHandle(handle: string): boolean;
|
|
3217
|
+
declare function metafieldIdentifier(namespace: string, key: string): string;
|
|
3218
|
+
declare function parseMetafieldIdentifier(identifier: string): {
|
|
3219
|
+
namespace: string;
|
|
3220
|
+
key: string;
|
|
3221
|
+
} | null;
|
|
3222
|
+
/**
|
|
3223
|
+
* A canonical decimal string ("7.5", "-0.25", "0"), or null when the input is not a plain decimal.
|
|
3224
|
+
* Numbers JS prints in exponent form (1e-7, 1e21) are rejected; send them as decimal strings.
|
|
3225
|
+
*/
|
|
3226
|
+
declare function normalizeDecimal(input: unknown): string | null;
|
|
3227
|
+
/** Compares two canonical decimal strings exactly. */
|
|
3228
|
+
declare function compareDecimal(a: string, b: string): -1 | 0 | 1;
|
|
3229
|
+
/** "YYYY-MM-DD" when the input is a real calendar date, else null. */
|
|
3230
|
+
declare function normalizeDate(input: unknown): string | null;
|
|
3231
|
+
/** "YYYY-MM-DDTHH:mm:ssZ" in UTC, or null. Milliseconds are dropped. */
|
|
3232
|
+
declare function normalizeDateTime(input: unknown): string | null;
|
|
3233
|
+
interface RichTextText {
|
|
3234
|
+
type: "text";
|
|
3235
|
+
value: string;
|
|
3236
|
+
bold?: boolean;
|
|
3237
|
+
italic?: boolean;
|
|
3238
|
+
}
|
|
3239
|
+
interface RichTextLink {
|
|
3240
|
+
type: "link";
|
|
3241
|
+
url: string;
|
|
3242
|
+
title?: string;
|
|
3243
|
+
children: RichTextText[];
|
|
3244
|
+
}
|
|
3245
|
+
type RichTextInline = RichTextText | RichTextLink;
|
|
3246
|
+
interface RichTextParagraph {
|
|
3247
|
+
type: "paragraph";
|
|
3248
|
+
children: RichTextInline[];
|
|
3249
|
+
}
|
|
3250
|
+
interface RichTextHeading {
|
|
3251
|
+
type: "heading";
|
|
3252
|
+
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
3253
|
+
children: RichTextInline[];
|
|
3254
|
+
}
|
|
3255
|
+
interface RichTextListItem {
|
|
3256
|
+
type: "list-item";
|
|
3257
|
+
children: RichTextInline[];
|
|
3258
|
+
}
|
|
3259
|
+
interface RichTextList {
|
|
3260
|
+
type: "list";
|
|
3261
|
+
listType: "ordered" | "unordered";
|
|
3262
|
+
children: RichTextListItem[];
|
|
3263
|
+
}
|
|
3264
|
+
type RichTextBlock = RichTextParagraph | RichTextHeading | RichTextList;
|
|
3265
|
+
interface RichTextRoot {
|
|
3266
|
+
type: "root";
|
|
3267
|
+
children: RichTextBlock[];
|
|
3268
|
+
}
|
|
3269
|
+
type RichTextNode = RichTextRoot | RichTextBlock | RichTextListItem | RichTextInline;
|
|
3270
|
+
/** Validates a rich-text tree (spec §5.3). There is no HTML anywhere in it. */
|
|
3271
|
+
declare function validateRichText(input: unknown, path?: string): EngineResult<RichTextRoot>;
|
|
3272
|
+
/** Characters of text in the tree, links and list items included. */
|
|
3273
|
+
declare function richTextLength(root: RichTextRoot): number;
|
|
3274
|
+
/** Conversion factors to the first unit of each type (g, ml, mm). */
|
|
3275
|
+
declare const MEASUREMENT_UNITS: {
|
|
3276
|
+
readonly weight: {
|
|
3277
|
+
readonly g: 1;
|
|
3278
|
+
readonly kg: 1000;
|
|
3279
|
+
readonly oz: 28.349523125;
|
|
3280
|
+
readonly lb: 453.59237;
|
|
3281
|
+
};
|
|
3282
|
+
readonly volume: {
|
|
3283
|
+
readonly ml: 1;
|
|
3284
|
+
readonly cl: 10;
|
|
3285
|
+
readonly l: 1000;
|
|
3286
|
+
readonly m3: 1000000;
|
|
3287
|
+
readonly fl_oz: 29.5735295625;
|
|
3288
|
+
readonly pt: 473.176473;
|
|
3289
|
+
readonly qt: 946.352946;
|
|
3290
|
+
readonly gal: 3785.411784;
|
|
3291
|
+
};
|
|
3292
|
+
readonly dimension: {
|
|
3293
|
+
readonly mm: 1;
|
|
3294
|
+
readonly cm: 10;
|
|
3295
|
+
readonly m: 1000;
|
|
3296
|
+
readonly in: 25.4;
|
|
3297
|
+
readonly ft: 304.8;
|
|
3298
|
+
readonly yd: 914.4;
|
|
3299
|
+
};
|
|
3300
|
+
};
|
|
3301
|
+
type MeasurementType = keyof typeof MEASUREMENT_UNITS;
|
|
3302
|
+
/** The value in g, ml or mm, or null for an unknown unit. For bounds only: it uses floats. */
|
|
3303
|
+
declare function measurementInBaseUnit(measurement: MeasurementValue, type: MeasurementType): number | null;
|
|
3304
|
+
/** File kinds a media value may point at; null means any kind (or not a media type). */
|
|
3305
|
+
declare function allowedFileKinds(type: MetafieldType, validations: MetafieldValidations): readonly FileKind[] | null;
|
|
3306
|
+
/** A positive bigint id as a string, or null. */
|
|
3307
|
+
declare function normalizeId(input: unknown): string | null;
|
|
3308
|
+
/**
|
|
3309
|
+
* Values a caller without a type should treat as "clear this field": null,
|
|
3310
|
+
* undefined, "" and []. Use isBlankValueFor when the field's type is known.
|
|
3311
|
+
*/
|
|
3312
|
+
declare function isBlankValue(value: unknown): boolean;
|
|
3313
|
+
/**
|
|
3314
|
+
* Type-aware blank check: whitespace-only text is blank for text types, an
|
|
3315
|
+
* empty root is blank for rich_text, and neither is blank for json.
|
|
3316
|
+
*/
|
|
3317
|
+
declare function isBlankValueFor(type: MetafieldType, value: unknown): boolean;
|
|
3318
|
+
/**
|
|
3319
|
+
* Validates one value against its type and its definition's (already
|
|
3320
|
+
* validated) validations, returning the canonical value. Blank values fail
|
|
3321
|
+
* with "blank": callers decide whether blank means "delete" or "required".
|
|
3322
|
+
*/
|
|
3323
|
+
declare function validateMetafieldValue(type: MetafieldType, validations: MetafieldValidations, value: unknown, ctx: MetafieldContext, path?: string): EngineResult<unknown>;
|
|
3324
|
+
type MetafieldValidationKey = keyof MetafieldValidations;
|
|
3325
|
+
declare const VALIDATION_KEYS: Readonly<Record<MetafieldBaseType, readonly MetafieldValidationKey[]>>;
|
|
3326
|
+
/**
|
|
3327
|
+
* Restricts merchant regexes to a dialect whose work is bounded: no
|
|
3328
|
+
* backreferences or lookaround, nothing but "?" after a group, at most two
|
|
3329
|
+
* quantifiers (*, +, ?, {n,}, {n,m}; a lazy "?" is part of its quantifier,
|
|
3330
|
+
* exact {n} is free) and at most four alternatives. Deliberately conservative.
|
|
3331
|
+
*/
|
|
3332
|
+
declare function isSafeRegex(pattern: string): boolean;
|
|
3333
|
+
/**
|
|
3334
|
+
* Validates and canonicalises a definition's `validations` for its type
|
|
3335
|
+
* (spec §5.2). Unknown keys, unsafe regexes and contradictory bounds fail.
|
|
3336
|
+
*/
|
|
3337
|
+
declare function validateValidations(type: MetafieldType, input: unknown, path?: string): EngineResult<MetafieldValidations>;
|
|
3338
|
+
type CustomerAccess = "none" | "read" | "read_write";
|
|
3339
|
+
/** Customer, order and location data never reaches the public storefront (spec s.4.1). */
|
|
3340
|
+
declare function storefrontAccessAllowed(owner: MetafieldOwnerType): boolean;
|
|
3341
|
+
declare function allowedCustomerAccess(owner: MetafieldOwnerType): readonly CustomerAccess[];
|
|
3342
|
+
interface MetafieldDefinitionShape {
|
|
3343
|
+
owner_type: MetafieldOwnerType;
|
|
3344
|
+
namespace: string;
|
|
3345
|
+
key: string;
|
|
3346
|
+
name: string;
|
|
3347
|
+
description: string | null;
|
|
3348
|
+
type: MetafieldType;
|
|
3349
|
+
validations: MetafieldValidations;
|
|
3350
|
+
storefront_access: boolean;
|
|
3351
|
+
customer_access: CustomerAccess;
|
|
3352
|
+
}
|
|
3353
|
+
/** Validates a full metafield definition; the API merges a PATCH into the stored row first. */
|
|
3354
|
+
declare function validateMetafieldDefinition(input: unknown): EngineResult<MetafieldDefinitionShape>;
|
|
3355
|
+
interface MetaobjectFieldShape {
|
|
3356
|
+
key: string;
|
|
3357
|
+
name: string;
|
|
3358
|
+
description: string | null;
|
|
3359
|
+
type: MetafieldType;
|
|
3360
|
+
required: boolean;
|
|
3361
|
+
validations: MetafieldValidations;
|
|
3362
|
+
}
|
|
3363
|
+
/** Field types usable as filter keys (spec s.4.3). List types never are. */
|
|
3364
|
+
declare const FILTERABLE_TYPES: readonly MetafieldBaseType[];
|
|
3365
|
+
interface MetaobjectDefinitionShape {
|
|
3366
|
+
type: string;
|
|
3367
|
+
name: string;
|
|
3368
|
+
description: string | null;
|
|
3369
|
+
fields: MetaobjectFieldShape[];
|
|
3370
|
+
display_name_key: string | null;
|
|
3371
|
+
filter_keys: string[];
|
|
3372
|
+
has_status: boolean;
|
|
3373
|
+
storefront_access: boolean;
|
|
3374
|
+
customer_access: "none" | "read";
|
|
3375
|
+
}
|
|
3376
|
+
/** Validates a full metaobject definition; the API merges a PATCH into the stored row first. */
|
|
3377
|
+
declare function validateMetaobjectDefinition(input: unknown): EngineResult<MetaobjectDefinitionShape>;
|
|
3378
|
+
/** Validates an entry's field values against its definition; blank optional fields are omitted. */
|
|
3379
|
+
declare function validateMetaobjectEntry(fields: readonly MetaobjectFieldShape[], input: unknown, ctx: MetafieldContext): EngineResult<Record<string, unknown>>;
|
|
3380
|
+
/** The display-name field's text, else the handle (spec s.4.4). */
|
|
3381
|
+
declare function entryDisplayName(definition: Pick<MetaobjectDefinitionShape, "display_name_key">, fields: Record<string, unknown>, handle: string): string;
|
|
3382
|
+
/**
|
|
3383
|
+
* A field's type is fixed once saved (spec s.4.5). Reports removed keys so the
|
|
3384
|
+
* API can strip them from entries. Assumes `after` already passed
|
|
3385
|
+
* validateMetaobjectDefinition (unique keys).
|
|
3386
|
+
*/
|
|
3387
|
+
declare function checkMetaobjectFieldChanges(before: readonly MetaobjectFieldShape[], after: readonly MetaobjectFieldShape[]): EngineResult<{
|
|
3388
|
+
removed: string[];
|
|
3389
|
+
added: string[];
|
|
3390
|
+
}>;
|
|
3391
|
+
|
|
3392
|
+
/**
|
|
3393
|
+
* Metafields as the public and customer APIs return them (spec §6.4): only
|
|
3394
|
+
* definitions with storefront (or customer) access, keyed "namespace.key",
|
|
3395
|
+
* with references already resolved (spec §6.5).
|
|
3396
|
+
*/
|
|
3397
|
+
interface StorefrontMetafield<V = unknown> {
|
|
3398
|
+
type: MetafieldType;
|
|
3399
|
+
value: V;
|
|
3400
|
+
}
|
|
3401
|
+
type StorefrontMetafields = Record<string, StorefrontMetafield>;
|
|
3402
|
+
interface WithMetafields {
|
|
3403
|
+
metafields?: StorefrontMetafields;
|
|
3404
|
+
}
|
|
3405
|
+
/** One write in a customer PUT. `value: null` clears the metafield. */
|
|
3406
|
+
interface MetafieldWrite {
|
|
3407
|
+
namespace: string;
|
|
3408
|
+
key: string;
|
|
3409
|
+
value: unknown;
|
|
3410
|
+
}
|
|
3411
|
+
interface ResolvedImage {
|
|
3412
|
+
url: string;
|
|
3413
|
+
alt: string | null;
|
|
3414
|
+
width: number | null;
|
|
3415
|
+
height: number | null;
|
|
3416
|
+
}
|
|
3417
|
+
/** file, image and video values. */
|
|
3418
|
+
interface ResolvedAsset extends ResolvedImage {
|
|
3419
|
+
mime_type: string;
|
|
3420
|
+
}
|
|
3421
|
+
interface ResolvedProductRef {
|
|
3422
|
+
id: string;
|
|
3423
|
+
name: string;
|
|
3424
|
+
slug: string | null;
|
|
3425
|
+
image_url: string | null;
|
|
3426
|
+
min_price: number | null;
|
|
3427
|
+
max_price: number | null;
|
|
3428
|
+
available: boolean;
|
|
3429
|
+
}
|
|
3430
|
+
interface ResolvedVariantRef {
|
|
3431
|
+
id: string;
|
|
3432
|
+
product_id: string;
|
|
3433
|
+
product_slug: string | null;
|
|
3434
|
+
/** Option values joined with " / ", e.g. "Red / M". */
|
|
3435
|
+
title: string;
|
|
3436
|
+
price: number;
|
|
3437
|
+
image_url: string | null;
|
|
3438
|
+
available: boolean;
|
|
3439
|
+
}
|
|
3440
|
+
interface ResolvedCollectionRef {
|
|
3441
|
+
id: string;
|
|
3442
|
+
name: string;
|
|
3443
|
+
slug: string;
|
|
3444
|
+
image_url: string | null;
|
|
3445
|
+
}
|
|
3446
|
+
interface ResolvedPageRef {
|
|
3447
|
+
id: string;
|
|
3448
|
+
title: string;
|
|
3449
|
+
slug: string;
|
|
3450
|
+
}
|
|
3451
|
+
interface ResolvedBlogPostRef {
|
|
3452
|
+
id: string;
|
|
3453
|
+
title: string;
|
|
3454
|
+
slug: string;
|
|
3455
|
+
featured_image_url: string | null;
|
|
3456
|
+
published_at: string | null;
|
|
3457
|
+
}
|
|
3458
|
+
/** A metaobject reference beyond the resolution depth (2). */
|
|
3459
|
+
interface ResolvedMetaobjectStub {
|
|
3460
|
+
type: string;
|
|
3461
|
+
handle: string;
|
|
3462
|
+
}
|
|
3463
|
+
interface ResolvedMetaobjectRef extends ResolvedMetaobjectStub {
|
|
3464
|
+
display_name: string;
|
|
3465
|
+
fields: StorefrontMetafields;
|
|
3466
|
+
}
|
|
3467
|
+
interface StorefrontMetaobjectEntry extends ResolvedMetaobjectRef {
|
|
3468
|
+
updated_at: string;
|
|
3469
|
+
}
|
|
3470
|
+
|
|
3097
3471
|
type ResizeMode = "cover" | "contain" | "inside" | "outside";
|
|
3098
3472
|
type ImageFormat = "origin" | "avif" | "webp" | "png" | "jpeg";
|
|
3099
3473
|
interface ImageTransformOptions {
|
|
@@ -3205,6 +3579,7 @@ type ProductDetail = Product & {
|
|
|
3205
3579
|
}>;
|
|
3206
3580
|
promotions?: PromotionData[];
|
|
3207
3581
|
promotion_price?: number;
|
|
3582
|
+
metafields?: StorefrontMetafields;
|
|
3208
3583
|
})[];
|
|
3209
3584
|
} & {
|
|
3210
3585
|
categories: Category[];
|
|
@@ -3214,6 +3589,7 @@ type ProductDetail = Product & {
|
|
|
3214
3589
|
review_stats?: ProductReviewStats | null;
|
|
3215
3590
|
services?: ProductService[];
|
|
3216
3591
|
product_attributes?: AttributeLink[];
|
|
3592
|
+
metafields?: StorefrontMetafields;
|
|
3217
3593
|
} & WithSeoMetadata$3;
|
|
3218
3594
|
|
|
3219
3595
|
declare class ProductsApi {
|
|
@@ -3487,6 +3863,7 @@ interface Collection extends WithSeoMetadata$2 {
|
|
|
3487
3863
|
collection_sort: string | null;
|
|
3488
3864
|
created_at: string;
|
|
3489
3865
|
updated_at: string;
|
|
3866
|
+
metafields?: StorefrontMetafields;
|
|
3490
3867
|
}
|
|
3491
3868
|
interface CollectionQueryParams extends BaseQueryParams {
|
|
3492
3869
|
/** Fetch a specific set of collections — how collection_grid resolves its configured collection_ids. */
|
|
@@ -3701,7 +4078,7 @@ declare class OrdersApi {
|
|
|
3701
4078
|
* Full detail for one of the authenticated customer's orders. The API
|
|
3702
4079
|
* verifies ownership and returns 404 — not 403 — for someone else's order.
|
|
3703
4080
|
*/
|
|
3704
|
-
getCustomerOrder(storeRef: string, orderId: Id): Promise<OrderWithItems>;
|
|
4081
|
+
getCustomerOrder(storeRef: string, orderId: Id): Promise<OrderWithItems & WithMetafields>;
|
|
3705
4082
|
/**
|
|
3706
4083
|
* Customers may only cancel orders that are still pending, confirmed or
|
|
3707
4084
|
* processing; the API rejects anything else with ORDER_NOT_CANCELLABLE.
|
|
@@ -3716,7 +4093,7 @@ interface SeoMetadata$1 {
|
|
|
3716
4093
|
interface WithSeoMetadata$1 {
|
|
3717
4094
|
seo_metadata?: SeoMetadata$1 | null;
|
|
3718
4095
|
}
|
|
3719
|
-
type BlogPost = BlogPost$1 & WithSeoMetadata$1 & {
|
|
4096
|
+
type BlogPost = BlogPost$1 & WithSeoMetadata$1 & WithMetafields & {
|
|
3720
4097
|
product_ids?: number[];
|
|
3721
4098
|
};
|
|
3722
4099
|
interface BlogPostQueryParams extends BaseQueryParams {
|
|
@@ -3763,7 +4140,12 @@ declare class BlogApi {
|
|
|
3763
4140
|
interface PublishedStoreTheme {
|
|
3764
4141
|
id: string | null;
|
|
3765
4142
|
name: string;
|
|
3766
|
-
|
|
4143
|
+
/** `external`: the merchant's own site serves the storefront. */
|
|
4144
|
+
kind: "hosted" | "custom" | "external";
|
|
4145
|
+
/** Where the theme runs; absent from APIs older than external themes. */
|
|
4146
|
+
hosting?: "ecomweb" | "external";
|
|
4147
|
+
/** The external site's URL (https, no trailing slash); external themes only. */
|
|
4148
|
+
external_url?: string | null;
|
|
3767
4149
|
source_theme_id: string;
|
|
3768
4150
|
values: Record<string, unknown>;
|
|
3769
4151
|
}
|
|
@@ -3771,6 +4153,16 @@ type StoreConfigurationInfo = Store & {
|
|
|
3771
4153
|
config: StoreConfig;
|
|
3772
4154
|
settings: StoreSettings;
|
|
3773
4155
|
theme?: PublishedStoreTheme;
|
|
4156
|
+
/** Shop metafields with storefront access (spec §6.4). */
|
|
4157
|
+
metafields?: StorefrontMetafields;
|
|
4158
|
+
};
|
|
4159
|
+
/** `GET /public/stores/domain/:domain`: the store a host serves. */
|
|
4160
|
+
type StoreByDomainInfo = StoreConfigurationInfo & {
|
|
4161
|
+
/**
|
|
4162
|
+
* The live theme's URL when it is external (the shared storefront sends
|
|
4163
|
+
* shoppers there), else null. Absent from APIs older than external themes.
|
|
4164
|
+
*/
|
|
4165
|
+
storefront_url?: string | null;
|
|
3774
4166
|
};
|
|
3775
4167
|
|
|
3776
4168
|
declare class StoresApi {
|
|
@@ -3782,7 +4174,7 @@ declare class StoresApi {
|
|
|
3782
4174
|
includeEmbeddedScripts?: boolean;
|
|
3783
4175
|
}): Promise<StoreConfigurationInfo | null>;
|
|
3784
4176
|
getBySubdomain(subdomain: string): Promise<Store | null>;
|
|
3785
|
-
getByDomain(domain: string): Promise<
|
|
4177
|
+
getByDomain(domain: string): Promise<StoreByDomainInfo | null>;
|
|
3786
4178
|
}
|
|
3787
4179
|
|
|
3788
4180
|
declare class ThemesApi {
|
|
@@ -3792,6 +4184,36 @@ declare class ThemesApi {
|
|
|
3792
4184
|
getPreview(storeRef: string, token: string): Promise<PublishedStoreTheme | null>;
|
|
3793
4185
|
}
|
|
3794
4186
|
|
|
4187
|
+
interface MetaobjectListParams {
|
|
4188
|
+
/** Equality filters on the definition's filter keys (spec §6.4). */
|
|
4189
|
+
filter?: Record<string, string | number | boolean>;
|
|
4190
|
+
cursor?: string;
|
|
4191
|
+
/** At most 50. */
|
|
4192
|
+
limit?: number;
|
|
4193
|
+
/** Send the customer session, for definitions with customer access only. */
|
|
4194
|
+
as_customer?: boolean;
|
|
4195
|
+
}
|
|
4196
|
+
interface MetaobjectListResult {
|
|
4197
|
+
items: StorefrontMetaobjectEntry[];
|
|
4198
|
+
next_cursor: string | null;
|
|
4199
|
+
}
|
|
4200
|
+
|
|
4201
|
+
declare class MetaobjectsApi {
|
|
4202
|
+
private publicHttp;
|
|
4203
|
+
private authHttp;
|
|
4204
|
+
constructor(publicHttp: IHttpClient, authHttp: IHttpClient);
|
|
4205
|
+
/**
|
|
4206
|
+
* Active entries of a metaobject type. A type that is unknown or hidden
|
|
4207
|
+
* from this reader lists as empty: the API answers 404 for both, the same
|
|
4208
|
+
* as a missing type, so it never reveals which types exist.
|
|
4209
|
+
*/
|
|
4210
|
+
list(storeRef: string, type: string, params?: MetaobjectListParams): Promise<MetaobjectListResult>;
|
|
4211
|
+
/** One active entry by handle; null when it, or its type, is missing or hidden. */
|
|
4212
|
+
get(storeRef: string, type: string, handle: string, options?: {
|
|
4213
|
+
as_customer?: boolean;
|
|
4214
|
+
}): Promise<StorefrontMetaobjectEntry | null>;
|
|
4215
|
+
}
|
|
4216
|
+
|
|
3795
4217
|
declare const searchCatalogParamsSchema: z.ZodObject<{
|
|
3796
4218
|
q: z.ZodOptional<z.ZodString>;
|
|
3797
4219
|
collection: z.ZodString;
|
|
@@ -4371,6 +4793,13 @@ declare class CustomersApi {
|
|
|
4371
4793
|
private http;
|
|
4372
4794
|
constructor(http: IHttpClient);
|
|
4373
4795
|
upsertForAuth(storeRef: string, payload: UpsertCustomerForAuthPayload): Promise<ApiResponse<Customer>>;
|
|
4796
|
+
/** The signed-in customer's metafields with customer access (spec §6.6). */
|
|
4797
|
+
getMetafields(storeRef: string): Promise<StorefrontMetafields>;
|
|
4798
|
+
/**
|
|
4799
|
+
* Writes read_write metafields; `value: null` clears one. Throws
|
|
4800
|
+
* METAFIELD_VALUE_INVALID (details.errors[] by path) or METAFIELD_NOT_WRITABLE.
|
|
4801
|
+
*/
|
|
4802
|
+
updateMetafields(storeRef: string, values: MetafieldWrite[]): Promise<StorefrontMetafields>;
|
|
4374
4803
|
}
|
|
4375
4804
|
|
|
4376
4805
|
interface Address {
|
|
@@ -4428,7 +4857,7 @@ interface SeoMetadata {
|
|
|
4428
4857
|
interface WithSeoMetadata {
|
|
4429
4858
|
seo_metadata?: SeoMetadata | null;
|
|
4430
4859
|
}
|
|
4431
|
-
type ContentPage = ContentPage$1 & WithSeoMetadata;
|
|
4860
|
+
type ContentPage = ContentPage$1 & WithSeoMetadata & WithMetafields;
|
|
4432
4861
|
|
|
4433
4862
|
declare class ContentPagesApi {
|
|
4434
4863
|
private http;
|
|
@@ -4669,6 +5098,7 @@ declare function createEcomwebSdk(options: EcomwebSdkOptions): {
|
|
|
4669
5098
|
blog: BlogApi;
|
|
4670
5099
|
stores: StoresApi;
|
|
4671
5100
|
themes: ThemesApi;
|
|
5101
|
+
metaobjects: MetaobjectsApi;
|
|
4672
5102
|
search: SearchApi;
|
|
4673
5103
|
banners: BannersApi;
|
|
4674
5104
|
shipping: ShippingApi;
|
|
@@ -4684,4 +5114,4 @@ declare function createEcomwebSdk(options: EcomwebSdkOptions): {
|
|
|
4684
5114
|
};
|
|
4685
5115
|
type EcomwebSdk = ReturnType<typeof createEcomwebSdk>;
|
|
4686
5116
|
|
|
4687
|
-
export { ADJUSTABLE_STATES, ADMIN_ORDER_SOURCES, type AddToCartRequest, type Address, AddressesApi, type AdjustQuantitiesRequest, type AdjustableState, type AdminOrderSource, ApiClientError, type ApiError, type ApiResponse, type AppliedPromotion, type AttributeLink, AuthApi, type AuthErrorCode, type AuthIdentity, type AuthResult, type AuthTokens, type AutocompleteParams, type BankAccount, type Banner, type BannerQueryParams, BannersApi, type BaseDeleteOptions, type BaseDeleteResult, type BaseQueryParams, type BatchOrderReviewInvitationsResult, BlogApi, type BlogCategory, type BlogCategoryQueryParams, type BlogComment, type BlogCommentWithReplies, type BlogPost, type BlogPostCategory, type BlogPostQueryParams, type BlogPostStatus, type BlogPostTag, type BlogPostWithRelations, type BlogSearchParams, type BlogSearchResponse, type BlogSettings, type BlogTag, type BlogTagQueryParams, COLLECTION_RULE_MATRIX, CONDITION_TYPE_LABELS, CartApi, type CartApiItem, type CartApiResponse, CategoriesApi, type Category, type CategoryQueryParams, type CategorySearchResponse, type CategoryTree, type CategoryWithChildren, type ChangeEmailPayload, type ChangePasswordPayload, type ChangedResult, type Collection, type CollectionQueryParams, type CollectionRule, type CollectionRuleSet, type CollectionRuleSetCriteria, type CollectionSearchCriteria, CollectionsApi, ConditionType, ConditionTypeSchema, type ConditionTypeType, type ContentPage, ContentPagesApi, type CreateAddressDto, type CreateBanner, type CreateBlogCategory, type CreateBlogComment, type CreateBlogPost, type CreateBlogSettings, type CreateBlogTag, type CreateCategory, type CreateContentPage, type CreateEmbeddedScript, type CreateOrder, type CreateOrderItem, type CreateOrderItemRequest, type CreateOrderRequest, type CreateProduct, type CreateProductReview, type CreateProductReviewReply, type CreateProductVariant, type CreatePromotion, CreatePromotionSchema, type CreateStore, type CreateStoreConfig, type CreateStoreSettings, type CreateVariantOption, type CreateVariantOptionValue, type CurrentIdentity, type Customer, type CustomerOrderFilter, type CustomerOrderSummary, CustomersApi, DEFAULT_BUCKET, DISCOUNT_METHOD_LABELS, type DeleteApiFunction, type DeletedAt, DiscountMethod, DiscountMethodSchema, type DiscountMethodType, EMAIL_COLOR_PATTERN, EMAIL_PALETTE_DEFAULTS, type EcomwebSdk, type EcomwebSdkOptions, type EmbeddedScript, type EmbeddedScriptPlacement, type FulfillmentStatus, type GoogleAuthUrl, type GuestOrderLookupParams, type GuestOrderLookupResult, type IHttpClient, INVENTORY_ADJUSTMENT_REASONS, INVENTORY_ERROR_CODES, INVENTORY_POLICIES, INVENTORY_STATES, INVENTORY_STATUS_LABELS, type Id, type ImageFormat, type ImageTransformOptions, type InitiatePaymentResult, type InsufficientInventoryItem, type IntegrationStatus, type InventoryActor, type InventoryAdjustmentReason, type InventoryErrorCode, type InventoryHistoryEntry, type InventoryImportResponse, type InventoryLevelRow, type InventoryLocation, type InventoryPolicy, type InventoryQuantities, type InventoryState, InventoryStatus, KNOWN_PAYMENT_METHODS, LEGACY_STATUS_MIGRATION_MAP, LEVEL_PROVINCE, LEVEL_WARD, type LegacyOrderStatus, type LegacyProductStatus, type LocationArea, type LocationAreaQuery, type LocationAreasResponse, type LoginPayload, MAX_RULES_PER_SET, MAX_RULE_VALUE_ENTRIES, MERCHANT_ADJUSTMENT_REASONS, MemoryTokenStorage, MenusApi, type MerchantAdjustmentReason, type MessageOutboxStatus, type MoveQuantitiesRequest, type MutationApiFunction, OBJECT_PREFIX, ORDER_ACTOR_TYPES, ORDER_EVENT_TYPES, ORDER_SOURCES, type OptionalTimestamp, type Order, type OrderActorType, type OrderCommentMutationResult, type OrderCreatedBy, type OrderEventType, type OrderItem, type PaymentMethod$1 as OrderPaymentMethod, type OrderReviewInvitationSummary, type OrderSource, type OrderStatus, type OrderTimelineActor, type OrderTimelineComment, type OrderTimelineCommentAuthor, type OrderTimelineEntry, type OrderTimelineEvent, type OrderTimelineResponse, type OrderWithItems, OrdersApi, PAGINATION_DEFAULTS, PRODUCT_STATUS_LABELS, PROMOTION_MODE_COLORS, PROMOTION_MODE_LABELS, PROMOTION_STATUS_COLORS, PROMOTION_STATUS_LABELS, PROMOTION_TYPE_COLORS, PROMOTION_TYPE_LABELS, type PaginatedApiFunction, type PaginatedPromotionsResponse, PaginatedPromotionsResponseSchema, type PaginatedResponse, type PaginatedReviewsResponse, type PaginationMeta, type PasswordPolicy, type PaymentCredentialStatus, type PaymentMethod$1 as PaymentMethod, PaymentMethodsApi, type PaymentStateResult, type PaymentStatus, PaymentsApi, type Product, type ProductDetail, type ProductImage, type ProductQueryParams, type ProductReview, type ProductReviewFilters, type ProductReviewReply, type ProductReviewReplyFilters, type ProductReviewStats, type ProductReviewWithReplies, type ProductSearchParams, type ProductSearchResponse, type ProductService, ProductStatus, type ProductVariant, type ProductVariantCombination, type ProductVariantCombinationEntry, type ProductVariantWithCombinations, type ProductVideo, type ProductWithReviewStats, type ProductWithVariants, ProductsApi, type Promotion, type PromotionData, PromotionMode, PromotionModeSchema, type PromotionModeType, type PromotionQueryParams, PromotionQueryParamsSchema, PromotionSchema, type PromotionStatistics, PromotionStatisticsSchema, PromotionStatus, PromotionStatusSchema, type PromotionStatusType, type PromotionSuggestion, type PromotionSuggestionsResponse, PromotionType, PromotionTypeSchema, type PromotionTypeType, type PromotionWithDiscount, PromotionWithDiscountSchema, PromotionsApi, type PublicAuthConfig, type PublishedStoreTheme, type QuantitiesResponse, RENDER_PREFIX, RULE_FIELDS, RedirectsApi, type RegisterPayload, type RequestOptions, type ResetPasswordPayload, type ResetResult, type ResizeMode, type ReviewInvitationPublicData, type ReviewStatus, ReviewsApi, type RuleField, type RuleFieldSpec, type RuleOperator, type RuleOperatorSpec, type RuleValueKind, SHIPPING_CONDITION_TYPES, SHIPPING_DELIVERY_TYPES, SHIPPING_RATE_TYPES, SearchApi, type SearchCategory, type SearchProduct, type SentResult, type SeoMetadata$3 as SeoMetadata, type ServerComputedOrderAmounts, type SetQuantitiesRequest, type SetQuantitiesResponse, ShippingApi, type ShippingCalculationRequest, type ShippingConditionType, type ShippingDeliveryType, type ShippingOption, type ShippingRate, type ShippingRateType, type ShippingStatus, type ShippingZone, type SingleEntityApiFunction, type StaleQuantity, type Store, type StoreConfig, type StoreConfigurationInfo, type StoreEmailBrandingSettings, type StoreMenu, type StoreMenuItem, type PaymentMethod as StorePaymentMethod, type StoreSettings, type StoreStatus, type StoreWithRelations, StoresApi, type SubmitReviewInvitationPayload, THEME_HEX_COLOR, type ThemeDisplayItem, type ThemeSchema, type ThemeSchemaGroup, type ThemeSchemaItem, type ThemeSetting, type ThemeSettingType, type ThemeSettingsOf, type ThemeValue, type ThemeValueError, type ThemeValues, type ThemeVisibleIf, ThemesApi, type Timestamp, type TocItem, type TokenStorage, UNAVAILABLE_STATES, type UnavailableState, type UpdateAddressDto, type UpdateBanner, type UpdateBannerPosition, type UpdateBlogCategory, type UpdateBlogComment, type UpdateBlogPost, type UpdateBlogSettings, type UpdateBlogTag, type UpdateCartItemRequest, type UpdateCategory, type UpdateContentPage, type UpdateEmbeddedScript, type UpdateOrder, type UpdateOrderItem, type UpdateProduct, type UpdateProductReview, type UpdateProductReviewReply, type UpdateProductVariant, type UpdatePromotion, UpdatePromotionSchema, type UpdateStore, type UpdateStoreConfig, type UpdateStoreSettings, type UpdateVariantOption, type UpdateVariantOptionValue, type UpsertCustomerForAuthPayload, type UrlRedirect, type ValidatePromotionCodeRequest, type ValidatePromotionCodeResponse, type VariantOption, type VariantOptionValue, type VariantStatus, type VerifiedResult, type VerifyOtpPayload, type WithSeoMetadata$3 as WithSeoMetadata, allowedValuesFor, appliedPromotionSchema, assetBaseUrl, attributeLinkSchema, attributeLinkValueSchema, bannerSchema, baseDeleteOptionsSchema, baseDeleteResultSchema, baseQueryParamsSchema, blogCategorySchema, blogCommentSchema, blogCommentWithRepliesSchema, blogPostCategorySchema, blogPostSchema, blogPostStatusSchema, blogPostTagSchema, blogPostWithRelationsSchema, blogSettingsSchema, blogTagSchema, buildTransformQuery, categorySchema, categoryTreeSchema, categoryWithChildrenSchema, colorSchema, contentPageSchema, createAuthAwareHttpClient, createBannerSchema, createBlogCategorySchema, createBlogCommentSchema, createBlogPostSchema, createBlogSettingsSchema, createBlogTagSchema, createCategorySchema, createContentPageSchema, createEcomwebSdk, createEmbeddedScriptSchema, createOrderItemSchema, createOrderSchema, createProductReviewReplySchema, createProductReviewSchema, createProductSchema, createProductVariantSchema, createStoreConfigSchema, createStoreSchema, createStoreSettingsSchema, createVariantOptionSchema, createVariantOptionValueSchema, customerOrderSummarySchema, decimalSchema, deletedAtSchema, dimensionsSchema, emailBrandingSchema, emailBrandingShape, emailSchema, embeddedScriptPlacementSchema, embeddedScriptSchema, ensureSuccess, fromObjectPublicUrlToRender, fulfillmentStatusSchema, idSchema, integrationStatusSchema, inventoryStatusSchema, isEditableStatus, isPublishableStatus, isRuleField, isSettingVisible, isUnpublishedStatus, jsonSchema, legacyOrderStatusSchema, legacyProductStatusSchema, legalLinksSchema, messageOutboxStatusSchema, moneySchema, onHand, operatorsForField, optionalTimestampSchema, optionalUrlSchema, orderItemSchema, orderSchema, orderStatusSchema, orderWithItemsSchema, paginatedResponseSchema, paginationMetaSchema, paginationSchema, parseStorageUrl, parseThemeSchema, paymentMethodSchema, paymentStatusSchema, phoneSchema, positionOrderSchema, productReviewFiltersSchema, productReviewReplyFiltersSchema, productReviewReplySchema, productReviewSchema, productReviewStatsSchema, productReviewWithRepliesSchema, productSchema, productStatusSchema, productVariantCombinationEntrySchema, productVariantCombinationSchema, productVariantSchema, productVariantWithCombinationsSchema, productWithReviewStatsSchema, productWithVariantsAndReviewStatsSchema, productWithVariantsSchema, resolveAssetUrl, resolveThemeSettings, reviewStatusSchema, rewriteSupabaseUrl, safeParseBaseQueryParams, safeParsePaginationMeta, shippingStatusSchema, slugSchema, sortOrderSchema, storeConfigSchema, storeIdSchema, storeSchema, storeSettingsSchema, storeStatusSchema, storeWithRelationsSchema, strictUrlSchema, themeDefaults, themeSchemaSchema, themeSettings, timestampSchema, toObjectUrl, toRenderUrl, tocItemSchema, transformationsEnabled, unavailable, unwrap, unwrapOrNull, updateBannerPositionSchema, updateBannerSchema, updateBlogCategorySchema, updateBlogCommentSchema, updateBlogPostSchema, updateBlogSettingsSchema, updateBlogTagSchema, updateCategorySchema, updateContentPageSchema, updateEmbeddedScriptSchema, updateOrderItemSchema, updateOrderSchema, updateProductReviewReplySchema, updateProductReviewSchema, updateProductSchema, updateProductVariantSchema, updateStoreConfigSchema, updateStoreSchema, updateStoreSettingsSchema, updateVariantOptionSchema, updateVariantOptionValueSchema, urlSchema, uuidSchema, validatePaginationMeta, validateThemeValues, valueKindFor, variantOptionSchema, variantOptionValueSchema, variantStatusSchema };
|
|
5117
|
+
export { ADJUSTABLE_STATES, ADMIN_ORDER_SOURCES, type AddToCartRequest, type Address, AddressesApi, type AdjustQuantitiesRequest, type AdjustableState, type AdminOrderSource, ApiClientError, type ApiError, type ApiResponse, type AppliedPromotion, type AttributeLink, AuthApi, type AuthErrorCode, type AuthIdentity, type AuthResult, type AuthTokens, type AutocompleteParams, type BankAccount, type Banner, type BannerQueryParams, BannersApi, type BaseDeleteOptions, type BaseDeleteResult, type BaseQueryParams, type BatchOrderReviewInvitationsResult, BlogApi, type BlogCategory, type BlogCategoryQueryParams, type BlogComment, type BlogCommentWithReplies, type BlogPost, type BlogPostCategory, type BlogPostQueryParams, type BlogPostStatus, type BlogPostTag, type BlogPostWithRelations, type BlogSearchParams, type BlogSearchResponse, type BlogSettings, type BlogTag, type BlogTagQueryParams, COLLECTION_RULE_MATRIX, CONDITION_TYPE_LABELS, CartApi, type CartApiItem, type CartApiResponse, CategoriesApi, type Category, type CategoryQueryParams, type CategorySearchResponse, type CategoryTree, type CategoryWithChildren, type ChangeEmailPayload, type ChangePasswordPayload, type ChangedResult, type Collection, type CollectionQueryParams, type CollectionRule, type CollectionRuleSet, type CollectionRuleSetCriteria, type CollectionSearchCriteria, CollectionsApi, ConditionType, ConditionTypeSchema, type ConditionTypeType, type ContentPage, ContentPagesApi, type CreateAddressDto, type CreateBanner, type CreateBlogCategory, type CreateBlogComment, type CreateBlogPost, type CreateBlogSettings, type CreateBlogTag, type CreateCategory, type CreateContentPage, type CreateEmbeddedScript, type CreateOrder, type CreateOrderItem, type CreateOrderItemRequest, type CreateOrderRequest, type CreateProduct, type CreateProductReview, type CreateProductReviewReply, type CreateProductVariant, type CreatePromotion, CreatePromotionSchema, type CreateStore, type CreateStoreConfig, type CreateStoreSettings, type CreateVariantOption, type CreateVariantOptionValue, type CurrentIdentity, type Customer, type CustomerAccess, type CustomerOrderFilter, type CustomerOrderSummary, CustomersApi, DEFAULT_BUCKET, DISCOUNT_METHOD_LABELS, type DeleteApiFunction, type DeletedAt, DiscountMethod, DiscountMethodSchema, type DiscountMethodType, EMAIL_COLOR_PATTERN, EMAIL_PALETTE_DEFAULTS, ENTRY_HANDLE_PATTERN, type EcomwebSdk, type EcomwebSdkOptions, type EmbeddedScript, type EmbeddedScriptPlacement, type EngineResult, FILTERABLE_TYPES, type FileKind, type FulfillmentStatus, type GoogleAuthUrl, type GuestOrderLookupParams, type GuestOrderLookupResult, type IHttpClient, INVENTORY_ADJUSTMENT_REASONS, INVENTORY_ERROR_CODES, INVENTORY_POLICIES, INVENTORY_STATES, INVENTORY_STATUS_LABELS, type Id, type ImageFormat, type ImageTransformOptions, type InitiatePaymentResult, type InsufficientInventoryItem, type IntegrationStatus, type InventoryActor, type InventoryAdjustmentReason, type InventoryErrorCode, type InventoryHistoryEntry, type InventoryImportResponse, type InventoryLevelRow, type InventoryLocation, type InventoryPolicy, type InventoryQuantities, type InventoryState, InventoryStatus, KNOWN_PAYMENT_METHODS, LEGACY_STATUS_MIGRATION_MAP, LEVEL_PROVINCE, LEVEL_WARD, type LegacyOrderStatus, type LegacyProductStatus, type LinkValue, type LocationArea, type LocationAreaQuery, type LocationAreasResponse, type LoginPayload, MAX_RULES_PER_SET, MAX_RULE_VALUE_ENTRIES, MEASUREMENT_UNITS, MEDIA_TYPES, MERCHANT_ADJUSTMENT_REASONS, METAFIELD_BASE_TYPES, METAFIELD_KEY_PATTERN, METAFIELD_LIMITS, METAFIELD_OWNER_TYPES, METAFIELD_TYPE_GROUPS, METAOBJECT_REFERENCE_TYPES, METAOBJECT_TYPE_PATTERN, type MeasurementType, type MeasurementValue, MemoryTokenStorage, MenusApi, type MerchantAdjustmentReason, type MessageOutboxStatus, type MetafieldBaseType, type MetafieldBound, type MetafieldContext, type MetafieldDefinitionShape, type MetafieldIssue, type MetafieldIssueCode, type MetafieldListType, type MetafieldOwnerType, type MetafieldType, type MetafieldTypeGroup, type MetafieldValidationKey, type MetafieldValidations, type MetafieldWrite, type MetaobjectDefinitionShape, type MetaobjectFieldShape, type MetaobjectListParams, type MetaobjectListResult, MetaobjectsApi, type MoneyValue, type MoveQuantitiesRequest, type MutationApiFunction, OBJECT_PREFIX, ORDER_ACTOR_TYPES, ORDER_EVENT_TYPES, ORDER_SOURCES, type OptionalTimestamp, type Order, type OrderActorType, type OrderCommentMutationResult, type OrderCreatedBy, type OrderEventType, type OrderItem, type PaymentMethod$1 as OrderPaymentMethod, type OrderReviewInvitationSummary, type OrderSource, type OrderStatus, type OrderTimelineActor, type OrderTimelineComment, type OrderTimelineCommentAuthor, type OrderTimelineEntry, type OrderTimelineEvent, type OrderTimelineResponse, type OrderWithItems, OrdersApi, PAGINATION_DEFAULTS, PRIVATE_REFERENCE_TYPES, PRODUCT_STATUS_LABELS, PROMOTION_MODE_COLORS, PROMOTION_MODE_LABELS, PROMOTION_STATUS_COLORS, PROMOTION_STATUS_LABELS, PROMOTION_TYPE_COLORS, PROMOTION_TYPE_LABELS, type PaginatedApiFunction, type PaginatedPromotionsResponse, PaginatedPromotionsResponseSchema, type PaginatedResponse, type PaginatedReviewsResponse, type PaginationMeta, type PasswordPolicy, type PaymentCredentialStatus, type PaymentMethod$1 as PaymentMethod, PaymentMethodsApi, type PaymentStateResult, type PaymentStatus, PaymentsApi, type Product, type ProductDetail, type ProductImage, type ProductQueryParams, type ProductReview, type ProductReviewFilters, type ProductReviewReply, type ProductReviewReplyFilters, type ProductReviewStats, type ProductReviewWithReplies, type ProductSearchParams, type ProductSearchResponse, type ProductService, ProductStatus, type ProductVariant, type ProductVariantCombination, type ProductVariantCombinationEntry, type ProductVariantWithCombinations, type ProductVideo, type ProductWithReviewStats, type ProductWithVariants, ProductsApi, type Promotion, type PromotionData, PromotionMode, PromotionModeSchema, type PromotionModeType, type PromotionQueryParams, PromotionQueryParamsSchema, PromotionSchema, type PromotionStatistics, PromotionStatisticsSchema, PromotionStatus, PromotionStatusSchema, type PromotionStatusType, type PromotionSuggestion, type PromotionSuggestionsResponse, PromotionType, PromotionTypeSchema, type PromotionTypeType, type PromotionWithDiscount, PromotionWithDiscountSchema, PromotionsApi, type PublicAuthConfig, type PublishedStoreTheme, type QuantitiesResponse, RENDER_PREFIX, RESOURCE_REFERENCE_TYPES, RULE_FIELDS, type RatingValue, RedirectsApi, type RegisterPayload, type RequestOptions, type ResetPasswordPayload, type ResetResult, type ResizeMode, type ResolvedAsset, type ResolvedBlogPostRef, type ResolvedCollectionRef, type ResolvedImage, type ResolvedMetaobjectRef, type ResolvedMetaobjectStub, type ResolvedPageRef, type ResolvedProductRef, type ResolvedVariantRef, type ReviewInvitationPublicData, type ReviewStatus, ReviewsApi, type RichTextBlock, type RichTextHeading, type RichTextInline, type RichTextLink, type RichTextList, type RichTextListItem, type RichTextNode, type RichTextParagraph, type RichTextRoot, type RichTextText, type RuleField, type RuleFieldSpec, type RuleOperator, type RuleOperatorSpec, type RuleValueKind, SHIPPING_CONDITION_TYPES, SHIPPING_DELIVERY_TYPES, SHIPPING_RATE_TYPES, SearchApi, type SearchCategory, type SearchProduct, type SentResult, type SeoMetadata$3 as SeoMetadata, type ServerComputedOrderAmounts, type SetQuantitiesRequest, type SetQuantitiesResponse, ShippingApi, type ShippingCalculationRequest, type ShippingConditionType, type ShippingDeliveryType, type ShippingOption, type ShippingRate, type ShippingRateType, type ShippingStatus, type ShippingZone, type SingleEntityApiFunction, type StaleQuantity, type Store, type StoreByDomainInfo, type StoreConfig, type StoreConfigurationInfo, type StoreEmailBrandingSettings, type StoreMenu, type StoreMenuItem, type PaymentMethod as StorePaymentMethod, type StoreSettings, type StoreStatus, type StoreWithRelations, type StorefrontMetafield, type StorefrontMetafields, type StorefrontMetaobjectEntry, StoresApi, type SubmitReviewInvitationPayload, THEME_HEX_COLOR, type ThemeDisplayItem, type ThemeSchema, type ThemeSchemaGroup, type ThemeSchemaItem, type ThemeSetting, type ThemeSettingType, type ThemeSettingsOf, type ThemeValue, type ThemeValueError, type ThemeValues, type ThemeVisibleIf, ThemesApi, type Timestamp, type TocItem, type TokenStorage, UNAVAILABLE_STATES, type UnavailableState, type UpdateAddressDto, type UpdateBanner, type UpdateBannerPosition, type UpdateBlogCategory, type UpdateBlogComment, type UpdateBlogPost, type UpdateBlogSettings, type UpdateBlogTag, type UpdateCartItemRequest, type UpdateCategory, type UpdateContentPage, type UpdateEmbeddedScript, type UpdateOrder, type UpdateOrderItem, type UpdateProduct, type UpdateProductReview, type UpdateProductReviewReply, type UpdateProductVariant, type UpdatePromotion, UpdatePromotionSchema, type UpdateStore, type UpdateStoreConfig, type UpdateStoreSettings, type UpdateVariantOption, type UpdateVariantOptionValue, type UpsertCustomerForAuthPayload, type UrlRedirect, VALIDATION_KEYS, type ValidatePromotionCodeRequest, type ValidatePromotionCodeResponse, type VariantOption, type VariantOptionValue, type VariantStatus, type VerifiedResult, type VerifyOtpPayload, type WithMetafields, type WithSeoMetadata$3 as WithSeoMetadata, allowedCustomerAccess, allowedFileKinds, allowedValuesFor, appliedPromotionSchema, assetBaseUrl, attributeLinkSchema, attributeLinkValueSchema, bannerSchema, baseDeleteOptionsSchema, baseDeleteResultSchema, baseQueryParamsSchema, baseTypeOf, blogCategorySchema, blogCommentSchema, blogCommentWithRepliesSchema, blogPostCategorySchema, blogPostSchema, blogPostStatusSchema, blogPostTagSchema, blogPostWithRelationsSchema, blogSettingsSchema, blogTagSchema, buildTransformQuery, categorySchema, categoryTreeSchema, categoryWithChildrenSchema, checkMetaobjectFieldChanges, colorSchema, compareDecimal, contentPageSchema, createAuthAwareHttpClient, createBannerSchema, createBlogCategorySchema, createBlogCommentSchema, createBlogPostSchema, createBlogSettingsSchema, createBlogTagSchema, createCategorySchema, createContentPageSchema, createEcomwebSdk, createEmbeddedScriptSchema, createOrderItemSchema, createOrderSchema, createProductReviewReplySchema, createProductReviewSchema, createProductSchema, createProductVariantSchema, createStoreConfigSchema, createStoreSchema, createStoreSettingsSchema, createVariantOptionSchema, createVariantOptionValueSchema, customerOrderSummarySchema, decimalSchema, deletedAtSchema, dimensionsSchema, emailBrandingSchema, emailBrandingShape, emailSchema, embeddedScriptPlacementSchema, embeddedScriptSchema, ensureSuccess, entryDisplayName, fromObjectPublicUrlToRender, fulfillmentStatusSchema, idSchema, integrationStatusSchema, inventoryStatusSchema, isBlankValue, isBlankValueFor, isEditableStatus, isListType, isMetafieldType, isPublishableStatus, isRuleField, isSafeRegex, isSettingVisible, isUnpublishedStatus, isValidEntryHandle, jsonSchema, legacyOrderStatusSchema, legacyProductStatusSchema, legalLinksSchema, measurementInBaseUnit, messageOutboxStatusSchema, metafieldIdentifier, moneySchema, normalizeDate, normalizeDateTime, normalizeDecimal, normalizeId, onHand, operatorsForField, optionalTimestampSchema, optionalUrlSchema, orderItemSchema, orderSchema, orderStatusSchema, orderWithItemsSchema, paginatedResponseSchema, paginationMetaSchema, paginationSchema, parseMetafieldIdentifier, parseStorageUrl, parseThemeSchema, paymentMethodSchema, paymentStatusSchema, phoneSchema, positionOrderSchema, productReviewFiltersSchema, productReviewReplyFiltersSchema, productReviewReplySchema, productReviewSchema, productReviewStatsSchema, productReviewWithRepliesSchema, productSchema, productStatusSchema, productVariantCombinationEntrySchema, productVariantCombinationSchema, productVariantSchema, productVariantWithCombinationsSchema, productWithReviewStatsSchema, productWithVariantsAndReviewStatsSchema, productWithVariantsSchema, resolveAssetUrl, resolveThemeSettings, reviewStatusSchema, rewriteSupabaseUrl, richTextLength, safeParseBaseQueryParams, safeParsePaginationMeta, shippingStatusSchema, slugSchema, sortOrderSchema, storeConfigSchema, storeIdSchema, storeSchema, storeSettingsSchema, storeStatusSchema, storeWithRelationsSchema, storefrontAccessAllowed, strictUrlSchema, themeDefaults, themeSchemaSchema, themeSettings, timestampSchema, toEntryHandle, toMetafieldKey, toObjectUrl, toRenderUrl, tocItemSchema, transformationsEnabled, unavailable, unwrap, unwrapOrNull, updateBannerPositionSchema, updateBannerSchema, updateBlogCategorySchema, updateBlogCommentSchema, updateBlogPostSchema, updateBlogSettingsSchema, updateBlogTagSchema, updateCategorySchema, updateContentPageSchema, updateEmbeddedScriptSchema, updateOrderItemSchema, updateOrderSchema, updateProductReviewReplySchema, updateProductReviewSchema, updateProductSchema, updateProductVariantSchema, updateStoreConfigSchema, updateStoreSchema, updateStoreSettingsSchema, updateVariantOptionSchema, updateVariantOptionValueSchema, urlSchema, uuidSchema, validateMetafieldDefinition, validateMetafieldValue, validateMetaobjectDefinition, validateMetaobjectEntry, validatePaginationMeta, validateRichText, validateThemeValues, validateValidations, valueKindFor, variantOptionSchema, variantOptionValueSchema, variantStatusSchema };
|