@bringg/dashboard-sdk 8.14.0 → 8.15.0-pre
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 +2 -3
- package/dist/Workflow/v2/workflows-api.js +11 -19
- package/dist/Workflow/v2/workflows-api.js.map +1 -1
- package/dist/Workflow/v2/workflows-service.d.ts +3 -2
- package/dist/Workflow/v2/workflows-service.js +21 -8
- package/dist/Workflow/v2/workflows-service.js.map +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +33 -28
- 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
|
@@ -53,7 +53,7 @@ var lodash_1 = require("lodash");
|
|
|
53
53
|
var BringgException_1 = require("../Core/BringgException");
|
|
54
54
|
var Logger_1 = require("../Core/Logger");
|
|
55
55
|
var abort_1 = require("../utils/abort");
|
|
56
|
-
var version = '8.
|
|
56
|
+
var version = '8.15.0-pre';
|
|
57
57
|
function logErrorResponse(response) {
|
|
58
58
|
var data = response.data, status = response.status;
|
|
59
59
|
try {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateWorkflowRequest, ManualTriggerRequest, ManualTriggerResponse, PatchWorkflowRequest, TasksManualParams, UpdateWorkflowRequest, WorkflowResponse, WorkflowTemplateResponse } from '@bringg/types';
|
|
1
|
+
import { CreateWorkflowRequest, ManualTriggerRequest, ManualTriggerResponse, PatchWorkflowRequest, TasksManualParams, UpdateWorkflowRequest, WorkflowManualTriggersResponse, 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';
|
|
@@ -6,7 +6,6 @@ export default class WorkflowsApi<T extends DataEntity> {
|
|
|
6
6
|
private readonly workflowStore;
|
|
7
7
|
private readonly workflowsService;
|
|
8
8
|
private readonly storableDataService;
|
|
9
|
-
private manualTriggers;
|
|
10
9
|
private manualTriggersConfig;
|
|
11
10
|
loadAll: <T extends DataEntity>(options?: DataOptions) => Promise<T[]>;
|
|
12
11
|
duplicate: <T extends DataEntity>(id: number, commonOption?: CommonOptions) => Promise<T>;
|
|
@@ -19,7 +18,7 @@ export default class WorkflowsApi<T extends DataEntity> {
|
|
|
19
18
|
getAll(): T[];
|
|
20
19
|
getTemplates(commonOption?: CommonOptions): Promise<WorkflowTemplateResponse[]>;
|
|
21
20
|
manualTrigger(triggerName: string, triggerRequest: ManualTriggerRequest, commonOptions?: CommonOptions): Promise<ManualTriggerResponse[]>;
|
|
22
|
-
getManualTriggers(commonOptions?: CommonOptions): Promise<string[]>;
|
|
23
21
|
syncGetManualTriggersConfig(): TasksManualParams[] | undefined;
|
|
24
22
|
getManualTriggersConfig(commonOptions?: CommonOptions): Promise<TasksManualParams[]>;
|
|
23
|
+
getManualTriggers(commonOptions?: CommonOptions): Promise<WorkflowManualTriggersResponse>;
|
|
25
24
|
}
|
|
@@ -74,25 +74,6 @@ var WorkflowsApi = /** @class */ (function () {
|
|
|
74
74
|
});
|
|
75
75
|
});
|
|
76
76
|
};
|
|
77
|
-
//todo - remove https://bringg.atlassian.net/browse/BRNGG-24362
|
|
78
|
-
WorkflowsApi.prototype.getManualTriggers = function (commonOptions) {
|
|
79
|
-
if (commonOptions === void 0) { commonOptions = {}; }
|
|
80
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
81
|
-
var _a;
|
|
82
|
-
return __generator(this, function (_b) {
|
|
83
|
-
switch (_b.label) {
|
|
84
|
-
case 0:
|
|
85
|
-
if (!!this.manualTriggers) return [3 /*break*/, 2];
|
|
86
|
-
_a = this;
|
|
87
|
-
return [4 /*yield*/, this.workflowsService.getManualTriggers(commonOptions)];
|
|
88
|
-
case 1:
|
|
89
|
-
_a.manualTriggers = _b.sent();
|
|
90
|
-
_b.label = 2;
|
|
91
|
-
case 2: return [2 /*return*/, this.manualTriggers];
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
};
|
|
96
77
|
WorkflowsApi.prototype.syncGetManualTriggersConfig = function () {
|
|
97
78
|
return this.manualTriggersConfig;
|
|
98
79
|
};
|
|
@@ -114,6 +95,17 @@ var WorkflowsApi = /** @class */ (function () {
|
|
|
114
95
|
});
|
|
115
96
|
});
|
|
116
97
|
};
|
|
98
|
+
WorkflowsApi.prototype.getManualTriggers = function (commonOptions) {
|
|
99
|
+
if (commonOptions === void 0) { commonOptions = {}; }
|
|
100
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
101
|
+
return __generator(this, function (_a) {
|
|
102
|
+
switch (_a.label) {
|
|
103
|
+
case 0: return [4 /*yield*/, this.workflowsService.getManualTriggersV3(commonOptions)];
|
|
104
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
};
|
|
117
109
|
return WorkflowsApi;
|
|
118
110
|
}());
|
|
119
111
|
exports.default = WorkflowsApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows-api.js","sourceRoot":"","sources":["../../../src/Workflow/v2/workflows-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"workflows-api.js","sourceRoot":"","sources":["../../../src/Workflow/v2/workflows-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,+CAAyC;AAEzC,mEAA4D;AAC5D,qEAA8D;AAC9D,yDAAmD;AAEnD;IAYC,sBAAY,OAAgB,EAAE,MAA+C;QAC5E,IAAI,CAAC,aAAa,GAAG,IAA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C7B,KAAA,IAAI,CAAA;wBAAwB,qBAAM,IAAI,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,aAAa,CAAC,EAAA;;wBAA9F,GAAK,oBAAoB,GAAG,SAAkE,CAAC;;4BAGhG,sBAAO,IAAI,CAAC,oBAAoB,EAAC;;;;KACjC;IAEY,wCAAiB,GAA9B,UAA+B,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;;4BACxD,qBAAM,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,aAAa,CAAC,EAAA;4BAArE,sBAAO,SAA8D,EAAC;;;;KACtE;IACF,mBAAC;AAAD,CAAC,AA9DD,IA8DC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { CreateWorkflowRequest, CreateWorkflowResponse, GetAllWorkflowResponse, ManualTriggerRequest, ManualTriggerResponse, PatchWorkflowRequest, TasksManualParams, UpdateWorkflowRequest, WorkflowTemplateResponse } from '@bringg/types';
|
|
1
|
+
import { CreateWorkflowRequest, CreateWorkflowResponse, GetAllWorkflowResponse, ManualTriggerRequest, ManualTriggerResponse, PatchWorkflowRequest, TasksManualParams, UpdateWorkflowRequest, WorkflowManualTriggersResponse, 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 manualTriggers;
|
|
7
8
|
constructor(session: Session);
|
|
8
9
|
loadAll(commonOptions?: CommonOptions): Promise<GetAllWorkflowResponse>;
|
|
9
10
|
delete(id: number, commonOptions?: CommonOptions): Promise<DELETE_RESPONSE>;
|
|
@@ -13,6 +14,6 @@ export default class WorkflowsService {
|
|
|
13
14
|
duplicate(workflowId: number, commonOptions?: CommonOptions): Promise<CreateWorkflowResponse>;
|
|
14
15
|
getTemplates(commonOptions?: CommonOptions): Promise<WorkflowTemplateResponse[]>;
|
|
15
16
|
manualTrigger(triggerName: string, triggerRequest: ManualTriggerRequest, commonOptions?: CommonOptions): Promise<ManualTriggerResponse[]>;
|
|
16
|
-
getManualTriggers(commonOptions?: CommonOptions): Promise<string[]>;
|
|
17
17
|
getManualTriggersConfig(commonOptions?: CommonOptions): Promise<TasksManualParams[]>;
|
|
18
|
+
getManualTriggersV3(commonOptions?: CommonOptions): Promise<WorkflowManualTriggersResponse>;
|
|
18
19
|
}
|
|
@@ -112,14 +112,6 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
112
112
|
.withCommonOptions(commonOptions)
|
|
113
113
|
.invoke();
|
|
114
114
|
};
|
|
115
|
-
//todo - remove https://bringg.atlassian.net/browse/BRNGG-24362
|
|
116
|
-
WorkflowsService.prototype.getManualTriggers = function (commonOptions) {
|
|
117
|
-
return this.service.routeGenerator
|
|
118
|
-
.get("".concat(baseRoute, "/manual"))
|
|
119
|
-
.setException('failed to get manual triggers')
|
|
120
|
-
.withCommonOptions(commonOptions)
|
|
121
|
-
.invoke();
|
|
122
|
-
};
|
|
123
115
|
WorkflowsService.prototype.getManualTriggersConfig = function (commonOptions) {
|
|
124
116
|
return this.service.routeGenerator
|
|
125
117
|
.get("".concat(baseRoute, "/v2/manual"))
|
|
@@ -127,6 +119,27 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
127
119
|
.withCommonOptions(commonOptions)
|
|
128
120
|
.invoke();
|
|
129
121
|
};
|
|
122
|
+
WorkflowsService.prototype.getManualTriggersV3 = function (commonOptions) {
|
|
123
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
124
|
+
var _a;
|
|
125
|
+
return __generator(this, function (_b) {
|
|
126
|
+
switch (_b.label) {
|
|
127
|
+
case 0:
|
|
128
|
+
if (!!this.manualTriggers) return [3 /*break*/, 2];
|
|
129
|
+
_a = this;
|
|
130
|
+
return [4 /*yield*/, this.service.routeGenerator
|
|
131
|
+
.get("".concat(baseRoute, "/v3/manual"))
|
|
132
|
+
.setException('failed to get manual triggers configuration')
|
|
133
|
+
.withCommonOptions(commonOptions)
|
|
134
|
+
.invoke()];
|
|
135
|
+
case 1:
|
|
136
|
+
_a.manualTriggers = _b.sent();
|
|
137
|
+
_b.label = 2;
|
|
138
|
+
case 2: return [2 /*return*/, this.manualTriggers];
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
};
|
|
130
143
|
return WorkflowsService;
|
|
131
144
|
}());
|
|
132
145
|
exports.default = WorkflowsService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows-service.js","sourceRoot":"","sources":["../../../src/Workflow/v2/workflows-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"workflows-service.js","sourceRoot":"","sources":["../../../src/Workflow/v2/workflows-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,sDAAsE;AAItE,IAAM,UAAU,GAAG,uBAAuB,CAAC;AAC3C,IAAM,SAAS,GAAG,WAAI,UAAU,CAAE,CAAC;AAEnC;IAIC,0BAAY,OAAgB;QAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,qBAAW,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IACrD,CAAC;IAEY,kCAAO,GAApB,UAAqB,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;gBACrD,sBAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,aAAa,CAAC,EAAC;;;KACrD;IAEY,iCAAM,GAAnB,UAAoB,EAAU,EAAE,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;gBAChE,sBAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,aAAa,CAAC,EAAC;;;KACzD;IAEY,iCAAM,GAAnB,UAAoB,EAAU,EAAE,QAA+B,EAAE,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AE,WAAW,EAAE,CAAC;aACtC,WAAW,CAAC,cAAc,CAAC;aAC3B,YAAY,CAAC,oCAA6B,WAAW,CAAE,CAAC;aACxD,iBAAiB,CAAC,aAAa,CAAC;aAChC,MAAM,EAAoD,CAAC;IAC9D,CAAC;IAEM,kDAAuB,GAA9B,UAA+B,aAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc;aAChC,GAAG,CAAC,UAAG,SAAS,eAAY,CAAC;aAC7B,YAAY,CAAC,6CAA6C,CAAC;aAC3D,iBAAiB,CAAC,aAAa,CAAC;aAChC,MAAM,EAA4C,CAAC;IACtD,CAAC;IAEY,8CAAmB,GAAhC,UAAiC,aAA6B;;;;;;6BACzD,CAAC,IAAI,CAAC,cAAc,EAApB,wBAAoB;wBACvB,KAAA,IAAI,CAAA;wBAAkB,qBAAM,IAAI,CAAC,OAAO,CAAC,cAAc;iCACrD,GAAG,CAAC,UAAG,SAAS,eAAY,CAAC;iCAC7B,YAAY,CAAC,6CAA6C,CAAC;iCAC3D,iBAAiB,CAAC,aAAa,CAAC;iCAChC,MAAM,EAAkE,EAAA;;wBAJ1E,GAAK,cAAc,GAAG,SAIoD,CAAC;;4BAG5E,sBAAO,IAAI,CAAC,cAAc,EAAC;;;;KAC3B;IACF,uBAAC;AAAD,CAAC,AA/ED,IA+EC"}
|
|
@@ -20196,7 +20196,7 @@ var lodash_1 = __webpack_require__(96486);
|
|
|
20196
20196
|
var BringgException_1 = __webpack_require__(43605);
|
|
20197
20197
|
var Logger_1 = __webpack_require__(55860);
|
|
20198
20198
|
var abort_1 = __webpack_require__(34179);
|
|
20199
|
-
var version = '8.
|
|
20199
|
+
var version = '8.15.0-pre';
|
|
20200
20200
|
function logErrorResponse(response) {
|
|
20201
20201
|
var data = response.data, status = response.status;
|
|
20202
20202
|
try {
|
|
@@ -28547,25 +28547,6 @@ var WorkflowsApi = /** @class */ (function () {
|
|
|
28547
28547
|
});
|
|
28548
28548
|
});
|
|
28549
28549
|
};
|
|
28550
|
-
//todo - remove https://bringg.atlassian.net/browse/BRNGG-24362
|
|
28551
|
-
WorkflowsApi.prototype.getManualTriggers = function (commonOptions) {
|
|
28552
|
-
if (commonOptions === void 0) { commonOptions = {}; }
|
|
28553
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
28554
|
-
var _a;
|
|
28555
|
-
return __generator(this, function (_b) {
|
|
28556
|
-
switch (_b.label) {
|
|
28557
|
-
case 0:
|
|
28558
|
-
if (!!this.manualTriggers) return [3 /*break*/, 2];
|
|
28559
|
-
_a = this;
|
|
28560
|
-
return [4 /*yield*/, this.workflowsService.getManualTriggers(commonOptions)];
|
|
28561
|
-
case 1:
|
|
28562
|
-
_a.manualTriggers = _b.sent();
|
|
28563
|
-
_b.label = 2;
|
|
28564
|
-
case 2: return [2 /*return*/, this.manualTriggers];
|
|
28565
|
-
}
|
|
28566
|
-
});
|
|
28567
|
-
});
|
|
28568
|
-
};
|
|
28569
28550
|
WorkflowsApi.prototype.syncGetManualTriggersConfig = function () {
|
|
28570
28551
|
return this.manualTriggersConfig;
|
|
28571
28552
|
};
|
|
@@ -28587,6 +28568,17 @@ var WorkflowsApi = /** @class */ (function () {
|
|
|
28587
28568
|
});
|
|
28588
28569
|
});
|
|
28589
28570
|
};
|
|
28571
|
+
WorkflowsApi.prototype.getManualTriggers = function (commonOptions) {
|
|
28572
|
+
if (commonOptions === void 0) { commonOptions = {}; }
|
|
28573
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
28574
|
+
return __generator(this, function (_a) {
|
|
28575
|
+
switch (_a.label) {
|
|
28576
|
+
case 0: return [4 /*yield*/, this.workflowsService.getManualTriggersV3(commonOptions)];
|
|
28577
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
28578
|
+
}
|
|
28579
|
+
});
|
|
28580
|
+
});
|
|
28581
|
+
};
|
|
28590
28582
|
return WorkflowsApi;
|
|
28591
28583
|
}());
|
|
28592
28584
|
exports["default"] = WorkflowsApi;
|
|
@@ -28712,14 +28704,6 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
28712
28704
|
.withCommonOptions(commonOptions)
|
|
28713
28705
|
.invoke();
|
|
28714
28706
|
};
|
|
28715
|
-
//todo - remove https://bringg.atlassian.net/browse/BRNGG-24362
|
|
28716
|
-
WorkflowsService.prototype.getManualTriggers = function (commonOptions) {
|
|
28717
|
-
return this.service.routeGenerator
|
|
28718
|
-
.get("".concat(baseRoute, "/manual"))
|
|
28719
|
-
.setException('failed to get manual triggers')
|
|
28720
|
-
.withCommonOptions(commonOptions)
|
|
28721
|
-
.invoke();
|
|
28722
|
-
};
|
|
28723
28707
|
WorkflowsService.prototype.getManualTriggersConfig = function (commonOptions) {
|
|
28724
28708
|
return this.service.routeGenerator
|
|
28725
28709
|
.get("".concat(baseRoute, "/v2/manual"))
|
|
@@ -28727,6 +28711,27 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
28727
28711
|
.withCommonOptions(commonOptions)
|
|
28728
28712
|
.invoke();
|
|
28729
28713
|
};
|
|
28714
|
+
WorkflowsService.prototype.getManualTriggersV3 = function (commonOptions) {
|
|
28715
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
28716
|
+
var _a;
|
|
28717
|
+
return __generator(this, function (_b) {
|
|
28718
|
+
switch (_b.label) {
|
|
28719
|
+
case 0:
|
|
28720
|
+
if (!!this.manualTriggers) return [3 /*break*/, 2];
|
|
28721
|
+
_a = this;
|
|
28722
|
+
return [4 /*yield*/, this.service.routeGenerator
|
|
28723
|
+
.get("".concat(baseRoute, "/v3/manual"))
|
|
28724
|
+
.setException('failed to get manual triggers configuration')
|
|
28725
|
+
.withCommonOptions(commonOptions)
|
|
28726
|
+
.invoke()];
|
|
28727
|
+
case 1:
|
|
28728
|
+
_a.manualTriggers = _b.sent();
|
|
28729
|
+
_b.label = 2;
|
|
28730
|
+
case 2: return [2 /*return*/, this.manualTriggers];
|
|
28731
|
+
}
|
|
28732
|
+
});
|
|
28733
|
+
});
|
|
28734
|
+
};
|
|
28730
28735
|
return WorkflowsService;
|
|
28731
28736
|
}());
|
|
28732
28737
|
exports["default"] = WorkflowsService;
|