@bringg/dashboard-sdk 9.26.2 → 9.27.0-pre.0
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/Services/ServiceRequest.js +1 -1
- package/dist/Workflow/v2/workflows-api.d.ts +1 -3
- package/dist/Workflow/v2/workflows-api.js +0 -19
- package/dist/Workflow/v2/workflows-api.js.map +1 -1
- package/dist/Workflow/v2/workflows-service.d.ts +1 -4
- package/dist/Workflow/v2/workflows-service.js +0 -35
- package/dist/Workflow/v2/workflows-service.js.map +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +1 -55
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +3 -3
- package/dist/bringg-dashboard-sdk.min.js +1 -1
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -56,7 +56,7 @@ var lodash_1 = require("lodash");
|
|
|
56
56
|
var BringgException_1 = require("../Core/BringgException");
|
|
57
57
|
var Logger_1 = __importDefault(require("../Core/Logger"));
|
|
58
58
|
var abort_1 = require("../utils/abort");
|
|
59
|
-
var version = '9.
|
|
59
|
+
var version = '9.27.0-pre.0';
|
|
60
60
|
function logErrorResponse(response) {
|
|
61
61
|
var data = response.data, status = response.status;
|
|
62
62
|
try {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateWorkflowRequest, ManualTriggerRequest, ManualTriggerResponse, PatchWorkflowRequest, UpdateWorkflowRequest,
|
|
1
|
+
import { CreateWorkflowRequest, ManualTriggerRequest, ManualTriggerResponse, PatchWorkflowRequest, UpdateWorkflowRequest, WorkflowManualTriggersResponseV4, WorkflowResponse, WorkflowTemplateResponse } from '@bringg/types';
|
|
2
2
|
import { CommonOptions } from '../../Core/RouteGenerator';
|
|
3
3
|
import { DataEntity, DataOptions, StorableItemMapper } from '../../data-entity';
|
|
4
4
|
import Session from '../../Services/Identity/Session';
|
|
@@ -16,8 +16,6 @@ export default class WorkflowsApi<T extends DataEntity> {
|
|
|
16
16
|
get(id: number): T;
|
|
17
17
|
getAll(): T[];
|
|
18
18
|
getTemplates(commonOption?: CommonOptions): Promise<WorkflowTemplateResponse[]>;
|
|
19
|
-
manualTrigger(triggerName: string, triggerRequest: ManualTriggerRequest, commonOptions?: CommonOptions): Promise<ManualTriggerResponse>;
|
|
20
19
|
manualTriggerV3(workflowId: number, triggerRequest: ManualTriggerRequest, commonOptions?: CommonOptions): Promise<ManualTriggerResponse>;
|
|
21
|
-
getManualTriggers(commonOptions?: CommonOptions): Promise<WorkflowManualTriggersResponse>;
|
|
22
20
|
getManualTriggersV4(commonOptions?: CommonOptions): Promise<WorkflowManualTriggersResponseV4>;
|
|
23
21
|
}
|
|
@@ -97,14 +97,6 @@ var WorkflowsApi = /** @class */ (function () {
|
|
|
97
97
|
});
|
|
98
98
|
});
|
|
99
99
|
};
|
|
100
|
-
WorkflowsApi.prototype.manualTrigger = function (triggerName, triggerRequest, commonOptions) {
|
|
101
|
-
if (commonOptions === void 0) { commonOptions = {}; }
|
|
102
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
103
|
-
return __generator(this, function (_a) {
|
|
104
|
-
return [2 /*return*/, this.workflowsService.manualTrigger(triggerName, triggerRequest, commonOptions)];
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
};
|
|
108
100
|
WorkflowsApi.prototype.manualTriggerV3 = function (workflowId, triggerRequest, commonOptions) {
|
|
109
101
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
110
102
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -113,17 +105,6 @@ var WorkflowsApi = /** @class */ (function () {
|
|
|
113
105
|
});
|
|
114
106
|
});
|
|
115
107
|
};
|
|
116
|
-
WorkflowsApi.prototype.getManualTriggers = function (commonOptions) {
|
|
117
|
-
if (commonOptions === void 0) { commonOptions = {}; }
|
|
118
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
119
|
-
return __generator(this, function (_a) {
|
|
120
|
-
switch (_a.label) {
|
|
121
|
-
case 0: return [4 /*yield*/, this.workflowsService.getManualTriggersV3(commonOptions)];
|
|
122
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
});
|
|
126
|
-
};
|
|
127
108
|
WorkflowsApi.prototype.getManualTriggersV4 = function (commonOptions) {
|
|
128
109
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
129
110
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows-api.js","sourceRoot":"","sources":["../../../src/Workflow/v2/workflows-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,gEAAyC;AAEzC,sFAA8D;AAC9D,0EAAmD;AAEnD;IAKC,sBAAY,OAAgB,EAAE,MAA+C;QAC5E,IAAI,CAAC,aAAa,GAAG,IAAI,oBAAS,EAAK,CAAC;QACxC,IAAI,CAAC,gBAAgB,GAAG,IAAI,2BAAgB,CAAC,OAAO,CAAC,CAAC;QACtD,IAAI,CAAC,mBAAmB,GAAG,IAAI,+BAAmB,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IAChF,CAAC;IAEM,8BAAO,GAAd,UAAe,OAAqB;QAApC,iBAEC;QADA,OAAO,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,SAAS,EAAE,cAAM,OAAA,KAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,EAAtC,CAAsC,EAAE,OAAO,CAAC,CAAC;IAC3G,CAAC;IAEM,gCAAS,GAAhB,UAAiB,EAAU,EAAE,YAA4B;QAAzD,iBAEC;QADA,OAAO,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,WAAW,EAAE,cAAM,OAAA,KAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,EAAE,EAAE,YAAY,CAAC,EAAjD,CAAiD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A5B,UACC,UAAkB,EAClB,cAAoC,EACpC,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;gBAEjC,sBAAO,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,UAAU,EAAE,cAAc,EAAE,aAAa,CAAC,EAAC;;;KACxF;IAEY,0CAAmB,GAAhC,UAAiC,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;;4BAC1D,qBAAM,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,aAAa,CAAC,EAAA;4BAArE,sBAAO,SAA8D,EAAC;;;;KACtE;IACF,mBAAC;AAAD,CAAC,AA5DD,IA4DC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { CreateWorkflowRequest, CreateWorkflowResponse, GetAllWorkflowResponse, ManualTriggerRequest, ManualTriggerResponse, PatchWorkflowRequest, UpdateWorkflowRequest,
|
|
1
|
+
import { CreateWorkflowRequest, CreateWorkflowResponse, GetAllWorkflowResponse, ManualTriggerRequest, ManualTriggerResponse, PatchWorkflowRequest, UpdateWorkflowRequest, WorkflowManualTriggersResponseV4, WorkflowTemplateResponse } from '@bringg/types';
|
|
2
2
|
import { DELETE_RESPONSE } from '../../Core/CrudService';
|
|
3
3
|
import { CommonOptions } from '../../Core/RouteGenerator';
|
|
4
4
|
import Session from '../../Services/Identity/Session';
|
|
5
5
|
export default class WorkflowsService {
|
|
6
6
|
private readonly service;
|
|
7
|
-
private manualTriggersCache;
|
|
8
7
|
private manualTriggersCacheV4;
|
|
9
8
|
constructor(session: Session);
|
|
10
9
|
loadAll(commonOptions?: CommonOptions): Promise<GetAllWorkflowResponse>;
|
|
@@ -14,8 +13,6 @@ export default class WorkflowsService {
|
|
|
14
13
|
create(workflow: CreateWorkflowRequest, commonOptions?: CommonOptions): Promise<any>;
|
|
15
14
|
duplicate(workflowId: number, commonOptions?: CommonOptions): Promise<CreateWorkflowResponse>;
|
|
16
15
|
getTemplates(commonOptions?: CommonOptions): Promise<WorkflowTemplateResponse[]>;
|
|
17
|
-
manualTrigger(triggerName: string, triggerRequest: ManualTriggerRequest, commonOptions?: CommonOptions): Promise<ManualTriggerResponse>;
|
|
18
16
|
manualTriggerV3(workflowId: number, triggerRequest: ManualTriggerRequest, commonOptions?: CommonOptions): Promise<ManualTriggerResponse>;
|
|
19
|
-
getManualTriggersV3(commonOptions?: CommonOptions): Promise<WorkflowManualTriggersResponse>;
|
|
20
17
|
getManualTriggersV4(commonOptions?: CommonOptions): Promise<WorkflowManualTriggersResponseV4>;
|
|
21
18
|
}
|
|
@@ -46,7 +46,6 @@ var baseRoute = "/".concat(entityName);
|
|
|
46
46
|
var WorkflowsService = /** @class */ (function () {
|
|
47
47
|
function WorkflowsService(session) {
|
|
48
48
|
this.service = new CrudService_1.default(session, entityName);
|
|
49
|
-
this.manualTriggersCache = new cached_item_1.CachedItem();
|
|
50
49
|
this.manualTriggersCacheV4 = new cached_item_1.CachedItem();
|
|
51
50
|
}
|
|
52
51
|
WorkflowsService.prototype.loadAll = function (commonOptions) {
|
|
@@ -61,7 +60,6 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
61
60
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
62
61
|
return __awaiter(this, void 0, void 0, function () {
|
|
63
62
|
return __generator(this, function (_a) {
|
|
64
|
-
this.manualTriggersCache.invalidate();
|
|
65
63
|
this.manualTriggersCacheV4.invalidate();
|
|
66
64
|
return [2 /*return*/, this.service.delete(id, undefined, commonOptions)];
|
|
67
65
|
});
|
|
@@ -71,7 +69,6 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
71
69
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
72
70
|
return __awaiter(this, void 0, void 0, function () {
|
|
73
71
|
return __generator(this, function (_a) {
|
|
74
|
-
this.manualTriggersCache.invalidate();
|
|
75
72
|
this.manualTriggersCacheV4.invalidate();
|
|
76
73
|
return [2 /*return*/, this.service.update(id, workflow, commonOptions)];
|
|
77
74
|
});
|
|
@@ -81,7 +78,6 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
81
78
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
82
79
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
80
|
return __generator(this, function (_a) {
|
|
84
|
-
this.manualTriggersCache.invalidate();
|
|
85
81
|
this.manualTriggersCacheV4.invalidate();
|
|
86
82
|
return [2 /*return*/, this.service.patch(id, workflow, commonOptions)];
|
|
87
83
|
});
|
|
@@ -91,7 +87,6 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
91
87
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
92
88
|
return __awaiter(this, void 0, void 0, function () {
|
|
93
89
|
return __generator(this, function (_a) {
|
|
94
|
-
this.manualTriggersCache.invalidate();
|
|
95
90
|
this.manualTriggersCacheV4.invalidate();
|
|
96
91
|
return [2 /*return*/, this.service.create(workflow, commonOptions)];
|
|
97
92
|
});
|
|
@@ -116,15 +111,6 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
116
111
|
.withCommonOptions(commonOptions)
|
|
117
112
|
.invoke();
|
|
118
113
|
};
|
|
119
|
-
WorkflowsService.prototype.manualTrigger = function (triggerName, triggerRequest, commonOptions) {
|
|
120
|
-
return this.service.routeGenerator
|
|
121
|
-
.post("".concat(baseRoute, "/v2/manual/{:name}"))
|
|
122
|
-
.withRouteParams({ name: triggerName })
|
|
123
|
-
.withPayload(triggerRequest)
|
|
124
|
-
.setException("failed to manual trigger: ".concat(triggerName))
|
|
125
|
-
.withCommonOptions(commonOptions)
|
|
126
|
-
.invoke();
|
|
127
|
-
};
|
|
128
114
|
WorkflowsService.prototype.manualTriggerV3 = function (workflowId, triggerRequest, commonOptions) {
|
|
129
115
|
return this.service.routeGenerator
|
|
130
116
|
.post("".concat(baseRoute, "/v3/manual/{:workflow_id}"))
|
|
@@ -134,27 +120,6 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
134
120
|
.withCommonOptions(commonOptions)
|
|
135
121
|
.invoke();
|
|
136
122
|
};
|
|
137
|
-
WorkflowsService.prototype.getManualTriggersV3 = function (commonOptions) {
|
|
138
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
139
|
-
var _a, _b;
|
|
140
|
-
return __generator(this, function (_c) {
|
|
141
|
-
switch (_c.label) {
|
|
142
|
-
case 0:
|
|
143
|
-
if (!!this.manualTriggersCache.isValid()) return [3 /*break*/, 2];
|
|
144
|
-
_b = (_a = this.manualTriggersCache).set;
|
|
145
|
-
return [4 /*yield*/, this.service.routeGenerator
|
|
146
|
-
.get("".concat(baseRoute, "/v3/manual"))
|
|
147
|
-
.setException('failed to get manual triggers configuration')
|
|
148
|
-
.withCommonOptions(commonOptions)
|
|
149
|
-
.invoke()];
|
|
150
|
-
case 1:
|
|
151
|
-
_b.apply(_a, [_c.sent()]);
|
|
152
|
-
_c.label = 2;
|
|
153
|
-
case 2: return [2 /*return*/, this.manualTriggersCache.get()];
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
});
|
|
157
|
-
};
|
|
158
123
|
WorkflowsService.prototype.getManualTriggersV4 = function (commonOptions) {
|
|
159
124
|
return __awaiter(this, void 0, void 0, function () {
|
|
160
125
|
var _a, _b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows-service.js","sourceRoot":"","sources":["../../../src/Workflow/v2/workflows-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,uEAAsE;AAGtE,uDAAqD;AAErD,IAAM,UAAU,GAAG,uBAAuB,CAAC;AAC3C,IAAM,SAAS,GAAG,WAAI,UAAU,CAAE,CAAC;AAEnC;
|
|
1
|
+
{"version":3,"file":"workflows-service.js","sourceRoot":"","sources":["../../../src/Workflow/v2/workflows-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,uEAAsE;AAGtE,uDAAqD;AAErD,IAAM,UAAU,GAAG,uBAAuB,CAAC;AAC3C,IAAM,S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C;iCAC7B,YAAY,CAAC,6CAA6C,CAAC;iCAC3D,iBAAiB,CAAC,aAAa,CAAC;iCAChC,MAAM,EAAsE,EAAA;;wBAL/E,cACC,SAI8E,EAC9E,CAAC;;4BAGH,sBAAO,IAAI,CAAC,qBAAqB,CAAC,GAAG,EAAE,EAAC;;;;KACxC;IACF,uBAAC;AAAD,CAAC,AAjFD,IAiFC"}
|
|
@@ -22632,7 +22632,7 @@ var lodash_1 = __webpack_require__(96486);
|
|
|
22632
22632
|
var BringgException_1 = __webpack_require__(43605);
|
|
22633
22633
|
var Logger_1 = __importDefault(__webpack_require__(55860));
|
|
22634
22634
|
var abort_1 = __webpack_require__(34179);
|
|
22635
|
-
var version = '9.
|
|
22635
|
+
var version = '9.27.0-pre.0';
|
|
22636
22636
|
function logErrorResponse(response) {
|
|
22637
22637
|
var data = response.data, status = response.status;
|
|
22638
22638
|
try {
|
|
@@ -32427,14 +32427,6 @@ var WorkflowsApi = /** @class */ (function () {
|
|
|
32427
32427
|
});
|
|
32428
32428
|
});
|
|
32429
32429
|
};
|
|
32430
|
-
WorkflowsApi.prototype.manualTrigger = function (triggerName, triggerRequest, commonOptions) {
|
|
32431
|
-
if (commonOptions === void 0) { commonOptions = {}; }
|
|
32432
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
32433
|
-
return __generator(this, function (_a) {
|
|
32434
|
-
return [2 /*return*/, this.workflowsService.manualTrigger(triggerName, triggerRequest, commonOptions)];
|
|
32435
|
-
});
|
|
32436
|
-
});
|
|
32437
|
-
};
|
|
32438
32430
|
WorkflowsApi.prototype.manualTriggerV3 = function (workflowId, triggerRequest, commonOptions) {
|
|
32439
32431
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
32440
32432
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -32443,17 +32435,6 @@ var WorkflowsApi = /** @class */ (function () {
|
|
|
32443
32435
|
});
|
|
32444
32436
|
});
|
|
32445
32437
|
};
|
|
32446
|
-
WorkflowsApi.prototype.getManualTriggers = function (commonOptions) {
|
|
32447
|
-
if (commonOptions === void 0) { commonOptions = {}; }
|
|
32448
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
32449
|
-
return __generator(this, function (_a) {
|
|
32450
|
-
switch (_a.label) {
|
|
32451
|
-
case 0: return [4 /*yield*/, this.workflowsService.getManualTriggersV3(commonOptions)];
|
|
32452
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
32453
|
-
}
|
|
32454
|
-
});
|
|
32455
|
-
});
|
|
32456
|
-
};
|
|
32457
32438
|
WorkflowsApi.prototype.getManualTriggersV4 = function (commonOptions) {
|
|
32458
32439
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
32459
32440
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -32524,7 +32505,6 @@ var baseRoute = "/".concat(entityName);
|
|
|
32524
32505
|
var WorkflowsService = /** @class */ (function () {
|
|
32525
32506
|
function WorkflowsService(session) {
|
|
32526
32507
|
this.service = new CrudService_1.default(session, entityName);
|
|
32527
|
-
this.manualTriggersCache = new cached_item_1.CachedItem();
|
|
32528
32508
|
this.manualTriggersCacheV4 = new cached_item_1.CachedItem();
|
|
32529
32509
|
}
|
|
32530
32510
|
WorkflowsService.prototype.loadAll = function (commonOptions) {
|
|
@@ -32539,7 +32519,6 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
32539
32519
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
32540
32520
|
return __awaiter(this, void 0, void 0, function () {
|
|
32541
32521
|
return __generator(this, function (_a) {
|
|
32542
|
-
this.manualTriggersCache.invalidate();
|
|
32543
32522
|
this.manualTriggersCacheV4.invalidate();
|
|
32544
32523
|
return [2 /*return*/, this.service.delete(id, undefined, commonOptions)];
|
|
32545
32524
|
});
|
|
@@ -32549,7 +32528,6 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
32549
32528
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
32550
32529
|
return __awaiter(this, void 0, void 0, function () {
|
|
32551
32530
|
return __generator(this, function (_a) {
|
|
32552
|
-
this.manualTriggersCache.invalidate();
|
|
32553
32531
|
this.manualTriggersCacheV4.invalidate();
|
|
32554
32532
|
return [2 /*return*/, this.service.update(id, workflow, commonOptions)];
|
|
32555
32533
|
});
|
|
@@ -32559,7 +32537,6 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
32559
32537
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
32560
32538
|
return __awaiter(this, void 0, void 0, function () {
|
|
32561
32539
|
return __generator(this, function (_a) {
|
|
32562
|
-
this.manualTriggersCache.invalidate();
|
|
32563
32540
|
this.manualTriggersCacheV4.invalidate();
|
|
32564
32541
|
return [2 /*return*/, this.service.patch(id, workflow, commonOptions)];
|
|
32565
32542
|
});
|
|
@@ -32569,7 +32546,6 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
32569
32546
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
32570
32547
|
return __awaiter(this, void 0, void 0, function () {
|
|
32571
32548
|
return __generator(this, function (_a) {
|
|
32572
|
-
this.manualTriggersCache.invalidate();
|
|
32573
32549
|
this.manualTriggersCacheV4.invalidate();
|
|
32574
32550
|
return [2 /*return*/, this.service.create(workflow, commonOptions)];
|
|
32575
32551
|
});
|
|
@@ -32594,15 +32570,6 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
32594
32570
|
.withCommonOptions(commonOptions)
|
|
32595
32571
|
.invoke();
|
|
32596
32572
|
};
|
|
32597
|
-
WorkflowsService.prototype.manualTrigger = function (triggerName, triggerRequest, commonOptions) {
|
|
32598
|
-
return this.service.routeGenerator
|
|
32599
|
-
.post("".concat(baseRoute, "/v2/manual/{:name}"))
|
|
32600
|
-
.withRouteParams({ name: triggerName })
|
|
32601
|
-
.withPayload(triggerRequest)
|
|
32602
|
-
.setException("failed to manual trigger: ".concat(triggerName))
|
|
32603
|
-
.withCommonOptions(commonOptions)
|
|
32604
|
-
.invoke();
|
|
32605
|
-
};
|
|
32606
32573
|
WorkflowsService.prototype.manualTriggerV3 = function (workflowId, triggerRequest, commonOptions) {
|
|
32607
32574
|
return this.service.routeGenerator
|
|
32608
32575
|
.post("".concat(baseRoute, "/v3/manual/{:workflow_id}"))
|
|
@@ -32612,27 +32579,6 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
32612
32579
|
.withCommonOptions(commonOptions)
|
|
32613
32580
|
.invoke();
|
|
32614
32581
|
};
|
|
32615
|
-
WorkflowsService.prototype.getManualTriggersV3 = function (commonOptions) {
|
|
32616
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
32617
|
-
var _a, _b;
|
|
32618
|
-
return __generator(this, function (_c) {
|
|
32619
|
-
switch (_c.label) {
|
|
32620
|
-
case 0:
|
|
32621
|
-
if (!!this.manualTriggersCache.isValid()) return [3 /*break*/, 2];
|
|
32622
|
-
_b = (_a = this.manualTriggersCache).set;
|
|
32623
|
-
return [4 /*yield*/, this.service.routeGenerator
|
|
32624
|
-
.get("".concat(baseRoute, "/v3/manual"))
|
|
32625
|
-
.setException('failed to get manual triggers configuration')
|
|
32626
|
-
.withCommonOptions(commonOptions)
|
|
32627
|
-
.invoke()];
|
|
32628
|
-
case 1:
|
|
32629
|
-
_b.apply(_a, [_c.sent()]);
|
|
32630
|
-
_c.label = 2;
|
|
32631
|
-
case 2: return [2 /*return*/, this.manualTriggersCache.get()];
|
|
32632
|
-
}
|
|
32633
|
-
});
|
|
32634
|
-
});
|
|
32635
|
-
};
|
|
32636
32582
|
WorkflowsService.prototype.getManualTriggersV4 = function (commonOptions) {
|
|
32637
32583
|
return __awaiter(this, void 0, void 0, function () {
|
|
32638
32584
|
var _a, _b;
|