@adobe/aio-commerce-lib-events 0.2.0 → 0.2.1
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 +6 -0
- package/dist/cjs/commerce/index.d.cts +6 -6
- package/dist/es/commerce/index.d.ts +12 -12
- package/dist/es/io-events/index.d.ts +11 -11
- package/package.json +17 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @adobe/aio-commerce-lib-events
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#88](https://github.com/adobe/aio-commerce-sdk/pull/88) [`db844b7`](https://github.com/adobe/aio-commerce-sdk/commit/db844b7c3685fa8d20cf865b88786a863c9fc963) Thanks [@jnatherley](https://github.com/jnatherley)! - Module resolution should work for `cjs` and `esm` for aio-commerce-lib-events. Fixed export mapping that led to unresolvable paths when using the package.
|
|
8
|
+
|
|
3
9
|
## 0.2.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -226,11 +226,11 @@ declare const UpdateEventingConfigurationParamsSchema: Omit<v.ObjectSchema<{
|
|
|
226
226
|
merchantId?: string | undefined;
|
|
227
227
|
environmentId?: string | undefined;
|
|
228
228
|
workspaceConfiguration?: string | undefined;
|
|
229
|
-
}, v.StringIssue | v.ObjectIssue | v.
|
|
229
|
+
}, v.StringIssue | v.ObjectIssue | v.ParseJsonIssue<string> | v.RecordIssue | v.StringifyJsonIssue<{
|
|
230
230
|
[x: string]: unknown;
|
|
231
|
-
}> | v.
|
|
231
|
+
}> | v.BooleanIssue | v.RegexIssue<string> | v.EmptyIssue<string> | v.UnionIssue<v.StringIssue | v.ParseJsonIssue<string> | v.RecordIssue | v.StringifyJsonIssue<{
|
|
232
232
|
[x: string]: unknown;
|
|
233
|
-
}
|
|
233
|
+
}> | v.EmptyIssue<string>>>;
|
|
234
234
|
readonly '~types'?: {
|
|
235
235
|
readonly input: {
|
|
236
236
|
enabled?: boolean | undefined;
|
|
@@ -250,11 +250,11 @@ declare const UpdateEventingConfigurationParamsSchema: Omit<v.ObjectSchema<{
|
|
|
250
250
|
environmentId?: string | undefined;
|
|
251
251
|
workspaceConfiguration?: string | undefined;
|
|
252
252
|
};
|
|
253
|
-
readonly issue: v.StringIssue | v.ObjectIssue | v.
|
|
253
|
+
readonly issue: v.StringIssue | v.ObjectIssue | v.ParseJsonIssue<string> | v.RecordIssue | v.StringifyJsonIssue<{
|
|
254
254
|
[x: string]: unknown;
|
|
255
|
-
}> | v.
|
|
255
|
+
}> | v.BooleanIssue | v.RegexIssue<string> | v.EmptyIssue<string> | v.UnionIssue<v.StringIssue | v.ParseJsonIssue<string> | v.RecordIssue | v.StringifyJsonIssue<{
|
|
256
256
|
[x: string]: unknown;
|
|
257
|
-
}
|
|
257
|
+
}> | v.EmptyIssue<string>>;
|
|
258
258
|
} | undefined;
|
|
259
259
|
};
|
|
260
260
|
/**
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
import * as v from "valibot";
|
|
16
16
|
import { CamelCasedPropertiesDeep } from "type-fest";
|
|
17
|
-
import * as
|
|
17
|
+
import * as ky9 from "ky";
|
|
18
18
|
|
|
19
19
|
//#region source/commerce/api/event-providers/schema.d.ts
|
|
20
20
|
declare const EventProviderGetByIdParamsSchema: v.ObjectSchema<{
|
|
@@ -226,11 +226,11 @@ declare const UpdateEventingConfigurationParamsSchema: Omit<v.ObjectSchema<{
|
|
|
226
226
|
merchantId?: string | undefined;
|
|
227
227
|
environmentId?: string | undefined;
|
|
228
228
|
workspaceConfiguration?: string | undefined;
|
|
229
|
-
}, v.StringIssue | v.ObjectIssue | v.
|
|
229
|
+
}, v.StringIssue | v.ObjectIssue | v.ParseJsonIssue<string> | v.RecordIssue | v.StringifyJsonIssue<{
|
|
230
230
|
[x: string]: unknown;
|
|
231
|
-
}> | v.
|
|
231
|
+
}> | v.BooleanIssue | v.RegexIssue<string> | v.EmptyIssue<string> | v.UnionIssue<v.StringIssue | v.ParseJsonIssue<string> | v.RecordIssue | v.StringifyJsonIssue<{
|
|
232
232
|
[x: string]: unknown;
|
|
233
|
-
}
|
|
233
|
+
}> | v.EmptyIssue<string>>>;
|
|
234
234
|
readonly '~types'?: {
|
|
235
235
|
readonly input: {
|
|
236
236
|
enabled?: boolean | undefined;
|
|
@@ -250,11 +250,11 @@ declare const UpdateEventingConfigurationParamsSchema: Omit<v.ObjectSchema<{
|
|
|
250
250
|
environmentId?: string | undefined;
|
|
251
251
|
workspaceConfiguration?: string | undefined;
|
|
252
252
|
};
|
|
253
|
-
readonly issue: v.StringIssue | v.ObjectIssue | v.
|
|
253
|
+
readonly issue: v.StringIssue | v.ObjectIssue | v.ParseJsonIssue<string> | v.RecordIssue | v.StringifyJsonIssue<{
|
|
254
254
|
[x: string]: unknown;
|
|
255
|
-
}> | v.
|
|
255
|
+
}> | v.BooleanIssue | v.RegexIssue<string> | v.EmptyIssue<string> | v.UnionIssue<v.StringIssue | v.ParseJsonIssue<string> | v.RecordIssue | v.StringifyJsonIssue<{
|
|
256
256
|
[x: string]: unknown;
|
|
257
|
-
}
|
|
257
|
+
}> | v.EmptyIssue<string>>;
|
|
258
258
|
} | undefined;
|
|
259
259
|
};
|
|
260
260
|
/**
|
|
@@ -284,10 +284,10 @@ declare function updateEventingConfiguration(httpClient: AdobeCommerceHttpClient
|
|
|
284
284
|
*/
|
|
285
285
|
declare function createCommerceEventsApiClient(params: CommerceHttpClientParams): void 0<AdobeCommerceHttpClient, {
|
|
286
286
|
updateEventingConfiguration: typeof updateEventingConfiguration;
|
|
287
|
-
getAllEventSubscriptions(httpClient: AdobeCommerceHttpClient, fetchOptions?:
|
|
288
|
-
createEventSubscription(httpClient: AdobeCommerceHttpClient, params: EventSubscriptionCreateParams, fetchOptions?:
|
|
289
|
-
getAllEventProviders(httpClient: AdobeCommerceHttpClient, fetchOptions?:
|
|
290
|
-
getEventProviderById(httpClient: AdobeCommerceHttpClient, params: EventProviderGetByIdParams, fetchOptions?:
|
|
287
|
+
getAllEventSubscriptions(httpClient: AdobeCommerceHttpClient, fetchOptions?: ky9.Options): Promise<CommerceEventSubscriptionManyResponse>;
|
|
288
|
+
createEventSubscription(httpClient: AdobeCommerceHttpClient, params: EventSubscriptionCreateParams, fetchOptions?: ky9.Options): Promise<void>;
|
|
289
|
+
getAllEventProviders(httpClient: AdobeCommerceHttpClient, fetchOptions?: ky9.Options): Promise<CommerceEventProviderManyResponse>;
|
|
290
|
+
getEventProviderById(httpClient: AdobeCommerceHttpClient, params: EventProviderGetByIdParams, fetchOptions?: ky9.Options): Promise<{
|
|
291
291
|
id: string;
|
|
292
292
|
providerId: string;
|
|
293
293
|
instanceId?: string | undefined;
|
|
@@ -295,7 +295,7 @@ declare function createCommerceEventsApiClient(params: CommerceHttpClientParams)
|
|
|
295
295
|
description?: string | undefined;
|
|
296
296
|
workspaceConfiguration?: string | undefined;
|
|
297
297
|
}>;
|
|
298
|
-
createEventProvider(httpClient: AdobeCommerceHttpClient, params: EventProviderCreateParams, fetchOptions?:
|
|
298
|
+
createEventProvider(httpClient: AdobeCommerceHttpClient, params: EventProviderCreateParams, fetchOptions?: ky9.Options): Promise<{
|
|
299
299
|
id: string;
|
|
300
300
|
providerId: string;
|
|
301
301
|
instanceId?: string | undefined;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
import * as v from "valibot";
|
|
16
16
|
import * as type_fest0 from "type-fest";
|
|
17
17
|
import { CamelCasedPropertiesDeep, OmitDeep } from "type-fest";
|
|
18
|
-
import * as
|
|
18
|
+
import * as ky0 from "ky";
|
|
19
19
|
|
|
20
20
|
//#region source/io-events/api/event-metadata/schema.d.ts
|
|
21
21
|
/** The schema of the parameters received by the GET `providers/:id/eventmetadata` Adobe I/O Events API endpoint. */
|
|
@@ -1119,7 +1119,7 @@ declare function create3rdPartyCustomEventProvider(httpClient: AdobeIoEventsHttp
|
|
|
1119
1119
|
* @param params - The parameters to build the Adobe I/O Events HTTP client that will communicate with the Adobe I/O Events API.
|
|
1120
1120
|
*/
|
|
1121
1121
|
declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams): void 0<AdobeIoEventsHttpClient, {
|
|
1122
|
-
getAllCommerceEventProviders(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderListAllParams, "filterBy.providerType">, fetchOptions?:
|
|
1122
|
+
getAllCommerceEventProviders(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderListAllParams, "filterBy.providerType">, fetchOptions?: ky0.Options): Promise<{
|
|
1123
1123
|
embedded: {
|
|
1124
1124
|
providers: {
|
|
1125
1125
|
id: string;
|
|
@@ -1232,7 +1232,7 @@ declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams):
|
|
|
1232
1232
|
};
|
|
1233
1233
|
};
|
|
1234
1234
|
}>;
|
|
1235
|
-
getAll3rdPartyCustomEventProviders(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderListAllParams, "filterBy.providerType">, fetchOptions?:
|
|
1235
|
+
getAll3rdPartyCustomEventProviders(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderListAllParams, "filterBy.providerType">, fetchOptions?: ky0.Options): Promise<{
|
|
1236
1236
|
embedded: {
|
|
1237
1237
|
providers: {
|
|
1238
1238
|
id: string;
|
|
@@ -1345,7 +1345,7 @@ declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams):
|
|
|
1345
1345
|
};
|
|
1346
1346
|
};
|
|
1347
1347
|
}>;
|
|
1348
|
-
createCommerceEventProvider(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderCreateParams, "providerType">, fetchOptions?:
|
|
1348
|
+
createCommerceEventProvider(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderCreateParams, "providerType">, fetchOptions?: ky0.Options): Promise<{
|
|
1349
1349
|
id: string;
|
|
1350
1350
|
instanceId?: string | undefined;
|
|
1351
1351
|
label: string;
|
|
@@ -1441,7 +1441,7 @@ declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams):
|
|
|
1441
1441
|
} | undefined;
|
|
1442
1442
|
};
|
|
1443
1443
|
}>;
|
|
1444
|
-
create3rdPartyCustomEventProvider(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderCreateParams, "providerType">, fetchOptions?:
|
|
1444
|
+
create3rdPartyCustomEventProvider(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderCreateParams, "providerType">, fetchOptions?: ky0.Options): Promise<{
|
|
1445
1445
|
id: string;
|
|
1446
1446
|
instanceId?: string | undefined;
|
|
1447
1447
|
label: string;
|
|
@@ -1537,7 +1537,7 @@ declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams):
|
|
|
1537
1537
|
} | undefined;
|
|
1538
1538
|
};
|
|
1539
1539
|
}>;
|
|
1540
|
-
getAllEventMetadataForProvider(httpClient: AdobeIoEventsHttpClient, params: GetAllEventMetadataForProviderParams, fetchOptions?:
|
|
1540
|
+
getAllEventMetadataForProvider(httpClient: AdobeIoEventsHttpClient, params: GetAllEventMetadataForProviderParams, fetchOptions?: ky0.Options): Promise<{
|
|
1541
1541
|
embedded: {
|
|
1542
1542
|
description: string;
|
|
1543
1543
|
label: string;
|
|
@@ -1598,7 +1598,7 @@ declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams):
|
|
|
1598
1598
|
};
|
|
1599
1599
|
}[];
|
|
1600
1600
|
}>;
|
|
1601
|
-
getEventMetadataForEventAndProvider(httpClient: AdobeIoEventsHttpClient, params: GetEventMetadataForEventAndProviderParams, fetchOptions?:
|
|
1601
|
+
getEventMetadataForEventAndProvider(httpClient: AdobeIoEventsHttpClient, params: GetEventMetadataForEventAndProviderParams, fetchOptions?: ky0.Options): Promise<{
|
|
1602
1602
|
description: string;
|
|
1603
1603
|
label: string;
|
|
1604
1604
|
eventCode: string;
|
|
@@ -1657,7 +1657,7 @@ declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams):
|
|
|
1657
1657
|
};
|
|
1658
1658
|
};
|
|
1659
1659
|
}>;
|
|
1660
|
-
createEventMetadataForProvider(httpClient: AdobeIoEventsHttpClient, params: CreateEventMetadataForProviderParams, fetchOptions?:
|
|
1660
|
+
createEventMetadataForProvider(httpClient: AdobeIoEventsHttpClient, params: CreateEventMetadataForProviderParams, fetchOptions?: ky0.Options): Promise<{
|
|
1661
1661
|
description: string;
|
|
1662
1662
|
label: string;
|
|
1663
1663
|
eventCode: string;
|
|
@@ -1716,7 +1716,7 @@ declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams):
|
|
|
1716
1716
|
};
|
|
1717
1717
|
};
|
|
1718
1718
|
}>;
|
|
1719
|
-
getAllEventProviders(httpClient: AdobeIoEventsHttpClient, params: EventProviderListAllParams, fetchOptions?:
|
|
1719
|
+
getAllEventProviders(httpClient: AdobeIoEventsHttpClient, params: EventProviderListAllParams, fetchOptions?: ky0.Options): Promise<{
|
|
1720
1720
|
embedded: {
|
|
1721
1721
|
providers: {
|
|
1722
1722
|
id: string;
|
|
@@ -1829,7 +1829,7 @@ declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams):
|
|
|
1829
1829
|
};
|
|
1830
1830
|
};
|
|
1831
1831
|
}>;
|
|
1832
|
-
getEventProviderById(httpClient: AdobeIoEventsHttpClient, params: EventProviderGetByIdParams, fetchOptions?:
|
|
1832
|
+
getEventProviderById(httpClient: AdobeIoEventsHttpClient, params: EventProviderGetByIdParams, fetchOptions?: ky0.Options): Promise<{
|
|
1833
1833
|
id: string;
|
|
1834
1834
|
instanceId?: string | undefined;
|
|
1835
1835
|
label: string;
|
|
@@ -1925,7 +1925,7 @@ declare function createAdobeIoEventsApiClient(params: IoEventsHttpClientParams):
|
|
|
1925
1925
|
} | undefined;
|
|
1926
1926
|
};
|
|
1927
1927
|
}>;
|
|
1928
|
-
createEventProvider(httpClient: AdobeIoEventsHttpClient, params: EventProviderCreateParams, fetchOptions?:
|
|
1928
|
+
createEventProvider(httpClient: AdobeIoEventsHttpClient, params: EventProviderCreateParams, fetchOptions?: ky0.Options): Promise<{
|
|
1929
1929
|
id: string;
|
|
1930
1930
|
instanceId?: string | undefined;
|
|
1931
1931
|
label: string;
|
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.2.
|
|
5
|
+
"version": "0.2.1",
|
|
6
6
|
"private": false,
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=20 <=24"
|
|
@@ -22,14 +22,24 @@
|
|
|
22
22
|
"module": "./dist/es/index.js",
|
|
23
23
|
"types": "./dist/cjs/index.d.cts",
|
|
24
24
|
"exports": {
|
|
25
|
-
"
|
|
25
|
+
"./commerce": {
|
|
26
26
|
"import": {
|
|
27
|
-
"types": "./dist/es/index.d.ts",
|
|
28
|
-
"default": "./dist/es/index.js"
|
|
27
|
+
"types": "./dist/es/commerce/index.d.ts",
|
|
28
|
+
"default": "./dist/es/commerce/index.js"
|
|
29
29
|
},
|
|
30
30
|
"require": {
|
|
31
|
-
"types": "./dist/cjs/index.d.cts",
|
|
32
|
-
"default": "./dist/cjs/index.cjs"
|
|
31
|
+
"types": "./dist/cjs/commerce/index.d.cts",
|
|
32
|
+
"default": "./dist/cjs/commerce/index.cjs"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"./io-events": {
|
|
36
|
+
"import": {
|
|
37
|
+
"types": "./dist/es/io-events/index.d.ts",
|
|
38
|
+
"default": "./dist/es/io-events/index.js"
|
|
39
|
+
},
|
|
40
|
+
"require": {
|
|
41
|
+
"types": "./dist/cjs/io-events/index.d.cts",
|
|
42
|
+
"default": "./dist/cjs/io-events/index.cjs"
|
|
33
43
|
}
|
|
34
44
|
},
|
|
35
45
|
"./package.json": "./package.json"
|
|
@@ -58,9 +68,9 @@
|
|
|
58
68
|
"devDependencies": {
|
|
59
69
|
"msw": "^2.11.1",
|
|
60
70
|
"@aio-commerce-sdk/aio-commerce-lib-api": "0.1.1",
|
|
71
|
+
"@aio-commerce-sdk/config-tsdown": "1.0.0",
|
|
61
72
|
"@aio-commerce-sdk/config-typedoc": "1.0.0",
|
|
62
73
|
"@aio-commerce-sdk/config-typescript": "1.0.0",
|
|
63
|
-
"@aio-commerce-sdk/config-tsdown": "1.0.0",
|
|
64
74
|
"@aio-commerce-sdk/config-vitest": "1.0.0"
|
|
65
75
|
},
|
|
66
76
|
"sideEffects": false,
|