@adobe/aio-commerce-lib-events 0.3.2 → 0.3.4
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 +17 -0
- package/dist/cjs/commerce/index.d.cts +13 -13
- package/dist/cjs/io-events/index.d.cts +14 -14
- package/dist/es/commerce/index.d.ts +13 -13
- package/dist/es/io-events/index.d.ts +14 -14
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @adobe/aio-commerce-lib-events
|
|
2
2
|
|
|
3
|
+
## 0.3.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`3c88b74`](https://github.com/adobe/aio-commerce-sdk/commit/3c88b74ccfea0df06514b696ce8797c95e1acc4f)]:
|
|
8
|
+
- @adobe/aio-commerce-lib-auth@0.6.2
|
|
9
|
+
- @adobe/aio-commerce-lib-api@0.3.2
|
|
10
|
+
|
|
11
|
+
## 0.3.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`f05b041`](https://github.com/adobe/aio-commerce-sdk/commit/f05b0413b06a4dea5579a1b16c293aaf8b64ffac), [`f05b041`](https://github.com/adobe/aio-commerce-sdk/commit/f05b0413b06a4dea5579a1b16c293aaf8b64ffac), [`f05b041`](https://github.com/adobe/aio-commerce-sdk/commit/f05b0413b06a4dea5579a1b16c293aaf8b64ffac)]:
|
|
16
|
+
- @adobe/aio-commerce-lib-core@0.5.1
|
|
17
|
+
- @adobe/aio-commerce-lib-auth@0.6.1
|
|
18
|
+
- @adobe/aio-commerce-lib-api@0.3.1
|
|
19
|
+
|
|
3
20
|
## 0.3.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import * as
|
|
15
|
+
import * as _adobe_aio_commerce_lib_api0 from "@adobe/aio-commerce-lib-api";
|
|
16
16
|
import { AdobeCommerceHttpClient, ApiFunction, CommerceHttpClientParams } from "@adobe/aio-commerce-lib-api";
|
|
17
17
|
import { Options } from "@adobe/aio-commerce-lib-api/ky";
|
|
18
18
|
import * as v from "valibot";
|
|
19
19
|
import { CamelCasedPropertiesDeep } from "type-fest";
|
|
20
|
-
import * as
|
|
20
|
+
import * as ky0 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.
|
|
232
|
+
}, v.ObjectIssue | v.BooleanIssue | v.StringIssue | v.RegexIssue<string> | v.EmptyIssue<string> | v.ParseJsonIssue<string> | v.RecordIssue | v.StringifyJsonIssue<{
|
|
233
233
|
[x: string]: unknown;
|
|
234
|
-
}> | v.UnionIssue<v.StringIssue | v.
|
|
234
|
+
}> | v.UnionIssue<v.StringIssue | v.EmptyIssue<string> | v.ParseJsonIssue<string> | v.RecordIssue | 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.
|
|
256
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue | v.StringIssue | v.RegexIssue<string> | v.EmptyIssue<string> | v.ParseJsonIssue<string> | v.RecordIssue | v.StringifyJsonIssue<{
|
|
257
257
|
[x: string]: unknown;
|
|
258
|
-
}> | v.UnionIssue<v.StringIssue | v.
|
|
258
|
+
}> | v.UnionIssue<v.StringIssue | v.EmptyIssue<string> | v.ParseJsonIssue<string> | v.RecordIssue | 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):
|
|
288
|
+
declare function createCommerceEventsApiClient(params: CommerceHttpClientParams): _adobe_aio_commerce_lib_api0.ApiClientRecord<AdobeCommerceHttpClient, {
|
|
289
289
|
updateEventingConfiguration: typeof updateEventingConfiguration;
|
|
290
|
-
getAllEventSubscriptions(httpClient: AdobeCommerceHttpClient, fetchOptions?:
|
|
291
|
-
createEventSubscription(httpClient: AdobeCommerceHttpClient, params: EventSubscriptionCreateParams, fetchOptions?:
|
|
292
|
-
getAllEventProviders(httpClient: AdobeCommerceHttpClient, fetchOptions?:
|
|
293
|
-
getEventProviderById(httpClient: AdobeCommerceHttpClient, params: EventProviderGetByIdParams, fetchOptions?:
|
|
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<{
|
|
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?:
|
|
301
|
+
createEventProvider(httpClient: AdobeCommerceHttpClient, params: EventProviderCreateParams, fetchOptions?: ky0.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):
|
|
315
|
+
declare function createCustomCommerceEventsApiClient<TFunctions extends Record<string, ApiFunction<AdobeCommerceHttpClient, any[], any>>>(params: CommerceHttpClientParams, functions: TFunctions): _adobe_aio_commerce_lib_api0.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 };
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import * as
|
|
15
|
+
import * as _adobe_aio_commerce_lib_api1 from "@adobe/aio-commerce-lib-api";
|
|
16
16
|
import { AdobeIoEventsHttpClient, ApiFunction, IoEventsHttpClientParams } from "@adobe/aio-commerce-lib-api";
|
|
17
17
|
import { Options } from "@adobe/aio-commerce-lib-api/ky";
|
|
18
18
|
import * as v from "valibot";
|
|
19
19
|
import * as type_fest0 from "type-fest";
|
|
20
20
|
import { CamelCasedPropertiesDeep, OmitDeep } from "type-fest";
|
|
21
|
-
import * as
|
|
21
|
+
import * as ky4 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):
|
|
1123
|
-
getAllCommerceEventProviders(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderListAllParams, "filterBy.providerType">, fetchOptions?:
|
|
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<{
|
|
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?:
|
|
1236
|
+
getAll3rdPartyCustomEventProviders(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderListAllParams, "filterBy.providerType">, fetchOptions?: ky4.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?:
|
|
1349
|
+
createCommerceEventProvider(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderCreateParams, "providerType">, fetchOptions?: ky4.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?:
|
|
1445
|
+
create3rdPartyCustomEventProvider(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderCreateParams, "providerType">, fetchOptions?: ky4.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?:
|
|
1541
|
+
getAllEventMetadataForProvider(httpClient: AdobeIoEventsHttpClient, params: GetAllEventMetadataForProviderParams, fetchOptions?: ky4.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?:
|
|
1602
|
+
getEventMetadataForEventAndProvider(httpClient: AdobeIoEventsHttpClient, params: GetEventMetadataForEventAndProviderParams, fetchOptions?: ky4.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?:
|
|
1661
|
+
createEventMetadataForProvider(httpClient: AdobeIoEventsHttpClient, params: CreateEventMetadataForProviderParams, fetchOptions?: ky4.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?:
|
|
1720
|
+
getAllEventProviders(httpClient: AdobeIoEventsHttpClient, params: EventProviderListAllParams, fetchOptions?: ky4.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?:
|
|
1833
|
+
getEventProviderById(httpClient: AdobeIoEventsHttpClient, params: EventProviderGetByIdParams, fetchOptions?: ky4.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?:
|
|
1929
|
+
createEventProvider(httpClient: AdobeIoEventsHttpClient, params: EventProviderCreateParams, fetchOptions?: ky4.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):
|
|
2031
|
+
declare function createCustomAdobeIoEventsApiClient<TFunctions extends Record<string, ApiFunction<AdobeIoEventsHttpClient, any[], any>>>(params: IoEventsHttpClientParams, functions: TFunctions): _adobe_aio_commerce_lib_api1.ApiClientRecord<AdobeIoEventsHttpClient, TFunctions>;
|
|
2032
2032
|
//#endregion
|
|
2033
2033
|
//#region source/io-events/types.d.ts
|
|
2034
2034
|
type HALLink = {
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import * as v from "valibot";
|
|
16
|
-
import * as
|
|
16
|
+
import * as _adobe_aio_commerce_lib_api0 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
|
|
20
|
+
import * as ky0 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.
|
|
232
|
+
}, v.ObjectIssue | v.BooleanIssue | v.StringIssue | v.RegexIssue<string> | v.EmptyIssue<string> | v.ParseJsonIssue<string> | v.RecordIssue | v.StringifyJsonIssue<{
|
|
233
233
|
[x: string]: unknown;
|
|
234
|
-
}> | v.UnionIssue<v.StringIssue | v.
|
|
234
|
+
}> | v.UnionIssue<v.StringIssue | v.EmptyIssue<string> | v.ParseJsonIssue<string> | v.RecordIssue | 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.
|
|
256
|
+
readonly issue: v.ObjectIssue | v.BooleanIssue | v.StringIssue | v.RegexIssue<string> | v.EmptyIssue<string> | v.ParseJsonIssue<string> | v.RecordIssue | v.StringifyJsonIssue<{
|
|
257
257
|
[x: string]: unknown;
|
|
258
|
-
}> | v.UnionIssue<v.StringIssue | v.
|
|
258
|
+
}> | v.UnionIssue<v.StringIssue | v.EmptyIssue<string> | v.ParseJsonIssue<string> | v.RecordIssue | 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):
|
|
288
|
+
declare function createCommerceEventsApiClient(params: CommerceHttpClientParams): _adobe_aio_commerce_lib_api0.ApiClientRecord<AdobeCommerceHttpClient, {
|
|
289
289
|
updateEventingConfiguration: typeof updateEventingConfiguration;
|
|
290
|
-
getAllEventSubscriptions(httpClient: AdobeCommerceHttpClient, fetchOptions?:
|
|
291
|
-
createEventSubscription(httpClient: AdobeCommerceHttpClient, params: EventSubscriptionCreateParams, fetchOptions?:
|
|
292
|
-
getAllEventProviders(httpClient: AdobeCommerceHttpClient, fetchOptions?:
|
|
293
|
-
getEventProviderById(httpClient: AdobeCommerceHttpClient, params: EventProviderGetByIdParams, fetchOptions?:
|
|
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<{
|
|
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?:
|
|
301
|
+
createEventProvider(httpClient: AdobeCommerceHttpClient, params: EventProviderCreateParams, fetchOptions?: ky0.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):
|
|
315
|
+
declare function createCustomCommerceEventsApiClient<TFunctions extends Record<string, ApiFunction<AdobeCommerceHttpClient, any[], any>>>(params: CommerceHttpClientParams, functions: TFunctions): _adobe_aio_commerce_lib_api0.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
|
|
16
|
+
import * as _adobe_aio_commerce_lib_api1 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
|
|
21
|
+
import * as ky4 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):
|
|
1123
|
-
getAllCommerceEventProviders(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderListAllParams, "filterBy.providerType">, fetchOptions?:
|
|
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<{
|
|
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?:
|
|
1236
|
+
getAll3rdPartyCustomEventProviders(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderListAllParams, "filterBy.providerType">, fetchOptions?: ky4.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?:
|
|
1349
|
+
createCommerceEventProvider(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderCreateParams, "providerType">, fetchOptions?: ky4.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?:
|
|
1445
|
+
create3rdPartyCustomEventProvider(httpClient: AdobeIoEventsHttpClient, params: type_fest0.OmitDeep<EventProviderCreateParams, "providerType">, fetchOptions?: ky4.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?:
|
|
1541
|
+
getAllEventMetadataForProvider(httpClient: AdobeIoEventsHttpClient, params: GetAllEventMetadataForProviderParams, fetchOptions?: ky4.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?:
|
|
1602
|
+
getEventMetadataForEventAndProvider(httpClient: AdobeIoEventsHttpClient, params: GetEventMetadataForEventAndProviderParams, fetchOptions?: ky4.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?:
|
|
1661
|
+
createEventMetadataForProvider(httpClient: AdobeIoEventsHttpClient, params: CreateEventMetadataForProviderParams, fetchOptions?: ky4.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?:
|
|
1720
|
+
getAllEventProviders(httpClient: AdobeIoEventsHttpClient, params: EventProviderListAllParams, fetchOptions?: ky4.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?:
|
|
1833
|
+
getEventProviderById(httpClient: AdobeIoEventsHttpClient, params: EventProviderGetByIdParams, fetchOptions?: ky4.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?:
|
|
1929
|
+
createEventProvider(httpClient: AdobeIoEventsHttpClient, params: EventProviderCreateParams, fetchOptions?: ky4.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):
|
|
2031
|
+
declare function createCustomAdobeIoEventsApiClient<TFunctions extends Record<string, ApiFunction<AdobeIoEventsHttpClient, any[], any>>>(params: IoEventsHttpClientParams, functions: TFunctions): _adobe_aio_commerce_lib_api1.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
|
+
"version": "0.3.4",
|
|
6
6
|
"private": false,
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=20 <=24"
|
|
@@ -62,16 +62,16 @@
|
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"valibot": "^1.1.0",
|
|
65
|
-
"@adobe/aio-commerce-lib-auth": "0.6.
|
|
66
|
-
"@adobe/aio-commerce-lib-core": "0.5.
|
|
67
|
-
"@adobe/aio-commerce-lib-api": "0.3.
|
|
65
|
+
"@adobe/aio-commerce-lib-auth": "0.6.2",
|
|
66
|
+
"@adobe/aio-commerce-lib-core": "0.5.1",
|
|
67
|
+
"@adobe/aio-commerce-lib-api": "0.3.2"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"msw": "^2.11.1",
|
|
71
|
-
"@aio-commerce-sdk/config-typedoc": "1.0.0",
|
|
72
71
|
"@aio-commerce-sdk/config-tsdown": "1.0.0",
|
|
73
72
|
"@aio-commerce-sdk/config-typescript": "1.0.0",
|
|
74
|
-
"@aio-commerce-sdk/config-vitest": "1.0.0"
|
|
73
|
+
"@aio-commerce-sdk/config-vitest": "1.0.0",
|
|
74
|
+
"@aio-commerce-sdk/config-typedoc": "1.0.0"
|
|
75
75
|
},
|
|
76
76
|
"sideEffects": false,
|
|
77
77
|
"scripts": {
|