@aimee.shop/sdk 0.22.0-dev.209 → 0.22.0-dev.219
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/core/config.d.ts +8 -0
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js.map +1 -1
- package/dist/core/errors/index.d.ts +6 -0
- package/dist/core/errors/index.d.ts.map +1 -1
- package/dist/core/errors/index.js +13 -1
- package/dist/core/errors/index.js.map +1 -1
- package/dist/core/http-client.d.ts.map +1 -1
- package/dist/core/http-client.js +6 -2
- package/dist/core/http-client.js.map +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +1 -1
- package/dist/core/sdk.js.map +1 -1
- package/dist/generated/core-api.d.ts +190 -18
- package/dist/generated/core-api.d.ts.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/services/core/checkout-token-store.d.ts +27 -0
- package/dist/services/core/checkout-token-store.d.ts.map +1 -0
- package/dist/services/core/checkout-token-store.js +14 -0
- package/dist/services/core/checkout-token-store.js.map +1 -0
- package/dist/services/core/checkout.client.d.ts +81 -20
- package/dist/services/core/checkout.client.d.ts.map +1 -1
- package/dist/services/core/checkout.client.js +138 -32
- package/dist/services/core/checkout.client.js.map +1 -1
- package/dist/storefront/index.d.ts +12 -0
- package/dist/storefront/index.d.ts.map +1 -1
- package/dist/storefront/index.js +5 -1
- package/dist/storefront/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -7640,6 +7640,26 @@ export interface paths {
|
|
|
7640
7640
|
patch?: never;
|
|
7641
7641
|
trace?: never;
|
|
7642
7642
|
};
|
|
7643
|
+
'/v1/checkout/handoff': {
|
|
7644
|
+
parameters: {
|
|
7645
|
+
query?: never;
|
|
7646
|
+
header?: never;
|
|
7647
|
+
path?: never;
|
|
7648
|
+
cookie?: never;
|
|
7649
|
+
};
|
|
7650
|
+
get?: never;
|
|
7651
|
+
put?: never;
|
|
7652
|
+
/**
|
|
7653
|
+
* Exchange an agent handoff token
|
|
7654
|
+
* @description Trades the single-use checkout_token from an agent continue_url for the session token. The storefront stores accessToken and removes checkout_token from the URL.
|
|
7655
|
+
*/
|
|
7656
|
+
post: operations['CheckoutController_exchangeHandoff'];
|
|
7657
|
+
delete?: never;
|
|
7658
|
+
options?: never;
|
|
7659
|
+
head?: never;
|
|
7660
|
+
patch?: never;
|
|
7661
|
+
trace?: never;
|
|
7662
|
+
};
|
|
7643
7663
|
'/v1/checkout/sessions/{id}': {
|
|
7644
7664
|
parameters: {
|
|
7645
7665
|
query?: never;
|
|
@@ -16748,6 +16768,21 @@ export interface components {
|
|
|
16748
16768
|
* @example ACME
|
|
16749
16769
|
*/
|
|
16750
16770
|
orderNumberPrefix?: string;
|
|
16771
|
+
/**
|
|
16772
|
+
* @description Organization contact email
|
|
16773
|
+
* @example admin@acme.com
|
|
16774
|
+
*/
|
|
16775
|
+
contactEmail?: string | null;
|
|
16776
|
+
/**
|
|
16777
|
+
* @description Organization support email
|
|
16778
|
+
* @example support@acme.com
|
|
16779
|
+
*/
|
|
16780
|
+
supportEmail?: string | null;
|
|
16781
|
+
/**
|
|
16782
|
+
* @description Organization time zone (IANA)
|
|
16783
|
+
* @example America/New_York
|
|
16784
|
+
*/
|
|
16785
|
+
timezone?: string | null;
|
|
16751
16786
|
/**
|
|
16752
16787
|
* Format: int64
|
|
16753
16788
|
* @description Current order number sequence
|
|
@@ -16983,6 +17018,21 @@ export interface components {
|
|
|
16983
17018
|
metadata?: {
|
|
16984
17019
|
[key: string]: unknown;
|
|
16985
17020
|
};
|
|
17021
|
+
/**
|
|
17022
|
+
* @description Organization contact email. An empty string clears it.
|
|
17023
|
+
* @example admin@acme.com
|
|
17024
|
+
*/
|
|
17025
|
+
contactEmail?: string | null;
|
|
17026
|
+
/**
|
|
17027
|
+
* @description Organization support email. An empty string clears it.
|
|
17028
|
+
* @example support@acme.com
|
|
17029
|
+
*/
|
|
17030
|
+
supportEmail?: string | null;
|
|
17031
|
+
/**
|
|
17032
|
+
* @description Organization time zone (IANA). An empty string clears it.
|
|
17033
|
+
* @example America/New_York
|
|
17034
|
+
*/
|
|
17035
|
+
timezone?: string | null;
|
|
16986
17036
|
};
|
|
16987
17037
|
SuspendTenantDto: {
|
|
16988
17038
|
/**
|
|
@@ -29541,7 +29591,7 @@ export interface components {
|
|
|
29541
29591
|
*/
|
|
29542
29592
|
countryName?: string;
|
|
29543
29593
|
/**
|
|
29544
|
-
* @description Phone number
|
|
29594
|
+
* @description Phone number: digits, spaces, +, -, ( ) or ., with a length possible for its country (the address country unless it starts with +)
|
|
29545
29595
|
* @example +1-555-123-4567
|
|
29546
29596
|
*/
|
|
29547
29597
|
phone?: string;
|
|
@@ -30139,7 +30189,7 @@ export interface components {
|
|
|
30139
30189
|
* "country": "US"
|
|
30140
30190
|
* }
|
|
30141
30191
|
*/
|
|
30142
|
-
shippingAddress?: components['schemas']['
|
|
30192
|
+
shippingAddress?: components['schemas']['AddressInputDto'];
|
|
30143
30193
|
/**
|
|
30144
30194
|
* @description Billing address for the order
|
|
30145
30195
|
* @example {
|
|
@@ -30152,7 +30202,7 @@ export interface components {
|
|
|
30152
30202
|
* "country": "US"
|
|
30153
30203
|
* }
|
|
30154
30204
|
*/
|
|
30155
|
-
billingAddress?: components['schemas']['
|
|
30205
|
+
billingAddress?: components['schemas']['AddressInputDto'];
|
|
30156
30206
|
/**
|
|
30157
30207
|
* @description Whether to use shipping address as billing address
|
|
30158
30208
|
* @default true
|
|
@@ -30243,6 +30293,11 @@ export interface components {
|
|
|
30243
30293
|
* @example guest_123e4567-e89b-12d3-a456-426614174000
|
|
30244
30294
|
*/
|
|
30245
30295
|
guestToken?: string;
|
|
30296
|
+
/**
|
|
30297
|
+
* @description Session token. Returned only by create (new session, or a resume a customer proved with their own token), by an update that binds a customer, and by the handoff exchange. Send it as X-Checkout-Token on every storefront call for this session; each new one replaces the last.
|
|
30298
|
+
* @example Jx0yq8fW1u3c2k9Qm4bT7rZpA5sL6vN0eH2gD8iK1oU
|
|
30299
|
+
*/
|
|
30300
|
+
accessToken?: string;
|
|
30246
30301
|
/**
|
|
30247
30302
|
* @description Cart ID associated with checkout
|
|
30248
30303
|
* @example cart_123e4567-e89b-12d3-a456-426614174000
|
|
@@ -30479,6 +30534,24 @@ export interface components {
|
|
|
30479
30534
|
/** @description Resolved cart messages for this session. Omitted when none match. */
|
|
30480
30535
|
messages?: components['schemas']['CartMessageResolved'][];
|
|
30481
30536
|
};
|
|
30537
|
+
ExchangeCheckoutHandoffDto: {
|
|
30538
|
+
/**
|
|
30539
|
+
* Format: uuid
|
|
30540
|
+
* @description Checkout session id from the agent continue_url
|
|
30541
|
+
*/
|
|
30542
|
+
checkoutId: string;
|
|
30543
|
+
/** @description The checkout_token query parameter of the agent continue_url. Single use. */
|
|
30544
|
+
handoffToken: string;
|
|
30545
|
+
};
|
|
30546
|
+
CheckoutSessionHandleDto: {
|
|
30547
|
+
/**
|
|
30548
|
+
* Format: uuid
|
|
30549
|
+
* @description Checkout session id
|
|
30550
|
+
*/
|
|
30551
|
+
id: string;
|
|
30552
|
+
/** @description Session token; send it as X-Checkout-Token */
|
|
30553
|
+
accessToken: string;
|
|
30554
|
+
};
|
|
30482
30555
|
UpdateCheckoutSessionDto: {
|
|
30483
30556
|
/**
|
|
30484
30557
|
* @description Customer ID (if authenticated)
|
|
@@ -30590,7 +30663,7 @@ export interface components {
|
|
|
30590
30663
|
*/
|
|
30591
30664
|
countryName?: string;
|
|
30592
30665
|
/**
|
|
30593
|
-
* @description Phone number
|
|
30666
|
+
* @description Phone number: digits, spaces, +, -, ( ) or ., with a length possible for its country (the address country unless it starts with +)
|
|
30594
30667
|
* @example +1-555-123-4567
|
|
30595
30668
|
*/
|
|
30596
30669
|
phone?: string;
|
|
@@ -30685,7 +30758,7 @@ export interface components {
|
|
|
30685
30758
|
*/
|
|
30686
30759
|
countryName?: string;
|
|
30687
30760
|
/**
|
|
30688
|
-
* @description Phone number
|
|
30761
|
+
* @description Phone number: digits, spaces, +, -, ( ) or ., with a length possible for its country (the address country unless it starts with +)
|
|
30689
30762
|
* @example +1-555-123-4567
|
|
30690
30763
|
*/
|
|
30691
30764
|
phone?: string;
|
|
@@ -55427,7 +55500,10 @@ export interface operations {
|
|
|
55427
55500
|
/** @description Sort direction (default: desc) */
|
|
55428
55501
|
sortOrder?: 'asc' | 'desc';
|
|
55429
55502
|
};
|
|
55430
|
-
header?:
|
|
55503
|
+
header?: {
|
|
55504
|
+
/** @description Session token (accessToken from create, customer bind or the handoff exchange). Storefront calls for a session send it. */
|
|
55505
|
+
'x-checkout-token'?: string;
|
|
55506
|
+
};
|
|
55431
55507
|
path?: never;
|
|
55432
55508
|
cookie?: never;
|
|
55433
55509
|
};
|
|
@@ -55448,6 +55524,8 @@ export interface operations {
|
|
|
55448
55524
|
parameters: {
|
|
55449
55525
|
query?: never;
|
|
55450
55526
|
header: {
|
|
55527
|
+
/** @description Session token (accessToken from create, customer bind or the handoff exchange). Storefront calls for a session send it. */
|
|
55528
|
+
'x-checkout-token'?: string;
|
|
55451
55529
|
authorization: string;
|
|
55452
55530
|
};
|
|
55453
55531
|
path?: never;
|
|
@@ -55491,10 +55569,46 @@ export interface operations {
|
|
|
55491
55569
|
};
|
|
55492
55570
|
};
|
|
55493
55571
|
};
|
|
55572
|
+
CheckoutController_exchangeHandoff: {
|
|
55573
|
+
parameters: {
|
|
55574
|
+
query?: never;
|
|
55575
|
+
header?: {
|
|
55576
|
+
/** @description Session token (accessToken from create, customer bind or the handoff exchange). Storefront calls for a session send it. */
|
|
55577
|
+
'x-checkout-token'?: string;
|
|
55578
|
+
};
|
|
55579
|
+
path?: never;
|
|
55580
|
+
cookie?: never;
|
|
55581
|
+
};
|
|
55582
|
+
requestBody: {
|
|
55583
|
+
content: {
|
|
55584
|
+
'application/json': components['schemas']['ExchangeCheckoutHandoffDto'];
|
|
55585
|
+
};
|
|
55586
|
+
};
|
|
55587
|
+
responses: {
|
|
55588
|
+
200: {
|
|
55589
|
+
headers: {
|
|
55590
|
+
[name: string]: unknown;
|
|
55591
|
+
};
|
|
55592
|
+
content: {
|
|
55593
|
+
'application/json': components['schemas']['CheckoutSessionHandleDto'];
|
|
55594
|
+
};
|
|
55595
|
+
};
|
|
55596
|
+
/** @description Unknown session, or a spent, expired or wrong handoff token */
|
|
55597
|
+
404: {
|
|
55598
|
+
headers: {
|
|
55599
|
+
[name: string]: unknown;
|
|
55600
|
+
};
|
|
55601
|
+
content?: never;
|
|
55602
|
+
};
|
|
55603
|
+
};
|
|
55604
|
+
};
|
|
55494
55605
|
CheckoutController_getCheckoutSession: {
|
|
55495
55606
|
parameters: {
|
|
55496
55607
|
query?: never;
|
|
55497
|
-
header?:
|
|
55608
|
+
header?: {
|
|
55609
|
+
/** @description Session token (accessToken from create, customer bind or the handoff exchange). Storefront calls for a session send it. */
|
|
55610
|
+
'x-checkout-token'?: string;
|
|
55611
|
+
};
|
|
55498
55612
|
path: {
|
|
55499
55613
|
/** @description Checkout session ID */
|
|
55500
55614
|
id: string;
|
|
@@ -55524,7 +55638,10 @@ export interface operations {
|
|
|
55524
55638
|
CheckoutController_updateCheckoutSession: {
|
|
55525
55639
|
parameters: {
|
|
55526
55640
|
query?: never;
|
|
55527
|
-
header?:
|
|
55641
|
+
header?: {
|
|
55642
|
+
/** @description Session token (accessToken from create, customer bind or the handoff exchange). Storefront calls for a session send it. */
|
|
55643
|
+
'x-checkout-token'?: string;
|
|
55644
|
+
};
|
|
55528
55645
|
path: {
|
|
55529
55646
|
/** @description Checkout session ID */
|
|
55530
55647
|
id: string;
|
|
@@ -55558,7 +55675,10 @@ export interface operations {
|
|
|
55558
55675
|
CheckoutController_deleteCheckoutSession: {
|
|
55559
55676
|
parameters: {
|
|
55560
55677
|
query?: never;
|
|
55561
|
-
header?:
|
|
55678
|
+
header?: {
|
|
55679
|
+
/** @description Session token (accessToken from create, customer bind or the handoff exchange). Storefront calls for a session send it. */
|
|
55680
|
+
'x-checkout-token'?: string;
|
|
55681
|
+
};
|
|
55562
55682
|
path: {
|
|
55563
55683
|
/** @description Checkout session ID */
|
|
55564
55684
|
id: string;
|
|
@@ -55586,7 +55706,10 @@ export interface operations {
|
|
|
55586
55706
|
CheckoutController_updateShippingAddress: {
|
|
55587
55707
|
parameters: {
|
|
55588
55708
|
query?: never;
|
|
55589
|
-
header?:
|
|
55709
|
+
header?: {
|
|
55710
|
+
/** @description Session token (accessToken from create, customer bind or the handoff exchange). Storefront calls for a session send it. */
|
|
55711
|
+
'x-checkout-token'?: string;
|
|
55712
|
+
};
|
|
55590
55713
|
path: {
|
|
55591
55714
|
/** @description Checkout session ID */
|
|
55592
55715
|
id: string;
|
|
@@ -55627,7 +55750,10 @@ export interface operations {
|
|
|
55627
55750
|
CheckoutController_updateBillingAddress: {
|
|
55628
55751
|
parameters: {
|
|
55629
55752
|
query?: never;
|
|
55630
|
-
header?:
|
|
55753
|
+
header?: {
|
|
55754
|
+
/** @description Session token (accessToken from create, customer bind or the handoff exchange). Storefront calls for a session send it. */
|
|
55755
|
+
'x-checkout-token'?: string;
|
|
55756
|
+
};
|
|
55631
55757
|
path: {
|
|
55632
55758
|
/** @description Checkout session ID */
|
|
55633
55759
|
id: string;
|
|
@@ -55677,7 +55803,10 @@ export interface operations {
|
|
|
55677
55803
|
/** @description Include international shipping options; false filters them out */
|
|
55678
55804
|
includeInternational?: boolean;
|
|
55679
55805
|
};
|
|
55680
|
-
header?:
|
|
55806
|
+
header?: {
|
|
55807
|
+
/** @description Session token (accessToken from create, customer bind or the handoff exchange). Storefront calls for a session send it. */
|
|
55808
|
+
'x-checkout-token'?: string;
|
|
55809
|
+
};
|
|
55681
55810
|
path: {
|
|
55682
55811
|
/** @description Checkout session ID */
|
|
55683
55812
|
id: string;
|
|
@@ -55714,7 +55843,10 @@ export interface operations {
|
|
|
55714
55843
|
CheckoutController_selectShippingMethod: {
|
|
55715
55844
|
parameters: {
|
|
55716
55845
|
query?: never;
|
|
55717
|
-
header?:
|
|
55846
|
+
header?: {
|
|
55847
|
+
/** @description Session token (accessToken from create, customer bind or the handoff exchange). Storefront calls for a session send it. */
|
|
55848
|
+
'x-checkout-token'?: string;
|
|
55849
|
+
};
|
|
55718
55850
|
path: {
|
|
55719
55851
|
/** @description Checkout session ID */
|
|
55720
55852
|
id: string;
|
|
@@ -55755,7 +55887,10 @@ export interface operations {
|
|
|
55755
55887
|
CheckoutController_calculateTotals: {
|
|
55756
55888
|
parameters: {
|
|
55757
55889
|
query?: never;
|
|
55758
|
-
header?:
|
|
55890
|
+
header?: {
|
|
55891
|
+
/** @description Session token (accessToken from create, customer bind or the handoff exchange). Storefront calls for a session send it. */
|
|
55892
|
+
'x-checkout-token'?: string;
|
|
55893
|
+
};
|
|
55759
55894
|
path: {
|
|
55760
55895
|
/** @description Checkout session ID */
|
|
55761
55896
|
id: string;
|
|
@@ -55789,7 +55924,10 @@ export interface operations {
|
|
|
55789
55924
|
CheckoutController_validateCheckout: {
|
|
55790
55925
|
parameters: {
|
|
55791
55926
|
query?: never;
|
|
55792
|
-
header?:
|
|
55927
|
+
header?: {
|
|
55928
|
+
/** @description Session token (accessToken from create, customer bind or the handoff exchange). Storefront calls for a session send it. */
|
|
55929
|
+
'x-checkout-token'?: string;
|
|
55930
|
+
};
|
|
55793
55931
|
path: {
|
|
55794
55932
|
/** @description Checkout session ID */
|
|
55795
55933
|
id: string;
|
|
@@ -55823,7 +55961,10 @@ export interface operations {
|
|
|
55823
55961
|
CheckoutController_preparePayment: {
|
|
55824
55962
|
parameters: {
|
|
55825
55963
|
query?: never;
|
|
55826
|
-
header?:
|
|
55964
|
+
header?: {
|
|
55965
|
+
/** @description Session token (accessToken from create, customer bind or the handoff exchange). Storefront calls for a session send it. */
|
|
55966
|
+
'x-checkout-token'?: string;
|
|
55967
|
+
};
|
|
55827
55968
|
path: {
|
|
55828
55969
|
/** @description Checkout session ID */
|
|
55829
55970
|
id: string;
|
|
@@ -55879,6 +56020,8 @@ export interface operations {
|
|
|
55879
56020
|
parameters: {
|
|
55880
56021
|
query?: never;
|
|
55881
56022
|
header: {
|
|
56023
|
+
/** @description Session token (accessToken from create, customer bind or the handoff exchange). Storefront calls for a session send it. */
|
|
56024
|
+
'x-checkout-token'?: string;
|
|
55882
56025
|
authorization: string;
|
|
55883
56026
|
'x-api-key': string;
|
|
55884
56027
|
/** @description Client-generated idempotency key */
|
|
@@ -55952,7 +56095,10 @@ export interface operations {
|
|
|
55952
56095
|
CheckoutController_abandonCheckout: {
|
|
55953
56096
|
parameters: {
|
|
55954
56097
|
query?: never;
|
|
55955
|
-
header?:
|
|
56098
|
+
header?: {
|
|
56099
|
+
/** @description Session token (accessToken from create, customer bind or the handoff exchange). Storefront calls for a session send it. */
|
|
56100
|
+
'x-checkout-token'?: string;
|
|
56101
|
+
};
|
|
55956
56102
|
path: {
|
|
55957
56103
|
/** @description Checkout session ID */
|
|
55958
56104
|
id: string;
|
|
@@ -55986,7 +56132,10 @@ export interface operations {
|
|
|
55986
56132
|
CheckoutController_cleanupExpiredSessions: {
|
|
55987
56133
|
parameters: {
|
|
55988
56134
|
query?: never;
|
|
55989
|
-
header?:
|
|
56135
|
+
header?: {
|
|
56136
|
+
/** @description Session token (accessToken from create, customer bind or the handoff exchange). Storefront calls for a session send it. */
|
|
56137
|
+
'x-checkout-token'?: string;
|
|
56138
|
+
};
|
|
55990
56139
|
path?: never;
|
|
55991
56140
|
cookie?: never;
|
|
55992
56141
|
};
|
|
@@ -56007,6 +56156,8 @@ export interface operations {
|
|
|
56007
56156
|
parameters: {
|
|
56008
56157
|
query?: never;
|
|
56009
56158
|
header: {
|
|
56159
|
+
/** @description Session token (accessToken from create, customer bind or the handoff exchange). Storefront calls for a session send it. */
|
|
56160
|
+
'x-checkout-token'?: string;
|
|
56010
56161
|
authorization: string;
|
|
56011
56162
|
'x-api-key': string;
|
|
56012
56163
|
/** @description Client-generated idempotency key */
|
|
@@ -60185,6 +60336,13 @@ export interface operations {
|
|
|
60185
60336
|
};
|
|
60186
60337
|
content?: never;
|
|
60187
60338
|
};
|
|
60339
|
+
/** @description TOO_MANY_ATTEMPTS: too many sign-ins for this account */
|
|
60340
|
+
429: {
|
|
60341
|
+
headers: {
|
|
60342
|
+
[name: string]: unknown;
|
|
60343
|
+
};
|
|
60344
|
+
content?: never;
|
|
60345
|
+
};
|
|
60188
60346
|
};
|
|
60189
60347
|
};
|
|
60190
60348
|
StorefrontAuthController_logout: {
|
|
@@ -60265,6 +60423,13 @@ export interface operations {
|
|
|
60265
60423
|
};
|
|
60266
60424
|
content?: never;
|
|
60267
60425
|
};
|
|
60426
|
+
/** @description TOO_MANY_ATTEMPTS: too many reset requests for this account */
|
|
60427
|
+
429: {
|
|
60428
|
+
headers: {
|
|
60429
|
+
[name: string]: unknown;
|
|
60430
|
+
};
|
|
60431
|
+
content?: never;
|
|
60432
|
+
};
|
|
60268
60433
|
};
|
|
60269
60434
|
};
|
|
60270
60435
|
StorefrontAuthController_resetPassword: {
|
|
@@ -60297,6 +60462,13 @@ export interface operations {
|
|
|
60297
60462
|
};
|
|
60298
60463
|
content?: never;
|
|
60299
60464
|
};
|
|
60465
|
+
/** @description TOO_MANY_ATTEMPTS: too many reset attempts for this account */
|
|
60466
|
+
429: {
|
|
60467
|
+
headers: {
|
|
60468
|
+
[name: string]: unknown;
|
|
60469
|
+
};
|
|
60470
|
+
content?: never;
|
|
60471
|
+
};
|
|
60300
60472
|
};
|
|
60301
60473
|
};
|
|
60302
60474
|
StorefrontAuthController_getProfile: {
|