@orangefox-recovery/foxclient 6.0.9 → 6.1.0
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 +16 -0
- package/README.md +16 -4
- package/dist/apis/DeviceApi.d.ts +1 -1
- package/dist/apis/DeviceApi.js +1 -1
- package/dist/apis/PasteApi.d.ts +1 -1
- package/dist/apis/PasteApi.js +1 -1
- package/dist/apis/ReleaseApi.d.ts +5 -5
- package/dist/apis/ReleaseApi.js +3 -3
- package/dist/apis/ReportApi.d.ts +1 -1
- package/dist/apis/ReportApi.js +1 -1
- package/dist/apis/StatsApi.d.ts +1 -1
- package/dist/apis/StatsApi.js +1 -1
- package/dist/apis/UptimeApi.d.ts +1 -1
- package/dist/apis/UptimeApi.js +1 -1
- package/dist/apis/WikiApi.d.ts +219 -0
- package/dist/apis/WikiApi.js +245 -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 +3 -3
- 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 +1 -1
- package/dist/esm/models/ReleaseGroupsResponse.js +1 -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/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 +7 -0
- package/dist/esm/models/index.js +7 -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 +1 -1
- package/dist/models/ReleaseGroupsResponse.js +1 -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/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 +7 -0
- package/dist/models/index.js +7 -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 +2 -2
- package/docs/ReleaseListResponse.md +2 -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 +1 -1
- package/src/apis/DeviceApi.ts +1 -1
- package/src/apis/PasteApi.ts +1 -1
- package/src/apis/ReleaseApi.ts +5 -5
- 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 +1 -1
- package/src/models/ReleaseListResponse.ts +1 -1
- package/src/models/ReleaseResponse.ts +1 -1
- 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 +7 -0
- package/src/runtime.ts +1 -1
|
@@ -0,0 +1,241 @@
|
|
|
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: 6.1.0
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { ListResponseWikiPageShortResponseFromJSON, ListResponseWikiSiteResponseFromJSON, WikiPageResponseFromJSON, WikiSiteResponseFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class WikiApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Creates request options for getAsset without sending the request
|
|
31
|
+
*/
|
|
32
|
+
getAssetRequestOpts(requestParameters) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['site'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('site', 'Required parameter "site" was null or undefined when calling getAsset().');
|
|
36
|
+
}
|
|
37
|
+
if (requestParameters['path'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling getAsset().');
|
|
39
|
+
}
|
|
40
|
+
const queryParameters = {};
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
let urlPath = `/wiki/{site}/assets/{path}`;
|
|
43
|
+
urlPath = urlPath.replace(`{${"site"}}`, encodeURIComponent(String(requestParameters['site'])));
|
|
44
|
+
urlPath = urlPath.replace(`{${"path"}}`, encodeURIComponent(String(requestParameters['path'])));
|
|
45
|
+
return {
|
|
46
|
+
path: urlPath,
|
|
47
|
+
method: 'GET',
|
|
48
|
+
headers: headerParameters,
|
|
49
|
+
query: queryParameters,
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* GET /wiki/{site}/assets/{path} - Serve asset bytes.
|
|
55
|
+
*/
|
|
56
|
+
getAssetRaw(requestParameters, initOverrides) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
const requestOptions = yield this.getAssetRequestOpts(requestParameters);
|
|
59
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
60
|
+
return new runtime.VoidApiResponse(response);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* GET /wiki/{site}/assets/{path} - Serve asset bytes.
|
|
65
|
+
*/
|
|
66
|
+
getAsset(requestParameters, initOverrides) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
yield this.getAssetRaw(requestParameters, initOverrides);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Creates request options for getPage without sending the request
|
|
73
|
+
*/
|
|
74
|
+
getPageRequestOpts(requestParameters) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
if (requestParameters['site'] == null) {
|
|
77
|
+
throw new runtime.RequiredError('site', 'Required parameter "site" was null or undefined when calling getPage().');
|
|
78
|
+
}
|
|
79
|
+
if (requestParameters['path'] == null) {
|
|
80
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling getPage().');
|
|
81
|
+
}
|
|
82
|
+
const queryParameters = {};
|
|
83
|
+
const headerParameters = {};
|
|
84
|
+
let urlPath = `/wiki/{site}/pages/{path}`;
|
|
85
|
+
urlPath = urlPath.replace(`{${"site"}}`, encodeURIComponent(String(requestParameters['site'])));
|
|
86
|
+
urlPath = urlPath.replace(`{${"path"}}`, encodeURIComponent(String(requestParameters['path'])));
|
|
87
|
+
return {
|
|
88
|
+
path: urlPath,
|
|
89
|
+
method: 'GET',
|
|
90
|
+
headers: headerParameters,
|
|
91
|
+
query: queryParameters,
|
|
92
|
+
};
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* GET /wiki/{site}/pages/{path} - Fetch one published page.
|
|
97
|
+
*/
|
|
98
|
+
getPageRaw(requestParameters, initOverrides) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
const requestOptions = yield this.getPageRequestOpts(requestParameters);
|
|
101
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
102
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WikiPageResponseFromJSON(jsonValue));
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* GET /wiki/{site}/pages/{path} - Fetch one published page.
|
|
107
|
+
*/
|
|
108
|
+
getPage(requestParameters, initOverrides) {
|
|
109
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
+
const response = yield this.getPageRaw(requestParameters, initOverrides);
|
|
111
|
+
return yield response.value();
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Creates request options for getSite without sending the request
|
|
116
|
+
*/
|
|
117
|
+
getSiteRequestOpts(requestParameters) {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
+
if (requestParameters['slug'] == null) {
|
|
120
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getSite().');
|
|
121
|
+
}
|
|
122
|
+
const queryParameters = {};
|
|
123
|
+
const headerParameters = {};
|
|
124
|
+
let urlPath = `/wiki/sites/{slug}`;
|
|
125
|
+
urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
|
|
126
|
+
return {
|
|
127
|
+
path: urlPath,
|
|
128
|
+
method: 'GET',
|
|
129
|
+
headers: headerParameters,
|
|
130
|
+
query: queryParameters,
|
|
131
|
+
};
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* GET /wiki/sites/{slug} - Fetch one wiki site.
|
|
136
|
+
*/
|
|
137
|
+
getSiteRaw(requestParameters, initOverrides) {
|
|
138
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
+
const requestOptions = yield this.getSiteRequestOpts(requestParameters);
|
|
140
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
141
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WikiSiteResponseFromJSON(jsonValue));
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* GET /wiki/sites/{slug} - Fetch one wiki site.
|
|
146
|
+
*/
|
|
147
|
+
getSite(requestParameters, initOverrides) {
|
|
148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
const response = yield this.getSiteRaw(requestParameters, initOverrides);
|
|
150
|
+
return yield response.value();
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Creates request options for listPages without sending the request
|
|
155
|
+
*/
|
|
156
|
+
listPagesRequestOpts(requestParameters) {
|
|
157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
+
if (requestParameters['site'] == null) {
|
|
159
|
+
throw new runtime.RequiredError('site', 'Required parameter "site" was null or undefined when calling listPages().');
|
|
160
|
+
}
|
|
161
|
+
const queryParameters = {};
|
|
162
|
+
if (requestParameters['skip'] != null) {
|
|
163
|
+
queryParameters['skip'] = requestParameters['skip'];
|
|
164
|
+
}
|
|
165
|
+
if (requestParameters['limit'] != null) {
|
|
166
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
167
|
+
}
|
|
168
|
+
const headerParameters = {};
|
|
169
|
+
let urlPath = `/wiki/{site}/pages`;
|
|
170
|
+
urlPath = urlPath.replace(`{${"site"}}`, encodeURIComponent(String(requestParameters['site'])));
|
|
171
|
+
return {
|
|
172
|
+
path: urlPath,
|
|
173
|
+
method: 'GET',
|
|
174
|
+
headers: headerParameters,
|
|
175
|
+
query: queryParameters,
|
|
176
|
+
};
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* FoxWiki builds its whole navigation tree from one call to this, so it returns the complete flat set (paged at the standard 1000 ceiling) rather than one folder\'s children.
|
|
181
|
+
* GET /wiki/{site}/pages - List every published page in a site.
|
|
182
|
+
*/
|
|
183
|
+
listPagesRaw(requestParameters, initOverrides) {
|
|
184
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
185
|
+
const requestOptions = yield this.listPagesRequestOpts(requestParameters);
|
|
186
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
187
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListResponseWikiPageShortResponseFromJSON(jsonValue));
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* FoxWiki builds its whole navigation tree from one call to this, so it returns the complete flat set (paged at the standard 1000 ceiling) rather than one folder\'s children.
|
|
192
|
+
* GET /wiki/{site}/pages - List every published page in a site.
|
|
193
|
+
*/
|
|
194
|
+
listPages(requestParameters, initOverrides) {
|
|
195
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
196
|
+
const response = yield this.listPagesRaw(requestParameters, initOverrides);
|
|
197
|
+
return yield response.value();
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Creates request options for listSites without sending the request
|
|
202
|
+
*/
|
|
203
|
+
listSitesRequestOpts(requestParameters) {
|
|
204
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
205
|
+
const queryParameters = {};
|
|
206
|
+
if (requestParameters['skip'] != null) {
|
|
207
|
+
queryParameters['skip'] = requestParameters['skip'];
|
|
208
|
+
}
|
|
209
|
+
if (requestParameters['limit'] != null) {
|
|
210
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
211
|
+
}
|
|
212
|
+
const headerParameters = {};
|
|
213
|
+
let urlPath = `/wiki/sites`;
|
|
214
|
+
return {
|
|
215
|
+
path: urlPath,
|
|
216
|
+
method: 'GET',
|
|
217
|
+
headers: headerParameters,
|
|
218
|
+
query: queryParameters,
|
|
219
|
+
};
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* GET /wiki/sites - List wiki sites.
|
|
224
|
+
*/
|
|
225
|
+
listSitesRaw(requestParameters, initOverrides) {
|
|
226
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
227
|
+
const requestOptions = yield this.listSitesRequestOpts(requestParameters);
|
|
228
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
229
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListResponseWikiSiteResponseFromJSON(jsonValue));
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* GET /wiki/sites - List wiki sites.
|
|
234
|
+
*/
|
|
235
|
+
listSites() {
|
|
236
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
237
|
+
const response = yield this.listSitesRaw(requestParameters, initOverrides);
|
|
238
|
+
return yield response.value();
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
}
|
package/dist/esm/apis/index.d.ts
CHANGED
package/dist/esm/apis/index.js
CHANGED
|
@@ -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.0
|
|
5
|
+
* The version of the OpenAPI document: 6.1.0
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 6.0
|
|
7
|
+
* The version of the OpenAPI document: 6.1.0
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* 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.0
|
|
5
|
+
* The version of the OpenAPI document: 6.1.0
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 6.0
|
|
7
|
+
* The version of the OpenAPI document: 6.1.0
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* 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.0
|
|
5
|
+
* The version of the OpenAPI document: 6.1.0
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 6.0
|
|
7
|
+
* The version of the OpenAPI document: 6.1.0
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* 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.0
|
|
5
|
+
* The version of the OpenAPI document: 6.1.0
|
|
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.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 6.0
|
|
7
|
+
* The version of the OpenAPI document: 6.1.0
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -20,6 +20,8 @@ export function instanceOfListResponseReleaseResponse(value) {
|
|
|
20
20
|
return false;
|
|
21
21
|
if (!('data' in value) || value['data'] === undefined)
|
|
22
22
|
return false;
|
|
23
|
+
if (!('hasMore' in value) || value['hasMore'] === undefined)
|
|
24
|
+
return false;
|
|
23
25
|
return true;
|
|
24
26
|
}
|
|
25
27
|
export function ListResponseReleaseResponseFromJSON(json) {
|
|
@@ -32,6 +34,7 @@ export function ListResponseReleaseResponseFromJSONTyped(json, ignoreDiscriminat
|
|
|
32
34
|
return {
|
|
33
35
|
'count': json['count'],
|
|
34
36
|
'data': (json['data'].map(ListResponseReleaseResponseDataInnerFromJSON)),
|
|
37
|
+
'hasMore': json['has_more'],
|
|
35
38
|
};
|
|
36
39
|
}
|
|
37
40
|
export function ListResponseReleaseResponseToJSON(json) {
|
|
@@ -44,5 +47,6 @@ export function ListResponseReleaseResponseToJSONTyped(value, ignoreDiscriminato
|
|
|
44
47
|
return {
|
|
45
48
|
'count': value['count'],
|
|
46
49
|
'data': (value['data'].map(ListResponseReleaseResponseDataInnerToJSON)),
|
|
50
|
+
'has_more': value['hasMore'],
|
|
47
51
|
};
|
|
48
52
|
}
|
|
@@ -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.0
|
|
5
|
+
* The version of the OpenAPI document: 6.1.0
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 6.0
|
|
7
|
+
* The version of the OpenAPI document: 6.1.0
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* 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.0
|
|
5
|
+
* The version of the OpenAPI document: 6.1.0
|
|
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.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 6.0
|
|
7
|
+
* The version of the OpenAPI document: 6.1.0
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -20,6 +20,8 @@ export function instanceOfListResponseShortDeviceResponse(value) {
|
|
|
20
20
|
return false;
|
|
21
21
|
if (!('data' in value) || value['data'] === undefined)
|
|
22
22
|
return false;
|
|
23
|
+
if (!('hasMore' in value) || value['hasMore'] === undefined)
|
|
24
|
+
return false;
|
|
23
25
|
return true;
|
|
24
26
|
}
|
|
25
27
|
export function ListResponseShortDeviceResponseFromJSON(json) {
|
|
@@ -32,6 +34,7 @@ export function ListResponseShortDeviceResponseFromJSONTyped(json, ignoreDiscrim
|
|
|
32
34
|
return {
|
|
33
35
|
'count': json['count'],
|
|
34
36
|
'data': (json['data'].map(ListResponseShortDeviceResponseDataInnerFromJSON)),
|
|
37
|
+
'hasMore': json['has_more'],
|
|
35
38
|
};
|
|
36
39
|
}
|
|
37
40
|
export function ListResponseShortDeviceResponseToJSON(json) {
|
|
@@ -44,5 +47,6 @@ export function ListResponseShortDeviceResponseToJSONTyped(value, ignoreDiscrimi
|
|
|
44
47
|
return {
|
|
45
48
|
'count': value['count'],
|
|
46
49
|
'data': (value['data'].map(ListResponseShortDeviceResponseDataInnerToJSON)),
|
|
50
|
+
'has_more': value['hasMore'],
|
|
47
51
|
};
|
|
48
52
|
}
|
|
@@ -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.0
|
|
5
|
+
* The version of the OpenAPI document: 6.1.0
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 6.0
|
|
7
|
+
* The version of the OpenAPI document: 6.1.0
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* 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.0
|
|
5
|
+
* The version of the OpenAPI document: 6.1.0
|
|
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.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 6.0
|
|
7
|
+
* The version of the OpenAPI document: 6.1.0
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -19,6 +19,8 @@ export function instanceOfListResponseString(value) {
|
|
|
19
19
|
return false;
|
|
20
20
|
if (!('data' in value) || value['data'] === undefined)
|
|
21
21
|
return false;
|
|
22
|
+
if (!('hasMore' in value) || value['hasMore'] === undefined)
|
|
23
|
+
return false;
|
|
22
24
|
return true;
|
|
23
25
|
}
|
|
24
26
|
export function ListResponseStringFromJSON(json) {
|
|
@@ -31,6 +33,7 @@ export function ListResponseStringFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
33
|
return {
|
|
32
34
|
'count': json['count'],
|
|
33
35
|
'data': json['data'],
|
|
36
|
+
'hasMore': json['has_more'],
|
|
34
37
|
};
|
|
35
38
|
}
|
|
36
39
|
export function ListResponseStringToJSON(json) {
|
|
@@ -43,5 +46,6 @@ export function ListResponseStringToJSONTyped(value, ignoreDiscriminator = false
|
|
|
43
46
|
return {
|
|
44
47
|
'count': value['count'],
|
|
45
48
|
'data': value['data'],
|
|
49
|
+
'has_more': value['hasMore'],
|
|
46
50
|
};
|
|
47
51
|
}
|
|
@@ -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.0
|
|
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;
|