@adobe/aio-commerce-lib-events 0.3.5 → 0.3.6

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,14 @@
1
1
  # @adobe/aio-commerce-lib-events
2
2
 
3
+ ## 0.3.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#171](https://github.com/adobe/aio-commerce-sdk/pull/171) [`9e4ad33`](https://github.com/adobe/aio-commerce-sdk/commit/9e4ad3363508e89878292ac898c81690f52ba456) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Fix `exports` in `package.json` for proper resolution
8
+
9
+ - Updated dependencies [[`9e4ad33`](https://github.com/adobe/aio-commerce-sdk/commit/9e4ad3363508e89878292ac898c81690f52ba456)]:
10
+ - @adobe/aio-commerce-lib-api@0.4.1
11
+
3
12
  ## 0.3.5
4
13
 
5
14
  ### Patch Changes
@@ -229,9 +229,9 @@ declare const UpdateEventingConfigurationParamsSchema: Omit<v.ObjectSchema<{
229
229
  merchantId?: string | undefined;
230
230
  environmentId?: string | undefined;
231
231
  workspaceConfiguration?: string | undefined;
232
- }, v.ObjectIssue | v.BooleanIssue | v.StringIssue | v.RegexIssue<string> | v.EmptyIssue<string> | v.ParseJsonIssue<string> | v.RecordIssue | v.StringifyJsonIssue<{
232
+ }, v.StringIssue | v.ObjectIssue | v.ParseJsonIssue<string> | v.RecordIssue | v.BooleanIssue | v.RegexIssue<string> | v.EmptyIssue<string> | v.StringifyJsonIssue<{
233
233
  [x: string]: unknown;
234
- }> | v.UnionIssue<v.StringIssue | v.EmptyIssue<string> | v.ParseJsonIssue<string> | v.RecordIssue | v.StringifyJsonIssue<{
234
+ }> | v.UnionIssue<v.StringIssue | v.ParseJsonIssue<string> | v.RecordIssue | v.EmptyIssue<string> | v.StringifyJsonIssue<{
235
235
  [x: string]: unknown;
236
236
  }>>>;
237
237
  readonly '~types'?: {
@@ -253,9 +253,9 @@ declare const UpdateEventingConfigurationParamsSchema: Omit<v.ObjectSchema<{
253
253
  environmentId?: string | undefined;
254
254
  workspaceConfiguration?: string | undefined;
255
255
  };
256
- readonly issue: v.ObjectIssue | v.BooleanIssue | v.StringIssue | v.RegexIssue<string> | v.EmptyIssue<string> | v.ParseJsonIssue<string> | v.RecordIssue | v.StringifyJsonIssue<{
256
+ readonly issue: v.StringIssue | v.ObjectIssue | v.ParseJsonIssue<string> | v.RecordIssue | v.BooleanIssue | v.RegexIssue<string> | v.EmptyIssue<string> | v.StringifyJsonIssue<{
257
257
  [x: string]: unknown;
258
- }> | v.UnionIssue<v.StringIssue | v.EmptyIssue<string> | v.ParseJsonIssue<string> | v.RecordIssue | v.StringifyJsonIssue<{
258
+ }> | v.UnionIssue<v.StringIssue | v.ParseJsonIssue<string> | v.RecordIssue | v.EmptyIssue<string> | v.StringifyJsonIssue<{
259
259
  [x: string]: unknown;
260
260
  }>>;
261
261
  } | undefined;
@@ -13,11 +13,11 @@
13
13
  */
14
14
 
15
15
  import * as v from "valibot";
16
- import * as _adobe_aio_commerce_lib_api0 from "@adobe/aio-commerce-lib-api";
16
+ import * as _adobe_aio_commerce_lib_api1 from "@adobe/aio-commerce-lib-api";
17
17
  import { AdobeCommerceHttpClient, ApiFunction, CommerceHttpClientParams } from "@adobe/aio-commerce-lib-api";
18
18
  import { Options } from "@adobe/aio-commerce-lib-api/ky";
19
19
  import { CamelCasedPropertiesDeep } from "type-fest";
20
- import * as ky0 from "ky";
20
+ import * as ky9 from "ky";
21
21
 
22
22
  //#region source/commerce/api/event-providers/schema.d.ts
23
23
  declare const EventProviderGetByIdParamsSchema: v.ObjectSchema<{
@@ -229,9 +229,9 @@ declare const UpdateEventingConfigurationParamsSchema: Omit<v.ObjectSchema<{
229
229
  merchantId?: string | undefined;
230
230
  environmentId?: string | undefined;
231
231
  workspaceConfiguration?: string | undefined;
232
- }, v.ObjectIssue | v.BooleanIssue | v.StringIssue | v.RegexIssue<string> | v.EmptyIssue<string> | v.ParseJsonIssue<string> | v.RecordIssue | v.StringifyJsonIssue<{
232
+ }, v.StringIssue | v.ObjectIssue | v.ParseJsonIssue<string> | v.RecordIssue | v.BooleanIssue | v.RegexIssue<string> | v.EmptyIssue<string> | v.StringifyJsonIssue<{
233
233
  [x: string]: unknown;
234
- }> | v.UnionIssue<v.StringIssue | v.EmptyIssue<string> | v.ParseJsonIssue<string> | v.RecordIssue | v.StringifyJsonIssue<{
234
+ }> | v.UnionIssue<v.StringIssue | v.ParseJsonIssue<string> | v.RecordIssue | v.EmptyIssue<string> | v.StringifyJsonIssue<{
235
235
  [x: string]: unknown;
236
236
  }>>>;
237
237
  readonly '~types'?: {
@@ -253,9 +253,9 @@ declare const UpdateEventingConfigurationParamsSchema: Omit<v.ObjectSchema<{
253
253
  environmentId?: string | undefined;
254
254
  workspaceConfiguration?: string | undefined;
255
255
  };
256
- readonly issue: v.ObjectIssue | v.BooleanIssue | v.StringIssue | v.RegexIssue<string> | v.EmptyIssue<string> | v.ParseJsonIssue<string> | v.RecordIssue | v.StringifyJsonIssue<{
256
+ readonly issue: v.StringIssue | v.ObjectIssue | v.ParseJsonIssue<string> | v.RecordIssue | v.BooleanIssue | v.RegexIssue<string> | v.EmptyIssue<string> | v.StringifyJsonIssue<{
257
257
  [x: string]: unknown;
258
- }> | v.UnionIssue<v.StringIssue | v.EmptyIssue<string> | v.ParseJsonIssue<string> | v.RecordIssue | v.StringifyJsonIssue<{
258
+ }> | v.UnionIssue<v.StringIssue | v.ParseJsonIssue<string> | v.RecordIssue | v.EmptyIssue<string> | v.StringifyJsonIssue<{
259
259
  [x: string]: unknown;
260
260
  }>>;
261
261
  } | undefined;
@@ -285,12 +285,12 @@ declare function updateEventingConfiguration(httpClient: AdobeCommerceHttpClient
285
285
  * Creates a new API client for the Commerce Events API client.
286
286
  * @param params - The parameters to build the Commerce HTTP client that will communicate with the Commerce Events API.
287
287
  */
288
- declare function createCommerceEventsApiClient(params: CommerceHttpClientParams): _adobe_aio_commerce_lib_api0.ApiClientRecord<AdobeCommerceHttpClient, {
288
+ declare function createCommerceEventsApiClient(params: CommerceHttpClientParams): _adobe_aio_commerce_lib_api1.ApiClientRecord<AdobeCommerceHttpClient, {
289
289
  updateEventingConfiguration: typeof updateEventingConfiguration;
290
- getAllEventSubscriptions(httpClient: AdobeCommerceHttpClient, fetchOptions?: ky0.Options): Promise<CommerceEventSubscriptionManyResponse>;
291
- createEventSubscription(httpClient: AdobeCommerceHttpClient, params: EventSubscriptionCreateParams, fetchOptions?: ky0.Options): Promise<void>;
292
- getAllEventProviders(httpClient: AdobeCommerceHttpClient, fetchOptions?: ky0.Options): Promise<CommerceEventProviderManyResponse>;
293
- getEventProviderById(httpClient: AdobeCommerceHttpClient, params: EventProviderGetByIdParams, fetchOptions?: ky0.Options): Promise<{
290
+ getAllEventSubscriptions(httpClient: AdobeCommerceHttpClient, fetchOptions?: ky9.Options): Promise<CommerceEventSubscriptionManyResponse>;
291
+ createEventSubscription(httpClient: AdobeCommerceHttpClient, params: EventSubscriptionCreateParams, fetchOptions?: ky9.Options): Promise<void>;
292
+ getAllEventProviders(httpClient: AdobeCommerceHttpClient, fetchOptions?: ky9.Options): Promise<CommerceEventProviderManyResponse>;
293
+ getEventProviderById(httpClient: AdobeCommerceHttpClient, params: EventProviderGetByIdParams, fetchOptions?: ky9.Options): Promise<{
294
294
  id: string;
295
295
  providerId: string;
296
296
  instanceId?: string | undefined;
@@ -298,7 +298,7 @@ declare function createCommerceEventsApiClient(params: CommerceHttpClientParams)
298
298
  description?: string | undefined;
299
299
  workspaceConfiguration?: string | undefined;
300
300
  }>;
301
- createEventProvider(httpClient: AdobeCommerceHttpClient, params: EventProviderCreateParams, fetchOptions?: ky0.Options): Promise<{
301
+ createEventProvider(httpClient: AdobeCommerceHttpClient, params: EventProviderCreateParams, fetchOptions?: ky9.Options): Promise<{
302
302
  id: string;
303
303
  providerId: string;
304
304
  instanceId?: string | undefined;
@@ -312,6 +312,6 @@ declare function createCommerceEventsApiClient(params: CommerceHttpClientParams)
312
312
  * @param params - The parameters to build the Commerce HTTP client that will communicate with the Commerce Events API.
313
313
  * @param functions - The API functions to include in the client.
314
314
  */
315
- declare function createCustomCommerceEventsApiClient<TFunctions extends Record<string, ApiFunction<AdobeCommerceHttpClient, any[], any>>>(params: CommerceHttpClientParams, functions: TFunctions): _adobe_aio_commerce_lib_api0.ApiClientRecord<AdobeCommerceHttpClient, TFunctions>;
315
+ declare function createCustomCommerceEventsApiClient<TFunctions extends Record<string, ApiFunction<AdobeCommerceHttpClient, any[], any>>>(params: CommerceHttpClientParams, functions: TFunctions): _adobe_aio_commerce_lib_api1.ApiClientRecord<AdobeCommerceHttpClient, TFunctions>;
316
316
  //#endregion
317
317
  export { type CommerceEventProvider, type CommerceEventProviderManyResponse, type CommerceEventProviderOneResponse, type CommerceEventSubscription, type CommerceEventSubscriptionField, type CommerceEventSubscriptionManyResponse, type CommerceEventSubscriptionOneResponse, type CommerceEventSubscriptionRule, EventProviderCreateParams, EventProviderCreateParamsSchema, EventProviderGetByIdParams, EventProviderGetByIdParamsSchema, EventSubscriptionCreateParams, EventSubscriptionCreateParamsSchema, UpdateEventingConfigurationParams, UpdateEventingConfigurationParamsSchema, createCommerceEventsApiClient, createCustomCommerceEventsApiClient, createEventProvider, createEventSubscription, getAllEventProviders, getAllEventSubscriptions, getEventProviderById, updateEventingConfiguration };
@@ -13,12 +13,12 @@
13
13
  */
14
14
 
15
15
  import * as v from "valibot";
16
- import * as _adobe_aio_commerce_lib_api1 from "@adobe/aio-commerce-lib-api";
16
+ import * as _adobe_aio_commerce_lib_api0 from "@adobe/aio-commerce-lib-api";
17
17
  import { AdobeIoEventsHttpClient, ApiFunction, IoEventsHttpClientParams } from "@adobe/aio-commerce-lib-api";
18
18
  import { Options } from "@adobe/aio-commerce-lib-api/ky";
19
19
  import * as type_fest0 from "type-fest";
20
20
  import { CamelCasedPropertiesDeep, OmitDeep } from "type-fest";
21
- import * as ky4 from "ky";
21
+ import * as ky0 from "ky";
22
22
 
23
23
  //#region source/io-events/api/event-metadata/schema.d.ts
24
24
  /** The schema of the parameters received by the GET `providers/:id/eventmetadata` Adobe I/O Events API endpoint. */
@@ -1119,8 +1119,8 @@ declare function create3rdPartyCustomEventProvider(httpClient: AdobeIoEventsHttp
1119
1119
  * Creates a new API client for the Adobe I/O Events API client.
1120
1120
  * @param params - The parameters to build the Adobe I/O Events HTTP client that will communicate with the Adobe I/O Events API.
1121
1121
  */
1122
- declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams): _adobe_aio_commerce_lib_api1.ApiClientRecord<AdobeIoEventsHttpClient, {
1123
- getAllCommerceEventProviders(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderListAllParams, "filterBy.providerType">, fetchOptions?: ky4.Options): Promise<{
1122
+ declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams): _adobe_aio_commerce_lib_api0.ApiClientRecord<AdobeIoEventsHttpClient, {
1123
+ getAllCommerceEventProviders(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderListAllParams, "filterBy.providerType">, fetchOptions?: ky0.Options): Promise<{
1124
1124
  embedded: {
1125
1125
  providers: {
1126
1126
  id: string;
@@ -1233,7 +1233,7 @@ declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams):
1233
1233
  };
1234
1234
  };
1235
1235
  }>;
1236
- getAll3rdPartyCustomEventProviders(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderListAllParams, "filterBy.providerType">, fetchOptions?: ky4.Options): Promise<{
1236
+ getAll3rdPartyCustomEventProviders(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderListAllParams, "filterBy.providerType">, fetchOptions?: ky0.Options): Promise<{
1237
1237
  embedded: {
1238
1238
  providers: {
1239
1239
  id: string;
@@ -1346,7 +1346,7 @@ declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams):
1346
1346
  };
1347
1347
  };
1348
1348
  }>;
1349
- createCommerceEventProvider(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderCreateParams, "providerType">, fetchOptions?: ky4.Options): Promise<{
1349
+ createCommerceEventProvider(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderCreateParams, "providerType">, fetchOptions?: ky0.Options): Promise<{
1350
1350
  id: string;
1351
1351
  instanceId?: string | undefined;
1352
1352
  label: string;
@@ -1442,7 +1442,7 @@ declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams):
1442
1442
  } | undefined;
1443
1443
  };
1444
1444
  }>;
1445
- create3rdPartyCustomEventProvider(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderCreateParams, "providerType">, fetchOptions?: ky4.Options): Promise<{
1445
+ create3rdPartyCustomEventProvider(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderCreateParams, "providerType">, fetchOptions?: ky0.Options): Promise<{
1446
1446
  id: string;
1447
1447
  instanceId?: string | undefined;
1448
1448
  label: string;
@@ -1538,7 +1538,7 @@ declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams):
1538
1538
  } | undefined;
1539
1539
  };
1540
1540
  }>;
1541
- getAllEventMetadataForProvider(httpClient: AdobeIoEventsHttpClient, params: GetAllEventMetadataForProviderParams, fetchOptions?: ky4.Options): Promise<{
1541
+ getAllEventMetadataForProvider(httpClient: AdobeIoEventsHttpClient, params: GetAllEventMetadataForProviderParams, fetchOptions?: ky0.Options): Promise<{
1542
1542
  embedded: {
1543
1543
  description: string;
1544
1544
  label: string;
@@ -1599,7 +1599,7 @@ declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams):
1599
1599
  };
1600
1600
  }[];
1601
1601
  }>;
1602
- getEventMetadataForEventAndProvider(httpClient: AdobeIoEventsHttpClient, params: GetEventMetadataForEventAndProviderParams, fetchOptions?: ky4.Options): Promise<{
1602
+ getEventMetadataForEventAndProvider(httpClient: AdobeIoEventsHttpClient, params: GetEventMetadataForEventAndProviderParams, fetchOptions?: ky0.Options): Promise<{
1603
1603
  description: string;
1604
1604
  label: string;
1605
1605
  eventCode: string;
@@ -1658,7 +1658,7 @@ declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams):
1658
1658
  };
1659
1659
  };
1660
1660
  }>;
1661
- createEventMetadataForProvider(httpClient: AdobeIoEventsHttpClient, params: CreateEventMetadataForProviderParams, fetchOptions?: ky4.Options): Promise<{
1661
+ createEventMetadataForProvider(httpClient: AdobeIoEventsHttpClient, params: CreateEventMetadataForProviderParams, fetchOptions?: ky0.Options): Promise<{
1662
1662
  description: string;
1663
1663
  label: string;
1664
1664
  eventCode: string;
@@ -1717,7 +1717,7 @@ declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams):
1717
1717
  };
1718
1718
  };
1719
1719
  }>;
1720
- getAllEventProviders(httpClient: AdobeIoEventsHttpClient, params: EventProviderListAllParams, fetchOptions?: ky4.Options): Promise<{
1720
+ getAllEventProviders(httpClient: AdobeIoEventsHttpClient, params: EventProviderListAllParams, fetchOptions?: ky0.Options): Promise<{
1721
1721
  embedded: {
1722
1722
  providers: {
1723
1723
  id: string;
@@ -1830,7 +1830,7 @@ declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams):
1830
1830
  };
1831
1831
  };
1832
1832
  }>;
1833
- getEventProviderById(httpClient: AdobeIoEventsHttpClient, params: EventProviderGetByIdParams, fetchOptions?: ky4.Options): Promise<{
1833
+ getEventProviderById(httpClient: AdobeIoEventsHttpClient, params: EventProviderGetByIdParams, fetchOptions?: ky0.Options): Promise<{
1834
1834
  id: string;
1835
1835
  instanceId?: string | undefined;
1836
1836
  label: string;
@@ -1926,7 +1926,7 @@ declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams):
1926
1926
  } | undefined;
1927
1927
  };
1928
1928
  }>;
1929
- createEventProvider(httpClient: AdobeIoEventsHttpClient, params: EventProviderCreateParams, fetchOptions?: ky4.Options): Promise<{
1929
+ createEventProvider(httpClient: AdobeIoEventsHttpClient, params: EventProviderCreateParams, fetchOptions?: ky0.Options): Promise<{
1930
1930
  id: string;
1931
1931
  instanceId?: string | undefined;
1932
1932
  label: string;
@@ -2028,7 +2028,7 @@ declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams):
2028
2028
  * @param params - The parameters to build the Adobe I/O Events HTTP client that will communicate with the Adobe I/O Events API.
2029
2029
  * @param functions - The API functions to include in the client.
2030
2030
  */
2031
- declare function createCustomAdobeIoEventsApiClient<TFunctions extends Record<string, ApiFunction<AdobeIoEventsHttpClient, any[], any>>>(params: IoEventsHttpClientParams, functions: TFunctions): _adobe_aio_commerce_lib_api1.ApiClientRecord<AdobeIoEventsHttpClient, TFunctions>;
2031
+ declare function createCustomAdobeIoEventsApiClient<TFunctions extends Record<string, ApiFunction<AdobeIoEventsHttpClient, any[], any>>>(params: IoEventsHttpClientParams, functions: TFunctions): _adobe_aio_commerce_lib_api0.ApiClientRecord<AdobeIoEventsHttpClient, TFunctions>;
2032
2032
  //#endregion
2033
2033
  //#region source/io-events/types.d.ts
2034
2034
  type HALLink = {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@adobe/aio-commerce-lib-events",
3
3
  "type": "module",
4
4
  "author": "Adobe Inc.",
5
- "version": "0.3.5",
5
+ "version": "0.3.6",
6
6
  "private": false,
7
7
  "engines": {
8
8
  "node": ">=20 <=24"
@@ -18,14 +18,11 @@
18
18
  "url": "git+https://github.com/adobe/aio-commerce-sdk.git",
19
19
  "directory": "packages/aio-commerce-lib-events"
20
20
  },
21
- "main": "./dist/cjs/index.cjs",
22
- "module": "./dist/es/index.js",
23
- "types": "./dist/cjs/index.d.cts",
24
21
  "exports": {
25
22
  "./commerce": {
26
23
  "import": {
27
- "types": "./dist/es/commerce/index.d.ts",
28
- "default": "./dist/es/commerce/index.js"
24
+ "types": "./dist/es/commerce/index.d.mts",
25
+ "default": "./dist/es/commerce/index.mjs"
29
26
  },
30
27
  "require": {
31
28
  "types": "./dist/cjs/commerce/index.d.cts",
@@ -34,8 +31,8 @@
34
31
  },
35
32
  "./io-events": {
36
33
  "import": {
37
- "types": "./dist/es/io-events/index.d.ts",
38
- "default": "./dist/es/io-events/index.js"
34
+ "types": "./dist/es/io-events/index.d.mts",
35
+ "default": "./dist/es/io-events/index.mjs"
39
36
  },
40
37
  "require": {
41
38
  "types": "./dist/cjs/io-events/index.d.cts",
@@ -45,14 +42,8 @@
45
42
  "./package.json": "./package.json"
46
43
  },
47
44
  "imports": {
48
- "#*": [
49
- "./source/*.ts",
50
- "./source/*/index.ts"
51
- ],
52
- "#test/*": [
53
- "./test/*.ts",
54
- "./test/*/index.ts"
55
- ]
45
+ "#*": "./source/*.ts",
46
+ "#test/*": "./test/*.ts"
56
47
  },
57
48
  "files": [
58
49
  "dist",
@@ -64,7 +55,7 @@
64
55
  "valibot": "^1.1.0",
65
56
  "@adobe/aio-commerce-lib-auth": "0.6.2",
66
57
  "@adobe/aio-commerce-lib-core": "0.5.1",
67
- "@adobe/aio-commerce-lib-api": "0.4.0"
58
+ "@adobe/aio-commerce-lib-api": "0.4.1"
68
59
  },
69
60
  "devDependencies": {
70
61
  "msw": "^2.11.1",
@@ -76,6 +67,7 @@
76
67
  "sideEffects": false,
77
68
  "scripts": {
78
69
  "build": "tsdown",
70
+ "publint": "publint",
79
71
  "docs": "typedoc && prettier --write '**/*.md'",
80
72
  "assist": "biome check --formatter-enabled=false --linter-enabled=false --assist-enabled=true --no-errors-on-unmatched",
81
73
  "assist:apply": "biome check --write --formatter-enabled=false --linter-enabled=false --assist-enabled=true --no-errors-on-unmatched",