arky-sdk 0.5.15 → 0.5.16
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 +16 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +11 -2
- package/dist/types.d.ts +11 -2
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -763,6 +763,13 @@ var createCmsApi = (apiConfig) => {
|
|
|
763
763
|
params: queryParams
|
|
764
764
|
}
|
|
765
765
|
);
|
|
766
|
+
},
|
|
767
|
+
async generateBlocks(params, options) {
|
|
768
|
+
return apiConfig.httpClient.post(
|
|
769
|
+
`/v1/businesses/${apiConfig.businessId}/nodes/blocks/generate`,
|
|
770
|
+
params,
|
|
771
|
+
options
|
|
772
|
+
);
|
|
766
773
|
}
|
|
767
774
|
};
|
|
768
775
|
};
|
|
@@ -1287,8 +1294,16 @@ var createAudienceApi = (apiConfig) => {
|
|
|
1287
1294
|
);
|
|
1288
1295
|
},
|
|
1289
1296
|
async getAudience(params, options) {
|
|
1297
|
+
let identifier;
|
|
1298
|
+
if (params.id) {
|
|
1299
|
+
identifier = params.id;
|
|
1300
|
+
} else if (params.key) {
|
|
1301
|
+
identifier = `${apiConfig.businessId}:${params.key}`;
|
|
1302
|
+
} else {
|
|
1303
|
+
throw new Error("GetAudienceParams requires id or key");
|
|
1304
|
+
}
|
|
1290
1305
|
return apiConfig.httpClient.get(
|
|
1291
|
-
`/v1/businesses/${apiConfig.businessId}/audiences/${
|
|
1306
|
+
`/v1/businesses/${apiConfig.businessId}/audiences/${identifier}`,
|
|
1292
1307
|
options
|
|
1293
1308
|
);
|
|
1294
1309
|
},
|