nest-wrapper-kiwoom 0.7.0 → 0.8.0

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.
@@ -1,6 +1,6 @@
1
1
  import { HttpService } from '@nestjs/axios';
2
2
  import { Oauth2 } from '@services/oauth2.service';
3
- import { KA01690Param, KA01690Response } from '@src/types';
3
+ import { KA01690Param, KA01690Response, KA10072Param, KA10072Response } from '@src/types';
4
4
  export declare class AccountService {
5
5
  private readonly httpService;
6
6
  private readonly oauth2;
@@ -9,4 +9,5 @@ export declare class AccountService {
9
9
  private readonly headers;
10
10
  constructor(httpService: HttpService, oauth2: Oauth2);
11
11
  ka01690(ka01690Param: KA01690Param): Promise<KA01690Response>;
12
+ ka10072(ka10072Param: KA10072Param): Promise<KA10072Response>;
12
13
  }
@@ -94,6 +94,32 @@ var AccountService = (function () {
94
94
  });
95
95
  });
96
96
  };
97
+ AccountService.prototype.ka10072 = function (ka10072Param) {
98
+ return __awaiter(this, void 0, void 0, function () {
99
+ var _a, _b, params, response, e_2;
100
+ return __generator(this, function (_c) {
101
+ switch (_c.label) {
102
+ case 0:
103
+ _c.trys.push([0, 3, , 4]);
104
+ this.headers['api-id'] = 'ka10072';
105
+ _a = this.headers;
106
+ _b = 'authorization';
107
+ return [4, this.oauth2.getBearerToken()];
108
+ case 1:
109
+ _a[_b] = _c.sent();
110
+ params = __assign({}, ka10072Param);
111
+ return [4, this.httpService.axiosRef.post("".concat(this.domain).concat(this.url), params, { headers: this.headers })];
112
+ case 2:
113
+ response = _c.sent();
114
+ return [2, response.data];
115
+ case 3:
116
+ e_2 = _c.sent();
117
+ throw new common_1.InternalServerErrorException(e_2.message);
118
+ case 4: return [2];
119
+ }
120
+ });
121
+ });
122
+ };
97
123
  AccountService = __decorate([
98
124
  (0, common_1.Injectable)(),
99
125
  __metadata("design:paramtypes", [axios_1.HttpService,
@@ -1 +1 @@
1
- {"version":3,"file":"account.service.js","sourceRoot":"","sources":["../../src/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CAAA;wBAAC,KAAA,eAAe,CAAA;wBAAI,WAAM,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,EAAA;;wBAAlE,MAA6B,GAAG,SAAkC,CAAC;wBAE7D,MAAM,gBAAsB,YAAY,CAAE,CAAC;wBAChC,WAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAG,IAAI,CAAC,MAAM,SAAG,IAAI,CAAC,GAAG,CAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,EAAA;;wBAA/G,QAAQ,GAAG,SAAoG;wBACrH,WAAO,QAAQ,CAAC,IAAuB,EAAC;;;wBAExC,MAAM,IAAI,qCAA4B,CAAC,GAAC,CAAC,OAAO,CAAC,CAAC;;;;;KAEnD;IApCW,cAAc;QAD1B,IAAA,mBAAU,GAAE;yCAOmB,mBAAW;YAChB,uBAAM;OAPpB,cAAc,CAqC1B;IAAD,qBAAC;CAAA,AAtCD,IAsCC;AArCY,wCAAc"}
@@ -10,3 +10,4 @@ export * from './ka40008';
10
10
  export * from './ka40009';
11
11
  export * from './ka40010';
12
12
  export * from './ka01690';
13
+ export * from './ka10072';
@@ -26,4 +26,5 @@ __exportStar(require("./ka40008"), exports);
26
26
  __exportStar(require("./ka40009"), exports);
27
27
  __exportStar(require("./ka40010"), exports);
28
28
  __exportStar(require("./ka01690"), exports);
29
+ __exportStar(require("./ka10072"), exports);
29
30
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B;AAC1B,4CAA0B"}
@@ -0,0 +1,26 @@
1
+ export interface KA10072Param {
2
+ stk_cd: string;
3
+ strt_dt: string;
4
+ }
5
+ interface DtStkDivRlztPl {
6
+ stk_nm: string;
7
+ cntr_qty: string;
8
+ buy_uv: string;
9
+ cntr_pric: string;
10
+ tdy_sel_pl: string;
11
+ pl_rt: string;
12
+ stk_cd: string;
13
+ tdy_trde_cmsn: string;
14
+ tdy_trde_tax: string;
15
+ wthd_alowa: string;
16
+ loan_dt: string;
17
+ crd_tp: string;
18
+ stk_cd_1: string;
19
+ tdy_sel_pl_1: string;
20
+ }
21
+ export interface KA10072Response {
22
+ dt_stk_div_rlzt_pl: DtStkDivRlztPl[];
23
+ return_code: number;
24
+ return_msg: string;
25
+ }
26
+ export {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ka10072.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ka10072.js","sourceRoot":"","sources":["../../src/types/ka10072.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nest-wrapper-kiwoom",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "homepage": "https://github.com/gong-yeongbin/nest-wrapper-kiwoom",
5
5
  "description": "A Nest module wrapper for 키움 REST API",
6
6
  "main": "dist/index.js",