gap-nodejs-sdk 1.0.108 → 1.0.109
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/gap-sdk.js +1 -1
- package/dist/pos_client_api/1.0.0/api/printer.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/printer.js +2 -2
- package/dist/pos_client_api/1.0.0/models/printer.d.ts +1 -2
- package/dist/pos_client_api/1.0.0/models/printer.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/models/printer.js +0 -16
- package/dist/pos_client_api/1.0.0/types/request/printer.d.ts +4 -4
- package/dist/pos_client_api/1.0.0/types/request/printer.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/printer.d.ts +2 -2
- package/dist/pos_client_api/1.0.0/types/response/printer.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"printer.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/printer.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,uBAAuB,CAAC;AACzD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"printer.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/printer.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,uBAAuB,CAAC;AACzD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAI9C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,IAAK,YAAW,oBAAoB;IACrE,OAAc,WAAW,gBAAoB;WAEzB,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;WAU7F,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;WAUnG,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;WAUtG,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;CAS7H"}
|
|
@@ -31,7 +31,7 @@ export default class Printer extends Base {
|
|
|
31
31
|
path: posEndpoints.printer.CREATE_PRINTER_INFO,
|
|
32
32
|
data: data
|
|
33
33
|
});
|
|
34
|
-
return Model.
|
|
34
|
+
return Model.PrinterModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
static updatePrinterInfo(data) {
|
|
@@ -41,7 +41,7 @@ export default class Printer extends Base {
|
|
|
41
41
|
path: posEndpoints.printer.UPDATE_PRINTER_INFO,
|
|
42
42
|
data: data
|
|
43
43
|
});
|
|
44
|
-
return Model.
|
|
44
|
+
return Model.PrinterModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as Response from "../types/response";
|
|
2
|
-
export declare function PrinterModel(data: any):
|
|
2
|
+
export declare function PrinterModel(data: any): any;
|
|
3
3
|
export declare function PrinterInfoModel(data: any): Response.CreatePrinterInfoResponse;
|
|
4
|
-
export declare function UpdatePrinterInfoModel(data: any): Response.UpdatePrinterInfoResponse;
|
|
5
4
|
//# sourceMappingURL=printer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"printer.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/models/printer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAA;AAE7C,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,
|
|
1
|
+
{"version":3,"file":"printer.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/models/printer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAA;AAE7C,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAc3C;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,yBAAyB,CAW9E"}
|
|
@@ -27,19 +27,3 @@ export function PrinterInfoModel(data) {
|
|
|
27
27
|
data: (_h = data === null || data === void 0 ? void 0 : data.data) !== null && _h !== void 0 ? _h : null,
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
export function UpdatePrinterInfoModel(data) {
|
|
31
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
32
|
-
return {
|
|
33
|
-
id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
|
|
34
|
-
name: (_b = data === null || data === void 0 ? void 0 : data.name) !== null && _b !== void 0 ? _b : null,
|
|
35
|
-
printer_name: (_c = data === null || data === void 0 ? void 0 : data.printer_name) !== null && _c !== void 0 ? _c : null,
|
|
36
|
-
printer_id: (_d = data === null || data === void 0 ? void 0 : data.printer_id) !== null && _d !== void 0 ? _d : null,
|
|
37
|
-
ip_address: (_e = data === null || data === void 0 ? void 0 : data.ip_address) !== null && _e !== void 0 ? _e : null,
|
|
38
|
-
printer_mac_address: (_f = data === null || data === void 0 ? void 0 : data.printer_mac_address) !== null && _f !== void 0 ? _f : null,
|
|
39
|
-
is_bluetooth: (_g = data === null || data === void 0 ? void 0 : data.is_bluetooth) !== null && _g !== void 0 ? _g : null,
|
|
40
|
-
data: (_h = data === null || data === void 0 ? void 0 : data.data) !== null && _h !== void 0 ? _h : null,
|
|
41
|
-
created_at: (_j = data === null || data === void 0 ? void 0 : data.created_at) !== null && _j !== void 0 ? _j : null,
|
|
42
|
-
updated_at: (_k = data === null || data === void 0 ? void 0 : data.updated_at) !== null && _k !== void 0 ? _k : null,
|
|
43
|
-
status: (_l = data === null || data === void 0 ? void 0 : data.status) !== null && _l !== void 0 ? _l : null,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare type GetPrinterListRequest = {
|
|
2
|
-
start_date
|
|
3
|
-
end_date
|
|
2
|
+
start_date?: string;
|
|
3
|
+
end_date?: string;
|
|
4
4
|
};
|
|
5
5
|
export declare type GetPrinterDetailRequest = {
|
|
6
6
|
id: number;
|
|
@@ -9,7 +9,7 @@ export declare type CreatePrinterInfoRequest = {
|
|
|
9
9
|
name: string;
|
|
10
10
|
printer_name: string;
|
|
11
11
|
printer_id: string;
|
|
12
|
-
|
|
12
|
+
ip_address: string;
|
|
13
13
|
printer_mac_address: string;
|
|
14
14
|
is_bluetooth: number;
|
|
15
15
|
data: string;
|
|
@@ -19,7 +19,7 @@ export declare type UpdatePrinterInfoRequest = {
|
|
|
19
19
|
name: string;
|
|
20
20
|
printer_name: string;
|
|
21
21
|
printer_id: string;
|
|
22
|
-
|
|
22
|
+
ip_address: string;
|
|
23
23
|
printer_mac_address: string;
|
|
24
24
|
is_bluetooth: number;
|
|
25
25
|
data: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"printer.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/request/printer.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB,GAAG;IAChC,UAAU,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"printer.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/request/printer.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB,GAAG;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AACD,oBAAY,uBAAuB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;CACd,CAAA;AACD,oBAAY,wBAAwB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;CAChB,CAAA;AACD,oBAAY,wBAAwB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;CAChB,CAAA"}
|
|
@@ -10,8 +10,8 @@ export declare type GetPrinterListResponse = Nullable<{
|
|
|
10
10
|
data: string;
|
|
11
11
|
created_at: string;
|
|
12
12
|
updated_at: string;
|
|
13
|
-
status:
|
|
14
|
-
}>;
|
|
13
|
+
status: number;
|
|
14
|
+
}[]>;
|
|
15
15
|
export declare type GetPrinterDetailResponse = GetPrinterListResponse;
|
|
16
16
|
export declare type CreatePrinterInfoResponse = Nullable<{
|
|
17
17
|
id: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"printer.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/printer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAA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