@bringg/dashboard-sdk 9.27.0-pre.0 → 9.27.0-pre.1
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 -2
- package/dist/Workflow/v2/workflows-api.js +4 -4
- package/dist/Workflow/v2/workflows-api.js.map +1 -1
- package/dist/Workflow/v2/workflows-service.d.ts +3 -3
- package/dist/Workflow/v2/workflows-service.js +10 -10
- package/dist/Workflow/v2/workflows-service.js.map +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +15 -15
- 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.27.0-pre.
|
|
59
|
+
var version = '9.27.0-pre.1';
|
|
60
60
|
function logErrorResponse(response) {
|
|
61
61
|
var data = response.data, status = response.status;
|
|
62
62
|
try {
|
|
@@ -16,6 +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
|
-
|
|
20
|
-
|
|
19
|
+
manualTrigger(workflowId: number, triggerRequest: ManualTriggerRequest, commonOptions?: CommonOptions): Promise<ManualTriggerResponse>;
|
|
20
|
+
getManualTriggers(commonOptions?: CommonOptions): Promise<WorkflowManualTriggersResponseV4>;
|
|
21
21
|
}
|
|
@@ -97,20 +97,20 @@ var WorkflowsApi = /** @class */ (function () {
|
|
|
97
97
|
});
|
|
98
98
|
});
|
|
99
99
|
};
|
|
100
|
-
WorkflowsApi.prototype.
|
|
100
|
+
WorkflowsApi.prototype.manualTrigger = function (workflowId, triggerRequest, commonOptions) {
|
|
101
101
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
102
102
|
return __awaiter(this, void 0, void 0, function () {
|
|
103
103
|
return __generator(this, function (_a) {
|
|
104
|
-
return [2 /*return*/, this.workflowsService.
|
|
104
|
+
return [2 /*return*/, this.workflowsService.manualTrigger(workflowId, triggerRequest, commonOptions)];
|
|
105
105
|
});
|
|
106
106
|
});
|
|
107
107
|
};
|
|
108
|
-
WorkflowsApi.prototype.
|
|
108
|
+
WorkflowsApi.prototype.getManualTriggers = function (commonOptions) {
|
|
109
109
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
110
110
|
return __awaiter(this, void 0, void 0, function () {
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
|
-
case 0: return [4 /*yield*/, this.workflowsService.
|
|
113
|
+
case 0: return [4 /*yield*/, this.workflowsService.getManualTriggers(commonOptions)];
|
|
114
114
|
case 1: return [2 /*return*/, _a.sent()];
|
|
115
115
|
}
|
|
116
116
|
});
|
|
@@ -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,M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AA,KAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,QAAQ,EAAE,YAAY,CAAC,EAApD,CAAoD,CAAC,CAAC;IAC9G,CAAC;IAEM,0BAAG,GAAV,UAAW,EAAU;QACpB,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACnC,CAAC;IAEM,6BAAM,GAAb;QACC,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC;IACpC,CAAC;IAEY,mCAAY,GAAzB,UAA0B,YAAgC;QAAhC,6BAAA,EAAA,iBAAgC;;;gBACzD,sBAAO,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,YAAY,CAAC,EAAC;;;KACxD;IAEY,oCAAa,GAA1B,UACC,UAAkB,EAClB,cAAoC,EACpC,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;gBAEjC,sBAAO,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,UAAU,EAAE,cAAc,EAAE,aAAa,CAAC,EAAC;;;KACtF;IAEY,wCAAiB,GAA9B,UAA+B,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;;4BACxD,qBAAM,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,aAAa,CAAC,EAAA;4BAAnE,sBAAO,SAA4D,EAAC;;;;KACpE;IACF,mBAAC;AAAD,CAAC,AA5DD,IA4DC"}
|
|
@@ -4,7 +4,7 @@ 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
|
|
7
|
+
private manualTriggersCache;
|
|
8
8
|
constructor(session: Session);
|
|
9
9
|
loadAll(commonOptions?: CommonOptions): Promise<GetAllWorkflowResponse>;
|
|
10
10
|
delete(id: number, commonOptions?: CommonOptions): Promise<DELETE_RESPONSE>;
|
|
@@ -13,6 +13,6 @@ export default class WorkflowsService {
|
|
|
13
13
|
create(workflow: CreateWorkflowRequest, commonOptions?: CommonOptions): Promise<any>;
|
|
14
14
|
duplicate(workflowId: number, commonOptions?: CommonOptions): Promise<CreateWorkflowResponse>;
|
|
15
15
|
getTemplates(commonOptions?: CommonOptions): Promise<WorkflowTemplateResponse[]>;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
manualTrigger(workflowId: number, triggerRequest: ManualTriggerRequest, commonOptions?: CommonOptions): Promise<ManualTriggerResponse>;
|
|
17
|
+
getManualTriggers(commonOptions?: CommonOptions): Promise<WorkflowManualTriggersResponseV4>;
|
|
18
18
|
}
|
|
@@ -46,7 +46,7 @@ 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.
|
|
49
|
+
this.manualTriggersCache = new cached_item_1.CachedItem();
|
|
50
50
|
}
|
|
51
51
|
WorkflowsService.prototype.loadAll = function (commonOptions) {
|
|
52
52
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
@@ -60,7 +60,7 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
60
60
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
61
61
|
return __awaiter(this, void 0, void 0, function () {
|
|
62
62
|
return __generator(this, function (_a) {
|
|
63
|
-
this.
|
|
63
|
+
this.manualTriggersCache.invalidate();
|
|
64
64
|
return [2 /*return*/, this.service.delete(id, undefined, commonOptions)];
|
|
65
65
|
});
|
|
66
66
|
});
|
|
@@ -69,7 +69,7 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
69
69
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
70
70
|
return __awaiter(this, void 0, void 0, function () {
|
|
71
71
|
return __generator(this, function (_a) {
|
|
72
|
-
this.
|
|
72
|
+
this.manualTriggersCache.invalidate();
|
|
73
73
|
return [2 /*return*/, this.service.update(id, workflow, commonOptions)];
|
|
74
74
|
});
|
|
75
75
|
});
|
|
@@ -78,7 +78,7 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
78
78
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
79
79
|
return __awaiter(this, void 0, void 0, function () {
|
|
80
80
|
return __generator(this, function (_a) {
|
|
81
|
-
this.
|
|
81
|
+
this.manualTriggersCache.invalidate();
|
|
82
82
|
return [2 /*return*/, this.service.patch(id, workflow, commonOptions)];
|
|
83
83
|
});
|
|
84
84
|
});
|
|
@@ -87,7 +87,7 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
87
87
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
88
88
|
return __awaiter(this, void 0, void 0, function () {
|
|
89
89
|
return __generator(this, function (_a) {
|
|
90
|
-
this.
|
|
90
|
+
this.manualTriggersCache.invalidate();
|
|
91
91
|
return [2 /*return*/, this.service.create(workflow, commonOptions)];
|
|
92
92
|
});
|
|
93
93
|
});
|
|
@@ -111,7 +111,7 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
111
111
|
.withCommonOptions(commonOptions)
|
|
112
112
|
.invoke();
|
|
113
113
|
};
|
|
114
|
-
WorkflowsService.prototype.
|
|
114
|
+
WorkflowsService.prototype.manualTrigger = function (workflowId, triggerRequest, commonOptions) {
|
|
115
115
|
return this.service.routeGenerator
|
|
116
116
|
.post("".concat(baseRoute, "/v3/manual/{:workflow_id}"))
|
|
117
117
|
.withRouteParams({ workflow_id: workflowId })
|
|
@@ -120,14 +120,14 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
120
120
|
.withCommonOptions(commonOptions)
|
|
121
121
|
.invoke();
|
|
122
122
|
};
|
|
123
|
-
WorkflowsService.prototype.
|
|
123
|
+
WorkflowsService.prototype.getManualTriggers = function (commonOptions) {
|
|
124
124
|
return __awaiter(this, void 0, void 0, function () {
|
|
125
125
|
var _a, _b;
|
|
126
126
|
return __generator(this, function (_c) {
|
|
127
127
|
switch (_c.label) {
|
|
128
128
|
case 0:
|
|
129
|
-
if (!!this.
|
|
130
|
-
_b = (_a = this.
|
|
129
|
+
if (!!this.manualTriggersCache.isValid()) return [3 /*break*/, 2];
|
|
130
|
+
_b = (_a = this.manualTriggersCache).set;
|
|
131
131
|
return [4 /*yield*/, this.service.routeGenerator
|
|
132
132
|
.get("".concat(baseRoute, "/v4/manual"))
|
|
133
133
|
.setException('failed to get manual triggers configuration')
|
|
@@ -136,7 +136,7 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
136
136
|
case 1:
|
|
137
137
|
_b.apply(_a, [_c.sent()]);
|
|
138
138
|
_c.label = 2;
|
|
139
|
-
case 2: return [2 /*return*/, this.
|
|
139
|
+
case 2: return [2 /*return*/, this.manualTriggersCache.get()];
|
|
140
140
|
}
|
|
141
141
|
});
|
|
142
142
|
});
|
|
@@ -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;IAIC,0BAAY,OAAgB;QAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,qBAAW,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;QACpD,IAAI,CAAC,
|
|
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;IAIC,0BAAY,OAAgB;QAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,qBAAW,CAAC,OAAO,EAAE,UA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AC9E,CAAC;;4BAGH,sBAAO,IAAI,CAAC,mBAAmB,CAAC,GAAG,EAAE,EAAC;;;;KACtC;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.27.0-pre.
|
|
22635
|
+
var version = '9.27.0-pre.1';
|
|
22636
22636
|
function logErrorResponse(response) {
|
|
22637
22637
|
var data = response.data, status = response.status;
|
|
22638
22638
|
try {
|
|
@@ -32427,20 +32427,20 @@ var WorkflowsApi = /** @class */ (function () {
|
|
|
32427
32427
|
});
|
|
32428
32428
|
});
|
|
32429
32429
|
};
|
|
32430
|
-
WorkflowsApi.prototype.
|
|
32430
|
+
WorkflowsApi.prototype.manualTrigger = function (workflowId, triggerRequest, commonOptions) {
|
|
32431
32431
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
32432
32432
|
return __awaiter(this, void 0, void 0, function () {
|
|
32433
32433
|
return __generator(this, function (_a) {
|
|
32434
|
-
return [2 /*return*/, this.workflowsService.
|
|
32434
|
+
return [2 /*return*/, this.workflowsService.manualTrigger(workflowId, triggerRequest, commonOptions)];
|
|
32435
32435
|
});
|
|
32436
32436
|
});
|
|
32437
32437
|
};
|
|
32438
|
-
WorkflowsApi.prototype.
|
|
32438
|
+
WorkflowsApi.prototype.getManualTriggers = function (commonOptions) {
|
|
32439
32439
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
32440
32440
|
return __awaiter(this, void 0, void 0, function () {
|
|
32441
32441
|
return __generator(this, function (_a) {
|
|
32442
32442
|
switch (_a.label) {
|
|
32443
|
-
case 0: return [4 /*yield*/, this.workflowsService.
|
|
32443
|
+
case 0: return [4 /*yield*/, this.workflowsService.getManualTriggers(commonOptions)];
|
|
32444
32444
|
case 1: return [2 /*return*/, _a.sent()];
|
|
32445
32445
|
}
|
|
32446
32446
|
});
|
|
@@ -32505,7 +32505,7 @@ var baseRoute = "/".concat(entityName);
|
|
|
32505
32505
|
var WorkflowsService = /** @class */ (function () {
|
|
32506
32506
|
function WorkflowsService(session) {
|
|
32507
32507
|
this.service = new CrudService_1.default(session, entityName);
|
|
32508
|
-
this.
|
|
32508
|
+
this.manualTriggersCache = new cached_item_1.CachedItem();
|
|
32509
32509
|
}
|
|
32510
32510
|
WorkflowsService.prototype.loadAll = function (commonOptions) {
|
|
32511
32511
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
@@ -32519,7 +32519,7 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
32519
32519
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
32520
32520
|
return __awaiter(this, void 0, void 0, function () {
|
|
32521
32521
|
return __generator(this, function (_a) {
|
|
32522
|
-
this.
|
|
32522
|
+
this.manualTriggersCache.invalidate();
|
|
32523
32523
|
return [2 /*return*/, this.service.delete(id, undefined, commonOptions)];
|
|
32524
32524
|
});
|
|
32525
32525
|
});
|
|
@@ -32528,7 +32528,7 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
32528
32528
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
32529
32529
|
return __awaiter(this, void 0, void 0, function () {
|
|
32530
32530
|
return __generator(this, function (_a) {
|
|
32531
|
-
this.
|
|
32531
|
+
this.manualTriggersCache.invalidate();
|
|
32532
32532
|
return [2 /*return*/, this.service.update(id, workflow, commonOptions)];
|
|
32533
32533
|
});
|
|
32534
32534
|
});
|
|
@@ -32537,7 +32537,7 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
32537
32537
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
32538
32538
|
return __awaiter(this, void 0, void 0, function () {
|
|
32539
32539
|
return __generator(this, function (_a) {
|
|
32540
|
-
this.
|
|
32540
|
+
this.manualTriggersCache.invalidate();
|
|
32541
32541
|
return [2 /*return*/, this.service.patch(id, workflow, commonOptions)];
|
|
32542
32542
|
});
|
|
32543
32543
|
});
|
|
@@ -32546,7 +32546,7 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
32546
32546
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
32547
32547
|
return __awaiter(this, void 0, void 0, function () {
|
|
32548
32548
|
return __generator(this, function (_a) {
|
|
32549
|
-
this.
|
|
32549
|
+
this.manualTriggersCache.invalidate();
|
|
32550
32550
|
return [2 /*return*/, this.service.create(workflow, commonOptions)];
|
|
32551
32551
|
});
|
|
32552
32552
|
});
|
|
@@ -32570,7 +32570,7 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
32570
32570
|
.withCommonOptions(commonOptions)
|
|
32571
32571
|
.invoke();
|
|
32572
32572
|
};
|
|
32573
|
-
WorkflowsService.prototype.
|
|
32573
|
+
WorkflowsService.prototype.manualTrigger = function (workflowId, triggerRequest, commonOptions) {
|
|
32574
32574
|
return this.service.routeGenerator
|
|
32575
32575
|
.post("".concat(baseRoute, "/v3/manual/{:workflow_id}"))
|
|
32576
32576
|
.withRouteParams({ workflow_id: workflowId })
|
|
@@ -32579,14 +32579,14 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
32579
32579
|
.withCommonOptions(commonOptions)
|
|
32580
32580
|
.invoke();
|
|
32581
32581
|
};
|
|
32582
|
-
WorkflowsService.prototype.
|
|
32582
|
+
WorkflowsService.prototype.getManualTriggers = function (commonOptions) {
|
|
32583
32583
|
return __awaiter(this, void 0, void 0, function () {
|
|
32584
32584
|
var _a, _b;
|
|
32585
32585
|
return __generator(this, function (_c) {
|
|
32586
32586
|
switch (_c.label) {
|
|
32587
32587
|
case 0:
|
|
32588
|
-
if (!!this.
|
|
32589
|
-
_b = (_a = this.
|
|
32588
|
+
if (!!this.manualTriggersCache.isValid()) return [3 /*break*/, 2];
|
|
32589
|
+
_b = (_a = this.manualTriggersCache).set;
|
|
32590
32590
|
return [4 /*yield*/, this.service.routeGenerator
|
|
32591
32591
|
.get("".concat(baseRoute, "/v4/manual"))
|
|
32592
32592
|
.setException('failed to get manual triggers configuration')
|
|
@@ -32595,7 +32595,7 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
32595
32595
|
case 1:
|
|
32596
32596
|
_b.apply(_a, [_c.sent()]);
|
|
32597
32597
|
_c.label = 2;
|
|
32598
|
-
case 2: return [2 /*return*/, this.
|
|
32598
|
+
case 2: return [2 /*return*/, this.manualTriggersCache.get()];
|
|
32599
32599
|
}
|
|
32600
32600
|
});
|
|
32601
32601
|
});
|