@bringg/dashboard-sdk 0.4.64 → 0.4.68

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.
Files changed (33) hide show
  1. package/dist/AnalyticsReports/AnalyticsReports.types.d.ts +5 -0
  2. package/dist/AnalyticsReports/AnalyticsReportsApi.d.ts +11 -8
  3. package/dist/AnalyticsReports/AnalyticsReportsApi.js +12 -0
  4. package/dist/AnalyticsReports/AnalyticsReportsApi.js.map +1 -1
  5. package/dist/AnalyticsReports/Entity/AnalyticsReportsEntity.d.ts +9 -5
  6. package/dist/AnalyticsReports/Entity/AnalyticsReportsEntity.js +67 -6
  7. package/dist/AnalyticsReports/Entity/AnalyticsReportsEntity.js.map +1 -1
  8. package/dist/ApplicationTeamConfiguration/ApplicationTeamConfigurationApi.d.ts +9 -0
  9. package/dist/ApplicationTeamConfiguration/ApplicationTeamConfigurationApi.js +77 -0
  10. package/dist/ApplicationTeamConfiguration/ApplicationTeamConfigurationApi.js.map +1 -0
  11. package/dist/ApplicationTeamConfiguration/Entity/ApplicationTeamConfigurationEntity.d.ts +9 -0
  12. package/dist/ApplicationTeamConfiguration/Entity/ApplicationTeamConfigurationEntity.js +107 -0
  13. package/dist/ApplicationTeamConfiguration/Entity/ApplicationTeamConfigurationEntity.js.map +1 -0
  14. package/dist/BringgDashboardSDK.d.ts +4 -0
  15. package/dist/BringgDashboardSDK.js +5 -0
  16. package/dist/BringgDashboardSDK.js.map +1 -1
  17. package/dist/ServicePlans/Entity/ServicePlansEntity.d.ts +8 -0
  18. package/dist/ServicePlans/Entity/ServicePlansEntity.js +83 -0
  19. package/dist/ServicePlans/Entity/ServicePlansEntity.js.map +1 -0
  20. package/dist/ServicePlans/ServicePlans.consts.d.ts +6 -0
  21. package/dist/ServicePlans/ServicePlans.consts.js +8 -0
  22. package/dist/ServicePlans/ServicePlans.consts.js.map +1 -0
  23. package/dist/ServicePlans/ServicePlansApi.d.ts +8 -0
  24. package/dist/ServicePlans/ServicePlansApi.js +17 -0
  25. package/dist/ServicePlans/ServicePlansApi.js.map +1 -0
  26. package/dist/Services/ServiceRequest.js +1 -1
  27. package/dist/bringg-dashboard-sdk-cjs2.js +779 -260
  28. package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
  29. package/dist/bringg-dashboard-sdk.js +103 -12
  30. package/dist/bringg-dashboard-sdk.min.js +2 -2
  31. package/dist/bringg-dashboard-sdk.min.js.map +1 -1
  32. package/dist/stats.json +2628 -1752
  33. package/package.json +87 -87
@@ -0,0 +1,6 @@
1
+ import { ServicePlan } from '@bringg/types';
2
+ export declare type ServicePlansResponse = {
3
+ success: boolean;
4
+ service_plans: ServicePlan[];
5
+ };
6
+ export declare const planningResponseExtractor: (response: ServicePlansResponse) => ServicePlan[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.planningResponseExtractor = void 0;
4
+ var planningResponseExtractor = function (response) {
5
+ return response.service_plans;
6
+ };
7
+ exports.planningResponseExtractor = planningResponseExtractor;
8
+ //# sourceMappingURL=ServicePlans.consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServicePlans.consts.js","sourceRoot":"","sources":["../../src/ServicePlans/ServicePlans.consts.ts"],"names":[],"mappings":";;;AAOO,IAAM,yBAAyB,GAAG,UAAC,QAA8B;IACvE,OAAO,QAAQ,CAAC,aAAa,CAAC;AAC/B,CAAC,CAAC;AAFW,QAAA,yBAAyB,6BAEpC"}
@@ -0,0 +1,8 @@
1
+ import { ServicePlan as ServicePlanType } from '@bringg/types';
2
+ import Session from '../Services/Identity/Session';
3
+ export default class ServicePlansApi {
4
+ private servicePlansEntity;
5
+ constructor(session: Session);
6
+ getAll(): Promise<ServicePlanType[]>;
7
+ get(id: number): Promise<ServicePlanType>;
8
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var ServicePlansEntity_1 = require("./Entity/ServicePlansEntity");
4
+ var ServicePlansApi = /** @class */ (function () {
5
+ function ServicePlansApi(session) {
6
+ this.servicePlansEntity = new ServicePlansEntity_1.default(session);
7
+ }
8
+ ServicePlansApi.prototype.getAll = function () {
9
+ return this.servicePlansEntity.getAll();
10
+ };
11
+ ServicePlansApi.prototype.get = function (id) {
12
+ return this.servicePlansEntity.service.get(id);
13
+ };
14
+ return ServicePlansApi;
15
+ }());
16
+ exports.default = ServicePlansApi;
17
+ //# sourceMappingURL=ServicePlansApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServicePlansApi.js","sourceRoot":"","sources":["../../src/ServicePlans/ServicePlansApi.ts"],"names":[],"mappings":";;AAEA,kEAA6D;AAE7D;IAGC,yBAAY,OAAgB;QAC3B,IAAI,CAAC,kBAAkB,GAAG,IAAI,4BAAkB,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;IAEM,gCAAM,GAAb;QACC,OAAO,IAAI,CAAC,kBAAkB,CAAC,MAAM,EAAE,CAAC;IACzC,CAAC;IAEM,6BAAG,GAAV,UAAW,EAAU;QACpB,OAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAChD,CAAC;IACF,sBAAC;AAAD,CAAC,AAdD,IAcC"}
@@ -52,7 +52,7 @@ var axios_1 = require("axios");
52
52
  var Logger_1 = require("../Core/Logger");
53
53
  var lodash_1 = require("lodash");
54
54
  var BringgException_1 = require("../Core/BringgException");
55
- var version = '0.4.64';
55
+ var version = '0.4.68';
56
56
  function logErrorResponse(response) {
57
57
  var data = response.data, status = response.status;
58
58
  try {