gap-nodejs-sdk 1.0.68 → 1.0.69
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/clover/Clover.d.ts +14 -8
- package/dist/clover/Clover.d.ts.map +1 -1
- package/dist/clover/Clover.js +49 -16
- package/dist/clover/payment_response_model.d.ts +27 -0
- package/dist/clover/payment_response_model.d.ts.map +1 -0
- package/dist/clover/payment_response_model.js +93 -0
- package/dist/gap-sdk.js +1 -1
- package/dist/pos_client_api/1.0.0/api/service.d.ts +0 -1
- package/dist/pos_client_api/1.0.0/api/service.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/service.js +0 -11
- package/dist/pos_client_api/1.0.0/endpoints/service.d.ts +0 -1
- package/dist/pos_client_api/1.0.0/endpoints/service.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/endpoints/service.js +0 -1
- package/dist/pos_client_api/1.0.0/models/service.d.ts +0 -1
- package/dist/pos_client_api/1.0.0/models/service.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/models/service.js +0 -12
- package/dist/pos_client_api/1.0.0/types/request/service.d.ts +0 -3
- package/dist/pos_client_api/1.0.0/types/request/service.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/service.d.ts +0 -9
- package/dist/pos_client_api/1.0.0/types/response/service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6,6 +6,5 @@ import * as Response from "../types/response";
|
|
|
6
6
|
export default class Service extends Base implements ServiceAbstractClass {
|
|
7
7
|
static API_VERSION: GapApiVersion;
|
|
8
8
|
static getServiceList(data: Request.GetServiceListRequest): Promise<Response.GetServiceListResponse>;
|
|
9
|
-
static uploadFile(data: Request.UploadFileRequest): Promise<Response.UploadFileResponse>;
|
|
10
9
|
}
|
|
11
10
|
//# sourceMappingURL=service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/service.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":"service.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/service.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;AAG9C,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;CASpH"}
|
|
@@ -3,7 +3,6 @@ import * as posEndpoints from "../endpoints";
|
|
|
3
3
|
import Base from "../../../base/Base";
|
|
4
4
|
import { GapApiVersion } from "../../../base_type";
|
|
5
5
|
import * as Model from "../models";
|
|
6
|
-
import { objectToFormData } from "../../../utils/form-data";
|
|
7
6
|
export default class Service extends Base {
|
|
8
7
|
static getServiceList(data) {
|
|
9
8
|
var _a;
|
|
@@ -15,15 +14,5 @@ export default class Service extends Base {
|
|
|
15
14
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.ServiceModel(item));
|
|
16
15
|
});
|
|
17
16
|
}
|
|
18
|
-
static uploadFile(data) {
|
|
19
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
const formData = objectToFormData(data);
|
|
21
|
-
const response = yield this.client.post({
|
|
22
|
-
path: posEndpoints.service.UPLOAD_FILE,
|
|
23
|
-
data: formData
|
|
24
|
-
});
|
|
25
|
-
return (response || []).map(item => Model.UploadFileModel(item));
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
17
|
}
|
|
29
18
|
Service.API_VERSION = GapApiVersion.V1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/endpoints/service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/endpoints/service.ts"],"names":[],"mappings":";;;AAAA,wBAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/models/service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAA;AAE7C,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,sBAAsB,CAgBvE
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/models/service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAA;AAE7C,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,sBAAsB,CAgBvE"}
|
|
@@ -16,15 +16,3 @@ export function ServiceModel(data) {
|
|
|
16
16
|
group_id: (_o = data === null || data === void 0 ? void 0 : data.group_id) !== null && _o !== void 0 ? _o : null,
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
export function UploadFileModel(data) {
|
|
20
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
21
|
-
return {
|
|
22
|
-
name: (_a = data === null || data === void 0 ? void 0 : data.name) !== null && _a !== void 0 ? _a : null,
|
|
23
|
-
type: (_b = data === null || data === void 0 ? void 0 : data.type) !== null && _b !== void 0 ? _b : null,
|
|
24
|
-
size: (_c = data === null || data === void 0 ? void 0 : data.size) !== null && _c !== void 0 ? _c : null,
|
|
25
|
-
base_url: (_d = data === null || data === void 0 ? void 0 : data.base_url) !== null && _d !== void 0 ? _d : null,
|
|
26
|
-
path: (_e = data === null || data === void 0 ? void 0 : data.path) !== null && _e !== void 0 ? _e : null,
|
|
27
|
-
url: (_f = data === null || data === void 0 ? void 0 : data.url) !== null && _f !== void 0 ? _f : null,
|
|
28
|
-
delete_url: (_g = data === null || data === void 0 ? void 0 : data.delete_url) !== null && _g !== void 0 ? _g : null,
|
|
29
|
-
};
|
|
30
|
-
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/request/service.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB,GAAG,EAEnC,CAAA
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/request/service.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB,GAAG,EAEnC,CAAA"}
|
|
@@ -14,13 +14,4 @@ export declare type GetServiceListResponse = Nullable<{
|
|
|
14
14
|
web_booking_visible: string;
|
|
15
15
|
group_id: number;
|
|
16
16
|
}>;
|
|
17
|
-
export declare type UploadFileResponse = Nullable<{
|
|
18
|
-
name: string;
|
|
19
|
-
type: string;
|
|
20
|
-
size: number;
|
|
21
|
-
base_url: string;
|
|
22
|
-
path: string;
|
|
23
|
-
url: string;
|
|
24
|
-
delete_url: string;
|
|
25
|
-
}[]>;
|
|
26
17
|
//# sourceMappingURL=service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,oBAAY,sBAAsB,GAAG,QAAQ,CAAC;IAC1C,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,GAAG,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,GAAG,CAAA;IAChB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,QAAQ,EAAE,MAAM,CAAA;CACnB,CAAC,CAAA
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,oBAAY,sBAAsB,GAAG,QAAQ,CAAC;IAC1C,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,GAAG,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,GAAG,CAAA;IAChB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,QAAQ,EAAE,MAAM,CAAA;CACnB,CAAC,CAAA"}
|