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.
@@ -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;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,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC;CAUxG"}
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,6 +1,5 @@
1
1
  declare const _default: {
2
2
  GET_SERVICE_LIST: string;
3
- UPLOAD_FILE: string;
4
3
  };
5
4
  export default _default;
6
5
  //# sourceMappingURL=service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/endpoints/service.ts"],"names":[],"mappings":";;;;AAAA,wBAGC"}
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/endpoints/service.ts"],"names":[],"mappings":";;;AAAA,wBAEC"}
@@ -1,4 +1,3 @@
1
1
  export default {
2
2
  GET_SERVICE_LIST: '/v1/pos/service/site/list',
3
- UPLOAD_FILE: '/v1/pos/service/form/upload',
4
3
  };
@@ -1,4 +1,3 @@
1
1
  import * as Response from "../types/response";
2
2
  export declare function ServiceModel(data: any): Response.GetServiceListResponse;
3
- export declare function UploadFileModel(data: any): any;
4
3
  //# sourceMappingURL=service.d.ts.map
@@ -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;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAU9C"}
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,5 +1,2 @@
1
1
  export declare type GetServiceListRequest = {};
2
- export declare type UploadFileRequest = {
3
- file: File;
4
- };
5
2
  //# sourceMappingURL=service.d.ts.map
@@ -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;AAED,oBAAY,iBAAiB,GAAG;IAC5B,IAAI,EAAE,IAAI,CAAA;CACb,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;AAEF,oBAAY,kBAAkB,GAAG,QAAQ,CAAC;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,MAAM,CAAA;CACrB,EAAE,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gap-nodejs-sdk",
3
- "version": "1.0.68",
3
+ "version": "1.0.69",
4
4
  "description": "GCI App Platform Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",