@bringg/dashboard-sdk 8.12.1 → 8.13.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/BringgDashboardSDK.d.ts +0 -3
- package/dist/BringgDashboardSDK.js +0 -3
- package/dist/BringgDashboardSDK.js.map +1 -1
- package/dist/LookUp/lookup-api.d.ts +6 -5
- package/dist/LookUp/lookup-api.js +15 -10
- package/dist/LookUp/lookup-api.js.map +1 -1
- package/dist/Services/ServiceRequest.js +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +16 -181
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +3 -47
- package/dist/bringg-dashboard-sdk.min.js +1 -1
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/package.json +2 -1
- package/dist/AlertConfiguration/AlertConfigurationApi.d.ts +0 -17
- package/dist/AlertConfiguration/AlertConfigurationApi.js +0 -39
- package/dist/AlertConfiguration/AlertConfigurationApi.js.map +0 -1
- package/dist/AlertConfiguration/Entity/AlertConfigurationEntity.d.ts +0 -11
- package/dist/AlertConfiguration/Entity/AlertConfigurationEntity.js +0 -36
- package/dist/AlertConfiguration/Entity/AlertConfigurationEntity.js.map +0 -1
- package/dist/AlertConfiguration/Entity/ConfigurationEntity.d.ts +0 -6
- package/dist/AlertConfiguration/Entity/ConfigurationEntity.js +0 -32
- package/dist/AlertConfiguration/Entity/ConfigurationEntity.js.map +0 -1
- package/dist/AlertConfiguration/Entity/SetEntity.d.ts +0 -6
- package/dist/AlertConfiguration/Entity/SetEntity.js +0 -32
- package/dist/AlertConfiguration/Entity/SetEntity.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bringg/dashboard-sdk",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.13.0",
|
|
4
4
|
"description": "Bringg dashboard SDK",
|
|
5
5
|
"main": "dist/bringg-dashboard-sdk.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
"nock": "^13.3.1",
|
|
81
81
|
"npm-audit-html": "^1.5.0",
|
|
82
82
|
"prettier": "^3.0.1",
|
|
83
|
+
"query-string": "^7.1.3",
|
|
83
84
|
"replace-in-file-webpack-plugin": "^1.0.6",
|
|
84
85
|
"socket.io": "^4.6.2",
|
|
85
86
|
"socket.io-mock": "^1.2.3",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { AlertConfigurationResponse, AlertSetResponse, AlertTemplateResponse, CreateAlertConfigurationRequest, CreateAlertSetRequest, UpdateAlertConfigurationRequest, UpdateAlertSetRequest } from '@bringg/types';
|
|
2
|
-
import Session from '../Services/Identity/Session';
|
|
3
|
-
import { AlertsConfiguration } from './Entity/AlertConfigurationEntity';
|
|
4
|
-
export default class AlertConfigurationApi {
|
|
5
|
-
private alertConfigurationEntity;
|
|
6
|
-
private configurationEntity;
|
|
7
|
-
private alertSetEntity;
|
|
8
|
-
constructor(session: Session);
|
|
9
|
-
getAll(): Promise<AlertsConfiguration>;
|
|
10
|
-
createSet(request: CreateAlertSetRequest): Promise<AlertSetResponse>;
|
|
11
|
-
deleteSet(setId: number): Promise<boolean>;
|
|
12
|
-
updateSet(setId: number, request: UpdateAlertSetRequest): Promise<AlertSetResponse>;
|
|
13
|
-
createAlertConfiguration(request: CreateAlertConfigurationRequest): Promise<AlertConfigurationResponse>;
|
|
14
|
-
deleteAlertConfiguration(configurationId: number): Promise<boolean>;
|
|
15
|
-
updateAlertConfiguration(configurationId: number, request: UpdateAlertConfigurationRequest): Promise<AlertConfigurationResponse>;
|
|
16
|
-
getTemplates(): Promise<AlertTemplateResponse[]>;
|
|
17
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var AlertConfigurationEntity_1 = require("./Entity/AlertConfigurationEntity");
|
|
4
|
-
var ConfigurationEntity_1 = require("./Entity/ConfigurationEntity");
|
|
5
|
-
var SetEntity_1 = require("./Entity/SetEntity");
|
|
6
|
-
var AlertConfigurationApi = /** @class */ (function () {
|
|
7
|
-
function AlertConfigurationApi(session) {
|
|
8
|
-
this.alertConfigurationEntity = new AlertConfigurationEntity_1.default(session);
|
|
9
|
-
this.configurationEntity = new ConfigurationEntity_1.default(session);
|
|
10
|
-
this.alertSetEntity = new SetEntity_1.default(session);
|
|
11
|
-
}
|
|
12
|
-
AlertConfigurationApi.prototype.getAll = function () {
|
|
13
|
-
return this.alertConfigurationEntity.service.getAll();
|
|
14
|
-
};
|
|
15
|
-
AlertConfigurationApi.prototype.createSet = function (request) {
|
|
16
|
-
return this.alertSetEntity.service.create(request);
|
|
17
|
-
};
|
|
18
|
-
AlertConfigurationApi.prototype.deleteSet = function (setId) {
|
|
19
|
-
return this.alertSetEntity.service.delete(setId);
|
|
20
|
-
};
|
|
21
|
-
AlertConfigurationApi.prototype.updateSet = function (setId, request) {
|
|
22
|
-
return this.alertSetEntity.service.patch(setId, request);
|
|
23
|
-
};
|
|
24
|
-
AlertConfigurationApi.prototype.createAlertConfiguration = function (request) {
|
|
25
|
-
return this.configurationEntity.service.create(request);
|
|
26
|
-
};
|
|
27
|
-
AlertConfigurationApi.prototype.deleteAlertConfiguration = function (configurationId) {
|
|
28
|
-
return this.configurationEntity.service.delete(configurationId);
|
|
29
|
-
};
|
|
30
|
-
AlertConfigurationApi.prototype.updateAlertConfiguration = function (configurationId, request) {
|
|
31
|
-
return this.configurationEntity.service.patch(configurationId, request);
|
|
32
|
-
};
|
|
33
|
-
AlertConfigurationApi.prototype.getTemplates = function () {
|
|
34
|
-
return this.alertConfigurationEntity.getTemplates();
|
|
35
|
-
};
|
|
36
|
-
return AlertConfigurationApi;
|
|
37
|
-
}());
|
|
38
|
-
exports.default = AlertConfigurationApi;
|
|
39
|
-
//# sourceMappingURL=AlertConfigurationApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlertConfigurationApi.js","sourceRoot":"","sources":["../../src/AlertConfiguration/AlertConfigurationApi.ts"],"names":[],"mappings":";;AAWA,8EAAkG;AAClG,oEAA+D;AAC/D,gDAA2C;AAE3C;IAKC,+BAAY,OAAgB;QAC3B,IAAI,CAAC,wBAAwB,GAAG,IAAI,kCAAwB,CAAC,OAAO,CAAC,CAAC;QACtE,IAAI,CAAC,mBAAmB,GAAG,IAAI,6BAAmB,CAAC,OAAO,CAAC,CAAC;QAC5D,IAAI,CAAC,cAAc,GAAG,IAAI,mBAAS,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IACM,sCAAM,GAAb;QACC,OAAO,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;IACvD,CAAC;IACM,yCAAS,GAAhB,UAAiB,OAA8B;QAC9C,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACpD,CAAC;IACM,yCAAS,GAAhB,UAAiB,KAAa;QAC7B,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAClD,CAAC;IACM,yCAAS,GAAhB,UAAiB,KAAa,EAAE,OAA8B;QAC7D,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IACM,wDAAwB,GAA/B,UAAgC,OAAwC;QACvE,OAAO,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACzD,CAAC;IACM,wDAAwB,GAA/B,UAAgC,eAAuB;QACtD,OAAO,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IACjE,CAAC;IACM,wDAAwB,GAA/B,UACC,eAAuB,EACvB,OAAwC;QAExC,OAAO,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,KAAK,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IACM,4CAAY,GAAnB;QACC,OAAO,IAAI,CAAC,wBAAwB,CAAC,YAAY,EAAE,CAAC;IACrD,CAAC;IACF,4BAAC;AAAD,CAAC,AArCD,IAqCC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AlertConfigurationResponse, AlertSetResponse, AlertTemplateResponse } from '@bringg/types';
|
|
2
|
-
import StoreEntity from '../../Core/StoreEntity';
|
|
3
|
-
import Session from '../../Services/Identity/Session';
|
|
4
|
-
export type AlertsConfiguration = {
|
|
5
|
-
sets: AlertSetResponse[];
|
|
6
|
-
configurations: AlertConfigurationResponse[];
|
|
7
|
-
};
|
|
8
|
-
export default class AlertConfigurationEntity extends StoreEntity<AlertsConfiguration> {
|
|
9
|
-
constructor(session: Session);
|
|
10
|
-
getTemplates(): Promise<AlertTemplateResponse[]>;
|
|
11
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
var Entity_1 = require("../../Core/Entity");
|
|
19
|
-
var StoreEntity_1 = require("../../Core/StoreEntity");
|
|
20
|
-
var baseRoute = "alerts_configuration";
|
|
21
|
-
var AlertConfigurationEntity = /** @class */ (function (_super) {
|
|
22
|
-
__extends(AlertConfigurationEntity, _super);
|
|
23
|
-
function AlertConfigurationEntity(session) {
|
|
24
|
-
return _super.call(this, {
|
|
25
|
-
session: session,
|
|
26
|
-
entityName: baseRoute,
|
|
27
|
-
routes: [Entity_1.BaseRoutes.Create, Entity_1.BaseRoutes.Delete, Entity_1.BaseRoutes.Update, Entity_1.BaseRoutes.GetAll, Entity_1.BaseRoutes.Patch]
|
|
28
|
-
}) || this;
|
|
29
|
-
}
|
|
30
|
-
AlertConfigurationEntity.prototype.getTemplates = function () {
|
|
31
|
-
return this.service.routeGenerator.get("/".concat(baseRoute, "/templates")).invoke();
|
|
32
|
-
};
|
|
33
|
-
return AlertConfigurationEntity;
|
|
34
|
-
}(StoreEntity_1.default));
|
|
35
|
-
exports.default = AlertConfigurationEntity;
|
|
36
|
-
//# sourceMappingURL=AlertConfigurationEntity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlertConfigurationEntity.js","sourceRoot":"","sources":["../../../src/AlertConfiguration/Entity/AlertConfigurationEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,4CAA+C;AAC/C,sDAAiD;AAGjD,IAAM,SAAS,GAAG,sBAAsB,CAAC;AAOzC;IAAsD,4CAAgC;IACrF,kCAAY,OAAgB;eAC3B,kBAAM;YACL,OAAO,SAAA;YACP,UAAU,EAAE,SAAS;YACrB,MAAM,EAAE,CAAC,mBAAU,CAAC,MAAM,EAAE,mBAAU,CAAC,MAAM,EAAE,mBAAU,CAAC,MAAM,EAAE,mBAAU,CAAC,MAAM,EAAE,mBAAU,CAAC,KAAK,CAAC;SACtG,CAAC;IACH,CAAC;IAED,+CAAY,GAAZ;QACC,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,WAAI,SAAS,eAAY,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5E,CAAC;IACF,+BAAC;AAAD,CAAC,AAZD,CAAsD,qBAAW,GAYhE"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AlertConfigurationResponse } from '@bringg/types';
|
|
2
|
-
import Entity from '../../Core/Entity';
|
|
3
|
-
import Session from '../../Services/Identity/Session';
|
|
4
|
-
export default class ConfigurationEntity extends Entity<AlertConfigurationResponse> {
|
|
5
|
-
constructor(session: Session);
|
|
6
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
var Entity_1 = require("../../Core/Entity");
|
|
19
|
-
var ConfigurationEntity = /** @class */ (function (_super) {
|
|
20
|
-
__extends(ConfigurationEntity, _super);
|
|
21
|
-
function ConfigurationEntity(session) {
|
|
22
|
-
return _super.call(this, {
|
|
23
|
-
session: session,
|
|
24
|
-
entityName: 'configurations',
|
|
25
|
-
routePrefix: 'alerts_configuration',
|
|
26
|
-
routes: [Entity_1.BaseRoutes.Patch, Entity_1.BaseRoutes.Delete, Entity_1.BaseRoutes.Create, Entity_1.BaseRoutes.Update]
|
|
27
|
-
}) || this;
|
|
28
|
-
}
|
|
29
|
-
return ConfigurationEntity;
|
|
30
|
-
}(Entity_1.default));
|
|
31
|
-
exports.default = ConfigurationEntity;
|
|
32
|
-
//# sourceMappingURL=ConfigurationEntity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurationEntity.js","sourceRoot":"","sources":["../../../src/AlertConfiguration/Entity/ConfigurationEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,4CAAuD;AAGvD;IAAiD,uCAAkC;IAClF,6BAAY,OAAgB;eAC3B,kBAAM;YACL,OAAO,SAAA;YACP,UAAU,EAAE,gBAAgB;YAC5B,WAAW,EAAE,sBAAsB;YACnC,MAAM,EAAE,CAAC,mBAAU,CAAC,KAAK,EAAE,mBAAU,CAAC,MAAM,EAAE,mBAAU,CAAC,MAAM,EAAE,mBAAU,CAAC,MAAM,CAAC;SACnF,CAAC;IACH,CAAC;IACF,0BAAC;AAAD,CAAC,AATD,CAAiD,gBAAM,GAStD"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
var Entity_1 = require("../../Core/Entity");
|
|
19
|
-
var SetEntity = /** @class */ (function (_super) {
|
|
20
|
-
__extends(SetEntity, _super);
|
|
21
|
-
function SetEntity(session) {
|
|
22
|
-
return _super.call(this, {
|
|
23
|
-
session: session,
|
|
24
|
-
entityName: 'sets',
|
|
25
|
-
routePrefix: 'alerts_configuration',
|
|
26
|
-
routes: [Entity_1.BaseRoutes.Patch, Entity_1.BaseRoutes.Delete, Entity_1.BaseRoutes.Create, Entity_1.BaseRoutes.Update]
|
|
27
|
-
}) || this;
|
|
28
|
-
}
|
|
29
|
-
return SetEntity;
|
|
30
|
-
}(Entity_1.default));
|
|
31
|
-
exports.default = SetEntity;
|
|
32
|
-
//# sourceMappingURL=SetEntity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SetEntity.js","sourceRoot":"","sources":["../../../src/AlertConfiguration/Entity/SetEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,4CAAuD;AAGvD;IAAuC,6BAAoB;IAC1D,mBAAY,OAAgB;eAC3B,kBAAM;YACL,OAAO,SAAA;YACP,UAAU,EAAE,MAAM;YAClB,WAAW,EAAE,sBAAsB;YACnC,MAAM,EAAE,CAAC,mBAAU,CAAC,KAAK,EAAE,mBAAU,CAAC,MAAM,EAAE,mBAAU,CAAC,MAAM,EAAE,mBAAU,CAAC,MAAM,CAAC;SACnF,CAAC;IACH,CAAC;IACF,gBAAC;AAAD,CAAC,AATD,CAAuC,gBAAM,GAS5C"}
|