@aimee.shop/sdk 0.0.1 → 0.0.2
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/LICENSE +1 -1
- package/README.md +9 -9
- package/dist/browser/browser-auth.d.ts +1 -1
- package/dist/browser/browser-auth.js +2 -2
- package/dist/browser/index.d.ts +12 -12
- package/dist/browser/index.js +12 -12
- package/dist/core/auth/auth-chain.js +2 -2
- package/dist/core/auth/interactive.authenticator.js +1 -1
- package/dist/core/config.d.ts +9 -9
- package/dist/core/config.js +37 -37
- package/dist/core/config.js.map +1 -1
- package/dist/core/errors/index.d.ts +11 -11
- package/dist/core/errors/index.js +11 -11
- package/dist/core/events/event-envelope.d.ts +1 -1
- package/dist/core/events/event-names.d.ts +1 -1
- package/dist/core/events/event-names.js +1 -1
- package/dist/core/http-client.d.ts +3 -3
- package/dist/core/http-client.js +9 -9
- package/dist/core/retry.d.ts +3 -3
- package/dist/core/sdk.d.ts +11 -11
- package/dist/core/sdk.js +8 -8
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -4
- package/dist/services/core/assets.client.d.ts.map +1 -1
- package/dist/services/core/assets.client.js.map +1 -1
- package/dist/services/core/cart-messages/types.d.ts +1 -1
- package/dist/services/core/checkout.client.d.ts +1 -1
- package/dist/services/core/checkout.client.js +1 -1
- package/dist/services/core/cms/types.d.ts.map +1 -1
- package/dist/services/core/cms/types.js.map +1 -1
- package/dist/services/core/shipping/types.d.ts.map +1 -1
- package/dist/storefront/index.d.ts +9 -9
- package/dist/storefront/index.d.ts.map +1 -1
- package/dist/storefront/index.js +7 -7
- package/dist/storefront/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* dual-header customer flows (withCustomer me()/logout()).
|
|
14
14
|
*/
|
|
15
15
|
import type { AxiosRequestConfig } from 'axios';
|
|
16
|
-
import { type
|
|
16
|
+
import { type AimeeError } from '../core/errors/index.js';
|
|
17
17
|
import type { RetryOptions } from '../core/retry.js';
|
|
18
18
|
import { ProductsClient } from '../services/core/products.client.js';
|
|
19
19
|
import { CategoriesClient } from '../services/core/categories.client.js';
|
|
@@ -31,7 +31,7 @@ export interface StorefrontClientConfig {
|
|
|
31
31
|
storeId?: string;
|
|
32
32
|
/** Tenant ID sent as x-tenant-id on every request */
|
|
33
33
|
tenantId?: string;
|
|
34
|
-
/** Core API base URL. Default: https://api.
|
|
34
|
+
/** Core API base URL. Default: https://api.aimee.shop */
|
|
35
35
|
baseUrl?: string;
|
|
36
36
|
/** Request timeout in milliseconds. Default: 30000 */
|
|
37
37
|
timeout?: number;
|
|
@@ -44,14 +44,14 @@ export interface StorefrontClientConfig {
|
|
|
44
44
|
/** Optional response interceptor hook */
|
|
45
45
|
onResponse?: <T>(response: T) => T | Promise<T>;
|
|
46
46
|
/** Optional error handler hook, called once per request after retries are exhausted */
|
|
47
|
-
onError?: (error:
|
|
47
|
+
onError?: (error: AimeeError) => void | Promise<void>;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* Storefront-scoped SDK client exposing the merchant-storefront surface:
|
|
51
51
|
* catalog reads (products, categories, search, facets, cms, stores) and
|
|
52
52
|
* commerce flows (carts, checkout, storefront auth incl. withCustomer).
|
|
53
53
|
*/
|
|
54
|
-
export declare class
|
|
54
|
+
export declare class AimeeStorefrontClient {
|
|
55
55
|
private readonly http;
|
|
56
56
|
private readonly baseUrl;
|
|
57
57
|
private _products?;
|
|
@@ -131,10 +131,10 @@ export declare class ZiftrStorefrontClient {
|
|
|
131
131
|
* // Payment capture and order finalization stay server-side.
|
|
132
132
|
* // Publishable keys cannot call checkout.complete -- checkout:complete is
|
|
133
133
|
* // excluded from the pk permission ceiling by design.
|
|
134
|
-
* import {
|
|
134
|
+
* import { AimeeSDK } from '@aimee.shop/sdk';
|
|
135
135
|
*
|
|
136
|
-
* const sdk = new
|
|
137
|
-
* apiKey: process.env.
|
|
136
|
+
* const sdk = new AimeeSDK({
|
|
137
|
+
* apiKey: process.env.AIMEE_API_KEY,
|
|
138
138
|
* storeId: 'store-uuid',
|
|
139
139
|
* });
|
|
140
140
|
* const { orderId } = await sdk.checkout.complete(session.id, {
|
|
@@ -142,8 +142,8 @@ export declare class ZiftrStorefrontClient {
|
|
|
142
142
|
* });
|
|
143
143
|
* ```
|
|
144
144
|
*/
|
|
145
|
-
export declare function createStorefrontClient(config: StorefrontClientConfig):
|
|
146
|
-
export {
|
|
145
|
+
export declare function createStorefrontClient(config: StorefrontClientConfig): AimeeStorefrontClient;
|
|
146
|
+
export { AimeeError, AuthenticationError, AuthorizationError, ValidationError, NotFoundError, ConflictError, NotModifiedError, RateLimitError, ConfigurationError, ApiError, } from '../core/errors/index.js';
|
|
147
147
|
export type { RetryOptions } from '../core/retry.js';
|
|
148
148
|
export type { GeoRestrictionMode, GeoErrorCode, GeoRegionParams, RestrictedItem, GeoRestrictedErrorDetails, StorefrontRegion, StorefrontRegionSource, } from '../core/types/geo.js';
|
|
149
149
|
export { GEO_ERROR_CODES, PRODUCT_GEO_RESTRICTED, GEO_RESTRICTED, STOREFRONT_REGION_SOURCES, isGeoRestrictedErrorDetails, getGeoRestrictedErrorDetails, } from '../core/types/geo.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storefront/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAIhD,OAAO,EAAsB,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,YAAY,EA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,CAG7B;IAED,IAAI,UAAU,IAAI,gBAAgB,CAGjC;IAED,IAAI,MAAM,IAAI,YAAY,CAGzB;IAED,IAAI,MAAM,IAAI,YAAY,CAGzB;IAED,IAAI,KAAK,IAAI,WAAW,CAGvB;IAED,IAAI,QAAQ,IAAI,cAAc,CAG7B;IAED,IAAI,GAAG,IAAI,SAAS,CAGnB;IAED,IAAI,MAAM,IAAI,YAAY,CAGzB;IAED,6FAA6F;IAC7F,IAAI,UAAU,IAAI,gBAAgB,CAGjC;CACF;AA+BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,sBAAsB,GAAG,qBAAqB,CAE5F;AAGD,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,QAAQ,GACT,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,YAAY,EACV,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,cAAc,EACd,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,cAAc,EACd,yBAAyB,EACzB,2BAA2B,EAC3B,4BAA4B,GAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,yCAAyC,CAAC;AACjD,YAAY,EACV,oBAAoB,EACpB,eAAe,EACf,mBAAmB,GACpB,MAAM,yCAAyC,CAAC"}
|
package/dist/storefront/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { CheckoutClient } from '../services/core/checkout.client.js';
|
|
|
11
11
|
import { CmsClient } from '../services/core/cms/cms.client.js';
|
|
12
12
|
import { StoresClient } from '../services/core/stores/stores.client.js';
|
|
13
13
|
import { StorefrontClient } from '../services/core/storefront/storefront.client.js';
|
|
14
|
-
const DEFAULT_BASE_URL = 'https://api.
|
|
14
|
+
const DEFAULT_BASE_URL = 'https://api.aimee.shop';
|
|
15
15
|
const DEFAULT_TIMEOUT_MS = 30_000;
|
|
16
16
|
const PUBLISHABLE_KEY_PATTERN = /^pk_(live|test)_/;
|
|
17
17
|
/**
|
|
@@ -19,7 +19,7 @@ const PUBLISHABLE_KEY_PATTERN = /^pk_(live|test)_/;
|
|
|
19
19
|
* catalog reads (products, categories, search, facets, cms, stores) and
|
|
20
20
|
* commerce flows (carts, checkout, storefront auth incl. withCustomer).
|
|
21
21
|
*/
|
|
22
|
-
export class
|
|
22
|
+
export class AimeeStorefrontClient {
|
|
23
23
|
http;
|
|
24
24
|
baseUrl;
|
|
25
25
|
_products;
|
|
@@ -168,10 +168,10 @@ function validateBaseUrl(baseUrl) {
|
|
|
168
168
|
* // Payment capture and order finalization stay server-side.
|
|
169
169
|
* // Publishable keys cannot call checkout.complete -- checkout:complete is
|
|
170
170
|
* // excluded from the pk permission ceiling by design.
|
|
171
|
-
* import {
|
|
171
|
+
* import { AimeeSDK } from '@aimee.shop/sdk';
|
|
172
172
|
*
|
|
173
|
-
* const sdk = new
|
|
174
|
-
* apiKey: process.env.
|
|
173
|
+
* const sdk = new AimeeSDK({
|
|
174
|
+
* apiKey: process.env.AIMEE_API_KEY,
|
|
175
175
|
* storeId: 'store-uuid',
|
|
176
176
|
* });
|
|
177
177
|
* const { orderId } = await sdk.checkout.complete(session.id, {
|
|
@@ -180,10 +180,10 @@ function validateBaseUrl(baseUrl) {
|
|
|
180
180
|
* ```
|
|
181
181
|
*/
|
|
182
182
|
export function createStorefrontClient(config) {
|
|
183
|
-
return new
|
|
183
|
+
return new AimeeStorefrontClient(config);
|
|
184
184
|
}
|
|
185
185
|
// Error classes consumers need for instanceof checks
|
|
186
|
-
export {
|
|
186
|
+
export { AimeeError, AuthenticationError, AuthorizationError, ValidationError, NotFoundError, ConflictError, NotModifiedError, RateLimitError, ConfigurationError, ApiError, } from '../core/errors/index.js';
|
|
187
187
|
export { GEO_ERROR_CODES, PRODUCT_GEO_RESTRICTED, GEO_RESTRICTED, STOREFRONT_REGION_SOURCES, isGeoRestrictedErrorDetails, getGeoRestrictedErrorDetails, } from '../core/types/geo.js';
|
|
188
188
|
export { CART_MESSAGE_PLACEMENTS, CART_MESSAGE_TONES, } from '../services/core/cart-messages/types.js';
|
|
189
189
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/storefront/index.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAmB,MAAM,yBAAyB,CAAC;AAE9E,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AAEpF,MAAM,gBAAgB,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/storefront/index.ts"],"names":[],"mappings":"AAeA,O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AC,OAAe;IACtC,IAAI,MAAW,CAAC;IAChB,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;IAC5B,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,kBAAkB,CAAC,sCAAsC,CAAC,CAAC;IACvE,CAAC;IACD,IAAI,MAAM,CAAC,QAAQ,KAAK,OAAO,IAAI,MAAM,CAAC,QAAQ,KAAK,QAAQ,EAAE,CAAC;QAChE,MAAM,IAAI,kBAAkB,CAAC,2CAA2C,CAAC,CAAC;IAC5E,CAAC;AACH,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AACH,MAAM,UAAU,sBAAsB,CAAC,MAA8B;IACnE,OAAO,IAAI,qBAAqB,CAAC,MAAM,CAAC,CAAC;AAC3C,CAAC;AAED,qDAAqD;AACrD,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,QAAQ,GACT,MAAM,yBAAyB,CAAC;AAWjC,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,cAAc,EACd,yBAAyB,EACzB,2BAA2B,EAC3B,4BAA4B,GAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,yCAAyC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aimee.shop/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Public TypeScript SDK for Aimee storefront and merchant-safe APIs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -46,17 +46,17 @@
|
|
|
46
46
|
},
|
|
47
47
|
"repository": {
|
|
48
48
|
"type": "git",
|
|
49
|
-
"url": "https://gitlab.com/
|
|
49
|
+
"url": "https://gitlab.com/aimee.shop/sdk.git"
|
|
50
50
|
},
|
|
51
|
-
"homepage": "https://
|
|
52
|
-
"bugs": "https://gitlab.com/
|
|
51
|
+
"homepage": "https://aimee.shop",
|
|
52
|
+
"bugs": "https://gitlab.com/aimee.shop/sdk/-/issues",
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"registry": "https://registry.npmjs.org/",
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
57
|
"keywords": [
|
|
58
58
|
"aimee",
|
|
59
|
-
"
|
|
59
|
+
"aimee",
|
|
60
60
|
"sdk",
|
|
61
61
|
"ecommerce",
|
|
62
62
|
"api-client"
|