@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,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,229 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Azisaba Graph API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { ListPatchNotes200ResponseFromJSON, ListPatchNotes200ResponseItemsInnerFromJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class PatchNotesApi extends runtime.BaseAPI {
29
+ /**
30
+ * Create a patch note
31
+ */
32
+ createPatchNoteRaw(requestParameters, initOverrides) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ if (requestParameters['target'] == null) {
35
+ throw new runtime.RequiredError('target', 'Required parameter "target" was null or undefined when calling createPatchNote().');
36
+ }
37
+ if (requestParameters['category'] == null) {
38
+ throw new runtime.RequiredError('category', 'Required parameter "category" was null or undefined when calling createPatchNote().');
39
+ }
40
+ if (requestParameters['title'] == null) {
41
+ throw new runtime.RequiredError('title', 'Required parameter "title" was null or undefined when calling createPatchNote().');
42
+ }
43
+ if (requestParameters['body'] == null) {
44
+ throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling createPatchNote().');
45
+ }
46
+ const queryParameters = {};
47
+ const headerParameters = {};
48
+ const consumes = [
49
+ { contentType: 'multipart/form-data' },
50
+ ];
51
+ // @ts-ignore: canConsumeForm may be unused
52
+ const canConsumeForm = runtime.canConsumeForm(consumes);
53
+ let formParams;
54
+ let useForm = false;
55
+ // use FormData to transmit files using content-type "multipart/form-data"
56
+ useForm = canConsumeForm;
57
+ if (useForm) {
58
+ formParams = new FormData();
59
+ }
60
+ else {
61
+ formParams = new URLSearchParams();
62
+ }
63
+ if (requestParameters['target'] != null) {
64
+ formParams.append('target', requestParameters['target']);
65
+ }
66
+ if (requestParameters['category'] != null) {
67
+ formParams.append('category', requestParameters['category']);
68
+ }
69
+ if (requestParameters['title'] != null) {
70
+ formParams.append('title', requestParameters['title']);
71
+ }
72
+ if (requestParameters['body'] != null) {
73
+ formParams.append('body', requestParameters['body']);
74
+ }
75
+ if (requestParameters['images'] != null) {
76
+ requestParameters['images'].forEach((element) => {
77
+ formParams.append('images', element);
78
+ });
79
+ }
80
+ const response = yield this.request({
81
+ path: `/patch-notes`,
82
+ method: 'POST',
83
+ headers: headerParameters,
84
+ query: queryParameters,
85
+ body: formParams,
86
+ }, initOverrides);
87
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListPatchNotes200ResponseItemsInnerFromJSON(jsonValue));
88
+ });
89
+ }
90
+ /**
91
+ * Create a patch note
92
+ */
93
+ createPatchNote(requestParameters, initOverrides) {
94
+ return __awaiter(this, void 0, void 0, function* () {
95
+ const response = yield this.createPatchNoteRaw(requestParameters, initOverrides);
96
+ return yield response.value();
97
+ });
98
+ }
99
+ /**
100
+ * Delete a patch note by ID
101
+ */
102
+ deletePatchNoteByIdRaw(requestParameters, initOverrides) {
103
+ return __awaiter(this, void 0, void 0, function* () {
104
+ if (requestParameters['patchNoteId'] == null) {
105
+ throw new runtime.RequiredError('patchNoteId', 'Required parameter "patchNoteId" was null or undefined when calling deletePatchNoteById().');
106
+ }
107
+ const queryParameters = {};
108
+ const headerParameters = {};
109
+ const response = yield this.request({
110
+ path: `/patch-notes/{patchNoteId}`.replace(`{${"patchNoteId"}}`, encodeURIComponent(String(requestParameters['patchNoteId']))),
111
+ method: 'DELETE',
112
+ headers: headerParameters,
113
+ query: queryParameters,
114
+ }, initOverrides);
115
+ return new runtime.VoidApiResponse(response);
116
+ });
117
+ }
118
+ /**
119
+ * Delete a patch note by ID
120
+ */
121
+ deletePatchNoteById(requestParameters, initOverrides) {
122
+ return __awaiter(this, void 0, void 0, function* () {
123
+ yield this.deletePatchNoteByIdRaw(requestParameters, initOverrides);
124
+ });
125
+ }
126
+ /**
127
+ * Get a patch note by ID
128
+ */
129
+ getPatchNoteByIdRaw(requestParameters, initOverrides) {
130
+ return __awaiter(this, void 0, void 0, function* () {
131
+ if (requestParameters['patchNoteId'] == null) {
132
+ throw new runtime.RequiredError('patchNoteId', 'Required parameter "patchNoteId" was null or undefined when calling getPatchNoteById().');
133
+ }
134
+ const queryParameters = {};
135
+ const headerParameters = {};
136
+ const response = yield this.request({
137
+ path: `/patch-notes/{patchNoteId}`.replace(`{${"patchNoteId"}}`, encodeURIComponent(String(requestParameters['patchNoteId']))),
138
+ method: 'GET',
139
+ headers: headerParameters,
140
+ query: queryParameters,
141
+ }, initOverrides);
142
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListPatchNotes200ResponseItemsInnerFromJSON(jsonValue));
143
+ });
144
+ }
145
+ /**
146
+ * Get a patch note by ID
147
+ */
148
+ getPatchNoteById(requestParameters, initOverrides) {
149
+ return __awaiter(this, void 0, void 0, function* () {
150
+ const response = yield this.getPatchNoteByIdRaw(requestParameters, initOverrides);
151
+ return yield response.value();
152
+ });
153
+ }
154
+ /**
155
+ * List patch notes
156
+ */
157
+ listPatchNotesRaw(requestParameters, initOverrides) {
158
+ return __awaiter(this, void 0, void 0, function* () {
159
+ const queryParameters = {};
160
+ if (requestParameters['limit'] != null) {
161
+ queryParameters['limit'] = requestParameters['limit'];
162
+ }
163
+ if (requestParameters['cursor'] != null) {
164
+ queryParameters['cursor'] = requestParameters['cursor'];
165
+ }
166
+ if (requestParameters['target'] != null) {
167
+ queryParameters['target'] = requestParameters['target'];
168
+ }
169
+ if (requestParameters['category'] != null) {
170
+ queryParameters['category'] = requestParameters['category'];
171
+ }
172
+ const headerParameters = {};
173
+ const response = yield this.request({
174
+ path: `/patch-notes`,
175
+ method: 'GET',
176
+ headers: headerParameters,
177
+ query: queryParameters,
178
+ }, initOverrides);
179
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListPatchNotes200ResponseFromJSON(jsonValue));
180
+ });
181
+ }
182
+ /**
183
+ * List patch notes
184
+ */
185
+ listPatchNotes() {
186
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
187
+ const response = yield this.listPatchNotesRaw(requestParameters, initOverrides);
188
+ return yield response.value();
189
+ });
190
+ }
191
+ }
192
+ /**
193
+ * @export
194
+ */
195
+ export const CreatePatchNoteTargetEnum = {
196
+ CreativePro: 'creativePro',
197
+ Frontier: 'frontier',
198
+ Life: 'life',
199
+ LeonGunWar2: 'leonGunWar2',
200
+ Sclat: 'sclat'
201
+ };
202
+ /**
203
+ * @export
204
+ */
205
+ export const CreatePatchNoteCategoryEnum = {
206
+ Balance: 'balance',
207
+ Feature: 'feature',
208
+ Fix: 'fix',
209
+ Improvement: 'improvement'
210
+ };
211
+ /**
212
+ * @export
213
+ */
214
+ export const ListPatchNotesTargetEnum = {
215
+ CreativePro: 'creativePro',
216
+ Frontier: 'frontier',
217
+ Life: 'life',
218
+ LeonGunWar2: 'leonGunWar2',
219
+ Sclat: 'sclat'
220
+ };
221
+ /**
222
+ * @export
223
+ */
224
+ export const ListPatchNotesCategoryEnum = {
225
+ Balance: 'balance',
226
+ Feature: 'feature',
227
+ Fix: 'fix',
228
+ Improvement: 'improvement'
229
+ };
@@ -0,0 +1 @@
1
+ export * from './PatchNotesApi';
@@ -0,0 +1,3 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './PatchNotesApi';
@@ -0,0 +1,3 @@
1
+ export * from './runtime';
2
+ export * from './apis/index';
3
+ export * from './models/index';
@@ -0,0 +1,5 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './runtime';
4
+ export * from './apis/index';
5
+ export * from './models/index';
@@ -0,0 +1,76 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreatePatchNoteBody
16
+ */
17
+ export interface CreatePatchNoteBody {
18
+ /**
19
+ * Target of the patch note.
20
+ * @type {string}
21
+ * @memberof CreatePatchNoteBody
22
+ */
23
+ target: CreatePatchNoteBodyTargetEnum;
24
+ /**
25
+ * Category of the patch note.
26
+ * @type {string}
27
+ * @memberof CreatePatchNoteBody
28
+ */
29
+ category: CreatePatchNoteBodyCategoryEnum;
30
+ /**
31
+ * Title of the patch note.
32
+ * @type {string}
33
+ * @memberof CreatePatchNoteBody
34
+ */
35
+ title: string;
36
+ /**
37
+ * Body text of the patch note.
38
+ * @type {string}
39
+ * @memberof CreatePatchNoteBody
40
+ */
41
+ body: string;
42
+ /**
43
+ * Image files attached to the patch note.
44
+ * @type {Array<Blob>}
45
+ * @memberof CreatePatchNoteBody
46
+ */
47
+ images?: Array<Blob>;
48
+ }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const CreatePatchNoteBodyTargetEnum: {
53
+ readonly CreativePro: "creativePro";
54
+ readonly Frontier: "frontier";
55
+ readonly Life: "life";
56
+ readonly LeonGunWar2: "leonGunWar2";
57
+ readonly Sclat: "sclat";
58
+ };
59
+ export type CreatePatchNoteBodyTargetEnum = typeof CreatePatchNoteBodyTargetEnum[keyof typeof CreatePatchNoteBodyTargetEnum];
60
+ /**
61
+ * @export
62
+ */
63
+ export declare const CreatePatchNoteBodyCategoryEnum: {
64
+ readonly Balance: "balance";
65
+ readonly Feature: "feature";
66
+ readonly Fix: "fix";
67
+ readonly Improvement: "improvement";
68
+ };
69
+ export type CreatePatchNoteBodyCategoryEnum = typeof CreatePatchNoteBodyCategoryEnum[keyof typeof CreatePatchNoteBodyCategoryEnum];
70
+ /**
71
+ * Check if a given object implements the CreatePatchNoteBody interface.
72
+ */
73
+ export declare function instanceOfCreatePatchNoteBody(value: object): value is CreatePatchNoteBody;
74
+ export declare function CreatePatchNoteBodyFromJSON(json: any): CreatePatchNoteBody;
75
+ export declare function CreatePatchNoteBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePatchNoteBody;
76
+ export declare function CreatePatchNoteBodyToJSON(value?: CreatePatchNoteBody | null): any;
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Azisaba Graph API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const CreatePatchNoteBodyTargetEnum = {
18
+ CreativePro: 'creativePro',
19
+ Frontier: 'frontier',
20
+ Life: 'life',
21
+ LeonGunWar2: 'leonGunWar2',
22
+ Sclat: 'sclat'
23
+ };
24
+ /**
25
+ * @export
26
+ */
27
+ export const CreatePatchNoteBodyCategoryEnum = {
28
+ Balance: 'balance',
29
+ Feature: 'feature',
30
+ Fix: 'fix',
31
+ Improvement: 'improvement'
32
+ };
33
+ /**
34
+ * Check if a given object implements the CreatePatchNoteBody interface.
35
+ */
36
+ export function instanceOfCreatePatchNoteBody(value) {
37
+ if (!('target' in value) || value['target'] === undefined)
38
+ return false;
39
+ if (!('category' in value) || value['category'] === undefined)
40
+ return false;
41
+ if (!('title' in value) || value['title'] === undefined)
42
+ return false;
43
+ if (!('body' in value) || value['body'] === undefined)
44
+ return false;
45
+ return true;
46
+ }
47
+ export function CreatePatchNoteBodyFromJSON(json) {
48
+ return CreatePatchNoteBodyFromJSONTyped(json, false);
49
+ }
50
+ export function CreatePatchNoteBodyFromJSONTyped(json, ignoreDiscriminator) {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+ 'target': json['target'],
56
+ 'category': json['category'],
57
+ 'title': json['title'],
58
+ 'body': json['body'],
59
+ 'images': json['images'] == null ? undefined : json['images'],
60
+ };
61
+ }
62
+ export function CreatePatchNoteBodyToJSON(value) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'target': value['target'],
68
+ 'category': value['category'],
69
+ 'title': value['title'],
70
+ 'body': value['body'],
71
+ 'images': value['images'],
72
+ };
73
+ }
@@ -0,0 +1,38 @@
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 type { ListPatchNotes200ResponseItemsInner } from './ListPatchNotes200ResponseItemsInner';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListPatchNotes200Response
17
+ */
18
+ export interface ListPatchNotes200Response {
19
+ /**
20
+ *
21
+ * @type {Array<ListPatchNotes200ResponseItemsInner>}
22
+ * @memberof ListPatchNotes200Response
23
+ */
24
+ items: Array<ListPatchNotes200ResponseItemsInner>;
25
+ /**
26
+ * Cursor for retrieving the next page, or null if no more results are available.
27
+ * @type {string}
28
+ * @memberof ListPatchNotes200Response
29
+ */
30
+ nextCursor: string | null;
31
+ }
32
+ /**
33
+ * Check if a given object implements the ListPatchNotes200Response interface.
34
+ */
35
+ export declare function instanceOfListPatchNotes200Response(value: object): value is ListPatchNotes200Response;
36
+ export declare function ListPatchNotes200ResponseFromJSON(json: any): ListPatchNotes200Response;
37
+ export declare function ListPatchNotes200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListPatchNotes200Response;
38
+ export declare function ListPatchNotes200ResponseToJSON(value?: ListPatchNotes200Response | null): any;
@@ -0,0 +1,45 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Azisaba Graph API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ListPatchNotes200ResponseItemsInnerFromJSON, ListPatchNotes200ResponseItemsInnerToJSON, } from './ListPatchNotes200ResponseItemsInner';
15
+ /**
16
+ * Check if a given object implements the ListPatchNotes200Response interface.
17
+ */
18
+ export function instanceOfListPatchNotes200Response(value) {
19
+ if (!('items' in value) || value['items'] === undefined)
20
+ return false;
21
+ if (!('nextCursor' in value) || value['nextCursor'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function ListPatchNotes200ResponseFromJSON(json) {
26
+ return ListPatchNotes200ResponseFromJSONTyped(json, false);
27
+ }
28
+ export function ListPatchNotes200ResponseFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'items': (json['items'].map(ListPatchNotes200ResponseItemsInnerFromJSON)),
34
+ 'nextCursor': json['nextCursor'],
35
+ };
36
+ }
37
+ export function ListPatchNotes200ResponseToJSON(value) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'items': (value['items'].map(ListPatchNotes200ResponseItemsInnerToJSON)),
43
+ 'nextCursor': value['nextCursor'],
44
+ };
45
+ }