arky-sdk 0.3.163 → 0.3.164
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 +0 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -12
- package/dist/index.d.ts +0 -12
- package/dist/index.js +0 -33
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +1 -40
- package/dist/types.d.ts +1 -40
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -891,39 +891,6 @@ var createCmsApi = (apiConfig) => {
|
|
|
891
891
|
`/v1/businesses/${apiConfig.businessId}/nodes/types/${params.nodeType}/variables`,
|
|
892
892
|
options
|
|
893
893
|
);
|
|
894
|
-
},
|
|
895
|
-
/**
|
|
896
|
-
* Send a node to all subscribers (schedule or immediate)
|
|
897
|
-
* @param params.entryId - The node ID to send
|
|
898
|
-
* @param params.subject - Email subject for this send
|
|
899
|
-
* @param params.scheduledAt - Optional unix timestamp to schedule the send
|
|
900
|
-
*/
|
|
901
|
-
async sendNode(params, options) {
|
|
902
|
-
const { entryId, ...body } = params;
|
|
903
|
-
return apiConfig.httpClient.post(
|
|
904
|
-
`/v1/businesses/${apiConfig.businessId}/nodes/${entryId}/send`,
|
|
905
|
-
body,
|
|
906
|
-
options
|
|
907
|
-
);
|
|
908
|
-
},
|
|
909
|
-
/**
|
|
910
|
-
* Cancel a scheduled send
|
|
911
|
-
*/
|
|
912
|
-
async cancelSend(params, options) {
|
|
913
|
-
return apiConfig.httpClient.post(
|
|
914
|
-
`/v1/businesses/${apiConfig.businessId}/nodes/${params.nodeId}/send/${params.sendId}/cancel`,
|
|
915
|
-
{},
|
|
916
|
-
options
|
|
917
|
-
);
|
|
918
|
-
},
|
|
919
|
-
/**
|
|
920
|
-
* Get subscribers for a node
|
|
921
|
-
*/
|
|
922
|
-
async getSubscribers(params, options) {
|
|
923
|
-
return apiConfig.httpClient.get(
|
|
924
|
-
`/v1/businesses/${apiConfig.businessId}/nodes/${params.nodeId}/subscribers`,
|
|
925
|
-
options
|
|
926
|
-
);
|
|
927
894
|
}
|
|
928
895
|
};
|
|
929
896
|
};
|