@aimee.shop/sdk 0.25.3 → 0.27.0-dev.272
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/generated/core-api.d.ts +163 -3
- package/dist/generated/core-api.d.ts.map +1 -1
- package/dist/services/core/customers.client.d.ts +16 -0
- package/dist/services/core/customers.client.d.ts.map +1 -1
- package/dist/services/core/customers.client.js +16 -0
- package/dist/services/core/customers.client.js.map +1 -1
- package/package.json +1 -1
|
@@ -7057,6 +7057,46 @@ export interface paths {
|
|
|
7057
7057
|
patch?: never;
|
|
7058
7058
|
trace?: never;
|
|
7059
7059
|
};
|
|
7060
|
+
'/v1/customers/import/dry-run': {
|
|
7061
|
+
parameters: {
|
|
7062
|
+
query?: never;
|
|
7063
|
+
header?: never;
|
|
7064
|
+
path?: never;
|
|
7065
|
+
cookie?: never;
|
|
7066
|
+
};
|
|
7067
|
+
get?: never;
|
|
7068
|
+
put?: never;
|
|
7069
|
+
/**
|
|
7070
|
+
* Preview a customer CSV import without changes
|
|
7071
|
+
* @description Columns: external_id, email (both required), first_name, last_name, phone, accepts_marketing, marketing_consent_source (required when accepts_marketing is true), marketing_consent_at, tax_exempt, tags (semicolon-separated), created_at, default_shipping_* and default_billing_* (address1, address2, city, state, zip, country). Customers match on external_id, then email. No passwords or payment data; no emails are sent.
|
|
7072
|
+
*/
|
|
7073
|
+
post: operations['CustomerImportController_dryRun'];
|
|
7074
|
+
delete?: never;
|
|
7075
|
+
options?: never;
|
|
7076
|
+
head?: never;
|
|
7077
|
+
patch?: never;
|
|
7078
|
+
trace?: never;
|
|
7079
|
+
};
|
|
7080
|
+
'/v1/customers/import/commit': {
|
|
7081
|
+
parameters: {
|
|
7082
|
+
query?: never;
|
|
7083
|
+
header?: never;
|
|
7084
|
+
path?: never;
|
|
7085
|
+
cookie?: never;
|
|
7086
|
+
};
|
|
7087
|
+
get?: never;
|
|
7088
|
+
put?: never;
|
|
7089
|
+
/**
|
|
7090
|
+
* Import customers from CSV
|
|
7091
|
+
* @description Creates new customers and fills blank fields on matched ones. Safe to re-send: unchanged rows report "unchanged". Each row reports external id, Aimee customer id and status; one bad row does not stop the others.
|
|
7092
|
+
*/
|
|
7093
|
+
post: operations['CustomerImportController_commit'];
|
|
7094
|
+
delete?: never;
|
|
7095
|
+
options?: never;
|
|
7096
|
+
head?: never;
|
|
7097
|
+
patch?: never;
|
|
7098
|
+
trace?: never;
|
|
7099
|
+
};
|
|
7060
7100
|
'/v1/discounts': {
|
|
7061
7101
|
parameters: {
|
|
7062
7102
|
query?: never;
|
|
@@ -18369,7 +18409,7 @@ export interface components {
|
|
|
18369
18409
|
* "cms"
|
|
18370
18410
|
* ]
|
|
18371
18411
|
*/
|
|
18372
|
-
sections: ('catalog' | 'cms' | 'settings')[];
|
|
18412
|
+
sections: ('catalog' | 'cms' | 'settings' | 'shipping')[];
|
|
18373
18413
|
};
|
|
18374
18414
|
SectionCopyCountsDto: {
|
|
18375
18415
|
/** @description Resources created in the target store */
|
|
@@ -21366,7 +21406,7 @@ export interface components {
|
|
|
21366
21406
|
* @example product
|
|
21367
21407
|
* @enum {string}
|
|
21368
21408
|
*/
|
|
21369
|
-
resourceType: 'category' | 'product' | 'discount' | 'cms_collection' | 'cms_page' | 'cms_blog' | 'cms_module' | 'asset' | 'branding';
|
|
21409
|
+
resourceType: 'category' | 'product' | 'discount' | 'cms_collection' | 'cms_page' | 'cms_blog' | 'cms_module' | 'asset' | 'branding' | 'store_settings' | 'shipping_class' | 'shipping_zone' | 'shipping_rate' | 'shipping_rule' | 'geo_zone' | 'tax_rate';
|
|
21370
21410
|
/** @description Array of resource IDs to copy from source store */
|
|
21371
21411
|
resourceIds: string[];
|
|
21372
21412
|
/**
|
|
@@ -21464,7 +21504,7 @@ export interface components {
|
|
|
21464
21504
|
* @example product
|
|
21465
21505
|
* @enum {string}
|
|
21466
21506
|
*/
|
|
21467
|
-
resourceType: 'category' | 'product' | 'discount' | 'cms_collection' | 'cms_page' | 'cms_blog' | 'cms_module' | 'asset' | 'branding';
|
|
21507
|
+
resourceType: 'category' | 'product' | 'discount' | 'cms_collection' | 'cms_page' | 'cms_blog' | 'cms_module' | 'asset' | 'branding' | 'store_settings' | 'shipping_class' | 'shipping_zone' | 'shipping_rate' | 'shipping_rule' | 'geo_zone' | 'tax_rate';
|
|
21468
21508
|
/** @description Array of resource IDs to copy from source store */
|
|
21469
21509
|
resourceIds: string[];
|
|
21470
21510
|
/**
|
|
@@ -22091,6 +22131,22 @@ export interface components {
|
|
|
22091
22131
|
* @example 2024-01-01
|
|
22092
22132
|
*/
|
|
22093
22133
|
effectiveDate?: string;
|
|
22134
|
+
/** @description Scheduled override row (tax holiday) */
|
|
22135
|
+
isOverride?: boolean;
|
|
22136
|
+
/**
|
|
22137
|
+
* @description Exclusive end of the rate window (ISO date or datetime)
|
|
22138
|
+
* @example 2026-08-03T00:00:00-05:00
|
|
22139
|
+
*/
|
|
22140
|
+
endsAt?: string;
|
|
22141
|
+
/**
|
|
22142
|
+
* @description Product tax code or category slug the rate is limited to
|
|
22143
|
+
* @example clothing
|
|
22144
|
+
*/
|
|
22145
|
+
productCategory?: string;
|
|
22146
|
+
/** @description Override applies to lines priced at or above this amount */
|
|
22147
|
+
minLinePrice?: number;
|
|
22148
|
+
/** @description Override applies to lines priced at or below this amount */
|
|
22149
|
+
maxLinePrice?: number;
|
|
22094
22150
|
};
|
|
22095
22151
|
TaxImportErrorItemDto: {
|
|
22096
22152
|
/**
|
|
@@ -28409,6 +28465,42 @@ export interface components {
|
|
|
28409
28465
|
/** @description Whether this note is internal (admin-only) or customer-visible */
|
|
28410
28466
|
isInternal?: boolean;
|
|
28411
28467
|
};
|
|
28468
|
+
CustomerImportBodyDto: {
|
|
28469
|
+
/**
|
|
28470
|
+
* @description Raw CSV content to import
|
|
28471
|
+
* @example external_id,email,first_name,last_name
|
|
28472
|
+
* OLD-1001,jane@example.com,Jane,Doe
|
|
28473
|
+
*/
|
|
28474
|
+
file: string;
|
|
28475
|
+
};
|
|
28476
|
+
CustomerImportRowResultDto: {
|
|
28477
|
+
/**
|
|
28478
|
+
* @description CSV row number (header is row 1)
|
|
28479
|
+
* @example 2
|
|
28480
|
+
*/
|
|
28481
|
+
row: number;
|
|
28482
|
+
/**
|
|
28483
|
+
* @description external_id from the CSV
|
|
28484
|
+
* @example OLD-1001
|
|
28485
|
+
*/
|
|
28486
|
+
externalId: string;
|
|
28487
|
+
/** @description Aimee customer id. Absent on a dry run for rows that would be created, and on error rows */
|
|
28488
|
+
customerId?: string;
|
|
28489
|
+
/** @enum {string} */
|
|
28490
|
+
status: 'created' | 'updated' | 'unchanged' | 'error';
|
|
28491
|
+
/** @description Why the row was rejected */
|
|
28492
|
+
error?: string;
|
|
28493
|
+
};
|
|
28494
|
+
CustomerImportResultDto: {
|
|
28495
|
+
/** @description True for a dry run: nothing was written */
|
|
28496
|
+
dryRun: boolean;
|
|
28497
|
+
totalRows: number;
|
|
28498
|
+
created: number;
|
|
28499
|
+
updated: number;
|
|
28500
|
+
unchanged: number;
|
|
28501
|
+
errors: number;
|
|
28502
|
+
rows: components['schemas']['CustomerImportRowResultDto'][];
|
|
28503
|
+
};
|
|
28412
28504
|
GenerateDiscountCodesDto: {
|
|
28413
28505
|
/**
|
|
28414
28506
|
* @description Exact number of codes to create
|
|
@@ -35344,6 +35436,14 @@ export interface components {
|
|
|
35344
35436
|
* ]
|
|
35345
35437
|
*/
|
|
35346
35438
|
allowedIps?: string[];
|
|
35439
|
+
/**
|
|
35440
|
+
* @description Publishable keys only. Exact browser origins (scheme://host[:port], no path or wildcards). A request whose Origin header is not listed is refused; requests without an Origin header (server-side) are not checked. Empty or omitted = no restriction.
|
|
35441
|
+
* @example [
|
|
35442
|
+
* "https://shop.example.com",
|
|
35443
|
+
* "http://localhost:3000"
|
|
35444
|
+
* ]
|
|
35445
|
+
*/
|
|
35446
|
+
allowedOrigins?: string[];
|
|
35347
35447
|
/** @description Store ID if key is store-specific. REQUIRED for publishable keys (may also be supplied via the x-store-id header context). */
|
|
35348
35448
|
storeId?: string;
|
|
35349
35449
|
/**
|
|
@@ -35389,6 +35489,8 @@ export interface components {
|
|
|
35389
35489
|
} | null;
|
|
35390
35490
|
/** @description IP whitelist */
|
|
35391
35491
|
allowedIps: string[];
|
|
35492
|
+
/** @description Publishable keys: allowed browser origins (empty = no restriction) */
|
|
35493
|
+
allowedOrigins: string[];
|
|
35392
35494
|
/** @description null = keyType default (applied by auth-lib limiter) */
|
|
35393
35495
|
rateLimitPerMin: number | null;
|
|
35394
35496
|
/** @description 'active' | 'revoked' | 'expired' */
|
|
@@ -35429,6 +35531,8 @@ export interface components {
|
|
|
35429
35531
|
} | null;
|
|
35430
35532
|
/** @description IP whitelist */
|
|
35431
35533
|
allowedIps: string[];
|
|
35534
|
+
/** @description Publishable keys: allowed browser origins (empty = no restriction) */
|
|
35535
|
+
allowedOrigins: string[];
|
|
35432
35536
|
/** @description null = keyType default (applied by auth-lib limiter) */
|
|
35433
35537
|
rateLimitPerMin: number | null;
|
|
35434
35538
|
/** @description 'active' | 'revoked' | 'expired' */
|
|
@@ -35467,6 +35571,14 @@ export interface components {
|
|
|
35467
35571
|
* ]
|
|
35468
35572
|
*/
|
|
35469
35573
|
allowedIps?: string[];
|
|
35574
|
+
/**
|
|
35575
|
+
* @description Publishable keys only. Exact browser origins (scheme://host[:port], no path or wildcards). A request whose Origin header is not listed is refused; requests without an Origin header (server-side) are not checked. Empty or omitted = no restriction.
|
|
35576
|
+
* @example [
|
|
35577
|
+
* "https://shop.example.com",
|
|
35578
|
+
* "http://localhost:3000"
|
|
35579
|
+
* ]
|
|
35580
|
+
*/
|
|
35581
|
+
allowedOrigins?: string[];
|
|
35470
35582
|
/**
|
|
35471
35583
|
* @description Updated expiration date (null to remove expiration)
|
|
35472
35584
|
* @example 2027-12-31T23:59:59Z
|
|
@@ -35535,6 +35647,8 @@ export interface components {
|
|
|
35535
35647
|
} | null;
|
|
35536
35648
|
/** @description IP whitelist */
|
|
35537
35649
|
allowedIps: string[];
|
|
35650
|
+
/** @description Publishable keys: allowed browser origins (empty = no restriction) */
|
|
35651
|
+
allowedOrigins: string[];
|
|
35538
35652
|
/** @description null = keyType default (applied by auth-lib limiter) */
|
|
35539
35653
|
rateLimitPerMin: number | null;
|
|
35540
35654
|
/** @description 'active' | 'revoked' | 'expired' */
|
|
@@ -54552,6 +54666,52 @@ export interface operations {
|
|
|
54552
54666
|
};
|
|
54553
54667
|
};
|
|
54554
54668
|
};
|
|
54669
|
+
CustomerImportController_dryRun: {
|
|
54670
|
+
parameters: {
|
|
54671
|
+
query?: never;
|
|
54672
|
+
header?: never;
|
|
54673
|
+
path?: never;
|
|
54674
|
+
cookie?: never;
|
|
54675
|
+
};
|
|
54676
|
+
requestBody: {
|
|
54677
|
+
content: {
|
|
54678
|
+
'application/json': components['schemas']['CustomerImportBodyDto'];
|
|
54679
|
+
};
|
|
54680
|
+
};
|
|
54681
|
+
responses: {
|
|
54682
|
+
200: {
|
|
54683
|
+
headers: {
|
|
54684
|
+
[name: string]: unknown;
|
|
54685
|
+
};
|
|
54686
|
+
content: {
|
|
54687
|
+
'application/json': components['schemas']['CustomerImportResultDto'];
|
|
54688
|
+
};
|
|
54689
|
+
};
|
|
54690
|
+
};
|
|
54691
|
+
};
|
|
54692
|
+
CustomerImportController_commit: {
|
|
54693
|
+
parameters: {
|
|
54694
|
+
query?: never;
|
|
54695
|
+
header?: never;
|
|
54696
|
+
path?: never;
|
|
54697
|
+
cookie?: never;
|
|
54698
|
+
};
|
|
54699
|
+
requestBody: {
|
|
54700
|
+
content: {
|
|
54701
|
+
'application/json': components['schemas']['CustomerImportBodyDto'];
|
|
54702
|
+
};
|
|
54703
|
+
};
|
|
54704
|
+
responses: {
|
|
54705
|
+
200: {
|
|
54706
|
+
headers: {
|
|
54707
|
+
[name: string]: unknown;
|
|
54708
|
+
};
|
|
54709
|
+
content: {
|
|
54710
|
+
'application/json': components['schemas']['CustomerImportResultDto'];
|
|
54711
|
+
};
|
|
54712
|
+
};
|
|
54713
|
+
};
|
|
54714
|
+
};
|
|
54555
54715
|
DiscountsController_findAll: {
|
|
54556
54716
|
parameters: {
|
|
54557
54717
|
query?: {
|