@bringg/dashboard-sdk 8.8.0-pre.1 → 8.8.0-pre.2
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/MerchantPrototype/Entity/MerchantPrototypeEntity.d.ts +2 -1
- package/dist/MerchantPrototype/Entity/MerchantPrototypeEntity.js +3 -2
- package/dist/MerchantPrototype/Entity/MerchantPrototypeEntity.js.map +1 -1
- package/dist/MerchantPrototype/MerchantPrototypeApi.d.ts +10 -2
- package/dist/MerchantPrototype/MerchantPrototypeApi.js +2 -2
- package/dist/MerchantPrototype/MerchantPrototypeApi.js.map +1 -1
- package/dist/Services/ServiceRequest.js +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +6 -5
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +3 -3
- package/dist/bringg-dashboard-sdk.min.js +1 -1
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { MerchantPrototype } from '@bringg/types';
|
|
2
2
|
import StoreEntity from '../../Core/StoreEntity';
|
|
3
3
|
import Session from '../../Services/Identity/Session';
|
|
4
|
+
import { CreateMerchantByAccountManager } from '../MerchantPrototypeApi';
|
|
4
5
|
export default class MerchantPrototypeEntity extends StoreEntity<MerchantPrototype> {
|
|
5
6
|
constructor(session: Session);
|
|
6
7
|
getAll(): Promise<MerchantPrototype[]>;
|
|
7
|
-
createMerchantByAccountManager(
|
|
8
|
+
createMerchantByAccountManager(newMerchant: CreateMerchantByAccountManager): Promise<void>;
|
|
8
9
|
}
|
|
@@ -75,11 +75,12 @@ var MerchantPrototypeEntity = /** @class */ (function (_super) {
|
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
77
|
};
|
|
78
|
-
MerchantPrototypeEntity.prototype.createMerchantByAccountManager = function (
|
|
78
|
+
MerchantPrototypeEntity.prototype.createMerchantByAccountManager = function (newMerchant) {
|
|
79
79
|
return __awaiter(this, void 0, void 0, function () {
|
|
80
80
|
return __generator(this, function (_a) {
|
|
81
81
|
return [2 /*return*/, this.service.routeGenerator
|
|
82
|
-
.post("".concat(ROUTE, "/").concat(
|
|
82
|
+
.post("".concat(ROUTE, "/").concat(newMerchant.merchant_prototype_id))
|
|
83
|
+
.withPayload(newMerchant)
|
|
83
84
|
.setException('Could not create merchant by account manager')
|
|
84
85
|
.invoke()];
|
|
85
86
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MerchantPrototypeEntity.js","sourceRoot":"","sources":["../../../src/MerchantPrototype/Entity/MerchantPrototypeEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAiD;
|
|
1
|
+
{"version":3,"file":"MerchantPrototypeEntity.js","sourceRoot":"","sources":["../../../src/MerchantPrototype/Entity/MerchantPrototypeEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAAiD;AAIjD,IAAM,KAAK,GAAG,sCAAsC,CAAC;AAErD;IAAqD,2CAA8B;IAClF,iCAAY,OAAgB;eAC3B,kBAAM;YACL,OAAO,SAAA;YACP,UAAU,EAAE,oBAAoB;YAChC,MAAM,EAAE,EAAE;SACV,CAAC;IACH,CAAC;IAEY,wCAAM,GAAnB;;;;4BACQ,qBAAM,IAAI,CAAC,OAAO,CAAC,cAAc;6BACtC,GAAG,CAAC,KAAK,CAAC;6BACV,YAAY,CAAC,8BAA8B,CAAC;6BAC5C,MAAM,EAA4C,EAAA;4BAHpD,sBAAO,SAG6C,EAAC;;;;KACrD;IAEY,gEAA8B,GAA3C,UAA4C,WAA2C;;;gBACtF,sBAAO,IAAI,CAAC,OAAO,CAAC,cAAc;yBAChC,IAAI,CAAC,UAAG,KAAK,cAAI,WAAW,CAAC,qBAAqB,CAAE,CAAC;yBACrD,WAAW,CAAC,WAAW,CAAC;yBACxB,YAAY,CAAC,8CAA8C,CAAC;yBAC5D,MAAM,EAAc,EAAC;;;KACvB;IACF,8BAAC;AAAD,CAAC,AAvBD,CAAqD,qBAAW,GAuB/D"}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
import { MerchantPrototype } from '@bringg/types';
|
|
1
|
+
import { Merchant, MerchantPrototype } from '@bringg/types';
|
|
2
2
|
import Session from '../Services/Identity/Session';
|
|
3
|
+
export type CreateMerchantByAccountManager = {
|
|
4
|
+
adminName: string;
|
|
5
|
+
email: string;
|
|
6
|
+
password: string;
|
|
7
|
+
crm_id: string;
|
|
8
|
+
env_type: string;
|
|
9
|
+
merchant_prototype_id: number;
|
|
10
|
+
} & Pick<Merchant, 'name' | 'address' | 'country_code' | 'phone'>;
|
|
3
11
|
export default class MerchantPrototypeApi {
|
|
4
12
|
private merchantPrototypeEntity;
|
|
5
13
|
constructor(session: Session);
|
|
6
14
|
getAll(): Promise<MerchantPrototype[]>;
|
|
7
|
-
createMerchantByAccountManager(
|
|
15
|
+
createMerchantByAccountManager(newMerchant: CreateMerchantByAccountManager): Promise<void>;
|
|
8
16
|
}
|
|
@@ -44,10 +44,10 @@ var MerchantPrototypeApi = /** @class */ (function () {
|
|
|
44
44
|
MerchantPrototypeApi.prototype.getAll = function () {
|
|
45
45
|
return this.merchantPrototypeEntity.getAll();
|
|
46
46
|
};
|
|
47
|
-
MerchantPrototypeApi.prototype.createMerchantByAccountManager = function (
|
|
47
|
+
MerchantPrototypeApi.prototype.createMerchantByAccountManager = function (newMerchant) {
|
|
48
48
|
return __awaiter(this, void 0, void 0, function () {
|
|
49
49
|
return __generator(this, function (_a) {
|
|
50
|
-
return [2 /*return*/, this.merchantPrototypeEntity.createMerchantByAccountManager(
|
|
50
|
+
return [2 /*return*/, this.merchantPrototypeEntity.createMerchantByAccountManager(newMerchant)];
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
53
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MerchantPrototypeApi.js","sourceRoot":"","sources":["../../src/MerchantPrototype/MerchantPrototypeApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,4EAAuE;
|
|
1
|
+
{"version":3,"file":"MerchantPrototypeApi.js","sourceRoot":"","sources":["../../src/MerchantPrototype/MerchantPrototypeApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,4EAAuE;AAWvE;IAGC,8BAAY,OAAgB;QAC3B,IAAI,CAAC,uBAAuB,GAAG,IAAI,iCAAuB,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;IAEM,qCAAM,GAAb;QACC,OAAO,IAAI,CAAC,uBAAuB,CAAC,MAAM,EAAE,CAAC;IAC9C,CAAC;IAEY,6DAA8B,GAA3C,UAA4C,WAA2C;;;gBACtF,sBAAO,IAAI,CAAC,uBAAuB,CAAC,8BAA8B,CAAC,WAAW,CAAC,EAAC;;;KAChF;IACF,2BAAC;AAAD,CAAC,AAdD,IAcC"}
|
|
@@ -53,7 +53,7 @@ var lodash_1 = require("lodash");
|
|
|
53
53
|
var BringgException_1 = require("../Core/BringgException");
|
|
54
54
|
var Logger_1 = require("../Core/Logger");
|
|
55
55
|
var abort_1 = require("../utils/abort");
|
|
56
|
-
var version = '8.8.0-pre.
|
|
56
|
+
var version = '8.8.0-pre.2';
|
|
57
57
|
function logErrorResponse(response) {
|
|
58
58
|
var data = response.data, status = response.status;
|
|
59
59
|
try {
|
|
@@ -12445,11 +12445,12 @@ var MerchantPrototypeEntity = /** @class */ (function (_super) {
|
|
|
12445
12445
|
});
|
|
12446
12446
|
});
|
|
12447
12447
|
};
|
|
12448
|
-
MerchantPrototypeEntity.prototype.createMerchantByAccountManager = function (
|
|
12448
|
+
MerchantPrototypeEntity.prototype.createMerchantByAccountManager = function (newMerchant) {
|
|
12449
12449
|
return __awaiter(this, void 0, void 0, function () {
|
|
12450
12450
|
return __generator(this, function (_a) {
|
|
12451
12451
|
return [2 /*return*/, this.service.routeGenerator
|
|
12452
|
-
.post("".concat(ROUTE, "/").concat(
|
|
12452
|
+
.post("".concat(ROUTE, "/").concat(newMerchant.merchant_prototype_id))
|
|
12453
|
+
.withPayload(newMerchant)
|
|
12453
12454
|
.setException('Could not create merchant by account manager')
|
|
12454
12455
|
.invoke()];
|
|
12455
12456
|
});
|
|
@@ -12512,10 +12513,10 @@ var MerchantPrototypeApi = /** @class */ (function () {
|
|
|
12512
12513
|
MerchantPrototypeApi.prototype.getAll = function () {
|
|
12513
12514
|
return this.merchantPrototypeEntity.getAll();
|
|
12514
12515
|
};
|
|
12515
|
-
MerchantPrototypeApi.prototype.createMerchantByAccountManager = function (
|
|
12516
|
+
MerchantPrototypeApi.prototype.createMerchantByAccountManager = function (newMerchant) {
|
|
12516
12517
|
return __awaiter(this, void 0, void 0, function () {
|
|
12517
12518
|
return __generator(this, function (_a) {
|
|
12518
|
-
return [2 /*return*/, this.merchantPrototypeEntity.createMerchantByAccountManager(
|
|
12519
|
+
return [2 /*return*/, this.merchantPrototypeEntity.createMerchantByAccountManager(newMerchant)];
|
|
12519
12520
|
});
|
|
12520
12521
|
});
|
|
12521
12522
|
};
|
|
@@ -20053,7 +20054,7 @@ var lodash_1 = __webpack_require__(96486);
|
|
|
20053
20054
|
var BringgException_1 = __webpack_require__(43605);
|
|
20054
20055
|
var Logger_1 = __webpack_require__(55860);
|
|
20055
20056
|
var abort_1 = __webpack_require__(34179);
|
|
20056
|
-
var version = '8.8.0-pre.
|
|
20057
|
+
var version = '8.8.0-pre.2';
|
|
20057
20058
|
function logErrorResponse(response) {
|
|
20058
20059
|
var data = response.data, status = response.status;
|
|
20059
20060
|
try {
|