@bringg/dashboard-sdk 9.6.1 → 9.7.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.
@@ -1,4 +1,5 @@
1
1
  import { BringgUserShortDto, ChatMerchantAppDto, ChatUserDto, GetOrCreateChatMembersResultDto, User } from '@bringg/types';
2
+ import { UnreadMessageCount } from '@bringg/types/types/chat/chat_user_types';
2
3
  import Session from '../Services/Identity/Session';
3
4
  import { ChatResponse } from './Chat.types';
4
5
  export default class Chat {
@@ -8,6 +9,7 @@ export default class Chat {
8
9
  getOrCreateChatMerchantApp(): Promise<ChatResponse<ChatMerchantAppDto>>;
9
10
  getChatMerchantAppExists(): Promise<ChatResponse<boolean>>;
10
11
  getOrCreateChatUser(): Promise<ChatResponse<ChatUserDto>>;
12
+ getUnreadMessageCount(): Promise<ChatResponse<UnreadMessageCount>>;
11
13
  getOrCreateChatMembers(bringgUsersIds: Array<User['id']>): Promise<ChatResponse<GetOrCreateChatMembersResultDto>>;
12
14
  getUsersAvailableToChat({ bringUserIds }?: {
13
15
  bringUserIds?: Array<User['id']>;
package/dist/Chat/Chat.js CHANGED
@@ -56,6 +56,9 @@ var Chat = /** @class */ (function () {
56
56
  Chat.prototype.getOrCreateChatUser = function () {
57
57
  return this.chatService.getOrCreateChatUser();
58
58
  };
59
+ Chat.prototype.getUnreadMessageCount = function () {
60
+ return this.chatService.getUnreadMessageCount();
61
+ };
59
62
  Chat.prototype.getOrCreateChatMembers = function (bringgUsersIds) {
60
63
  return this.chatService.getOrCreateChatMembers(bringgUsersIds);
61
64
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Chat.js","sourceRoot":"","sources":["../../src/Chat/Chat.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,wEAAiD;AAEjD;IAGC,cAAmB,OAAgB;QAClC,IAAI,CAAC,WAAW,GAAG,IAAI,sBAAW,CAAC,OAAO,CAAC,CA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AAnB;QACC,OAAO,IAAI,CAAC,WAAW,CAAC,mBAAmB,EAAE,CAAC;IAC/C,CAAC;IAED,oCAAqB,GAArB;QACC,OAAO,IAAI,CAAC,WAAW,CAAC,qBAAqB,EAAE,CAAC;IACjD,CAAC;IAED,qCAAsB,GAAtB,UAAuB,cAAiC;QACvD,OAAO,IAAI,CAAC,WAAW,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAC;IAChE,CAAC;IAEK,sCAAuB,GAA7B,UAA8B,EAIxB;YAJwB,qBAI1B,EAAE,KAAA,EAHL,YAAY,kBAAA;;;gBAIZ,sBAAO,IAAI,CAAC,WAAW,CAAC,uBAAuB,CAAC,EAAE,YAAY,cAAA,EAAE,CAAC,EAAC;;;KAClE;IACF,WAAC;AAAD,CAAC,AAtCD,IAsCC"}
@@ -1,4 +1,4 @@
1
- import { BringgUserShortDto, ChatMerchantAppDto, ChatUserDto, GetOrCreateChatMembersResultDto, User } from '@bringg/types';
1
+ import { BringgUserShortDto, ChatMerchantAppDto, ChatUserDto, GetOrCreateChatMembersResultDto, UnreadMessageCount, User } from '@bringg/types';
2
2
  import RouteGenerator from '../../Core/RouteGenerator';
3
3
  import Session from '../../Services/Identity/Session';
4
4
  import { SessionBasedService } from '../../Services/SessionBasedService';
@@ -11,6 +11,7 @@ export default class ChatService extends SessionBasedService {
11
11
  getOrCreateChatMerchantApp(): Promise<ChatResponse<ChatMerchantAppDto>>;
12
12
  getChatMerchantAppExists(): Promise<ChatResponse<boolean>>;
13
13
  getOrCreateChatUser(): Promise<ChatResponse<ChatUserDto>>;
14
+ getUnreadMessageCount(): Promise<ChatResponse<UnreadMessageCount>>;
14
15
  getOrCreateChatMembers(bringgUsersIds: Array<User['id']>): Promise<ChatResponse<GetOrCreateChatMembersResultDto>>;
15
16
  getUsersAvailableToChat({ bringUserIds }?: {
16
17
  bringUserIds?: Array<User['id']>;
@@ -73,6 +73,7 @@ var Routes = {
73
73
  CHAT_MERCHANT_APP_EXISTS: "".concat(SERVICE_PREFIX, "/merchant-apps/exists"),
74
74
  GET_OR_CREATE_CHAT_MERCHANT_APP: "".concat(SERVICE_PREFIX, "/merchant-apps/get-or-create"),
75
75
  GET_OR_CREATE_CHAT_USER: "".concat(SERVICE_PREFIX, "/chat-users/get-or-create"),
76
+ GET_UNREAD_MESSAGE_COUNT: "".concat(SERVICE_PREFIX, "/chat-users/unread-message-count"),
76
77
  GET_OR_CREATE_CHAT_MEMBERS: "".concat(SERVICE_PREFIX, "/chat-members/get-or-bulk-create"),
77
78
  GET_USERS_AVAILABLE_TO_CHAT: "".concat(SERVICE_PREFIX, "/bringg-users/available-to-chat")
78
79
  };
@@ -112,6 +113,13 @@ var ChatService = /** @class */ (function (_super) {
112
113
  });
113
114
  });
114
115
  };
116
+ ChatService.prototype.getUnreadMessageCount = function () {
117
+ return __awaiter(this, void 0, void 0, function () {
118
+ return __generator(this, function (_a) {
119
+ return [2 /*return*/, this.routeGenerator.get(Routes.GET_UNREAD_MESSAGE_COUNT).invoke()];
120
+ });
121
+ });
122
+ };
115
123
  ChatService.prototype.getOrCreateChatMembers = function (bringgUsersIds) {
116
124
  return __awaiter(this, void 0, void 0, function () {
117
125
  return __generator(this, function (_a) {
@@ -1 +1 @@
1
- {"version":3,"file":"Chat.service.js","sourceRoot":"","sources":["../../../src/Chat/Service/Chat.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,6EAAuD;AAEvD,0EAAyE;AAGzE,IAAM,cAAc,GAAG,kBAAkB,CAAC;AAE1C,IAAM,MAAM,GAAG;IACd,iBAAiB,EAAE,UAAG,cAAc,mBAAgB;IACpD,wBAAwB,EAAE,UAAG,cAAc,0BAAuB;IAClE,+BAA+B,EAAE,UAAG,cAAc,iCAA8B;IAChF,uBAAuB,EAAE,UAAG,cAAc,8BAA2B;IACrE,0BAA0B,EAAE,UAAG,cAAc,qCAAkC;IAC/E,2BAA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B,GAA9B;;;gBACC,sBAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC,MAAM,EAAE,EAAC;;;KACzE;IAEK,yCAAmB,GAAzB;;;gBACC,sBAAO,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,MAAM,EAAE,EAAC;;;KACzE;IAEK,2CAAqB,GAA3B;;;gBACC,sBAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC,MAAM,EAAE,EAAC;;;KACzE;IAEK,4CAAsB,GAA5B,UACC,cAAiC;;;gBAEjC,sBAAO,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC,WAAW,CAAC,EAAE,cAAc,gBAAA,EAAE,CAAC,CAAC,MAAM,EAAE,EAAC;;;KAC5G;IAEK,6CAAuB,GAA7B,UAA8B,EAIxB;YAJwB,qBAI1B,EAAE,KAAA,EAHL,YAAY,kBAAA;;;gBAIZ,sBAAO,IAAI,CAAC,cAAc;yBACxB,IAAI,CAAC,MAAM,CAAC,2BAA2B,CAAC;yBACxC,WAAW,cAAM,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,cAAA,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAG;yBAC5D,MAAM,EAAE,EAAC;;;KACX;IACF,kBAAC;AAAD,CAAC,AA/CD,CAAyC,yCAAmB,GA+C3D"}
@@ -56,7 +56,7 @@ var lodash_1 = require("lodash");
56
56
  var BringgException_1 = require("../Core/BringgException");
57
57
  var Logger_1 = __importDefault(require("../Core/Logger"));
58
58
  var abort_1 = require("../utils/abort");
59
- var version = '9.6.1';
59
+ var version = '9.7.0';
60
60
  function logErrorResponse(response) {
61
61
  var data = response.data, status = response.status;
62
62
  try {
@@ -3268,6 +3268,9 @@ var Chat = /** @class */ (function () {
3268
3268
  Chat.prototype.getOrCreateChatUser = function () {
3269
3269
  return this.chatService.getOrCreateChatUser();
3270
3270
  };
3271
+ Chat.prototype.getUnreadMessageCount = function () {
3272
+ return this.chatService.getUnreadMessageCount();
3273
+ };
3271
3274
  Chat.prototype.getOrCreateChatMembers = function (bringgUsersIds) {
3272
3275
  return this.chatService.getOrCreateChatMembers(bringgUsersIds);
3273
3276
  };
@@ -3365,6 +3368,7 @@ var Routes = {
3365
3368
  CHAT_MERCHANT_APP_EXISTS: "".concat(SERVICE_PREFIX, "/merchant-apps/exists"),
3366
3369
  GET_OR_CREATE_CHAT_MERCHANT_APP: "".concat(SERVICE_PREFIX, "/merchant-apps/get-or-create"),
3367
3370
  GET_OR_CREATE_CHAT_USER: "".concat(SERVICE_PREFIX, "/chat-users/get-or-create"),
3371
+ GET_UNREAD_MESSAGE_COUNT: "".concat(SERVICE_PREFIX, "/chat-users/unread-message-count"),
3368
3372
  GET_OR_CREATE_CHAT_MEMBERS: "".concat(SERVICE_PREFIX, "/chat-members/get-or-bulk-create"),
3369
3373
  GET_USERS_AVAILABLE_TO_CHAT: "".concat(SERVICE_PREFIX, "/bringg-users/available-to-chat")
3370
3374
  };
@@ -3404,6 +3408,13 @@ var ChatService = /** @class */ (function (_super) {
3404
3408
  });
3405
3409
  });
3406
3410
  };
3411
+ ChatService.prototype.getUnreadMessageCount = function () {
3412
+ return __awaiter(this, void 0, void 0, function () {
3413
+ return __generator(this, function (_a) {
3414
+ return [2 /*return*/, this.routeGenerator.get(Routes.GET_UNREAD_MESSAGE_COUNT).invoke()];
3415
+ });
3416
+ });
3417
+ };
3407
3418
  ChatService.prototype.getOrCreateChatMembers = function (bringgUsersIds) {
3408
3419
  return __awaiter(this, void 0, void 0, function () {
3409
3420
  return __generator(this, function (_a) {
@@ -22176,7 +22187,7 @@ var lodash_1 = __webpack_require__(96486);
22176
22187
  var BringgException_1 = __webpack_require__(43605);
22177
22188
  var Logger_1 = __importDefault(__webpack_require__(55860));
22178
22189
  var abort_1 = __webpack_require__(34179);
22179
- var version = '9.6.1';
22190
+ var version = '9.7.0';
22180
22191
  function logErrorResponse(response) {
22181
22192
  var data = response.data, status = response.status;
22182
22193
  try {
@@ -33933,12 +33944,17 @@ __exportStar(__webpack_require__(30167), exports);
33933
33944
  "use strict";
33934
33945
 
33935
33946
  Object.defineProperty(exports, "__esModule", ({ value: true }));
33936
- exports.ActionKey = exports.ActionType = void 0;
33947
+ exports.ActionKey = exports.ActionType = exports.CommunicationDataRecipient = void 0;
33948
+ var CommunicationDataRecipient;
33949
+ (function (CommunicationDataRecipient) {
33950
+ CommunicationDataRecipient[CommunicationDataRecipient["FirstWaypointContacts"] = 3] = "FirstWaypointContacts";
33951
+ CommunicationDataRecipient[CommunicationDataRecipient["LastWaypointContacts"] = 4] = "LastWaypointContacts";
33952
+ })(CommunicationDataRecipient || (exports.CommunicationDataRecipient = CommunicationDataRecipient = {}));
33937
33953
  var ActionType;
33938
33954
  (function (ActionType) {
33939
33955
  ActionType[ActionType["ALERT"] = 0] = "ALERT";
33940
33956
  ActionType[ActionType["INTERNAL_SMS"] = 1] = "INTERNAL_SMS";
33941
- ActionType[ActionType["INTERNAL_EMAIL"] = 2] = "INTERNAL_EMAIL";
33957
+ ActionType[ActionType["EMAIL"] = 2] = "EMAIL";
33942
33958
  ActionType[ActionType["WEBHOOK"] = 3] = "WEBHOOK";
33943
33959
  ActionType[ActionType["ENTITY_UPDATE"] = 4] = "ENTITY_UPDATE";
33944
33960
  ActionType[ActionType["RELEASE"] = 5] = "RELEASE";
@@ -35167,6 +35183,7 @@ var CustomAttributesRpcActions;
35167
35183
  CustomAttributesRpcActions["GetAllInternal"] = "get_all_internal";
35168
35184
  CustomAttributesRpcActions["UpsertSuggestion"] = "upsert_suggestion";
35169
35185
  CustomAttributesRpcActions["CheckUsage"] = "custom_attributes:check_record_usage";
35186
+ CustomAttributesRpcActions["UpdateValuesForEntities"] = "update_values_for_entities";
35170
35187
  })(CustomAttributesRpcActions || (exports.CustomAttributesRpcActions = CustomAttributesRpcActions = {}));
35171
35188
  var CustomAttributeConsumerEntity;
35172
35189
  (function (CustomAttributeConsumerEntity) {
@@ -35284,7 +35301,7 @@ var OrderPageTabs;
35284
35301
  "use strict";
35285
35302
 
35286
35303
  Object.defineProperty(exports, "__esModule", ({ value: true }));
35287
- exports.DeliveryBlockResourceLocationType = exports.BreakType = void 0;
35304
+ exports.ResourceLocationId = exports.DeliveryBlockResourceLocationType = exports.BreakType = void 0;
35288
35305
  var BreakType;
35289
35306
  (function (BreakType) {
35290
35307
  BreakType[BreakType["Fixed"] = 0] = "Fixed";
@@ -35299,6 +35316,13 @@ var DeliveryBlockResourceLocationType;
35299
35316
  DeliveryBlockResourceLocationType[DeliveryBlockResourceLocationType["VEHICLE_DEFAULT_PARKING"] = 4] = "VEHICLE_DEFAULT_PARKING";
35300
35317
  DeliveryBlockResourceLocationType[DeliveryBlockResourceLocationType["LAST_DRIVER_LOCATION"] = 5] = "LAST_DRIVER_LOCATION";
35301
35318
  })(DeliveryBlockResourceLocationType || (exports.DeliveryBlockResourceLocationType = DeliveryBlockResourceLocationType = {}));
35319
+ var ResourceLocationId;
35320
+ (function (ResourceLocationId) {
35321
+ ResourceLocationId["DEPOT"] = "depot";
35322
+ ResourceLocationId["HOME"] = "home";
35323
+ ResourceLocationId["TASK"] = "task";
35324
+ ResourceLocationId["DRIVER_LOCATION"] = "driver_location";
35325
+ })(ResourceLocationId || (exports.ResourceLocationId = ResourceLocationId = {}));
35302
35326
  //# sourceMappingURL=delivery_block.js.map
35303
35327
 
35304
35328
  /***/ }),
@@ -38427,7 +38451,7 @@ var Entity;
38427
38451
  Entity["Fleet"] = "fleet";
38428
38452
  Entity["DeliveryProvider"] = "delivery_provider";
38429
38453
  Entity["Action"] = "action";
38430
- Entity["FleetRouterRulePolicy"] = "fleet_router_rule_policy";
38454
+ Entity["FleetRouterRulePolicy"] = "fleet_router_rules_groups";
38431
38455
  })(Entity || (exports.Entity = Entity = {}));
38432
38456
  var FactType;
38433
38457
  (function (FactType) {