@orangefox-recovery/foxclient 5.2.6 → 5.2.7

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 (189) hide show
  1. package/.openapi-generator/FILES +28 -30
  2. package/README.md +3 -65
  3. package/dist/apis/DeviceApi.d.ts +158 -0
  4. package/dist/apis/DeviceApi.js +188 -0
  5. package/dist/apis/PasteApi.d.ts +80 -0
  6. package/dist/apis/PasteApi.js +95 -0
  7. package/dist/apis/ReleaseApi.d.ts +188 -0
  8. package/dist/apis/ReleaseApi.js +226 -0
  9. package/dist/apis/StatsApi.d.ts +49 -0
  10. package/dist/apis/StatsApi.js +60 -0
  11. package/dist/apis/index.d.ts +4 -0
  12. package/dist/apis/index.js +22 -0
  13. package/dist/esm/apis/DeviceApi.d.ts +158 -0
  14. package/dist/esm/apis/DeviceApi.js +184 -0
  15. package/dist/esm/apis/PasteApi.d.ts +80 -0
  16. package/dist/esm/apis/PasteApi.js +91 -0
  17. package/dist/esm/apis/ReleaseApi.d.ts +188 -0
  18. package/dist/esm/apis/ReleaseApi.js +222 -0
  19. package/dist/esm/apis/StatsApi.d.ts +49 -0
  20. package/dist/esm/apis/StatsApi.js +56 -0
  21. package/dist/esm/apis/index.d.ts +4 -0
  22. package/dist/esm/apis/index.js +6 -0
  23. package/dist/esm/index.d.ts +3 -13
  24. package/dist/esm/index.js +3 -13
  25. package/dist/esm/models/DeviceResponse.d.ts +101 -0
  26. package/dist/esm/models/DeviceResponse.js +82 -0
  27. package/dist/esm/models/GlobalStatsAggregationModel.d.ts +52 -0
  28. package/dist/esm/models/GlobalStatsAggregationModel.js +55 -0
  29. package/dist/esm/models/HTTPValidationError.d.ts +33 -0
  30. package/dist/esm/models/HTTPValidationError.js +42 -0
  31. package/dist/esm/models/ListResponseReleaseResponse.d.ts +39 -0
  32. package/dist/esm/models/ListResponseReleaseResponse.js +47 -0
  33. package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +39 -0
  34. package/dist/esm/models/ListResponseShortDeviceResponse.js +47 -0
  35. package/dist/esm/models/ListResponseShortReleaseResponse.d.ts +39 -0
  36. package/dist/esm/models/ListResponseShortReleaseResponse.js +47 -0
  37. package/dist/esm/models/ListResponseStr.d.ts +38 -0
  38. package/dist/esm/models/ListResponseStr.js +46 -0
  39. package/dist/esm/models/MaintainerShortModel.d.ts +44 -0
  40. package/dist/esm/models/MaintainerShortModel.js +51 -0
  41. package/dist/esm/models/PasteInput.d.ts +50 -0
  42. package/dist/esm/models/PasteInput.js +51 -0
  43. package/dist/esm/models/PasteOutput.d.ts +50 -0
  44. package/dist/esm/models/PasteOutput.js +51 -0
  45. package/dist/esm/models/RecoveryImgResponse.d.ts +38 -0
  46. package/dist/esm/models/RecoveryImgResponse.js +47 -0
  47. package/dist/esm/models/ReleaseGroupsResponse.d.ts +35 -0
  48. package/dist/esm/models/ReleaseGroupsResponse.js +43 -0
  49. package/dist/esm/models/ReleaseResponse.d.ts +139 -0
  50. package/dist/esm/models/ReleaseResponse.js +107 -0
  51. package/dist/esm/models/ReleaseType.d.ts +26 -0
  52. package/dist/esm/models/ReleaseType.js +44 -0
  53. package/dist/esm/models/ReleasesSort.d.ts +25 -0
  54. package/dist/esm/models/ReleasesSort.js +43 -0
  55. package/dist/esm/models/ResponseGetReleases.d.ts +41 -0
  56. package/dist/esm/models/ResponseGetReleases.js +46 -0
  57. package/dist/esm/models/ShortDeviceResponse.d.ts +82 -0
  58. package/dist/esm/models/ShortDeviceResponse.js +73 -0
  59. package/dist/esm/models/ShortReleaseResponse.d.ts +100 -0
  60. package/dist/esm/models/ShortReleaseResponse.js +84 -0
  61. package/dist/esm/models/ValidationError.d.ts +45 -0
  62. package/dist/esm/models/ValidationError.js +52 -0
  63. package/dist/esm/models/ValidationErrorLocInner.d.ts +26 -0
  64. package/{index.ts → dist/esm/models/ValidationErrorLocInner.js} +20 -7
  65. package/dist/esm/models/index.d.ts +20 -0
  66. package/dist/esm/models/index.js +22 -0
  67. package/dist/esm/runtime.d.ts +184 -0
  68. package/dist/esm/runtime.js +334 -0
  69. package/dist/index.d.ts +3 -13
  70. package/dist/index.js +5 -15
  71. package/dist/models/DeviceResponse.d.ts +101 -0
  72. package/dist/models/DeviceResponse.js +89 -0
  73. package/dist/models/GlobalStatsAggregationModel.d.ts +52 -0
  74. package/dist/models/GlobalStatsAggregationModel.js +62 -0
  75. package/dist/models/HTTPValidationError.d.ts +33 -0
  76. package/dist/models/HTTPValidationError.js +49 -0
  77. package/dist/models/ListResponseReleaseResponse.d.ts +39 -0
  78. package/dist/models/ListResponseReleaseResponse.js +54 -0
  79. package/dist/models/ListResponseShortDeviceResponse.d.ts +39 -0
  80. package/dist/models/ListResponseShortDeviceResponse.js +54 -0
  81. package/dist/models/ListResponseShortReleaseResponse.d.ts +39 -0
  82. package/dist/models/ListResponseShortReleaseResponse.js +54 -0
  83. package/dist/models/ListResponseStr.d.ts +38 -0
  84. package/dist/models/ListResponseStr.js +53 -0
  85. package/dist/models/MaintainerShortModel.d.ts +44 -0
  86. package/dist/models/MaintainerShortModel.js +58 -0
  87. package/dist/models/PasteInput.d.ts +50 -0
  88. package/dist/models/PasteInput.js +58 -0
  89. package/dist/models/PasteOutput.d.ts +50 -0
  90. package/dist/models/PasteOutput.js +58 -0
  91. package/dist/models/RecoveryImgResponse.d.ts +38 -0
  92. package/dist/models/RecoveryImgResponse.js +54 -0
  93. package/dist/models/ReleaseGroupsResponse.d.ts +35 -0
  94. package/dist/models/ReleaseGroupsResponse.js +50 -0
  95. package/dist/models/ReleaseResponse.d.ts +139 -0
  96. package/dist/models/ReleaseResponse.js +114 -0
  97. package/dist/models/ReleaseType.d.ts +26 -0
  98. package/dist/models/ReleaseType.js +52 -0
  99. package/dist/models/ReleasesSort.d.ts +25 -0
  100. package/dist/models/ReleasesSort.js +51 -0
  101. package/dist/models/ResponseGetReleases.d.ts +41 -0
  102. package/dist/models/ResponseGetReleases.js +53 -0
  103. package/dist/models/ShortDeviceResponse.d.ts +82 -0
  104. package/dist/models/ShortDeviceResponse.js +80 -0
  105. package/dist/models/ShortReleaseResponse.d.ts +100 -0
  106. package/dist/models/ShortReleaseResponse.js +91 -0
  107. package/dist/models/ValidationError.d.ts +45 -0
  108. package/dist/models/ValidationError.js +59 -0
  109. package/dist/models/ValidationErrorLocInner.d.ts +26 -0
  110. package/dist/models/ValidationErrorLocInner.js +38 -0
  111. package/dist/models/index.d.ts +20 -0
  112. package/dist/models/index.js +38 -0
  113. package/dist/runtime.d.ts +184 -0
  114. package/dist/runtime.js +350 -0
  115. package/package.json +4 -17
  116. package/src/apis/DeviceApi.ts +326 -0
  117. package/src/apis/PasteApi.ts +158 -0
  118. package/src/apis/ReleaseApi.ts +414 -0
  119. package/src/apis/StatsApi.ts +82 -0
  120. package/src/apis/index.ts +6 -0
  121. package/src/index.ts +5 -0
  122. package/src/models/DeviceResponse.ts +171 -0
  123. package/src/models/GlobalStatsAggregationModel.ts +93 -0
  124. package/src/models/HTTPValidationError.ts +73 -0
  125. package/src/models/ListResponseReleaseResponse.ts +82 -0
  126. package/src/models/ListResponseShortDeviceResponse.ts +82 -0
  127. package/src/models/ListResponseShortReleaseResponse.ts +82 -0
  128. package/src/models/ListResponseStr.ts +74 -0
  129. package/src/models/MaintainerShortModel.ts +84 -0
  130. package/src/models/PasteInput.ts +91 -0
  131. package/src/models/PasteOutput.ts +91 -0
  132. package/src/models/RecoveryImgResponse.ts +75 -0
  133. package/src/models/ReleaseGroupsResponse.ts +74 -0
  134. package/src/models/ReleaseResponse.ts +233 -0
  135. package/src/models/ReleaseType.ts +54 -0
  136. package/src/models/ReleasesSort.ts +53 -0
  137. package/src/models/ResponseGetReleases.ts +96 -0
  138. package/src/models/ShortDeviceResponse.ts +138 -0
  139. package/src/models/ShortReleaseResponse.ts +174 -0
  140. package/src/models/ValidationError.ts +92 -0
  141. package/src/models/ValidationErrorLocInner.ts +46 -0
  142. package/src/models/index.ts +22 -0
  143. package/src/runtime.ts +432 -0
  144. package/tsconfig.json +2 -4
  145. package/api.ts +0 -2101
  146. package/base.ts +0 -86
  147. package/common.ts +0 -150
  148. package/configuration.ts +0 -115
  149. package/dist/api.d.ts +0 -1483
  150. package/dist/api.js +0 -1172
  151. package/dist/base.d.ts +0 -66
  152. package/dist/base.js +0 -65
  153. package/dist/common.d.ts +0 -65
  154. package/dist/common.js +0 -161
  155. package/dist/configuration.d.ts +0 -91
  156. package/dist/configuration.js +0 -44
  157. package/dist/esm/api.d.ts +0 -1483
  158. package/dist/esm/api.js +0 -1153
  159. package/dist/esm/base.d.ts +0 -66
  160. package/dist/esm/base.js +0 -60
  161. package/dist/esm/common.d.ts +0 -65
  162. package/dist/esm/common.js +0 -149
  163. package/dist/esm/configuration.d.ts +0 -91
  164. package/dist/esm/configuration.js +0 -40
  165. package/docs/DeviceApi.md +0 -251
  166. package/docs/DeviceResponse.md +0 -44
  167. package/docs/GlobalStatsAggregationModel.md +0 -26
  168. package/docs/HTTPValidationError.md +0 -20
  169. package/docs/ListResponseReleaseResponse.md +0 -22
  170. package/docs/ListResponseShortDeviceResponse.md +0 -22
  171. package/docs/ListResponseShortReleaseResponse.md +0 -22
  172. package/docs/ListResponseStr.md +0 -22
  173. package/docs/MaintainerShortModel.md +0 -26
  174. package/docs/PasteApi.md +0 -117
  175. package/docs/PasteInput.md +0 -26
  176. package/docs/PasteOutput.md +0 -26
  177. package/docs/RecoveryImgResponse.md +0 -22
  178. package/docs/ReleaseApi.md +0 -289
  179. package/docs/ReleaseGroupsResponse.md +0 -20
  180. package/docs/ReleaseResponse.md +0 -56
  181. package/docs/ReleaseType.md +0 -12
  182. package/docs/ReleasesSort.md +0 -10
  183. package/docs/ResponseGetReleases.md +0 -22
  184. package/docs/ShortDeviceResponse.md +0 -38
  185. package/docs/ShortReleaseResponse.md +0 -44
  186. package/docs/StatsApi.md +0 -53
  187. package/docs/ValidationError.md +0 -24
  188. package/docs/ValidationErrorLocInner.md +0 -18
  189. package/git_push.sh +0 -57
@@ -0,0 +1,93 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fox API
5
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
6
+ *
7
+ * The version of the OpenAPI document: 5.2.7
8
+ * Contact: admin@orangefox.tech
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 GlobalStatsAggregationModel
20
+ */
21
+ export interface GlobalStatsAggregationModel {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof GlobalStatsAggregationModel
26
+ */
27
+ count: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof GlobalStatsAggregationModel
32
+ */
33
+ deviceCount: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof GlobalStatsAggregationModel
38
+ */
39
+ releaseCount: number;
40
+ /**
41
+ *
42
+ * @type {{ [key: string]: number; }}
43
+ * @memberof GlobalStatsAggregationModel
44
+ */
45
+ days: { [key: string]: number; };
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the GlobalStatsAggregationModel interface.
50
+ */
51
+ export function instanceOfGlobalStatsAggregationModel(value: object): value is GlobalStatsAggregationModel {
52
+ if (!('count' in value) || value['count'] === undefined) return false;
53
+ if (!('deviceCount' in value) || value['deviceCount'] === undefined) return false;
54
+ if (!('releaseCount' in value) || value['releaseCount'] === undefined) return false;
55
+ if (!('days' in value) || value['days'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function GlobalStatsAggregationModelFromJSON(json: any): GlobalStatsAggregationModel {
60
+ return GlobalStatsAggregationModelFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function GlobalStatsAggregationModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalStatsAggregationModel {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'count': json['count'],
70
+ 'deviceCount': json['deviceCount'],
71
+ 'releaseCount': json['releaseCount'],
72
+ 'days': json['days'],
73
+ };
74
+ }
75
+
76
+ export function GlobalStatsAggregationModelToJSON(json: any): GlobalStatsAggregationModel {
77
+ return GlobalStatsAggregationModelToJSONTyped(json, false);
78
+ }
79
+
80
+ export function GlobalStatsAggregationModelToJSONTyped(value?: GlobalStatsAggregationModel | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'count': value['count'],
88
+ 'deviceCount': value['deviceCount'],
89
+ 'releaseCount': value['releaseCount'],
90
+ 'days': value['days'],
91
+ };
92
+ }
93
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fox API
5
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
6
+ *
7
+ * The version of the OpenAPI document: 5.2.7
8
+ * Contact: admin@orangefox.tech
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 { ValidationError } from './ValidationError';
17
+ import {
18
+ ValidationErrorFromJSON,
19
+ ValidationErrorFromJSONTyped,
20
+ ValidationErrorToJSON,
21
+ ValidationErrorToJSONTyped,
22
+ } from './ValidationError';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface HTTPValidationError
28
+ */
29
+ export interface HTTPValidationError {
30
+ /**
31
+ *
32
+ * @type {Array<ValidationError>}
33
+ * @memberof HTTPValidationError
34
+ */
35
+ detail?: Array<ValidationError>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the HTTPValidationError interface.
40
+ */
41
+ export function instanceOfHTTPValidationError(value: object): value is HTTPValidationError {
42
+ return true;
43
+ }
44
+
45
+ export function HTTPValidationErrorFromJSON(json: any): HTTPValidationError {
46
+ return HTTPValidationErrorFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function HTTPValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): HTTPValidationError {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'detail': json['detail'] == null ? undefined : ((json['detail'] as Array<any>).map(ValidationErrorFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function HTTPValidationErrorToJSON(json: any): HTTPValidationError {
60
+ return HTTPValidationErrorToJSONTyped(json, false);
61
+ }
62
+
63
+ export function HTTPValidationErrorToJSONTyped(value?: HTTPValidationError | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'detail': value['detail'] == null ? undefined : ((value['detail'] as Array<any>).map(ValidationErrorToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,82 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fox API
5
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
6
+ *
7
+ * The version of the OpenAPI document: 5.2.7
8
+ * Contact: admin@orangefox.tech
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 { ReleaseResponse } from './ReleaseResponse';
17
+ import {
18
+ ReleaseResponseFromJSON,
19
+ ReleaseResponseFromJSONTyped,
20
+ ReleaseResponseToJSON,
21
+ ReleaseResponseToJSONTyped,
22
+ } from './ReleaseResponse';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ListResponseReleaseResponse
28
+ */
29
+ export interface ListResponseReleaseResponse {
30
+ /**
31
+ *
32
+ * @type {Array<ReleaseResponse>}
33
+ * @memberof ListResponseReleaseResponse
34
+ */
35
+ data: Array<ReleaseResponse>;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ListResponseReleaseResponse
40
+ */
41
+ readonly count: number;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the ListResponseReleaseResponse interface.
46
+ */
47
+ export function instanceOfListResponseReleaseResponse(value: object): value is ListResponseReleaseResponse {
48
+ if (!('data' in value) || value['data'] === undefined) return false;
49
+ if (!('count' in value) || value['count'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function ListResponseReleaseResponseFromJSON(json: any): ListResponseReleaseResponse {
54
+ return ListResponseReleaseResponseFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function ListResponseReleaseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListResponseReleaseResponse {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'data': ((json['data'] as Array<any>).map(ReleaseResponseFromJSON)),
64
+ 'count': json['count'],
65
+ };
66
+ }
67
+
68
+ export function ListResponseReleaseResponseToJSON(json: any): ListResponseReleaseResponse {
69
+ return ListResponseReleaseResponseToJSONTyped(json, false);
70
+ }
71
+
72
+ export function ListResponseReleaseResponseToJSONTyped(value?: Omit<ListResponseReleaseResponse, 'count'> | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'data': ((value['data'] as Array<any>).map(ReleaseResponseToJSON)),
80
+ };
81
+ }
82
+
@@ -0,0 +1,82 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fox API
5
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
6
+ *
7
+ * The version of the OpenAPI document: 5.2.7
8
+ * Contact: admin@orangefox.tech
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 { ShortDeviceResponse } from './ShortDeviceResponse';
17
+ import {
18
+ ShortDeviceResponseFromJSON,
19
+ ShortDeviceResponseFromJSONTyped,
20
+ ShortDeviceResponseToJSON,
21
+ ShortDeviceResponseToJSONTyped,
22
+ } from './ShortDeviceResponse';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ListResponseShortDeviceResponse
28
+ */
29
+ export interface ListResponseShortDeviceResponse {
30
+ /**
31
+ *
32
+ * @type {Array<ShortDeviceResponse>}
33
+ * @memberof ListResponseShortDeviceResponse
34
+ */
35
+ data: Array<ShortDeviceResponse>;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ListResponseShortDeviceResponse
40
+ */
41
+ readonly count: number;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the ListResponseShortDeviceResponse interface.
46
+ */
47
+ export function instanceOfListResponseShortDeviceResponse(value: object): value is ListResponseShortDeviceResponse {
48
+ if (!('data' in value) || value['data'] === undefined) return false;
49
+ if (!('count' in value) || value['count'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function ListResponseShortDeviceResponseFromJSON(json: any): ListResponseShortDeviceResponse {
54
+ return ListResponseShortDeviceResponseFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function ListResponseShortDeviceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListResponseShortDeviceResponse {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'data': ((json['data'] as Array<any>).map(ShortDeviceResponseFromJSON)),
64
+ 'count': json['count'],
65
+ };
66
+ }
67
+
68
+ export function ListResponseShortDeviceResponseToJSON(json: any): ListResponseShortDeviceResponse {
69
+ return ListResponseShortDeviceResponseToJSONTyped(json, false);
70
+ }
71
+
72
+ export function ListResponseShortDeviceResponseToJSONTyped(value?: Omit<ListResponseShortDeviceResponse, 'count'> | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'data': ((value['data'] as Array<any>).map(ShortDeviceResponseToJSON)),
80
+ };
81
+ }
82
+
@@ -0,0 +1,82 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fox API
5
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
6
+ *
7
+ * The version of the OpenAPI document: 5.2.7
8
+ * Contact: admin@orangefox.tech
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 { ShortReleaseResponse } from './ShortReleaseResponse';
17
+ import {
18
+ ShortReleaseResponseFromJSON,
19
+ ShortReleaseResponseFromJSONTyped,
20
+ ShortReleaseResponseToJSON,
21
+ ShortReleaseResponseToJSONTyped,
22
+ } from './ShortReleaseResponse';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ListResponseShortReleaseResponse
28
+ */
29
+ export interface ListResponseShortReleaseResponse {
30
+ /**
31
+ *
32
+ * @type {Array<ShortReleaseResponse>}
33
+ * @memberof ListResponseShortReleaseResponse
34
+ */
35
+ data: Array<ShortReleaseResponse>;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ListResponseShortReleaseResponse
40
+ */
41
+ readonly count: number;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the ListResponseShortReleaseResponse interface.
46
+ */
47
+ export function instanceOfListResponseShortReleaseResponse(value: object): value is ListResponseShortReleaseResponse {
48
+ if (!('data' in value) || value['data'] === undefined) return false;
49
+ if (!('count' in value) || value['count'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function ListResponseShortReleaseResponseFromJSON(json: any): ListResponseShortReleaseResponse {
54
+ return ListResponseShortReleaseResponseFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function ListResponseShortReleaseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListResponseShortReleaseResponse {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'data': ((json['data'] as Array<any>).map(ShortReleaseResponseFromJSON)),
64
+ 'count': json['count'],
65
+ };
66
+ }
67
+
68
+ export function ListResponseShortReleaseResponseToJSON(json: any): ListResponseShortReleaseResponse {
69
+ return ListResponseShortReleaseResponseToJSONTyped(json, false);
70
+ }
71
+
72
+ export function ListResponseShortReleaseResponseToJSONTyped(value?: Omit<ListResponseShortReleaseResponse, 'count'> | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'data': ((value['data'] as Array<any>).map(ShortReleaseResponseToJSON)),
80
+ };
81
+ }
82
+
@@ -0,0 +1,74 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fox API
5
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
6
+ *
7
+ * The version of the OpenAPI document: 5.2.7
8
+ * Contact: admin@orangefox.tech
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 ListResponseStr
20
+ */
21
+ export interface ListResponseStr {
22
+ /**
23
+ *
24
+ * @type {Array<string>}
25
+ * @memberof ListResponseStr
26
+ */
27
+ data: Array<string>;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ListResponseStr
32
+ */
33
+ readonly count: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ListResponseStr interface.
38
+ */
39
+ export function instanceOfListResponseStr(value: object): value is ListResponseStr {
40
+ if (!('data' in value) || value['data'] === undefined) return false;
41
+ if (!('count' in value) || value['count'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function ListResponseStrFromJSON(json: any): ListResponseStr {
46
+ return ListResponseStrFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ListResponseStrFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListResponseStr {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'],
56
+ 'count': json['count'],
57
+ };
58
+ }
59
+
60
+ export function ListResponseStrToJSON(json: any): ListResponseStr {
61
+ return ListResponseStrToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ListResponseStrToJSONTyped(value?: Omit<ListResponseStr, 'count'> | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'data': value['data'],
72
+ };
73
+ }
74
+
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fox API
5
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
6
+ *
7
+ * The version of the OpenAPI document: 5.2.7
8
+ * Contact: admin@orangefox.tech
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 MaintainerShortModel
20
+ */
21
+ export interface MaintainerShortModel {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof MaintainerShortModel
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof MaintainerShortModel
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof MaintainerShortModel
38
+ */
39
+ username: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the MaintainerShortModel interface.
44
+ */
45
+ export function instanceOfMaintainerShortModel(value: object): value is MaintainerShortModel {
46
+ if (!('id' in value) || value['id'] === undefined) return false;
47
+ if (!('name' in value) || value['name'] === undefined) return false;
48
+ if (!('username' in value) || value['username'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function MaintainerShortModelFromJSON(json: any): MaintainerShortModel {
53
+ return MaintainerShortModelFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function MaintainerShortModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaintainerShortModel {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'id': json['id'],
63
+ 'name': json['name'],
64
+ 'username': json['username'],
65
+ };
66
+ }
67
+
68
+ export function MaintainerShortModelToJSON(json: any): MaintainerShortModel {
69
+ return MaintainerShortModelToJSONTyped(json, false);
70
+ }
71
+
72
+ export function MaintainerShortModelToJSONTyped(value?: MaintainerShortModel | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'id': value['id'],
80
+ 'name': value['name'],
81
+ 'username': value['username'],
82
+ };
83
+ }
84
+
@@ -0,0 +1,91 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fox API
5
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
6
+ *
7
+ * The version of the OpenAPI document: 5.2.7
8
+ * Contact: admin@orangefox.tech
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 PasteInput
20
+ */
21
+ export interface PasteInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PasteInput
26
+ */
27
+ id?: string | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PasteInput
32
+ */
33
+ content: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PasteInput
38
+ */
39
+ ipAddress: string;
40
+ /**
41
+ *
42
+ * @type {Date}
43
+ * @memberof PasteInput
44
+ */
45
+ createdAt?: Date;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the PasteInput interface.
50
+ */
51
+ export function instanceOfPasteInput(value: object): value is PasteInput {
52
+ if (!('content' in value) || value['content'] === undefined) return false;
53
+ if (!('ipAddress' in value) || value['ipAddress'] === undefined) return false;
54
+ return true;
55
+ }
56
+
57
+ export function PasteInputFromJSON(json: any): PasteInput {
58
+ return PasteInputFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function PasteInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasteInput {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'id': json['_id'] == null ? undefined : json['_id'],
68
+ 'content': json['content'],
69
+ 'ipAddress': json['ip_address'],
70
+ 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
71
+ };
72
+ }
73
+
74
+ export function PasteInputToJSON(json: any): PasteInput {
75
+ return PasteInputToJSONTyped(json, false);
76
+ }
77
+
78
+ export function PasteInputToJSONTyped(value?: PasteInput | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ '_id': value['id'],
86
+ 'content': value['content'],
87
+ 'ip_address': value['ipAddress'],
88
+ 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
89
+ };
90
+ }
91
+