@bringg/dashboard-sdk 1.0.0 → 1.0.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.
@@ -1,8 +1,4 @@
1
- import type { CustomAttributeModel } from '@bringg/types';
2
1
  export declare const Routes: {
3
2
  SERVICE_ROUTE: string;
4
3
  DELETE: string;
5
4
  };
6
- export declare type CreateCustomAttributePayload = Pick<CustomAttributeModel, 'entity_type' | 'path' | 'resolver' | 'resolver_type' | 'data_type' | 'name' | 'description' | 'required' | 'suggestion' | 'hidden'>;
7
- export declare type UpdateCustomAttributePayload = CreateCustomAttributePayload & Pick<CustomAttributeModel, 'id'>;
8
- export declare type CustomAttributeResponse = Omit<CustomAttributeModel, 'resolver' | 'resolver_type' | 'hidden' | 'delete_at' | 'updated_at' | 'created_at'>;
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAttributes.consts.js","sourceRoot":"","sources":["../../src/CustomAttributes/CustomAttributes.consts.ts"],"names":[],"mappings":";;;AAEA,IAAM,YAAY,GAAG,4BAA4B,CAAC;AAErC,QAAA,MAAM,GAAG;IACrB,aAAa,EAAK,YAAY,0BAAuB;IACrD,MAAM,EAAK,YAAY,gCAA6B;CACpD,CAAC"}
1
+ {"version":3,"file":"CustomAttributes.consts.js","sourceRoot":"","sources":["../../src/CustomAttributes/CustomAttributes.consts.ts"],"names":[],"mappings":";;;AAAA,IAAM,YAAY,GAAG,4BAA4B,CAAC;AAErC,QAAA,MAAM,GAAG;IACrB,aAAa,EAAK,YAAY,0BAAuB;IACrD,MAAM,EAAK,YAAY,gCAA6B;CACpD,CAAC"}
@@ -1,11 +1,10 @@
1
1
  import Session from '../Services/Identity/Session';
2
- import { FeedbackResponse } from '@bringg/types';
3
- import type { CreateCustomAttributePayload, CustomAttributeResponse, UpdateCustomAttributePayload } from './CustomAttributes.consts';
2
+ import { CustomAttributeResponse, FeedbackResponse, CreateCustomAttributePayload, UpdateCustomAttributePayload } from '@bringg/types';
4
3
  export default class CustomAttributesApi {
5
4
  private customAttributesEntity;
6
5
  constructor(session: Session);
7
6
  getAllCustomAttributes(): Promise<CustomAttributeResponse[]>;
8
7
  createCustomAttribute(payload: CreateCustomAttributePayload): Promise<CustomAttributeResponse>;
9
8
  updateCustomAttribute(payload: UpdateCustomAttributePayload): Promise<CustomAttributeResponse>;
10
- deleteCustomAttribute(id: string): Promise<FeedbackResponse>;
9
+ deleteCustomAttribute(id: number): Promise<FeedbackResponse>;
11
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAttributesApi.js","sourceRoot":"","sources":["../../src/CustomAttributes/CustomAttributesApi.ts"],"names":[],"mappings":";;AACA,0EAAqE;AASrE;IAGC,6BAAY,OAAgB;QAC3B,IAAI,CAAC,sBAAsB,GAAG,IAAI,gCAAsB,CAAC,OAAO,CAAC,CAAC;IACnE,CAAC;IAED,oDAAsB,GAAtB;QACC,OAAO,IAAI,CAAC,sBAAsB,CAAC,sBAAsB,EAAE,CAAC;IAC7D,CAAC;IAED,mDAAqB,GAArB,UAAsB,OAAqC;QAC1D,OAAO,IAAI,CAAC,sBAAsB,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;IACnE,CAAC;IAED,mDAAqB,GAArB,UAAsB,OAAqC;QAC1D,OAAO,IAAI,CAAC,sBAAsB,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;IACnE,CAAC;IAED,mDAAqB,GAArB,UAAsB,EAAU;QAC/B,OAAO,IAAI,CAAC,sBAAsB,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC;IAC9D,CAAC;IACF,0BAAC;AAAD,CAAC,AAtBD,IAsBC"}
1
+ {"version":3,"file":"CustomAttributesApi.js","sourceRoot":"","sources":["../../src/CustomAttributes/CustomAttributesApi.ts"],"names":[],"mappings":";;AACA,0EAAqE;AAQrE;IAGC,6BAAY,OAAgB;QAC3B,IAAI,CAAC,sBAAsB,GAAG,IAAI,gCAAsB,CAAC,OAAO,CAAC,CAAC;IACnE,CAAC;IAED,oDAAsB,GAAtB;QACC,OAAO,IAAI,CAAC,sBAAsB,CAAC,sBAAsB,EAAE,CAAC;IAC7D,CAAC;IAED,mDAAqB,GAArB,UAAsB,OAAqC;QAC1D,OAAO,IAAI,CAAC,sBAAsB,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;IACnE,CAAC;IAED,mDAAqB,GAArB,UAAsB,OAAqC;QAC1D,OAAO,IAAI,CAAC,sBAAsB,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;IACnE,CAAC;IAED,mDAAqB,GAArB,UAAsB,EAAU;QAC/B,OAAO,IAAI,CAAC,sBAAsB,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC;IAC9D,CAAC;IACF,0BAAC;AAAD,CAAC,AAtBD,IAsBC"}
@@ -1,11 +1,10 @@
1
1
  import Entity from '../../Core/Entity';
2
- import { FeedbackResponse } from '@bringg/types';
3
- import type { CreateCustomAttributePayload, CustomAttributeResponse, UpdateCustomAttributePayload } from '../CustomAttributes.consts';
2
+ import { CustomAttributeResponse, FeedbackResponse, CreateCustomAttributePayload, UpdateCustomAttributePayload } from '@bringg/types';
4
3
  import type Session from '../../Services/Identity/Session';
5
4
  export default class CustomAttributesEntity extends Entity<CustomAttributeResponse> {
6
5
  constructor(session: Session);
7
6
  getAllCustomAttributes(): Promise<CustomAttributeResponse[]>;
8
7
  createCustomAttribute(payload: CreateCustomAttributePayload): Promise<CustomAttributeResponse>;
9
8
  updateCustomAttribute(payload?: UpdateCustomAttributePayload): Promise<CustomAttributeResponse>;
10
- deleteCustomAttribute(id: string): Promise<FeedbackResponse>;
9
+ deleteCustomAttribute(id: number): Promise<FeedbackResponse>;
11
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAttributesEntity.js","sourceRoot":"","sources":["../../../src/CustomAttributes/Entity/CustomAttributesEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAA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,EAAA;4BAJV,sBAAO,SAIG,EAAC;;;;KACX;IACF,6BAAC;AAAD,CAAC,AAtCD,CAAoD,gBAAM,GAsCzD"}
@@ -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 = '1.0.0';
55
+ var version = '1.0.1';
56
56
  function logErrorResponse(response) {
57
57
  var data = response.data, status = response.status;
58
58
  try {
@@ -28752,6 +28752,7 @@ var ActionType;
28752
28752
  ActionType[ActionType["SHARE_WITH_CUSTOMER"] = 8] = "SHARE_WITH_CUSTOMER";
28753
28753
  ActionType[ActionType["AUTO_UNASSIGN"] = 9] = "AUTO_UNASSIGN";
28754
28754
  ActionType[ActionType["RESCHEDULE_TASKS"] = 10] = "RESCHEDULE_TASKS";
28755
+ ActionType[ActionType["SHARED_LOCATION"] = 11] = "SHARED_LOCATION";
28755
28756
  })(ActionType = exports.ActionType || (exports.ActionType = {}));
28756
28757
  var ActionKey;
28757
28758
  (function (ActionKey) {
@@ -30986,7 +30987,7 @@ var axios_1 = __webpack_require__(146);
30986
30987
  var Logger_1 = __webpack_require__(43);
30987
30988
  var lodash_1 = __webpack_require__(11);
30988
30989
  var BringgException_1 = __webpack_require__(15);
30989
- var version = '1.0.0';
30990
+ var version = '1.0.1';
30990
30991
  function logErrorResponse(response) {
30991
30992
  var data = response.data, status = response.status;
30992
30993
  try {
@@ -40929,6 +40930,7 @@ var CustomAttributeDataType;
40929
40930
  CustomAttributeDataType[CustomAttributeDataType["Number"] = 0] = "Number";
40930
40931
  CustomAttributeDataType[CustomAttributeDataType["String"] = 1] = "String";
40931
40932
  CustomAttributeDataType[CustomAttributeDataType["Boolean"] = 2] = "Boolean";
40933
+ CustomAttributeDataType[CustomAttributeDataType["Enum"] = 3] = "Enum";
40932
40934
  })(CustomAttributeDataType = exports.CustomAttributeDataType || (exports.CustomAttributeDataType = {}));
40933
40935
  //# sourceMappingURL=custom_attribute.js.map
40934
40936
 
@@ -42121,13 +42123,15 @@ var RealtimeEvent;
42121
42123
  RealtimeEvent["ConversationNew"] = "conversation:new";
42122
42124
  RealtimeEvent["ConversationRemoved"] = "conversation:removed";
42123
42125
  RealtimeEvent["ConversationUpdate"] = "conversation:update";
42126
+ RealtimeEvent["DispatcherAlertNew"] = "dispatcher_alert:new";
42124
42127
  RealtimeEvent["EmployeeActivityChange"] = "employee:activity_change";
42125
42128
  RealtimeEvent["EmployeeUpdate"] = "employee:update";
42126
42129
  RealtimeEvent["EmployeeUpdateLocation"] = "employee:update_location";
42127
42130
  RealtimeEvent["EtaRecalculateDone"] = "eta_recalculate:done";
42128
42131
  RealtimeEvent["FloatingInventoryAdded"] = "floating_inventory:added";
42129
42132
  RealtimeEvent["FloatingInventoryRemoved"] = "floating_inventory:removed";
42130
- RealtimeEvent["MerchantConfigurationUpdated"] = "merchant_configuration:updated";
42133
+ RealtimeEvent["MerchantConfigurationUpdated"] = "merchant:configuration_updated";
42134
+ RealtimeEvent["UserConfigurationUpdated"] = "user:configuration_updated";
42131
42135
  RealtimeEvent["MerchantUpdated"] = "merchant:updated";
42132
42136
  RealtimeEvent["NoteCreated"] = "note:created";
42133
42137
  RealtimeEvent["OptimizationDone"] = "optimization:done";
@@ -42150,10 +42154,10 @@ var RealtimeEvent;
42150
42154
  RealtimeEvent["TasksMassRemove"] = "tasks:mass_remove";
42151
42155
  RealtimeEvent["TasksReadyToExecute"] = "tasks:ready_to_execute";
42152
42156
  RealtimeEvent["TeamTaskAdded"] = "team:task_added";
42153
- RealtimeEvent["UserAskForLog"] = "user:ask_for_log";
42157
+ RealtimeEvent["AskForLog"] = "ask_for_log";
42154
42158
  RealtimeEvent["UserDeleted"] = "user:deleted";
42155
42159
  RealtimeEvent["UserNew"] = "user:new";
42156
- RealtimeEvent["UserRequestRefresh"] = "user:request_refresh";
42160
+ RealtimeEvent["RequestRefresh"] = "request_refresh";
42157
42161
  RealtimeEvent["VehicleAssigned"] = "vehicle:assigned";
42158
42162
  RealtimeEvent["VehicleRemoved"] = "vehicle:removed";
42159
42163
  RealtimeEvent["VehicleUpdate"] = "vehicle:update";
@@ -42654,6 +42658,7 @@ var SharingType;
42654
42658
  SharingType[SharingType["EtaDelay"] = 12] = "EtaDelay";
42655
42659
  SharingType[SharingType["CustomerPickup"] = 13] = "CustomerPickup";
42656
42660
  SharingType[SharingType["OptInConfirmation"] = 14] = "OptInConfirmation";
42661
+ SharingType[SharingType["CustomWorkflow"] = 15] = "CustomWorkflow";
42657
42662
  })(SharingType = exports.SharingType || (exports.SharingType = {}));
42658
42663
  var SharingMethod;
42659
42664
  (function (SharingMethod) {
@@ -43341,7 +43346,7 @@ var MerchantSecretsActions;
43341
43346
  "use strict";
43342
43347
 
43343
43348
  exports.__esModule = true;
43344
- exports.RuleRequestType = exports.FactType = exports.Entity = exports.RuleCategory = exports.RuleCompareOperator = exports.AttributeDatatype = void 0;
43349
+ exports.RuleRequestType = exports.FactType = exports.Entity = exports.RuleCategory = exports.ArrayType = exports.RuleCompareOperator = exports.AttributeDatatype = void 0;
43345
43350
  var AttributeDatatype;
43346
43351
  (function (AttributeDatatype) {
43347
43352
  AttributeDatatype["String"] = "string";
@@ -43362,6 +43367,8 @@ var RuleCompareOperator;
43362
43367
  RuleCompareOperator["ARRAY_ELEMENT_NOT_EQUALS"] = "ARRAY_ELEMENT_NOT_EQUALS";
43363
43368
  RuleCompareOperator["INCLUDE"] = "INCLUDE";
43364
43369
  RuleCompareOperator["ARRAY_ELEMENT_INCLUDE"] = "ARRAY_ELEMENT_INCLUDE";
43370
+ RuleCompareOperator["ARRAY_ELEMENT_INCLUDE_ONE_OF_THE_ITEMS_FROM_SUBSTRING_ARRAY"] = "ARRAY_ELEMENT_INCLUDE_ONE_OF_THE_ITEMS_FROM_SUBSTRING_ARRAY";
43371
+ RuleCompareOperator["ARRAY_ELEMENT_EXCLUDE_ALL_ITEMS_FROM_SUBSTRING_ARRAY"] = "ARRAY_ELEMENT_EXCLUDE_ALL_ITEMS_FROM_SUBSTRING_ARRAY";
43365
43372
  RuleCompareOperator["EXCLUDE"] = "EXCLUDE";
43366
43373
  RuleCompareOperator["ARRAY_ELEMENT_EXCLUDE"] = "ARRAY_ELEMENT_EXCLUDE";
43367
43374
  RuleCompareOperator["LESS_THAN"] = "LESS_THAN";
@@ -43374,6 +43381,7 @@ var RuleCompareOperator;
43374
43381
  RuleCompareOperator["ARRAY_ELEMENT_GREATER_THAN_OR_EQUALS"] = "ARRAY_ELEMENT_GREATER_THAN_OR_EQUALS";
43375
43382
  RuleCompareOperator["IN"] = "IN";
43376
43383
  RuleCompareOperator["ARRAY_ELEMENT_IN"] = "ARRAY_ELEMENT_IN";
43384
+ RuleCompareOperator["ARRAY_ELEMENT_NOT_IN"] = "ARRAY_ELEMENT_NOT_IN";
43377
43385
  RuleCompareOperator["IN_RANGE"] = "IN_RANGE";
43378
43386
  RuleCompareOperator["ARRAY_ELEMENT_IN_RANGE"] = "ARRAY_ELEMENT_IN_RANGE";
43379
43387
  RuleCompareOperator["ARRAY_INTERSECTION_HAS_ONE"] = "ARRAY_INTERSECTION_HAS_ONE";
@@ -43381,6 +43389,11 @@ var RuleCompareOperator;
43381
43389
  RuleCompareOperator["ARRAY_INTERSECTION_HAS_ALL"] = "ARRAY_INTERSECTION_HAS_ALL";
43382
43390
  RuleCompareOperator["ARRAY_ELEMENT_ARRAY_INTERSECTION_HAS_ALL"] = "ARRAY_ELEMENT_ARRAY_INTERSECTION_HAS_ALL";
43383
43391
  })(RuleCompareOperator = exports.RuleCompareOperator || (exports.RuleCompareOperator = {}));
43392
+ var ArrayType;
43393
+ (function (ArrayType) {
43394
+ ArrayType["ANY"] = "any";
43395
+ ArrayType["ALL"] = "all";
43396
+ })(ArrayType = exports.ArrayType || (exports.ArrayType = {}));
43384
43397
  var RuleCategory;
43385
43398
  (function (RuleCategory) {
43386
43399
  RuleCategory[RuleCategory["FleetRouter"] = 0] = "FleetRouter";
@@ -43398,6 +43411,7 @@ var FactType;
43398
43411
  (function (FactType) {
43399
43412
  FactType["Task"] = "task";
43400
43413
  FactType["Waypoint"] = "waypoint";
43414
+ FactType["Inventory"] = "inventory";
43401
43415
  FactType["Run"] = "run";
43402
43416
  FactType["Rate"] = "rate";
43403
43417
  FactType["User"] = "user";