arky-sdk 0.4.52 → 0.4.60
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/dist/index.cjs +1 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -5
- package/dist/index.d.ts +1 -5
- package/dist/index.js +1 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -116,7 +116,7 @@ declare global {
|
|
|
116
116
|
}
|
|
117
117
|
declare function track(eventName: string, params?: Record<string, any>): void;
|
|
118
118
|
|
|
119
|
-
declare const SDK_VERSION = "0.4.
|
|
119
|
+
declare const SDK_VERSION = "0.4.60";
|
|
120
120
|
declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
|
|
121
121
|
interface ApiConfig {
|
|
122
122
|
httpClient: any;
|
|
@@ -284,10 +284,6 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
284
284
|
}, options?: RequestOptions): Promise<any>;
|
|
285
285
|
getSubscribers(params: GetAudienceSubscribersParams, options?: RequestOptions): Promise<any>;
|
|
286
286
|
revokeSubscription(params: RevokeAudienceSubscriptionParams, options?: RequestOptions): Promise<any>;
|
|
287
|
-
grantSubscription(params: {
|
|
288
|
-
id: string;
|
|
289
|
-
email: string;
|
|
290
|
-
}, options?: RequestOptions): Promise<any>;
|
|
291
287
|
};
|
|
292
288
|
shipping: {
|
|
293
289
|
getRates(params: GetShippingRatesParams, options?: RequestOptions): Promise<{
|
package/dist/index.d.ts
CHANGED
|
@@ -116,7 +116,7 @@ declare global {
|
|
|
116
116
|
}
|
|
117
117
|
declare function track(eventName: string, params?: Record<string, any>): void;
|
|
118
118
|
|
|
119
|
-
declare const SDK_VERSION = "0.4.
|
|
119
|
+
declare const SDK_VERSION = "0.4.60";
|
|
120
120
|
declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
|
|
121
121
|
interface ApiConfig {
|
|
122
122
|
httpClient: any;
|
|
@@ -284,10 +284,6 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
284
284
|
}, options?: RequestOptions): Promise<any>;
|
|
285
285
|
getSubscribers(params: GetAudienceSubscribersParams, options?: RequestOptions): Promise<any>;
|
|
286
286
|
revokeSubscription(params: RevokeAudienceSubscriptionParams, options?: RequestOptions): Promise<any>;
|
|
287
|
-
grantSubscription(params: {
|
|
288
|
-
id: string;
|
|
289
|
-
email: string;
|
|
290
|
-
}, options?: RequestOptions): Promise<any>;
|
|
291
287
|
};
|
|
292
288
|
shipping: {
|
|
293
289
|
getRates(params: GetShippingRatesParams, options?: RequestOptions): Promise<{
|
package/dist/index.js
CHANGED
|
@@ -1318,13 +1318,6 @@ var createAudienceApi = (apiConfig) => {
|
|
|
1318
1318
|
`/v1/businesses/${apiConfig.businessId}/audiences/${params.id}/subscribers/${params.accountId}`,
|
|
1319
1319
|
options
|
|
1320
1320
|
);
|
|
1321
|
-
},
|
|
1322
|
-
async grantSubscription(params, options) {
|
|
1323
|
-
return apiConfig.httpClient.post(
|
|
1324
|
-
`/v1/businesses/${apiConfig.businessId}/audiences/${params.id}/subscribers`,
|
|
1325
|
-
{ email: params.email },
|
|
1326
|
-
options
|
|
1327
|
-
);
|
|
1328
1321
|
}
|
|
1329
1322
|
};
|
|
1330
1323
|
};
|
|
@@ -1675,7 +1668,7 @@ function getFirstAvailableFCId(variant, quantity = 1) {
|
|
|
1675
1668
|
}
|
|
1676
1669
|
|
|
1677
1670
|
// src/index.ts
|
|
1678
|
-
var SDK_VERSION = "0.4.
|
|
1671
|
+
var SDK_VERSION = "0.4.60";
|
|
1679
1672
|
var SUPPORTED_FRAMEWORKS = [
|
|
1680
1673
|
"astro",
|
|
1681
1674
|
"react",
|