@bringg/dashboard-sdk 4.0.6-pre → 4.0.6
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 -2
- package/dist/BringgDashboardSDK.js +0 -2
- package/dist/BringgDashboardSDK.js.map +1 -1
- package/dist/PlannedDeliveryWindows/planned-delivery-windows-api.d.ts +4 -4
- package/dist/PlannedDeliveryWindows/planned-delivery-windows-api.js.map +1 -1
- package/dist/PlannedDeliveryWindows/planned-delivery-windows-service.d.ts +3 -4
- package/dist/PlannedDeliveryWindows/planned-delivery-windows-service.js +5 -17
- package/dist/PlannedDeliveryWindows/planned-delivery-windows-service.js.map +1 -1
- package/dist/PlannedDeliveryWindows/planned-delivery-windows.consts.d.ts +0 -10
- package/dist/PlannedDeliveryWindows/planned-delivery-windows.consts.js +1 -7
- package/dist/PlannedDeliveryWindows/planned-delivery-windows.consts.js.map +1 -1
- package/dist/Services/ServiceRequest.js +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +628 -769
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +5 -31
- package/dist/bringg-dashboard-sdk.min.js +4 -4
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/CustomFilter/CustomFilter.consts.d.ts +0 -9
- package/dist/CustomFilter/CustomFilter.consts.js +0 -3
- package/dist/CustomFilter/CustomFilter.consts.js.map +0 -1
- package/dist/CustomFilter/CustomFilterApi.d.ts +0 -13
- package/dist/CustomFilter/CustomFilterApi.js +0 -75
- package/dist/CustomFilter/CustomFilterApi.js.map +0 -1
- package/dist/CustomFilter/Entity/CustomFilterEntity.d.ts +0 -6
- package/dist/CustomFilter/Entity/CustomFilterEntity.js +0 -32
- package/dist/CustomFilter/Entity/CustomFilterEntity.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,6 @@ export { VehicleGroup } from './Vehicle/Vehicle.consts';
|
|
|
25
25
|
export { PlannedDeliveryWindowsFilterGroups, PlannedDeliveryWindow } from './PlannedDeliveryWindows/planned-delivery-windows.consts';
|
|
26
26
|
export { ServiceAreaFilterGroups } from './ServiceArea/v2/service-area.consts';
|
|
27
27
|
export { default as PlannedDeliveryWindowsApi } from './PlannedDeliveryWindows/planned-delivery-windows-api';
|
|
28
|
-
export { RecurrenceOptions, RecurrenceType } from './PlannedDeliveryWindows/planned-delivery-windows.consts';
|
|
29
28
|
export { ExclusionWindowApi as ExclusionWindowApiV2 } from './ExclusionWindow/v2/exclusion-window-api';
|
|
30
29
|
export { ExclusionWindowsFilterGroups } from './ExclusionWindow/v2/exclusion-window.consts';
|
|
31
30
|
export { ServiceAreaApi } from './ServiceArea/v2/service-area-api';
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.LookupConsts = exports.UploadApi = exports.AbortUtils = exports.RunsApi = exports.TaskRejectReasonsApi = exports.WorkflowsApi = exports.TasksApi = exports.VehiclesApi = exports.ServiceAreaApi = exports.ExclusionWindowsFilterGroups = exports.ExclusionWindowApiV2 = exports.
|
|
17
|
+
exports.LookupConsts = exports.UploadApi = exports.AbortUtils = exports.RunsApi = exports.TaskRejectReasonsApi = exports.WorkflowsApi = exports.TasksApi = exports.VehiclesApi = exports.ServiceAreaApi = exports.ExclusionWindowsFilterGroups = exports.ExclusionWindowApiV2 = exports.PlannedDeliveryWindowsApi = exports.ServiceAreaFilterGroups = exports.PlannedDeliveryWindowsFilterGroups = exports.VehicleGroup = exports.RunStatus = exports.ResourceUploadType = exports.UploadConsts = exports.DeliveryBlockConsts = exports.TagConsts = exports.Responses = exports.ChatConversationConsts = exports.ChatMessageConsts = exports.CrewConsts = exports.DashboardConsts = exports.LanguageConsts = exports.NotificationTemplateConsts = exports.NotificationTypesConsts = exports.PlannedRoutesConsts = exports.ReasonToChangeInventory = exports.RunConsts = exports.TaskInventoryConsts = exports.VehicleTypeConsts = exports.VehicleCategoryConsts = exports.BringgDashboardSDK = void 0;
|
|
18
18
|
__exportStar(require("./BringgDashboardSDK"), exports);
|
|
19
19
|
var BringgDashboardSDK_1 = require("./BringgDashboardSDK");
|
|
20
20
|
Object.defineProperty(exports, "BringgDashboardSDK", { enumerable: true, get: function () { return BringgDashboardSDK_1.BringgDashboardSDK; } });
|
|
@@ -48,8 +48,6 @@ var service_area_consts_1 = require("./ServiceArea/v2/service-area.consts");
|
|
|
48
48
|
Object.defineProperty(exports, "ServiceAreaFilterGroups", { enumerable: true, get: function () { return service_area_consts_1.ServiceAreaFilterGroups; } });
|
|
49
49
|
var planned_delivery_windows_api_1 = require("./PlannedDeliveryWindows/planned-delivery-windows-api");
|
|
50
50
|
Object.defineProperty(exports, "PlannedDeliveryWindowsApi", { enumerable: true, get: function () { return planned_delivery_windows_api_1.default; } });
|
|
51
|
-
var planned_delivery_windows_consts_2 = require("./PlannedDeliveryWindows/planned-delivery-windows.consts");
|
|
52
|
-
Object.defineProperty(exports, "RecurrenceType", { enumerable: true, get: function () { return planned_delivery_windows_consts_2.RecurrenceType; } });
|
|
53
51
|
var exclusion_window_api_1 = require("./ExclusionWindow/v2/exclusion-window-api");
|
|
54
52
|
Object.defineProperty(exports, "ExclusionWindowApiV2", { enumerable: true, get: function () { return exclusion_window_api_1.ExclusionWindowApi; } });
|
|
55
53
|
var exclusion_window_consts_1 = require("./ExclusionWindow/v2/exclusion-window.consts");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mapp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BAAuB,OAAA;AAChC,sGAA6G;AAApG,yIAAA,OAAO,OAA6B;AAC7C,kFAAuG;AAA9F,4HAAA,kBAAkB,OAAwB;AACnD,wFAA4F;AAAnF,uIAAA,4BAA4B,OAAA;AACrC,sEAAmE;AAA1D,kHAAA,cAAc,OAAA;AACvB,0DAAmE;AAA1D,2GAAA,OAAO,OAAe;AAC/B,iDAA0D;AAAjD,qGAAA,OAAO,OAAY;AAE5B,6DAAsE;AAA7D,6GAAA,OAAO,OAAgB;AAChC,yFAAgG;AAAvF,+HAAA,OAAO,OAAwB;AACxC,8CAAuD;AAA9C,mGAAA,OAAO,OAAW;AAC3B,8CAA4C;AAC5C,qDAA8D;AAArD,uGAAA,OAAO,OAAa;AAC7B,yDAAuD"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CustomFilter.consts.js","sourceRoot":"","sources":["../../src/CustomFilter/CustomFilter.consts.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import Session from '../Services/Identity/Session';
|
|
2
|
-
import { CustomFilterGetAllResponse, CustomFilterResponse } from './CustomFilter.consts';
|
|
3
|
-
import { CustomFilter } from '@bringg/types';
|
|
4
|
-
import { BasicResponse } from '../Core/Responses';
|
|
5
|
-
declare class CustomFilterApi {
|
|
6
|
-
private customFilterEntity;
|
|
7
|
-
constructor(session: Session);
|
|
8
|
-
getAll(): Promise<CustomFilterGetAllResponse>;
|
|
9
|
-
create(request: CustomFilter): Promise<CustomFilterResponse>;
|
|
10
|
-
update(id: number, request: CustomFilter): Promise<CustomFilterResponse>;
|
|
11
|
-
delete(id: number): Promise<BasicResponse>;
|
|
12
|
-
}
|
|
13
|
-
export default CustomFilterApi;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
var CustomFilterEntity_1 = require("./Entity/CustomFilterEntity");
|
|
40
|
-
var CustomFilterApi = /** @class */ (function () {
|
|
41
|
-
function CustomFilterApi(session) {
|
|
42
|
-
this.customFilterEntity = new CustomFilterEntity_1.default(session);
|
|
43
|
-
}
|
|
44
|
-
CustomFilterApi.prototype.getAll = function () {
|
|
45
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
46
|
-
return __generator(this, function (_a) {
|
|
47
|
-
return [2 /*return*/, this.customFilterEntity.service.getAll()];
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
};
|
|
51
|
-
CustomFilterApi.prototype.create = function (request) {
|
|
52
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
53
|
-
return __generator(this, function (_a) {
|
|
54
|
-
return [2 /*return*/, this.customFilterEntity.service.create(request)];
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
CustomFilterApi.prototype.update = function (id, request) {
|
|
59
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
60
|
-
return __generator(this, function (_a) {
|
|
61
|
-
return [2 /*return*/, this.customFilterEntity.service.update(id, request)];
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
CustomFilterApi.prototype.delete = function (id) {
|
|
66
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
67
|
-
return __generator(this, function (_a) {
|
|
68
|
-
return [2 /*return*/, this.customFilterEntity.service.delete(id)];
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
return CustomFilterApi;
|
|
73
|
-
}());
|
|
74
|
-
exports.default = CustomFilterApi;
|
|
75
|
-
//# sourceMappingURL=CustomFilterApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CustomFilterApi.js","sourceRoot":"","sources":["../../src/CustomFilter/CustomFilterApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kEAA6D;AAK7D;IAGC,yBAAY,OAAgB;QAC3B,IAAI,CAAC,kBAAkB,GAAG,IAAI,4BAAkB,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;IAEY,gCAAM,GAAnB;;;gBACC,sBAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,MAAM,EAAE,EAAC;;;KAChD;IAEY,gCAAM,GAAnB,UAAoB,OAAqB;;;gBACxC,sBAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAAC;;;KACvD;IAEY,gCAAM,GAAnB,UAAoB,EAAU,EAAE,OAAqB;;;gBACpD,sBAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,EAAC;;;KAC3D;IAEY,gCAAM,GAAnB,UAAoB,EAAU;;;gBAC7B,sBAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,EAAC;;;KAClD;IACF,sBAAC;AAAD,CAAC,AAtBD,IAsBC;AAED,kBAAe,eAAe,CAAC"}
|
|
@@ -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 CustomFilterEntity = /** @class */ (function (_super) {
|
|
20
|
-
__extends(CustomFilterEntity, _super);
|
|
21
|
-
function CustomFilterEntity(session) {
|
|
22
|
-
return _super.call(this, {
|
|
23
|
-
session: session,
|
|
24
|
-
entityName: 'custom_filters',
|
|
25
|
-
routePrefix: 'merchant',
|
|
26
|
-
routes: [Entity_1.BaseRoutes.GetAll, Entity_1.BaseRoutes.Create, Entity_1.BaseRoutes.Update, Entity_1.BaseRoutes.Delete]
|
|
27
|
-
}) || this;
|
|
28
|
-
}
|
|
29
|
-
return CustomFilterEntity;
|
|
30
|
-
}(Entity_1.default));
|
|
31
|
-
exports.default = CustomFilterEntity;
|
|
32
|
-
//# sourceMappingURL=CustomFilterEntity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CustomFilterEntity.js","sourceRoot":"","sources":["../../../src/CustomFilter/Entity/CustomFilterEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,4CAAuD;AAGvD;IAAgD,sCAAoB;IACnE,4BAAY,OAAgB;eAC3B,kBAAM;YACL,OAAO,SAAA;YACP,UAAU,EAAE,gBAAgB;YAC5B,WAAW,EAAE,UAAU;YACvB,MAAM,EAAE,CAAC,mBAAU,CAAC,MAAM,EAAE,mBAAU,CAAC,MAAM,EAAE,mBAAU,CAAC,MAAM,EAAE,mBAAU,CAAC,MAAM,CAAC;SACpF,CAAC;IACH,CAAC;IACF,yBAAC;AAAD,CAAC,AATD,CAAgD,gBAAM,GASrD"}
|