dnf-api 1.0.7 → 1.1.1

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.
Files changed (57) hide show
  1. package/dist/api/auction.d.ts +24 -0
  2. package/dist/api/characters.d.ts +32 -0
  3. package/dist/api/characters.equip.d.ts +29 -0
  4. package/dist/api/characters.skill.d.ts +29 -0
  5. package/dist/api/index.d.ts +9 -0
  6. package/dist/api/items.d.ts +21 -0
  7. package/dist/api/multi.d.ts +7 -0
  8. package/dist/api/server.d.ts +2 -0
  9. package/dist/api/setitems.d.ts +15 -0
  10. package/dist/index.d.ts +14 -0
  11. package/dist/index.js +19 -19
  12. package/dist/model/auction.d.ts +47 -0
  13. package/dist/model/character.d.ts +91 -0
  14. package/dist/model/index.d.ts +39 -0
  15. package/dist/model/item.d.ts +103 -0
  16. package/dist/model/setitem.d.ts +32 -0
  17. package/dist/src/api/auction.d.ts +24 -24
  18. package/dist/src/api/characters.d.ts +32 -32
  19. package/dist/src/api/characters.equip.d.ts +29 -29
  20. package/dist/src/api/characters.skill.d.ts +29 -29
  21. package/dist/src/api/index.d.ts +9 -9
  22. package/dist/src/api/items.d.ts +21 -21
  23. package/dist/src/api/multi.d.ts +7 -7
  24. package/dist/src/api/server.d.ts +2 -2
  25. package/dist/src/api/setitems.d.ts +15 -15
  26. package/dist/src/index.d.ts +14 -14
  27. package/dist/src/model/auction.d.ts +47 -47
  28. package/dist/src/model/character.d.ts +91 -91
  29. package/dist/src/model/index.d.ts +39 -39
  30. package/dist/src/model/item.d.ts +103 -103
  31. package/dist/src/model/setitem.d.ts +32 -32
  32. package/dist/src/util/config.d.ts +11 -11
  33. package/dist/src/util/index.d.ts +5 -5
  34. package/dist/src/util/params.d.ts +76 -76
  35. package/dist/src/util/query.d.ts +14 -14
  36. package/dist/src/util/static.d.ts +50 -50
  37. package/dist/util/config.d.ts +21 -0
  38. package/dist/util/index.d.ts +7 -0
  39. package/dist/util/params.d.ts +80 -0
  40. package/dist/util/query.d.ts +39 -0
  41. package/dist/util/queue.d.ts +31 -0
  42. package/dist/util/request-helper.d.ts +9 -0
  43. package/dist/util/static.d.ts +50 -0
  44. package/package.json +42 -39
  45. package/src/api/auction.ts +2 -2
  46. package/src/api/characters.equip.ts +4 -4
  47. package/src/api/characters.skill.ts +4 -4
  48. package/src/api/characters.ts +6 -6
  49. package/src/model/setitem.ts +3 -3
  50. package/src/util/config.ts +27 -4
  51. package/src/util/index.ts +13 -2
  52. package/src/util/params.ts +22 -9
  53. package/src/util/query.ts +126 -74
  54. package/src/util/queue.ts +104 -0
  55. package/src/util/request-helper.ts +19 -0
  56. package/bun.lockb +0 -0
  57. package/dist/test.d.ts +0 -1
@@ -1,76 +1,76 @@
1
- import type * as staticUtil from "./static";
2
- export interface QueryOptions<T = any> {
3
- base: string;
4
- params?: T;
5
- }
6
- export interface ICharParams {
7
- characterName?: string;
8
- jobId?: string;
9
- jobGrowId?: string;
10
- isAllJobGrow?: boolean;
11
- wordType?: staticUtil.charactersWordType;
12
- limit?: number;
13
- }
14
- export interface ITimeLine {
15
- serverId?: staticUtil.server;
16
- characterId?: string;
17
- startDate?: Date;
18
- endDate?: Date;
19
- limit?: number;
20
- code?: string[];
21
- next?: string;
22
- }
23
- export interface IAuction {
24
- limit?: number;
25
- sort?: IAuctionSort;
26
- itemId?: string;
27
- itemName?: string;
28
- wordType?: staticUtil.auctionWordType;
29
- wordShort?: boolean;
30
- q?: IAuctionQuery;
31
- }
32
- export interface IAuctionSort {
33
- unitPrice?: staticUtil.sort;
34
- reinforce?: staticUtil.sort;
35
- auctionNo?: staticUtil.sort;
36
- }
37
- export interface IAuctionQuery {
38
- minLevel?: number;
39
- maxLevel?: number;
40
- raity?: staticUtil.rarity;
41
- reinforceTypeId: staticUtil.reinforceType;
42
- minReinforce?: number;
43
- maxReinforce?: number;
44
- minRefine?: number;
45
- maxRefine?: number;
46
- minFame?: number;
47
- maxFame?: number;
48
- }
49
- export interface IActionSoldOption {
50
- limit?: number;
51
- wordType?: staticUtil.auctionWordType;
52
- wordShort?: boolean;
53
- itemId?: string;
54
- itemName?: string;
55
- sort?: IAuctionSort;
56
- }
57
- export interface IItem {
58
- limit?: number;
59
- itemName?: string;
60
- hashtag?: string[];
61
- wordType?: staticUtil.auctionWordType;
62
- q?: IItemQuery;
63
- }
64
- export interface IItemQuery {
65
- minLevel?: number;
66
- maxLevel?: number;
67
- rarity?: staticUtil.rarity;
68
- }
69
- export interface ISetItem {
70
- setItemName?: string;
71
- limit?: number;
72
- wordType?: staticUtil.auctionWordType;
73
- }
74
- export interface ISkill {
75
- jobGrowId: string;
76
- }
1
+ import type * as staticUtil from "./static";
2
+ export interface QueryOptions<T = any> {
3
+ base: string;
4
+ params?: T;
5
+ }
6
+ export interface ICharParams {
7
+ characterName?: string;
8
+ jobId?: string;
9
+ jobGrowId?: string;
10
+ isAllJobGrow?: boolean;
11
+ wordType?: staticUtil.charactersWordType;
12
+ limit?: number;
13
+ }
14
+ export interface ITimeLine {
15
+ serverId?: staticUtil.server;
16
+ characterId?: string;
17
+ startDate?: Date;
18
+ endDate?: Date;
19
+ limit?: number;
20
+ code?: string[];
21
+ next?: string;
22
+ }
23
+ export interface IAuction {
24
+ limit?: number;
25
+ sort?: IAuctionSort;
26
+ itemId?: string;
27
+ itemName?: string;
28
+ wordType?: staticUtil.auctionWordType;
29
+ wordShort?: boolean;
30
+ q?: IAuctionQuery;
31
+ }
32
+ export interface IAuctionSort {
33
+ unitPrice?: staticUtil.sort;
34
+ reinforce?: staticUtil.sort;
35
+ auctionNo?: staticUtil.sort;
36
+ }
37
+ export interface IAuctionQuery {
38
+ minLevel?: number;
39
+ maxLevel?: number;
40
+ raity?: staticUtil.rarity;
41
+ reinforceTypeId: staticUtil.reinforceType;
42
+ minReinforce?: number;
43
+ maxReinforce?: number;
44
+ minRefine?: number;
45
+ maxRefine?: number;
46
+ minFame?: number;
47
+ maxFame?: number;
48
+ }
49
+ export interface IActionSoldOption {
50
+ limit?: number;
51
+ wordType?: staticUtil.auctionWordType;
52
+ wordShort?: boolean;
53
+ itemId?: string;
54
+ itemName?: string;
55
+ sort?: IAuctionSort;
56
+ }
57
+ export interface IItem {
58
+ limit?: number;
59
+ itemName?: string;
60
+ hashtag?: string[];
61
+ wordType?: staticUtil.auctionWordType;
62
+ q?: IItemQuery;
63
+ }
64
+ export interface IItemQuery {
65
+ minLevel?: number;
66
+ maxLevel?: number;
67
+ rarity?: staticUtil.rarity;
68
+ }
69
+ export interface ISetItem {
70
+ setItemName?: string;
71
+ limit?: number;
72
+ wordType?: staticUtil.auctionWordType;
73
+ }
74
+ export interface ISkill {
75
+ jobGrowId: string;
76
+ }
@@ -1,14 +1,14 @@
1
- import type * as model from "../model";
2
- export default class Request {
3
- static UriBuilder(...args: any[]): string;
4
- static QueryBuilder(query: string[] | number[]): string;
5
- /**
6
- * 던전앤파이터 API 서버에 응답을 요청하는 함수 입니다.
7
- * 해당 함수를 직접 호출 하는것을 권장하지 않습니다.
8
- *
9
- * @param {object} opt (요청을 보낼 Parameter값)
10
- * @returns
11
- */
12
- static Request<T>(opt?: any, method?: "GET" | "POST"): Promise<model.IDnfResponse<T>>;
13
- static makeItemQuery(query: any): string;
14
- }
1
+ import type * as model from "../model";
2
+ export default class Request {
3
+ static UriBuilder(...args: any[]): string;
4
+ static QueryBuilder(query: string[] | number[]): string;
5
+ /**
6
+ * 던전앤파이터 API 서버에 응답을 요청하는 함수 입니다.
7
+ * 해당 함수를 직접 호출 하는것을 권장하지 않습니다.
8
+ *
9
+ * @param {object} opt (요청을 보낼 Parameter값)
10
+ * @returns
11
+ */
12
+ static Request<T>(opt?: any, method?: "GET" | "POST"): Promise<model.IDnfResponse<T>>;
13
+ static makeItemQuery(query: any): string;
14
+ }
@@ -1,50 +1,50 @@
1
- export declare enum server {
2
- Cain = "cain",
3
- Diregie = "diregie",
4
- Siroco = "siroco",
5
- Prey = "prey",
6
- Casillas = "casillas",
7
- Hilder = "hilder",
8
- Anton = "anton",
9
- Bakal = "bakal"
10
- }
11
- export declare enum sort {
12
- Asc = "asc",
13
- Desc = "desc"
14
- }
15
- export declare enum rarity {
16
- Common = "\uCEE4\uBA3C",
17
- Uncommon = "\uC5B8\uCEE4\uBA3C",
18
- Rare = "\uB808\uC5B4",
19
- Unique = "\uC720\uB2C8\uD06C",
20
- Eqic = "\uC5D0\uD53D",
21
- Chronicle = "\uD06C\uB85C\uB2C8\uD074",
22
- Legendary = "\uB808\uC804\uB354\uB9AC"
23
- }
24
- export declare enum auctionWordType {
25
- Match = "match",
26
- Front = "front",
27
- Full = "full"
28
- }
29
- export declare enum wordType {
30
- Match = "match",
31
- Front = "front",
32
- Full = "full"
33
- }
34
- export declare enum charactersWordType {
35
- Match = "match",
36
- Full = "full"
37
- }
38
- export declare enum baseUri {
39
- Servers = "df/servers",
40
- Auction = "df/auction",
41
- AuctionSold = "df/auction-sold",
42
- Item = "df/items",
43
- SetItem = "df/setitems",
44
- Multi = "df/multi"
45
- }
46
- export declare enum reinforceType {
47
- reinforce = "\uAC15\uD654",
48
- minRefine = "\uC99D\uD3ED",
49
- modify = "\uAC1C\uC870"
50
- }
1
+ export declare enum server {
2
+ Cain = "cain",
3
+ Diregie = "diregie",
4
+ Siroco = "siroco",
5
+ Prey = "prey",
6
+ Casillas = "casillas",
7
+ Hilder = "hilder",
8
+ Anton = "anton",
9
+ Bakal = "bakal"
10
+ }
11
+ export declare enum sort {
12
+ Asc = "asc",
13
+ Desc = "desc"
14
+ }
15
+ export declare enum rarity {
16
+ Common = "\uCEE4\uBA3C",
17
+ Uncommon = "\uC5B8\uCEE4\uBA3C",
18
+ Rare = "\uB808\uC5B4",
19
+ Unique = "\uC720\uB2C8\uD06C",
20
+ Eqic = "\uC5D0\uD53D",
21
+ Chronicle = "\uD06C\uB85C\uB2C8\uD074",
22
+ Legendary = "\uB808\uC804\uB354\uB9AC"
23
+ }
24
+ export declare enum auctionWordType {
25
+ Match = "match",
26
+ Front = "front",
27
+ Full = "full"
28
+ }
29
+ export declare enum wordType {
30
+ Match = "match",
31
+ Front = "front",
32
+ Full = "full"
33
+ }
34
+ export declare enum charactersWordType {
35
+ Match = "match",
36
+ Full = "full"
37
+ }
38
+ export declare enum baseUri {
39
+ Servers = "df/servers",
40
+ Auction = "df/auction",
41
+ AuctionSold = "df/auction-sold",
42
+ Item = "df/items",
43
+ SetItem = "df/setitems",
44
+ Multi = "df/multi"
45
+ }
46
+ export declare enum reinforceType {
47
+ reinforce = "\uAC15\uD654",
48
+ minRefine = "\uC99D\uD3ED",
49
+ modify = "\uAC1C\uC870"
50
+ }
@@ -0,0 +1,21 @@
1
+ export interface IConfig {
2
+ key: string;
3
+ hideOnErrorApiKey: boolean;
4
+ hideKeyText: string;
5
+ timeout: number;
6
+ returnJSON: boolean;
7
+ responseHeader: boolean;
8
+ showURL: boolean;
9
+ maxRequestsPerSecond: number;
10
+ }
11
+ export declare const config: IConfig;
12
+ /**
13
+ * 설정을 업데이트합니다.
14
+ * @param newConfig 업데이트할 설정 값
15
+ */
16
+ export declare function setConfig(newConfig: Partial<IConfig>): void;
17
+ /**
18
+ * 설정을 기본값으로 초기화합니다.
19
+ */
20
+ export declare function resetConfig(): void;
21
+ export default config;
@@ -0,0 +1,7 @@
1
+ import config, { setConfig, resetConfig } from "./config";
2
+ import * as params from "./params";
3
+ import query from "./query";
4
+ import { requestQueue } from "./queue";
5
+ import { createRequest } from "./request-helper";
6
+ import * as staticUtil from "./static";
7
+ export { config, setConfig, resetConfig, query, staticUtil, params, createRequest, requestQueue, };
@@ -0,0 +1,80 @@
1
+ import type * as staticUtil from "./static";
2
+ export type ParamValue = string | number | boolean | undefined;
3
+ export interface BaseParams {
4
+ [key: string]: ParamValue | ParamValue[] | object | undefined;
5
+ }
6
+ export interface QueryOptions<T = BaseParams> {
7
+ base: string;
8
+ params?: T;
9
+ }
10
+ export interface ICharParams extends BaseParams {
11
+ characterName?: string;
12
+ jobId?: string;
13
+ jobGrowId?: string;
14
+ isAllJobGrow?: boolean;
15
+ wordType?: staticUtil.charactersWordType;
16
+ limit?: number;
17
+ }
18
+ export interface ITimeLine extends BaseParams {
19
+ serverId?: staticUtil.server;
20
+ characterId?: string;
21
+ startDate?: Date;
22
+ endDate?: Date;
23
+ limit?: number;
24
+ code?: string[];
25
+ next?: string;
26
+ }
27
+ export interface IAuction extends BaseParams {
28
+ limit?: number;
29
+ sort?: IAuctionSort;
30
+ itemId?: string;
31
+ itemName?: string;
32
+ wordType?: staticUtil.auctionWordType;
33
+ wordShort?: boolean;
34
+ q?: IAuctionQuery;
35
+ }
36
+ export interface IAuctionSort {
37
+ unitPrice?: staticUtil.sort;
38
+ reinforce?: staticUtil.sort;
39
+ auctionNo?: staticUtil.sort;
40
+ }
41
+ export interface IAuctionQuery {
42
+ minLevel?: number;
43
+ maxLevel?: number;
44
+ raity?: staticUtil.rarity;
45
+ reinforceTypeId: staticUtil.reinforceType;
46
+ minReinforce?: number;
47
+ maxReinforce?: number;
48
+ minRefine?: number;
49
+ maxRefine?: number;
50
+ minFame?: number;
51
+ maxFame?: number;
52
+ }
53
+ export interface IActionSoldOption extends BaseParams {
54
+ limit?: number;
55
+ wordType?: staticUtil.auctionWordType;
56
+ wordShort?: boolean;
57
+ itemId?: string;
58
+ itemName?: string;
59
+ sort?: IAuctionSort;
60
+ }
61
+ export interface IItem extends BaseParams {
62
+ limit?: number;
63
+ itemName?: string;
64
+ hashtag?: string[];
65
+ wordType?: staticUtil.auctionWordType;
66
+ q?: IItemQuery;
67
+ }
68
+ export interface IItemQuery {
69
+ minLevel?: number;
70
+ maxLevel?: number;
71
+ rarity?: staticUtil.rarity;
72
+ }
73
+ export interface ISetItem extends BaseParams {
74
+ setItemName?: string;
75
+ limit?: number;
76
+ wordType?: staticUtil.auctionWordType;
77
+ }
78
+ export interface ISkill extends BaseParams {
79
+ jobGrowId: string;
80
+ }
@@ -0,0 +1,39 @@
1
+ import type * as model from "../model";
2
+ import type { BaseParams } from "./params";
3
+ export interface RequestOptions {
4
+ base: string;
5
+ params?: BaseParams;
6
+ url?: string;
7
+ }
8
+ /**
9
+ * URI 경로를 빌드합니다.
10
+ * @param args 경로 세그먼트들
11
+ * @returns 결합된 URI 경로
12
+ */
13
+ export declare function UriBuilder(...args: (string | number)[]): string;
14
+ /**
15
+ * 쿼리 문자열을 빌드합니다.
16
+ * @param query 쿼리 배열
17
+ * @returns 쿼리 문자열
18
+ */
19
+ export declare function QueryBuilder(query: (string | number)[]): string;
20
+ /**
21
+ * 던전앤파이터 API 서버에 요청을 보내는 함수입니다.
22
+ * @param opt 요청 옵션
23
+ * @param method HTTP 메서드
24
+ * @returns API 응답
25
+ */
26
+ export declare function Request<T>(opt?: RequestOptions, method?: "GET" | "POST"): Promise<model.IDnfResponse<T>>;
27
+ /**
28
+ * 아이템 쿼리를 생성합니다.
29
+ * @param query 쿼리 문자열
30
+ * @returns 인코딩된 쿼리
31
+ */
32
+ export declare function makeItemQuery(query: string): string;
33
+ declare const _default: {
34
+ UriBuilder: typeof UriBuilder;
35
+ QueryBuilder: typeof QueryBuilder;
36
+ Request: typeof Request;
37
+ makeItemQuery: typeof makeItemQuery;
38
+ };
39
+ export default _default;
@@ -0,0 +1,31 @@
1
+ export declare class RequestQueue {
2
+ private queue;
3
+ private processing;
4
+ private requestCount;
5
+ private lastResetTime;
6
+ /**
7
+ * 큐에 요청을 추가합니다.
8
+ * @param task 실행할 비동기 작업
9
+ * @returns 작업 결과 Promise
10
+ */
11
+ add<T>(task: () => Promise<T>): Promise<T>;
12
+ /**
13
+ * 큐를 처리합니다.
14
+ */
15
+ private processQueue;
16
+ private sleep;
17
+ /**
18
+ * 현재 큐 상태를 반환합니다.
19
+ */
20
+ get status(): {
21
+ queueLength: number;
22
+ requestCount: number;
23
+ maxRequestsPerSecond: number;
24
+ };
25
+ /**
26
+ * 큐를 초기화합니다.
27
+ */
28
+ clear(): void;
29
+ }
30
+ export declare const requestQueue: RequestQueue;
31
+ export default requestQueue;
@@ -0,0 +1,9 @@
1
+ import type * as model from "../model";
2
+ import type { BaseParams } from "./params";
3
+ /**
4
+ * API 요청을 생성하는 헬퍼 함수
5
+ * @param baseParts URI 경로 세그먼트들
6
+ * @param params 요청 파라미터
7
+ * @returns API 응답 Promise
8
+ */
9
+ export declare function createRequest<T>(baseParts: (string | number)[], params?: BaseParams): Promise<model.IDnfResponse<T>>;
@@ -0,0 +1,50 @@
1
+ export declare enum server {
2
+ Cain = "cain",
3
+ Diregie = "diregie",
4
+ Siroco = "siroco",
5
+ Prey = "prey",
6
+ Casillas = "casillas",
7
+ Hilder = "hilder",
8
+ Anton = "anton",
9
+ Bakal = "bakal"
10
+ }
11
+ export declare enum sort {
12
+ Asc = "asc",
13
+ Desc = "desc"
14
+ }
15
+ export declare enum rarity {
16
+ Common = "\uCEE4\uBA3C",
17
+ Uncommon = "\uC5B8\uCEE4\uBA3C",
18
+ Rare = "\uB808\uC5B4",
19
+ Unique = "\uC720\uB2C8\uD06C",
20
+ Eqic = "\uC5D0\uD53D",
21
+ Chronicle = "\uD06C\uB85C\uB2C8\uD074",
22
+ Legendary = "\uB808\uC804\uB354\uB9AC"
23
+ }
24
+ export declare enum auctionWordType {
25
+ Match = "match",
26
+ Front = "front",
27
+ Full = "full"
28
+ }
29
+ export declare enum wordType {
30
+ Match = "match",
31
+ Front = "front",
32
+ Full = "full"
33
+ }
34
+ export declare enum charactersWordType {
35
+ Match = "match",
36
+ Full = "full"
37
+ }
38
+ export declare enum baseUri {
39
+ Servers = "df/servers",
40
+ Auction = "df/auction",
41
+ AuctionSold = "df/auction-sold",
42
+ Item = "df/items",
43
+ SetItem = "df/setitems",
44
+ Multi = "df/multi"
45
+ }
46
+ export declare enum reinforceType {
47
+ reinforce = "\uAC15\uD654",
48
+ minRefine = "\uC99D\uD3ED",
49
+ modify = "\uAC1C\uC870"
50
+ }
package/package.json CHANGED
@@ -1,39 +1,42 @@
1
- {
2
- "name": "dnf-api",
3
- "version": "1.0.7",
4
- "description": "던전 앤 파이터 API",
5
- "main": "./dist/index.js",
6
- "types": "./dist/src/index.d.ts",
7
- "dependencies": {
8
- "@types/bun": "1.1.7",
9
- "axios": "^0.18.1",
10
- "consola": "^2.15.3",
11
- "prototype-helper": "^0.4.2",
12
- "query-string": "^9.1.1",
13
- "undici": "^7.3.0"
14
- },
15
- "devDependencies": {
16
- "@biomejs/biome": "^1.9.4",
17
- "dotenv": "^16.4.7",
18
- "typescript": "5.5.3"
19
- },
20
- "scripts": {
21
- "dev": "bun --watch test.ts",
22
- "bundle": "tsc --declaration --emitDeclarationOnly --outDir dist && bun build src/index.ts --minify --target=bun --outfile dist/index.js",
23
- "dev:test": "bun --watch test.ts",
24
- "test": "jest"
25
- },
26
- "repository": {
27
- "type": "git",
28
- "url": "git+https://github.com/k22pr/dnf-api.git"
29
- },
30
- "keywords": [
31
- "dnf"
32
- ],
33
- "author": "서버지기",
34
- "license": "MIT",
35
- "bugs": {
36
- "url": "https://github.com/k22pr/dnf-api/issues"
37
- },
38
- "homepage": "https://github.com/k22pr/dnf-api#readme"
39
- }
1
+ {
2
+ "name": "dnf-api",
3
+ "version": "1.1.1",
4
+ "description": "던전 앤 파이터 API",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/src/index.d.ts",
9
+ "dependencies": {
10
+ "consola": "^2.15.3",
11
+ "prototype-helper": "^0.4.2"
12
+ },
13
+ "devDependencies": {
14
+ "@types/bun": "^1.1.6",
15
+ "@biomejs/biome": "^1.9.4",
16
+ "dotenv": "^16.4.7",
17
+ "typescript": "5.5.3"
18
+ },
19
+ "scripts": {
20
+ "dev": "bun --watch test.ts",
21
+ "bundle": "tsc --declaration --emitDeclarationOnly --outDir dist && bun build src/index.ts --minify --target=bun --outfile dist/index.js",
22
+ "dev:test": "bun --watch test.ts",
23
+ "lint": "biome lint ./src",
24
+ "lint:fix": "biome lint --write ./src",
25
+ "format": "biome format --write ./src",
26
+ "check": "biome check ./src",
27
+ "check:fix": "biome check --write ./src"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/k22pr/dnf-api.git"
32
+ },
33
+ "keywords": [
34
+ "dnf"
35
+ ],
36
+ "author": "서버지기",
37
+ "license": "MIT",
38
+ "bugs": {
39
+ "url": "https://github.com/k22pr/dnf-api/issues"
40
+ },
41
+ "homepage": "https://github.com/k22pr/dnf-api#readme"
42
+ }
@@ -44,7 +44,7 @@ export const no = (auctionNo: number) => {
44
44
 
45
45
  export const auctionSoldName = (
46
46
  itemName: string,
47
- params: params.IActionSoldOption = {}
47
+ params: params.IActionSoldOption = {},
48
48
  ) => {
49
49
  params.itemName = itemName;
50
50
  const opt = {
@@ -56,7 +56,7 @@ export const auctionSoldName = (
56
56
 
57
57
  export const auctionSoldId = (
58
58
  itemId: string,
59
- params: params.IActionSoldOption = {}
59
+ params: params.IActionSoldOption = {},
60
60
  ) => {
61
61
  params.itemId = itemId;
62
62
  const opt = {
@@ -14,7 +14,7 @@ export const equipment = (serverId: staticUtil.server, characterId: string) => {
14
14
  "characters",
15
15
  characterId,
16
16
  "equip",
17
- "equipment"
17
+ "equipment",
18
18
  ),
19
19
  };
20
20
  return query.Request(opt);
@@ -34,7 +34,7 @@ export const avatar = (serverId: staticUtil.server, characterId: string) => {
34
34
  "characters",
35
35
  characterId,
36
36
  "equip",
37
- "avatar"
37
+ "avatar",
38
38
  ),
39
39
  };
40
40
  return query.Request(opt);
@@ -54,7 +54,7 @@ export const creature = (serverId: staticUtil.server, characterId: string) => {
54
54
  "characters",
55
55
  characterId,
56
56
  "equip",
57
- "creature"
57
+ "creature",
58
58
  ),
59
59
  };
60
60
  return query.Request(opt);
@@ -74,7 +74,7 @@ export const flag = (serverId: staticUtil.server, characterId: string) => {
74
74
  "characters",
75
75
  characterId,
76
76
  "equip",
77
- "flag"
77
+ "flag",
78
78
  ),
79
79
  };
80
80
  return query.Request(opt);