@orangefox-recovery/foxclient 6.0.10 → 6.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +18 -0
- package/README.md +16 -3
- package/dist/apis/DeviceApi.d.ts +1 -1
- package/dist/apis/DeviceApi.js +35 -2
- package/dist/apis/PasteApi.d.ts +1 -1
- package/dist/apis/PasteApi.js +35 -2
- package/dist/apis/ReleaseApi.d.ts +5 -5
- package/dist/apis/ReleaseApi.js +35 -2
- package/dist/apis/ReportApi.d.ts +1 -1
- package/dist/apis/ReportApi.js +35 -2
- package/dist/apis/StatsApi.d.ts +1 -1
- package/dist/apis/StatsApi.js +35 -2
- package/dist/apis/UptimeApi.d.ts +1 -1
- package/dist/apis/UptimeApi.js +35 -2
- package/dist/apis/WikiApi.d.ts +219 -0
- package/dist/apis/WikiApi.js +278 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/DeviceApi.d.ts +1 -1
- package/dist/esm/apis/DeviceApi.js +1 -1
- package/dist/esm/apis/PasteApi.d.ts +1 -1
- package/dist/esm/apis/PasteApi.js +1 -1
- package/dist/esm/apis/ReleaseApi.d.ts +5 -5
- package/dist/esm/apis/ReleaseApi.js +1 -1
- package/dist/esm/apis/ReportApi.d.ts +1 -1
- package/dist/esm/apis/ReportApi.js +1 -1
- package/dist/esm/apis/StatsApi.d.ts +1 -1
- package/dist/esm/apis/StatsApi.js +1 -1
- package/dist/esm/apis/UptimeApi.d.ts +1 -1
- package/dist/esm/apis/UptimeApi.js +1 -1
- package/dist/esm/apis/WikiApi.d.ts +219 -0
- package/dist/esm/apis/WikiApi.js +241 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/DeviceResponse.d.ts +1 -1
- package/dist/esm/models/DeviceResponse.js +1 -1
- package/dist/esm/models/ErrorResponse.d.ts +1 -1
- package/dist/esm/models/ErrorResponse.js +1 -1
- package/dist/esm/models/GlobalStatsResponse.d.ts +1 -1
- package/dist/esm/models/GlobalStatsResponse.js +1 -1
- package/dist/esm/models/ListResponseReleaseResponse.d.ts +12 -2
- package/dist/esm/models/ListResponseReleaseResponse.js +5 -1
- package/dist/esm/models/ListResponseReleaseResponseDataInner.d.ts +1 -1
- package/dist/esm/models/ListResponseReleaseResponseDataInner.js +1 -1
- package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +12 -2
- package/dist/esm/models/ListResponseShortDeviceResponse.js +5 -1
- package/dist/esm/models/ListResponseShortDeviceResponseDataInner.d.ts +1 -1
- package/dist/esm/models/ListResponseShortDeviceResponseDataInner.js +1 -1
- package/dist/esm/models/ListResponseString.d.ts +12 -2
- package/dist/esm/models/ListResponseString.js +5 -1
- package/dist/esm/models/ListResponseWikiPageShortResponse.d.ts +49 -0
- package/dist/esm/models/ListResponseWikiPageShortResponse.js +52 -0
- package/dist/esm/models/ListResponseWikiPageShortResponseDataInner.d.ts +99 -0
- package/dist/esm/models/ListResponseWikiPageShortResponseDataInner.js +81 -0
- package/dist/esm/models/ListResponseWikiSiteResponse.d.ts +49 -0
- package/dist/esm/models/ListResponseWikiSiteResponse.js +52 -0
- package/dist/esm/models/ListResponseWikiSiteResponseDataInner.d.ts +74 -0
- package/dist/esm/models/ListResponseWikiSiteResponseDataInner.js +65 -0
- package/dist/esm/models/MaintainerShortResponse.d.ts +1 -1
- package/dist/esm/models/MaintainerShortResponse.js +1 -1
- package/dist/esm/models/NewReportRequest.d.ts +1 -1
- package/dist/esm/models/NewReportRequest.js +1 -1
- package/dist/esm/models/PasteInput.d.ts +1 -1
- package/dist/esm/models/PasteInput.js +1 -1
- package/dist/esm/models/PasteResponse.d.ts +1 -1
- package/dist/esm/models/PasteResponse.js +1 -1
- package/dist/esm/models/RecoveryImgResponse.d.ts +1 -1
- package/dist/esm/models/RecoveryImgResponse.js +1 -1
- package/dist/esm/models/ReleaseGroupsResponse.d.ts +15 -1
- package/dist/esm/models/ReleaseGroupsResponse.js +5 -1
- package/dist/esm/models/ReleaseListResponse.d.ts +1 -1
- package/dist/esm/models/ReleaseListResponse.js +1 -1
- package/dist/esm/models/ReleaseResponse.d.ts +1 -1
- package/dist/esm/models/ReleaseResponse.js +1 -1
- package/dist/esm/models/ReleaseSort.d.ts +31 -0
- package/dist/esm/models/ReleaseSort.js +49 -0
- package/dist/esm/models/ShortDeviceResponse.d.ts +1 -1
- package/dist/esm/models/ShortDeviceResponse.js +1 -1
- package/dist/esm/models/ShortReleaseResponse.d.ts +1 -1
- package/dist/esm/models/ShortReleaseResponse.js +1 -1
- package/dist/esm/models/TokenResponse.d.ts +1 -1
- package/dist/esm/models/TokenResponse.js +1 -1
- package/dist/esm/models/UptimeHealth.d.ts +1 -1
- package/dist/esm/models/UptimeHealth.js +1 -1
- package/dist/esm/models/UptimeHealthHost.d.ts +1 -1
- package/dist/esm/models/UptimeHealthHost.js +1 -1
- package/dist/esm/models/UptimeMonitor.d.ts +1 -1
- package/dist/esm/models/UptimeMonitor.js +1 -1
- package/dist/esm/models/UptimeMonitorGroup.d.ts +1 -1
- package/dist/esm/models/UptimeMonitorGroup.js +1 -1
- package/dist/esm/models/UptimeMonitors.d.ts +1 -1
- package/dist/esm/models/UptimeMonitors.js +1 -1
- package/dist/esm/models/UptimeResponse.d.ts +1 -1
- package/dist/esm/models/UptimeResponse.js +1 -1
- package/dist/esm/models/WikiPageResponse.d.ts +128 -0
- package/dist/esm/models/WikiPageResponse.js +97 -0
- package/dist/esm/models/WikiPageShortResponse.d.ts +99 -0
- package/dist/esm/models/WikiPageShortResponse.js +81 -0
- package/dist/esm/models/WikiSiteResponse.d.ts +74 -0
- package/dist/esm/models/WikiSiteResponse.js +65 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/DeviceResponse.d.ts +1 -1
- package/dist/models/DeviceResponse.js +1 -1
- package/dist/models/ErrorResponse.d.ts +1 -1
- package/dist/models/ErrorResponse.js +1 -1
- package/dist/models/GlobalStatsResponse.d.ts +1 -1
- package/dist/models/GlobalStatsResponse.js +1 -1
- package/dist/models/ListResponseReleaseResponse.d.ts +12 -2
- package/dist/models/ListResponseReleaseResponse.js +5 -1
- package/dist/models/ListResponseReleaseResponseDataInner.d.ts +1 -1
- package/dist/models/ListResponseReleaseResponseDataInner.js +1 -1
- package/dist/models/ListResponseShortDeviceResponse.d.ts +12 -2
- package/dist/models/ListResponseShortDeviceResponse.js +5 -1
- package/dist/models/ListResponseShortDeviceResponseDataInner.d.ts +1 -1
- package/dist/models/ListResponseShortDeviceResponseDataInner.js +1 -1
- package/dist/models/ListResponseString.d.ts +12 -2
- package/dist/models/ListResponseString.js +5 -1
- package/dist/models/ListResponseWikiPageShortResponse.d.ts +49 -0
- package/dist/models/ListResponseWikiPageShortResponse.js +59 -0
- package/dist/models/ListResponseWikiPageShortResponseDataInner.d.ts +99 -0
- package/dist/models/ListResponseWikiPageShortResponseDataInner.js +88 -0
- package/dist/models/ListResponseWikiSiteResponse.d.ts +49 -0
- package/dist/models/ListResponseWikiSiteResponse.js +59 -0
- package/dist/models/ListResponseWikiSiteResponseDataInner.d.ts +74 -0
- package/dist/models/ListResponseWikiSiteResponseDataInner.js +72 -0
- package/dist/models/MaintainerShortResponse.d.ts +1 -1
- package/dist/models/MaintainerShortResponse.js +1 -1
- package/dist/models/NewReportRequest.d.ts +1 -1
- package/dist/models/NewReportRequest.js +1 -1
- package/dist/models/PasteInput.d.ts +1 -1
- package/dist/models/PasteInput.js +1 -1
- package/dist/models/PasteResponse.d.ts +1 -1
- package/dist/models/PasteResponse.js +1 -1
- package/dist/models/RecoveryImgResponse.d.ts +1 -1
- package/dist/models/RecoveryImgResponse.js +1 -1
- package/dist/models/ReleaseGroupsResponse.d.ts +15 -1
- package/dist/models/ReleaseGroupsResponse.js +5 -1
- package/dist/models/ReleaseListResponse.d.ts +1 -1
- package/dist/models/ReleaseListResponse.js +1 -1
- package/dist/models/ReleaseResponse.d.ts +1 -1
- package/dist/models/ReleaseResponse.js +1 -1
- package/dist/models/ReleaseSort.d.ts +31 -0
- package/dist/models/ReleaseSort.js +57 -0
- package/dist/models/ShortDeviceResponse.d.ts +1 -1
- package/dist/models/ShortDeviceResponse.js +1 -1
- package/dist/models/ShortReleaseResponse.d.ts +1 -1
- package/dist/models/ShortReleaseResponse.js +1 -1
- package/dist/models/TokenResponse.d.ts +1 -1
- package/dist/models/TokenResponse.js +1 -1
- package/dist/models/UptimeHealth.d.ts +1 -1
- package/dist/models/UptimeHealth.js +1 -1
- package/dist/models/UptimeHealthHost.d.ts +1 -1
- package/dist/models/UptimeHealthHost.js +1 -1
- package/dist/models/UptimeMonitor.d.ts +1 -1
- package/dist/models/UptimeMonitor.js +1 -1
- package/dist/models/UptimeMonitorGroup.d.ts +1 -1
- package/dist/models/UptimeMonitorGroup.js +1 -1
- package/dist/models/UptimeMonitors.d.ts +1 -1
- package/dist/models/UptimeMonitors.js +1 -1
- package/dist/models/UptimeResponse.d.ts +1 -1
- package/dist/models/UptimeResponse.js +1 -1
- package/dist/models/WikiPageResponse.d.ts +128 -0
- package/dist/models/WikiPageResponse.js +104 -0
- package/dist/models/WikiPageShortResponse.d.ts +99 -0
- package/dist/models/WikiPageShortResponse.js +88 -0
- package/dist/models/WikiSiteResponse.d.ts +74 -0
- package/dist/models/WikiSiteResponse.js +72 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/docs/ListResponseReleaseResponse.md +2 -0
- package/docs/ListResponseShortDeviceResponse.md +2 -0
- package/docs/ListResponseString.md +2 -0
- package/docs/ListResponseWikiPageShortResponse.md +38 -0
- package/docs/ListResponseWikiPageShortResponseDataInner.md +57 -0
- package/docs/ListResponseWikiSiteResponse.md +38 -0
- package/docs/ListResponseWikiSiteResponseDataInner.md +48 -0
- package/docs/ReleaseApi.md +3 -3
- package/docs/ReleaseGroupsResponse.md +3 -0
- package/docs/ReleaseListResponse.md +2 -0
- package/docs/ReleaseSort.md +33 -0
- package/docs/WikiApi.md +360 -0
- package/docs/WikiPageResponse.md +66 -0
- package/docs/WikiPageShortResponse.md +57 -0
- package/docs/WikiSiteResponse.md +48 -0
- package/package.json +2 -2
- package/src/apis/DeviceApi.ts +1 -1
- package/src/apis/PasteApi.ts +1 -1
- package/src/apis/ReleaseApi.ts +7 -4
- package/src/apis/ReportApi.ts +1 -1
- package/src/apis/StatsApi.ts +1 -1
- package/src/apis/UptimeApi.ts +1 -1
- package/src/apis/WikiApi.ts +452 -0
- package/src/apis/index.ts +1 -0
- package/src/models/DeviceResponse.ts +1 -1
- package/src/models/ErrorResponse.ts +1 -1
- package/src/models/GlobalStatsResponse.ts +1 -1
- package/src/models/ListResponseReleaseResponse.ts +15 -2
- package/src/models/ListResponseReleaseResponseDataInner.ts +1 -1
- package/src/models/ListResponseShortDeviceResponse.ts +15 -2
- package/src/models/ListResponseShortDeviceResponseDataInner.ts +1 -1
- package/src/models/ListResponseString.ts +15 -2
- package/src/models/ListResponseWikiPageShortResponse.ts +96 -0
- package/src/models/ListResponseWikiPageShortResponseDataInner.ts +163 -0
- package/src/models/ListResponseWikiSiteResponse.ts +96 -0
- package/src/models/ListResponseWikiSiteResponseDataInner.ts +126 -0
- package/src/models/MaintainerShortResponse.ts +1 -1
- package/src/models/NewReportRequest.ts +1 -1
- package/src/models/PasteInput.ts +1 -1
- package/src/models/PasteResponse.ts +1 -1
- package/src/models/RecoveryImgResponse.ts +1 -1
- package/src/models/ReleaseGroupsResponse.ts +18 -1
- package/src/models/ReleaseListResponse.ts +1 -1
- package/src/models/ReleaseResponse.ts +1 -1
- package/src/models/ReleaseSort.ts +59 -0
- package/src/models/ShortDeviceResponse.ts +1 -1
- package/src/models/ShortReleaseResponse.ts +1 -1
- package/src/models/TokenResponse.ts +1 -1
- package/src/models/UptimeHealth.ts +1 -1
- package/src/models/UptimeHealthHost.ts +1 -1
- package/src/models/UptimeMonitor.ts +1 -1
- package/src/models/UptimeMonitorGroup.ts +1 -1
- package/src/models/UptimeMonitors.ts +1 -1
- package/src/models/UptimeResponse.ts +1 -1
- package/src/models/WikiPageResponse.ts +205 -0
- package/src/models/WikiPageShortResponse.ts +163 -0
- package/src/models/WikiSiteResponse.ts +126 -0
- package/src/models/index.ts +8 -0
- package/src/runtime.ts +1 -1
- package/tsconfig.esm.json +2 -1
- package/tsconfig.json +4 -3
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Fox API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 6.
|
|
8
|
+
* The version of the OpenAPI document: 6.1.1
|
|
9
9
|
* Contact: admin@orangefox.tech
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Fox API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 6.
|
|
5
|
+
* The version of the OpenAPI document: 6.1.1
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -17,7 +17,7 @@ import type { ListResponseReleaseResponseDataInner } from './ListResponseRelease
|
|
|
17
17
|
*/
|
|
18
18
|
export interface ListResponseReleaseResponse {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Number of items in *this page*, not the size of the collection.
|
|
21
21
|
* @type {number}
|
|
22
22
|
* @memberof ListResponseReleaseResponse
|
|
23
23
|
*/
|
|
@@ -28,6 +28,16 @@ export interface ListResponseReleaseResponse {
|
|
|
28
28
|
* @memberof ListResponseReleaseResponse
|
|
29
29
|
*/
|
|
30
30
|
data: Array<ListResponseReleaseResponseDataInner>;
|
|
31
|
+
/**
|
|
32
|
+
* Whether further items exist beyond this page.
|
|
33
|
+
*
|
|
34
|
+
* List endpoints now apply a default page size, so `count` alone cannot
|
|
35
|
+
* tell a caller whether it has seen everything; without this a client
|
|
36
|
+
* would silently process a truncated result set.
|
|
37
|
+
* @type {boolean}
|
|
38
|
+
* @memberof ListResponseReleaseResponse
|
|
39
|
+
*/
|
|
40
|
+
hasMore: boolean;
|
|
31
41
|
}
|
|
32
42
|
/**
|
|
33
43
|
* Check if a given object implements the ListResponseReleaseResponse interface.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Fox API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 6.
|
|
8
|
+
* The version of the OpenAPI document: 6.1.1
|
|
9
9
|
* Contact: admin@orangefox.tech
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -27,6 +27,8 @@ function instanceOfListResponseReleaseResponse(value) {
|
|
|
27
27
|
return false;
|
|
28
28
|
if (!('data' in value) || value['data'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
+
if (!('hasMore' in value) || value['hasMore'] === undefined)
|
|
31
|
+
return false;
|
|
30
32
|
return true;
|
|
31
33
|
}
|
|
32
34
|
function ListResponseReleaseResponseFromJSON(json) {
|
|
@@ -39,6 +41,7 @@ function ListResponseReleaseResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
41
|
return {
|
|
40
42
|
'count': json['count'],
|
|
41
43
|
'data': (json['data'].map(ListResponseReleaseResponseDataInner_1.ListResponseReleaseResponseDataInnerFromJSON)),
|
|
44
|
+
'hasMore': json['has_more'],
|
|
42
45
|
};
|
|
43
46
|
}
|
|
44
47
|
function ListResponseReleaseResponseToJSON(json) {
|
|
@@ -51,5 +54,6 @@ function ListResponseReleaseResponseToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
51
54
|
return {
|
|
52
55
|
'count': value['count'],
|
|
53
56
|
'data': (value['data'].map(ListResponseReleaseResponseDataInner_1.ListResponseReleaseResponseDataInnerToJSON)),
|
|
57
|
+
'has_more': value['hasMore'],
|
|
54
58
|
};
|
|
55
59
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Fox API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 6.
|
|
5
|
+
* The version of the OpenAPI document: 6.1.1
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Fox API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 6.
|
|
8
|
+
* The version of the OpenAPI document: 6.1.1
|
|
9
9
|
* Contact: admin@orangefox.tech
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Fox API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 6.
|
|
5
|
+
* The version of the OpenAPI document: 6.1.1
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -17,7 +17,7 @@ import type { ListResponseShortDeviceResponseDataInner } from './ListResponseSho
|
|
|
17
17
|
*/
|
|
18
18
|
export interface ListResponseShortDeviceResponse {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Number of items in *this page*, not the size of the collection.
|
|
21
21
|
* @type {number}
|
|
22
22
|
* @memberof ListResponseShortDeviceResponse
|
|
23
23
|
*/
|
|
@@ -28,6 +28,16 @@ export interface ListResponseShortDeviceResponse {
|
|
|
28
28
|
* @memberof ListResponseShortDeviceResponse
|
|
29
29
|
*/
|
|
30
30
|
data: Array<ListResponseShortDeviceResponseDataInner>;
|
|
31
|
+
/**
|
|
32
|
+
* Whether further items exist beyond this page.
|
|
33
|
+
*
|
|
34
|
+
* List endpoints now apply a default page size, so `count` alone cannot
|
|
35
|
+
* tell a caller whether it has seen everything; without this a client
|
|
36
|
+
* would silently process a truncated result set.
|
|
37
|
+
* @type {boolean}
|
|
38
|
+
* @memberof ListResponseShortDeviceResponse
|
|
39
|
+
*/
|
|
40
|
+
hasMore: boolean;
|
|
31
41
|
}
|
|
32
42
|
/**
|
|
33
43
|
* Check if a given object implements the ListResponseShortDeviceResponse interface.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Fox API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 6.
|
|
8
|
+
* The version of the OpenAPI document: 6.1.1
|
|
9
9
|
* Contact: admin@orangefox.tech
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -27,6 +27,8 @@ function instanceOfListResponseShortDeviceResponse(value) {
|
|
|
27
27
|
return false;
|
|
28
28
|
if (!('data' in value) || value['data'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
+
if (!('hasMore' in value) || value['hasMore'] === undefined)
|
|
31
|
+
return false;
|
|
30
32
|
return true;
|
|
31
33
|
}
|
|
32
34
|
function ListResponseShortDeviceResponseFromJSON(json) {
|
|
@@ -39,6 +41,7 @@ function ListResponseShortDeviceResponseFromJSONTyped(json, ignoreDiscriminator)
|
|
|
39
41
|
return {
|
|
40
42
|
'count': json['count'],
|
|
41
43
|
'data': (json['data'].map(ListResponseShortDeviceResponseDataInner_1.ListResponseShortDeviceResponseDataInnerFromJSON)),
|
|
44
|
+
'hasMore': json['has_more'],
|
|
42
45
|
};
|
|
43
46
|
}
|
|
44
47
|
function ListResponseShortDeviceResponseToJSON(json) {
|
|
@@ -51,5 +54,6 @@ function ListResponseShortDeviceResponseToJSONTyped(value, ignoreDiscriminator =
|
|
|
51
54
|
return {
|
|
52
55
|
'count': value['count'],
|
|
53
56
|
'data': (value['data'].map(ListResponseShortDeviceResponseDataInner_1.ListResponseShortDeviceResponseDataInnerToJSON)),
|
|
57
|
+
'has_more': value['hasMore'],
|
|
54
58
|
};
|
|
55
59
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Fox API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 6.
|
|
5
|
+
* The version of the OpenAPI document: 6.1.1
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Fox API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 6.
|
|
8
|
+
* The version of the OpenAPI document: 6.1.1
|
|
9
9
|
* Contact: admin@orangefox.tech
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Fox API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 6.
|
|
5
|
+
* The version of the OpenAPI document: 6.1.1
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface ListResponseString {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Number of items in *this page*, not the size of the collection.
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof ListResponseString
|
|
22
22
|
*/
|
|
@@ -27,6 +27,16 @@ export interface ListResponseString {
|
|
|
27
27
|
* @memberof ListResponseString
|
|
28
28
|
*/
|
|
29
29
|
data: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Whether further items exist beyond this page.
|
|
32
|
+
*
|
|
33
|
+
* List endpoints now apply a default page size, so `count` alone cannot
|
|
34
|
+
* tell a caller whether it has seen everything; without this a client
|
|
35
|
+
* would silently process a truncated result set.
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof ListResponseString
|
|
38
|
+
*/
|
|
39
|
+
hasMore: boolean;
|
|
30
40
|
}
|
|
31
41
|
/**
|
|
32
42
|
* Check if a given object implements the ListResponseString interface.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Fox API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 6.
|
|
8
|
+
* The version of the OpenAPI document: 6.1.1
|
|
9
9
|
* Contact: admin@orangefox.tech
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,6 +26,8 @@ function instanceOfListResponseString(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('data' in value) || value['data'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('hasMore' in value) || value['hasMore'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
return true;
|
|
30
32
|
}
|
|
31
33
|
function ListResponseStringFromJSON(json) {
|
|
@@ -38,6 +40,7 @@ function ListResponseStringFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
40
|
return {
|
|
39
41
|
'count': json['count'],
|
|
40
42
|
'data': json['data'],
|
|
43
|
+
'hasMore': json['has_more'],
|
|
41
44
|
};
|
|
42
45
|
}
|
|
43
46
|
function ListResponseStringToJSON(json) {
|
|
@@ -50,5 +53,6 @@ function ListResponseStringToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
53
|
return {
|
|
51
54
|
'count': value['count'],
|
|
52
55
|
'data': value['data'],
|
|
56
|
+
'has_more': value['hasMore'],
|
|
53
57
|
};
|
|
54
58
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fox API
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 6.1.1
|
|
6
|
+
* Contact: admin@orangefox.tech
|
|
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 { ListResponseWikiPageShortResponseDataInner } from './ListResponseWikiPageShortResponseDataInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListResponseWikiPageShortResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ListResponseWikiPageShortResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Number of items in *this page*, not the size of the collection.
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof ListResponseWikiPageShortResponse
|
|
23
|
+
*/
|
|
24
|
+
count: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<ListResponseWikiPageShortResponseDataInner>}
|
|
28
|
+
* @memberof ListResponseWikiPageShortResponse
|
|
29
|
+
*/
|
|
30
|
+
data: Array<ListResponseWikiPageShortResponseDataInner>;
|
|
31
|
+
/**
|
|
32
|
+
* Whether further items exist beyond this page.
|
|
33
|
+
*
|
|
34
|
+
* List endpoints now apply a default page size, so `count` alone cannot
|
|
35
|
+
* tell a caller whether it has seen everything; without this a client
|
|
36
|
+
* would silently process a truncated result set.
|
|
37
|
+
* @type {boolean}
|
|
38
|
+
* @memberof ListResponseWikiPageShortResponse
|
|
39
|
+
*/
|
|
40
|
+
hasMore: boolean;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ListResponseWikiPageShortResponse interface.
|
|
44
|
+
*/
|
|
45
|
+
export declare function instanceOfListResponseWikiPageShortResponse(value: object): value is ListResponseWikiPageShortResponse;
|
|
46
|
+
export declare function ListResponseWikiPageShortResponseFromJSON(json: any): ListResponseWikiPageShortResponse;
|
|
47
|
+
export declare function ListResponseWikiPageShortResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListResponseWikiPageShortResponse;
|
|
48
|
+
export declare function ListResponseWikiPageShortResponseToJSON(json: any): ListResponseWikiPageShortResponse;
|
|
49
|
+
export declare function ListResponseWikiPageShortResponseToJSONTyped(value?: ListResponseWikiPageShortResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Fox API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 6.1.1
|
|
9
|
+
* Contact: admin@orangefox.tech
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfListResponseWikiPageShortResponse = instanceOfListResponseWikiPageShortResponse;
|
|
17
|
+
exports.ListResponseWikiPageShortResponseFromJSON = ListResponseWikiPageShortResponseFromJSON;
|
|
18
|
+
exports.ListResponseWikiPageShortResponseFromJSONTyped = ListResponseWikiPageShortResponseFromJSONTyped;
|
|
19
|
+
exports.ListResponseWikiPageShortResponseToJSON = ListResponseWikiPageShortResponseToJSON;
|
|
20
|
+
exports.ListResponseWikiPageShortResponseToJSONTyped = ListResponseWikiPageShortResponseToJSONTyped;
|
|
21
|
+
const ListResponseWikiPageShortResponseDataInner_1 = require("./ListResponseWikiPageShortResponseDataInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ListResponseWikiPageShortResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfListResponseWikiPageShortResponse(value) {
|
|
26
|
+
if (!('count' in value) || value['count'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('hasMore' in value) || value['hasMore'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function ListResponseWikiPageShortResponseFromJSON(json) {
|
|
35
|
+
return ListResponseWikiPageShortResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function ListResponseWikiPageShortResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'count': json['count'],
|
|
43
|
+
'data': (json['data'].map(ListResponseWikiPageShortResponseDataInner_1.ListResponseWikiPageShortResponseDataInnerFromJSON)),
|
|
44
|
+
'hasMore': json['has_more'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function ListResponseWikiPageShortResponseToJSON(json) {
|
|
48
|
+
return ListResponseWikiPageShortResponseToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function ListResponseWikiPageShortResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'count': value['count'],
|
|
56
|
+
'data': (value['data'].map(ListResponseWikiPageShortResponseDataInner_1.ListResponseWikiPageShortResponseDataInnerToJSON)),
|
|
57
|
+
'has_more': value['hasMore'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fox API
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 6.1.1
|
|
6
|
+
* Contact: admin@orangefox.tech
|
|
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
|
+
* A page without its body. FoxWiki fetches the whole set of these once and
|
|
14
|
+
* builds its navigation tree from them, so this must stay cheap.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListResponseWikiPageShortResponseDataInner
|
|
17
|
+
*/
|
|
18
|
+
export interface ListResponseWikiPageShortResponseDataInner {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ListResponseWikiPageShortResponseDataInner
|
|
23
|
+
*/
|
|
24
|
+
description?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Always `false` on public responses — drafts are filtered out by the query.
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof ListResponseWikiPageShortResponseDataInner
|
|
29
|
+
*/
|
|
30
|
+
draft: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Last path segment.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ListResponseWikiPageShortResponseDataInner
|
|
35
|
+
*/
|
|
36
|
+
fileName: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ListResponseWikiPageShortResponseDataInner
|
|
41
|
+
*/
|
|
42
|
+
icon?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ListResponseWikiPageShortResponseDataInner
|
|
47
|
+
*/
|
|
48
|
+
id: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ListResponseWikiPageShortResponseDataInner
|
|
53
|
+
*/
|
|
54
|
+
image?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ListResponseWikiPageShortResponseDataInner
|
|
59
|
+
*/
|
|
60
|
+
lastUpdated: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof ListResponseWikiPageShortResponseDataInner
|
|
65
|
+
*/
|
|
66
|
+
noindex: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Parent folder path, "" at the root.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof ListResponseWikiPageShortResponseDataInner
|
|
71
|
+
*/
|
|
72
|
+
parentPath: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof ListResponseWikiPageShortResponseDataInner
|
|
77
|
+
*/
|
|
78
|
+
path: string;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof ListResponseWikiPageShortResponseDataInner
|
|
83
|
+
*/
|
|
84
|
+
title: string;
|
|
85
|
+
/**
|
|
86
|
+
* "md" or "json". Named `type` to match FoxWiki's `WikiPageShort`.
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof ListResponseWikiPageShortResponseDataInner
|
|
89
|
+
*/
|
|
90
|
+
type: string;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Check if a given object implements the ListResponseWikiPageShortResponseDataInner interface.
|
|
94
|
+
*/
|
|
95
|
+
export declare function instanceOfListResponseWikiPageShortResponseDataInner(value: object): value is ListResponseWikiPageShortResponseDataInner;
|
|
96
|
+
export declare function ListResponseWikiPageShortResponseDataInnerFromJSON(json: any): ListResponseWikiPageShortResponseDataInner;
|
|
97
|
+
export declare function ListResponseWikiPageShortResponseDataInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListResponseWikiPageShortResponseDataInner;
|
|
98
|
+
export declare function ListResponseWikiPageShortResponseDataInnerToJSON(json: any): ListResponseWikiPageShortResponseDataInner;
|
|
99
|
+
export declare function ListResponseWikiPageShortResponseDataInnerToJSONTyped(value?: ListResponseWikiPageShortResponseDataInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Fox API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 6.1.1
|
|
9
|
+
* Contact: admin@orangefox.tech
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfListResponseWikiPageShortResponseDataInner = instanceOfListResponseWikiPageShortResponseDataInner;
|
|
17
|
+
exports.ListResponseWikiPageShortResponseDataInnerFromJSON = ListResponseWikiPageShortResponseDataInnerFromJSON;
|
|
18
|
+
exports.ListResponseWikiPageShortResponseDataInnerFromJSONTyped = ListResponseWikiPageShortResponseDataInnerFromJSONTyped;
|
|
19
|
+
exports.ListResponseWikiPageShortResponseDataInnerToJSON = ListResponseWikiPageShortResponseDataInnerToJSON;
|
|
20
|
+
exports.ListResponseWikiPageShortResponseDataInnerToJSONTyped = ListResponseWikiPageShortResponseDataInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ListResponseWikiPageShortResponseDataInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfListResponseWikiPageShortResponseDataInner(value) {
|
|
25
|
+
if (!('draft' in value) || value['draft'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('fileName' in value) || value['fileName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('lastUpdated' in value) || value['lastUpdated'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('noindex' in value) || value['noindex'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('parentPath' in value) || value['parentPath'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('path' in value) || value['path'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function ListResponseWikiPageShortResponseDataInnerFromJSON(json) {
|
|
46
|
+
return ListResponseWikiPageShortResponseDataInnerFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function ListResponseWikiPageShortResponseDataInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
54
|
+
'draft': json['draft'],
|
|
55
|
+
'fileName': json['file_name'],
|
|
56
|
+
'icon': json['icon'] == null ? undefined : json['icon'],
|
|
57
|
+
'id': json['id'],
|
|
58
|
+
'image': json['image'] == null ? undefined : json['image'],
|
|
59
|
+
'lastUpdated': json['last_updated'],
|
|
60
|
+
'noindex': json['noindex'],
|
|
61
|
+
'parentPath': json['parent_path'],
|
|
62
|
+
'path': json['path'],
|
|
63
|
+
'title': json['title'],
|
|
64
|
+
'type': json['type'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function ListResponseWikiPageShortResponseDataInnerToJSON(json) {
|
|
68
|
+
return ListResponseWikiPageShortResponseDataInnerToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function ListResponseWikiPageShortResponseDataInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'description': value['description'],
|
|
76
|
+
'draft': value['draft'],
|
|
77
|
+
'file_name': value['fileName'],
|
|
78
|
+
'icon': value['icon'],
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'image': value['image'],
|
|
81
|
+
'last_updated': value['lastUpdated'],
|
|
82
|
+
'noindex': value['noindex'],
|
|
83
|
+
'parent_path': value['parentPath'],
|
|
84
|
+
'path': value['path'],
|
|
85
|
+
'title': value['title'],
|
|
86
|
+
'type': value['type'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fox API
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 6.1.1
|
|
6
|
+
* Contact: admin@orangefox.tech
|
|
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 { ListResponseWikiSiteResponseDataInner } from './ListResponseWikiSiteResponseDataInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListResponseWikiSiteResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ListResponseWikiSiteResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Number of items in *this page*, not the size of the collection.
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof ListResponseWikiSiteResponse
|
|
23
|
+
*/
|
|
24
|
+
count: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<ListResponseWikiSiteResponseDataInner>}
|
|
28
|
+
* @memberof ListResponseWikiSiteResponse
|
|
29
|
+
*/
|
|
30
|
+
data: Array<ListResponseWikiSiteResponseDataInner>;
|
|
31
|
+
/**
|
|
32
|
+
* Whether further items exist beyond this page.
|
|
33
|
+
*
|
|
34
|
+
* List endpoints now apply a default page size, so `count` alone cannot
|
|
35
|
+
* tell a caller whether it has seen everything; without this a client
|
|
36
|
+
* would silently process a truncated result set.
|
|
37
|
+
* @type {boolean}
|
|
38
|
+
* @memberof ListResponseWikiSiteResponse
|
|
39
|
+
*/
|
|
40
|
+
hasMore: boolean;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ListResponseWikiSiteResponse interface.
|
|
44
|
+
*/
|
|
45
|
+
export declare function instanceOfListResponseWikiSiteResponse(value: object): value is ListResponseWikiSiteResponse;
|
|
46
|
+
export declare function ListResponseWikiSiteResponseFromJSON(json: any): ListResponseWikiSiteResponse;
|
|
47
|
+
export declare function ListResponseWikiSiteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListResponseWikiSiteResponse;
|
|
48
|
+
export declare function ListResponseWikiSiteResponseToJSON(json: any): ListResponseWikiSiteResponse;
|
|
49
|
+
export declare function ListResponseWikiSiteResponseToJSONTyped(value?: ListResponseWikiSiteResponse | null, ignoreDiscriminator?: boolean): any;
|