@bringg/dashboard-sdk 9.2.1 → 9.3.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.
@@ -5,7 +5,7 @@ export default class Chat {
5
5
  private readonly chatService;
6
6
  constructor(session: Session);
7
7
  getChatMerchantApp(): Promise<ChatResponse<ChatMerchantAppDto>>;
8
- createChatMerchantApp(): Promise<ChatResponse<ChatMerchantAppDto>>;
8
+ getOrCreateChatMerchantApp(): Promise<ChatResponse<ChatMerchantAppDto>>;
9
9
  getChatMerchantAppExists(): Promise<ChatResponse<boolean>>;
10
10
  getOrCreateChatUser(): Promise<ChatResponse<ChatUserDto>>;
11
11
  getOrCreateChatMembers(bringgUsersIds: Array<User['id']>): Promise<ChatResponse<GetOrCreateChatMembersResultDto>>;
package/dist/Chat/Chat.js CHANGED
@@ -11,8 +11,8 @@ var Chat = /** @class */ (function () {
11
11
  Chat.prototype.getChatMerchantApp = function () {
12
12
  return this.chatService.getChatMerchantApp();
13
13
  };
14
- Chat.prototype.createChatMerchantApp = function () {
15
- return this.chatService.createChatMerchantApp();
14
+ Chat.prototype.getOrCreateChatMerchantApp = function () {
15
+ return this.chatService.getOrCreateChatMerchantApp();
16
16
  };
17
17
  Chat.prototype.getChatMerchantAppExists = function () {
18
18
  return this.chatService.getChatMerchantAppExists();
@@ -1 +1 @@
1
- {"version":3,"file":"Chat.js","sourceRoot":"","sources":["../../src/Chat/Chat.ts"],"names":[],"mappings":";;;;;AAIA,wEAAiD;AAEjD;IAGC,cAAmB,OAAgB;QAClC,IAAI,CAAC,WAAW,GAAG,IAAI,sBAAW,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;IAED,iCAAkB,GAAlB;QACC,OAAO,IAAI,CAAC,WAAW,CAAC,kBAAkB,EAAE,CAAC;IAC9C,CAAC;IAED,oCAAqB,GAArB;QACC,OAAO,IAAI,CAAC,WAAW,CAAC,qBAAqB,EAAE,CAAC;IACjD,CAAC;IAED,uCAAwB,GAAxB;QACC,OAAO,IAAI,CAAC,WAAW,CAAC,wBAAwB,EAAE,CAAC;IACpD,CAAC;IAED,kCAAmB,GAAnB;QACC,OAAO,IAAI,CAAC,WAAW,CAAC,mBAAmB,EAAE,CAAC;IAC/C,CAAC;IAED,qCAAsB,GAAtB,UAAuB,cAAiC;QACvD,OAAO,IAAI,CAAC,WAAW,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAC;IAChE,CAAC;IACF,WAAC;AAAD,CAAC,AA1BD,IA0BC"}
1
+ {"version":3,"file":"Chat.js","sourceRoot":"","sources":["../../src/Chat/Chat.ts"],"names":[],"mappings":";;;;;AAIA,wEAAiD;AAEjD;IAGC,cAAmB,OAAgB;QAClC,IAAI,CAAC,WAAW,GAAG,IAAI,sBAAW,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;IAED,iCAAkB,GAAlB;QACC,OAAO,IAAI,CAAC,WAAW,CAAC,kBAAkB,EAAE,CAAC;IAC9C,CAAC;IAED,yCAA0B,GAA1B;QACC,OAAO,IAAI,CAAC,WAAW,CAAC,0BAA0B,EAAE,CAAC;IACtD,CAAC;IAED,uCAAwB,GAAxB;QACC,OAAO,IAAI,CAAC,WAAW,CAAC,wBAAwB,EAAE,CAAC;IACpD,CAAC;IAED,kCAAmB,GAAnB;QACC,OAAO,IAAI,CAAC,WAAW,CAAC,mBAAmB,EAAE,CAAC;IAC/C,CAAC;IAED,qCAAsB,GAAtB,UAAuB,cAAiC;QACvD,OAAO,IAAI,CAAC,WAAW,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAC;IAChE,CAAC;IACF,WAAC;AAAD,CAAC,AA1BD,IA0BC"}
@@ -8,7 +8,7 @@ export default class ChatService extends SessionBasedService {
8
8
  routeGenerator: RouteGenerator;
9
9
  constructor(session: Session);
10
10
  getChatMerchantApp(): Promise<ChatResponse<ChatMerchantAppDto>>;
11
- createChatMerchantApp(): Promise<ChatResponse<ChatMerchantAppDto>>;
11
+ getOrCreateChatMerchantApp(): Promise<ChatResponse<ChatMerchantAppDto>>;
12
12
  getChatMerchantAppExists(): Promise<ChatResponse<boolean>>;
13
13
  getOrCreateChatUser(): Promise<ChatResponse<ChatUserDto>>;
14
14
  getOrCreateChatMembers(bringgUsersIds: Array<User['id']>): Promise<ChatResponse<GetOrCreateChatMembersResultDto>>;
@@ -60,6 +60,7 @@ var SERVICE_PREFIX = '/chat-service/v2';
60
60
  var Routes = {
61
61
  CHAT_MERCHANT_APP: "".concat(SERVICE_PREFIX, "/merchant-apps"),
62
62
  CHAT_MERCHANT_APP_EXISTS: "".concat(SERVICE_PREFIX, "/merchant-apps/exists"),
63
+ GET_OR_CREATE_CHAT_MERCHANT_APP: "".concat(SERVICE_PREFIX, "/merchant-apps/get-or-create"),
63
64
  GET_OR_CREATE_CHAT_USER: "".concat(SERVICE_PREFIX, "/chat-users/get-or-create"),
64
65
  GET_OR_CREATE_CHAT_MEMBERS: "".concat(SERVICE_PREFIX, "/chat-members/get-or-bulk-create")
65
66
  };
@@ -78,10 +79,10 @@ var ChatService = /** @class */ (function (_super) {
78
79
  });
79
80
  });
80
81
  };
81
- ChatService.prototype.createChatMerchantApp = function () {
82
+ ChatService.prototype.getOrCreateChatMerchantApp = function () {
82
83
  return __awaiter(this, void 0, void 0, function () {
83
84
  return __generator(this, function (_a) {
84
- return [2 /*return*/, this.routeGenerator.post(Routes.CHAT_MERCHANT_APP).invoke()];
85
+ return [2 /*return*/, this.routeGenerator.post(Routes.GET_OR_CREATE_CHAT_MERCHANT_APP).invoke()];
85
86
  });
86
87
  });
87
88
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Chat.service.js","sourceRoot":"","sources":["../../../src/Chat/Service/Chat.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,6EAAuD;AAEvD,0EAAyE;AAGzE,IAAM,cAAc,GAAG,kBAAkB,CAAC;AAE1C,IAAM,MAAM,GAAG;I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,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;IACF,kBAAC;AAAD,CAAC,AAhCD,CAAyC,yCAAmB,GAgC3D"}
@@ -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.2.1';
59
+ var version = '9.3.0';
60
60
  function logErrorResponse(response) {
61
61
  var data = response.data, status = response.status;
62
62
  try {
@@ -3220,8 +3220,8 @@ var Chat = /** @class */ (function () {
3220
3220
  Chat.prototype.getChatMerchantApp = function () {
3221
3221
  return this.chatService.getChatMerchantApp();
3222
3222
  };
3223
- Chat.prototype.createChatMerchantApp = function () {
3224
- return this.chatService.createChatMerchantApp();
3223
+ Chat.prototype.getOrCreateChatMerchantApp = function () {
3224
+ return this.chatService.getOrCreateChatMerchantApp();
3225
3225
  };
3226
3226
  Chat.prototype.getChatMerchantAppExists = function () {
3227
3227
  return this.chatService.getChatMerchantAppExists();
@@ -3305,6 +3305,7 @@ var SERVICE_PREFIX = '/chat-service/v2';
3305
3305
  var Routes = {
3306
3306
  CHAT_MERCHANT_APP: "".concat(SERVICE_PREFIX, "/merchant-apps"),
3307
3307
  CHAT_MERCHANT_APP_EXISTS: "".concat(SERVICE_PREFIX, "/merchant-apps/exists"),
3308
+ GET_OR_CREATE_CHAT_MERCHANT_APP: "".concat(SERVICE_PREFIX, "/merchant-apps/get-or-create"),
3308
3309
  GET_OR_CREATE_CHAT_USER: "".concat(SERVICE_PREFIX, "/chat-users/get-or-create"),
3309
3310
  GET_OR_CREATE_CHAT_MEMBERS: "".concat(SERVICE_PREFIX, "/chat-members/get-or-bulk-create")
3310
3311
  };
@@ -3323,10 +3324,10 @@ var ChatService = /** @class */ (function (_super) {
3323
3324
  });
3324
3325
  });
3325
3326
  };
3326
- ChatService.prototype.createChatMerchantApp = function () {
3327
+ ChatService.prototype.getOrCreateChatMerchantApp = function () {
3327
3328
  return __awaiter(this, void 0, void 0, function () {
3328
3329
  return __generator(this, function (_a) {
3329
- return [2 /*return*/, this.routeGenerator.post(Routes.CHAT_MERCHANT_APP).invoke()];
3330
+ return [2 /*return*/, this.routeGenerator.post(Routes.GET_OR_CREATE_CHAT_MERCHANT_APP).invoke()];
3330
3331
  });
3331
3332
  });
3332
3333
  };
@@ -22079,7 +22080,7 @@ var lodash_1 = __webpack_require__(96486);
22079
22080
  var BringgException_1 = __webpack_require__(43605);
22080
22081
  var Logger_1 = __importDefault(__webpack_require__(55860));
22081
22082
  var abort_1 = __webpack_require__(34179);
22082
- var version = '9.2.1';
22083
+ var version = '9.3.0';
22083
22084
  function logErrorResponse(response) {
22084
22085
  var data = response.data, status = response.status;
22085
22086
  try {