gap-nodejs-sdk 1.0.344 → 1.0.345
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/api/pos_client_api/1.0.0/api/device.d.ts +2 -1
- package/dist/api/pos_client_api/1.0.0/api/device.d.ts.map +1 -1
- package/dist/api/pos_client_api/1.0.0/api/device.js +11 -0
- package/dist/api/pos_client_api/1.0.0/endpoints/device.d.ts +1 -0
- package/dist/api/pos_client_api/1.0.0/endpoints/device.d.ts.map +1 -1
- package/dist/api/pos_client_api/1.0.0/endpoints/device.js +1 -0
- package/dist/api/pos_client_api/1.0.0/types/request/device.d.ts +3 -0
- package/dist/api/pos_client_api/1.0.0/types/request/device.d.ts.map +1 -1
- package/dist/api/pos_client_api/1.0.0/types/response/device.d.ts +1 -0
- package/dist/api/pos_client_api/1.0.0/types/response/device.d.ts.map +1 -1
- package/dist/gap-sdk.js +1 -1
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ import { DataWithMetaResponse } from "../../../../types";
|
|
|
7
7
|
export default class Device extends Base implements DeviceAbstractClass {
|
|
8
8
|
static API_VERSION: GapApiVersion;
|
|
9
9
|
static getListPosDevice(data?: Request.GetListPosDeviceRequest): Promise<DataWithMetaResponse<Response.GetListPosDeviceResponse>>;
|
|
10
|
-
static
|
|
10
|
+
static deletePosDevice(data?: Request.DeletePosDeviceRequest): Promise<Response.DeletePosDeviceResponse>;
|
|
11
|
+
static updateStaffRatingDevice(data: Request.UpdateStaffRatingDeviceRequest): Promise<Response.UpdateStaffRatingDeviceResponse>;
|
|
11
12
|
}
|
|
12
13
|
//# sourceMappingURL=device.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/api/device.ts"],"names":[],"mappings":"AACA,OAAO,mBAAmB,MAAM,sBAAsB,CAAC;AACvD,OAAO,IAAI,MAAM,uBAAuB,CAAC;AACz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,6 +15,17 @@ export default class Device extends Base {
|
|
|
15
15
|
return DataWithMetaModel(response, Model.DeviceModel);
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
+
static deletePosDevice(data) {
|
|
19
|
+
var _a;
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const formData = objectToFormData(data);
|
|
22
|
+
const response = yield this.client.post({
|
|
23
|
+
path: device.GET_LIST_POS_DEVICE,
|
|
24
|
+
data: formData
|
|
25
|
+
});
|
|
26
|
+
return (_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
18
29
|
static updateStaffRatingDevice(data) {
|
|
19
30
|
var _a;
|
|
20
31
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/endpoints/device.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/endpoints/device.ts"],"names":[],"mappings":";;;;;AAAA,wBAIC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../../../../../src/api/pos_client_api/1.0.0/types/request/device.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,IAAI,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;IACjB,aAAa,EAAE,IAAI,CAAC;CACvB,CAAA;AAED,MAAM,MAAM,8BAA8B,GAAG;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,oBAAoB,EAAE,MAAM,CAAC;CAChC,CAAA"}
|
|
1
|
+
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../../../../../src/api/pos_client_api/1.0.0/types/request/device.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,IAAI,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;IACjB,aAAa,EAAE,IAAI,CAAC;CACvB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,8BAA8B,GAAG;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,oBAAoB,EAAE,MAAM,CAAC;CAChC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../../../../../src/api/pos_client_api/1.0.0/types/response/device.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAElD,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAAC;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,IAAI,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;IACjB,aAAa,EAAE,IAAI,CAAC;CACvB,EAAE,CAAC,CAAA;AAEJ,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAAC"}
|
|
1
|
+
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../../../../../src/api/pos_client_api/1.0.0/types/response/device.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAElD,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAAC;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,IAAI,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;IACjB,aAAa,EAAE,IAAI,CAAC;CACvB,EAAE,CAAC,CAAA;AAEJ,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE7C,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAAC"}
|