arky-sdk 0.7.61 → 0.7.63
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 +59 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -48
- package/dist/index.d.ts +48 -48
- package/dist/index.js +59 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -148,7 +148,7 @@ declare global {
|
|
|
148
148
|
}
|
|
149
149
|
declare function track(eventName: string, params?: Record<string, any>): void;
|
|
150
150
|
|
|
151
|
-
declare const SDK_VERSION = "0.7.
|
|
151
|
+
declare const SDK_VERSION = "0.7.63";
|
|
152
152
|
declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
|
|
153
153
|
interface ApiConfig {
|
|
154
154
|
httpClient: any;
|
|
@@ -266,38 +266,38 @@ declare function createAdmin(config: HttpClientConfig & {
|
|
|
266
266
|
};
|
|
267
267
|
cms: {
|
|
268
268
|
node: {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
269
|
+
create: (params: CreateNodeParams, options?: RequestOptions) => Promise<any>;
|
|
270
|
+
update: (params: UpdateNodeParams, options?: RequestOptions) => Promise<any>;
|
|
271
|
+
delete: (params: DeleteNodeParams, options?: RequestOptions) => Promise<any>;
|
|
272
|
+
get: (params: GetNodeParams, options?: RequestOptions) => Promise<any>;
|
|
273
|
+
find: (params: GetNodesParams, options?: RequestOptions) => Promise<any>;
|
|
274
|
+
getChildren: (params: GetNodeChildrenParams, options?: RequestOptions) => Promise<any>;
|
|
275
275
|
};
|
|
276
276
|
form: {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
submit(params: SubmitFormParams, options?: RequestOptions)
|
|
283
|
-
getSubmissions(params: GetFormSubmissionsParams, options?: RequestOptions)
|
|
284
|
-
getSubmission(params: GetFormSubmissionParams, options?: RequestOptions)
|
|
285
|
-
updateSubmission(params: UpdateFormSubmissionParams, options?: RequestOptions)
|
|
277
|
+
create: (params: CreateFormParams, options?: RequestOptions) => Promise<any>;
|
|
278
|
+
update: (params: UpdateFormParams, options?: RequestOptions) => Promise<any>;
|
|
279
|
+
delete: (params: DeleteFormParams, options?: RequestOptions) => Promise<any>;
|
|
280
|
+
get: (params: GetFormParams, options?: RequestOptions) => Promise<any>;
|
|
281
|
+
find: (params: GetFormsParams, options?: RequestOptions) => Promise<any>;
|
|
282
|
+
submit: (params: SubmitFormParams, options?: RequestOptions) => Promise<any>;
|
|
283
|
+
getSubmissions: (params: GetFormSubmissionsParams, options?: RequestOptions) => Promise<any>;
|
|
284
|
+
getSubmission: (params: GetFormSubmissionParams, options?: RequestOptions) => Promise<any>;
|
|
285
|
+
updateSubmission: (params: UpdateFormSubmissionParams, options?: RequestOptions) => Promise<any>;
|
|
286
286
|
};
|
|
287
287
|
taxonomy: {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
288
|
+
create: (params: CreateTaxonomyParams, options?: RequestOptions) => Promise<any>;
|
|
289
|
+
update: (params: UpdateTaxonomyParams, options?: RequestOptions) => Promise<any>;
|
|
290
|
+
delete: (params: DeleteTaxonomyParams, options?: RequestOptions) => Promise<any>;
|
|
291
|
+
get: (params: GetTaxonomyParams, options?: RequestOptions) => Promise<any>;
|
|
292
|
+
find: (params: GetTaxonomiesParams, options?: RequestOptions) => Promise<any>;
|
|
293
|
+
getChildren: (params: GetTaxonomyChildrenParams, options?: RequestOptions) => Promise<any>;
|
|
294
294
|
};
|
|
295
295
|
emailTemplate: {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
296
|
+
create: (params: CreateEmailTemplateParams, options?: RequestOptions) => Promise<any>;
|
|
297
|
+
update: (params: UpdateEmailTemplateParams, options?: RequestOptions) => Promise<any>;
|
|
298
|
+
delete: (params: DeleteEmailTemplateParams, options?: RequestOptions) => Promise<any>;
|
|
299
|
+
get: (params: GetEmailTemplateParams, options?: RequestOptions) => Promise<any>;
|
|
300
|
+
find: (params: GetEmailTemplatesParams, options?: RequestOptions) => Promise<any>;
|
|
301
301
|
};
|
|
302
302
|
};
|
|
303
303
|
eshop: {
|
|
@@ -398,30 +398,30 @@ declare function createAdmin(config: HttpClientConfig & {
|
|
|
398
398
|
};
|
|
399
399
|
automation: {
|
|
400
400
|
agent: {
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
sendMessage(params: RunAgentParams, options?: RequestOptions)
|
|
407
|
-
getChats(params: GetAgentChatsParams, options?: RequestOptions)
|
|
408
|
-
getChat(params: GetAgentChatParams, options?: RequestOptions)
|
|
409
|
-
updateChat(params: UpdateAgentChatParams, options?: RequestOptions)
|
|
410
|
-
rateChat(params: RateAgentChatParams, options?: RequestOptions)
|
|
411
|
-
getBusinessChats(params: GetBusinessChatsParams, options?: RequestOptions)
|
|
412
|
-
getChatMessages(params: GetAgentChatParams & {
|
|
401
|
+
create: (params: CreateAgentParams, options?: RequestOptions) => Promise<any>;
|
|
402
|
+
update: (params: UpdateAgentParams, options?: RequestOptions) => Promise<any>;
|
|
403
|
+
delete: (params: DeleteAgentParams, options?: RequestOptions) => Promise<any>;
|
|
404
|
+
get: (params: GetAgentParams, options?: RequestOptions) => Promise<any>;
|
|
405
|
+
find: (params?: GetAgentsParams, options?: RequestOptions) => Promise<any>;
|
|
406
|
+
sendMessage: (params: RunAgentParams, options?: RequestOptions) => Promise<any>;
|
|
407
|
+
getChats: (params: GetAgentChatsParams, options?: RequestOptions) => Promise<any>;
|
|
408
|
+
getChat: (params: GetAgentChatParams, options?: RequestOptions) => Promise<any>;
|
|
409
|
+
updateChat: (params: UpdateAgentChatParams, options?: RequestOptions) => Promise<any>;
|
|
410
|
+
rateChat: (params: RateAgentChatParams, options?: RequestOptions) => Promise<any>;
|
|
411
|
+
getBusinessChats: (params: GetBusinessChatsParams, options?: RequestOptions) => Promise<any>;
|
|
412
|
+
getChatMessages: (params: GetAgentChatParams & {
|
|
413
413
|
limit?: number;
|
|
414
|
-
}, options?: RequestOptions)
|
|
414
|
+
}, options?: RequestOptions) => Promise<any>;
|
|
415
415
|
};
|
|
416
416
|
workflow: {
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
417
|
+
create: (params: CreateWorkflowParams, options?: RequestOptions) => Promise<any>;
|
|
418
|
+
update: (params: UpdateWorkflowParams, options?: RequestOptions) => Promise<any>;
|
|
419
|
+
delete: (params: DeleteWorkflowParams, options?: RequestOptions) => Promise<any>;
|
|
420
|
+
get: (params: GetWorkflowParams, options?: RequestOptions) => Promise<any>;
|
|
421
|
+
find: (params?: GetWorkflowsParams, options?: RequestOptions) => Promise<any>;
|
|
422
|
+
trigger: (params: TriggerWorkflowParams, options?: RequestOptions) => Promise<any>;
|
|
423
|
+
getExecutions: (params: GetWorkflowExecutionsParams, options?: RequestOptions) => Promise<any>;
|
|
424
|
+
getExecution: (params: GetWorkflowExecutionParams, options?: RequestOptions) => Promise<any>;
|
|
425
425
|
};
|
|
426
426
|
};
|
|
427
427
|
analytics: {
|
package/dist/index.d.ts
CHANGED
|
@@ -148,7 +148,7 @@ declare global {
|
|
|
148
148
|
}
|
|
149
149
|
declare function track(eventName: string, params?: Record<string, any>): void;
|
|
150
150
|
|
|
151
|
-
declare const SDK_VERSION = "0.7.
|
|
151
|
+
declare const SDK_VERSION = "0.7.63";
|
|
152
152
|
declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
|
|
153
153
|
interface ApiConfig {
|
|
154
154
|
httpClient: any;
|
|
@@ -266,38 +266,38 @@ declare function createAdmin(config: HttpClientConfig & {
|
|
|
266
266
|
};
|
|
267
267
|
cms: {
|
|
268
268
|
node: {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
269
|
+
create: (params: CreateNodeParams, options?: RequestOptions) => Promise<any>;
|
|
270
|
+
update: (params: UpdateNodeParams, options?: RequestOptions) => Promise<any>;
|
|
271
|
+
delete: (params: DeleteNodeParams, options?: RequestOptions) => Promise<any>;
|
|
272
|
+
get: (params: GetNodeParams, options?: RequestOptions) => Promise<any>;
|
|
273
|
+
find: (params: GetNodesParams, options?: RequestOptions) => Promise<any>;
|
|
274
|
+
getChildren: (params: GetNodeChildrenParams, options?: RequestOptions) => Promise<any>;
|
|
275
275
|
};
|
|
276
276
|
form: {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
submit(params: SubmitFormParams, options?: RequestOptions)
|
|
283
|
-
getSubmissions(params: GetFormSubmissionsParams, options?: RequestOptions)
|
|
284
|
-
getSubmission(params: GetFormSubmissionParams, options?: RequestOptions)
|
|
285
|
-
updateSubmission(params: UpdateFormSubmissionParams, options?: RequestOptions)
|
|
277
|
+
create: (params: CreateFormParams, options?: RequestOptions) => Promise<any>;
|
|
278
|
+
update: (params: UpdateFormParams, options?: RequestOptions) => Promise<any>;
|
|
279
|
+
delete: (params: DeleteFormParams, options?: RequestOptions) => Promise<any>;
|
|
280
|
+
get: (params: GetFormParams, options?: RequestOptions) => Promise<any>;
|
|
281
|
+
find: (params: GetFormsParams, options?: RequestOptions) => Promise<any>;
|
|
282
|
+
submit: (params: SubmitFormParams, options?: RequestOptions) => Promise<any>;
|
|
283
|
+
getSubmissions: (params: GetFormSubmissionsParams, options?: RequestOptions) => Promise<any>;
|
|
284
|
+
getSubmission: (params: GetFormSubmissionParams, options?: RequestOptions) => Promise<any>;
|
|
285
|
+
updateSubmission: (params: UpdateFormSubmissionParams, options?: RequestOptions) => Promise<any>;
|
|
286
286
|
};
|
|
287
287
|
taxonomy: {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
288
|
+
create: (params: CreateTaxonomyParams, options?: RequestOptions) => Promise<any>;
|
|
289
|
+
update: (params: UpdateTaxonomyParams, options?: RequestOptions) => Promise<any>;
|
|
290
|
+
delete: (params: DeleteTaxonomyParams, options?: RequestOptions) => Promise<any>;
|
|
291
|
+
get: (params: GetTaxonomyParams, options?: RequestOptions) => Promise<any>;
|
|
292
|
+
find: (params: GetTaxonomiesParams, options?: RequestOptions) => Promise<any>;
|
|
293
|
+
getChildren: (params: GetTaxonomyChildrenParams, options?: RequestOptions) => Promise<any>;
|
|
294
294
|
};
|
|
295
295
|
emailTemplate: {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
296
|
+
create: (params: CreateEmailTemplateParams, options?: RequestOptions) => Promise<any>;
|
|
297
|
+
update: (params: UpdateEmailTemplateParams, options?: RequestOptions) => Promise<any>;
|
|
298
|
+
delete: (params: DeleteEmailTemplateParams, options?: RequestOptions) => Promise<any>;
|
|
299
|
+
get: (params: GetEmailTemplateParams, options?: RequestOptions) => Promise<any>;
|
|
300
|
+
find: (params: GetEmailTemplatesParams, options?: RequestOptions) => Promise<any>;
|
|
301
301
|
};
|
|
302
302
|
};
|
|
303
303
|
eshop: {
|
|
@@ -398,30 +398,30 @@ declare function createAdmin(config: HttpClientConfig & {
|
|
|
398
398
|
};
|
|
399
399
|
automation: {
|
|
400
400
|
agent: {
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
sendMessage(params: RunAgentParams, options?: RequestOptions)
|
|
407
|
-
getChats(params: GetAgentChatsParams, options?: RequestOptions)
|
|
408
|
-
getChat(params: GetAgentChatParams, options?: RequestOptions)
|
|
409
|
-
updateChat(params: UpdateAgentChatParams, options?: RequestOptions)
|
|
410
|
-
rateChat(params: RateAgentChatParams, options?: RequestOptions)
|
|
411
|
-
getBusinessChats(params: GetBusinessChatsParams, options?: RequestOptions)
|
|
412
|
-
getChatMessages(params: GetAgentChatParams & {
|
|
401
|
+
create: (params: CreateAgentParams, options?: RequestOptions) => Promise<any>;
|
|
402
|
+
update: (params: UpdateAgentParams, options?: RequestOptions) => Promise<any>;
|
|
403
|
+
delete: (params: DeleteAgentParams, options?: RequestOptions) => Promise<any>;
|
|
404
|
+
get: (params: GetAgentParams, options?: RequestOptions) => Promise<any>;
|
|
405
|
+
find: (params?: GetAgentsParams, options?: RequestOptions) => Promise<any>;
|
|
406
|
+
sendMessage: (params: RunAgentParams, options?: RequestOptions) => Promise<any>;
|
|
407
|
+
getChats: (params: GetAgentChatsParams, options?: RequestOptions) => Promise<any>;
|
|
408
|
+
getChat: (params: GetAgentChatParams, options?: RequestOptions) => Promise<any>;
|
|
409
|
+
updateChat: (params: UpdateAgentChatParams, options?: RequestOptions) => Promise<any>;
|
|
410
|
+
rateChat: (params: RateAgentChatParams, options?: RequestOptions) => Promise<any>;
|
|
411
|
+
getBusinessChats: (params: GetBusinessChatsParams, options?: RequestOptions) => Promise<any>;
|
|
412
|
+
getChatMessages: (params: GetAgentChatParams & {
|
|
413
413
|
limit?: number;
|
|
414
|
-
}, options?: RequestOptions)
|
|
414
|
+
}, options?: RequestOptions) => Promise<any>;
|
|
415
415
|
};
|
|
416
416
|
workflow: {
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
417
|
+
create: (params: CreateWorkflowParams, options?: RequestOptions) => Promise<any>;
|
|
418
|
+
update: (params: UpdateWorkflowParams, options?: RequestOptions) => Promise<any>;
|
|
419
|
+
delete: (params: DeleteWorkflowParams, options?: RequestOptions) => Promise<any>;
|
|
420
|
+
get: (params: GetWorkflowParams, options?: RequestOptions) => Promise<any>;
|
|
421
|
+
find: (params?: GetWorkflowsParams, options?: RequestOptions) => Promise<any>;
|
|
422
|
+
trigger: (params: TriggerWorkflowParams, options?: RequestOptions) => Promise<any>;
|
|
423
|
+
getExecutions: (params: GetWorkflowExecutionsParams, options?: RequestOptions) => Promise<any>;
|
|
424
|
+
getExecution: (params: GetWorkflowExecutionParams, options?: RequestOptions) => Promise<any>;
|
|
425
425
|
};
|
|
426
426
|
};
|
|
427
427
|
analytics: {
|
package/dist/index.js
CHANGED
|
@@ -2712,7 +2712,7 @@ function getFirstAvailableFCId(variant, quantity = 1) {
|
|
|
2712
2712
|
}
|
|
2713
2713
|
|
|
2714
2714
|
// src/index.ts
|
|
2715
|
-
var SDK_VERSION = "0.7.
|
|
2715
|
+
var SDK_VERSION = "0.7.63";
|
|
2716
2716
|
var SUPPORTED_FRAMEWORKS = [
|
|
2717
2717
|
"astro",
|
|
2718
2718
|
"react",
|
|
@@ -2813,10 +2813,40 @@ async function createAdmin(config) {
|
|
|
2813
2813
|
platform: platformApi,
|
|
2814
2814
|
shipping: createShippingApi(apiConfig),
|
|
2815
2815
|
cms: {
|
|
2816
|
-
node:
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2816
|
+
node: {
|
|
2817
|
+
create: cmsApi.createNode,
|
|
2818
|
+
update: cmsApi.updateNode,
|
|
2819
|
+
delete: cmsApi.deleteNode,
|
|
2820
|
+
get: cmsApi.getNode,
|
|
2821
|
+
find: cmsApi.getNodes,
|
|
2822
|
+
getChildren: cmsApi.getNodeChildren
|
|
2823
|
+
},
|
|
2824
|
+
form: {
|
|
2825
|
+
create: formApi.createForm,
|
|
2826
|
+
update: formApi.updateForm,
|
|
2827
|
+
delete: formApi.deleteForm,
|
|
2828
|
+
get: formApi.getForm,
|
|
2829
|
+
find: formApi.getForms,
|
|
2830
|
+
submit: formApi.submit,
|
|
2831
|
+
getSubmissions: formApi.getSubmissions,
|
|
2832
|
+
getSubmission: formApi.getSubmission,
|
|
2833
|
+
updateSubmission: formApi.updateSubmission
|
|
2834
|
+
},
|
|
2835
|
+
taxonomy: {
|
|
2836
|
+
create: taxonomyApi.createTaxonomy,
|
|
2837
|
+
update: taxonomyApi.updateTaxonomy,
|
|
2838
|
+
delete: taxonomyApi.deleteTaxonomy,
|
|
2839
|
+
get: taxonomyApi.getTaxonomy,
|
|
2840
|
+
find: taxonomyApi.getTaxonomies,
|
|
2841
|
+
getChildren: taxonomyApi.getTaxonomyChildren
|
|
2842
|
+
},
|
|
2843
|
+
emailTemplate: {
|
|
2844
|
+
create: emailTemplateApi.createEmailTemplate,
|
|
2845
|
+
update: emailTemplateApi.updateEmailTemplate,
|
|
2846
|
+
delete: emailTemplateApi.deleteEmailTemplate,
|
|
2847
|
+
get: emailTemplateApi.getEmailTemplate,
|
|
2848
|
+
find: emailTemplateApi.getEmailTemplates
|
|
2849
|
+
}
|
|
2820
2850
|
},
|
|
2821
2851
|
eshop: {
|
|
2822
2852
|
product: {
|
|
@@ -2889,8 +2919,30 @@ async function createAdmin(config) {
|
|
|
2889
2919
|
reaction: reactionApi
|
|
2890
2920
|
},
|
|
2891
2921
|
automation: {
|
|
2892
|
-
agent:
|
|
2893
|
-
|
|
2922
|
+
agent: {
|
|
2923
|
+
create: agentApi.createAgent,
|
|
2924
|
+
update: agentApi.updateAgent,
|
|
2925
|
+
delete: agentApi.deleteAgent,
|
|
2926
|
+
get: agentApi.getAgent,
|
|
2927
|
+
find: agentApi.getAgents,
|
|
2928
|
+
sendMessage: agentApi.sendMessage,
|
|
2929
|
+
getChats: agentApi.getChats,
|
|
2930
|
+
getChat: agentApi.getChat,
|
|
2931
|
+
updateChat: agentApi.updateChat,
|
|
2932
|
+
rateChat: agentApi.rateChat,
|
|
2933
|
+
getBusinessChats: agentApi.getBusinessChats,
|
|
2934
|
+
getChatMessages: agentApi.getChatMessages
|
|
2935
|
+
},
|
|
2936
|
+
workflow: {
|
|
2937
|
+
create: workflowApi.createWorkflow,
|
|
2938
|
+
update: workflowApi.updateWorkflow,
|
|
2939
|
+
delete: workflowApi.deleteWorkflow,
|
|
2940
|
+
get: workflowApi.getWorkflow,
|
|
2941
|
+
find: workflowApi.getWorkflows,
|
|
2942
|
+
trigger: workflowApi.triggerWorkflow,
|
|
2943
|
+
getExecutions: workflowApi.getWorkflowExecutions,
|
|
2944
|
+
getExecution: workflowApi.getWorkflowExecution
|
|
2945
|
+
}
|
|
2894
2946
|
},
|
|
2895
2947
|
analytics: {
|
|
2896
2948
|
track
|