@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,375 @@
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
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ ListPatchNotes200Response,
19
+ ListPatchNotes200ResponseItemsInner,
20
+ } from '../models/index';
21
+ import {
22
+ ListPatchNotes200ResponseFromJSON,
23
+ ListPatchNotes200ResponseToJSON,
24
+ ListPatchNotes200ResponseItemsInnerFromJSON,
25
+ ListPatchNotes200ResponseItemsInnerToJSON,
26
+ } from '../models/index';
27
+
28
+ export interface CreatePatchNoteRequest {
29
+ target: CreatePatchNoteTargetEnum;
30
+ category: CreatePatchNoteCategoryEnum;
31
+ title: string;
32
+ body: string;
33
+ images?: Array<Blob>;
34
+ }
35
+
36
+ export interface DeletePatchNoteByIdRequest {
37
+ patchNoteId: string;
38
+ }
39
+
40
+ export interface GetPatchNoteByIdRequest {
41
+ patchNoteId: string;
42
+ }
43
+
44
+ export interface ListPatchNotesRequest {
45
+ limit?: number;
46
+ cursor?: string;
47
+ target?: ListPatchNotesTargetEnum;
48
+ category?: ListPatchNotesCategoryEnum;
49
+ }
50
+
51
+ /**
52
+ * PatchNotesApi - interface
53
+ *
54
+ * @export
55
+ * @interface PatchNotesApiInterface
56
+ */
57
+ export interface PatchNotesApiInterface {
58
+ /**
59
+ *
60
+ * @summary Create a patch note
61
+ * @param {string} target Target of the patch note.
62
+ * @param {string} category Category of the patch note.
63
+ * @param {string} title Title of the patch note.
64
+ * @param {string} body Body text of the patch note.
65
+ * @param {Array<Blob>} [images] Image files attached to the patch note.
66
+ * @param {*} [options] Override http request option.
67
+ * @throws {RequiredError}
68
+ * @memberof PatchNotesApiInterface
69
+ */
70
+ createPatchNoteRaw(requestParameters: CreatePatchNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPatchNotes200ResponseItemsInner>>;
71
+
72
+ /**
73
+ * Create a patch note
74
+ */
75
+ createPatchNote(requestParameters: CreatePatchNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPatchNotes200ResponseItemsInner>;
76
+
77
+ /**
78
+ *
79
+ * @summary Delete a patch note by ID
80
+ * @param {string} patchNoteId Unique identifier of the patch note.
81
+ * @param {*} [options] Override http request option.
82
+ * @throws {RequiredError}
83
+ * @memberof PatchNotesApiInterface
84
+ */
85
+ deletePatchNoteByIdRaw(requestParameters: DeletePatchNoteByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
86
+
87
+ /**
88
+ * Delete a patch note by ID
89
+ */
90
+ deletePatchNoteById(requestParameters: DeletePatchNoteByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
91
+
92
+ /**
93
+ *
94
+ * @summary Get a patch note by ID
95
+ * @param {string} patchNoteId Unique identifier of the patch note.
96
+ * @param {*} [options] Override http request option.
97
+ * @throws {RequiredError}
98
+ * @memberof PatchNotesApiInterface
99
+ */
100
+ getPatchNoteByIdRaw(requestParameters: GetPatchNoteByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPatchNotes200ResponseItemsInner>>;
101
+
102
+ /**
103
+ * Get a patch note by ID
104
+ */
105
+ getPatchNoteById(requestParameters: GetPatchNoteByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPatchNotes200ResponseItemsInner>;
106
+
107
+ /**
108
+ *
109
+ * @summary List patch notes
110
+ * @param {number} [limit] Maximum number of patch notes to return.
111
+ * @param {string} [cursor] Cursor returned by the previous request.
112
+ * @param {'creativePro' | 'frontier' | 'life' | 'leonGunWar2' | 'sclat'} [target] Target by which to filter patch notes.
113
+ * @param {'balance' | 'feature' | 'fix' | 'improvement'} [category] Category by which to filter patch notes.
114
+ * @param {*} [options] Override http request option.
115
+ * @throws {RequiredError}
116
+ * @memberof PatchNotesApiInterface
117
+ */
118
+ listPatchNotesRaw(requestParameters: ListPatchNotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPatchNotes200Response>>;
119
+
120
+ /**
121
+ * List patch notes
122
+ */
123
+ listPatchNotes(requestParameters: ListPatchNotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPatchNotes200Response>;
124
+
125
+ }
126
+
127
+ /**
128
+ *
129
+ */
130
+ export class PatchNotesApi extends runtime.BaseAPI implements PatchNotesApiInterface {
131
+
132
+ /**
133
+ * Create a patch note
134
+ */
135
+ async createPatchNoteRaw(requestParameters: CreatePatchNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPatchNotes200ResponseItemsInner>> {
136
+ if (requestParameters['target'] == null) {
137
+ throw new runtime.RequiredError(
138
+ 'target',
139
+ 'Required parameter "target" was null or undefined when calling createPatchNote().'
140
+ );
141
+ }
142
+
143
+ if (requestParameters['category'] == null) {
144
+ throw new runtime.RequiredError(
145
+ 'category',
146
+ 'Required parameter "category" was null or undefined when calling createPatchNote().'
147
+ );
148
+ }
149
+
150
+ if (requestParameters['title'] == null) {
151
+ throw new runtime.RequiredError(
152
+ 'title',
153
+ 'Required parameter "title" was null or undefined when calling createPatchNote().'
154
+ );
155
+ }
156
+
157
+ if (requestParameters['body'] == null) {
158
+ throw new runtime.RequiredError(
159
+ 'body',
160
+ 'Required parameter "body" was null or undefined when calling createPatchNote().'
161
+ );
162
+ }
163
+
164
+ const queryParameters: any = {};
165
+
166
+ const headerParameters: runtime.HTTPHeaders = {};
167
+
168
+ const consumes: runtime.Consume[] = [
169
+ { contentType: 'multipart/form-data' },
170
+ ];
171
+ // @ts-ignore: canConsumeForm may be unused
172
+ const canConsumeForm = runtime.canConsumeForm(consumes);
173
+
174
+ let formParams: { append(param: string, value: any): any };
175
+ let useForm = false;
176
+ // use FormData to transmit files using content-type "multipart/form-data"
177
+ useForm = canConsumeForm;
178
+ if (useForm) {
179
+ formParams = new FormData();
180
+ } else {
181
+ formParams = new URLSearchParams();
182
+ }
183
+
184
+ if (requestParameters['target'] != null) {
185
+ formParams.append('target', requestParameters['target'] as any);
186
+ }
187
+
188
+ if (requestParameters['category'] != null) {
189
+ formParams.append('category', requestParameters['category'] as any);
190
+ }
191
+
192
+ if (requestParameters['title'] != null) {
193
+ formParams.append('title', requestParameters['title'] as any);
194
+ }
195
+
196
+ if (requestParameters['body'] != null) {
197
+ formParams.append('body', requestParameters['body'] as any);
198
+ }
199
+
200
+ if (requestParameters['images'] != null) {
201
+ requestParameters['images'].forEach((element) => {
202
+ formParams.append('images', element as any);
203
+ })
204
+ }
205
+
206
+ const response = await this.request({
207
+ path: `/patch-notes`,
208
+ method: 'POST',
209
+ headers: headerParameters,
210
+ query: queryParameters,
211
+ body: formParams,
212
+ }, initOverrides);
213
+
214
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListPatchNotes200ResponseItemsInnerFromJSON(jsonValue));
215
+ }
216
+
217
+ /**
218
+ * Create a patch note
219
+ */
220
+ async createPatchNote(requestParameters: CreatePatchNoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPatchNotes200ResponseItemsInner> {
221
+ const response = await this.createPatchNoteRaw(requestParameters, initOverrides);
222
+ return await response.value();
223
+ }
224
+
225
+ /**
226
+ * Delete a patch note by ID
227
+ */
228
+ async deletePatchNoteByIdRaw(requestParameters: DeletePatchNoteByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
229
+ if (requestParameters['patchNoteId'] == null) {
230
+ throw new runtime.RequiredError(
231
+ 'patchNoteId',
232
+ 'Required parameter "patchNoteId" was null or undefined when calling deletePatchNoteById().'
233
+ );
234
+ }
235
+
236
+ const queryParameters: any = {};
237
+
238
+ const headerParameters: runtime.HTTPHeaders = {};
239
+
240
+ const response = await this.request({
241
+ path: `/patch-notes/{patchNoteId}`.replace(`{${"patchNoteId"}}`, encodeURIComponent(String(requestParameters['patchNoteId']))),
242
+ method: 'DELETE',
243
+ headers: headerParameters,
244
+ query: queryParameters,
245
+ }, initOverrides);
246
+
247
+ return new runtime.VoidApiResponse(response);
248
+ }
249
+
250
+ /**
251
+ * Delete a patch note by ID
252
+ */
253
+ async deletePatchNoteById(requestParameters: DeletePatchNoteByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
254
+ await this.deletePatchNoteByIdRaw(requestParameters, initOverrides);
255
+ }
256
+
257
+ /**
258
+ * Get a patch note by ID
259
+ */
260
+ async getPatchNoteByIdRaw(requestParameters: GetPatchNoteByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPatchNotes200ResponseItemsInner>> {
261
+ if (requestParameters['patchNoteId'] == null) {
262
+ throw new runtime.RequiredError(
263
+ 'patchNoteId',
264
+ 'Required parameter "patchNoteId" was null or undefined when calling getPatchNoteById().'
265
+ );
266
+ }
267
+
268
+ const queryParameters: any = {};
269
+
270
+ const headerParameters: runtime.HTTPHeaders = {};
271
+
272
+ const response = await this.request({
273
+ path: `/patch-notes/{patchNoteId}`.replace(`{${"patchNoteId"}}`, encodeURIComponent(String(requestParameters['patchNoteId']))),
274
+ method: 'GET',
275
+ headers: headerParameters,
276
+ query: queryParameters,
277
+ }, initOverrides);
278
+
279
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListPatchNotes200ResponseItemsInnerFromJSON(jsonValue));
280
+ }
281
+
282
+ /**
283
+ * Get a patch note by ID
284
+ */
285
+ async getPatchNoteById(requestParameters: GetPatchNoteByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPatchNotes200ResponseItemsInner> {
286
+ const response = await this.getPatchNoteByIdRaw(requestParameters, initOverrides);
287
+ return await response.value();
288
+ }
289
+
290
+ /**
291
+ * List patch notes
292
+ */
293
+ async listPatchNotesRaw(requestParameters: ListPatchNotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPatchNotes200Response>> {
294
+ const queryParameters: any = {};
295
+
296
+ if (requestParameters['limit'] != null) {
297
+ queryParameters['limit'] = requestParameters['limit'];
298
+ }
299
+
300
+ if (requestParameters['cursor'] != null) {
301
+ queryParameters['cursor'] = requestParameters['cursor'];
302
+ }
303
+
304
+ if (requestParameters['target'] != null) {
305
+ queryParameters['target'] = requestParameters['target'];
306
+ }
307
+
308
+ if (requestParameters['category'] != null) {
309
+ queryParameters['category'] = requestParameters['category'];
310
+ }
311
+
312
+ const headerParameters: runtime.HTTPHeaders = {};
313
+
314
+ const response = await this.request({
315
+ path: `/patch-notes`,
316
+ method: 'GET',
317
+ headers: headerParameters,
318
+ query: queryParameters,
319
+ }, initOverrides);
320
+
321
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListPatchNotes200ResponseFromJSON(jsonValue));
322
+ }
323
+
324
+ /**
325
+ * List patch notes
326
+ */
327
+ async listPatchNotes(requestParameters: ListPatchNotesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPatchNotes200Response> {
328
+ const response = await this.listPatchNotesRaw(requestParameters, initOverrides);
329
+ return await response.value();
330
+ }
331
+
332
+ }
333
+
334
+ /**
335
+ * @export
336
+ */
337
+ export const CreatePatchNoteTargetEnum = {
338
+ CreativePro: 'creativePro',
339
+ Frontier: 'frontier',
340
+ Life: 'life',
341
+ LeonGunWar2: 'leonGunWar2',
342
+ Sclat: 'sclat'
343
+ } as const;
344
+ export type CreatePatchNoteTargetEnum = typeof CreatePatchNoteTargetEnum[keyof typeof CreatePatchNoteTargetEnum];
345
+ /**
346
+ * @export
347
+ */
348
+ export const CreatePatchNoteCategoryEnum = {
349
+ Balance: 'balance',
350
+ Feature: 'feature',
351
+ Fix: 'fix',
352
+ Improvement: 'improvement'
353
+ } as const;
354
+ export type CreatePatchNoteCategoryEnum = typeof CreatePatchNoteCategoryEnum[keyof typeof CreatePatchNoteCategoryEnum];
355
+ /**
356
+ * @export
357
+ */
358
+ export const ListPatchNotesTargetEnum = {
359
+ CreativePro: 'creativePro',
360
+ Frontier: 'frontier',
361
+ Life: 'life',
362
+ LeonGunWar2: 'leonGunWar2',
363
+ Sclat: 'sclat'
364
+ } as const;
365
+ export type ListPatchNotesTargetEnum = typeof ListPatchNotesTargetEnum[keyof typeof ListPatchNotesTargetEnum];
366
+ /**
367
+ * @export
368
+ */
369
+ export const ListPatchNotesCategoryEnum = {
370
+ Balance: 'balance',
371
+ Feature: 'feature',
372
+ Fix: 'fix',
373
+ Improvement: 'improvement'
374
+ } as const;
375
+ export type ListPatchNotesCategoryEnum = typeof ListPatchNotesCategoryEnum[keyof typeof ListPatchNotesCategoryEnum];
@@ -0,0 +1,3 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './PatchNotesApi';
package/src/index.ts ADDED
@@ -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,121 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CreatePatchNoteBody
20
+ */
21
+ export interface CreatePatchNoteBody {
22
+ /**
23
+ * Target of the patch note.
24
+ * @type {string}
25
+ * @memberof CreatePatchNoteBody
26
+ */
27
+ target: CreatePatchNoteBodyTargetEnum;
28
+ /**
29
+ * Category of the patch note.
30
+ * @type {string}
31
+ * @memberof CreatePatchNoteBody
32
+ */
33
+ category: CreatePatchNoteBodyCategoryEnum;
34
+ /**
35
+ * Title of the patch note.
36
+ * @type {string}
37
+ * @memberof CreatePatchNoteBody
38
+ */
39
+ title: string;
40
+ /**
41
+ * Body text of the patch note.
42
+ * @type {string}
43
+ * @memberof CreatePatchNoteBody
44
+ */
45
+ body: string;
46
+ /**
47
+ * Image files attached to the patch note.
48
+ * @type {Array<Blob>}
49
+ * @memberof CreatePatchNoteBody
50
+ */
51
+ images?: Array<Blob>;
52
+ }
53
+
54
+
55
+ /**
56
+ * @export
57
+ */
58
+ export const CreatePatchNoteBodyTargetEnum = {
59
+ CreativePro: 'creativePro',
60
+ Frontier: 'frontier',
61
+ Life: 'life',
62
+ LeonGunWar2: 'leonGunWar2',
63
+ Sclat: 'sclat'
64
+ } as const;
65
+ export type CreatePatchNoteBodyTargetEnum = typeof CreatePatchNoteBodyTargetEnum[keyof typeof CreatePatchNoteBodyTargetEnum];
66
+
67
+ /**
68
+ * @export
69
+ */
70
+ export const CreatePatchNoteBodyCategoryEnum = {
71
+ Balance: 'balance',
72
+ Feature: 'feature',
73
+ Fix: 'fix',
74
+ Improvement: 'improvement'
75
+ } as const;
76
+ export type CreatePatchNoteBodyCategoryEnum = typeof CreatePatchNoteBodyCategoryEnum[keyof typeof CreatePatchNoteBodyCategoryEnum];
77
+
78
+
79
+ /**
80
+ * Check if a given object implements the CreatePatchNoteBody interface.
81
+ */
82
+ export function instanceOfCreatePatchNoteBody(value: object): value is CreatePatchNoteBody {
83
+ if (!('target' in value) || value['target'] === undefined) return false;
84
+ if (!('category' in value) || value['category'] === undefined) return false;
85
+ if (!('title' in value) || value['title'] === undefined) return false;
86
+ if (!('body' in value) || value['body'] === undefined) return false;
87
+ return true;
88
+ }
89
+
90
+ export function CreatePatchNoteBodyFromJSON(json: any): CreatePatchNoteBody {
91
+ return CreatePatchNoteBodyFromJSONTyped(json, false);
92
+ }
93
+
94
+ export function CreatePatchNoteBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePatchNoteBody {
95
+ if (json == null) {
96
+ return json;
97
+ }
98
+ return {
99
+
100
+ 'target': json['target'],
101
+ 'category': json['category'],
102
+ 'title': json['title'],
103
+ 'body': json['body'],
104
+ 'images': json['images'] == null ? undefined : json['images'],
105
+ };
106
+ }
107
+
108
+ export function CreatePatchNoteBodyToJSON(value?: CreatePatchNoteBody | null): any {
109
+ if (value == null) {
110
+ return value;
111
+ }
112
+ return {
113
+
114
+ 'target': value['target'],
115
+ 'category': value['category'],
116
+ 'title': value['title'],
117
+ 'body': value['body'],
118
+ 'images': value['images'],
119
+ };
120
+ }
121
+
@@ -0,0 +1,77 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { ListPatchNotes200ResponseItemsInner } from './ListPatchNotes200ResponseItemsInner';
17
+ import {
18
+ ListPatchNotes200ResponseItemsInnerFromJSON,
19
+ ListPatchNotes200ResponseItemsInnerFromJSONTyped,
20
+ ListPatchNotes200ResponseItemsInnerToJSON,
21
+ } from './ListPatchNotes200ResponseItemsInner';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ListPatchNotes200Response
27
+ */
28
+ export interface ListPatchNotes200Response {
29
+ /**
30
+ *
31
+ * @type {Array<ListPatchNotes200ResponseItemsInner>}
32
+ * @memberof ListPatchNotes200Response
33
+ */
34
+ items: Array<ListPatchNotes200ResponseItemsInner>;
35
+ /**
36
+ * Cursor for retrieving the next page, or null if no more results are available.
37
+ * @type {string}
38
+ * @memberof ListPatchNotes200Response
39
+ */
40
+ nextCursor: string | null;
41
+ }
42
+
43
+ /**
44
+ * Check if a given object implements the ListPatchNotes200Response interface.
45
+ */
46
+ export function instanceOfListPatchNotes200Response(value: object): value is ListPatchNotes200Response {
47
+ if (!('items' in value) || value['items'] === undefined) return false;
48
+ if (!('nextCursor' in value) || value['nextCursor'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function ListPatchNotes200ResponseFromJSON(json: any): ListPatchNotes200Response {
53
+ return ListPatchNotes200ResponseFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function ListPatchNotes200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListPatchNotes200Response {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'items': ((json['items'] as Array<any>).map(ListPatchNotes200ResponseItemsInnerFromJSON)),
63
+ 'nextCursor': json['nextCursor'],
64
+ };
65
+ }
66
+
67
+ export function ListPatchNotes200ResponseToJSON(value?: ListPatchNotes200Response | null): any {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+
73
+ 'items': ((value['items'] as Array<any>).map(ListPatchNotes200ResponseItemsInnerToJSON)),
74
+ 'nextCursor': value['nextCursor'],
75
+ };
76
+ }
77
+