arky-sdk 0.4.51 → 0.4.52
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 +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -284,6 +284,10 @@ 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>;
|
|
287
291
|
};
|
|
288
292
|
shipping: {
|
|
289
293
|
getRates(params: GetShippingRatesParams, options?: RequestOptions): Promise<{
|
package/dist/index.d.ts
CHANGED
|
@@ -284,6 +284,10 @@ 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>;
|
|
287
291
|
};
|
|
288
292
|
shipping: {
|
|
289
293
|
getRates(params: GetShippingRatesParams, options?: RequestOptions): Promise<{
|
package/dist/index.js
CHANGED
|
@@ -1318,6 +1318,13 @@ 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
|
+
);
|
|
1321
1328
|
}
|
|
1322
1329
|
};
|
|
1323
1330
|
};
|