@livechat/developer-studio-api 3.1.28 → 3.1.29
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.d.mts +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.js +6 -2
- package/dist/index.mjs +6 -2
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -386,15 +386,20 @@ interface GetTextPlatformDashboardReportParams {
|
|
|
386
386
|
is_source_private?: boolean;
|
|
387
387
|
}
|
|
388
388
|
|
|
389
|
-
type TriggerType = "manual_only" | "recurring" | "one_time";
|
|
389
|
+
type TriggerType = "manual_only" | "recurring" | "one_time" | "webhook";
|
|
390
390
|
type TriggerPayload = {
|
|
391
391
|
type: "manual_only";
|
|
392
392
|
} | {
|
|
393
393
|
type: "recurring";
|
|
394
|
-
schedule: string
|
|
394
|
+
schedule: string;
|
|
395
395
|
} | {
|
|
396
396
|
type: "one_time";
|
|
397
397
|
at: string;
|
|
398
|
+
} | {
|
|
399
|
+
type: "webhook";
|
|
400
|
+
webhook_event: string;
|
|
401
|
+
webhook_source: string;
|
|
402
|
+
webhook_props: Record<string, string>;
|
|
398
403
|
};
|
|
399
404
|
interface WorkflowsDto {
|
|
400
405
|
name: string;
|
|
@@ -412,6 +417,7 @@ interface WorkflowDto {
|
|
|
412
417
|
updated_at: string;
|
|
413
418
|
created_by: string;
|
|
414
419
|
trigger: TriggerPayload;
|
|
420
|
+
third_party_headers: Record<string, string[]>;
|
|
415
421
|
}
|
|
416
422
|
interface WorkflowDefinitionDto {
|
|
417
423
|
name: string;
|
|
@@ -501,10 +507,12 @@ interface CreateWorkflowPayload {
|
|
|
501
507
|
description: string;
|
|
502
508
|
definition: WorkflowDefinitionDto;
|
|
503
509
|
trigger: TriggerPayload;
|
|
510
|
+
third_party_headers: Record<string, string[]>;
|
|
504
511
|
}
|
|
505
512
|
interface GetWorkflowPayload {
|
|
506
513
|
name: string;
|
|
507
514
|
version?: number;
|
|
515
|
+
third_party_headers?: Record<string, string[]>;
|
|
508
516
|
}
|
|
509
517
|
interface WorkflowExecution {
|
|
510
518
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -386,15 +386,20 @@ interface GetTextPlatformDashboardReportParams {
|
|
|
386
386
|
is_source_private?: boolean;
|
|
387
387
|
}
|
|
388
388
|
|
|
389
|
-
type TriggerType = "manual_only" | "recurring" | "one_time";
|
|
389
|
+
type TriggerType = "manual_only" | "recurring" | "one_time" | "webhook";
|
|
390
390
|
type TriggerPayload = {
|
|
391
391
|
type: "manual_only";
|
|
392
392
|
} | {
|
|
393
393
|
type: "recurring";
|
|
394
|
-
schedule: string
|
|
394
|
+
schedule: string;
|
|
395
395
|
} | {
|
|
396
396
|
type: "one_time";
|
|
397
397
|
at: string;
|
|
398
|
+
} | {
|
|
399
|
+
type: "webhook";
|
|
400
|
+
webhook_event: string;
|
|
401
|
+
webhook_source: string;
|
|
402
|
+
webhook_props: Record<string, string>;
|
|
398
403
|
};
|
|
399
404
|
interface WorkflowsDto {
|
|
400
405
|
name: string;
|
|
@@ -412,6 +417,7 @@ interface WorkflowDto {
|
|
|
412
417
|
updated_at: string;
|
|
413
418
|
created_by: string;
|
|
414
419
|
trigger: TriggerPayload;
|
|
420
|
+
third_party_headers: Record<string, string[]>;
|
|
415
421
|
}
|
|
416
422
|
interface WorkflowDefinitionDto {
|
|
417
423
|
name: string;
|
|
@@ -501,10 +507,12 @@ interface CreateWorkflowPayload {
|
|
|
501
507
|
description: string;
|
|
502
508
|
definition: WorkflowDefinitionDto;
|
|
503
509
|
trigger: TriggerPayload;
|
|
510
|
+
third_party_headers: Record<string, string[]>;
|
|
504
511
|
}
|
|
505
512
|
interface GetWorkflowPayload {
|
|
506
513
|
name: string;
|
|
507
514
|
version?: number;
|
|
515
|
+
third_party_headers?: Record<string, string[]>;
|
|
508
516
|
}
|
|
509
517
|
interface WorkflowExecution {
|
|
510
518
|
id: string;
|
package/dist/index.js
CHANGED
|
@@ -2158,9 +2158,13 @@ var textPlatformWorkflowsApi = {
|
|
|
2158
2158
|
return __async(this, null, function* () {
|
|
2159
2159
|
yield textClientInstance.delete(
|
|
2160
2160
|
`/workflow_platform/workflows/${encodeURIComponent(payload.name)}`,
|
|
2161
|
-
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2161
|
+
__spreadProps(__spreadValues({}, getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2162
2162
|
ensureAuthorizationToken: true
|
|
2163
|
-
}))
|
|
2163
|
+
}))), {
|
|
2164
|
+
data: {
|
|
2165
|
+
third_party_headers: payload.third_party_headers
|
|
2166
|
+
}
|
|
2167
|
+
})
|
|
2164
2168
|
);
|
|
2165
2169
|
});
|
|
2166
2170
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -2005,9 +2005,13 @@ var textPlatformWorkflowsApi = {
|
|
|
2005
2005
|
return __async(this, null, function* () {
|
|
2006
2006
|
yield textClientInstance.delete(
|
|
2007
2007
|
`/workflow_platform/workflows/${encodeURIComponent(payload.name)}`,
|
|
2008
|
-
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2008
|
+
__spreadProps(__spreadValues({}, getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2009
2009
|
ensureAuthorizationToken: true
|
|
2010
|
-
}))
|
|
2010
|
+
}))), {
|
|
2011
|
+
data: {
|
|
2012
|
+
third_party_headers: payload.third_party_headers
|
|
2013
|
+
}
|
|
2014
|
+
})
|
|
2011
2015
|
);
|
|
2012
2016
|
});
|
|
2013
2017
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.29",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"@types/node": "^17.0.12",
|
|
21
21
|
"tsup": "^7.1.0",
|
|
22
22
|
"typescript": "^5.1.6",
|
|
23
|
-
"utils": "0.0.4",
|
|
24
23
|
"eslint-config-custom": "0.0.8",
|
|
25
|
-
"tsconfig": "0.0.1"
|
|
24
|
+
"tsconfig": "0.0.1",
|
|
25
|
+
"utils": "0.0.4"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsup",
|