@bringg/dashboard-sdk 8.0.3 → 8.0.4-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/ExclusionWindow/v2/exclusion-window-api.d.ts +3 -3
- package/dist/ExclusionWindow/v2/exclusion-window-api.js.map +1 -1
- package/dist/ExclusionWindow/v2/exclusion-window-service.d.ts +3 -3
- package/dist/ExclusionWindow/v2/exclusion-window-service.js +2 -2
- package/dist/ExclusionWindow/v2/exclusion-window-service.js.map +1 -1
- package/dist/ExclusionWindow/v2/exclusion-window.consts.d.ts +4 -0
- package/dist/ExclusionWindow/v2/exclusion-window.consts.js.map +1 -1
- package/dist/Services/ServiceRequest.js +1 -1
- package/dist/Workflow/v2/workflows-api.d.ts +3 -1
- package/dist/Workflow/v2/workflows-api.js +20 -0
- package/dist/Workflow/v2/workflows-api.js.map +1 -1
- package/dist/Workflow/v2/workflows-service.d.ts +2 -1
- package/dist/Workflow/v2/workflows-service.js +9 -0
- package/dist/Workflow/v2/workflows-service.js.map +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +114 -84
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +5 -5
- package/dist/bringg-dashboard-sdk.min.js +5 -5
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/package.json +2 -2
|
@@ -2,13 +2,13 @@ import { ExclusionWindow } from '@bringg/types';
|
|
|
2
2
|
import { BasicResponse } from '../../Core/Responses';
|
|
3
3
|
import { DataEntity, DataOptions, GroupValue } from '../../data-entity';
|
|
4
4
|
import Session from '../../Services/Identity/Session';
|
|
5
|
-
import { CreateExclusionWindowsRequest, ExclusionWindowsFilterGroups, LoadAllExclusionWindowRequest, UpdateExclusionWindowsRequest } from './exclusion-window.consts';
|
|
5
|
+
import { CreateExclusionWindowsRequest, ExclusionWindowsFilterGroups, LoadAllExclusionWindowRequest, RangeExclusionWindowRequest, UpdateExclusionWindowsRequest } from './exclusion-window.consts';
|
|
6
6
|
export declare class ExclusionWindowApi {
|
|
7
7
|
private readonly exclusionWindowStore;
|
|
8
8
|
private readonly exclusionWindowService;
|
|
9
9
|
private readonly storableDataService;
|
|
10
|
-
loadAllByTeam: <T extends DataEntity>(request: LoadAllExclusionWindowRequest, options?: DataOptions) => Promise<ExclusionWindow[]>;
|
|
11
|
-
loadAllWithoutTeam: <T extends DataEntity>(options?: DataOptions) => Promise<ExclusionWindow[]>;
|
|
10
|
+
loadAllByTeam: <T extends DataEntity>(request: LoadAllExclusionWindowRequest & RangeExclusionWindowRequest, options?: DataOptions) => Promise<ExclusionWindow[]>;
|
|
11
|
+
loadAllWithoutTeam: <T extends DataEntity>(request?: RangeExclusionWindowRequest, options?: DataOptions) => Promise<ExclusionWindow[]>;
|
|
12
12
|
create: (request: CreateExclusionWindowsRequest) => Promise<ExclusionWindow>;
|
|
13
13
|
createMany: (request: CreateExclusionWindowsRequest[]) => Promise<ExclusionWindow[]>;
|
|
14
14
|
update: (id: number, request: UpdateExclusionWindowsRequest) => Promise<ExclusionWindow>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exclusion-window-api.js","sourceRoot":"","sources":["../../../src/ExclusionWindow/v2/exclusion-window-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,+CAAyC;AAEzC,mEAA4D;AAC5D,qEAA8D;AAC9D,
|
|
1
|
+
{"version":3,"file":"exclusion-window-api.js","sourceRoot":"","sources":["../../../src/ExclusionWindow/v2/exclusion-window-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,+CAAyC;AAEzC,mEAA4D;AAC5D,qEAA8D;AAC9D,qEAMmC;AACnC,uEAAgE;AAEhE;IAkBC,4BAAY,OAAgB;QAC3B,IAAM,YAAY,GAAG;YACpB;gBACC,SAAS,EAAE,sDAA4B,CAAC,IAAI;gBAC5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,CAAC,EAAE,CAAC,CAAC;IAC1C,CAAC;IAEM,qCAAQ,GAAf,UAAgB,GAAa;QAA7B,iBAEC;QADA,OAAO,GAAG,CAAC,GAAG,CAAC,UAAC,EAAE,IAAK,OAAA,KAAI,CAAC,GAAG,CAAC,EAAE,CAAC,EAAZ,CAAY,CAAC,CAAC;IACtC,CAAC;IAEM,mCAAM,GAAb;QACC,OAAO,IAAI,CAAC,oBAAoB,CAAC,MAAM,EAAE,CAAC;IAC3C,CAAC;IAEM,sCAAS,GAAhB;QACC,IAAI,CAAC,oBAAoB,CAAC,SAAS,EAAE,CAAC;IACvC,CAAC;IAEM,qCAAQ,GAAf,UAAgB,KAAmC,EAAE,UAAsB;QAC1E,OAAO,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAC9D,CAAC;IACF,yBAAC;AAAD,CAAC,AApFD,IAoFC;AApFY,gDAAkB"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ExclusionWindow } from '@bringg/types';
|
|
2
2
|
import { BasicResponse } from '../../Core/Responses';
|
|
3
3
|
import Session from '../../Services/Identity/Session';
|
|
4
|
-
import { CreateExclusionWindowsRequest, LoadAllExclusionWindowRequest, UpdateExclusionWindowsRequest } from './exclusion-window.consts';
|
|
4
|
+
import { CreateExclusionWindowsRequest, LoadAllExclusionWindowRequest, RangeExclusionWindowRequest, UpdateExclusionWindowsRequest } from './exclusion-window.consts';
|
|
5
5
|
export declare const Routes: {
|
|
6
6
|
COPY_FROM_MERCHANT: string;
|
|
7
7
|
};
|
|
8
8
|
export default class ExclusionWindowService {
|
|
9
9
|
private readonly service;
|
|
10
10
|
constructor(session: Session);
|
|
11
|
-
loadAllByTeam(request: LoadAllExclusionWindowRequest): Promise<ExclusionWindow[]>;
|
|
12
|
-
loadAllWithoutTeam(): Promise<ExclusionWindow[]>;
|
|
11
|
+
loadAllByTeam(request: LoadAllExclusionWindowRequest & RangeExclusionWindowRequest): Promise<ExclusionWindow[]>;
|
|
12
|
+
loadAllWithoutTeam(request?: RangeExclusionWindowRequest): Promise<ExclusionWindow[]>;
|
|
13
13
|
create(request: CreateExclusionWindowsRequest): Promise<ExclusionWindow>;
|
|
14
14
|
createMany(request: CreateExclusionWindowsRequest[]): Promise<ExclusionWindow[]>;
|
|
15
15
|
update(id: number, request: UpdateExclusionWindowsRequest): Promise<ExclusionWindow>;
|
|
@@ -61,12 +61,12 @@ var ExclusionWindowService = /** @class */ (function () {
|
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
|
-
ExclusionWindowService.prototype.loadAllWithoutTeam = function () {
|
|
64
|
+
ExclusionWindowService.prototype.loadAllWithoutTeam = function (request) {
|
|
65
65
|
return __awaiter(this, void 0, void 0, function () {
|
|
66
66
|
var result;
|
|
67
67
|
return __generator(this, function (_a) {
|
|
68
68
|
switch (_a.label) {
|
|
69
|
-
case 0: return [4 /*yield*/, this.service.getAll()];
|
|
69
|
+
case 0: return [4 /*yield*/, this.service.getAll(request)];
|
|
70
70
|
case 1:
|
|
71
71
|
result = _a.sent();
|
|
72
72
|
return [2 /*return*/, result.exclusion_windows];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exclusion-window-service.js","sourceRoot":"","sources":["../../../src/ExclusionWindow/v2/exclusion-window-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAiD;
|
|
1
|
+
{"version":3,"file":"exclusion-window-service.js","sourceRoot":"","sources":["../../../src/ExclusionWindow/v2/exclusion-window-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAiD;AAYjD,IAAM,UAAU,GAAG,mBAAmB,CAAC;AACvC,IAAM,MAAM,GAAG,UAAU,CAAC;AAC1B,IAAM,SAAS,GAAG,WAAI,MAAM,cAAI,UAAU,CAAE,CAAC;AAEhC,QAAA,MAAM,G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O,CAAC,MAAM,CAAC,EAAE,CAAC,EAAC;;;KAC/B;IAEY,iDAAgB,GAA7B,UAA8B,MAAc,EAAE,iBAA0B;;;;;4BAC9B,qBAAM,IAAI,CAAC,OAAO,CAAC,cAAc;6BACxE,IAAI,CAAC,cAAM,CAAC,kBAAkB,CAAC;6BAC/B,eAAe,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,iBAAiB,EAAE,CAAC;6BAC3D,YAAY,CAAC,gDAAgD,CAAC;6BAC9D,MAAM,EAAE,EAAA;;wBAJJ,MAAM,GAA6B,SAI/B;wBAEV,sBAAO,MAAM,CAAC,iBAAiB,EAAC;;;;KAChC;IACF,6BAAC;AAAD,CAAC,AApDD,IAoDC"}
|
|
@@ -10,6 +10,10 @@ export type ExclusionWindowResponse = BasicResponse & {
|
|
|
10
10
|
export type LoadAllExclusionWindowRequest = {
|
|
11
11
|
team_id: number;
|
|
12
12
|
};
|
|
13
|
+
export type RangeExclusionWindowRequest = {
|
|
14
|
+
start_time?: string;
|
|
15
|
+
end_time?: string;
|
|
16
|
+
};
|
|
13
17
|
export type BaseExclusionWindowsRequest = Omit<ExclusionWindowsOmitted, 'id'>;
|
|
14
18
|
export type CreateExclusionWindowsRequest = BaseExclusionWindowsRequest;
|
|
15
19
|
export type UpdateExclusionWindowsRequest = BaseExclusionWindowsRequest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exclusion-window.consts.js","sourceRoot":"","sources":["../../../src/ExclusionWindow/v2/exclusion-window.consts.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"exclusion-window.consts.js","sourceRoot":"","sources":["../../../src/ExclusionWindow/v2/exclusion-window.consts.ts"],"names":[],"mappings":";;;AAyBA,IAAY,4BAEX;AAFD,WAAY,4BAA4B;IACvC,gDAAgB,CAAA;AACjB,CAAC,EAFW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAEvC"}
|
|
@@ -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.0.
|
|
56
|
+
var version = '8.0.4-pre.1';
|
|
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, UpdateWorkflowRequest, WorkflowResponse, WorkflowTemplateResponse } from '@bringg/types';
|
|
1
|
+
import { CreateWorkflowRequest, EventTriggerTasksManualParams, ManualTriggerRequest, ManualTriggerResponse, PatchWorkflowRequest, UpdateWorkflowRequest, 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';
|
|
@@ -7,6 +7,7 @@ export default class WorkflowsApi<T extends DataEntity> {
|
|
|
7
7
|
private readonly workflowsService;
|
|
8
8
|
private readonly storableDataService;
|
|
9
9
|
private manualTriggers;
|
|
10
|
+
private manualTriggersConfig;
|
|
10
11
|
loadAll: <T extends DataEntity>(options?: DataOptions) => Promise<T[]>;
|
|
11
12
|
duplicate: <T extends DataEntity>(id: number, commonOption?: CommonOptions) => Promise<T>;
|
|
12
13
|
delete: (id: number, commonOption?: CommonOptions) => Promise<void>;
|
|
@@ -19,4 +20,5 @@ export default class WorkflowsApi<T extends DataEntity> {
|
|
|
19
20
|
getTemplates(commonOption?: CommonOptions): Promise<WorkflowTemplateResponse[]>;
|
|
20
21
|
manualTrigger(triggerName: string, triggerRequest: ManualTriggerRequest, commonOptions?: CommonOptions): Promise<ManualTriggerResponse>;
|
|
21
22
|
getManualTriggers(commonOptions?: CommonOptions): Promise<string[]>;
|
|
23
|
+
getManualTriggersConfig(commonOptions?: CommonOptions): Promise<EventTriggerTasksManualParams[]>;
|
|
22
24
|
}
|
|
@@ -65,6 +65,7 @@ var WorkflowsApi = /** @class */ (function () {
|
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
67
|
};
|
|
68
|
+
//todo - remove https://bringg.atlassian.net/browse/BRNGG-24362
|
|
68
69
|
WorkflowsApi.prototype.manualTrigger = function (triggerName, triggerRequest, commonOptions) {
|
|
69
70
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
70
71
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -73,6 +74,7 @@ var WorkflowsApi = /** @class */ (function () {
|
|
|
73
74
|
});
|
|
74
75
|
});
|
|
75
76
|
};
|
|
77
|
+
//todo - remove https://bringg.atlassian.net/browse/BRNGG-24362
|
|
76
78
|
WorkflowsApi.prototype.getManualTriggers = function (commonOptions) {
|
|
77
79
|
if (commonOptions === void 0) { commonOptions = {}; }
|
|
78
80
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -91,6 +93,24 @@ var WorkflowsApi = /** @class */ (function () {
|
|
|
91
93
|
});
|
|
92
94
|
});
|
|
93
95
|
};
|
|
96
|
+
WorkflowsApi.prototype.getManualTriggersConfig = function (commonOptions) {
|
|
97
|
+
if (commonOptions === void 0) { commonOptions = {}; }
|
|
98
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
99
|
+
var _a;
|
|
100
|
+
return __generator(this, function (_b) {
|
|
101
|
+
switch (_b.label) {
|
|
102
|
+
case 0:
|
|
103
|
+
if (!!this.manualTriggers) return [3 /*break*/, 2];
|
|
104
|
+
_a = this;
|
|
105
|
+
return [4 /*yield*/, this.workflowsService.getManualTriggersConfig(commonOptions)];
|
|
106
|
+
case 1:
|
|
107
|
+
_a.manualTriggersConfig = _b.sent();
|
|
108
|
+
_b.label = 2;
|
|
109
|
+
case 2: return [2 /*return*/, this.manualTriggersConfig];
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
};
|
|
94
114
|
return WorkflowsApi;
|
|
95
115
|
}());
|
|
96
116
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,+CAAyC;AAEzC,mEAA4D;AAC5D,qEAA8D;AAC9D,yDAAmD;AAEnD;IAaC,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;QAC/E,MAAM,CAAC,MAAM,CACZ,IAAI,EACJ,8BAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,EAAE,IAAI,CAAC,gBAAgB,EAAE;YACzE,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,CAAC;YAClD,MAAM,EAAE,CAAC,QAAQ,CAAC;YAClB,OAAO,EAAE,CAAC,SAAS,CAAC;SACpB,CAAC,CACF,CAAC;IACH,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;IAED,+DAA+D;IAClD,oCAAa,GAA1B,UACC,WAAmB,EACnB,cAAoC,EACpC,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;gBAEjC,sBAAO,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,WAAW,EAAE,cAAc,EAAE,aAAa,CAAC,EAAC;;;KACvF;IAED,+DAA+D;IAClD,wCAAiB,GAA9B,UAA+B,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;;;;6BAC3D,CAAC,IAAI,CAAC,cAAc,EAApB,wBAAoB;wBACvB,KAAA,IAAI,CAAA;wBAAkB,qBAAM,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,aAAa,CAAC,EAAA;;wBAAlF,GAAK,cAAc,GAAG,SAA4D,CAAC;;4BAGpF,sBAAO,IAAI,CAAC,cAAc,EAAC;;;;KAC3B;IAEY,8CAAuB,GAApC,UAAqC,aAAiC;QAAjC,8BAAA,EAAA,kBAAiC;;;;;;6BACjE,CAAC,IAAI,CAAC,cAAc,EAApB,wBAAoB;wBACvB,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;IACF,mBAAC;AAAD,CAAC,AAhED,IAgEC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateWorkflowRequest, CreateWorkflowResponse, GetAllWorkflowResponse, ManualTriggerRequest, ManualTriggerResponse, PatchWorkflowRequest, UpdateWorkflowRequest, WorkflowTemplateResponse } from '@bringg/types';
|
|
1
|
+
import { CreateWorkflowRequest, CreateWorkflowResponse, EventTriggerTasksManualParams, GetAllWorkflowResponse, ManualTriggerRequest, ManualTriggerResponse, PatchWorkflowRequest, UpdateWorkflowRequest, 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';
|
|
@@ -14,4 +14,5 @@ export default class WorkflowsService {
|
|
|
14
14
|
getTemplates(commonOptions?: CommonOptions): Promise<WorkflowTemplateResponse[]>;
|
|
15
15
|
manualTrigger(triggerName: string, triggerRequest: ManualTriggerRequest, commonOptions?: CommonOptions): Promise<ManualTriggerResponse>;
|
|
16
16
|
getManualTriggers(commonOptions?: CommonOptions): Promise<string[]>;
|
|
17
|
+
getManualTriggersConfig(commonOptions?: CommonOptions): Promise<EventTriggerTasksManualParams[]>;
|
|
17
18
|
}
|
|
@@ -102,6 +102,7 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
102
102
|
.withCommonOptions(commonOptions)
|
|
103
103
|
.invoke();
|
|
104
104
|
};
|
|
105
|
+
//todo - remove https://bringg.atlassian.net/browse/BRNGG-24362
|
|
105
106
|
WorkflowsService.prototype.manualTrigger = function (triggerName, triggerRequest, commonOptions) {
|
|
106
107
|
return this.service.routeGenerator
|
|
107
108
|
.post("".concat(baseRoute, "/manual/{:name}"))
|
|
@@ -111,6 +112,7 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
111
112
|
.withCommonOptions(commonOptions)
|
|
112
113
|
.invoke();
|
|
113
114
|
};
|
|
115
|
+
//todo - remove https://bringg.atlassian.net/browse/BRNGG-24362
|
|
114
116
|
WorkflowsService.prototype.getManualTriggers = function (commonOptions) {
|
|
115
117
|
return this.service.routeGenerator
|
|
116
118
|
.get("".concat(baseRoute, "/manual"))
|
|
@@ -118,6 +120,13 @@ var WorkflowsService = /** @class */ (function () {
|
|
|
118
120
|
.withCommonOptions(commonOptions)
|
|
119
121
|
.invoke();
|
|
120
122
|
};
|
|
123
|
+
WorkflowsService.prototype.getManualTriggersConfig = function (commonOptions) {
|
|
124
|
+
return this.service.routeGenerator
|
|
125
|
+
.get("".concat(baseRoute, "/v2/manual"))
|
|
126
|
+
.setException('failed to get manual triggers configuration')
|
|
127
|
+
.withCommonOptions(commonOptions)
|
|
128
|
+
.invoke();
|
|
129
|
+
};
|
|
121
130
|
return WorkflowsService;
|
|
122
131
|
}());
|
|
123
132
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,sDAAsE;AAItE,IAAM,UAAU,GAAG,uBAAuB,CAAC;AAC3C,IAAM,SAAS,GAAG,WAAI,UAAU,CAAE,CAAC;AAEnC;IAGC,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,aAAiC;QAAjC,8BAAA,EAAA,kBAA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