@azisaba/graph 0.1.0-rc.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 (67) hide show
  1. package/.openapi-generator/FILES +19 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +46 -0
  5. package/dist/apis/PatchNotesApi.d.ts +178 -0
  6. package/dist/apis/PatchNotesApi.js +233 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +19 -0
  9. package/dist/esm/apis/PatchNotesApi.d.ts +178 -0
  10. package/dist/esm/apis/PatchNotesApi.js +229 -0
  11. package/dist/esm/apis/index.d.ts +1 -0
  12. package/dist/esm/apis/index.js +3 -0
  13. package/dist/esm/index.d.ts +3 -0
  14. package/dist/esm/index.js +5 -0
  15. package/dist/esm/models/CreatePatchNoteBody.d.ts +76 -0
  16. package/dist/esm/models/CreatePatchNoteBody.js +73 -0
  17. package/dist/esm/models/ListPatchNotes200Response.d.ts +38 -0
  18. package/dist/esm/models/ListPatchNotes200Response.js +45 -0
  19. package/dist/esm/models/ListPatchNotes200ResponseItemsInner.d.ts +88 -0
  20. package/dist/esm/models/ListPatchNotes200ResponseItemsInner.js +83 -0
  21. package/dist/esm/models/ListPatchNotesResponse.d.ts +38 -0
  22. package/dist/esm/models/ListPatchNotesResponse.js +45 -0
  23. package/dist/esm/models/PatchNote.d.ts +88 -0
  24. package/dist/esm/models/PatchNote.js +83 -0
  25. package/dist/esm/models/PatchNoteCategory.d.ts +26 -0
  26. package/dist/esm/models/PatchNoteCategory.js +42 -0
  27. package/dist/esm/models/PatchNoteTarget.d.ts +27 -0
  28. package/dist/esm/models/PatchNoteTarget.js +43 -0
  29. package/dist/esm/models/index.d.ts +7 -0
  30. package/dist/esm/models/index.js +9 -0
  31. package/dist/esm/runtime.d.ts +181 -0
  32. package/dist/esm/runtime.js +326 -0
  33. package/dist/index.d.ts +3 -0
  34. package/dist/index.js +21 -0
  35. package/dist/models/CreatePatchNoteBody.d.ts +76 -0
  36. package/dist/models/CreatePatchNoteBody.js +80 -0
  37. package/dist/models/ListPatchNotes200Response.d.ts +38 -0
  38. package/dist/models/ListPatchNotes200Response.js +51 -0
  39. package/dist/models/ListPatchNotes200ResponseItemsInner.d.ts +88 -0
  40. package/dist/models/ListPatchNotes200ResponseItemsInner.js +90 -0
  41. package/dist/models/ListPatchNotesResponse.d.ts +38 -0
  42. package/dist/models/ListPatchNotesResponse.js +51 -0
  43. package/dist/models/PatchNote.d.ts +88 -0
  44. package/dist/models/PatchNote.js +90 -0
  45. package/dist/models/PatchNoteCategory.d.ts +26 -0
  46. package/dist/models/PatchNoteCategory.js +49 -0
  47. package/dist/models/PatchNoteTarget.d.ts +27 -0
  48. package/dist/models/PatchNoteTarget.js +50 -0
  49. package/dist/models/index.d.ts +7 -0
  50. package/dist/models/index.js +25 -0
  51. package/dist/runtime.d.ts +181 -0
  52. package/dist/runtime.js +341 -0
  53. package/package.json +21 -0
  54. package/src/apis/PatchNotesApi.ts +375 -0
  55. package/src/apis/index.ts +3 -0
  56. package/src/index.ts +5 -0
  57. package/src/models/CreatePatchNoteBody.ts +121 -0
  58. package/src/models/ListPatchNotes200Response.ts +77 -0
  59. package/src/models/ListPatchNotes200ResponseItemsInner.ts +140 -0
  60. package/src/models/ListPatchNotesResponse.ts +77 -0
  61. package/src/models/PatchNote.ts +140 -0
  62. package/src/models/PatchNoteCategory.ts +51 -0
  63. package/src/models/PatchNoteTarget.ts +52 -0
  64. package/src/models/index.ts +9 -0
  65. package/src/runtime.ts +426 -0
  66. package/tsconfig.esm.json +7 -0
  67. package/tsconfig.json +16 -0
@@ -0,0 +1,19 @@
1
+ .gitignore
2
+ .npmignore
3
+ .openapi-generator-ignore
4
+ README.md
5
+ package.json
6
+ src/apis/PatchNotesApi.ts
7
+ src/apis/index.ts
8
+ src/index.ts
9
+ src/models/CreatePatchNoteBody.ts
10
+ src/models/ListPatchNotes200Response.ts
11
+ src/models/ListPatchNotes200ResponseItemsInner.ts
12
+ src/models/ListPatchNotesResponse.ts
13
+ src/models/PatchNote.ts
14
+ src/models/PatchNoteCategory.ts
15
+ src/models/PatchNoteTarget.ts
16
+ src/models/index.ts
17
+ src/runtime.ts
18
+ tsconfig.esm.json
19
+ tsconfig.json
@@ -0,0 +1 @@
1
+ 7.8.0
@@ -0,0 +1,23 @@
1
+ # OpenAPI Generator Ignore
2
+ # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md
package/README.md ADDED
@@ -0,0 +1,46 @@
1
+ ## @azisaba/graph@0.1.0-rc.1
2
+
3
+ This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
+
5
+ Environment
6
+ * Node.js
7
+ * Webpack
8
+ * Browserify
9
+
10
+ Language level
11
+ * ES5 - you must have a Promises/A+ library installed
12
+ * ES6
13
+
14
+ Module system
15
+ * CommonJS
16
+ * ES6 module system
17
+
18
+ It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
19
+
20
+ ### Building
21
+
22
+ To build and compile the typescript sources to javascript use:
23
+ ```
24
+ npm install
25
+ npm run build
26
+ ```
27
+
28
+ ### Publishing
29
+
30
+ First build the package then run `npm publish`
31
+
32
+ ### Consuming
33
+
34
+ navigate to the folder of your consuming project and run one of the following commands.
35
+
36
+ _published:_
37
+
38
+ ```
39
+ npm install @azisaba/graph@0.1.0-rc.1 --save
40
+ ```
41
+
42
+ _unPublished (not recommended):_
43
+
44
+ ```
45
+ npm install PATH_TO_GENERATED_PACKAGE --save
46
+ ```
@@ -0,0 +1,178 @@
1
+ /**
2
+ * Azisaba Graph API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 0.0.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { ListPatchNotes200Response, ListPatchNotes200ResponseItemsInner } from '../models/index';
14
+ export interface CreatePatchNoteRequest {
15
+ target: CreatePatchNoteTargetEnum;
16
+ category: CreatePatchNoteCategoryEnum;
17
+ title: string;
18
+ body: string;
19
+ images?: Array<Blob>;
20
+ }
21
+ export interface DeletePatchNoteByIdRequest {
22
+ patchNoteId: string;
23
+ }
24
+ export interface GetPatchNoteByIdRequest {
25
+ patchNoteId: string;
26
+ }
27
+ export interface ListPatchNotesRequest {
28
+ limit?: number;
29
+ cursor?: string;
30
+ target?: ListPatchNotesTargetEnum;
31
+ category?: ListPatchNotesCategoryEnum;
32
+ }
33
+ /**
34
+ * PatchNotesApi - interface
35
+ *
36
+ * @export
37
+ * @interface PatchNotesApiInterface
38
+ */
39
+ export interface PatchNotesApiInterface {
40
+ /**
41
+ *
42
+ * @summary Create a patch note
43
+ * @param {string} target Target of the patch note.
44
+ * @param {string} category Category of the patch note.
45
+ * @param {string} title Title of the patch note.
46
+ * @param {string} body Body text of the patch note.
47
+ * @param {Array<Blob>} [images] Image files attached to the patch note.
48
+ * @param {*} [options] Override http request option.
49
+ * @throws {RequiredError}
50
+ * @memberof PatchNotesApiInterface
51
+ */
52
+ createPatchNoteRaw(requestParameters: CreatePatchNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPatchNotes200ResponseItemsInner>>;
53
+ /**
54
+ * Create a patch note
55
+ */
56
+ createPatchNote(requestParameters: CreatePatchNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPatchNotes200ResponseItemsInner>;
57
+ /**
58
+ *
59
+ * @summary Delete a patch note by ID
60
+ * @param {string} patchNoteId Unique identifier of the patch note.
61
+ * @param {*} [options] Override http request option.
62
+ * @throws {RequiredError}
63
+ * @memberof PatchNotesApiInterface
64
+ */
65
+ deletePatchNoteByIdRaw(requestParameters: DeletePatchNoteByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
66
+ /**
67
+ * Delete a patch note by ID
68
+ */
69
+ deletePatchNoteById(requestParameters: DeletePatchNoteByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
70
+ /**
71
+ *
72
+ * @summary Get a patch note by ID
73
+ * @param {string} patchNoteId Unique identifier of the patch note.
74
+ * @param {*} [options] Override http request option.
75
+ * @throws {RequiredError}
76
+ * @memberof PatchNotesApiInterface
77
+ */
78
+ getPatchNoteByIdRaw(requestParameters: GetPatchNoteByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPatchNotes200ResponseItemsInner>>;
79
+ /**
80
+ * Get a patch note by ID
81
+ */
82
+ getPatchNoteById(requestParameters: GetPatchNoteByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPatchNotes200ResponseItemsInner>;
83
+ /**
84
+ *
85
+ * @summary List patch notes
86
+ * @param {number} [limit] Maximum number of patch notes to return.
87
+ * @param {string} [cursor] Cursor returned by the previous request.
88
+ * @param {'creativePro' | 'frontier' | 'life' | 'leonGunWar2' | 'sclat'} [target] Target by which to filter patch notes.
89
+ * @param {'balance' | 'feature' | 'fix' | 'improvement'} [category] Category by which to filter patch notes.
90
+ * @param {*} [options] Override http request option.
91
+ * @throws {RequiredError}
92
+ * @memberof PatchNotesApiInterface
93
+ */
94
+ listPatchNotesRaw(requestParameters: ListPatchNotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPatchNotes200Response>>;
95
+ /**
96
+ * List patch notes
97
+ */
98
+ listPatchNotes(requestParameters: ListPatchNotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPatchNotes200Response>;
99
+ }
100
+ /**
101
+ *
102
+ */
103
+ export declare class PatchNotesApi extends runtime.BaseAPI implements PatchNotesApiInterface {
104
+ /**
105
+ * Create a patch note
106
+ */
107
+ createPatchNoteRaw(requestParameters: CreatePatchNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPatchNotes200ResponseItemsInner>>;
108
+ /**
109
+ * Create a patch note
110
+ */
111
+ createPatchNote(requestParameters: CreatePatchNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPatchNotes200ResponseItemsInner>;
112
+ /**
113
+ * Delete a patch note by ID
114
+ */
115
+ deletePatchNoteByIdRaw(requestParameters: DeletePatchNoteByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
116
+ /**
117
+ * Delete a patch note by ID
118
+ */
119
+ deletePatchNoteById(requestParameters: DeletePatchNoteByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
120
+ /**
121
+ * Get a patch note by ID
122
+ */
123
+ getPatchNoteByIdRaw(requestParameters: GetPatchNoteByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPatchNotes200ResponseItemsInner>>;
124
+ /**
125
+ * Get a patch note by ID
126
+ */
127
+ getPatchNoteById(requestParameters: GetPatchNoteByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPatchNotes200ResponseItemsInner>;
128
+ /**
129
+ * List patch notes
130
+ */
131
+ listPatchNotesRaw(requestParameters: ListPatchNotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPatchNotes200Response>>;
132
+ /**
133
+ * List patch notes
134
+ */
135
+ listPatchNotes(requestParameters?: ListPatchNotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPatchNotes200Response>;
136
+ }
137
+ /**
138
+ * @export
139
+ */
140
+ export declare const CreatePatchNoteTargetEnum: {
141
+ readonly CreativePro: "creativePro";
142
+ readonly Frontier: "frontier";
143
+ readonly Life: "life";
144
+ readonly LeonGunWar2: "leonGunWar2";
145
+ readonly Sclat: "sclat";
146
+ };
147
+ export type CreatePatchNoteTargetEnum = typeof CreatePatchNoteTargetEnum[keyof typeof CreatePatchNoteTargetEnum];
148
+ /**
149
+ * @export
150
+ */
151
+ export declare const CreatePatchNoteCategoryEnum: {
152
+ readonly Balance: "balance";
153
+ readonly Feature: "feature";
154
+ readonly Fix: "fix";
155
+ readonly Improvement: "improvement";
156
+ };
157
+ export type CreatePatchNoteCategoryEnum = typeof CreatePatchNoteCategoryEnum[keyof typeof CreatePatchNoteCategoryEnum];
158
+ /**
159
+ * @export
160
+ */
161
+ export declare const ListPatchNotesTargetEnum: {
162
+ readonly CreativePro: "creativePro";
163
+ readonly Frontier: "frontier";
164
+ readonly Life: "life";
165
+ readonly LeonGunWar2: "leonGunWar2";
166
+ readonly Sclat: "sclat";
167
+ };
168
+ export type ListPatchNotesTargetEnum = typeof ListPatchNotesTargetEnum[keyof typeof ListPatchNotesTargetEnum];
169
+ /**
170
+ * @export
171
+ */
172
+ export declare const ListPatchNotesCategoryEnum: {
173
+ readonly Balance: "balance";
174
+ readonly Feature: "feature";
175
+ readonly Fix: "fix";
176
+ readonly Improvement: "improvement";
177
+ };
178
+ export type ListPatchNotesCategoryEnum = typeof ListPatchNotesCategoryEnum[keyof typeof ListPatchNotesCategoryEnum];
@@ -0,0 +1,233 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Azisaba Graph API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 0.0.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.ListPatchNotesCategoryEnum = exports.ListPatchNotesTargetEnum = exports.CreatePatchNoteCategoryEnum = exports.CreatePatchNoteTargetEnum = exports.PatchNotesApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
28
+ /**
29
+ *
30
+ */
31
+ class PatchNotesApi extends runtime.BaseAPI {
32
+ /**
33
+ * Create a patch note
34
+ */
35
+ createPatchNoteRaw(requestParameters, initOverrides) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ if (requestParameters['target'] == null) {
38
+ throw new runtime.RequiredError('target', 'Required parameter "target" was null or undefined when calling createPatchNote().');
39
+ }
40
+ if (requestParameters['category'] == null) {
41
+ throw new runtime.RequiredError('category', 'Required parameter "category" was null or undefined when calling createPatchNote().');
42
+ }
43
+ if (requestParameters['title'] == null) {
44
+ throw new runtime.RequiredError('title', 'Required parameter "title" was null or undefined when calling createPatchNote().');
45
+ }
46
+ if (requestParameters['body'] == null) {
47
+ throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling createPatchNote().');
48
+ }
49
+ const queryParameters = {};
50
+ const headerParameters = {};
51
+ const consumes = [
52
+ { contentType: 'multipart/form-data' },
53
+ ];
54
+ // @ts-ignore: canConsumeForm may be unused
55
+ const canConsumeForm = runtime.canConsumeForm(consumes);
56
+ let formParams;
57
+ let useForm = false;
58
+ // use FormData to transmit files using content-type "multipart/form-data"
59
+ useForm = canConsumeForm;
60
+ if (useForm) {
61
+ formParams = new FormData();
62
+ }
63
+ else {
64
+ formParams = new URLSearchParams();
65
+ }
66
+ if (requestParameters['target'] != null) {
67
+ formParams.append('target', requestParameters['target']);
68
+ }
69
+ if (requestParameters['category'] != null) {
70
+ formParams.append('category', requestParameters['category']);
71
+ }
72
+ if (requestParameters['title'] != null) {
73
+ formParams.append('title', requestParameters['title']);
74
+ }
75
+ if (requestParameters['body'] != null) {
76
+ formParams.append('body', requestParameters['body']);
77
+ }
78
+ if (requestParameters['images'] != null) {
79
+ requestParameters['images'].forEach((element) => {
80
+ formParams.append('images', element);
81
+ });
82
+ }
83
+ const response = yield this.request({
84
+ path: `/patch-notes`,
85
+ method: 'POST',
86
+ headers: headerParameters,
87
+ query: queryParameters,
88
+ body: formParams,
89
+ }, initOverrides);
90
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListPatchNotes200ResponseItemsInnerFromJSON)(jsonValue));
91
+ });
92
+ }
93
+ /**
94
+ * Create a patch note
95
+ */
96
+ createPatchNote(requestParameters, initOverrides) {
97
+ return __awaiter(this, void 0, void 0, function* () {
98
+ const response = yield this.createPatchNoteRaw(requestParameters, initOverrides);
99
+ return yield response.value();
100
+ });
101
+ }
102
+ /**
103
+ * Delete a patch note by ID
104
+ */
105
+ deletePatchNoteByIdRaw(requestParameters, initOverrides) {
106
+ return __awaiter(this, void 0, void 0, function* () {
107
+ if (requestParameters['patchNoteId'] == null) {
108
+ throw new runtime.RequiredError('patchNoteId', 'Required parameter "patchNoteId" was null or undefined when calling deletePatchNoteById().');
109
+ }
110
+ const queryParameters = {};
111
+ const headerParameters = {};
112
+ const response = yield this.request({
113
+ path: `/patch-notes/{patchNoteId}`.replace(`{${"patchNoteId"}}`, encodeURIComponent(String(requestParameters['patchNoteId']))),
114
+ method: 'DELETE',
115
+ headers: headerParameters,
116
+ query: queryParameters,
117
+ }, initOverrides);
118
+ return new runtime.VoidApiResponse(response);
119
+ });
120
+ }
121
+ /**
122
+ * Delete a patch note by ID
123
+ */
124
+ deletePatchNoteById(requestParameters, initOverrides) {
125
+ return __awaiter(this, void 0, void 0, function* () {
126
+ yield this.deletePatchNoteByIdRaw(requestParameters, initOverrides);
127
+ });
128
+ }
129
+ /**
130
+ * Get a patch note by ID
131
+ */
132
+ getPatchNoteByIdRaw(requestParameters, initOverrides) {
133
+ return __awaiter(this, void 0, void 0, function* () {
134
+ if (requestParameters['patchNoteId'] == null) {
135
+ throw new runtime.RequiredError('patchNoteId', 'Required parameter "patchNoteId" was null or undefined when calling getPatchNoteById().');
136
+ }
137
+ const queryParameters = {};
138
+ const headerParameters = {};
139
+ const response = yield this.request({
140
+ path: `/patch-notes/{patchNoteId}`.replace(`{${"patchNoteId"}}`, encodeURIComponent(String(requestParameters['patchNoteId']))),
141
+ method: 'GET',
142
+ headers: headerParameters,
143
+ query: queryParameters,
144
+ }, initOverrides);
145
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListPatchNotes200ResponseItemsInnerFromJSON)(jsonValue));
146
+ });
147
+ }
148
+ /**
149
+ * Get a patch note by ID
150
+ */
151
+ getPatchNoteById(requestParameters, initOverrides) {
152
+ return __awaiter(this, void 0, void 0, function* () {
153
+ const response = yield this.getPatchNoteByIdRaw(requestParameters, initOverrides);
154
+ return yield response.value();
155
+ });
156
+ }
157
+ /**
158
+ * List patch notes
159
+ */
160
+ listPatchNotesRaw(requestParameters, initOverrides) {
161
+ return __awaiter(this, void 0, void 0, function* () {
162
+ const queryParameters = {};
163
+ if (requestParameters['limit'] != null) {
164
+ queryParameters['limit'] = requestParameters['limit'];
165
+ }
166
+ if (requestParameters['cursor'] != null) {
167
+ queryParameters['cursor'] = requestParameters['cursor'];
168
+ }
169
+ if (requestParameters['target'] != null) {
170
+ queryParameters['target'] = requestParameters['target'];
171
+ }
172
+ if (requestParameters['category'] != null) {
173
+ queryParameters['category'] = requestParameters['category'];
174
+ }
175
+ const headerParameters = {};
176
+ const response = yield this.request({
177
+ path: `/patch-notes`,
178
+ method: 'GET',
179
+ headers: headerParameters,
180
+ query: queryParameters,
181
+ }, initOverrides);
182
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListPatchNotes200ResponseFromJSON)(jsonValue));
183
+ });
184
+ }
185
+ /**
186
+ * List patch notes
187
+ */
188
+ listPatchNotes() {
189
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
190
+ const response = yield this.listPatchNotesRaw(requestParameters, initOverrides);
191
+ return yield response.value();
192
+ });
193
+ }
194
+ }
195
+ exports.PatchNotesApi = PatchNotesApi;
196
+ /**
197
+ * @export
198
+ */
199
+ exports.CreatePatchNoteTargetEnum = {
200
+ CreativePro: 'creativePro',
201
+ Frontier: 'frontier',
202
+ Life: 'life',
203
+ LeonGunWar2: 'leonGunWar2',
204
+ Sclat: 'sclat'
205
+ };
206
+ /**
207
+ * @export
208
+ */
209
+ exports.CreatePatchNoteCategoryEnum = {
210
+ Balance: 'balance',
211
+ Feature: 'feature',
212
+ Fix: 'fix',
213
+ Improvement: 'improvement'
214
+ };
215
+ /**
216
+ * @export
217
+ */
218
+ exports.ListPatchNotesTargetEnum = {
219
+ CreativePro: 'creativePro',
220
+ Frontier: 'frontier',
221
+ Life: 'life',
222
+ LeonGunWar2: 'leonGunWar2',
223
+ Sclat: 'sclat'
224
+ };
225
+ /**
226
+ * @export
227
+ */
228
+ exports.ListPatchNotesCategoryEnum = {
229
+ Balance: 'balance',
230
+ Feature: 'feature',
231
+ Fix: 'fix',
232
+ Improvement: 'improvement'
233
+ };
@@ -0,0 +1 @@
1
+ export * from './PatchNotesApi';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /* tslint:disable */
18
+ /* eslint-disable */
19
+ __exportStar(require("./PatchNotesApi"), exports);