@bringg/dashboard-sdk 6.0.0 → 6.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.
- package/dist/CustomAttributes/CustomAttributesApi.d.ts +2 -2
- package/dist/CustomAttributes/CustomAttributesApi.js +2 -2
- package/dist/CustomAttributes/CustomAttributesApi.js.map +1 -1
- package/dist/CustomAttributes/Entity/CustomAttributesEntity.d.ts +2 -2
- package/dist/CustomAttributes/Entity/CustomAttributesEntity.js +2 -1
- package/dist/CustomAttributes/Entity/CustomAttributesEntity.js.map +1 -1
- package/dist/Services/ServiceRequest.js +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +628 -606
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +19 -6
- package/dist/bringg-dashboard-sdk.min.js +4 -4
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CreateCustomAttributePayload, CustomAttributeResponse, FeedbackResponse, UpdateCustomAttributePayload } from '@bringg/types';
|
|
1
|
+
import { CreateCustomAttributePayload, CustomAttributeGetAllParams, CustomAttributeResponse, FeedbackResponse, UpdateCustomAttributePayload } from '@bringg/types';
|
|
2
2
|
import Session from '../Services/Identity/Session';
|
|
3
3
|
export default class CustomAttributesApi {
|
|
4
4
|
private customAttributesEntity;
|
|
5
5
|
constructor(session: Session);
|
|
6
|
-
getAllCustomAttributes(): Promise<CustomAttributeResponse[]>;
|
|
6
|
+
getAllCustomAttributes(params?: CustomAttributeGetAllParams): Promise<CustomAttributeResponse[]>;
|
|
7
7
|
createCustomAttribute(payload: CreateCustomAttributePayload): Promise<CustomAttributeResponse>;
|
|
8
8
|
updateCustomAttribute(payload: UpdateCustomAttributePayload): Promise<CustomAttributeResponse>;
|
|
9
9
|
deleteCustomAttribute(id: number): Promise<FeedbackResponse>;
|
|
@@ -5,8 +5,8 @@ var CustomAttributesApi = /** @class */ (function () {
|
|
|
5
5
|
function CustomAttributesApi(session) {
|
|
6
6
|
this.customAttributesEntity = new CustomAttributesEntity_1.default(session);
|
|
7
7
|
}
|
|
8
|
-
CustomAttributesApi.prototype.getAllCustomAttributes = function () {
|
|
9
|
-
return this.customAttributesEntity.getAllCustomAttributes();
|
|
8
|
+
CustomAttributesApi.prototype.getAllCustomAttributes = function (params) {
|
|
9
|
+
return this.customAttributesEntity.getAllCustomAttributes(params);
|
|
10
10
|
};
|
|
11
11
|
CustomAttributesApi.prototype.createCustomAttribute = function (payload) {
|
|
12
12
|
return this.customAttributesEntity.createCustomAttribute(payload);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAttributesApi.js","sourceRoot":"","sources":["../../src/CustomAttributes/CustomAttributesApi.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"CustomAttributesApi.js","sourceRoot":"","sources":["../../src/CustomAttributes/CustomAttributesApi.ts"],"names":[],"mappings":";;AASA,0EAAqE;AAErE;IAGC,6BAAY,OAAgB;QAC3B,IAAI,CAAC,sBAAsB,GAAG,IAAI,gCAAsB,CAAC,OAAO,CAAC,CAAC;IACnE,CAAC;IAED,oDAAsB,GAAtB,UAAuB,MAAoC;QAC1D,OAAO,IAAI,CAAC,sBAAsB,CAAC,sBAAsB,CAAC,MAAM,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,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,9 +1,9 @@
|
|
|
1
|
-
import { CreateCustomAttributePayload, CustomAttributeResponse, FeedbackResponse, UpdateCustomAttributePayload } from '@bringg/types';
|
|
1
|
+
import { CreateCustomAttributePayload, CustomAttributeGetAllParams, CustomAttributeResponse, FeedbackResponse, UpdateCustomAttributePayload } from '@bringg/types';
|
|
2
2
|
import Entity from '../../Core/Entity';
|
|
3
3
|
import type Session from '../../Services/Identity/Session';
|
|
4
4
|
export default class CustomAttributesEntity extends Entity<CustomAttributeResponse> {
|
|
5
5
|
constructor(session: Session);
|
|
6
|
-
getAllCustomAttributes(): Promise<CustomAttributeResponse[]>;
|
|
6
|
+
getAllCustomAttributes(params?: CustomAttributeGetAllParams): Promise<CustomAttributeResponse[]>;
|
|
7
7
|
createCustomAttribute(payload: CreateCustomAttributePayload): Promise<CustomAttributeResponse>;
|
|
8
8
|
updateCustomAttribute(payload?: UpdateCustomAttributePayload): Promise<CustomAttributeResponse>;
|
|
9
9
|
deleteCustomAttribute(id: number): Promise<FeedbackResponse>;
|
|
@@ -61,12 +61,13 @@ var CustomAttributesEntity = /** @class */ (function (_super) {
|
|
|
61
61
|
entityName: 'custom_attributes'
|
|
62
62
|
}) || this;
|
|
63
63
|
}
|
|
64
|
-
CustomAttributesEntity.prototype.getAllCustomAttributes = function () {
|
|
64
|
+
CustomAttributesEntity.prototype.getAllCustomAttributes = function (params) {
|
|
65
65
|
return __awaiter(this, void 0, void 0, function () {
|
|
66
66
|
return __generator(this, function (_a) {
|
|
67
67
|
switch (_a.label) {
|
|
68
68
|
case 0: return [4 /*yield*/, this.service.routeGenerator
|
|
69
69
|
.get(CustomAttributes_consts_1.Routes.SERVICE_ROUTE)
|
|
70
|
+
.withQueryString(params)
|
|
70
71
|
.setException('failed to get all custom attributes')
|
|
71
72
|
.invoke()];
|
|
72
73
|
case 1: return [2 /*return*/, _a.sent()];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomAttributesEntity.js","sourceRoot":"","sources":["../../../src/CustomAttributes/Entity/CustomAttributesEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"CustomAttributesEntity.js","sourceRoot":"","sources":["../../../src/CustomAttributes/Entity/CustomAttributesEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,4CAAuC;AAEvC,sEAAoD;AAEpD;IAAoD,0CAA+B;IAClF,gCAAY,OAAgB;eAC3B,kBAAM;YACL,OAAO,SAAA;YACP,UAAU,EAAE,mBAAmB;SAC/B,CAAC;IACH,CAAC;IAEK,uDAAsB,GAA5B,UAA6B,MAAoC;;;;4BACzD,qBAAM,IAAI,CAAC,OAAO,CAAC,cAAc;6BACtC,GAAG,CAAC,gCAAM,CAAC,aAAa,CAAC;6BACzB,eAAe,CAAC,MAAM,CAAC;6BACvB,YAAY,CAAC,qCAAqC,CAAC;6BACnD,MAAM,EAAE,EAAA;4BAJV,sBAAO,SAIG,EAAC;;;;KACX;IAEK,sDAAqB,GAA3B,UAA4B,OAAqC;;;;4BACzD,qBAAM,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,gCAAM,CAAC,aAAa,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAA;4BAAjG,sBAAO,SAA0F,EAAC;;;;KAClG;IAEK,sDAAqB,GAA3B,UAA4B,OAAsC;;;;4BAC1D,qBAAM,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,gCAAM,CAAC,aAAa,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAA;4BAAlG,sBAAO,SAA2F,EAAC;;;;KACnG;IAEK,sDAAqB,GAA3B,UAA4B,EAAU;;;;4BAC9B,qBAAM,IAAI,CAAC,OAAO,CAAC,cAAc;6BACtC,MAAM,CAAC,gCAAM,CAAC,MAAM,CAAC;6BACrB,eAAe,CAAC,EAAE,EAAE,IAAA,EAAE,CAAC;6BACvB,YAAY,CAAC,mCAAmC,CAAC;6BACjD,MAAM,EAAE,EAAA;4BAJV,sBAAO,SAIG,EAAC;;;;KACX;IACF,6BAAC;AAAD,CAAC,AA/BD,CAAoD,gBAAM,GA+BzD"}
|
|
@@ -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 = '6.0.
|
|
56
|
+
var version = '6.0.1';
|
|
57
57
|
function logErrorResponse(response) {
|
|
58
58
|
var data = response.data, status = response.status;
|
|
59
59
|
try {
|