@adobe/aio-commerce-lib-webhooks 1.2.1 → 1.2.2-alpha-20260914094901
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @adobe/aio-commerce-lib-webhooks
|
|
2
2
|
|
|
3
|
+
## 1.2.2-alpha-20260914094901
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`1837df1`](https://github.com/adobe/aio-commerce-sdk/commit/1837df107bd2b8d2211f77438a07b6e7ee0af03e)]:
|
|
8
|
+
- @adobe/aio-commerce-lib-api@1.4.0-alpha-20260914094901
|
|
9
|
+
|
|
3
10
|
## 1.2.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/dist/cjs/api/index.d.cts
CHANGED
|
@@ -137,7 +137,7 @@ type CommerceSupportedWebhookManyResponse = CommerceSupportedWebhook[];
|
|
|
137
137
|
* @param httpClient - The {@link AdobeCommerceHttpClient} to use to make the request.
|
|
138
138
|
* @param fetchOptions - The {@link Options} to use to make the request.
|
|
139
139
|
*/
|
|
140
|
-
declare function getWebhookList(httpClient: AdobeCommerceHttpClient, fetchOptions?: Options): Promise<CommerceWebhookManyResponse>;
|
|
140
|
+
export declare function getWebhookList(httpClient: AdobeCommerceHttpClient, fetchOptions?: Options): Promise<CommerceWebhookManyResponse>;
|
|
141
141
|
/**
|
|
142
142
|
* Subscribes a webhook in the Commerce instance.
|
|
143
143
|
* @see https://developer.adobe.com/commerce/extensibility/webhooks/api/#subscribe-a-webhook
|
|
@@ -149,7 +149,7 @@ declare function getWebhookList(httpClient: AdobeCommerceHttpClient, fetchOption
|
|
|
149
149
|
* @throws A {@link CommerceSdkValidationError} If the parameters are in the wrong format.
|
|
150
150
|
* @throws An {@link HTTPError} If the status code is not 2XX.
|
|
151
151
|
*/
|
|
152
|
-
declare function subscribeWebhook(httpClient: AdobeCommerceHttpClient, params: WebhookSubscribeParams, fetchOptions?: Options): Promise<void>;
|
|
152
|
+
export declare function subscribeWebhook(httpClient: AdobeCommerceHttpClient, params: WebhookSubscribeParams, fetchOptions?: Options): Promise<void>;
|
|
153
153
|
/**
|
|
154
154
|
* Unsubscribes a webhook from the Commerce instance.
|
|
155
155
|
* @see https://developer.adobe.com/commerce/extensibility/webhooks/api/#unsubscribe-a-webhook
|
|
@@ -161,7 +161,7 @@ declare function subscribeWebhook(httpClient: AdobeCommerceHttpClient, params: W
|
|
|
161
161
|
* @throws A {@link CommerceSdkValidationError} If the parameters are in the wrong format.
|
|
162
162
|
* @throws An {@link HTTPError} If the status code is not 2XX.
|
|
163
163
|
*/
|
|
164
|
-
declare function unsubscribeWebhook(httpClient: AdobeCommerceHttpClient, params: WebhookUnsubscribeParams, fetchOptions?: Options): Promise<void>;
|
|
164
|
+
export declare function unsubscribeWebhook(httpClient: AdobeCommerceHttpClient, params: WebhookUnsubscribeParams, fetchOptions?: Options): Promise<void>;
|
|
165
165
|
/**
|
|
166
166
|
* Returns the list of webhooks supported in Adobe Commerce as a Cloud Service (SaaS only).
|
|
167
167
|
* @see https://developer.adobe.com/commerce/extensibility/webhooks/api/#get-supported-webhooks-for-saas
|
|
@@ -169,14 +169,14 @@ declare function unsubscribeWebhook(httpClient: AdobeCommerceHttpClient, params:
|
|
|
169
169
|
* @param httpClient - The {@link AdobeCommerceHttpClient} to use to make the request.
|
|
170
170
|
* @param fetchOptions - The {@link Options} to use to make the request.
|
|
171
171
|
*/
|
|
172
|
-
declare function getSupportedWebhookList(httpClient: AdobeCommerceHttpClient, fetchOptions?: Options): Promise<CommerceSupportedWebhookManyResponse>;
|
|
172
|
+
export declare function getSupportedWebhookList(httpClient: AdobeCommerceHttpClient, fetchOptions?: Options): Promise<CommerceSupportedWebhookManyResponse>;
|
|
173
173
|
//#endregion
|
|
174
174
|
//#region source/lib/api-client.d.ts
|
|
175
175
|
/**
|
|
176
176
|
* Creates a new API client for the Commerce Webhooks API.
|
|
177
177
|
* @param params - The parameters to build the Commerce HTTP client.
|
|
178
178
|
*/
|
|
179
|
-
declare function createCommerceWebhooksApiClient(params: CommerceHttpClientParams): import("@adobe/aio-commerce-lib-api").ApiClientRecord<AdobeCommerceHttpClient, {
|
|
179
|
+
export declare function createCommerceWebhooksApiClient(params: CommerceHttpClientParams): import("@adobe/aio-commerce-lib-api").ApiClientRecord<AdobeCommerceHttpClient, {
|
|
180
180
|
getSupportedWebhookList: typeof getSupportedWebhookList;
|
|
181
181
|
getWebhookList: typeof getWebhookList;
|
|
182
182
|
subscribeWebhook: typeof subscribeWebhook;
|
|
@@ -192,6 +192,6 @@ type CommerceWebhooksApiClient = ReturnType<typeof createCommerceWebhooksApiClie
|
|
|
192
192
|
* @param params - The parameters to build the Commerce HTTP client.
|
|
193
193
|
* @param functions - The API functions to include in the client.
|
|
194
194
|
*/
|
|
195
|
-
declare function createCustomCommerceWebhooksApiClient<TFunctions extends Record<string, ApiFunction<AdobeCommerceHttpClient, any[], any>>>(params: CommerceHttpClientParams, functions: TFunctions): import("@adobe/aio-commerce-lib-api").ApiClientRecord<AdobeCommerceHttpClient, TFunctions>;
|
|
195
|
+
export declare function createCustomCommerceWebhooksApiClient<TFunctions extends Record<string, ApiFunction<AdobeCommerceHttpClient, any[], any>>>(params: CommerceHttpClientParams, functions: TFunctions): import("@adobe/aio-commerce-lib-api").ApiClientRecord<AdobeCommerceHttpClient, TFunctions>;
|
|
196
196
|
//#endregion
|
|
197
|
-
export {
|
|
197
|
+
export type { CommerceSupportedWebhook, CommerceSupportedWebhookManyResponse, CommerceWebhook, CommerceWebhookDeveloperConsoleOAuth, CommerceWebhookField, CommerceWebhookHeader, CommerceWebhookManyResponse, CommerceWebhookRule, CommerceWebhooksApiClient, WebhookSubscribeParams, WebhookUnsubscribeParams };
|
|
@@ -32,7 +32,7 @@ import { HTTP_OK } from "@adobe/aio-commerce-lib-api/utils";
|
|
|
32
32
|
* span.setStatus(isWebhookSuccessful(result) ? { code: SpanStatusCode.OK } : { code: SpanStatusCode.ERROR });
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
|
-
declare function isWebhookSuccessful(result: unknown): boolean;
|
|
35
|
+
export declare function isWebhookSuccessful(result: unknown): boolean;
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region source/responses/operations/types.d.ts
|
|
38
38
|
/**
|
|
@@ -107,7 +107,7 @@ type WebhookOperationResponse<TValue = unknown> = SuccessOperation | ExceptionOp
|
|
|
107
107
|
* return successOperation();
|
|
108
108
|
* ```
|
|
109
109
|
*/
|
|
110
|
-
declare const successOperation: () => SuccessOperation;
|
|
110
|
+
export declare const successOperation: () => SuccessOperation;
|
|
111
111
|
/**
|
|
112
112
|
* Creates an exception operation response with a message
|
|
113
113
|
* Causes Commerce to terminate the process that triggered the original event.
|
|
@@ -125,7 +125,7 @@ declare const successOperation: () => SuccessOperation;
|
|
|
125
125
|
* );
|
|
126
126
|
* ```
|
|
127
127
|
*/
|
|
128
|
-
declare const exceptionOperation: (message: string, exceptionClass?: string) => ExceptionOperation;
|
|
128
|
+
export declare const exceptionOperation: (message: string, exceptionClass?: string) => ExceptionOperation;
|
|
129
129
|
/**
|
|
130
130
|
* Creates an add operation response
|
|
131
131
|
* Causes Commerce to add the provided value to the provided path in the triggered event arguments.
|
|
@@ -144,7 +144,7 @@ declare const exceptionOperation: (message: string, exceptionClass?: string) =>
|
|
|
144
144
|
* );
|
|
145
145
|
* ```
|
|
146
146
|
*/
|
|
147
|
-
declare const addOperation: <TValue = unknown>(path: string, value: TValue, instance?: string) => AddOperation<TValue>;
|
|
147
|
+
export declare const addOperation: <TValue = unknown>(path: string, value: TValue, instance?: string) => AddOperation<TValue>;
|
|
148
148
|
/**
|
|
149
149
|
* Creates a replace operation response
|
|
150
150
|
* Causes Commerce to replace a value in triggered event arguments for the provided path.
|
|
@@ -159,7 +159,7 @@ declare const addOperation: <TValue = unknown>(path: string, value: TValue, inst
|
|
|
159
159
|
* return replaceOperation("result/shipping_methods/shipping_method_one/amount", 6);
|
|
160
160
|
* ```
|
|
161
161
|
*/
|
|
162
|
-
declare const replaceOperation: <TValue = unknown>(path: string, value: TValue, instance?: string) => ReplaceOperation<TValue>;
|
|
162
|
+
export declare const replaceOperation: <TValue = unknown>(path: string, value: TValue, instance?: string) => ReplaceOperation<TValue>;
|
|
163
163
|
/**
|
|
164
164
|
* Creates a remove operation response
|
|
165
165
|
* Causes Commerce to remove a value or node in triggered event arguments by the provided path.
|
|
@@ -171,7 +171,7 @@ declare const replaceOperation: <TValue = unknown>(path: string, value: TValue,
|
|
|
171
171
|
* return removeOperation("result/key2");
|
|
172
172
|
* ```
|
|
173
173
|
*/
|
|
174
|
-
declare const removeOperation: (path: string) => RemoveOperation;
|
|
174
|
+
export declare const removeOperation: (path: string) => RemoveOperation;
|
|
175
175
|
//#endregion
|
|
176
176
|
//#region source/responses/presets.d.ts
|
|
177
177
|
/**
|
|
@@ -199,7 +199,7 @@ declare const removeOperation: (path: string) => RemoveOperation;
|
|
|
199
199
|
* ]);
|
|
200
200
|
* ```
|
|
201
201
|
*/
|
|
202
|
-
declare function ok<TValue = unknown>(operations: WebhookOperationResponse<TValue> | WebhookOperationResponse[]): SuccessResponse;
|
|
202
|
+
export declare function ok<TValue = unknown>(operations: WebhookOperationResponse<TValue> | WebhookOperationResponse[]): SuccessResponse;
|
|
203
203
|
//#endregion
|
|
204
204
|
//#region source/responses/types.d.ts
|
|
205
205
|
/**
|
|
@@ -215,6 +215,6 @@ type WebhookSuccessResponse = Omit<SuccessResponse, "body" | "statusCode"> & {
|
|
|
215
215
|
* @param response - Value to inspect.
|
|
216
216
|
* @returns True when the value matches the webhook success response shape.
|
|
217
217
|
*/
|
|
218
|
-
declare function isWebhookSuccessResponse(response: unknown): response is WebhookSuccessResponse;
|
|
218
|
+
export declare function isWebhookSuccessResponse(response: unknown): response is WebhookSuccessResponse;
|
|
219
219
|
//#endregion
|
|
220
|
-
export {
|
|
220
|
+
export type { AddOperation, ExceptionOperation, RemoveOperation, ReplaceOperation, SuccessOperation, WebhookOperationResponse, WebhookSuccessResponse };
|
package/dist/es/api/index.d.mts
CHANGED
|
@@ -137,7 +137,7 @@ type CommerceSupportedWebhookManyResponse = CommerceSupportedWebhook[];
|
|
|
137
137
|
* @param httpClient - The {@link AdobeCommerceHttpClient} to use to make the request.
|
|
138
138
|
* @param fetchOptions - The {@link Options} to use to make the request.
|
|
139
139
|
*/
|
|
140
|
-
declare function getWebhookList(httpClient: AdobeCommerceHttpClient, fetchOptions?: Options): Promise<CommerceWebhookManyResponse>;
|
|
140
|
+
export declare function getWebhookList(httpClient: AdobeCommerceHttpClient, fetchOptions?: Options): Promise<CommerceWebhookManyResponse>;
|
|
141
141
|
/**
|
|
142
142
|
* Subscribes a webhook in the Commerce instance.
|
|
143
143
|
* @see https://developer.adobe.com/commerce/extensibility/webhooks/api/#subscribe-a-webhook
|
|
@@ -149,7 +149,7 @@ declare function getWebhookList(httpClient: AdobeCommerceHttpClient, fetchOption
|
|
|
149
149
|
* @throws A {@link CommerceSdkValidationError} If the parameters are in the wrong format.
|
|
150
150
|
* @throws An {@link HTTPError} If the status code is not 2XX.
|
|
151
151
|
*/
|
|
152
|
-
declare function subscribeWebhook(httpClient: AdobeCommerceHttpClient, params: WebhookSubscribeParams, fetchOptions?: Options): Promise<void>;
|
|
152
|
+
export declare function subscribeWebhook(httpClient: AdobeCommerceHttpClient, params: WebhookSubscribeParams, fetchOptions?: Options): Promise<void>;
|
|
153
153
|
/**
|
|
154
154
|
* Unsubscribes a webhook from the Commerce instance.
|
|
155
155
|
* @see https://developer.adobe.com/commerce/extensibility/webhooks/api/#unsubscribe-a-webhook
|
|
@@ -161,7 +161,7 @@ declare function subscribeWebhook(httpClient: AdobeCommerceHttpClient, params: W
|
|
|
161
161
|
* @throws A {@link CommerceSdkValidationError} If the parameters are in the wrong format.
|
|
162
162
|
* @throws An {@link HTTPError} If the status code is not 2XX.
|
|
163
163
|
*/
|
|
164
|
-
declare function unsubscribeWebhook(httpClient: AdobeCommerceHttpClient, params: WebhookUnsubscribeParams, fetchOptions?: Options): Promise<void>;
|
|
164
|
+
export declare function unsubscribeWebhook(httpClient: AdobeCommerceHttpClient, params: WebhookUnsubscribeParams, fetchOptions?: Options): Promise<void>;
|
|
165
165
|
/**
|
|
166
166
|
* Returns the list of webhooks supported in Adobe Commerce as a Cloud Service (SaaS only).
|
|
167
167
|
* @see https://developer.adobe.com/commerce/extensibility/webhooks/api/#get-supported-webhooks-for-saas
|
|
@@ -169,14 +169,14 @@ declare function unsubscribeWebhook(httpClient: AdobeCommerceHttpClient, params:
|
|
|
169
169
|
* @param httpClient - The {@link AdobeCommerceHttpClient} to use to make the request.
|
|
170
170
|
* @param fetchOptions - The {@link Options} to use to make the request.
|
|
171
171
|
*/
|
|
172
|
-
declare function getSupportedWebhookList(httpClient: AdobeCommerceHttpClient, fetchOptions?: Options): Promise<CommerceSupportedWebhookManyResponse>;
|
|
172
|
+
export declare function getSupportedWebhookList(httpClient: AdobeCommerceHttpClient, fetchOptions?: Options): Promise<CommerceSupportedWebhookManyResponse>;
|
|
173
173
|
//#endregion
|
|
174
174
|
//#region source/lib/api-client.d.ts
|
|
175
175
|
/**
|
|
176
176
|
* Creates a new API client for the Commerce Webhooks API.
|
|
177
177
|
* @param params - The parameters to build the Commerce HTTP client.
|
|
178
178
|
*/
|
|
179
|
-
declare function createCommerceWebhooksApiClient(params: CommerceHttpClientParams): import("@adobe/aio-commerce-lib-api").ApiClientRecord<AdobeCommerceHttpClient, {
|
|
179
|
+
export declare function createCommerceWebhooksApiClient(params: CommerceHttpClientParams): import("@adobe/aio-commerce-lib-api").ApiClientRecord<AdobeCommerceHttpClient, {
|
|
180
180
|
getSupportedWebhookList: typeof getSupportedWebhookList;
|
|
181
181
|
getWebhookList: typeof getWebhookList;
|
|
182
182
|
subscribeWebhook: typeof subscribeWebhook;
|
|
@@ -192,6 +192,6 @@ type CommerceWebhooksApiClient = ReturnType<typeof createCommerceWebhooksApiClie
|
|
|
192
192
|
* @param params - The parameters to build the Commerce HTTP client.
|
|
193
193
|
* @param functions - The API functions to include in the client.
|
|
194
194
|
*/
|
|
195
|
-
declare function createCustomCommerceWebhooksApiClient<TFunctions extends Record<string, ApiFunction<AdobeCommerceHttpClient, any[], any>>>(params: CommerceHttpClientParams, functions: TFunctions): import("@adobe/aio-commerce-lib-api").ApiClientRecord<AdobeCommerceHttpClient, TFunctions>;
|
|
195
|
+
export declare function createCustomCommerceWebhooksApiClient<TFunctions extends Record<string, ApiFunction<AdobeCommerceHttpClient, any[], any>>>(params: CommerceHttpClientParams, functions: TFunctions): import("@adobe/aio-commerce-lib-api").ApiClientRecord<AdobeCommerceHttpClient, TFunctions>;
|
|
196
196
|
//#endregion
|
|
197
|
-
export {
|
|
197
|
+
export type { CommerceSupportedWebhook, CommerceSupportedWebhookManyResponse, CommerceWebhook, CommerceWebhookDeveloperConsoleOAuth, CommerceWebhookField, CommerceWebhookHeader, CommerceWebhookManyResponse, CommerceWebhookRule, CommerceWebhooksApiClient, WebhookSubscribeParams, WebhookUnsubscribeParams };
|
|
@@ -32,7 +32,7 @@ import { SuccessResponse } from "@adobe/aio-commerce-lib-core/responses";
|
|
|
32
32
|
* span.setStatus(isWebhookSuccessful(result) ? { code: SpanStatusCode.OK } : { code: SpanStatusCode.ERROR });
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
|
-
declare function isWebhookSuccessful(result: unknown): boolean;
|
|
35
|
+
export declare function isWebhookSuccessful(result: unknown): boolean;
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region source/responses/operations/types.d.ts
|
|
38
38
|
/**
|
|
@@ -107,7 +107,7 @@ type WebhookOperationResponse<TValue = unknown> = SuccessOperation | ExceptionOp
|
|
|
107
107
|
* return successOperation();
|
|
108
108
|
* ```
|
|
109
109
|
*/
|
|
110
|
-
declare const successOperation: () => SuccessOperation;
|
|
110
|
+
export declare const successOperation: () => SuccessOperation;
|
|
111
111
|
/**
|
|
112
112
|
* Creates an exception operation response with a message
|
|
113
113
|
* Causes Commerce to terminate the process that triggered the original event.
|
|
@@ -125,7 +125,7 @@ declare const successOperation: () => SuccessOperation;
|
|
|
125
125
|
* );
|
|
126
126
|
* ```
|
|
127
127
|
*/
|
|
128
|
-
declare const exceptionOperation: (message: string, exceptionClass?: string) => ExceptionOperation;
|
|
128
|
+
export declare const exceptionOperation: (message: string, exceptionClass?: string) => ExceptionOperation;
|
|
129
129
|
/**
|
|
130
130
|
* Creates an add operation response
|
|
131
131
|
* Causes Commerce to add the provided value to the provided path in the triggered event arguments.
|
|
@@ -144,7 +144,7 @@ declare const exceptionOperation: (message: string, exceptionClass?: string) =>
|
|
|
144
144
|
* );
|
|
145
145
|
* ```
|
|
146
146
|
*/
|
|
147
|
-
declare const addOperation: <TValue = unknown>(path: string, value: TValue, instance?: string) => AddOperation<TValue>;
|
|
147
|
+
export declare const addOperation: <TValue = unknown>(path: string, value: TValue, instance?: string) => AddOperation<TValue>;
|
|
148
148
|
/**
|
|
149
149
|
* Creates a replace operation response
|
|
150
150
|
* Causes Commerce to replace a value in triggered event arguments for the provided path.
|
|
@@ -159,7 +159,7 @@ declare const addOperation: <TValue = unknown>(path: string, value: TValue, inst
|
|
|
159
159
|
* return replaceOperation("result/shipping_methods/shipping_method_one/amount", 6);
|
|
160
160
|
* ```
|
|
161
161
|
*/
|
|
162
|
-
declare const replaceOperation: <TValue = unknown>(path: string, value: TValue, instance?: string) => ReplaceOperation<TValue>;
|
|
162
|
+
export declare const replaceOperation: <TValue = unknown>(path: string, value: TValue, instance?: string) => ReplaceOperation<TValue>;
|
|
163
163
|
/**
|
|
164
164
|
* Creates a remove operation response
|
|
165
165
|
* Causes Commerce to remove a value or node in triggered event arguments by the provided path.
|
|
@@ -171,7 +171,7 @@ declare const replaceOperation: <TValue = unknown>(path: string, value: TValue,
|
|
|
171
171
|
* return removeOperation("result/key2");
|
|
172
172
|
* ```
|
|
173
173
|
*/
|
|
174
|
-
declare const removeOperation: (path: string) => RemoveOperation;
|
|
174
|
+
export declare const removeOperation: (path: string) => RemoveOperation;
|
|
175
175
|
//#endregion
|
|
176
176
|
//#region source/responses/presets.d.ts
|
|
177
177
|
/**
|
|
@@ -199,7 +199,7 @@ declare const removeOperation: (path: string) => RemoveOperation;
|
|
|
199
199
|
* ]);
|
|
200
200
|
* ```
|
|
201
201
|
*/
|
|
202
|
-
declare function ok<TValue = unknown>(operations: WebhookOperationResponse<TValue> | WebhookOperationResponse[]): SuccessResponse;
|
|
202
|
+
export declare function ok<TValue = unknown>(operations: WebhookOperationResponse<TValue> | WebhookOperationResponse[]): SuccessResponse;
|
|
203
203
|
//#endregion
|
|
204
204
|
//#region source/responses/types.d.ts
|
|
205
205
|
/**
|
|
@@ -215,6 +215,6 @@ type WebhookSuccessResponse = Omit<SuccessResponse, "body" | "statusCode"> & {
|
|
|
215
215
|
* @param response - Value to inspect.
|
|
216
216
|
* @returns True when the value matches the webhook success response shape.
|
|
217
217
|
*/
|
|
218
|
-
declare function isWebhookSuccessResponse(response: unknown): response is WebhookSuccessResponse;
|
|
218
|
+
export declare function isWebhookSuccessResponse(response: unknown): response is WebhookSuccessResponse;
|
|
219
219
|
//#endregion
|
|
220
|
-
export {
|
|
220
|
+
export type { AddOperation, ExceptionOperation, RemoveOperation, ReplaceOperation, SuccessOperation, WebhookOperationResponse, WebhookSuccessResponse };
|
package/package.json
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/aio-commerce-lib-webhooks",
|
|
3
|
-
"
|
|
4
|
-
"author": "Adobe Inc.",
|
|
5
|
-
"version": "1.2.1",
|
|
3
|
+
"version": "1.2.2-alpha-20260914094901",
|
|
6
4
|
"private": false,
|
|
7
|
-
"engines": {
|
|
8
|
-
"node": ">=22 <=24"
|
|
9
|
-
},
|
|
10
|
-
"license": "Apache-2.0",
|
|
11
5
|
"description": "A library to interact with the Adobe Commerce Webhooks API",
|
|
12
6
|
"keywords": [
|
|
13
7
|
"aio",
|
|
@@ -24,9 +18,13 @@
|
|
|
24
18
|
"url": "git+https://github.com/adobe/aio-commerce-sdk.git",
|
|
25
19
|
"directory": "packages/aio-commerce-lib-webhooks"
|
|
26
20
|
},
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
"license": "Apache-2.0",
|
|
22
|
+
"author": "Adobe Inc.",
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"type": "module",
|
|
25
|
+
"imports": {
|
|
26
|
+
"#*": "./source/*.ts",
|
|
27
|
+
"#test/*": "./test/*.ts"
|
|
30
28
|
},
|
|
31
29
|
"exports": {
|
|
32
30
|
"./api": {
|
|
@@ -51,10 +49,6 @@
|
|
|
51
49
|
},
|
|
52
50
|
"./package.json": "./package.json"
|
|
53
51
|
},
|
|
54
|
-
"imports": {
|
|
55
|
-
"#*": "./source/*.ts",
|
|
56
|
-
"#test/*": "./test/*.ts"
|
|
57
|
-
},
|
|
58
52
|
"files": [
|
|
59
53
|
"dist",
|
|
60
54
|
"package.json",
|
|
@@ -62,38 +56,44 @@
|
|
|
62
56
|
"README.md"
|
|
63
57
|
],
|
|
64
58
|
"dependencies": {
|
|
59
|
+
"@adobe/aio-commerce-lib-api": "1.4.0-alpha-20260914094901",
|
|
60
|
+
"@adobe/aio-commerce-lib-core": "1.2.0",
|
|
65
61
|
"ky": "^1.9.0",
|
|
66
|
-
"valibot": "^1.1.0"
|
|
67
|
-
"@adobe/aio-commerce-lib-api": "1.3.1",
|
|
68
|
-
"@adobe/aio-commerce-lib-core": "1.2.0"
|
|
62
|
+
"valibot": "^1.1.0"
|
|
69
63
|
},
|
|
70
64
|
"devDependencies": {
|
|
71
|
-
"typescript": "^6.0.0",
|
|
72
|
-
"msw": "^2.11.1",
|
|
73
65
|
"@aio-commerce-sdk/config-tsdown": "1.0.1",
|
|
74
66
|
"@aio-commerce-sdk/config-typescript": "1.0.0",
|
|
75
67
|
"@aio-commerce-sdk/config-vitest": "1.0.0",
|
|
76
68
|
"@aio-commerce-sdk/scripting-utils": "0.3.5",
|
|
77
|
-
"@aio-commerce-sdk/scripts": "0.1.1"
|
|
69
|
+
"@aio-commerce-sdk/scripts": "0.1.1",
|
|
70
|
+
"msw": "^2.11.1",
|
|
71
|
+
"typescript": "^6.0.0"
|
|
72
|
+
},
|
|
73
|
+
"engines": {
|
|
74
|
+
"node": ">=22 <=24"
|
|
75
|
+
},
|
|
76
|
+
"publishConfig": {
|
|
77
|
+
"access": "public",
|
|
78
|
+
"registry": "https://registry.npmjs.org"
|
|
78
79
|
},
|
|
79
|
-
"sideEffects": false,
|
|
80
80
|
"scripts": {
|
|
81
|
-
"build": "tsdown",
|
|
82
|
-
"pack": "pnpm pack",
|
|
83
|
-
"publint": "publint",
|
|
84
|
-
"docs": "typedoc && prettier --write '**/*.md'",
|
|
85
81
|
"assist": "biome check --formatter-enabled=false --linter-enabled=false --assist-enabled=true --no-errors-on-unmatched",
|
|
86
82
|
"assist:apply": "biome check --write --formatter-enabled=false --linter-enabled=false --assist-enabled=true --no-errors-on-unmatched",
|
|
83
|
+
"build": "tsdown",
|
|
87
84
|
"check:ci": "biome ci --formatter-enabled=true --linter-enabled=true --assist-enabled=true --no-errors-on-unmatched",
|
|
88
85
|
"code:fix": "pnpm run lint:fix && pnpm run assist:apply && pnpm run format && pnpm run format:markdown",
|
|
86
|
+
"docs": "typedoc && prettier --write '**/*.md'",
|
|
89
87
|
"format": "biome format --write --no-errors-on-unmatched",
|
|
90
|
-
"format:markdown": "prettier --no-error-on-unmatched-pattern --write '**/*.md' \"!**/{CODE_OF_CONDUCT.md,COPYRIGHT,LICENSE,SECURITY.md,CONTRIBUTING.md}\"",
|
|
91
88
|
"format:check": "biome format --no-errors-on-unmatched",
|
|
89
|
+
"format:markdown": "prettier --no-error-on-unmatched-pattern --write '**/*.md' \"!**/{CODE_OF_CONDUCT.md,COPYRIGHT,LICENSE,SECURITY.md,CONTRIBUTING.md}\"",
|
|
92
90
|
"lint": "biome lint --no-errors-on-unmatched",
|
|
93
91
|
"lint:fix": "biome lint --write --no-errors-on-unmatched",
|
|
94
|
-
"
|
|
92
|
+
"pack": "pnpm pack",
|
|
93
|
+
"publint": "publint",
|
|
95
94
|
"test": "vitest run --coverage",
|
|
96
95
|
"test:ui": "vitest --ui --coverage",
|
|
97
|
-
"test:watch": "vitest --watch --coverage"
|
|
96
|
+
"test:watch": "vitest --watch --coverage",
|
|
97
|
+
"typecheck": "tsc --noEmit && echo '✅ No type errors found.'"
|
|
98
98
|
}
|
|
99
99
|
}
|