@djvlc/openapi-user-client 1.2.0 → 1.3.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/dist/index.d.mts +2501 -106
- package/dist/index.d.ts +2501 -106
- package/dist/index.js +2296 -220
- package/dist/index.mjs +2113 -219
- package/package.json +11 -18
package/dist/index.js
CHANGED
|
@@ -20,286 +20,2362 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
-
|
|
23
|
+
ActionApi: () => ActionApi,
|
|
24
|
+
ActionContextFromJSON: () => ActionContextFromJSON,
|
|
25
|
+
ActionContextFromJSONTyped: () => ActionContextFromJSONTyped,
|
|
26
|
+
ActionContextToJSON: () => ActionContextToJSON,
|
|
27
|
+
ActionContextToJSONTyped: () => ActionContextToJSONTyped,
|
|
28
|
+
ActionExecuteRequestFromJSON: () => ActionExecuteRequestFromJSON,
|
|
29
|
+
ActionExecuteRequestFromJSONTyped: () => ActionExecuteRequestFromJSONTyped,
|
|
30
|
+
ActionExecuteRequestToJSON: () => ActionExecuteRequestToJSON,
|
|
31
|
+
ActionExecuteRequestToJSONTyped: () => ActionExecuteRequestToJSONTyped,
|
|
32
|
+
ActionExecuteResponseFromJSON: () => ActionExecuteResponseFromJSON,
|
|
33
|
+
ActionExecuteResponseFromJSONTyped: () => ActionExecuteResponseFromJSONTyped,
|
|
34
|
+
ActionExecuteResponseToJSON: () => ActionExecuteResponseToJSON,
|
|
35
|
+
ActionExecuteResponseToJSONTyped: () => ActionExecuteResponseToJSONTyped,
|
|
36
|
+
ActivityApi: () => ActivityApi,
|
|
37
|
+
ActivityStateActivityInfoFromJSON: () => ActivityStateActivityInfoFromJSON,
|
|
38
|
+
ActivityStateActivityInfoFromJSONTyped: () => ActivityStateActivityInfoFromJSONTyped,
|
|
39
|
+
ActivityStateActivityInfoToJSON: () => ActivityStateActivityInfoToJSON,
|
|
40
|
+
ActivityStateActivityInfoToJSONTyped: () => ActivityStateActivityInfoToJSONTyped,
|
|
41
|
+
ActivityStateFromJSON: () => ActivityStateFromJSON,
|
|
42
|
+
ActivityStateFromJSONTyped: () => ActivityStateFromJSONTyped,
|
|
43
|
+
ActivityStateResponseFromJSON: () => ActivityStateResponseFromJSON,
|
|
44
|
+
ActivityStateResponseFromJSONTyped: () => ActivityStateResponseFromJSONTyped,
|
|
45
|
+
ActivityStateResponseToJSON: () => ActivityStateResponseToJSON,
|
|
46
|
+
ActivityStateResponseToJSONTyped: () => ActivityStateResponseToJSONTyped,
|
|
47
|
+
ActivityStateStatusEnum: () => ActivityStateStatusEnum,
|
|
48
|
+
ActivityStateToJSON: () => ActivityStateToJSON,
|
|
49
|
+
ActivityStateToJSONTyped: () => ActivityStateToJSONTyped,
|
|
50
|
+
BaseResponseVoFromJSON: () => BaseResponseVoFromJSON,
|
|
51
|
+
BaseResponseVoFromJSONTyped: () => BaseResponseVoFromJSONTyped,
|
|
52
|
+
BaseResponseVoToJSON: () => BaseResponseVoToJSON,
|
|
53
|
+
BaseResponseVoToJSONTyped: () => BaseResponseVoToJSONTyped,
|
|
54
|
+
BlockedComponentFromJSON: () => BlockedComponentFromJSON,
|
|
55
|
+
BlockedComponentFromJSONTyped: () => BlockedComponentFromJSONTyped,
|
|
56
|
+
BlockedComponentToJSON: () => BlockedComponentToJSON,
|
|
57
|
+
BlockedComponentToJSONTyped: () => BlockedComponentToJSONTyped,
|
|
58
|
+
Configuration: () => Configuration,
|
|
59
|
+
DataApi: () => DataApi,
|
|
60
|
+
DataQueryContextFromJSON: () => DataQueryContextFromJSON,
|
|
61
|
+
DataQueryContextFromJSONTyped: () => DataQueryContextFromJSONTyped,
|
|
62
|
+
DataQueryContextToJSON: () => DataQueryContextToJSON,
|
|
63
|
+
DataQueryContextToJSONTyped: () => DataQueryContextToJSONTyped,
|
|
64
|
+
DataQueryRequestFromJSON: () => DataQueryRequestFromJSON,
|
|
65
|
+
DataQueryRequestFromJSONTyped: () => DataQueryRequestFromJSONTyped,
|
|
66
|
+
DataQueryRequestToJSON: () => DataQueryRequestToJSON,
|
|
67
|
+
DataQueryRequestToJSONTyped: () => DataQueryRequestToJSONTyped,
|
|
68
|
+
DataQueryResponseFromJSON: () => DataQueryResponseFromJSON,
|
|
69
|
+
DataQueryResponseFromJSONTyped: () => DataQueryResponseFromJSONTyped,
|
|
70
|
+
DataQueryResponseToJSON: () => DataQueryResponseToJSON,
|
|
71
|
+
DataQueryResponseToJSONTyped: () => DataQueryResponseToJSONTyped,
|
|
72
|
+
ErrorDetailFromJSON: () => ErrorDetailFromJSON,
|
|
73
|
+
ErrorDetailFromJSONTyped: () => ErrorDetailFromJSONTyped,
|
|
74
|
+
ErrorDetailToJSON: () => ErrorDetailToJSON,
|
|
75
|
+
ErrorDetailToJSONTyped: () => ErrorDetailToJSONTyped,
|
|
76
|
+
ErrorResponseVoFromJSON: () => ErrorResponseVoFromJSON,
|
|
77
|
+
ErrorResponseVoFromJSONTyped: () => ErrorResponseVoFromJSONTyped,
|
|
78
|
+
ErrorResponseVoToJSON: () => ErrorResponseVoToJSON,
|
|
79
|
+
ErrorResponseVoToJSONTyped: () => ErrorResponseVoToJSONTyped,
|
|
80
|
+
ExecuteActionBatch200ResponseFromJSON: () => ExecuteActionBatch200ResponseFromJSON,
|
|
81
|
+
ExecuteActionBatch200ResponseFromJSONTyped: () => ExecuteActionBatch200ResponseFromJSONTyped,
|
|
82
|
+
ExecuteActionBatch200ResponseToJSON: () => ExecuteActionBatch200ResponseToJSON,
|
|
83
|
+
ExecuteActionBatch200ResponseToJSONTyped: () => ExecuteActionBatch200ResponseToJSONTyped,
|
|
84
|
+
ExecuteActionBatchRequestFromJSON: () => ExecuteActionBatchRequestFromJSON,
|
|
85
|
+
ExecuteActionBatchRequestFromJSONTyped: () => ExecuteActionBatchRequestFromJSONTyped,
|
|
86
|
+
ExecuteActionBatchRequestToJSON: () => ExecuteActionBatchRequestToJSON,
|
|
87
|
+
ExecuteActionBatchRequestToJSONTyped: () => ExecuteActionBatchRequestToJSONTyped,
|
|
88
|
+
GetActivityStateBatch200ResponseFromJSON: () => GetActivityStateBatch200ResponseFromJSON,
|
|
89
|
+
GetActivityStateBatch200ResponseFromJSONTyped: () => GetActivityStateBatch200ResponseFromJSONTyped,
|
|
90
|
+
GetActivityStateBatch200ResponseToJSON: () => GetActivityStateBatch200ResponseToJSON,
|
|
91
|
+
GetActivityStateBatch200ResponseToJSONTyped: () => GetActivityStateBatch200ResponseToJSONTyped,
|
|
92
|
+
GetActivityStateBatchRequestFromJSON: () => GetActivityStateBatchRequestFromJSON,
|
|
93
|
+
GetActivityStateBatchRequestFromJSONTyped: () => GetActivityStateBatchRequestFromJSONTyped,
|
|
94
|
+
GetActivityStateBatchRequestToJSON: () => GetActivityStateBatchRequestToJSON,
|
|
95
|
+
GetActivityStateBatchRequestToJSONTyped: () => GetActivityStateBatchRequestToJSONTyped,
|
|
96
|
+
HealthApi: () => HealthApi,
|
|
97
|
+
HealthResponseChecksValueFromJSON: () => HealthResponseChecksValueFromJSON,
|
|
98
|
+
HealthResponseChecksValueFromJSONTyped: () => HealthResponseChecksValueFromJSONTyped,
|
|
99
|
+
HealthResponseChecksValueToJSON: () => HealthResponseChecksValueToJSON,
|
|
100
|
+
HealthResponseChecksValueToJSONTyped: () => HealthResponseChecksValueToJSONTyped,
|
|
101
|
+
HealthResponseFromJSON: () => HealthResponseFromJSON,
|
|
102
|
+
HealthResponseFromJSONTyped: () => HealthResponseFromJSONTyped,
|
|
103
|
+
HealthResponseStatusEnum: () => HealthResponseStatusEnum,
|
|
104
|
+
HealthResponseToJSON: () => HealthResponseToJSON,
|
|
105
|
+
HealthResponseToJSONTyped: () => HealthResponseToJSONTyped,
|
|
106
|
+
ManifestItemFromJSON: () => ManifestItemFromJSON,
|
|
107
|
+
ManifestItemFromJSONTyped: () => ManifestItemFromJSONTyped,
|
|
108
|
+
ManifestItemToJSON: () => ManifestItemToJSON,
|
|
109
|
+
ManifestItemToJSONTyped: () => ManifestItemToJSONTyped,
|
|
110
|
+
PageApi: () => PageApi,
|
|
111
|
+
PageManifestFromJSON: () => PageManifestFromJSON,
|
|
112
|
+
PageManifestFromJSONTyped: () => PageManifestFromJSONTyped,
|
|
113
|
+
PageManifestToJSON: () => PageManifestToJSON,
|
|
114
|
+
PageManifestToJSONTyped: () => PageManifestToJSONTyped,
|
|
115
|
+
PageResolveResponseFromJSON: () => PageResolveResponseFromJSON,
|
|
116
|
+
PageResolveResponseFromJSONTyped: () => PageResolveResponseFromJSONTyped,
|
|
117
|
+
PageResolveResponseToJSON: () => PageResolveResponseToJSON,
|
|
118
|
+
PageResolveResponseToJSONTyped: () => PageResolveResponseToJSONTyped,
|
|
119
|
+
PageResolveResultFromJSON: () => PageResolveResultFromJSON,
|
|
120
|
+
PageResolveResultFromJSONTyped: () => PageResolveResultFromJSONTyped,
|
|
121
|
+
PageResolveResultToJSON: () => PageResolveResultToJSON,
|
|
122
|
+
PageResolveResultToJSONTyped: () => PageResolveResultToJSONTyped,
|
|
123
|
+
QueryDataBatch200ResponseFromJSON: () => QueryDataBatch200ResponseFromJSON,
|
|
124
|
+
QueryDataBatch200ResponseFromJSONTyped: () => QueryDataBatch200ResponseFromJSONTyped,
|
|
125
|
+
QueryDataBatch200ResponseToJSON: () => QueryDataBatch200ResponseToJSON,
|
|
126
|
+
QueryDataBatch200ResponseToJSONTyped: () => QueryDataBatch200ResponseToJSONTyped,
|
|
127
|
+
QueryDataBatchRequestFromJSON: () => QueryDataBatchRequestFromJSON,
|
|
128
|
+
QueryDataBatchRequestFromJSONTyped: () => QueryDataBatchRequestFromJSONTyped,
|
|
129
|
+
QueryDataBatchRequestToJSON: () => QueryDataBatchRequestToJSON,
|
|
130
|
+
QueryDataBatchRequestToJSONTyped: () => QueryDataBatchRequestToJSONTyped,
|
|
131
|
+
ResolvePageBatch200ResponseFromJSON: () => ResolvePageBatch200ResponseFromJSON,
|
|
132
|
+
ResolvePageBatch200ResponseFromJSONTyped: () => ResolvePageBatch200ResponseFromJSONTyped,
|
|
133
|
+
ResolvePageBatch200ResponseToJSON: () => ResolvePageBatch200ResponseToJSON,
|
|
134
|
+
ResolvePageBatch200ResponseToJSONTyped: () => ResolvePageBatch200ResponseToJSONTyped,
|
|
135
|
+
ResolvePageBatchRequestChannelEnum: () => ResolvePageBatchRequestChannelEnum,
|
|
136
|
+
ResolvePageBatchRequestFromJSON: () => ResolvePageBatchRequestFromJSON,
|
|
137
|
+
ResolvePageBatchRequestFromJSONTyped: () => ResolvePageBatchRequestFromJSONTyped,
|
|
138
|
+
ResolvePageBatchRequestToJSON: () => ResolvePageBatchRequestToJSON,
|
|
139
|
+
ResolvePageBatchRequestToJSONTyped: () => ResolvePageBatchRequestToJSONTyped,
|
|
140
|
+
ResolvePageChannelEnum: () => ResolvePageChannelEnum,
|
|
141
|
+
RuntimeConfigFromJSON: () => RuntimeConfigFromJSON,
|
|
142
|
+
RuntimeConfigFromJSONTyped: () => RuntimeConfigFromJSONTyped,
|
|
143
|
+
RuntimeConfigReportConfigFromJSON: () => RuntimeConfigReportConfigFromJSON,
|
|
144
|
+
RuntimeConfigReportConfigFromJSONTyped: () => RuntimeConfigReportConfigFromJSONTyped,
|
|
145
|
+
RuntimeConfigReportConfigToJSON: () => RuntimeConfigReportConfigToJSON,
|
|
146
|
+
RuntimeConfigReportConfigToJSONTyped: () => RuntimeConfigReportConfigToJSONTyped,
|
|
147
|
+
RuntimeConfigToJSON: () => RuntimeConfigToJSON,
|
|
148
|
+
RuntimeConfigToJSONTyped: () => RuntimeConfigToJSONTyped,
|
|
149
|
+
TraceContextFromJSON: () => TraceContextFromJSON,
|
|
150
|
+
TraceContextFromJSONTyped: () => TraceContextFromJSONTyped,
|
|
151
|
+
TraceContextToJSON: () => TraceContextToJSON,
|
|
152
|
+
TraceContextToJSONTyped: () => TraceContextToJSONTyped,
|
|
153
|
+
TrackApi: () => TrackApi,
|
|
154
|
+
TrackContextFromJSON: () => TrackContextFromJSON,
|
|
155
|
+
TrackContextFromJSONTyped: () => TrackContextFromJSONTyped,
|
|
156
|
+
TrackContextToJSON: () => TrackContextToJSON,
|
|
157
|
+
TrackContextToJSONTyped: () => TrackContextToJSONTyped,
|
|
158
|
+
TrackEventEventTypeEnum: () => TrackEventEventTypeEnum,
|
|
159
|
+
TrackEventFromJSON: () => TrackEventFromJSON,
|
|
160
|
+
TrackEventFromJSONTyped: () => TrackEventFromJSONTyped,
|
|
161
|
+
TrackEventToJSON: () => TrackEventToJSON,
|
|
162
|
+
TrackEventToJSONTyped: () => TrackEventToJSONTyped,
|
|
163
|
+
TrackRequestFromJSON: () => TrackRequestFromJSON,
|
|
164
|
+
TrackRequestFromJSONTyped: () => TrackRequestFromJSONTyped,
|
|
165
|
+
TrackRequestToJSON: () => TrackRequestToJSON,
|
|
166
|
+
TrackRequestToJSONTyped: () => TrackRequestToJSONTyped,
|
|
167
|
+
UserActivityStateFromJSON: () => UserActivityStateFromJSON,
|
|
168
|
+
UserActivityStateFromJSONTyped: () => UserActivityStateFromJSONTyped,
|
|
169
|
+
UserActivityStateProgressFromJSON: () => UserActivityStateProgressFromJSON,
|
|
170
|
+
UserActivityStateProgressFromJSONTyped: () => UserActivityStateProgressFromJSONTyped,
|
|
171
|
+
UserActivityStateProgressToJSON: () => UserActivityStateProgressToJSON,
|
|
172
|
+
UserActivityStateProgressToJSONTyped: () => UserActivityStateProgressToJSONTyped,
|
|
173
|
+
UserActivityStateToJSON: () => UserActivityStateToJSON,
|
|
174
|
+
UserActivityStateToJSONTyped: () => UserActivityStateToJSONTyped,
|
|
24
175
|
createUserClient: () => createUserClient,
|
|
25
|
-
|
|
176
|
+
instanceOfActionContext: () => instanceOfActionContext,
|
|
177
|
+
instanceOfActionExecuteRequest: () => instanceOfActionExecuteRequest,
|
|
178
|
+
instanceOfActionExecuteResponse: () => instanceOfActionExecuteResponse,
|
|
179
|
+
instanceOfActivityState: () => instanceOfActivityState,
|
|
180
|
+
instanceOfActivityStateActivityInfo: () => instanceOfActivityStateActivityInfo,
|
|
181
|
+
instanceOfActivityStateResponse: () => instanceOfActivityStateResponse,
|
|
182
|
+
instanceOfBaseResponseVo: () => instanceOfBaseResponseVo,
|
|
183
|
+
instanceOfBlockedComponent: () => instanceOfBlockedComponent,
|
|
184
|
+
instanceOfDataQueryContext: () => instanceOfDataQueryContext,
|
|
185
|
+
instanceOfDataQueryRequest: () => instanceOfDataQueryRequest,
|
|
186
|
+
instanceOfDataQueryResponse: () => instanceOfDataQueryResponse,
|
|
187
|
+
instanceOfErrorDetail: () => instanceOfErrorDetail,
|
|
188
|
+
instanceOfErrorResponseVo: () => instanceOfErrorResponseVo,
|
|
189
|
+
instanceOfExecuteActionBatch200Response: () => instanceOfExecuteActionBatch200Response,
|
|
190
|
+
instanceOfExecuteActionBatchRequest: () => instanceOfExecuteActionBatchRequest,
|
|
191
|
+
instanceOfGetActivityStateBatch200Response: () => instanceOfGetActivityStateBatch200Response,
|
|
192
|
+
instanceOfGetActivityStateBatchRequest: () => instanceOfGetActivityStateBatchRequest,
|
|
193
|
+
instanceOfHealthResponse: () => instanceOfHealthResponse,
|
|
194
|
+
instanceOfHealthResponseChecksValue: () => instanceOfHealthResponseChecksValue,
|
|
195
|
+
instanceOfManifestItem: () => instanceOfManifestItem,
|
|
196
|
+
instanceOfPageManifest: () => instanceOfPageManifest,
|
|
197
|
+
instanceOfPageResolveResponse: () => instanceOfPageResolveResponse,
|
|
198
|
+
instanceOfPageResolveResult: () => instanceOfPageResolveResult,
|
|
199
|
+
instanceOfQueryDataBatch200Response: () => instanceOfQueryDataBatch200Response,
|
|
200
|
+
instanceOfQueryDataBatchRequest: () => instanceOfQueryDataBatchRequest,
|
|
201
|
+
instanceOfResolvePageBatch200Response: () => instanceOfResolvePageBatch200Response,
|
|
202
|
+
instanceOfResolvePageBatchRequest: () => instanceOfResolvePageBatchRequest,
|
|
203
|
+
instanceOfRuntimeConfig: () => instanceOfRuntimeConfig,
|
|
204
|
+
instanceOfRuntimeConfigReportConfig: () => instanceOfRuntimeConfigReportConfig,
|
|
205
|
+
instanceOfTraceContext: () => instanceOfTraceContext,
|
|
206
|
+
instanceOfTrackContext: () => instanceOfTrackContext,
|
|
207
|
+
instanceOfTrackEvent: () => instanceOfTrackEvent,
|
|
208
|
+
instanceOfTrackRequest: () => instanceOfTrackRequest,
|
|
209
|
+
instanceOfUserActivityState: () => instanceOfUserActivityState,
|
|
210
|
+
instanceOfUserActivityStateProgress: () => instanceOfUserActivityStateProgress
|
|
26
211
|
});
|
|
27
212
|
module.exports = __toCommonJS(index_exports);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
213
|
+
|
|
214
|
+
// src/gen/runtime.ts
|
|
215
|
+
var BASE_PATH = "https://api.djvlc.com".replace(/\/+$/, "");
|
|
216
|
+
var Configuration = class {
|
|
217
|
+
constructor(configuration = {}) {
|
|
218
|
+
this.configuration = configuration;
|
|
219
|
+
}
|
|
220
|
+
set config(configuration) {
|
|
221
|
+
this.configuration = configuration;
|
|
222
|
+
}
|
|
223
|
+
get basePath() {
|
|
224
|
+
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
|
|
225
|
+
}
|
|
226
|
+
get fetchApi() {
|
|
227
|
+
return this.configuration.fetchApi;
|
|
228
|
+
}
|
|
229
|
+
get middleware() {
|
|
230
|
+
return this.configuration.middleware || [];
|
|
231
|
+
}
|
|
232
|
+
get queryParamsStringify() {
|
|
233
|
+
return this.configuration.queryParamsStringify || querystring;
|
|
234
|
+
}
|
|
235
|
+
get username() {
|
|
236
|
+
return this.configuration.username;
|
|
237
|
+
}
|
|
238
|
+
get password() {
|
|
239
|
+
return this.configuration.password;
|
|
240
|
+
}
|
|
241
|
+
get apiKey() {
|
|
242
|
+
const apiKey = this.configuration.apiKey;
|
|
243
|
+
if (apiKey) {
|
|
244
|
+
return typeof apiKey === "function" ? apiKey : () => apiKey;
|
|
245
|
+
}
|
|
246
|
+
return void 0;
|
|
247
|
+
}
|
|
248
|
+
get accessToken() {
|
|
249
|
+
const accessToken = this.configuration.accessToken;
|
|
250
|
+
if (accessToken) {
|
|
251
|
+
return typeof accessToken === "function" ? accessToken : async () => accessToken;
|
|
252
|
+
}
|
|
253
|
+
return void 0;
|
|
254
|
+
}
|
|
255
|
+
get headers() {
|
|
256
|
+
return this.configuration.headers;
|
|
257
|
+
}
|
|
258
|
+
get credentials() {
|
|
259
|
+
return this.configuration.credentials;
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
var DefaultConfig = new Configuration();
|
|
263
|
+
var _BaseAPI = class _BaseAPI {
|
|
264
|
+
constructor(configuration = DefaultConfig) {
|
|
265
|
+
this.configuration = configuration;
|
|
266
|
+
this.fetchApi = async (url, init) => {
|
|
267
|
+
let fetchParams = { url, init };
|
|
268
|
+
for (const middleware of this.middleware) {
|
|
269
|
+
if (middleware.pre) {
|
|
270
|
+
fetchParams = await middleware.pre({
|
|
271
|
+
fetch: this.fetchApi,
|
|
272
|
+
...fetchParams
|
|
273
|
+
}) || fetchParams;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
let response = void 0;
|
|
277
|
+
try {
|
|
278
|
+
response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
279
|
+
} catch (e) {
|
|
280
|
+
for (const middleware of this.middleware) {
|
|
281
|
+
if (middleware.onError) {
|
|
282
|
+
response = await middleware.onError({
|
|
283
|
+
fetch: this.fetchApi,
|
|
284
|
+
url: fetchParams.url,
|
|
285
|
+
init: fetchParams.init,
|
|
286
|
+
error: e,
|
|
287
|
+
response: response ? response.clone() : void 0
|
|
288
|
+
}) || response;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
if (response === void 0) {
|
|
292
|
+
if (e instanceof Error) {
|
|
293
|
+
throw new FetchError(e, "The request failed and the interceptors did not return an alternative response");
|
|
294
|
+
} else {
|
|
295
|
+
throw e;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
for (const middleware of this.middleware) {
|
|
300
|
+
if (middleware.post) {
|
|
301
|
+
response = await middleware.post({
|
|
302
|
+
fetch: this.fetchApi,
|
|
303
|
+
url: fetchParams.url,
|
|
304
|
+
init: fetchParams.init,
|
|
305
|
+
response: response.clone()
|
|
306
|
+
}) || response;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
return response;
|
|
33
310
|
};
|
|
311
|
+
this.middleware = configuration.middleware;
|
|
312
|
+
}
|
|
313
|
+
withMiddleware(...middlewares) {
|
|
314
|
+
const next = this.clone();
|
|
315
|
+
next.middleware = next.middleware.concat(...middlewares);
|
|
316
|
+
return next;
|
|
317
|
+
}
|
|
318
|
+
withPreMiddleware(...preMiddlewares) {
|
|
319
|
+
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
320
|
+
return this.withMiddleware(...middlewares);
|
|
321
|
+
}
|
|
322
|
+
withPostMiddleware(...postMiddlewares) {
|
|
323
|
+
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
324
|
+
return this.withMiddleware(...middlewares);
|
|
34
325
|
}
|
|
35
326
|
/**
|
|
36
|
-
*
|
|
327
|
+
* Check if the given MIME is a JSON MIME.
|
|
328
|
+
* JSON MIME examples:
|
|
329
|
+
* application/json
|
|
330
|
+
* application/json; charset=UTF8
|
|
331
|
+
* APPLICATION/JSON
|
|
332
|
+
* application/vnd.company+json
|
|
333
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
334
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
37
335
|
*/
|
|
38
|
-
|
|
39
|
-
if (
|
|
40
|
-
return
|
|
336
|
+
isJsonMime(mime) {
|
|
337
|
+
if (!mime) {
|
|
338
|
+
return false;
|
|
41
339
|
}
|
|
42
|
-
return
|
|
340
|
+
return _BaseAPI.jsonRegex.test(mime);
|
|
43
341
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"Content-Type": "application/json",
|
|
50
|
-
...this.config.headers
|
|
51
|
-
};
|
|
52
|
-
const token = await this.getAuthToken();
|
|
53
|
-
if (token) {
|
|
54
|
-
headers["Authorization"] = `Bearer ${token}`;
|
|
342
|
+
async request(context, initOverrides) {
|
|
343
|
+
const { url, init } = await this.createFetchParams(context, initOverrides);
|
|
344
|
+
const response = await this.fetchApi(url, init);
|
|
345
|
+
if (response && (response.status >= 200 && response.status < 300)) {
|
|
346
|
+
return response;
|
|
55
347
|
}
|
|
56
|
-
|
|
57
|
-
|
|
348
|
+
throw new ResponseError(response, "Response returned an error code");
|
|
349
|
+
}
|
|
350
|
+
async createFetchParams(context, initOverrides) {
|
|
351
|
+
let url = this.configuration.basePath + context.path;
|
|
352
|
+
if (context.query !== void 0 && Object.keys(context.query).length !== 0) {
|
|
353
|
+
url += "?" + this.configuration.queryParamsStringify(context.query);
|
|
58
354
|
}
|
|
59
|
-
|
|
60
|
-
|
|
355
|
+
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
356
|
+
Object.keys(headers).forEach((key) => headers[key] === void 0 ? delete headers[key] : {});
|
|
357
|
+
const initOverrideFn = typeof initOverrides === "function" ? initOverrides : async () => initOverrides;
|
|
358
|
+
const initParams = {
|
|
359
|
+
method: context.method,
|
|
360
|
+
headers,
|
|
361
|
+
body: context.body,
|
|
362
|
+
credentials: this.configuration.credentials
|
|
363
|
+
};
|
|
364
|
+
const overriddenInit = {
|
|
365
|
+
...initParams,
|
|
366
|
+
...await initOverrideFn({
|
|
367
|
+
init: initParams,
|
|
368
|
+
context
|
|
369
|
+
})
|
|
370
|
+
};
|
|
371
|
+
let body;
|
|
372
|
+
if (isFormData(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob(overriddenInit.body)) {
|
|
373
|
+
body = overriddenInit.body;
|
|
374
|
+
} else if (this.isJsonMime(headers["Content-Type"])) {
|
|
375
|
+
body = JSON.stringify(overriddenInit.body);
|
|
376
|
+
} else {
|
|
377
|
+
body = overriddenInit.body;
|
|
61
378
|
}
|
|
62
|
-
|
|
63
|
-
|
|
379
|
+
const init = {
|
|
380
|
+
...overriddenInit,
|
|
381
|
+
body
|
|
382
|
+
};
|
|
383
|
+
return { url, init };
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Create a shallow clone of `this` by constructing a new instance
|
|
387
|
+
* and then shallow cloning data members.
|
|
388
|
+
*/
|
|
389
|
+
clone() {
|
|
390
|
+
const constructor = this.constructor;
|
|
391
|
+
const next = new constructor(this.configuration);
|
|
392
|
+
next.middleware = this.middleware.slice();
|
|
393
|
+
return next;
|
|
394
|
+
}
|
|
395
|
+
};
|
|
396
|
+
_BaseAPI.jsonRegex = new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$", "i");
|
|
397
|
+
var BaseAPI = _BaseAPI;
|
|
398
|
+
function isBlob(value) {
|
|
399
|
+
return typeof Blob !== "undefined" && value instanceof Blob;
|
|
400
|
+
}
|
|
401
|
+
function isFormData(value) {
|
|
402
|
+
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
403
|
+
}
|
|
404
|
+
var ResponseError = class extends Error {
|
|
405
|
+
constructor(response, msg) {
|
|
406
|
+
super(msg);
|
|
407
|
+
this.response = response;
|
|
408
|
+
this.name = "ResponseError";
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
var FetchError = class extends Error {
|
|
412
|
+
constructor(cause, msg) {
|
|
413
|
+
super(msg);
|
|
414
|
+
this.cause = cause;
|
|
415
|
+
this.name = "FetchError";
|
|
416
|
+
}
|
|
417
|
+
};
|
|
418
|
+
var RequiredError = class extends Error {
|
|
419
|
+
constructor(field, msg) {
|
|
420
|
+
super(msg);
|
|
421
|
+
this.field = field;
|
|
422
|
+
this.name = "RequiredError";
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
function querystring(params, prefix = "") {
|
|
426
|
+
return Object.keys(params).map((key) => querystringSingleKey(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
|
|
427
|
+
}
|
|
428
|
+
function querystringSingleKey(key, value, keyPrefix = "") {
|
|
429
|
+
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
430
|
+
if (value instanceof Array) {
|
|
431
|
+
const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
|
|
432
|
+
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
433
|
+
}
|
|
434
|
+
if (value instanceof Set) {
|
|
435
|
+
const valueAsArray = Array.from(value);
|
|
436
|
+
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
437
|
+
}
|
|
438
|
+
if (value instanceof Date) {
|
|
439
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
440
|
+
}
|
|
441
|
+
if (value instanceof Object) {
|
|
442
|
+
return querystring(value, fullKey);
|
|
443
|
+
}
|
|
444
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
445
|
+
}
|
|
446
|
+
function mapValues(data, fn) {
|
|
447
|
+
const result = {};
|
|
448
|
+
for (const key of Object.keys(data)) {
|
|
449
|
+
result[key] = fn(data[key]);
|
|
450
|
+
}
|
|
451
|
+
return result;
|
|
452
|
+
}
|
|
453
|
+
var JSONApiResponse = class {
|
|
454
|
+
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
455
|
+
this.raw = raw;
|
|
456
|
+
this.transformer = transformer;
|
|
457
|
+
}
|
|
458
|
+
async value() {
|
|
459
|
+
return this.transformer(await this.raw.json());
|
|
460
|
+
}
|
|
461
|
+
};
|
|
462
|
+
var VoidApiResponse = class {
|
|
463
|
+
constructor(raw) {
|
|
464
|
+
this.raw = raw;
|
|
465
|
+
}
|
|
466
|
+
async value() {
|
|
467
|
+
return void 0;
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
// src/gen/apis/index.ts
|
|
472
|
+
var apis_exports = {};
|
|
473
|
+
__export(apis_exports, {
|
|
474
|
+
ActionApi: () => ActionApi,
|
|
475
|
+
ActivityApi: () => ActivityApi,
|
|
476
|
+
DataApi: () => DataApi,
|
|
477
|
+
HealthApi: () => HealthApi,
|
|
478
|
+
PageApi: () => PageApi,
|
|
479
|
+
ResolvePageChannelEnum: () => ResolvePageChannelEnum,
|
|
480
|
+
TrackApi: () => TrackApi
|
|
481
|
+
});
|
|
482
|
+
|
|
483
|
+
// src/gen/models/ActionContext.ts
|
|
484
|
+
function instanceOfActionContext(value) {
|
|
485
|
+
return true;
|
|
486
|
+
}
|
|
487
|
+
function ActionContextFromJSON(json) {
|
|
488
|
+
return ActionContextFromJSONTyped(json, false);
|
|
489
|
+
}
|
|
490
|
+
function ActionContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
491
|
+
if (json == null) {
|
|
492
|
+
return json;
|
|
493
|
+
}
|
|
494
|
+
return {
|
|
495
|
+
"pageVersionId": json["pageVersionId"] == null ? void 0 : json["pageVersionId"],
|
|
496
|
+
"componentVersion": json["componentVersion"] == null ? void 0 : json["componentVersion"],
|
|
497
|
+
"uid": json["uid"] == null ? void 0 : json["uid"],
|
|
498
|
+
"deviceId": json["deviceId"] == null ? void 0 : json["deviceId"],
|
|
499
|
+
"channel": json["channel"] == null ? void 0 : json["channel"],
|
|
500
|
+
"traceId": json["traceId"] == null ? void 0 : json["traceId"],
|
|
501
|
+
"extra": json["extra"] == null ? void 0 : json["extra"]
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
function ActionContextToJSON(json) {
|
|
505
|
+
return ActionContextToJSONTyped(json, false);
|
|
506
|
+
}
|
|
507
|
+
function ActionContextToJSONTyped(value, ignoreDiscriminator = false) {
|
|
508
|
+
if (value == null) {
|
|
509
|
+
return value;
|
|
510
|
+
}
|
|
511
|
+
return {
|
|
512
|
+
"pageVersionId": value["pageVersionId"],
|
|
513
|
+
"componentVersion": value["componentVersion"],
|
|
514
|
+
"uid": value["uid"],
|
|
515
|
+
"deviceId": value["deviceId"],
|
|
516
|
+
"channel": value["channel"],
|
|
517
|
+
"traceId": value["traceId"],
|
|
518
|
+
"extra": value["extra"]
|
|
519
|
+
};
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
// src/gen/models/ActionExecuteRequest.ts
|
|
523
|
+
function instanceOfActionExecuteRequest(value) {
|
|
524
|
+
if (!("actionType" in value) || value["actionType"] === void 0) return false;
|
|
525
|
+
if (!("params" in value) || value["params"] === void 0) return false;
|
|
526
|
+
if (!("context" in value) || value["context"] === void 0) return false;
|
|
527
|
+
return true;
|
|
528
|
+
}
|
|
529
|
+
function ActionExecuteRequestFromJSON(json) {
|
|
530
|
+
return ActionExecuteRequestFromJSONTyped(json, false);
|
|
531
|
+
}
|
|
532
|
+
function ActionExecuteRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
533
|
+
if (json == null) {
|
|
534
|
+
return json;
|
|
535
|
+
}
|
|
536
|
+
return {
|
|
537
|
+
"actionType": json["actionType"],
|
|
538
|
+
"params": json["params"],
|
|
539
|
+
"context": ActionContextFromJSON(json["context"]),
|
|
540
|
+
"idempotencyKey": json["idempotencyKey"] == null ? void 0 : json["idempotencyKey"]
|
|
541
|
+
};
|
|
542
|
+
}
|
|
543
|
+
function ActionExecuteRequestToJSON(json) {
|
|
544
|
+
return ActionExecuteRequestToJSONTyped(json, false);
|
|
545
|
+
}
|
|
546
|
+
function ActionExecuteRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
547
|
+
if (value == null) {
|
|
548
|
+
return value;
|
|
549
|
+
}
|
|
550
|
+
return {
|
|
551
|
+
"actionType": value["actionType"],
|
|
552
|
+
"params": value["params"],
|
|
553
|
+
"context": ActionContextToJSON(value["context"]),
|
|
554
|
+
"idempotencyKey": value["idempotencyKey"]
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
// src/gen/models/ActionExecuteResponse.ts
|
|
559
|
+
function instanceOfActionExecuteResponse(value) {
|
|
560
|
+
if (!("success" in value) || value["success"] === void 0) return false;
|
|
561
|
+
return true;
|
|
562
|
+
}
|
|
563
|
+
function ActionExecuteResponseFromJSON(json) {
|
|
564
|
+
return ActionExecuteResponseFromJSONTyped(json, false);
|
|
565
|
+
}
|
|
566
|
+
function ActionExecuteResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
567
|
+
if (json == null) {
|
|
568
|
+
return json;
|
|
569
|
+
}
|
|
570
|
+
return {
|
|
571
|
+
"success": json["success"],
|
|
572
|
+
"data": json["data"] == null ? void 0 : json["data"],
|
|
573
|
+
"code": json["code"] == null ? void 0 : json["code"],
|
|
574
|
+
"message": json["message"] == null ? void 0 : json["message"],
|
|
575
|
+
"traceId": json["traceId"] == null ? void 0 : json["traceId"]
|
|
576
|
+
};
|
|
577
|
+
}
|
|
578
|
+
function ActionExecuteResponseToJSON(json) {
|
|
579
|
+
return ActionExecuteResponseToJSONTyped(json, false);
|
|
580
|
+
}
|
|
581
|
+
function ActionExecuteResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
582
|
+
if (value == null) {
|
|
583
|
+
return value;
|
|
584
|
+
}
|
|
585
|
+
return {
|
|
586
|
+
"success": value["success"],
|
|
587
|
+
"data": value["data"],
|
|
588
|
+
"code": value["code"],
|
|
589
|
+
"message": value["message"],
|
|
590
|
+
"traceId": value["traceId"]
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
// src/gen/models/UserActivityStateProgress.ts
|
|
595
|
+
function instanceOfUserActivityStateProgress(value) {
|
|
596
|
+
return true;
|
|
597
|
+
}
|
|
598
|
+
function UserActivityStateProgressFromJSON(json) {
|
|
599
|
+
return UserActivityStateProgressFromJSONTyped(json, false);
|
|
600
|
+
}
|
|
601
|
+
function UserActivityStateProgressFromJSONTyped(json, ignoreDiscriminator) {
|
|
602
|
+
if (json == null) {
|
|
603
|
+
return json;
|
|
604
|
+
}
|
|
605
|
+
return {
|
|
606
|
+
"current": json["current"] == null ? void 0 : json["current"],
|
|
607
|
+
"target": json["target"] == null ? void 0 : json["target"],
|
|
608
|
+
"percentage": json["percentage"] == null ? void 0 : json["percentage"]
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
function UserActivityStateProgressToJSON(json) {
|
|
612
|
+
return UserActivityStateProgressToJSONTyped(json, false);
|
|
613
|
+
}
|
|
614
|
+
function UserActivityStateProgressToJSONTyped(value, ignoreDiscriminator = false) {
|
|
615
|
+
if (value == null) {
|
|
616
|
+
return value;
|
|
617
|
+
}
|
|
618
|
+
return {
|
|
619
|
+
"current": value["current"],
|
|
620
|
+
"target": value["target"],
|
|
621
|
+
"percentage": value["percentage"]
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
// src/gen/models/UserActivityState.ts
|
|
626
|
+
function instanceOfUserActivityState(value) {
|
|
627
|
+
return true;
|
|
628
|
+
}
|
|
629
|
+
function UserActivityStateFromJSON(json) {
|
|
630
|
+
return UserActivityStateFromJSONTyped(json, false);
|
|
631
|
+
}
|
|
632
|
+
function UserActivityStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
633
|
+
if (json == null) {
|
|
634
|
+
return json;
|
|
635
|
+
}
|
|
636
|
+
return {
|
|
637
|
+
"participated": json["participated"] == null ? void 0 : json["participated"],
|
|
638
|
+
"claimedCount": json["claimedCount"] == null ? void 0 : json["claimedCount"],
|
|
639
|
+
"remainingCount": json["remainingCount"] == null ? void 0 : json["remainingCount"],
|
|
640
|
+
"lastClaimedAt": json["lastClaimedAt"] == null ? void 0 : json["lastClaimedAt"],
|
|
641
|
+
"consecutiveDays": json["consecutiveDays"] == null ? void 0 : json["consecutiveDays"],
|
|
642
|
+
"progress": json["progress"] == null ? void 0 : UserActivityStateProgressFromJSON(json["progress"])
|
|
643
|
+
};
|
|
644
|
+
}
|
|
645
|
+
function UserActivityStateToJSON(json) {
|
|
646
|
+
return UserActivityStateToJSONTyped(json, false);
|
|
647
|
+
}
|
|
648
|
+
function UserActivityStateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
649
|
+
if (value == null) {
|
|
650
|
+
return value;
|
|
651
|
+
}
|
|
652
|
+
return {
|
|
653
|
+
"participated": value["participated"],
|
|
654
|
+
"claimedCount": value["claimedCount"],
|
|
655
|
+
"remainingCount": value["remainingCount"],
|
|
656
|
+
"lastClaimedAt": value["lastClaimedAt"],
|
|
657
|
+
"consecutiveDays": value["consecutiveDays"],
|
|
658
|
+
"progress": UserActivityStateProgressToJSON(value["progress"])
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
// src/gen/models/ActivityStateActivityInfo.ts
|
|
663
|
+
function instanceOfActivityStateActivityInfo(value) {
|
|
664
|
+
return true;
|
|
665
|
+
}
|
|
666
|
+
function ActivityStateActivityInfoFromJSON(json) {
|
|
667
|
+
return ActivityStateActivityInfoFromJSONTyped(json, false);
|
|
668
|
+
}
|
|
669
|
+
function ActivityStateActivityInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
670
|
+
if (json == null) {
|
|
671
|
+
return json;
|
|
672
|
+
}
|
|
673
|
+
return {
|
|
674
|
+
"name": json["name"] == null ? void 0 : json["name"],
|
|
675
|
+
"startTime": json["startTime"] == null ? void 0 : json["startTime"],
|
|
676
|
+
"endTime": json["endTime"] == null ? void 0 : json["endTime"]
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
function ActivityStateActivityInfoToJSON(json) {
|
|
680
|
+
return ActivityStateActivityInfoToJSONTyped(json, false);
|
|
681
|
+
}
|
|
682
|
+
function ActivityStateActivityInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
683
|
+
if (value == null) {
|
|
684
|
+
return value;
|
|
685
|
+
}
|
|
686
|
+
return {
|
|
687
|
+
"name": value["name"],
|
|
688
|
+
"startTime": value["startTime"],
|
|
689
|
+
"endTime": value["endTime"]
|
|
690
|
+
};
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
// src/gen/models/ActivityState.ts
|
|
694
|
+
var ActivityStateStatusEnum = {
|
|
695
|
+
not_started: "not_started",
|
|
696
|
+
active: "active",
|
|
697
|
+
paused: "paused",
|
|
698
|
+
ended: "ended"
|
|
699
|
+
};
|
|
700
|
+
function instanceOfActivityState(value) {
|
|
701
|
+
return true;
|
|
702
|
+
}
|
|
703
|
+
function ActivityStateFromJSON(json) {
|
|
704
|
+
return ActivityStateFromJSONTyped(json, false);
|
|
705
|
+
}
|
|
706
|
+
function ActivityStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
707
|
+
if (json == null) {
|
|
708
|
+
return json;
|
|
709
|
+
}
|
|
710
|
+
return {
|
|
711
|
+
"activityId": json["activityId"] == null ? void 0 : json["activityId"],
|
|
712
|
+
"status": json["status"] == null ? void 0 : json["status"],
|
|
713
|
+
"userState": json["userState"] == null ? void 0 : UserActivityStateFromJSON(json["userState"]),
|
|
714
|
+
"activityInfo": json["activityInfo"] == null ? void 0 : ActivityStateActivityInfoFromJSON(json["activityInfo"])
|
|
715
|
+
};
|
|
716
|
+
}
|
|
717
|
+
function ActivityStateToJSON(json) {
|
|
718
|
+
return ActivityStateToJSONTyped(json, false);
|
|
719
|
+
}
|
|
720
|
+
function ActivityStateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
721
|
+
if (value == null) {
|
|
722
|
+
return value;
|
|
723
|
+
}
|
|
724
|
+
return {
|
|
725
|
+
"activityId": value["activityId"],
|
|
726
|
+
"status": value["status"],
|
|
727
|
+
"userState": UserActivityStateToJSON(value["userState"]),
|
|
728
|
+
"activityInfo": ActivityStateActivityInfoToJSON(value["activityInfo"])
|
|
729
|
+
};
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
// src/gen/models/ActivityStateResponse.ts
|
|
733
|
+
function instanceOfActivityStateResponse(value) {
|
|
734
|
+
if (!("success" in value) || value["success"] === void 0) return false;
|
|
735
|
+
return true;
|
|
736
|
+
}
|
|
737
|
+
function ActivityStateResponseFromJSON(json) {
|
|
738
|
+
return ActivityStateResponseFromJSONTyped(json, false);
|
|
739
|
+
}
|
|
740
|
+
function ActivityStateResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
741
|
+
if (json == null) {
|
|
742
|
+
return json;
|
|
743
|
+
}
|
|
744
|
+
return {
|
|
745
|
+
"success": json["success"],
|
|
746
|
+
"data": json["data"] == null ? void 0 : ActivityStateFromJSON(json["data"]),
|
|
747
|
+
"code": json["code"] == null ? void 0 : json["code"],
|
|
748
|
+
"message": json["message"] == null ? void 0 : json["message"],
|
|
749
|
+
"traceId": json["traceId"] == null ? void 0 : json["traceId"]
|
|
750
|
+
};
|
|
751
|
+
}
|
|
752
|
+
function ActivityStateResponseToJSON(json) {
|
|
753
|
+
return ActivityStateResponseToJSONTyped(json, false);
|
|
754
|
+
}
|
|
755
|
+
function ActivityStateResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
756
|
+
if (value == null) {
|
|
757
|
+
return value;
|
|
758
|
+
}
|
|
759
|
+
return {
|
|
760
|
+
"success": value["success"],
|
|
761
|
+
"data": ActivityStateToJSON(value["data"]),
|
|
762
|
+
"code": value["code"],
|
|
763
|
+
"message": value["message"],
|
|
764
|
+
"traceId": value["traceId"]
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
// src/gen/models/BaseResponseVo.ts
|
|
769
|
+
function instanceOfBaseResponseVo(value) {
|
|
770
|
+
if (!("success" in value) || value["success"] === void 0) return false;
|
|
771
|
+
if (!("code" in value) || value["code"] === void 0) return false;
|
|
772
|
+
if (!("message" in value) || value["message"] === void 0) return false;
|
|
773
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
774
|
+
if (!("timestamp" in value) || value["timestamp"] === void 0) return false;
|
|
775
|
+
if (!("path" in value) || value["path"] === void 0) return false;
|
|
776
|
+
return true;
|
|
777
|
+
}
|
|
778
|
+
function BaseResponseVoFromJSON(json) {
|
|
779
|
+
return BaseResponseVoFromJSONTyped(json, false);
|
|
780
|
+
}
|
|
781
|
+
function BaseResponseVoFromJSONTyped(json, ignoreDiscriminator) {
|
|
782
|
+
if (json == null) {
|
|
783
|
+
return json;
|
|
784
|
+
}
|
|
785
|
+
return {
|
|
786
|
+
"success": json["success"],
|
|
787
|
+
"code": json["code"],
|
|
788
|
+
"message": json["message"],
|
|
789
|
+
"data": json["data"],
|
|
790
|
+
"timestamp": json["timestamp"],
|
|
791
|
+
"path": json["path"],
|
|
792
|
+
"requestId": json["requestId"] == null ? void 0 : json["requestId"]
|
|
793
|
+
};
|
|
794
|
+
}
|
|
795
|
+
function BaseResponseVoToJSON(json) {
|
|
796
|
+
return BaseResponseVoToJSONTyped(json, false);
|
|
797
|
+
}
|
|
798
|
+
function BaseResponseVoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
799
|
+
if (value == null) {
|
|
800
|
+
return value;
|
|
801
|
+
}
|
|
802
|
+
return {
|
|
803
|
+
"success": value["success"],
|
|
804
|
+
"code": value["code"],
|
|
805
|
+
"message": value["message"],
|
|
806
|
+
"data": value["data"],
|
|
807
|
+
"timestamp": value["timestamp"],
|
|
808
|
+
"path": value["path"],
|
|
809
|
+
"requestId": value["requestId"]
|
|
810
|
+
};
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
// src/gen/models/BlockedComponent.ts
|
|
814
|
+
function instanceOfBlockedComponent(value) {
|
|
815
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
816
|
+
if (!("version" in value) || value["version"] === void 0) return false;
|
|
817
|
+
if (!("reason" in value) || value["reason"] === void 0) return false;
|
|
818
|
+
if (!("blockedAt" in value) || value["blockedAt"] === void 0) return false;
|
|
819
|
+
return true;
|
|
820
|
+
}
|
|
821
|
+
function BlockedComponentFromJSON(json) {
|
|
822
|
+
return BlockedComponentFromJSONTyped(json, false);
|
|
823
|
+
}
|
|
824
|
+
function BlockedComponentFromJSONTyped(json, ignoreDiscriminator) {
|
|
825
|
+
if (json == null) {
|
|
826
|
+
return json;
|
|
827
|
+
}
|
|
828
|
+
return {
|
|
829
|
+
"name": json["name"],
|
|
830
|
+
"version": json["version"],
|
|
831
|
+
"reason": json["reason"],
|
|
832
|
+
"blockedAt": json["blockedAt"],
|
|
833
|
+
"fallbackComponent": json["fallbackComponent"] == null ? void 0 : json["fallbackComponent"]
|
|
834
|
+
};
|
|
835
|
+
}
|
|
836
|
+
function BlockedComponentToJSON(json) {
|
|
837
|
+
return BlockedComponentToJSONTyped(json, false);
|
|
838
|
+
}
|
|
839
|
+
function BlockedComponentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
840
|
+
if (value == null) {
|
|
841
|
+
return value;
|
|
842
|
+
}
|
|
843
|
+
return {
|
|
844
|
+
"name": value["name"],
|
|
845
|
+
"version": value["version"],
|
|
846
|
+
"reason": value["reason"],
|
|
847
|
+
"blockedAt": value["blockedAt"],
|
|
848
|
+
"fallbackComponent": value["fallbackComponent"]
|
|
849
|
+
};
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
// src/gen/models/DataQueryContext.ts
|
|
853
|
+
function instanceOfDataQueryContext(value) {
|
|
854
|
+
return true;
|
|
855
|
+
}
|
|
856
|
+
function DataQueryContextFromJSON(json) {
|
|
857
|
+
return DataQueryContextFromJSONTyped(json, false);
|
|
858
|
+
}
|
|
859
|
+
function DataQueryContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
860
|
+
if (json == null) {
|
|
861
|
+
return json;
|
|
862
|
+
}
|
|
863
|
+
return {
|
|
864
|
+
"pageVersionId": json["pageVersionId"] == null ? void 0 : json["pageVersionId"],
|
|
865
|
+
"uid": json["uid"] == null ? void 0 : json["uid"],
|
|
866
|
+
"traceId": json["traceId"] == null ? void 0 : json["traceId"]
|
|
867
|
+
};
|
|
868
|
+
}
|
|
869
|
+
function DataQueryContextToJSON(json) {
|
|
870
|
+
return DataQueryContextToJSONTyped(json, false);
|
|
871
|
+
}
|
|
872
|
+
function DataQueryContextToJSONTyped(value, ignoreDiscriminator = false) {
|
|
873
|
+
if (value == null) {
|
|
874
|
+
return value;
|
|
875
|
+
}
|
|
876
|
+
return {
|
|
877
|
+
"pageVersionId": value["pageVersionId"],
|
|
878
|
+
"uid": value["uid"],
|
|
879
|
+
"traceId": value["traceId"]
|
|
880
|
+
};
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
// src/gen/models/DataQueryRequest.ts
|
|
884
|
+
function instanceOfDataQueryRequest(value) {
|
|
885
|
+
if (!("queryVersionId" in value) || value["queryVersionId"] === void 0) return false;
|
|
886
|
+
if (!("params" in value) || value["params"] === void 0) return false;
|
|
887
|
+
return true;
|
|
888
|
+
}
|
|
889
|
+
function DataQueryRequestFromJSON(json) {
|
|
890
|
+
return DataQueryRequestFromJSONTyped(json, false);
|
|
891
|
+
}
|
|
892
|
+
function DataQueryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
893
|
+
if (json == null) {
|
|
894
|
+
return json;
|
|
895
|
+
}
|
|
896
|
+
return {
|
|
897
|
+
"queryVersionId": json["queryVersionId"],
|
|
898
|
+
"params": json["params"],
|
|
899
|
+
"context": json["context"] == null ? void 0 : DataQueryContextFromJSON(json["context"])
|
|
900
|
+
};
|
|
901
|
+
}
|
|
902
|
+
function DataQueryRequestToJSON(json) {
|
|
903
|
+
return DataQueryRequestToJSONTyped(json, false);
|
|
904
|
+
}
|
|
905
|
+
function DataQueryRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
906
|
+
if (value == null) {
|
|
907
|
+
return value;
|
|
908
|
+
}
|
|
909
|
+
return {
|
|
910
|
+
"queryVersionId": value["queryVersionId"],
|
|
911
|
+
"params": value["params"],
|
|
912
|
+
"context": DataQueryContextToJSON(value["context"])
|
|
913
|
+
};
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
// src/gen/models/DataQueryResponse.ts
|
|
917
|
+
function instanceOfDataQueryResponse(value) {
|
|
918
|
+
if (!("success" in value) || value["success"] === void 0) return false;
|
|
919
|
+
return true;
|
|
920
|
+
}
|
|
921
|
+
function DataQueryResponseFromJSON(json) {
|
|
922
|
+
return DataQueryResponseFromJSONTyped(json, false);
|
|
923
|
+
}
|
|
924
|
+
function DataQueryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
925
|
+
if (json == null) {
|
|
926
|
+
return json;
|
|
927
|
+
}
|
|
928
|
+
return {
|
|
929
|
+
"success": json["success"],
|
|
930
|
+
"data": json["data"] == null ? void 0 : json["data"],
|
|
931
|
+
"fromCache": json["fromCache"] == null ? void 0 : json["fromCache"],
|
|
932
|
+
"cacheTime": json["cacheTime"] == null ? void 0 : json["cacheTime"],
|
|
933
|
+
"code": json["code"] == null ? void 0 : json["code"],
|
|
934
|
+
"message": json["message"] == null ? void 0 : json["message"],
|
|
935
|
+
"traceId": json["traceId"] == null ? void 0 : json["traceId"]
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
function DataQueryResponseToJSON(json) {
|
|
939
|
+
return DataQueryResponseToJSONTyped(json, false);
|
|
940
|
+
}
|
|
941
|
+
function DataQueryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
942
|
+
if (value == null) {
|
|
943
|
+
return value;
|
|
944
|
+
}
|
|
945
|
+
return {
|
|
946
|
+
"success": value["success"],
|
|
947
|
+
"data": value["data"],
|
|
948
|
+
"fromCache": value["fromCache"],
|
|
949
|
+
"cacheTime": value["cacheTime"],
|
|
950
|
+
"code": value["code"],
|
|
951
|
+
"message": value["message"],
|
|
952
|
+
"traceId": value["traceId"]
|
|
953
|
+
};
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
// src/gen/models/ErrorDetail.ts
|
|
957
|
+
function instanceOfErrorDetail(value) {
|
|
958
|
+
return true;
|
|
959
|
+
}
|
|
960
|
+
function ErrorDetailFromJSON(json) {
|
|
961
|
+
return ErrorDetailFromJSONTyped(json, false);
|
|
962
|
+
}
|
|
963
|
+
function ErrorDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
964
|
+
if (json == null) {
|
|
965
|
+
return json;
|
|
966
|
+
}
|
|
967
|
+
return {
|
|
968
|
+
"field": json["field"] == null ? void 0 : json["field"],
|
|
969
|
+
"code": json["code"] == null ? void 0 : json["code"],
|
|
970
|
+
"message": json["message"] == null ? void 0 : json["message"]
|
|
971
|
+
};
|
|
972
|
+
}
|
|
973
|
+
function ErrorDetailToJSON(json) {
|
|
974
|
+
return ErrorDetailToJSONTyped(json, false);
|
|
975
|
+
}
|
|
976
|
+
function ErrorDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
977
|
+
if (value == null) {
|
|
978
|
+
return value;
|
|
979
|
+
}
|
|
980
|
+
return {
|
|
981
|
+
"field": value["field"],
|
|
982
|
+
"code": value["code"],
|
|
983
|
+
"message": value["message"]
|
|
984
|
+
};
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
// src/gen/models/ErrorResponseVo.ts
|
|
988
|
+
function instanceOfErrorResponseVo(value) {
|
|
989
|
+
if (!("success" in value) || value["success"] === void 0) return false;
|
|
990
|
+
if (!("code" in value) || value["code"] === void 0) return false;
|
|
991
|
+
if (!("message" in value) || value["message"] === void 0) return false;
|
|
992
|
+
if (!("timestamp" in value) || value["timestamp"] === void 0) return false;
|
|
993
|
+
if (!("path" in value) || value["path"] === void 0) return false;
|
|
994
|
+
return true;
|
|
995
|
+
}
|
|
996
|
+
function ErrorResponseVoFromJSON(json) {
|
|
997
|
+
return ErrorResponseVoFromJSONTyped(json, false);
|
|
998
|
+
}
|
|
999
|
+
function ErrorResponseVoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1000
|
+
if (json == null) {
|
|
1001
|
+
return json;
|
|
1002
|
+
}
|
|
1003
|
+
return {
|
|
1004
|
+
"success": json["success"],
|
|
1005
|
+
"code": json["code"],
|
|
1006
|
+
"message": json["message"],
|
|
1007
|
+
"timestamp": json["timestamp"],
|
|
1008
|
+
"path": json["path"],
|
|
1009
|
+
"requestId": json["requestId"] == null ? void 0 : json["requestId"],
|
|
1010
|
+
"details": json["details"] == null ? void 0 : json["details"].map(ErrorDetailFromJSON)
|
|
1011
|
+
};
|
|
1012
|
+
}
|
|
1013
|
+
function ErrorResponseVoToJSON(json) {
|
|
1014
|
+
return ErrorResponseVoToJSONTyped(json, false);
|
|
1015
|
+
}
|
|
1016
|
+
function ErrorResponseVoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1017
|
+
if (value == null) {
|
|
1018
|
+
return value;
|
|
1019
|
+
}
|
|
1020
|
+
return {
|
|
1021
|
+
"success": value["success"],
|
|
1022
|
+
"code": value["code"],
|
|
1023
|
+
"message": value["message"],
|
|
1024
|
+
"timestamp": value["timestamp"],
|
|
1025
|
+
"path": value["path"],
|
|
1026
|
+
"requestId": value["requestId"],
|
|
1027
|
+
"details": value["details"] == null ? void 0 : value["details"].map(ErrorDetailToJSON)
|
|
1028
|
+
};
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
// src/gen/models/ExecuteActionBatch200Response.ts
|
|
1032
|
+
function instanceOfExecuteActionBatch200Response(value) {
|
|
1033
|
+
if (!("success" in value) || value["success"] === void 0) return false;
|
|
1034
|
+
return true;
|
|
1035
|
+
}
|
|
1036
|
+
function ExecuteActionBatch200ResponseFromJSON(json) {
|
|
1037
|
+
return ExecuteActionBatch200ResponseFromJSONTyped(json, false);
|
|
1038
|
+
}
|
|
1039
|
+
function ExecuteActionBatch200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1040
|
+
if (json == null) {
|
|
1041
|
+
return json;
|
|
1042
|
+
}
|
|
1043
|
+
return {
|
|
1044
|
+
"success": json["success"],
|
|
1045
|
+
"data": json["data"] == null ? void 0 : json["data"].map(ActionExecuteResponseFromJSON),
|
|
1046
|
+
"traceId": json["traceId"] == null ? void 0 : json["traceId"]
|
|
1047
|
+
};
|
|
1048
|
+
}
|
|
1049
|
+
function ExecuteActionBatch200ResponseToJSON(json) {
|
|
1050
|
+
return ExecuteActionBatch200ResponseToJSONTyped(json, false);
|
|
1051
|
+
}
|
|
1052
|
+
function ExecuteActionBatch200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1053
|
+
if (value == null) {
|
|
1054
|
+
return value;
|
|
1055
|
+
}
|
|
1056
|
+
return {
|
|
1057
|
+
"success": value["success"],
|
|
1058
|
+
"data": value["data"] == null ? void 0 : value["data"].map(ActionExecuteResponseToJSON),
|
|
1059
|
+
"traceId": value["traceId"]
|
|
1060
|
+
};
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
// src/gen/models/ExecuteActionBatchRequest.ts
|
|
1064
|
+
function instanceOfExecuteActionBatchRequest(value) {
|
|
1065
|
+
if (!("actions" in value) || value["actions"] === void 0) return false;
|
|
1066
|
+
return true;
|
|
1067
|
+
}
|
|
1068
|
+
function ExecuteActionBatchRequestFromJSON(json) {
|
|
1069
|
+
return ExecuteActionBatchRequestFromJSONTyped(json, false);
|
|
1070
|
+
}
|
|
1071
|
+
function ExecuteActionBatchRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
1072
|
+
if (json == null) {
|
|
1073
|
+
return json;
|
|
1074
|
+
}
|
|
1075
|
+
return {
|
|
1076
|
+
"actions": json["actions"].map(ActionExecuteRequestFromJSON),
|
|
1077
|
+
"stopOnError": json["stopOnError"] == null ? void 0 : json["stopOnError"]
|
|
1078
|
+
};
|
|
1079
|
+
}
|
|
1080
|
+
function ExecuteActionBatchRequestToJSON(json) {
|
|
1081
|
+
return ExecuteActionBatchRequestToJSONTyped(json, false);
|
|
1082
|
+
}
|
|
1083
|
+
function ExecuteActionBatchRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1084
|
+
if (value == null) {
|
|
1085
|
+
return value;
|
|
1086
|
+
}
|
|
1087
|
+
return {
|
|
1088
|
+
"actions": value["actions"].map(ActionExecuteRequestToJSON),
|
|
1089
|
+
"stopOnError": value["stopOnError"]
|
|
1090
|
+
};
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
// src/gen/models/GetActivityStateBatch200Response.ts
|
|
1094
|
+
function instanceOfGetActivityStateBatch200Response(value) {
|
|
1095
|
+
if (!("success" in value) || value["success"] === void 0) return false;
|
|
1096
|
+
return true;
|
|
1097
|
+
}
|
|
1098
|
+
function GetActivityStateBatch200ResponseFromJSON(json) {
|
|
1099
|
+
return GetActivityStateBatch200ResponseFromJSONTyped(json, false);
|
|
1100
|
+
}
|
|
1101
|
+
function GetActivityStateBatch200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1102
|
+
if (json == null) {
|
|
1103
|
+
return json;
|
|
1104
|
+
}
|
|
1105
|
+
return {
|
|
1106
|
+
"success": json["success"],
|
|
1107
|
+
"data": json["data"] == null ? void 0 : json["data"].map(ActivityStateFromJSON),
|
|
1108
|
+
"traceId": json["traceId"] == null ? void 0 : json["traceId"]
|
|
1109
|
+
};
|
|
1110
|
+
}
|
|
1111
|
+
function GetActivityStateBatch200ResponseToJSON(json) {
|
|
1112
|
+
return GetActivityStateBatch200ResponseToJSONTyped(json, false);
|
|
1113
|
+
}
|
|
1114
|
+
function GetActivityStateBatch200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1115
|
+
if (value == null) {
|
|
1116
|
+
return value;
|
|
1117
|
+
}
|
|
1118
|
+
return {
|
|
1119
|
+
"success": value["success"],
|
|
1120
|
+
"data": value["data"] == null ? void 0 : value["data"].map(ActivityStateToJSON),
|
|
1121
|
+
"traceId": value["traceId"]
|
|
1122
|
+
};
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
// src/gen/models/GetActivityStateBatchRequest.ts
|
|
1126
|
+
function instanceOfGetActivityStateBatchRequest(value) {
|
|
1127
|
+
if (!("activityIds" in value) || value["activityIds"] === void 0) return false;
|
|
1128
|
+
return true;
|
|
1129
|
+
}
|
|
1130
|
+
function GetActivityStateBatchRequestFromJSON(json) {
|
|
1131
|
+
return GetActivityStateBatchRequestFromJSONTyped(json, false);
|
|
1132
|
+
}
|
|
1133
|
+
function GetActivityStateBatchRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
1134
|
+
if (json == null) {
|
|
1135
|
+
return json;
|
|
1136
|
+
}
|
|
1137
|
+
return {
|
|
1138
|
+
"activityIds": json["activityIds"],
|
|
1139
|
+
"uid": json["uid"] == null ? void 0 : json["uid"]
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1142
|
+
function GetActivityStateBatchRequestToJSON(json) {
|
|
1143
|
+
return GetActivityStateBatchRequestToJSONTyped(json, false);
|
|
1144
|
+
}
|
|
1145
|
+
function GetActivityStateBatchRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1146
|
+
if (value == null) {
|
|
1147
|
+
return value;
|
|
1148
|
+
}
|
|
1149
|
+
return {
|
|
1150
|
+
"activityIds": value["activityIds"],
|
|
1151
|
+
"uid": value["uid"]
|
|
1152
|
+
};
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
// src/gen/models/HealthResponseChecksValue.ts
|
|
1156
|
+
function instanceOfHealthResponseChecksValue(value) {
|
|
1157
|
+
return true;
|
|
1158
|
+
}
|
|
1159
|
+
function HealthResponseChecksValueFromJSON(json) {
|
|
1160
|
+
return HealthResponseChecksValueFromJSONTyped(json, false);
|
|
1161
|
+
}
|
|
1162
|
+
function HealthResponseChecksValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
1163
|
+
if (json == null) {
|
|
1164
|
+
return json;
|
|
1165
|
+
}
|
|
1166
|
+
return {
|
|
1167
|
+
"status": json["status"] == null ? void 0 : json["status"],
|
|
1168
|
+
"latency": json["latency"] == null ? void 0 : json["latency"]
|
|
1169
|
+
};
|
|
1170
|
+
}
|
|
1171
|
+
function HealthResponseChecksValueToJSON(json) {
|
|
1172
|
+
return HealthResponseChecksValueToJSONTyped(json, false);
|
|
1173
|
+
}
|
|
1174
|
+
function HealthResponseChecksValueToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1175
|
+
if (value == null) {
|
|
1176
|
+
return value;
|
|
1177
|
+
}
|
|
1178
|
+
return {
|
|
1179
|
+
"status": value["status"],
|
|
1180
|
+
"latency": value["latency"]
|
|
1181
|
+
};
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
// src/gen/models/HealthResponse.ts
|
|
1185
|
+
var HealthResponseStatusEnum = {
|
|
1186
|
+
healthy: "healthy",
|
|
1187
|
+
degraded: "degraded",
|
|
1188
|
+
unhealthy: "unhealthy"
|
|
1189
|
+
};
|
|
1190
|
+
function instanceOfHealthResponse(value) {
|
|
1191
|
+
if (!("status" in value) || value["status"] === void 0) return false;
|
|
1192
|
+
if (!("version" in value) || value["version"] === void 0) return false;
|
|
1193
|
+
return true;
|
|
1194
|
+
}
|
|
1195
|
+
function HealthResponseFromJSON(json) {
|
|
1196
|
+
return HealthResponseFromJSONTyped(json, false);
|
|
1197
|
+
}
|
|
1198
|
+
function HealthResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1199
|
+
if (json == null) {
|
|
1200
|
+
return json;
|
|
1201
|
+
}
|
|
1202
|
+
return {
|
|
1203
|
+
"status": json["status"],
|
|
1204
|
+
"version": json["version"],
|
|
1205
|
+
"service": json["service"] == null ? void 0 : json["service"],
|
|
1206
|
+
"timestamp": json["timestamp"] == null ? void 0 : json["timestamp"],
|
|
1207
|
+
"checks": json["checks"] == null ? void 0 : mapValues(json["checks"], HealthResponseChecksValueFromJSON)
|
|
1208
|
+
};
|
|
1209
|
+
}
|
|
1210
|
+
function HealthResponseToJSON(json) {
|
|
1211
|
+
return HealthResponseToJSONTyped(json, false);
|
|
1212
|
+
}
|
|
1213
|
+
function HealthResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1214
|
+
if (value == null) {
|
|
1215
|
+
return value;
|
|
1216
|
+
}
|
|
1217
|
+
return {
|
|
1218
|
+
"status": value["status"],
|
|
1219
|
+
"version": value["version"],
|
|
1220
|
+
"service": value["service"],
|
|
1221
|
+
"timestamp": value["timestamp"],
|
|
1222
|
+
"checks": value["checks"] == null ? void 0 : mapValues(value["checks"], HealthResponseChecksValueToJSON)
|
|
1223
|
+
};
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
// src/gen/models/ManifestItem.ts
|
|
1227
|
+
function instanceOfManifestItem(value) {
|
|
1228
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
1229
|
+
if (!("version" in value) || value["version"] === void 0) return false;
|
|
1230
|
+
if (!("entryUrl" in value) || value["entryUrl"] === void 0) return false;
|
|
1231
|
+
if (!("integrity" in value) || value["integrity"] === void 0) return false;
|
|
1232
|
+
return true;
|
|
1233
|
+
}
|
|
1234
|
+
function ManifestItemFromJSON(json) {
|
|
1235
|
+
return ManifestItemFromJSONTyped(json, false);
|
|
1236
|
+
}
|
|
1237
|
+
function ManifestItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
1238
|
+
if (json == null) {
|
|
1239
|
+
return json;
|
|
1240
|
+
}
|
|
1241
|
+
return {
|
|
1242
|
+
"name": json["name"],
|
|
1243
|
+
"version": json["version"],
|
|
1244
|
+
"entryUrl": json["entryUrl"],
|
|
1245
|
+
"integrity": json["integrity"],
|
|
1246
|
+
"critical": json["critical"] == null ? void 0 : json["critical"],
|
|
1247
|
+
"fallbackUrl": json["fallbackUrl"] == null ? void 0 : json["fallbackUrl"]
|
|
1248
|
+
};
|
|
1249
|
+
}
|
|
1250
|
+
function ManifestItemToJSON(json) {
|
|
1251
|
+
return ManifestItemToJSONTyped(json, false);
|
|
1252
|
+
}
|
|
1253
|
+
function ManifestItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1254
|
+
if (value == null) {
|
|
1255
|
+
return value;
|
|
1256
|
+
}
|
|
1257
|
+
return {
|
|
1258
|
+
"name": value["name"],
|
|
1259
|
+
"version": value["version"],
|
|
1260
|
+
"entryUrl": value["entryUrl"],
|
|
1261
|
+
"integrity": value["integrity"],
|
|
1262
|
+
"critical": value["critical"],
|
|
1263
|
+
"fallbackUrl": value["fallbackUrl"]
|
|
1264
|
+
};
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
// src/gen/models/PageManifest.ts
|
|
1268
|
+
function instanceOfPageManifest(value) {
|
|
1269
|
+
if (!("manifestVersion" in value) || value["manifestVersion"] === void 0) return false;
|
|
1270
|
+
if (!("contentHash" in value) || value["contentHash"] === void 0) return false;
|
|
1271
|
+
if (!("runtimeVersion" in value) || value["runtimeVersion"] === void 0) return false;
|
|
1272
|
+
if (!("components" in value) || value["components"] === void 0) return false;
|
|
1273
|
+
if (!("generatedAt" in value) || value["generatedAt"] === void 0) return false;
|
|
1274
|
+
return true;
|
|
1275
|
+
}
|
|
1276
|
+
function PageManifestFromJSON(json) {
|
|
1277
|
+
return PageManifestFromJSONTyped(json, false);
|
|
1278
|
+
}
|
|
1279
|
+
function PageManifestFromJSONTyped(json, ignoreDiscriminator) {
|
|
1280
|
+
if (json == null) {
|
|
1281
|
+
return json;
|
|
1282
|
+
}
|
|
1283
|
+
return {
|
|
1284
|
+
"manifestVersion": json["manifestVersion"],
|
|
1285
|
+
"contentHash": json["contentHash"],
|
|
1286
|
+
"runtimeVersion": json["runtimeVersion"],
|
|
1287
|
+
"components": json["components"].map(ManifestItemFromJSON),
|
|
1288
|
+
"generatedAt": json["generatedAt"]
|
|
1289
|
+
};
|
|
1290
|
+
}
|
|
1291
|
+
function PageManifestToJSON(json) {
|
|
1292
|
+
return PageManifestToJSONTyped(json, false);
|
|
1293
|
+
}
|
|
1294
|
+
function PageManifestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1295
|
+
if (value == null) {
|
|
1296
|
+
return value;
|
|
1297
|
+
}
|
|
1298
|
+
return {
|
|
1299
|
+
"manifestVersion": value["manifestVersion"],
|
|
1300
|
+
"contentHash": value["contentHash"],
|
|
1301
|
+
"runtimeVersion": value["runtimeVersion"],
|
|
1302
|
+
"components": value["components"].map(ManifestItemToJSON),
|
|
1303
|
+
"generatedAt": value["generatedAt"]
|
|
1304
|
+
};
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
// src/gen/models/RuntimeConfigReportConfig.ts
|
|
1308
|
+
function instanceOfRuntimeConfigReportConfig(value) {
|
|
1309
|
+
return true;
|
|
1310
|
+
}
|
|
1311
|
+
function RuntimeConfigReportConfigFromJSON(json) {
|
|
1312
|
+
return RuntimeConfigReportConfigFromJSONTyped(json, false);
|
|
1313
|
+
}
|
|
1314
|
+
function RuntimeConfigReportConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
1315
|
+
if (json == null) {
|
|
1316
|
+
return json;
|
|
1317
|
+
}
|
|
1318
|
+
return {
|
|
1319
|
+
"enabled": json["enabled"] == null ? void 0 : json["enabled"],
|
|
1320
|
+
"sampleRate": json["sampleRate"] == null ? void 0 : json["sampleRate"],
|
|
1321
|
+
"endpoint": json["endpoint"] == null ? void 0 : json["endpoint"]
|
|
1322
|
+
};
|
|
1323
|
+
}
|
|
1324
|
+
function RuntimeConfigReportConfigToJSON(json) {
|
|
1325
|
+
return RuntimeConfigReportConfigToJSONTyped(json, false);
|
|
1326
|
+
}
|
|
1327
|
+
function RuntimeConfigReportConfigToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1328
|
+
if (value == null) {
|
|
1329
|
+
return value;
|
|
1330
|
+
}
|
|
1331
|
+
return {
|
|
1332
|
+
"enabled": value["enabled"],
|
|
1333
|
+
"sampleRate": value["sampleRate"],
|
|
1334
|
+
"endpoint": value["endpoint"]
|
|
1335
|
+
};
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
// src/gen/models/RuntimeConfig.ts
|
|
1339
|
+
function instanceOfRuntimeConfig(value) {
|
|
1340
|
+
return true;
|
|
1341
|
+
}
|
|
1342
|
+
function RuntimeConfigFromJSON(json) {
|
|
1343
|
+
return RuntimeConfigFromJSONTyped(json, false);
|
|
1344
|
+
}
|
|
1345
|
+
function RuntimeConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
1346
|
+
if (json == null) {
|
|
1347
|
+
return json;
|
|
1348
|
+
}
|
|
1349
|
+
return {
|
|
1350
|
+
"killSwitches": json["killSwitches"] == null ? void 0 : json["killSwitches"],
|
|
1351
|
+
"blockedComponents": json["blockedComponents"] == null ? void 0 : json["blockedComponents"].map(BlockedComponentFromJSON),
|
|
1352
|
+
"features": json["features"] == null ? void 0 : json["features"],
|
|
1353
|
+
"debug": json["debug"] == null ? void 0 : json["debug"],
|
|
1354
|
+
"reportConfig": json["reportConfig"] == null ? void 0 : RuntimeConfigReportConfigFromJSON(json["reportConfig"])
|
|
1355
|
+
};
|
|
1356
|
+
}
|
|
1357
|
+
function RuntimeConfigToJSON(json) {
|
|
1358
|
+
return RuntimeConfigToJSONTyped(json, false);
|
|
1359
|
+
}
|
|
1360
|
+
function RuntimeConfigToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1361
|
+
if (value == null) {
|
|
1362
|
+
return value;
|
|
1363
|
+
}
|
|
1364
|
+
return {
|
|
1365
|
+
"killSwitches": value["killSwitches"],
|
|
1366
|
+
"blockedComponents": value["blockedComponents"] == null ? void 0 : value["blockedComponents"].map(BlockedComponentToJSON),
|
|
1367
|
+
"features": value["features"],
|
|
1368
|
+
"debug": value["debug"],
|
|
1369
|
+
"reportConfig": RuntimeConfigReportConfigToJSON(value["reportConfig"])
|
|
1370
|
+
};
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
// src/gen/models/PageResolveResult.ts
|
|
1374
|
+
function instanceOfPageResolveResult(value) {
|
|
1375
|
+
if (!("pageUid" in value) || value["pageUid"] === void 0) return false;
|
|
1376
|
+
if (!("pageVersionId" in value) || value["pageVersionId"] === void 0) return false;
|
|
1377
|
+
if (!("pageJson" in value) || value["pageJson"] === void 0) return false;
|
|
1378
|
+
if (!("manifest" in value) || value["manifest"] === void 0) return false;
|
|
1379
|
+
if (!("runtimeConfig" in value) || value["runtimeConfig"] === void 0) return false;
|
|
1380
|
+
if (!("runtimeVersion" in value) || value["runtimeVersion"] === void 0) return false;
|
|
1381
|
+
return true;
|
|
1382
|
+
}
|
|
1383
|
+
function PageResolveResultFromJSON(json) {
|
|
1384
|
+
return PageResolveResultFromJSONTyped(json, false);
|
|
1385
|
+
}
|
|
1386
|
+
function PageResolveResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
1387
|
+
if (json == null) {
|
|
1388
|
+
return json;
|
|
1389
|
+
}
|
|
1390
|
+
return {
|
|
1391
|
+
"pageUid": json["pageUid"],
|
|
1392
|
+
"pageVersionId": json["pageVersionId"],
|
|
1393
|
+
"pageJson": json["pageJson"],
|
|
1394
|
+
"manifest": PageManifestFromJSON(json["manifest"]),
|
|
1395
|
+
"runtimeConfig": RuntimeConfigFromJSON(json["runtimeConfig"]),
|
|
1396
|
+
"runtimeVersion": json["runtimeVersion"],
|
|
1397
|
+
"isPreview": json["isPreview"] == null ? void 0 : json["isPreview"]
|
|
1398
|
+
};
|
|
1399
|
+
}
|
|
1400
|
+
function PageResolveResultToJSON(json) {
|
|
1401
|
+
return PageResolveResultToJSONTyped(json, false);
|
|
1402
|
+
}
|
|
1403
|
+
function PageResolveResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1404
|
+
if (value == null) {
|
|
1405
|
+
return value;
|
|
1406
|
+
}
|
|
1407
|
+
return {
|
|
1408
|
+
"pageUid": value["pageUid"],
|
|
1409
|
+
"pageVersionId": value["pageVersionId"],
|
|
1410
|
+
"pageJson": value["pageJson"],
|
|
1411
|
+
"manifest": PageManifestToJSON(value["manifest"]),
|
|
1412
|
+
"runtimeConfig": RuntimeConfigToJSON(value["runtimeConfig"]),
|
|
1413
|
+
"runtimeVersion": value["runtimeVersion"],
|
|
1414
|
+
"isPreview": value["isPreview"]
|
|
1415
|
+
};
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
// src/gen/models/PageResolveResponse.ts
|
|
1419
|
+
function instanceOfPageResolveResponse(value) {
|
|
1420
|
+
if (!("success" in value) || value["success"] === void 0) return false;
|
|
1421
|
+
return true;
|
|
1422
|
+
}
|
|
1423
|
+
function PageResolveResponseFromJSON(json) {
|
|
1424
|
+
return PageResolveResponseFromJSONTyped(json, false);
|
|
1425
|
+
}
|
|
1426
|
+
function PageResolveResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1427
|
+
if (json == null) {
|
|
1428
|
+
return json;
|
|
1429
|
+
}
|
|
1430
|
+
return {
|
|
1431
|
+
"success": json["success"],
|
|
1432
|
+
"data": json["data"] == null ? void 0 : PageResolveResultFromJSON(json["data"]),
|
|
1433
|
+
"code": json["code"] == null ? void 0 : json["code"],
|
|
1434
|
+
"message": json["message"] == null ? void 0 : json["message"],
|
|
1435
|
+
"traceId": json["traceId"] == null ? void 0 : json["traceId"]
|
|
1436
|
+
};
|
|
1437
|
+
}
|
|
1438
|
+
function PageResolveResponseToJSON(json) {
|
|
1439
|
+
return PageResolveResponseToJSONTyped(json, false);
|
|
1440
|
+
}
|
|
1441
|
+
function PageResolveResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1442
|
+
if (value == null) {
|
|
1443
|
+
return value;
|
|
1444
|
+
}
|
|
1445
|
+
return {
|
|
1446
|
+
"success": value["success"],
|
|
1447
|
+
"data": PageResolveResultToJSON(value["data"]),
|
|
1448
|
+
"code": value["code"],
|
|
1449
|
+
"message": value["message"],
|
|
1450
|
+
"traceId": value["traceId"]
|
|
1451
|
+
};
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
// src/gen/models/QueryDataBatch200Response.ts
|
|
1455
|
+
function instanceOfQueryDataBatch200Response(value) {
|
|
1456
|
+
if (!("success" in value) || value["success"] === void 0) return false;
|
|
1457
|
+
return true;
|
|
1458
|
+
}
|
|
1459
|
+
function QueryDataBatch200ResponseFromJSON(json) {
|
|
1460
|
+
return QueryDataBatch200ResponseFromJSONTyped(json, false);
|
|
1461
|
+
}
|
|
1462
|
+
function QueryDataBatch200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1463
|
+
if (json == null) {
|
|
1464
|
+
return json;
|
|
1465
|
+
}
|
|
1466
|
+
return {
|
|
1467
|
+
"success": json["success"],
|
|
1468
|
+
"data": json["data"] == null ? void 0 : json["data"].map(DataQueryResponseFromJSON),
|
|
1469
|
+
"traceId": json["traceId"] == null ? void 0 : json["traceId"]
|
|
1470
|
+
};
|
|
1471
|
+
}
|
|
1472
|
+
function QueryDataBatch200ResponseToJSON(json) {
|
|
1473
|
+
return QueryDataBatch200ResponseToJSONTyped(json, false);
|
|
1474
|
+
}
|
|
1475
|
+
function QueryDataBatch200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1476
|
+
if (value == null) {
|
|
1477
|
+
return value;
|
|
1478
|
+
}
|
|
1479
|
+
return {
|
|
1480
|
+
"success": value["success"],
|
|
1481
|
+
"data": value["data"] == null ? void 0 : value["data"].map(DataQueryResponseToJSON),
|
|
1482
|
+
"traceId": value["traceId"]
|
|
1483
|
+
};
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
// src/gen/models/QueryDataBatchRequest.ts
|
|
1487
|
+
function instanceOfQueryDataBatchRequest(value) {
|
|
1488
|
+
if (!("queries" in value) || value["queries"] === void 0) return false;
|
|
1489
|
+
return true;
|
|
1490
|
+
}
|
|
1491
|
+
function QueryDataBatchRequestFromJSON(json) {
|
|
1492
|
+
return QueryDataBatchRequestFromJSONTyped(json, false);
|
|
1493
|
+
}
|
|
1494
|
+
function QueryDataBatchRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
1495
|
+
if (json == null) {
|
|
1496
|
+
return json;
|
|
1497
|
+
}
|
|
1498
|
+
return {
|
|
1499
|
+
"queries": json["queries"].map(DataQueryRequestFromJSON)
|
|
1500
|
+
};
|
|
1501
|
+
}
|
|
1502
|
+
function QueryDataBatchRequestToJSON(json) {
|
|
1503
|
+
return QueryDataBatchRequestToJSONTyped(json, false);
|
|
1504
|
+
}
|
|
1505
|
+
function QueryDataBatchRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1506
|
+
if (value == null) {
|
|
1507
|
+
return value;
|
|
1508
|
+
}
|
|
1509
|
+
return {
|
|
1510
|
+
"queries": value["queries"].map(DataQueryRequestToJSON)
|
|
1511
|
+
};
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
// src/gen/models/ResolvePageBatch200Response.ts
|
|
1515
|
+
function instanceOfResolvePageBatch200Response(value) {
|
|
1516
|
+
if (!("success" in value) || value["success"] === void 0) return false;
|
|
1517
|
+
return true;
|
|
1518
|
+
}
|
|
1519
|
+
function ResolvePageBatch200ResponseFromJSON(json) {
|
|
1520
|
+
return ResolvePageBatch200ResponseFromJSONTyped(json, false);
|
|
1521
|
+
}
|
|
1522
|
+
function ResolvePageBatch200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1523
|
+
if (json == null) {
|
|
1524
|
+
return json;
|
|
1525
|
+
}
|
|
1526
|
+
return {
|
|
1527
|
+
"success": json["success"],
|
|
1528
|
+
"data": json["data"] == null ? void 0 : json["data"].map(PageResolveResultFromJSON),
|
|
1529
|
+
"traceId": json["traceId"] == null ? void 0 : json["traceId"]
|
|
1530
|
+
};
|
|
1531
|
+
}
|
|
1532
|
+
function ResolvePageBatch200ResponseToJSON(json) {
|
|
1533
|
+
return ResolvePageBatch200ResponseToJSONTyped(json, false);
|
|
1534
|
+
}
|
|
1535
|
+
function ResolvePageBatch200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1536
|
+
if (value == null) {
|
|
1537
|
+
return value;
|
|
1538
|
+
}
|
|
1539
|
+
return {
|
|
1540
|
+
"success": value["success"],
|
|
1541
|
+
"data": value["data"] == null ? void 0 : value["data"].map(PageResolveResultToJSON),
|
|
1542
|
+
"traceId": value["traceId"]
|
|
1543
|
+
};
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
// src/gen/models/ResolvePageBatchRequest.ts
|
|
1547
|
+
var ResolvePageBatchRequestChannelEnum = {
|
|
1548
|
+
preview: "preview",
|
|
1549
|
+
prod: "prod",
|
|
1550
|
+
gray: "gray"
|
|
1551
|
+
};
|
|
1552
|
+
function instanceOfResolvePageBatchRequest(value) {
|
|
1553
|
+
if (!("pageUids" in value) || value["pageUids"] === void 0) return false;
|
|
1554
|
+
return true;
|
|
1555
|
+
}
|
|
1556
|
+
function ResolvePageBatchRequestFromJSON(json) {
|
|
1557
|
+
return ResolvePageBatchRequestFromJSONTyped(json, false);
|
|
1558
|
+
}
|
|
1559
|
+
function ResolvePageBatchRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
1560
|
+
if (json == null) {
|
|
1561
|
+
return json;
|
|
1562
|
+
}
|
|
1563
|
+
return {
|
|
1564
|
+
"pageUids": json["pageUids"],
|
|
1565
|
+
"channel": json["channel"] == null ? void 0 : json["channel"]
|
|
1566
|
+
};
|
|
1567
|
+
}
|
|
1568
|
+
function ResolvePageBatchRequestToJSON(json) {
|
|
1569
|
+
return ResolvePageBatchRequestToJSONTyped(json, false);
|
|
1570
|
+
}
|
|
1571
|
+
function ResolvePageBatchRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1572
|
+
if (value == null) {
|
|
1573
|
+
return value;
|
|
1574
|
+
}
|
|
1575
|
+
return {
|
|
1576
|
+
"pageUids": value["pageUids"],
|
|
1577
|
+
"channel": value["channel"]
|
|
1578
|
+
};
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
// src/gen/models/TraceContext.ts
|
|
1582
|
+
function instanceOfTraceContext(value) {
|
|
1583
|
+
return true;
|
|
1584
|
+
}
|
|
1585
|
+
function TraceContextFromJSON(json) {
|
|
1586
|
+
return TraceContextFromJSONTyped(json, false);
|
|
1587
|
+
}
|
|
1588
|
+
function TraceContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
1589
|
+
if (json == null) {
|
|
1590
|
+
return json;
|
|
1591
|
+
}
|
|
1592
|
+
return {
|
|
1593
|
+
"traceId": json["traceId"] == null ? void 0 : json["traceId"],
|
|
1594
|
+
"spanId": json["spanId"] == null ? void 0 : json["spanId"],
|
|
1595
|
+
"pageVersionId": json["pageVersionId"] == null ? void 0 : json["pageVersionId"],
|
|
1596
|
+
"componentVersion": json["componentVersion"] == null ? void 0 : json["componentVersion"],
|
|
1597
|
+
"actionId": json["actionId"] == null ? void 0 : json["actionId"]
|
|
1598
|
+
};
|
|
1599
|
+
}
|
|
1600
|
+
function TraceContextToJSON(json) {
|
|
1601
|
+
return TraceContextToJSONTyped(json, false);
|
|
1602
|
+
}
|
|
1603
|
+
function TraceContextToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1604
|
+
if (value == null) {
|
|
1605
|
+
return value;
|
|
1606
|
+
}
|
|
1607
|
+
return {
|
|
1608
|
+
"traceId": value["traceId"],
|
|
1609
|
+
"spanId": value["spanId"],
|
|
1610
|
+
"pageVersionId": value["pageVersionId"],
|
|
1611
|
+
"componentVersion": value["componentVersion"],
|
|
1612
|
+
"actionId": value["actionId"]
|
|
1613
|
+
};
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
// src/gen/models/TrackContext.ts
|
|
1617
|
+
function instanceOfTrackContext(value) {
|
|
1618
|
+
return true;
|
|
1619
|
+
}
|
|
1620
|
+
function TrackContextFromJSON(json) {
|
|
1621
|
+
return TrackContextFromJSONTyped(json, false);
|
|
1622
|
+
}
|
|
1623
|
+
function TrackContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
1624
|
+
if (json == null) {
|
|
1625
|
+
return json;
|
|
1626
|
+
}
|
|
1627
|
+
return {
|
|
1628
|
+
"pageVersionId": json["pageVersionId"] == null ? void 0 : json["pageVersionId"],
|
|
1629
|
+
"componentVersion": json["componentVersion"] == null ? void 0 : json["componentVersion"],
|
|
1630
|
+
"actionId": json["actionId"] == null ? void 0 : json["actionId"],
|
|
1631
|
+
"sessionId": json["sessionId"] == null ? void 0 : json["sessionId"],
|
|
1632
|
+
"deviceId": json["deviceId"] == null ? void 0 : json["deviceId"],
|
|
1633
|
+
"uid": json["uid"] == null ? void 0 : json["uid"],
|
|
1634
|
+
"channel": json["channel"] == null ? void 0 : json["channel"]
|
|
1635
|
+
};
|
|
1636
|
+
}
|
|
1637
|
+
function TrackContextToJSON(json) {
|
|
1638
|
+
return TrackContextToJSONTyped(json, false);
|
|
1639
|
+
}
|
|
1640
|
+
function TrackContextToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1641
|
+
if (value == null) {
|
|
1642
|
+
return value;
|
|
1643
|
+
}
|
|
1644
|
+
return {
|
|
1645
|
+
"pageVersionId": value["pageVersionId"],
|
|
1646
|
+
"componentVersion": value["componentVersion"],
|
|
1647
|
+
"actionId": value["actionId"],
|
|
1648
|
+
"sessionId": value["sessionId"],
|
|
1649
|
+
"deviceId": value["deviceId"],
|
|
1650
|
+
"uid": value["uid"],
|
|
1651
|
+
"channel": value["channel"]
|
|
1652
|
+
};
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
// src/gen/models/TrackEvent.ts
|
|
1656
|
+
var TrackEventEventTypeEnum = {
|
|
1657
|
+
page_view: "page_view",
|
|
1658
|
+
component_view: "component_view",
|
|
1659
|
+
component_click: "component_click",
|
|
1660
|
+
action_trigger: "action_trigger",
|
|
1661
|
+
action_result: "action_result",
|
|
1662
|
+
error: "error",
|
|
1663
|
+
performance: "performance",
|
|
1664
|
+
custom: "custom"
|
|
1665
|
+
};
|
|
1666
|
+
function instanceOfTrackEvent(value) {
|
|
1667
|
+
if (!("eventName" in value) || value["eventName"] === void 0) return false;
|
|
1668
|
+
return true;
|
|
1669
|
+
}
|
|
1670
|
+
function TrackEventFromJSON(json) {
|
|
1671
|
+
return TrackEventFromJSONTyped(json, false);
|
|
1672
|
+
}
|
|
1673
|
+
function TrackEventFromJSONTyped(json, ignoreDiscriminator) {
|
|
1674
|
+
if (json == null) {
|
|
1675
|
+
return json;
|
|
1676
|
+
}
|
|
1677
|
+
return {
|
|
1678
|
+
"eventName": json["eventName"],
|
|
1679
|
+
"eventType": json["eventType"] == null ? void 0 : json["eventType"],
|
|
1680
|
+
"params": json["params"] == null ? void 0 : json["params"],
|
|
1681
|
+
"timestamp": json["timestamp"] == null ? void 0 : json["timestamp"],
|
|
1682
|
+
"context": json["context"] == null ? void 0 : TrackContextFromJSON(json["context"])
|
|
1683
|
+
};
|
|
1684
|
+
}
|
|
1685
|
+
function TrackEventToJSON(json) {
|
|
1686
|
+
return TrackEventToJSONTyped(json, false);
|
|
1687
|
+
}
|
|
1688
|
+
function TrackEventToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1689
|
+
if (value == null) {
|
|
1690
|
+
return value;
|
|
1691
|
+
}
|
|
1692
|
+
return {
|
|
1693
|
+
"eventName": value["eventName"],
|
|
1694
|
+
"eventType": value["eventType"],
|
|
1695
|
+
"params": value["params"],
|
|
1696
|
+
"timestamp": value["timestamp"],
|
|
1697
|
+
"context": TrackContextToJSON(value["context"])
|
|
1698
|
+
};
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
// src/gen/models/TrackRequest.ts
|
|
1702
|
+
function instanceOfTrackRequest(value) {
|
|
1703
|
+
if (!("events" in value) || value["events"] === void 0) return false;
|
|
1704
|
+
return true;
|
|
1705
|
+
}
|
|
1706
|
+
function TrackRequestFromJSON(json) {
|
|
1707
|
+
return TrackRequestFromJSONTyped(json, false);
|
|
1708
|
+
}
|
|
1709
|
+
function TrackRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
1710
|
+
if (json == null) {
|
|
1711
|
+
return json;
|
|
1712
|
+
}
|
|
1713
|
+
return {
|
|
1714
|
+
"events": json["events"].map(TrackEventFromJSON)
|
|
1715
|
+
};
|
|
1716
|
+
}
|
|
1717
|
+
function TrackRequestToJSON(json) {
|
|
1718
|
+
return TrackRequestToJSONTyped(json, false);
|
|
1719
|
+
}
|
|
1720
|
+
function TrackRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1721
|
+
if (value == null) {
|
|
1722
|
+
return value;
|
|
1723
|
+
}
|
|
1724
|
+
return {
|
|
1725
|
+
"events": value["events"].map(TrackEventToJSON)
|
|
1726
|
+
};
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
// src/gen/apis/ActionApi.ts
|
|
1730
|
+
var ActionApi = class extends BaseAPI {
|
|
1731
|
+
/**
|
|
1732
|
+
* 所有业务动作的统一入口,包含: - 认证/鉴权 - 风控检查(限流、黑名单) - 幂等处理 - 审计记录
|
|
1733
|
+
* 执行动作
|
|
1734
|
+
*/
|
|
1735
|
+
async executeActionRaw(requestParameters, initOverrides) {
|
|
1736
|
+
if (requestParameters["actionExecuteRequest"] == null) {
|
|
1737
|
+
throw new RequiredError(
|
|
1738
|
+
"actionExecuteRequest",
|
|
1739
|
+
'Required parameter "actionExecuteRequest" was null or undefined when calling executeAction().'
|
|
1740
|
+
);
|
|
64
1741
|
}
|
|
65
|
-
|
|
1742
|
+
const queryParameters = {};
|
|
1743
|
+
const headerParameters = {};
|
|
1744
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1745
|
+
let urlPath = `/api/actions/execute`;
|
|
1746
|
+
const response = await this.request({
|
|
1747
|
+
path: urlPath,
|
|
1748
|
+
method: "POST",
|
|
1749
|
+
headers: headerParameters,
|
|
1750
|
+
query: queryParameters,
|
|
1751
|
+
body: ActionExecuteRequestToJSON(requestParameters["actionExecuteRequest"])
|
|
1752
|
+
}, initOverrides);
|
|
1753
|
+
return new JSONApiResponse(response, (jsonValue) => ActionExecuteResponseFromJSON(jsonValue));
|
|
66
1754
|
}
|
|
67
1755
|
/**
|
|
68
|
-
*
|
|
1756
|
+
* 所有业务动作的统一入口,包含: - 认证/鉴权 - 风控检查(限流、黑名单) - 幂等处理 - 审计记录
|
|
1757
|
+
* 执行动作
|
|
69
1758
|
*/
|
|
70
|
-
async
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
1759
|
+
async executeAction(requestParameters, initOverrides) {
|
|
1760
|
+
const response = await this.executeActionRaw(requestParameters, initOverrides);
|
|
1761
|
+
return await response.value();
|
|
1762
|
+
}
|
|
1763
|
+
/**
|
|
1764
|
+
* 批量执行多个动作(原子性不保证)
|
|
1765
|
+
* 批量执行动作
|
|
1766
|
+
*/
|
|
1767
|
+
async executeActionBatchRaw(requestParameters, initOverrides) {
|
|
1768
|
+
if (requestParameters["executeActionBatchRequest"] == null) {
|
|
1769
|
+
throw new RequiredError(
|
|
1770
|
+
"executeActionBatchRequest",
|
|
1771
|
+
'Required parameter "executeActionBatchRequest" was null or undefined when calling executeActionBatch().'
|
|
1772
|
+
);
|
|
83
1773
|
}
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
1774
|
+
const queryParameters = {};
|
|
1775
|
+
const headerParameters = {};
|
|
1776
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1777
|
+
let urlPath = `/api/actions/batch`;
|
|
1778
|
+
const response = await this.request({
|
|
1779
|
+
path: urlPath,
|
|
1780
|
+
method: "POST",
|
|
1781
|
+
headers: headerParameters,
|
|
1782
|
+
query: queryParameters,
|
|
1783
|
+
body: ExecuteActionBatchRequestToJSON(requestParameters["executeActionBatchRequest"])
|
|
1784
|
+
}, initOverrides);
|
|
1785
|
+
return new JSONApiResponse(response, (jsonValue) => ExecuteActionBatch200ResponseFromJSON(jsonValue));
|
|
1786
|
+
}
|
|
1787
|
+
/**
|
|
1788
|
+
* 批量执行多个动作(原子性不保证)
|
|
1789
|
+
* 批量执行动作
|
|
1790
|
+
*/
|
|
1791
|
+
async executeActionBatch(requestParameters, initOverrides) {
|
|
1792
|
+
const response = await this.executeActionBatchRaw(requestParameters, initOverrides);
|
|
1793
|
+
return await response.value();
|
|
1794
|
+
}
|
|
1795
|
+
};
|
|
1796
|
+
|
|
1797
|
+
// src/gen/apis/ActivityApi.ts
|
|
1798
|
+
var ActivityApi = class extends BaseAPI {
|
|
1799
|
+
/**
|
|
1800
|
+
* 获取用户在指定活动中的状态
|
|
1801
|
+
* 查询活动状态
|
|
1802
|
+
*/
|
|
1803
|
+
async getActivityStateRaw(requestParameters, initOverrides) {
|
|
1804
|
+
if (requestParameters["activityId"] == null) {
|
|
1805
|
+
throw new RequiredError(
|
|
1806
|
+
"activityId",
|
|
1807
|
+
'Required parameter "activityId" was null or undefined when calling getActivityState().'
|
|
1808
|
+
);
|
|
95
1809
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
});
|
|
103
|
-
clearTimeout(timeoutId);
|
|
104
|
-
let result = await response.json();
|
|
105
|
-
if (this.config.onResponse) {
|
|
106
|
-
result = this.config.onResponse(result);
|
|
107
|
-
}
|
|
108
|
-
if (!result.success) {
|
|
109
|
-
const error = new Error(result.message || "Request failed");
|
|
110
|
-
error.code = result.code;
|
|
111
|
-
throw error;
|
|
112
|
-
}
|
|
113
|
-
return result.data;
|
|
114
|
-
} catch (error) {
|
|
115
|
-
if (this.config.onError) {
|
|
116
|
-
this.config.onError(error);
|
|
117
|
-
}
|
|
118
|
-
throw error;
|
|
1810
|
+
const queryParameters = {};
|
|
1811
|
+
if (requestParameters["activityId"] != null) {
|
|
1812
|
+
queryParameters["activityId"] = requestParameters["activityId"];
|
|
1813
|
+
}
|
|
1814
|
+
if (requestParameters["uid"] != null) {
|
|
1815
|
+
queryParameters["uid"] = requestParameters["uid"];
|
|
119
1816
|
}
|
|
1817
|
+
const headerParameters = {};
|
|
1818
|
+
let urlPath = `/api/activity/state`;
|
|
1819
|
+
const response = await this.request({
|
|
1820
|
+
path: urlPath,
|
|
1821
|
+
method: "GET",
|
|
1822
|
+
headers: headerParameters,
|
|
1823
|
+
query: queryParameters
|
|
1824
|
+
}, initOverrides);
|
|
1825
|
+
return new JSONApiResponse(response, (jsonValue) => ActivityStateResponseFromJSON(jsonValue));
|
|
120
1826
|
}
|
|
121
1827
|
/**
|
|
122
|
-
*
|
|
1828
|
+
* 获取用户在指定活动中的状态
|
|
1829
|
+
* 查询活动状态
|
|
123
1830
|
*/
|
|
124
|
-
async
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
1831
|
+
async getActivityState(requestParameters, initOverrides) {
|
|
1832
|
+
const response = await this.getActivityStateRaw(requestParameters, initOverrides);
|
|
1833
|
+
return await response.value();
|
|
1834
|
+
}
|
|
1835
|
+
/**
|
|
1836
|
+
* 批量获取用户在多个活动中的状态
|
|
1837
|
+
* 批量查询活动状态
|
|
1838
|
+
*/
|
|
1839
|
+
async getActivityStateBatchRaw(requestParameters, initOverrides) {
|
|
1840
|
+
if (requestParameters["getActivityStateBatchRequest"] == null) {
|
|
1841
|
+
throw new RequiredError(
|
|
1842
|
+
"getActivityStateBatchRequest",
|
|
1843
|
+
'Required parameter "getActivityStateBatchRequest" was null or undefined when calling getActivityStateBatch().'
|
|
1844
|
+
);
|
|
137
1845
|
}
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
1846
|
+
const queryParameters = {};
|
|
1847
|
+
const headerParameters = {};
|
|
1848
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1849
|
+
let urlPath = `/api/activity/state/batch`;
|
|
1850
|
+
const response = await this.request({
|
|
1851
|
+
path: urlPath,
|
|
1852
|
+
method: "POST",
|
|
1853
|
+
headers: headerParameters,
|
|
1854
|
+
query: queryParameters,
|
|
1855
|
+
body: GetActivityStateBatchRequestToJSON(requestParameters["getActivityStateBatchRequest"])
|
|
1856
|
+
}, initOverrides);
|
|
1857
|
+
return new JSONApiResponse(response, (jsonValue) => GetActivityStateBatch200ResponseFromJSON(jsonValue));
|
|
1858
|
+
}
|
|
1859
|
+
/**
|
|
1860
|
+
* 批量获取用户在多个活动中的状态
|
|
1861
|
+
* 批量查询活动状态
|
|
1862
|
+
*/
|
|
1863
|
+
async getActivityStateBatch(requestParameters, initOverrides) {
|
|
1864
|
+
const response = await this.getActivityStateBatchRaw(requestParameters, initOverrides);
|
|
1865
|
+
return await response.value();
|
|
1866
|
+
}
|
|
1867
|
+
};
|
|
1868
|
+
|
|
1869
|
+
// src/gen/apis/DataApi.ts
|
|
1870
|
+
var DataApi = class extends BaseAPI {
|
|
1871
|
+
/**
|
|
1872
|
+
* 数据查询代理,支持: - 白名单校验 - 字段裁剪/脱敏 - 缓存 - 审计
|
|
1873
|
+
* 查询数据
|
|
1874
|
+
*/
|
|
1875
|
+
async queryDataRaw(requestParameters, initOverrides) {
|
|
1876
|
+
if (requestParameters["dataQueryRequest"] == null) {
|
|
1877
|
+
throw new RequiredError(
|
|
1878
|
+
"dataQueryRequest",
|
|
1879
|
+
'Required parameter "dataQueryRequest" was null or undefined when calling queryData().'
|
|
1880
|
+
);
|
|
146
1881
|
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
1882
|
+
const queryParameters = {};
|
|
1883
|
+
const headerParameters = {};
|
|
1884
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1885
|
+
let urlPath = `/api/data/query`;
|
|
1886
|
+
const response = await this.request({
|
|
1887
|
+
path: urlPath,
|
|
1888
|
+
method: "POST",
|
|
1889
|
+
headers: headerParameters,
|
|
1890
|
+
query: queryParameters,
|
|
1891
|
+
body: DataQueryRequestToJSON(requestParameters["dataQueryRequest"])
|
|
1892
|
+
}, initOverrides);
|
|
1893
|
+
return new JSONApiResponse(response, (jsonValue) => DataQueryResponseFromJSON(jsonValue));
|
|
1894
|
+
}
|
|
1895
|
+
/**
|
|
1896
|
+
* 数据查询代理,支持: - 白名单校验 - 字段裁剪/脱敏 - 缓存 - 审计
|
|
1897
|
+
* 查询数据
|
|
1898
|
+
*/
|
|
1899
|
+
async queryData(requestParameters, initOverrides) {
|
|
1900
|
+
const response = await this.queryDataRaw(requestParameters, initOverrides);
|
|
1901
|
+
return await response.value();
|
|
1902
|
+
}
|
|
1903
|
+
/**
|
|
1904
|
+
* 批量执行多个数据查询
|
|
1905
|
+
* 批量查询数据
|
|
1906
|
+
*/
|
|
1907
|
+
async queryDataBatchRaw(requestParameters, initOverrides) {
|
|
1908
|
+
if (requestParameters["queryDataBatchRequest"] == null) {
|
|
1909
|
+
throw new RequiredError(
|
|
1910
|
+
"queryDataBatchRequest",
|
|
1911
|
+
'Required parameter "queryDataBatchRequest" was null or undefined when calling queryDataBatch().'
|
|
1912
|
+
);
|
|
165
1913
|
}
|
|
1914
|
+
const queryParameters = {};
|
|
1915
|
+
const headerParameters = {};
|
|
1916
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1917
|
+
let urlPath = `/api/data/query/batch`;
|
|
1918
|
+
const response = await this.request({
|
|
1919
|
+
path: urlPath,
|
|
1920
|
+
method: "POST",
|
|
1921
|
+
headers: headerParameters,
|
|
1922
|
+
query: queryParameters,
|
|
1923
|
+
body: QueryDataBatchRequestToJSON(requestParameters["queryDataBatchRequest"])
|
|
1924
|
+
}, initOverrides);
|
|
1925
|
+
return new JSONApiResponse(response, (jsonValue) => QueryDataBatch200ResponseFromJSON(jsonValue));
|
|
166
1926
|
}
|
|
167
|
-
// ==================== 页面解析 ====================
|
|
168
1927
|
/**
|
|
169
|
-
*
|
|
170
|
-
*
|
|
1928
|
+
* 批量执行多个数据查询
|
|
1929
|
+
* 批量查询数据
|
|
171
1930
|
*/
|
|
172
|
-
async
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
pageUid: params.pageUid,
|
|
176
|
-
channel: params.channel,
|
|
177
|
-
uid: params.uid,
|
|
178
|
-
deviceId: params.deviceId,
|
|
179
|
-
previewToken: params.previewToken
|
|
180
|
-
}
|
|
181
|
-
});
|
|
1931
|
+
async queryDataBatch(requestParameters, initOverrides) {
|
|
1932
|
+
const response = await this.queryDataBatchRaw(requestParameters, initOverrides);
|
|
1933
|
+
return await response.value();
|
|
182
1934
|
}
|
|
183
|
-
|
|
1935
|
+
};
|
|
1936
|
+
|
|
1937
|
+
// src/gen/apis/HealthApi.ts
|
|
1938
|
+
var HealthApi = class extends BaseAPI {
|
|
184
1939
|
/**
|
|
185
|
-
*
|
|
186
|
-
*
|
|
1940
|
+
* 检查服务健康状态
|
|
1941
|
+
* 健康检查
|
|
187
1942
|
*/
|
|
188
|
-
async
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
1943
|
+
async healthRaw(initOverrides) {
|
|
1944
|
+
const queryParameters = {};
|
|
1945
|
+
const headerParameters = {};
|
|
1946
|
+
let urlPath = `/api/health`;
|
|
1947
|
+
const response = await this.request({
|
|
1948
|
+
path: urlPath,
|
|
1949
|
+
method: "GET",
|
|
1950
|
+
headers: headerParameters,
|
|
1951
|
+
query: queryParameters
|
|
1952
|
+
}, initOverrides);
|
|
1953
|
+
return new JSONApiResponse(response, (jsonValue) => HealthResponseFromJSON(jsonValue));
|
|
192
1954
|
}
|
|
193
1955
|
/**
|
|
194
|
-
*
|
|
1956
|
+
* 检查服务健康状态
|
|
1957
|
+
* 健康检查
|
|
195
1958
|
*/
|
|
196
|
-
async
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
params: { activityId, ...params },
|
|
200
|
-
context: {
|
|
201
|
-
deviceId: this.config.deviceId,
|
|
202
|
-
channel: this.config.channel
|
|
203
|
-
}
|
|
204
|
-
});
|
|
1959
|
+
async health(initOverrides) {
|
|
1960
|
+
const response = await this.healthRaw(initOverrides);
|
|
1961
|
+
return await response.value();
|
|
205
1962
|
}
|
|
206
1963
|
/**
|
|
207
|
-
*
|
|
1964
|
+
* 检查服务是否存活
|
|
1965
|
+
* 存活检查
|
|
208
1966
|
*/
|
|
209
|
-
async
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
1967
|
+
async livenessRaw(initOverrides) {
|
|
1968
|
+
const queryParameters = {};
|
|
1969
|
+
const headerParameters = {};
|
|
1970
|
+
let urlPath = `/api/health/live`;
|
|
1971
|
+
const response = await this.request({
|
|
1972
|
+
path: urlPath,
|
|
1973
|
+
method: "GET",
|
|
1974
|
+
headers: headerParameters,
|
|
1975
|
+
query: queryParameters
|
|
1976
|
+
}, initOverrides);
|
|
1977
|
+
return new JSONApiResponse(response, (jsonValue) => HealthResponseFromJSON(jsonValue));
|
|
218
1978
|
}
|
|
219
1979
|
/**
|
|
220
|
-
*
|
|
1980
|
+
* 检查服务是否存活
|
|
1981
|
+
* 存活检查
|
|
221
1982
|
*/
|
|
222
|
-
async
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
params: { activityId, ...params },
|
|
226
|
-
context: {
|
|
227
|
-
deviceId: this.config.deviceId,
|
|
228
|
-
channel: this.config.channel
|
|
229
|
-
}
|
|
230
|
-
});
|
|
1983
|
+
async liveness(initOverrides) {
|
|
1984
|
+
const response = await this.livenessRaw(initOverrides);
|
|
1985
|
+
return await response.value();
|
|
231
1986
|
}
|
|
232
|
-
// ==================== Data Proxy ====================
|
|
233
1987
|
/**
|
|
234
|
-
*
|
|
235
|
-
*
|
|
1988
|
+
* 检查服务是否就绪(可接受流量)
|
|
1989
|
+
* 就绪检查
|
|
236
1990
|
*/
|
|
237
|
-
async
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
1991
|
+
async readinessRaw(initOverrides) {
|
|
1992
|
+
const queryParameters = {};
|
|
1993
|
+
const headerParameters = {};
|
|
1994
|
+
let urlPath = `/api/health/ready`;
|
|
1995
|
+
const response = await this.request({
|
|
1996
|
+
path: urlPath,
|
|
1997
|
+
method: "GET",
|
|
1998
|
+
headers: headerParameters,
|
|
1999
|
+
query: queryParameters
|
|
2000
|
+
}, initOverrides);
|
|
2001
|
+
return new JSONApiResponse(response, (jsonValue) => HealthResponseFromJSON(jsonValue));
|
|
241
2002
|
}
|
|
242
2003
|
/**
|
|
243
|
-
*
|
|
2004
|
+
* 检查服务是否就绪(可接受流量)
|
|
2005
|
+
* 就绪检查
|
|
244
2006
|
*/
|
|
245
|
-
async
|
|
246
|
-
const response = await this.
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
2007
|
+
async readiness(initOverrides) {
|
|
2008
|
+
const response = await this.readinessRaw(initOverrides);
|
|
2009
|
+
return await response.value();
|
|
2010
|
+
}
|
|
2011
|
+
};
|
|
2012
|
+
|
|
2013
|
+
// src/gen/apis/PageApi.ts
|
|
2014
|
+
var PageApi = class extends BaseAPI {
|
|
253
2015
|
/**
|
|
254
|
-
*
|
|
255
|
-
*
|
|
2016
|
+
* 根据页面 UID 解析页面配置,返回: - 页面 JSON Schema - 组件 Manifest(锁定的组件版本清单) - 运行时配置(Kill Switch、Blocked Components 等)
|
|
2017
|
+
* 解析页面
|
|
256
2018
|
*/
|
|
257
|
-
async
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
2019
|
+
async resolvePageRaw(requestParameters, initOverrides) {
|
|
2020
|
+
if (requestParameters["pageUid"] == null) {
|
|
2021
|
+
throw new RequiredError(
|
|
2022
|
+
"pageUid",
|
|
2023
|
+
'Required parameter "pageUid" was null or undefined when calling resolvePage().'
|
|
2024
|
+
);
|
|
2025
|
+
}
|
|
2026
|
+
const queryParameters = {};
|
|
2027
|
+
if (requestParameters["pageUid"] != null) {
|
|
2028
|
+
queryParameters["pageUid"] = requestParameters["pageUid"];
|
|
2029
|
+
}
|
|
2030
|
+
if (requestParameters["channel"] != null) {
|
|
2031
|
+
queryParameters["channel"] = requestParameters["channel"];
|
|
2032
|
+
}
|
|
2033
|
+
if (requestParameters["uid"] != null) {
|
|
2034
|
+
queryParameters["uid"] = requestParameters["uid"];
|
|
2035
|
+
}
|
|
2036
|
+
if (requestParameters["deviceId"] != null) {
|
|
2037
|
+
queryParameters["deviceId"] = requestParameters["deviceId"];
|
|
2038
|
+
}
|
|
2039
|
+
if (requestParameters["previewToken"] != null) {
|
|
2040
|
+
queryParameters["previewToken"] = requestParameters["previewToken"];
|
|
2041
|
+
}
|
|
2042
|
+
const headerParameters = {};
|
|
2043
|
+
let urlPath = `/api/page/resolve`;
|
|
2044
|
+
const response = await this.request({
|
|
2045
|
+
path: urlPath,
|
|
2046
|
+
method: "GET",
|
|
2047
|
+
headers: headerParameters,
|
|
2048
|
+
query: queryParameters
|
|
2049
|
+
}, initOverrides);
|
|
2050
|
+
return new JSONApiResponse(response, (jsonValue) => PageResolveResponseFromJSON(jsonValue));
|
|
261
2051
|
}
|
|
262
2052
|
/**
|
|
263
|
-
*
|
|
2053
|
+
* 根据页面 UID 解析页面配置,返回: - 页面 JSON Schema - 组件 Manifest(锁定的组件版本清单) - 运行时配置(Kill Switch、Blocked Components 等)
|
|
2054
|
+
* 解析页面
|
|
264
2055
|
*/
|
|
265
|
-
async
|
|
266
|
-
await this.
|
|
267
|
-
|
|
268
|
-
eventName,
|
|
269
|
-
params,
|
|
270
|
-
timestamp: Date.now()
|
|
271
|
-
}
|
|
272
|
-
]);
|
|
2056
|
+
async resolvePage(requestParameters, initOverrides) {
|
|
2057
|
+
const response = await this.resolvePageRaw(requestParameters, initOverrides);
|
|
2058
|
+
return await response.value();
|
|
273
2059
|
}
|
|
274
|
-
// ==================== 活动状态 ====================
|
|
275
2060
|
/**
|
|
276
|
-
*
|
|
277
|
-
*
|
|
2061
|
+
* 批量获取多个页面的解析结果
|
|
2062
|
+
* 批量解析页面
|
|
278
2063
|
*/
|
|
279
|
-
async
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
}
|
|
2064
|
+
async resolvePageBatchRaw(requestParameters, initOverrides) {
|
|
2065
|
+
if (requestParameters["resolvePageBatchRequest"] == null) {
|
|
2066
|
+
throw new RequiredError(
|
|
2067
|
+
"resolvePageBatchRequest",
|
|
2068
|
+
'Required parameter "resolvePageBatchRequest" was null or undefined when calling resolvePageBatch().'
|
|
2069
|
+
);
|
|
2070
|
+
}
|
|
2071
|
+
const queryParameters = {};
|
|
2072
|
+
const headerParameters = {};
|
|
2073
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2074
|
+
let urlPath = `/api/page/resolve/batch`;
|
|
2075
|
+
const response = await this.request({
|
|
2076
|
+
path: urlPath,
|
|
2077
|
+
method: "POST",
|
|
2078
|
+
headers: headerParameters,
|
|
2079
|
+
query: queryParameters,
|
|
2080
|
+
body: ResolvePageBatchRequestToJSON(requestParameters["resolvePageBatchRequest"])
|
|
2081
|
+
}, initOverrides);
|
|
2082
|
+
return new JSONApiResponse(response, (jsonValue) => ResolvePageBatch200ResponseFromJSON(jsonValue));
|
|
287
2083
|
}
|
|
288
|
-
// ==================== 健康检查 ====================
|
|
289
2084
|
/**
|
|
290
|
-
*
|
|
291
|
-
*
|
|
2085
|
+
* 批量获取多个页面的解析结果
|
|
2086
|
+
* 批量解析页面
|
|
2087
|
+
*/
|
|
2088
|
+
async resolvePageBatch(requestParameters, initOverrides) {
|
|
2089
|
+
const response = await this.resolvePageBatchRaw(requestParameters, initOverrides);
|
|
2090
|
+
return await response.value();
|
|
2091
|
+
}
|
|
2092
|
+
};
|
|
2093
|
+
var ResolvePageChannelEnum = {
|
|
2094
|
+
preview: "preview",
|
|
2095
|
+
prod: "prod",
|
|
2096
|
+
gray: "gray"
|
|
2097
|
+
};
|
|
2098
|
+
|
|
2099
|
+
// src/gen/apis/TrackApi.ts
|
|
2100
|
+
var TrackApi = class extends BaseAPI {
|
|
2101
|
+
/**
|
|
2102
|
+
* 批量上报埋点事件
|
|
2103
|
+
* 上报埋点
|
|
2104
|
+
*/
|
|
2105
|
+
async trackRaw(requestParameters, initOverrides) {
|
|
2106
|
+
if (requestParameters["trackRequest"] == null) {
|
|
2107
|
+
throw new RequiredError(
|
|
2108
|
+
"trackRequest",
|
|
2109
|
+
'Required parameter "trackRequest" was null or undefined when calling track().'
|
|
2110
|
+
);
|
|
2111
|
+
}
|
|
2112
|
+
const queryParameters = {};
|
|
2113
|
+
const headerParameters = {};
|
|
2114
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2115
|
+
let urlPath = `/api/track`;
|
|
2116
|
+
const response = await this.request({
|
|
2117
|
+
path: urlPath,
|
|
2118
|
+
method: "POST",
|
|
2119
|
+
headers: headerParameters,
|
|
2120
|
+
query: queryParameters,
|
|
2121
|
+
body: TrackRequestToJSON(requestParameters["trackRequest"])
|
|
2122
|
+
}, initOverrides);
|
|
2123
|
+
return new VoidApiResponse(response);
|
|
2124
|
+
}
|
|
2125
|
+
/**
|
|
2126
|
+
* 批量上报埋点事件
|
|
2127
|
+
* 上报埋点
|
|
292
2128
|
*/
|
|
293
|
-
async
|
|
294
|
-
|
|
2129
|
+
async track(requestParameters, initOverrides) {
|
|
2130
|
+
await this.trackRaw(requestParameters, initOverrides);
|
|
295
2131
|
}
|
|
296
2132
|
};
|
|
297
|
-
|
|
298
|
-
|
|
2133
|
+
|
|
2134
|
+
// src/index.ts
|
|
2135
|
+
function stripTrailingSlash(url) {
|
|
2136
|
+
return url.replace(/\/$/, "");
|
|
2137
|
+
}
|
|
2138
|
+
function createFetchWithTimeout(fetchImpl, timeoutMs) {
|
|
2139
|
+
return (async (input, init) => {
|
|
2140
|
+
const controller = new AbortController();
|
|
2141
|
+
const id = setTimeout(() => controller.abort(), timeoutMs);
|
|
2142
|
+
try {
|
|
2143
|
+
return await fetchImpl(input, { ...init, signal: controller.signal });
|
|
2144
|
+
} finally {
|
|
2145
|
+
clearTimeout(id);
|
|
2146
|
+
}
|
|
2147
|
+
});
|
|
2148
|
+
}
|
|
2149
|
+
function normalizeHeaders(initHeaders) {
|
|
2150
|
+
return new Headers(initHeaders ?? {});
|
|
2151
|
+
}
|
|
2152
|
+
function createUserClient(opts) {
|
|
2153
|
+
const timeoutMs = opts.timeoutMs ?? 15e3;
|
|
2154
|
+
const fetchImpl = opts.fetchApi ?? fetch;
|
|
2155
|
+
const fetchWithTimeout = createFetchWithTimeout(fetchImpl, timeoutMs);
|
|
2156
|
+
const headersMiddleware = {
|
|
2157
|
+
async pre(context) {
|
|
2158
|
+
const headers = normalizeHeaders(context.init.headers);
|
|
2159
|
+
if (opts.defaultHeaders) {
|
|
2160
|
+
for (const [k, v] of Object.entries(opts.defaultHeaders)) headers.set(k, v);
|
|
2161
|
+
}
|
|
2162
|
+
if (opts.getAuthToken) {
|
|
2163
|
+
const token = await opts.getAuthToken();
|
|
2164
|
+
if (token) headers.set("Authorization", `Bearer ${token}`);
|
|
2165
|
+
}
|
|
2166
|
+
if (opts.getTraceHeaders) {
|
|
2167
|
+
const traceHeaders = opts.getTraceHeaders();
|
|
2168
|
+
for (const [k, v] of Object.entries(traceHeaders)) headers.set(k, v);
|
|
2169
|
+
}
|
|
2170
|
+
return { url: context.url, init: { ...context.init, headers } };
|
|
2171
|
+
}
|
|
2172
|
+
};
|
|
2173
|
+
const config = new Configuration({
|
|
2174
|
+
basePath: stripTrailingSlash(opts.baseUrl),
|
|
2175
|
+
fetchApi: fetchWithTimeout,
|
|
2176
|
+
middleware: [headersMiddleware],
|
|
2177
|
+
credentials: opts.credentials ?? "omit"
|
|
2178
|
+
});
|
|
2179
|
+
const apiInstances = {};
|
|
2180
|
+
for (const [name, ApiClass] of Object.entries(apis_exports)) {
|
|
2181
|
+
if (typeof ApiClass === "function" && name.endsWith("Api")) {
|
|
2182
|
+
apiInstances[name] = new ApiClass(config);
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2185
|
+
return {
|
|
2186
|
+
config,
|
|
2187
|
+
apis: apiInstances,
|
|
2188
|
+
...apiInstances
|
|
2189
|
+
};
|
|
299
2190
|
}
|
|
300
|
-
var index_default = UserApiClient;
|
|
301
2191
|
// Annotate the CommonJS export names for ESM import in node:
|
|
302
2192
|
0 && (module.exports = {
|
|
303
|
-
|
|
304
|
-
|
|
2193
|
+
ActionApi,
|
|
2194
|
+
ActionContextFromJSON,
|
|
2195
|
+
ActionContextFromJSONTyped,
|
|
2196
|
+
ActionContextToJSON,
|
|
2197
|
+
ActionContextToJSONTyped,
|
|
2198
|
+
ActionExecuteRequestFromJSON,
|
|
2199
|
+
ActionExecuteRequestFromJSONTyped,
|
|
2200
|
+
ActionExecuteRequestToJSON,
|
|
2201
|
+
ActionExecuteRequestToJSONTyped,
|
|
2202
|
+
ActionExecuteResponseFromJSON,
|
|
2203
|
+
ActionExecuteResponseFromJSONTyped,
|
|
2204
|
+
ActionExecuteResponseToJSON,
|
|
2205
|
+
ActionExecuteResponseToJSONTyped,
|
|
2206
|
+
ActivityApi,
|
|
2207
|
+
ActivityStateActivityInfoFromJSON,
|
|
2208
|
+
ActivityStateActivityInfoFromJSONTyped,
|
|
2209
|
+
ActivityStateActivityInfoToJSON,
|
|
2210
|
+
ActivityStateActivityInfoToJSONTyped,
|
|
2211
|
+
ActivityStateFromJSON,
|
|
2212
|
+
ActivityStateFromJSONTyped,
|
|
2213
|
+
ActivityStateResponseFromJSON,
|
|
2214
|
+
ActivityStateResponseFromJSONTyped,
|
|
2215
|
+
ActivityStateResponseToJSON,
|
|
2216
|
+
ActivityStateResponseToJSONTyped,
|
|
2217
|
+
ActivityStateStatusEnum,
|
|
2218
|
+
ActivityStateToJSON,
|
|
2219
|
+
ActivityStateToJSONTyped,
|
|
2220
|
+
BaseResponseVoFromJSON,
|
|
2221
|
+
BaseResponseVoFromJSONTyped,
|
|
2222
|
+
BaseResponseVoToJSON,
|
|
2223
|
+
BaseResponseVoToJSONTyped,
|
|
2224
|
+
BlockedComponentFromJSON,
|
|
2225
|
+
BlockedComponentFromJSONTyped,
|
|
2226
|
+
BlockedComponentToJSON,
|
|
2227
|
+
BlockedComponentToJSONTyped,
|
|
2228
|
+
Configuration,
|
|
2229
|
+
DataApi,
|
|
2230
|
+
DataQueryContextFromJSON,
|
|
2231
|
+
DataQueryContextFromJSONTyped,
|
|
2232
|
+
DataQueryContextToJSON,
|
|
2233
|
+
DataQueryContextToJSONTyped,
|
|
2234
|
+
DataQueryRequestFromJSON,
|
|
2235
|
+
DataQueryRequestFromJSONTyped,
|
|
2236
|
+
DataQueryRequestToJSON,
|
|
2237
|
+
DataQueryRequestToJSONTyped,
|
|
2238
|
+
DataQueryResponseFromJSON,
|
|
2239
|
+
DataQueryResponseFromJSONTyped,
|
|
2240
|
+
DataQueryResponseToJSON,
|
|
2241
|
+
DataQueryResponseToJSONTyped,
|
|
2242
|
+
ErrorDetailFromJSON,
|
|
2243
|
+
ErrorDetailFromJSONTyped,
|
|
2244
|
+
ErrorDetailToJSON,
|
|
2245
|
+
ErrorDetailToJSONTyped,
|
|
2246
|
+
ErrorResponseVoFromJSON,
|
|
2247
|
+
ErrorResponseVoFromJSONTyped,
|
|
2248
|
+
ErrorResponseVoToJSON,
|
|
2249
|
+
ErrorResponseVoToJSONTyped,
|
|
2250
|
+
ExecuteActionBatch200ResponseFromJSON,
|
|
2251
|
+
ExecuteActionBatch200ResponseFromJSONTyped,
|
|
2252
|
+
ExecuteActionBatch200ResponseToJSON,
|
|
2253
|
+
ExecuteActionBatch200ResponseToJSONTyped,
|
|
2254
|
+
ExecuteActionBatchRequestFromJSON,
|
|
2255
|
+
ExecuteActionBatchRequestFromJSONTyped,
|
|
2256
|
+
ExecuteActionBatchRequestToJSON,
|
|
2257
|
+
ExecuteActionBatchRequestToJSONTyped,
|
|
2258
|
+
GetActivityStateBatch200ResponseFromJSON,
|
|
2259
|
+
GetActivityStateBatch200ResponseFromJSONTyped,
|
|
2260
|
+
GetActivityStateBatch200ResponseToJSON,
|
|
2261
|
+
GetActivityStateBatch200ResponseToJSONTyped,
|
|
2262
|
+
GetActivityStateBatchRequestFromJSON,
|
|
2263
|
+
GetActivityStateBatchRequestFromJSONTyped,
|
|
2264
|
+
GetActivityStateBatchRequestToJSON,
|
|
2265
|
+
GetActivityStateBatchRequestToJSONTyped,
|
|
2266
|
+
HealthApi,
|
|
2267
|
+
HealthResponseChecksValueFromJSON,
|
|
2268
|
+
HealthResponseChecksValueFromJSONTyped,
|
|
2269
|
+
HealthResponseChecksValueToJSON,
|
|
2270
|
+
HealthResponseChecksValueToJSONTyped,
|
|
2271
|
+
HealthResponseFromJSON,
|
|
2272
|
+
HealthResponseFromJSONTyped,
|
|
2273
|
+
HealthResponseStatusEnum,
|
|
2274
|
+
HealthResponseToJSON,
|
|
2275
|
+
HealthResponseToJSONTyped,
|
|
2276
|
+
ManifestItemFromJSON,
|
|
2277
|
+
ManifestItemFromJSONTyped,
|
|
2278
|
+
ManifestItemToJSON,
|
|
2279
|
+
ManifestItemToJSONTyped,
|
|
2280
|
+
PageApi,
|
|
2281
|
+
PageManifestFromJSON,
|
|
2282
|
+
PageManifestFromJSONTyped,
|
|
2283
|
+
PageManifestToJSON,
|
|
2284
|
+
PageManifestToJSONTyped,
|
|
2285
|
+
PageResolveResponseFromJSON,
|
|
2286
|
+
PageResolveResponseFromJSONTyped,
|
|
2287
|
+
PageResolveResponseToJSON,
|
|
2288
|
+
PageResolveResponseToJSONTyped,
|
|
2289
|
+
PageResolveResultFromJSON,
|
|
2290
|
+
PageResolveResultFromJSONTyped,
|
|
2291
|
+
PageResolveResultToJSON,
|
|
2292
|
+
PageResolveResultToJSONTyped,
|
|
2293
|
+
QueryDataBatch200ResponseFromJSON,
|
|
2294
|
+
QueryDataBatch200ResponseFromJSONTyped,
|
|
2295
|
+
QueryDataBatch200ResponseToJSON,
|
|
2296
|
+
QueryDataBatch200ResponseToJSONTyped,
|
|
2297
|
+
QueryDataBatchRequestFromJSON,
|
|
2298
|
+
QueryDataBatchRequestFromJSONTyped,
|
|
2299
|
+
QueryDataBatchRequestToJSON,
|
|
2300
|
+
QueryDataBatchRequestToJSONTyped,
|
|
2301
|
+
ResolvePageBatch200ResponseFromJSON,
|
|
2302
|
+
ResolvePageBatch200ResponseFromJSONTyped,
|
|
2303
|
+
ResolvePageBatch200ResponseToJSON,
|
|
2304
|
+
ResolvePageBatch200ResponseToJSONTyped,
|
|
2305
|
+
ResolvePageBatchRequestChannelEnum,
|
|
2306
|
+
ResolvePageBatchRequestFromJSON,
|
|
2307
|
+
ResolvePageBatchRequestFromJSONTyped,
|
|
2308
|
+
ResolvePageBatchRequestToJSON,
|
|
2309
|
+
ResolvePageBatchRequestToJSONTyped,
|
|
2310
|
+
ResolvePageChannelEnum,
|
|
2311
|
+
RuntimeConfigFromJSON,
|
|
2312
|
+
RuntimeConfigFromJSONTyped,
|
|
2313
|
+
RuntimeConfigReportConfigFromJSON,
|
|
2314
|
+
RuntimeConfigReportConfigFromJSONTyped,
|
|
2315
|
+
RuntimeConfigReportConfigToJSON,
|
|
2316
|
+
RuntimeConfigReportConfigToJSONTyped,
|
|
2317
|
+
RuntimeConfigToJSON,
|
|
2318
|
+
RuntimeConfigToJSONTyped,
|
|
2319
|
+
TraceContextFromJSON,
|
|
2320
|
+
TraceContextFromJSONTyped,
|
|
2321
|
+
TraceContextToJSON,
|
|
2322
|
+
TraceContextToJSONTyped,
|
|
2323
|
+
TrackApi,
|
|
2324
|
+
TrackContextFromJSON,
|
|
2325
|
+
TrackContextFromJSONTyped,
|
|
2326
|
+
TrackContextToJSON,
|
|
2327
|
+
TrackContextToJSONTyped,
|
|
2328
|
+
TrackEventEventTypeEnum,
|
|
2329
|
+
TrackEventFromJSON,
|
|
2330
|
+
TrackEventFromJSONTyped,
|
|
2331
|
+
TrackEventToJSON,
|
|
2332
|
+
TrackEventToJSONTyped,
|
|
2333
|
+
TrackRequestFromJSON,
|
|
2334
|
+
TrackRequestFromJSONTyped,
|
|
2335
|
+
TrackRequestToJSON,
|
|
2336
|
+
TrackRequestToJSONTyped,
|
|
2337
|
+
UserActivityStateFromJSON,
|
|
2338
|
+
UserActivityStateFromJSONTyped,
|
|
2339
|
+
UserActivityStateProgressFromJSON,
|
|
2340
|
+
UserActivityStateProgressFromJSONTyped,
|
|
2341
|
+
UserActivityStateProgressToJSON,
|
|
2342
|
+
UserActivityStateProgressToJSONTyped,
|
|
2343
|
+
UserActivityStateToJSON,
|
|
2344
|
+
UserActivityStateToJSONTyped,
|
|
2345
|
+
createUserClient,
|
|
2346
|
+
instanceOfActionContext,
|
|
2347
|
+
instanceOfActionExecuteRequest,
|
|
2348
|
+
instanceOfActionExecuteResponse,
|
|
2349
|
+
instanceOfActivityState,
|
|
2350
|
+
instanceOfActivityStateActivityInfo,
|
|
2351
|
+
instanceOfActivityStateResponse,
|
|
2352
|
+
instanceOfBaseResponseVo,
|
|
2353
|
+
instanceOfBlockedComponent,
|
|
2354
|
+
instanceOfDataQueryContext,
|
|
2355
|
+
instanceOfDataQueryRequest,
|
|
2356
|
+
instanceOfDataQueryResponse,
|
|
2357
|
+
instanceOfErrorDetail,
|
|
2358
|
+
instanceOfErrorResponseVo,
|
|
2359
|
+
instanceOfExecuteActionBatch200Response,
|
|
2360
|
+
instanceOfExecuteActionBatchRequest,
|
|
2361
|
+
instanceOfGetActivityStateBatch200Response,
|
|
2362
|
+
instanceOfGetActivityStateBatchRequest,
|
|
2363
|
+
instanceOfHealthResponse,
|
|
2364
|
+
instanceOfHealthResponseChecksValue,
|
|
2365
|
+
instanceOfManifestItem,
|
|
2366
|
+
instanceOfPageManifest,
|
|
2367
|
+
instanceOfPageResolveResponse,
|
|
2368
|
+
instanceOfPageResolveResult,
|
|
2369
|
+
instanceOfQueryDataBatch200Response,
|
|
2370
|
+
instanceOfQueryDataBatchRequest,
|
|
2371
|
+
instanceOfResolvePageBatch200Response,
|
|
2372
|
+
instanceOfResolvePageBatchRequest,
|
|
2373
|
+
instanceOfRuntimeConfig,
|
|
2374
|
+
instanceOfRuntimeConfigReportConfig,
|
|
2375
|
+
instanceOfTraceContext,
|
|
2376
|
+
instanceOfTrackContext,
|
|
2377
|
+
instanceOfTrackEvent,
|
|
2378
|
+
instanceOfTrackRequest,
|
|
2379
|
+
instanceOfUserActivityState,
|
|
2380
|
+
instanceOfUserActivityStateProgress
|
|
305
2381
|
});
|