@djvlc/openapi-user-client 1.7.14 → 1.8.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 +903 -298
- package/dist/index.d.ts +903 -298
- package/dist/index.js +753 -207
- package/dist/index.mjs +709 -195
- package/openapi/dist/user-api.yaml +474 -130
- package/openapi/src/components/responses/_index.yaml +3 -3
- package/openapi/src/components/schemas/_index.yaml +144 -33
- package/openapi/src/openapi.yaml +10 -0
- package/openapi/src/paths/actions.yaml +15 -0
- package/openapi/src/paths/activities.yaml +101 -0
- package/openapi/src/paths/pages.yaml +96 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -21,9 +21,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
AbortError: () => import_openapi_client_core2.AbortError,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
ActionClientContextFromJSON: () => ActionClientContextFromJSON,
|
|
25
|
+
ActionClientContextFromJSONTyped: () => ActionClientContextFromJSONTyped,
|
|
26
|
+
ActionClientContextToJSON: () => ActionClientContextToJSON,
|
|
27
27
|
ActionDefinitionResponseDataFromJSON: () => ActionDefinitionResponseDataFromJSON,
|
|
28
28
|
ActionDefinitionResponseDataFromJSONTyped: () => ActionDefinitionResponseDataFromJSONTyped,
|
|
29
29
|
ActionDefinitionResponseDataToJSON: () => ActionDefinitionResponseDataToJSON,
|
|
@@ -40,6 +40,10 @@ __export(index_exports, {
|
|
|
40
40
|
ActionManifestToJSON: () => ActionManifestToJSON,
|
|
41
41
|
ActionsApi: () => ActionsApi,
|
|
42
42
|
ActivitiesApi: () => ActivitiesApi,
|
|
43
|
+
ActivityStatusFromJSON: () => ActivityStatusFromJSON,
|
|
44
|
+
ActivityStatusFromJSONTyped: () => ActivityStatusFromJSONTyped,
|
|
45
|
+
ActivityStatusToJSON: () => ActivityStatusToJSON,
|
|
46
|
+
ActivityStatusTypeEnum: () => ActivityStatusTypeEnum,
|
|
43
47
|
ApiError: () => import_openapi_client_core2.ApiError,
|
|
44
48
|
BaseAPI: () => BaseAPI,
|
|
45
49
|
BatchQueryRequestFromJSON: () => BatchQueryRequestFromJSON,
|
|
@@ -57,17 +61,18 @@ __export(index_exports, {
|
|
|
57
61
|
BatchQueryResponseFromJSON: () => BatchQueryResponseFromJSON,
|
|
58
62
|
BatchQueryResponseFromJSONTyped: () => BatchQueryResponseFromJSONTyped,
|
|
59
63
|
BatchQueryResponseToJSON: () => BatchQueryResponseToJSON,
|
|
64
|
+
BlockedComponentItemFromJSON: () => BlockedComponentItemFromJSON,
|
|
65
|
+
BlockedComponentItemFromJSONTyped: () => BlockedComponentItemFromJSONTyped,
|
|
66
|
+
BlockedComponentItemToJSON: () => BlockedComponentItemToJSON,
|
|
60
67
|
ClaimRecordInfoFromJSON: () => ClaimRecordInfoFromJSON,
|
|
61
68
|
ClaimRecordInfoFromJSONTyped: () => ClaimRecordInfoFromJSONTyped,
|
|
62
69
|
ClaimRecordInfoStatusEnum: () => ClaimRecordInfoStatusEnum,
|
|
63
70
|
ClaimRecordInfoToJSON: () => ClaimRecordInfoToJSON,
|
|
64
71
|
ComponentManifestFromJSON: () => ComponentManifestFromJSON,
|
|
65
72
|
ComponentManifestFromJSONTyped: () => ComponentManifestFromJSONTyped,
|
|
73
|
+
ComponentManifestSourceEnum: () => ComponentManifestSourceEnum,
|
|
66
74
|
ComponentManifestToJSON: () => ComponentManifestToJSON,
|
|
67
75
|
Configuration: () => Configuration,
|
|
68
|
-
ErrorDetailFromJSON: () => ErrorDetailFromJSON,
|
|
69
|
-
ErrorDetailFromJSONTyped: () => ErrorDetailFromJSONTyped,
|
|
70
|
-
ErrorDetailToJSON: () => ErrorDetailToJSON,
|
|
71
76
|
ErrorResponseFromJSON: () => ErrorResponseFromJSON,
|
|
72
77
|
ErrorResponseFromJSONTyped: () => ErrorResponseFromJSONTyped,
|
|
73
78
|
ErrorResponseToJSON: () => ErrorResponseToJSON,
|
|
@@ -77,6 +82,9 @@ __export(index_exports, {
|
|
|
77
82
|
ExecuteActionRequestToJSON: () => ExecuteActionRequestToJSON,
|
|
78
83
|
ExecuteActionResponseAllOfDataFromJSON: () => ExecuteActionResponseAllOfDataFromJSON,
|
|
79
84
|
ExecuteActionResponseAllOfDataFromJSONTyped: () => ExecuteActionResponseAllOfDataFromJSONTyped,
|
|
85
|
+
ExecuteActionResponseAllOfDataRiskDecisionFromJSON: () => ExecuteActionResponseAllOfDataRiskDecisionFromJSON,
|
|
86
|
+
ExecuteActionResponseAllOfDataRiskDecisionFromJSONTyped: () => ExecuteActionResponseAllOfDataRiskDecisionFromJSONTyped,
|
|
87
|
+
ExecuteActionResponseAllOfDataRiskDecisionToJSON: () => ExecuteActionResponseAllOfDataRiskDecisionToJSON,
|
|
80
88
|
ExecuteActionResponseAllOfDataToJSON: () => ExecuteActionResponseAllOfDataToJSON,
|
|
81
89
|
ExecuteActionResponseFromJSON: () => ExecuteActionResponseFromJSON,
|
|
82
90
|
ExecuteActionResponseFromJSONTyped: () => ExecuteActionResponseFromJSONTyped,
|
|
@@ -88,15 +96,30 @@ __export(index_exports, {
|
|
|
88
96
|
GetActivityState200ResponseFromJSON: () => GetActivityState200ResponseFromJSON,
|
|
89
97
|
GetActivityState200ResponseFromJSONTyped: () => GetActivityState200ResponseFromJSONTyped,
|
|
90
98
|
GetActivityState200ResponseToJSON: () => GetActivityState200ResponseToJSON,
|
|
99
|
+
GetActivityStatus200ResponseFromJSON: () => GetActivityStatus200ResponseFromJSON,
|
|
100
|
+
GetActivityStatus200ResponseFromJSONTyped: () => GetActivityStatus200ResponseFromJSONTyped,
|
|
101
|
+
GetActivityStatus200ResponseToJSON: () => GetActivityStatus200ResponseToJSON,
|
|
91
102
|
GetClaimRecords200ResponseFromJSON: () => GetClaimRecords200ResponseFromJSON,
|
|
92
103
|
GetClaimRecords200ResponseFromJSONTyped: () => GetClaimRecords200ResponseFromJSONTyped,
|
|
93
104
|
GetClaimRecords200ResponseToJSON: () => GetClaimRecords200ResponseToJSON,
|
|
105
|
+
GetClaimStatus200ResponseFromJSON: () => GetClaimStatus200ResponseFromJSON,
|
|
106
|
+
GetClaimStatus200ResponseFromJSONTyped: () => GetClaimStatus200ResponseFromJSONTyped,
|
|
107
|
+
GetClaimStatus200ResponseToJSON: () => GetClaimStatus200ResponseToJSON,
|
|
94
108
|
GetLotteryRecords200ResponseFromJSON: () => GetLotteryRecords200ResponseFromJSON,
|
|
95
109
|
GetLotteryRecords200ResponseFromJSONTyped: () => GetLotteryRecords200ResponseFromJSONTyped,
|
|
96
110
|
GetLotteryRecords200ResponseToJSON: () => GetLotteryRecords200ResponseToJSON,
|
|
111
|
+
GetPageConfig200ResponseFromJSON: () => GetPageConfig200ResponseFromJSON,
|
|
112
|
+
GetPageConfig200ResponseFromJSONTyped: () => GetPageConfig200ResponseFromJSONTyped,
|
|
113
|
+
GetPageConfig200ResponseToJSON: () => GetPageConfig200ResponseToJSON,
|
|
114
|
+
GetPageManifest200ResponseFromJSON: () => GetPageManifest200ResponseFromJSON,
|
|
115
|
+
GetPageManifest200ResponseFromJSONTyped: () => GetPageManifest200ResponseFromJSONTyped,
|
|
116
|
+
GetPageManifest200ResponseToJSON: () => GetPageManifest200ResponseToJSON,
|
|
97
117
|
GetSigninCalendar200ResponseFromJSON: () => GetSigninCalendar200ResponseFromJSON,
|
|
98
118
|
GetSigninCalendar200ResponseFromJSONTyped: () => GetSigninCalendar200ResponseFromJSONTyped,
|
|
99
119
|
GetSigninCalendar200ResponseToJSON: () => GetSigninCalendar200ResponseToJSON,
|
|
120
|
+
GetSigninStatus200ResponseFromJSON: () => GetSigninStatus200ResponseFromJSON,
|
|
121
|
+
GetSigninStatus200ResponseFromJSONTyped: () => GetSigninStatus200ResponseFromJSONTyped,
|
|
122
|
+
GetSigninStatus200ResponseToJSON: () => GetSigninStatus200ResponseToJSON,
|
|
100
123
|
GetTenantConfig200ResponseFromJSON: () => GetTenantConfig200ResponseFromJSON,
|
|
101
124
|
GetTenantConfig200ResponseFromJSONTyped: () => GetTenantConfig200ResponseFromJSONTyped,
|
|
102
125
|
GetTenantConfig200ResponseToJSON: () => GetTenantConfig200ResponseToJSON,
|
|
@@ -115,6 +138,10 @@ __export(index_exports, {
|
|
|
115
138
|
IdempotencyConflictResponseFromJSON: () => IdempotencyConflictResponseFromJSON,
|
|
116
139
|
IdempotencyConflictResponseFromJSONTyped: () => IdempotencyConflictResponseFromJSONTyped,
|
|
117
140
|
IdempotencyConflictResponseToJSON: () => IdempotencyConflictResponseToJSON,
|
|
141
|
+
KillSwitchItemFromJSON: () => KillSwitchItemFromJSON,
|
|
142
|
+
KillSwitchItemFromJSONTyped: () => KillSwitchItemFromJSONTyped,
|
|
143
|
+
KillSwitchItemTargetTypeEnum: () => KillSwitchItemTargetTypeEnum,
|
|
144
|
+
KillSwitchItemToJSON: () => KillSwitchItemToJSON,
|
|
118
145
|
LivenessCheck200ResponseFromJSON: () => LivenessCheck200ResponseFromJSON,
|
|
119
146
|
LivenessCheck200ResponseFromJSONTyped: () => LivenessCheck200ResponseFromJSONTyped,
|
|
120
147
|
LivenessCheck200ResponseToJSON: () => LivenessCheck200ResponseToJSON,
|
|
@@ -124,9 +151,6 @@ __export(index_exports, {
|
|
|
124
151
|
LotteryRecordInfoStatusEnum: () => LotteryRecordInfoStatusEnum,
|
|
125
152
|
LotteryRecordInfoToJSON: () => LotteryRecordInfoToJSON,
|
|
126
153
|
NetworkError: () => import_openapi_client_core2.NetworkError,
|
|
127
|
-
OpsConfigBlockedComponentsInnerFromJSON: () => OpsConfigBlockedComponentsInnerFromJSON,
|
|
128
|
-
OpsConfigBlockedComponentsInnerFromJSONTyped: () => OpsConfigBlockedComponentsInnerFromJSONTyped,
|
|
129
|
-
OpsConfigBlockedComponentsInnerToJSON: () => OpsConfigBlockedComponentsInnerToJSON,
|
|
130
154
|
OpsConfigFromJSON: () => OpsConfigFromJSON,
|
|
131
155
|
OpsConfigFromJSONTyped: () => OpsConfigFromJSONTyped,
|
|
132
156
|
OpsConfigToJSON: () => OpsConfigToJSON,
|
|
@@ -195,6 +219,7 @@ __export(index_exports, {
|
|
|
195
219
|
ResolvePageResponseAllOfDataSnapshotFromJSONTyped: () => ResolvePageResponseAllOfDataSnapshotFromJSONTyped,
|
|
196
220
|
ResolvePageResponseAllOfDataSnapshotManifestComponentsFromJSON: () => ResolvePageResponseAllOfDataSnapshotManifestComponentsFromJSON,
|
|
197
221
|
ResolvePageResponseAllOfDataSnapshotManifestComponentsFromJSONTyped: () => ResolvePageResponseAllOfDataSnapshotManifestComponentsFromJSONTyped,
|
|
222
|
+
ResolvePageResponseAllOfDataSnapshotManifestComponentsSourceEnum: () => ResolvePageResponseAllOfDataSnapshotManifestComponentsSourceEnum,
|
|
198
223
|
ResolvePageResponseAllOfDataSnapshotManifestComponentsToJSON: () => ResolvePageResponseAllOfDataSnapshotManifestComponentsToJSON,
|
|
199
224
|
ResolvePageResponseAllOfDataSnapshotManifestEntrypointsFromJSON: () => ResolvePageResponseAllOfDataSnapshotManifestEntrypointsFromJSON,
|
|
200
225
|
ResolvePageResponseAllOfDataSnapshotManifestEntrypointsFromJSONTyped: () => ResolvePageResponseAllOfDataSnapshotManifestEntrypointsFromJSONTyped,
|
|
@@ -338,37 +363,44 @@ __export(index_exports, {
|
|
|
338
363
|
createSilentLogger: () => import_openapi_client_core3.createSilentLogger,
|
|
339
364
|
createUserClient: () => createUserClient,
|
|
340
365
|
createUserConfiguration: () => createUserConfiguration,
|
|
341
|
-
|
|
366
|
+
instanceOfActionClientContext: () => instanceOfActionClientContext,
|
|
342
367
|
instanceOfActionDefinitionResponse: () => instanceOfActionDefinitionResponse,
|
|
343
368
|
instanceOfActionDefinitionResponseData: () => instanceOfActionDefinitionResponseData,
|
|
344
369
|
instanceOfActionEffect: () => instanceOfActionEffect,
|
|
345
370
|
instanceOfActionManifest: () => instanceOfActionManifest,
|
|
371
|
+
instanceOfActivityStatus: () => instanceOfActivityStatus,
|
|
346
372
|
instanceOfBatchQueryRequest: () => instanceOfBatchQueryRequest,
|
|
347
373
|
instanceOfBatchQueryRequestQueriesInner: () => instanceOfBatchQueryRequestQueriesInner,
|
|
348
374
|
instanceOfBatchQueryResponse: () => instanceOfBatchQueryResponse,
|
|
349
375
|
instanceOfBatchQueryResponseDataValue: () => instanceOfBatchQueryResponseDataValue,
|
|
350
376
|
instanceOfBatchQueryResponseDataValueError: () => instanceOfBatchQueryResponseDataValueError,
|
|
377
|
+
instanceOfBlockedComponentItem: () => instanceOfBlockedComponentItem,
|
|
351
378
|
instanceOfClaimRecordInfo: () => instanceOfClaimRecordInfo,
|
|
352
379
|
instanceOfComponentManifest: () => instanceOfComponentManifest,
|
|
353
|
-
instanceOfErrorDetail: () => instanceOfErrorDetail,
|
|
354
380
|
instanceOfErrorResponse: () => instanceOfErrorResponse,
|
|
355
381
|
instanceOfExecuteActionRequest: () => instanceOfExecuteActionRequest,
|
|
356
382
|
instanceOfExecuteActionResponse: () => instanceOfExecuteActionResponse,
|
|
357
383
|
instanceOfExecuteActionResponseAllOfData: () => instanceOfExecuteActionResponseAllOfData,
|
|
384
|
+
instanceOfExecuteActionResponseAllOfDataRiskDecision: () => instanceOfExecuteActionResponseAllOfDataRiskDecision,
|
|
358
385
|
instanceOfGetActivityInfo200Response: () => instanceOfGetActivityInfo200Response,
|
|
359
386
|
instanceOfGetActivityState200Response: () => instanceOfGetActivityState200Response,
|
|
387
|
+
instanceOfGetActivityStatus200Response: () => instanceOfGetActivityStatus200Response,
|
|
360
388
|
instanceOfGetClaimRecords200Response: () => instanceOfGetClaimRecords200Response,
|
|
389
|
+
instanceOfGetClaimStatus200Response: () => instanceOfGetClaimStatus200Response,
|
|
361
390
|
instanceOfGetLotteryRecords200Response: () => instanceOfGetLotteryRecords200Response,
|
|
391
|
+
instanceOfGetPageConfig200Response: () => instanceOfGetPageConfig200Response,
|
|
392
|
+
instanceOfGetPageManifest200Response: () => instanceOfGetPageManifest200Response,
|
|
362
393
|
instanceOfGetSigninCalendar200Response: () => instanceOfGetSigninCalendar200Response,
|
|
394
|
+
instanceOfGetSigninStatus200Response: () => instanceOfGetSigninStatus200Response,
|
|
363
395
|
instanceOfGetTenantConfig200Response: () => instanceOfGetTenantConfig200Response,
|
|
364
396
|
instanceOfHealthResponse: () => instanceOfHealthResponse,
|
|
365
397
|
instanceOfHealthResponseDependenciesValue: () => instanceOfHealthResponseDependenciesValue,
|
|
366
398
|
instanceOfIdempotencyConflictResponse: () => instanceOfIdempotencyConflictResponse,
|
|
367
399
|
instanceOfIdempotencyConflictResponseData: () => instanceOfIdempotencyConflictResponseData,
|
|
400
|
+
instanceOfKillSwitchItem: () => instanceOfKillSwitchItem,
|
|
368
401
|
instanceOfLivenessCheck200Response: () => instanceOfLivenessCheck200Response,
|
|
369
402
|
instanceOfLotteryRecordInfo: () => instanceOfLotteryRecordInfo,
|
|
370
403
|
instanceOfOpsConfig: () => instanceOfOpsConfig,
|
|
371
|
-
instanceOfOpsConfigBlockedComponentsInner: () => instanceOfOpsConfigBlockedComponentsInner,
|
|
372
404
|
instanceOfPageResponse: () => instanceOfPageResponse,
|
|
373
405
|
instanceOfPageResponseAllOfData: () => instanceOfPageResponseAllOfData,
|
|
374
406
|
instanceOfPageResponseAllOfDataMeta: () => instanceOfPageResponseAllOfDataMeta,
|
|
@@ -688,16 +720,16 @@ var JSONApiResponse = class {
|
|
|
688
720
|
}
|
|
689
721
|
};
|
|
690
722
|
|
|
691
|
-
// src/generated/models/
|
|
692
|
-
function
|
|
723
|
+
// src/generated/models/ActionClientContext.ts
|
|
724
|
+
function instanceOfActionClientContext(value) {
|
|
693
725
|
let isInstance = true;
|
|
694
726
|
isInstance = isInstance && "pageVersionId" in value;
|
|
695
727
|
return isInstance;
|
|
696
728
|
}
|
|
697
|
-
function
|
|
698
|
-
return
|
|
729
|
+
function ActionClientContextFromJSON(json) {
|
|
730
|
+
return ActionClientContextFromJSONTyped(json, false);
|
|
699
731
|
}
|
|
700
|
-
function
|
|
732
|
+
function ActionClientContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
701
733
|
if (json === void 0 || json === null) {
|
|
702
734
|
return json;
|
|
703
735
|
}
|
|
@@ -712,7 +744,7 @@ function ActionContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
712
744
|
"extra": !exists(json, "extra") ? void 0 : json["extra"]
|
|
713
745
|
};
|
|
714
746
|
}
|
|
715
|
-
function
|
|
747
|
+
function ActionClientContextToJSON(value) {
|
|
716
748
|
if (value === void 0) {
|
|
717
749
|
return void 0;
|
|
718
750
|
}
|
|
@@ -888,6 +920,54 @@ function ActionManifestToJSON(value) {
|
|
|
888
920
|
};
|
|
889
921
|
}
|
|
890
922
|
|
|
923
|
+
// src/generated/models/ActivityStatus.ts
|
|
924
|
+
var ActivityStatusTypeEnum = {
|
|
925
|
+
CLAIM: "claim",
|
|
926
|
+
SIGNIN: "signin"
|
|
927
|
+
};
|
|
928
|
+
function instanceOfActivityStatus(value) {
|
|
929
|
+
let isInstance = true;
|
|
930
|
+
isInstance = isInstance && "activityUid" in value;
|
|
931
|
+
isInstance = isInstance && "name" in value;
|
|
932
|
+
isInstance = isInstance && "type" in value;
|
|
933
|
+
isInstance = isInstance && "isInProgress" in value;
|
|
934
|
+
isInstance = isInstance && "startAt" in value;
|
|
935
|
+
isInstance = isInstance && "endAt" in value;
|
|
936
|
+
return isInstance;
|
|
937
|
+
}
|
|
938
|
+
function ActivityStatusFromJSON(json) {
|
|
939
|
+
return ActivityStatusFromJSONTyped(json, false);
|
|
940
|
+
}
|
|
941
|
+
function ActivityStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
942
|
+
if (json === void 0 || json === null) {
|
|
943
|
+
return json;
|
|
944
|
+
}
|
|
945
|
+
return {
|
|
946
|
+
"activityUid": json["activityUid"],
|
|
947
|
+
"name": json["name"],
|
|
948
|
+
"type": json["type"],
|
|
949
|
+
"isInProgress": json["isInProgress"],
|
|
950
|
+
"startAt": new Date(json["startAt"]),
|
|
951
|
+
"endAt": new Date(json["endAt"])
|
|
952
|
+
};
|
|
953
|
+
}
|
|
954
|
+
function ActivityStatusToJSON(value) {
|
|
955
|
+
if (value === void 0) {
|
|
956
|
+
return void 0;
|
|
957
|
+
}
|
|
958
|
+
if (value === null) {
|
|
959
|
+
return null;
|
|
960
|
+
}
|
|
961
|
+
return {
|
|
962
|
+
"activityUid": value.activityUid,
|
|
963
|
+
"name": value.name,
|
|
964
|
+
"type": value.type,
|
|
965
|
+
"isInProgress": value.isInProgress,
|
|
966
|
+
"startAt": value.startAt.toISOString(),
|
|
967
|
+
"endAt": value.endAt.toISOString()
|
|
968
|
+
};
|
|
969
|
+
}
|
|
970
|
+
|
|
891
971
|
// src/generated/models/BatchQueryRequestQueriesInner.ts
|
|
892
972
|
function instanceOfBatchQueryRequestQueriesInner(value) {
|
|
893
973
|
let isInstance = true;
|
|
@@ -1076,6 +1156,48 @@ function BatchQueryResponseToJSON(value) {
|
|
|
1076
1156
|
};
|
|
1077
1157
|
}
|
|
1078
1158
|
|
|
1159
|
+
// src/generated/models/BlockedComponentItem.ts
|
|
1160
|
+
function instanceOfBlockedComponentItem(value) {
|
|
1161
|
+
let isInstance = true;
|
|
1162
|
+
isInstance = isInstance && "name" in value;
|
|
1163
|
+
isInstance = isInstance && "reason" in value;
|
|
1164
|
+
return isInstance;
|
|
1165
|
+
}
|
|
1166
|
+
function BlockedComponentItemFromJSON(json) {
|
|
1167
|
+
return BlockedComponentItemFromJSONTyped(json, false);
|
|
1168
|
+
}
|
|
1169
|
+
function BlockedComponentItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
1170
|
+
if (json === void 0 || json === null) {
|
|
1171
|
+
return json;
|
|
1172
|
+
}
|
|
1173
|
+
return {
|
|
1174
|
+
"name": json["name"],
|
|
1175
|
+
"version": !exists(json, "version") ? void 0 : json["version"],
|
|
1176
|
+
"reason": json["reason"],
|
|
1177
|
+
"blockedAt": !exists(json, "blockedAt") ? void 0 : new Date(json["blockedAt"]),
|
|
1178
|
+
"blockedBy": !exists(json, "blockedBy") ? void 0 : json["blockedBy"],
|
|
1179
|
+
"fallbackVersion": !exists(json, "fallbackVersion") ? void 0 : json["fallbackVersion"],
|
|
1180
|
+
"urgent": !exists(json, "urgent") ? void 0 : json["urgent"]
|
|
1181
|
+
};
|
|
1182
|
+
}
|
|
1183
|
+
function BlockedComponentItemToJSON(value) {
|
|
1184
|
+
if (value === void 0) {
|
|
1185
|
+
return void 0;
|
|
1186
|
+
}
|
|
1187
|
+
if (value === null) {
|
|
1188
|
+
return null;
|
|
1189
|
+
}
|
|
1190
|
+
return {
|
|
1191
|
+
"name": value.name,
|
|
1192
|
+
"version": value.version,
|
|
1193
|
+
"reason": value.reason,
|
|
1194
|
+
"blockedAt": value.blockedAt === void 0 ? void 0 : value.blockedAt.toISOString(),
|
|
1195
|
+
"blockedBy": value.blockedBy,
|
|
1196
|
+
"fallbackVersion": value.fallbackVersion,
|
|
1197
|
+
"urgent": value.urgent
|
|
1198
|
+
};
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1079
1201
|
// src/generated/models/ClaimRecordInfo.ts
|
|
1080
1202
|
var ClaimRecordInfoStatusEnum = {
|
|
1081
1203
|
PENDING: "pending",
|
|
@@ -1130,11 +1252,15 @@ function ClaimRecordInfoToJSON(value) {
|
|
|
1130
1252
|
}
|
|
1131
1253
|
|
|
1132
1254
|
// src/generated/models/ComponentManifest.ts
|
|
1255
|
+
var ComponentManifestSourceEnum = {
|
|
1256
|
+
BUNDLED: "bundled",
|
|
1257
|
+
REMOTE: "remote"
|
|
1258
|
+
};
|
|
1133
1259
|
function instanceOfComponentManifest(value) {
|
|
1134
1260
|
let isInstance = true;
|
|
1135
1261
|
isInstance = isInstance && "componentType" in value;
|
|
1136
1262
|
isInstance = isInstance && "version" in value;
|
|
1137
|
-
isInstance = isInstance && "
|
|
1263
|
+
isInstance = isInstance && "source" in value;
|
|
1138
1264
|
return isInstance;
|
|
1139
1265
|
}
|
|
1140
1266
|
function ComponentManifestFromJSON(json) {
|
|
@@ -1147,7 +1273,8 @@ function ComponentManifestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1147
1273
|
return {
|
|
1148
1274
|
"componentType": json["componentType"],
|
|
1149
1275
|
"version": json["version"],
|
|
1150
|
-
"
|
|
1276
|
+
"source": json["source"],
|
|
1277
|
+
"entryUrl": !exists(json, "entryUrl") ? void 0 : json["entryUrl"],
|
|
1151
1278
|
"styleUrl": !exists(json, "styleUrl") ? void 0 : json["styleUrl"],
|
|
1152
1279
|
"integrity": !exists(json, "integrity") ? void 0 : json["integrity"],
|
|
1153
1280
|
"blocked": !exists(json, "blocked") ? void 0 : json["blocked"],
|
|
@@ -1164,6 +1291,7 @@ function ComponentManifestToJSON(value) {
|
|
|
1164
1291
|
return {
|
|
1165
1292
|
"componentType": value.componentType,
|
|
1166
1293
|
"version": value.version,
|
|
1294
|
+
"source": value.source,
|
|
1167
1295
|
"entryUrl": value.entryUrl,
|
|
1168
1296
|
"styleUrl": value.styleUrl,
|
|
1169
1297
|
"integrity": value.integrity,
|
|
@@ -1172,39 +1300,6 @@ function ComponentManifestToJSON(value) {
|
|
|
1172
1300
|
};
|
|
1173
1301
|
}
|
|
1174
1302
|
|
|
1175
|
-
// src/generated/models/ErrorDetail.ts
|
|
1176
|
-
function instanceOfErrorDetail(value) {
|
|
1177
|
-
let isInstance = true;
|
|
1178
|
-
isInstance = isInstance && "message" in value;
|
|
1179
|
-
return isInstance;
|
|
1180
|
-
}
|
|
1181
|
-
function ErrorDetailFromJSON(json) {
|
|
1182
|
-
return ErrorDetailFromJSONTyped(json, false);
|
|
1183
|
-
}
|
|
1184
|
-
function ErrorDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
1185
|
-
if (json === void 0 || json === null) {
|
|
1186
|
-
return json;
|
|
1187
|
-
}
|
|
1188
|
-
return {
|
|
1189
|
-
"field": !exists(json, "field") ? void 0 : json["field"],
|
|
1190
|
-
"message": json["message"],
|
|
1191
|
-
"code": !exists(json, "code") ? void 0 : json["code"]
|
|
1192
|
-
};
|
|
1193
|
-
}
|
|
1194
|
-
function ErrorDetailToJSON(value) {
|
|
1195
|
-
if (value === void 0) {
|
|
1196
|
-
return void 0;
|
|
1197
|
-
}
|
|
1198
|
-
if (value === null) {
|
|
1199
|
-
return null;
|
|
1200
|
-
}
|
|
1201
|
-
return {
|
|
1202
|
-
"field": value.field,
|
|
1203
|
-
"message": value.message,
|
|
1204
|
-
"code": value.code
|
|
1205
|
-
};
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
1303
|
// src/generated/models/ErrorResponse.ts
|
|
1209
1304
|
function instanceOfErrorResponse(value) {
|
|
1210
1305
|
let isInstance = true;
|
|
@@ -1287,7 +1382,7 @@ function ExecuteActionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1287
1382
|
"actionType": json["actionType"],
|
|
1288
1383
|
"actionDefinitionVersionId": !exists(json, "actionDefinitionVersionId") ? void 0 : json["actionDefinitionVersionId"],
|
|
1289
1384
|
"params": json["params"],
|
|
1290
|
-
"context":
|
|
1385
|
+
"context": ActionClientContextFromJSON(json["context"]),
|
|
1291
1386
|
"idempotencyKey": !exists(json, "idempotencyKey") ? void 0 : json["idempotencyKey"]
|
|
1292
1387
|
};
|
|
1293
1388
|
}
|
|
@@ -1302,11 +1397,43 @@ function ExecuteActionRequestToJSON(value) {
|
|
|
1302
1397
|
"actionType": value.actionType,
|
|
1303
1398
|
"actionDefinitionVersionId": value.actionDefinitionVersionId,
|
|
1304
1399
|
"params": value.params,
|
|
1305
|
-
"context":
|
|
1400
|
+
"context": ActionClientContextToJSON(value.context),
|
|
1306
1401
|
"idempotencyKey": value.idempotencyKey
|
|
1307
1402
|
};
|
|
1308
1403
|
}
|
|
1309
1404
|
|
|
1405
|
+
// src/generated/models/ExecuteActionResponseAllOfDataRiskDecision.ts
|
|
1406
|
+
function instanceOfExecuteActionResponseAllOfDataRiskDecision(value) {
|
|
1407
|
+
let isInstance = true;
|
|
1408
|
+
return isInstance;
|
|
1409
|
+
}
|
|
1410
|
+
function ExecuteActionResponseAllOfDataRiskDecisionFromJSON(json) {
|
|
1411
|
+
return ExecuteActionResponseAllOfDataRiskDecisionFromJSONTyped(json, false);
|
|
1412
|
+
}
|
|
1413
|
+
function ExecuteActionResponseAllOfDataRiskDecisionFromJSONTyped(json, ignoreDiscriminator) {
|
|
1414
|
+
if (json === void 0 || json === null) {
|
|
1415
|
+
return json;
|
|
1416
|
+
}
|
|
1417
|
+
return {
|
|
1418
|
+
"allowed": !exists(json, "allowed") ? void 0 : json["allowed"],
|
|
1419
|
+
"reason": !exists(json, "reason") ? void 0 : json["reason"],
|
|
1420
|
+
"code": !exists(json, "code") ? void 0 : json["code"]
|
|
1421
|
+
};
|
|
1422
|
+
}
|
|
1423
|
+
function ExecuteActionResponseAllOfDataRiskDecisionToJSON(value) {
|
|
1424
|
+
if (value === void 0) {
|
|
1425
|
+
return void 0;
|
|
1426
|
+
}
|
|
1427
|
+
if (value === null) {
|
|
1428
|
+
return null;
|
|
1429
|
+
}
|
|
1430
|
+
return {
|
|
1431
|
+
"allowed": value.allowed,
|
|
1432
|
+
"reason": value.reason,
|
|
1433
|
+
"code": value.code
|
|
1434
|
+
};
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1310
1437
|
// src/generated/models/ExecuteActionResponseAllOfData.ts
|
|
1311
1438
|
function instanceOfExecuteActionResponseAllOfData(value) {
|
|
1312
1439
|
let isInstance = true;
|
|
@@ -1330,7 +1457,8 @@ function ExecuteActionResponseAllOfDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
1330
1457
|
"traceId": !exists(json, "traceId") ? void 0 : json["traceId"],
|
|
1331
1458
|
"duration": !exists(json, "duration") ? void 0 : json["duration"],
|
|
1332
1459
|
"retryable": !exists(json, "retryable") ? void 0 : json["retryable"],
|
|
1333
|
-
"retryAfter": !exists(json, "retryAfter") ? void 0 : json["retryAfter"]
|
|
1460
|
+
"retryAfter": !exists(json, "retryAfter") ? void 0 : json["retryAfter"],
|
|
1461
|
+
"riskDecision": !exists(json, "riskDecision") ? void 0 : ExecuteActionResponseAllOfDataRiskDecisionFromJSON(json["riskDecision"])
|
|
1334
1462
|
};
|
|
1335
1463
|
}
|
|
1336
1464
|
function ExecuteActionResponseAllOfDataToJSON(value) {
|
|
@@ -1351,7 +1479,8 @@ function ExecuteActionResponseAllOfDataToJSON(value) {
|
|
|
1351
1479
|
"traceId": value.traceId,
|
|
1352
1480
|
"duration": value.duration,
|
|
1353
1481
|
"retryable": value.retryable,
|
|
1354
|
-
"retryAfter": value.retryAfter
|
|
1482
|
+
"retryAfter": value.retryAfter,
|
|
1483
|
+
"riskDecision": ExecuteActionResponseAllOfDataRiskDecisionToJSON(value.riskDecision)
|
|
1355
1484
|
};
|
|
1356
1485
|
}
|
|
1357
1486
|
|
|
@@ -1938,13 +2067,45 @@ function GetActivityState200ResponseToJSON(value) {
|
|
|
1938
2067
|
};
|
|
1939
2068
|
}
|
|
1940
2069
|
|
|
2070
|
+
// src/generated/models/GetActivityStatus200Response.ts
|
|
2071
|
+
function instanceOfGetActivityStatus200Response(value) {
|
|
2072
|
+
let isInstance = true;
|
|
2073
|
+
return isInstance;
|
|
2074
|
+
}
|
|
2075
|
+
function GetActivityStatus200ResponseFromJSON(json) {
|
|
2076
|
+
return GetActivityStatus200ResponseFromJSONTyped(json, false);
|
|
2077
|
+
}
|
|
2078
|
+
function GetActivityStatus200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2079
|
+
if (json === void 0 || json === null) {
|
|
2080
|
+
return json;
|
|
2081
|
+
}
|
|
2082
|
+
return {
|
|
2083
|
+
"success": !exists(json, "success") ? void 0 : json["success"],
|
|
2084
|
+
"data": !exists(json, "data") ? void 0 : ActivityStatusFromJSON(json["data"])
|
|
2085
|
+
};
|
|
2086
|
+
}
|
|
2087
|
+
function GetActivityStatus200ResponseToJSON(value) {
|
|
2088
|
+
if (value === void 0) {
|
|
2089
|
+
return void 0;
|
|
2090
|
+
}
|
|
2091
|
+
if (value === null) {
|
|
2092
|
+
return null;
|
|
2093
|
+
}
|
|
2094
|
+
return {
|
|
2095
|
+
"success": value.success,
|
|
2096
|
+
"data": ActivityStatusToJSON(value.data)
|
|
2097
|
+
};
|
|
2098
|
+
}
|
|
2099
|
+
|
|
1941
2100
|
// src/generated/models/PaginationMeta.ts
|
|
1942
2101
|
function instanceOfPaginationMeta(value) {
|
|
1943
2102
|
let isInstance = true;
|
|
1944
2103
|
isInstance = isInstance && "page" in value;
|
|
1945
|
-
isInstance = isInstance && "
|
|
2104
|
+
isInstance = isInstance && "pageSize" in value;
|
|
1946
2105
|
isInstance = isInstance && "total" in value;
|
|
1947
2106
|
isInstance = isInstance && "totalPages" in value;
|
|
2107
|
+
isInstance = isInstance && "hasNext" in value;
|
|
2108
|
+
isInstance = isInstance && "hasPrev" in value;
|
|
1948
2109
|
return isInstance;
|
|
1949
2110
|
}
|
|
1950
2111
|
function PaginationMetaFromJSON(json) {
|
|
@@ -1956,9 +2117,11 @@ function PaginationMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1956
2117
|
}
|
|
1957
2118
|
return {
|
|
1958
2119
|
"page": json["page"],
|
|
1959
|
-
"
|
|
2120
|
+
"pageSize": json["pageSize"],
|
|
1960
2121
|
"total": json["total"],
|
|
1961
|
-
"totalPages": json["totalPages"]
|
|
2122
|
+
"totalPages": json["totalPages"],
|
|
2123
|
+
"hasNext": json["hasNext"],
|
|
2124
|
+
"hasPrev": json["hasPrev"]
|
|
1962
2125
|
};
|
|
1963
2126
|
}
|
|
1964
2127
|
function PaginationMetaToJSON(value) {
|
|
@@ -1970,9 +2133,11 @@ function PaginationMetaToJSON(value) {
|
|
|
1970
2133
|
}
|
|
1971
2134
|
return {
|
|
1972
2135
|
"page": value.page,
|
|
1973
|
-
"
|
|
2136
|
+
"pageSize": value.pageSize,
|
|
1974
2137
|
"total": value.total,
|
|
1975
|
-
"totalPages": value.totalPages
|
|
2138
|
+
"totalPages": value.totalPages,
|
|
2139
|
+
"hasNext": value.hasNext,
|
|
2140
|
+
"hasPrev": value.hasPrev
|
|
1976
2141
|
};
|
|
1977
2142
|
}
|
|
1978
2143
|
|
|
@@ -2008,6 +2173,36 @@ function GetClaimRecords200ResponseToJSON(value) {
|
|
|
2008
2173
|
};
|
|
2009
2174
|
}
|
|
2010
2175
|
|
|
2176
|
+
// src/generated/models/GetClaimStatus200Response.ts
|
|
2177
|
+
function instanceOfGetClaimStatus200Response(value) {
|
|
2178
|
+
let isInstance = true;
|
|
2179
|
+
return isInstance;
|
|
2180
|
+
}
|
|
2181
|
+
function GetClaimStatus200ResponseFromJSON(json) {
|
|
2182
|
+
return GetClaimStatus200ResponseFromJSONTyped(json, false);
|
|
2183
|
+
}
|
|
2184
|
+
function GetClaimStatus200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2185
|
+
if (json === void 0 || json === null) {
|
|
2186
|
+
return json;
|
|
2187
|
+
}
|
|
2188
|
+
return {
|
|
2189
|
+
"success": !exists(json, "success") ? void 0 : json["success"],
|
|
2190
|
+
"data": !exists(json, "data") ? void 0 : json["data"]
|
|
2191
|
+
};
|
|
2192
|
+
}
|
|
2193
|
+
function GetClaimStatus200ResponseToJSON(value) {
|
|
2194
|
+
if (value === void 0) {
|
|
2195
|
+
return void 0;
|
|
2196
|
+
}
|
|
2197
|
+
if (value === null) {
|
|
2198
|
+
return null;
|
|
2199
|
+
}
|
|
2200
|
+
return {
|
|
2201
|
+
"success": value.success,
|
|
2202
|
+
"data": value.data
|
|
2203
|
+
};
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2011
2206
|
// src/generated/models/LotteryRecordInfo.ts
|
|
2012
2207
|
var LotteryRecordInfoPrizeTypeEnum = {
|
|
2013
2208
|
PHYSICAL: "physical",
|
|
@@ -2099,6 +2294,221 @@ function GetLotteryRecords200ResponseToJSON(value) {
|
|
|
2099
2294
|
};
|
|
2100
2295
|
}
|
|
2101
2296
|
|
|
2297
|
+
// src/generated/models/KillSwitchItem.ts
|
|
2298
|
+
var KillSwitchItemTargetTypeEnum = {
|
|
2299
|
+
ACTION: "action",
|
|
2300
|
+
COMPONENT: "component",
|
|
2301
|
+
FEATURE: "feature",
|
|
2302
|
+
PAGE: "page",
|
|
2303
|
+
QUERY: "query"
|
|
2304
|
+
};
|
|
2305
|
+
function instanceOfKillSwitchItem(value) {
|
|
2306
|
+
let isInstance = true;
|
|
2307
|
+
isInstance = isInstance && "targetType" in value;
|
|
2308
|
+
isInstance = isInstance && "targetId" in value;
|
|
2309
|
+
isInstance = isInstance && "enabled" in value;
|
|
2310
|
+
return isInstance;
|
|
2311
|
+
}
|
|
2312
|
+
function KillSwitchItemFromJSON(json) {
|
|
2313
|
+
return KillSwitchItemFromJSONTyped(json, false);
|
|
2314
|
+
}
|
|
2315
|
+
function KillSwitchItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
2316
|
+
if (json === void 0 || json === null) {
|
|
2317
|
+
return json;
|
|
2318
|
+
}
|
|
2319
|
+
return {
|
|
2320
|
+
"targetType": json["targetType"],
|
|
2321
|
+
"targetId": json["targetId"],
|
|
2322
|
+
"enabled": json["enabled"],
|
|
2323
|
+
"reason": !exists(json, "reason") ? void 0 : json["reason"],
|
|
2324
|
+
"enabledAt": !exists(json, "enabledAt") ? void 0 : new Date(json["enabledAt"]),
|
|
2325
|
+
"enabledBy": !exists(json, "enabledBy") ? void 0 : json["enabledBy"],
|
|
2326
|
+
"userMessage": !exists(json, "userMessage") ? void 0 : json["userMessage"]
|
|
2327
|
+
};
|
|
2328
|
+
}
|
|
2329
|
+
function KillSwitchItemToJSON(value) {
|
|
2330
|
+
if (value === void 0) {
|
|
2331
|
+
return void 0;
|
|
2332
|
+
}
|
|
2333
|
+
if (value === null) {
|
|
2334
|
+
return null;
|
|
2335
|
+
}
|
|
2336
|
+
return {
|
|
2337
|
+
"targetType": value.targetType,
|
|
2338
|
+
"targetId": value.targetId,
|
|
2339
|
+
"enabled": value.enabled,
|
|
2340
|
+
"reason": value.reason,
|
|
2341
|
+
"enabledAt": value.enabledAt === void 0 ? void 0 : value.enabledAt.toISOString(),
|
|
2342
|
+
"enabledBy": value.enabledBy,
|
|
2343
|
+
"userMessage": value.userMessage
|
|
2344
|
+
};
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
// src/generated/models/OpsConfig.ts
|
|
2348
|
+
function instanceOfOpsConfig(value) {
|
|
2349
|
+
let isInstance = true;
|
|
2350
|
+
isInstance = isInstance && "killSwitch" in value;
|
|
2351
|
+
isInstance = isInstance && "blockedComponents" in value;
|
|
2352
|
+
isInstance = isInstance && "flags" in value;
|
|
2353
|
+
return isInstance;
|
|
2354
|
+
}
|
|
2355
|
+
function OpsConfigFromJSON(json) {
|
|
2356
|
+
return OpsConfigFromJSONTyped(json, false);
|
|
2357
|
+
}
|
|
2358
|
+
function OpsConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
2359
|
+
if (json === void 0 || json === null) {
|
|
2360
|
+
return json;
|
|
2361
|
+
}
|
|
2362
|
+
return {
|
|
2363
|
+
"configVersionId": !exists(json, "configVersionId") ? void 0 : json["configVersionId"],
|
|
2364
|
+
"killSwitch": json["killSwitch"].map(KillSwitchItemFromJSON),
|
|
2365
|
+
"blockedComponents": json["blockedComponents"].map(BlockedComponentItemFromJSON),
|
|
2366
|
+
"flags": json["flags"],
|
|
2367
|
+
"expiresAt": !exists(json, "expiresAt") ? void 0 : new Date(json["expiresAt"])
|
|
2368
|
+
};
|
|
2369
|
+
}
|
|
2370
|
+
function OpsConfigToJSON(value) {
|
|
2371
|
+
if (value === void 0) {
|
|
2372
|
+
return void 0;
|
|
2373
|
+
}
|
|
2374
|
+
if (value === null) {
|
|
2375
|
+
return null;
|
|
2376
|
+
}
|
|
2377
|
+
return {
|
|
2378
|
+
"configVersionId": value.configVersionId,
|
|
2379
|
+
"killSwitch": value.killSwitch.map(KillSwitchItemToJSON),
|
|
2380
|
+
"blockedComponents": value.blockedComponents.map(BlockedComponentItemToJSON),
|
|
2381
|
+
"flags": value.flags,
|
|
2382
|
+
"expiresAt": value.expiresAt === void 0 ? void 0 : value.expiresAt.toISOString()
|
|
2383
|
+
};
|
|
2384
|
+
}
|
|
2385
|
+
|
|
2386
|
+
// src/generated/models/GetPageConfig200Response.ts
|
|
2387
|
+
function instanceOfGetPageConfig200Response(value) {
|
|
2388
|
+
let isInstance = true;
|
|
2389
|
+
return isInstance;
|
|
2390
|
+
}
|
|
2391
|
+
function GetPageConfig200ResponseFromJSON(json) {
|
|
2392
|
+
return GetPageConfig200ResponseFromJSONTyped(json, false);
|
|
2393
|
+
}
|
|
2394
|
+
function GetPageConfig200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2395
|
+
if (json === void 0 || json === null) {
|
|
2396
|
+
return json;
|
|
2397
|
+
}
|
|
2398
|
+
return {
|
|
2399
|
+
"success": !exists(json, "success") ? void 0 : json["success"],
|
|
2400
|
+
"data": !exists(json, "data") ? void 0 : OpsConfigFromJSON(json["data"])
|
|
2401
|
+
};
|
|
2402
|
+
}
|
|
2403
|
+
function GetPageConfig200ResponseToJSON(value) {
|
|
2404
|
+
if (value === void 0) {
|
|
2405
|
+
return void 0;
|
|
2406
|
+
}
|
|
2407
|
+
if (value === null) {
|
|
2408
|
+
return null;
|
|
2409
|
+
}
|
|
2410
|
+
return {
|
|
2411
|
+
"success": value.success,
|
|
2412
|
+
"data": OpsConfigToJSON(value.data)
|
|
2413
|
+
};
|
|
2414
|
+
}
|
|
2415
|
+
|
|
2416
|
+
// src/generated/models/QueryManifest.ts
|
|
2417
|
+
function instanceOfQueryManifest(value) {
|
|
2418
|
+
let isInstance = true;
|
|
2419
|
+
isInstance = isInstance && "queryId" in value;
|
|
2420
|
+
isInstance = isInstance && "queryVersionId" in value;
|
|
2421
|
+
return isInstance;
|
|
2422
|
+
}
|
|
2423
|
+
function QueryManifestFromJSON(json) {
|
|
2424
|
+
return QueryManifestFromJSONTyped(json, false);
|
|
2425
|
+
}
|
|
2426
|
+
function QueryManifestFromJSONTyped(json, ignoreDiscriminator) {
|
|
2427
|
+
if (json === void 0 || json === null) {
|
|
2428
|
+
return json;
|
|
2429
|
+
}
|
|
2430
|
+
return {
|
|
2431
|
+
"queryId": json["queryId"],
|
|
2432
|
+
"queryVersionId": json["queryVersionId"],
|
|
2433
|
+
"cacheTtl": !exists(json, "cacheTtl") ? void 0 : json["cacheTtl"]
|
|
2434
|
+
};
|
|
2435
|
+
}
|
|
2436
|
+
function QueryManifestToJSON(value) {
|
|
2437
|
+
if (value === void 0) {
|
|
2438
|
+
return void 0;
|
|
2439
|
+
}
|
|
2440
|
+
if (value === null) {
|
|
2441
|
+
return null;
|
|
2442
|
+
}
|
|
2443
|
+
return {
|
|
2444
|
+
"queryId": value.queryId,
|
|
2445
|
+
"queryVersionId": value.queryVersionId,
|
|
2446
|
+
"cacheTtl": value.cacheTtl
|
|
2447
|
+
};
|
|
2448
|
+
}
|
|
2449
|
+
|
|
2450
|
+
// src/generated/models/ResourceManifests.ts
|
|
2451
|
+
function instanceOfResourceManifests(value) {
|
|
2452
|
+
let isInstance = true;
|
|
2453
|
+
return isInstance;
|
|
2454
|
+
}
|
|
2455
|
+
function ResourceManifestsFromJSON(json) {
|
|
2456
|
+
return ResourceManifestsFromJSONTyped(json, false);
|
|
2457
|
+
}
|
|
2458
|
+
function ResourceManifestsFromJSONTyped(json, ignoreDiscriminator) {
|
|
2459
|
+
if (json === void 0 || json === null) {
|
|
2460
|
+
return json;
|
|
2461
|
+
}
|
|
2462
|
+
return {
|
|
2463
|
+
"components": !exists(json, "components") ? void 0 : json["components"].map(ComponentManifestFromJSON),
|
|
2464
|
+
"actions": !exists(json, "actions") ? void 0 : json["actions"].map(ActionManifestFromJSON),
|
|
2465
|
+
"queries": !exists(json, "queries") ? void 0 : json["queries"].map(QueryManifestFromJSON)
|
|
2466
|
+
};
|
|
2467
|
+
}
|
|
2468
|
+
function ResourceManifestsToJSON(value) {
|
|
2469
|
+
if (value === void 0) {
|
|
2470
|
+
return void 0;
|
|
2471
|
+
}
|
|
2472
|
+
if (value === null) {
|
|
2473
|
+
return null;
|
|
2474
|
+
}
|
|
2475
|
+
return {
|
|
2476
|
+
"components": value.components === void 0 ? void 0 : value.components.map(ComponentManifestToJSON),
|
|
2477
|
+
"actions": value.actions === void 0 ? void 0 : value.actions.map(ActionManifestToJSON),
|
|
2478
|
+
"queries": value.queries === void 0 ? void 0 : value.queries.map(QueryManifestToJSON)
|
|
2479
|
+
};
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
// src/generated/models/GetPageManifest200Response.ts
|
|
2483
|
+
function instanceOfGetPageManifest200Response(value) {
|
|
2484
|
+
let isInstance = true;
|
|
2485
|
+
return isInstance;
|
|
2486
|
+
}
|
|
2487
|
+
function GetPageManifest200ResponseFromJSON(json) {
|
|
2488
|
+
return GetPageManifest200ResponseFromJSONTyped(json, false);
|
|
2489
|
+
}
|
|
2490
|
+
function GetPageManifest200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2491
|
+
if (json === void 0 || json === null) {
|
|
2492
|
+
return json;
|
|
2493
|
+
}
|
|
2494
|
+
return {
|
|
2495
|
+
"success": !exists(json, "success") ? void 0 : json["success"],
|
|
2496
|
+
"data": !exists(json, "data") ? void 0 : ResourceManifestsFromJSON(json["data"])
|
|
2497
|
+
};
|
|
2498
|
+
}
|
|
2499
|
+
function GetPageManifest200ResponseToJSON(value) {
|
|
2500
|
+
if (value === void 0) {
|
|
2501
|
+
return void 0;
|
|
2502
|
+
}
|
|
2503
|
+
if (value === null) {
|
|
2504
|
+
return null;
|
|
2505
|
+
}
|
|
2506
|
+
return {
|
|
2507
|
+
"success": value.success,
|
|
2508
|
+
"data": ResourceManifestsToJSON(value.data)
|
|
2509
|
+
};
|
|
2510
|
+
}
|
|
2511
|
+
|
|
2102
2512
|
// src/generated/models/SigninCalendarRecordsInnerReward.ts
|
|
2103
2513
|
function instanceOfSigninCalendarRecordsInnerReward(value) {
|
|
2104
2514
|
let isInstance = true;
|
|
@@ -2230,6 +2640,36 @@ function GetSigninCalendar200ResponseToJSON(value) {
|
|
|
2230
2640
|
};
|
|
2231
2641
|
}
|
|
2232
2642
|
|
|
2643
|
+
// src/generated/models/GetSigninStatus200Response.ts
|
|
2644
|
+
function instanceOfGetSigninStatus200Response(value) {
|
|
2645
|
+
let isInstance = true;
|
|
2646
|
+
return isInstance;
|
|
2647
|
+
}
|
|
2648
|
+
function GetSigninStatus200ResponseFromJSON(json) {
|
|
2649
|
+
return GetSigninStatus200ResponseFromJSONTyped(json, false);
|
|
2650
|
+
}
|
|
2651
|
+
function GetSigninStatus200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2652
|
+
if (json === void 0 || json === null) {
|
|
2653
|
+
return json;
|
|
2654
|
+
}
|
|
2655
|
+
return {
|
|
2656
|
+
"success": !exists(json, "success") ? void 0 : json["success"],
|
|
2657
|
+
"data": !exists(json, "data") ? void 0 : json["data"]
|
|
2658
|
+
};
|
|
2659
|
+
}
|
|
2660
|
+
function GetSigninStatus200ResponseToJSON(value) {
|
|
2661
|
+
if (value === void 0) {
|
|
2662
|
+
return void 0;
|
|
2663
|
+
}
|
|
2664
|
+
if (value === null) {
|
|
2665
|
+
return null;
|
|
2666
|
+
}
|
|
2667
|
+
return {
|
|
2668
|
+
"success": value.success,
|
|
2669
|
+
"data": value.data
|
|
2670
|
+
};
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2233
2673
|
// src/generated/models/TenantConfigBlockedComponentsInner.ts
|
|
2234
2674
|
function instanceOfTenantConfigBlockedComponentsInner(value) {
|
|
2235
2675
|
let isInstance = true;
|
|
@@ -2536,73 +2976,6 @@ function LivenessCheck200ResponseToJSON(value) {
|
|
|
2536
2976
|
};
|
|
2537
2977
|
}
|
|
2538
2978
|
|
|
2539
|
-
// src/generated/models/OpsConfigBlockedComponentsInner.ts
|
|
2540
|
-
function instanceOfOpsConfigBlockedComponentsInner(value) {
|
|
2541
|
-
let isInstance = true;
|
|
2542
|
-
return isInstance;
|
|
2543
|
-
}
|
|
2544
|
-
function OpsConfigBlockedComponentsInnerFromJSON(json) {
|
|
2545
|
-
return OpsConfigBlockedComponentsInnerFromJSONTyped(json, false);
|
|
2546
|
-
}
|
|
2547
|
-
function OpsConfigBlockedComponentsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
2548
|
-
if (json === void 0 || json === null) {
|
|
2549
|
-
return json;
|
|
2550
|
-
}
|
|
2551
|
-
return {
|
|
2552
|
-
"componentName": !exists(json, "componentName") ? void 0 : json["componentName"],
|
|
2553
|
-
"componentVersion": !exists(json, "componentVersion") ? void 0 : json["componentVersion"],
|
|
2554
|
-
"reason": !exists(json, "reason") ? void 0 : json["reason"]
|
|
2555
|
-
};
|
|
2556
|
-
}
|
|
2557
|
-
function OpsConfigBlockedComponentsInnerToJSON(value) {
|
|
2558
|
-
if (value === void 0) {
|
|
2559
|
-
return void 0;
|
|
2560
|
-
}
|
|
2561
|
-
if (value === null) {
|
|
2562
|
-
return null;
|
|
2563
|
-
}
|
|
2564
|
-
return {
|
|
2565
|
-
"componentName": value.componentName,
|
|
2566
|
-
"componentVersion": value.componentVersion,
|
|
2567
|
-
"reason": value.reason
|
|
2568
|
-
};
|
|
2569
|
-
}
|
|
2570
|
-
|
|
2571
|
-
// src/generated/models/OpsConfig.ts
|
|
2572
|
-
function instanceOfOpsConfig(value) {
|
|
2573
|
-
let isInstance = true;
|
|
2574
|
-
isInstance = isInstance && "killSwitch" in value;
|
|
2575
|
-
isInstance = isInstance && "blockedComponents" in value;
|
|
2576
|
-
isInstance = isInstance && "flags" in value;
|
|
2577
|
-
return isInstance;
|
|
2578
|
-
}
|
|
2579
|
-
function OpsConfigFromJSON(json) {
|
|
2580
|
-
return OpsConfigFromJSONTyped(json, false);
|
|
2581
|
-
}
|
|
2582
|
-
function OpsConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
2583
|
-
if (json === void 0 || json === null) {
|
|
2584
|
-
return json;
|
|
2585
|
-
}
|
|
2586
|
-
return {
|
|
2587
|
-
"killSwitch": json["killSwitch"],
|
|
2588
|
-
"blockedComponents": json["blockedComponents"].map(OpsConfigBlockedComponentsInnerFromJSON),
|
|
2589
|
-
"flags": json["flags"]
|
|
2590
|
-
};
|
|
2591
|
-
}
|
|
2592
|
-
function OpsConfigToJSON(value) {
|
|
2593
|
-
if (value === void 0) {
|
|
2594
|
-
return void 0;
|
|
2595
|
-
}
|
|
2596
|
-
if (value === null) {
|
|
2597
|
-
return null;
|
|
2598
|
-
}
|
|
2599
|
-
return {
|
|
2600
|
-
"killSwitch": value.killSwitch,
|
|
2601
|
-
"blockedComponents": value.blockedComponents.map(OpsConfigBlockedComponentsInnerToJSON),
|
|
2602
|
-
"flags": value.flags
|
|
2603
|
-
};
|
|
2604
|
-
}
|
|
2605
|
-
|
|
2606
2979
|
// src/generated/models/PageResponseAllOfDataMeta.ts
|
|
2607
2980
|
function instanceOfPageResponseAllOfDataMeta(value) {
|
|
2608
2981
|
let isInstance = true;
|
|
@@ -2910,40 +3283,6 @@ function QueryDefinitionResponseToJSON(value) {
|
|
|
2910
3283
|
};
|
|
2911
3284
|
}
|
|
2912
3285
|
|
|
2913
|
-
// src/generated/models/QueryManifest.ts
|
|
2914
|
-
function instanceOfQueryManifest(value) {
|
|
2915
|
-
let isInstance = true;
|
|
2916
|
-
isInstance = isInstance && "queryId" in value;
|
|
2917
|
-
isInstance = isInstance && "queryVersionId" in value;
|
|
2918
|
-
return isInstance;
|
|
2919
|
-
}
|
|
2920
|
-
function QueryManifestFromJSON(json) {
|
|
2921
|
-
return QueryManifestFromJSONTyped(json, false);
|
|
2922
|
-
}
|
|
2923
|
-
function QueryManifestFromJSONTyped(json, ignoreDiscriminator) {
|
|
2924
|
-
if (json === void 0 || json === null) {
|
|
2925
|
-
return json;
|
|
2926
|
-
}
|
|
2927
|
-
return {
|
|
2928
|
-
"queryId": json["queryId"],
|
|
2929
|
-
"queryVersionId": json["queryVersionId"],
|
|
2930
|
-
"cacheTtl": !exists(json, "cacheTtl") ? void 0 : json["cacheTtl"]
|
|
2931
|
-
};
|
|
2932
|
-
}
|
|
2933
|
-
function QueryManifestToJSON(value) {
|
|
2934
|
-
if (value === void 0) {
|
|
2935
|
-
return void 0;
|
|
2936
|
-
}
|
|
2937
|
-
if (value === null) {
|
|
2938
|
-
return null;
|
|
2939
|
-
}
|
|
2940
|
-
return {
|
|
2941
|
-
"queryId": value.queryId,
|
|
2942
|
-
"queryVersionId": value.queryVersionId,
|
|
2943
|
-
"cacheTtl": value.cacheTtl
|
|
2944
|
-
};
|
|
2945
|
-
}
|
|
2946
|
-
|
|
2947
3286
|
// src/generated/models/ReadinessCheck200Response.ts
|
|
2948
3287
|
function instanceOfReadinessCheck200Response(value) {
|
|
2949
3288
|
let isInstance = true;
|
|
@@ -3131,6 +3470,10 @@ function ResolvePageResponseAllOfDataSnapshotManifestEntrypointsToJSON(value) {
|
|
|
3131
3470
|
}
|
|
3132
3471
|
|
|
3133
3472
|
// src/generated/models/ResolvePageResponseAllOfDataSnapshotManifestComponents.ts
|
|
3473
|
+
var ResolvePageResponseAllOfDataSnapshotManifestComponentsSourceEnum = {
|
|
3474
|
+
BUNDLED: "bundled",
|
|
3475
|
+
REMOTE: "remote"
|
|
3476
|
+
};
|
|
3134
3477
|
function instanceOfResolvePageResponseAllOfDataSnapshotManifestComponents(value) {
|
|
3135
3478
|
let isInstance = true;
|
|
3136
3479
|
return isInstance;
|
|
@@ -3145,6 +3488,7 @@ function ResolvePageResponseAllOfDataSnapshotManifestComponentsFromJSONTyped(jso
|
|
|
3145
3488
|
return {
|
|
3146
3489
|
"name": !exists(json, "name") ? void 0 : json["name"],
|
|
3147
3490
|
"version": !exists(json, "version") ? void 0 : json["version"],
|
|
3491
|
+
"source": !exists(json, "source") ? void 0 : json["source"],
|
|
3148
3492
|
"integrity": !exists(json, "integrity") ? void 0 : json["integrity"],
|
|
3149
3493
|
"assetsUrl": !exists(json, "assetsUrl") ? void 0 : json["assetsUrl"],
|
|
3150
3494
|
"entrypoints": !exists(json, "entrypoints") ? void 0 : ResolvePageResponseAllOfDataSnapshotManifestEntrypointsFromJSON(json["entrypoints"])
|
|
@@ -3160,6 +3504,7 @@ function ResolvePageResponseAllOfDataSnapshotManifestComponentsToJSON(value) {
|
|
|
3160
3504
|
return {
|
|
3161
3505
|
"name": value.name,
|
|
3162
3506
|
"version": value.version,
|
|
3507
|
+
"source": value.source,
|
|
3163
3508
|
"integrity": value.integrity,
|
|
3164
3509
|
"assetsUrl": value.assetsUrl,
|
|
3165
3510
|
"entrypoints": ResolvePageResponseAllOfDataSnapshotManifestEntrypointsToJSON(value.entrypoints)
|
|
@@ -3412,6 +3757,8 @@ function ResolvePageResponseAllOfDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
3412
3757
|
"ops": OpsConfigFromJSON(json["ops"]),
|
|
3413
3758
|
"etag": json["etag"],
|
|
3414
3759
|
"cacheTtlSeconds": json["cacheTtlSeconds"],
|
|
3760
|
+
"traceId": !exists(json, "traceId") ? void 0 : json["traceId"],
|
|
3761
|
+
"runtimeVersion": !exists(json, "runtimeVersion") ? void 0 : json["runtimeVersion"],
|
|
3415
3762
|
"rolloutMatch": !exists(json, "rolloutMatch") ? void 0 : ResolvePageResponseAllOfDataRolloutMatchFromJSON(json["rolloutMatch"]),
|
|
3416
3763
|
"snapshot": !exists(json, "snapshot") ? void 0 : ResolvePageResponseAllOfDataSnapshotFromJSON(json["snapshot"])
|
|
3417
3764
|
};
|
|
@@ -3432,6 +3779,8 @@ function ResolvePageResponseAllOfDataToJSON(value) {
|
|
|
3432
3779
|
"ops": OpsConfigToJSON(value.ops),
|
|
3433
3780
|
"etag": value.etag,
|
|
3434
3781
|
"cacheTtlSeconds": value.cacheTtlSeconds,
|
|
3782
|
+
"traceId": value.traceId,
|
|
3783
|
+
"runtimeVersion": value.runtimeVersion,
|
|
3435
3784
|
"rolloutMatch": ResolvePageResponseAllOfDataRolloutMatchToJSON(value.rolloutMatch),
|
|
3436
3785
|
"snapshot": ResolvePageResponseAllOfDataSnapshotToJSON(value.snapshot)
|
|
3437
3786
|
};
|
|
@@ -3591,38 +3940,6 @@ function ResolveTenantRequestToJSON(value) {
|
|
|
3591
3940
|
};
|
|
3592
3941
|
}
|
|
3593
3942
|
|
|
3594
|
-
// src/generated/models/ResourceManifests.ts
|
|
3595
|
-
function instanceOfResourceManifests(value) {
|
|
3596
|
-
let isInstance = true;
|
|
3597
|
-
return isInstance;
|
|
3598
|
-
}
|
|
3599
|
-
function ResourceManifestsFromJSON(json) {
|
|
3600
|
-
return ResourceManifestsFromJSONTyped(json, false);
|
|
3601
|
-
}
|
|
3602
|
-
function ResourceManifestsFromJSONTyped(json, ignoreDiscriminator) {
|
|
3603
|
-
if (json === void 0 || json === null) {
|
|
3604
|
-
return json;
|
|
3605
|
-
}
|
|
3606
|
-
return {
|
|
3607
|
-
"components": !exists(json, "components") ? void 0 : json["components"].map(ComponentManifestFromJSON),
|
|
3608
|
-
"actions": !exists(json, "actions") ? void 0 : json["actions"].map(ActionManifestFromJSON),
|
|
3609
|
-
"queries": !exists(json, "queries") ? void 0 : json["queries"].map(QueryManifestFromJSON)
|
|
3610
|
-
};
|
|
3611
|
-
}
|
|
3612
|
-
function ResourceManifestsToJSON(value) {
|
|
3613
|
-
if (value === void 0) {
|
|
3614
|
-
return void 0;
|
|
3615
|
-
}
|
|
3616
|
-
if (value === null) {
|
|
3617
|
-
return null;
|
|
3618
|
-
}
|
|
3619
|
-
return {
|
|
3620
|
-
"components": value.components === void 0 ? void 0 : value.components.map(ComponentManifestToJSON),
|
|
3621
|
-
"actions": value.actions === void 0 ? void 0 : value.actions.map(ActionManifestToJSON),
|
|
3622
|
-
"queries": value.queries === void 0 ? void 0 : value.queries.map(QueryManifestToJSON)
|
|
3623
|
-
};
|
|
3624
|
-
}
|
|
3625
|
-
|
|
3626
3943
|
// src/generated/models/SuccessResponse.ts
|
|
3627
3944
|
function instanceOfSuccessResponse(value) {
|
|
3628
3945
|
let isInstance = true;
|
|
@@ -4066,6 +4383,12 @@ var ActionsApi = class extends BaseAPI {
|
|
|
4066
4383
|
const queryParameters = {};
|
|
4067
4384
|
const headerParameters = {};
|
|
4068
4385
|
headerParameters["Content-Type"] = "application/json";
|
|
4386
|
+
if (requestParameters.idempotencyKey !== void 0 && requestParameters.idempotencyKey !== null) {
|
|
4387
|
+
headerParameters["Idempotency-Key"] = String(requestParameters.idempotencyKey);
|
|
4388
|
+
}
|
|
4389
|
+
if (requestParameters.xTraceId !== void 0 && requestParameters.xTraceId !== null) {
|
|
4390
|
+
headerParameters["X-Trace-Id"] = String(requestParameters.xTraceId);
|
|
4391
|
+
}
|
|
4069
4392
|
if (this.configuration && this.configuration.apiKey) {
|
|
4070
4393
|
headerParameters["X-API-Key"] = this.configuration.apiKey("X-API-Key");
|
|
4071
4394
|
}
|
|
@@ -4233,6 +4556,32 @@ var ActivitiesApi = class extends BaseAPI {
|
|
|
4233
4556
|
const response = await this.getActivityStateRaw(requestParameters, initOverrides);
|
|
4234
4557
|
return await response.value();
|
|
4235
4558
|
}
|
|
4559
|
+
/**
|
|
4560
|
+
* 获取活动的当前状态信息,包括是否进行中、时间范围等。 不需要登录,可用于前端判断活动是否在有效期内。
|
|
4561
|
+
* 获取活动状态(兼容)
|
|
4562
|
+
*/
|
|
4563
|
+
async getActivityStatusRaw(requestParameters, initOverrides) {
|
|
4564
|
+
if (requestParameters.activityId === null || requestParameters.activityId === void 0) {
|
|
4565
|
+
throw new RequiredError("activityId", "Required parameter requestParameters.activityId was null or undefined when calling getActivityStatus.");
|
|
4566
|
+
}
|
|
4567
|
+
const queryParameters = {};
|
|
4568
|
+
const headerParameters = {};
|
|
4569
|
+
const response = await this.request({
|
|
4570
|
+
path: `/activities/{activityId}/status`.replace(`{${"activityId"}}`, encodeURIComponent(String(requestParameters.activityId))),
|
|
4571
|
+
method: "GET",
|
|
4572
|
+
headers: headerParameters,
|
|
4573
|
+
query: queryParameters
|
|
4574
|
+
}, initOverrides);
|
|
4575
|
+
return new JSONApiResponse(response, (jsonValue) => GetActivityStatus200ResponseFromJSON(jsonValue));
|
|
4576
|
+
}
|
|
4577
|
+
/**
|
|
4578
|
+
* 获取活动的当前状态信息,包括是否进行中、时间范围等。 不需要登录,可用于前端判断活动是否在有效期内。
|
|
4579
|
+
* 获取活动状态(兼容)
|
|
4580
|
+
*/
|
|
4581
|
+
async getActivityStatus(requestParameters, initOverrides) {
|
|
4582
|
+
const response = await this.getActivityStatusRaw(requestParameters, initOverrides);
|
|
4583
|
+
return await response.value();
|
|
4584
|
+
}
|
|
4236
4585
|
/**
|
|
4237
4586
|
* 获取用户在指定活动中的领取记录
|
|
4238
4587
|
* 获取领取记录
|
|
@@ -4272,6 +4621,45 @@ var ActivitiesApi = class extends BaseAPI {
|
|
|
4272
4621
|
const response = await this.getClaimRecordsRaw(requestParameters, initOverrides);
|
|
4273
4622
|
return await response.value();
|
|
4274
4623
|
}
|
|
4624
|
+
/**
|
|
4625
|
+
* 获取用户在指定活动中的领取状态
|
|
4626
|
+
* 获取领取状态
|
|
4627
|
+
*/
|
|
4628
|
+
async getClaimStatusRaw(requestParameters, initOverrides) {
|
|
4629
|
+
if (requestParameters.activityId === null || requestParameters.activityId === void 0) {
|
|
4630
|
+
throw new RequiredError("activityId", "Required parameter requestParameters.activityId was null or undefined when calling getClaimStatus.");
|
|
4631
|
+
}
|
|
4632
|
+
if (requestParameters.uid === null || requestParameters.uid === void 0) {
|
|
4633
|
+
throw new RequiredError("uid", "Required parameter requestParameters.uid was null or undefined when calling getClaimStatus.");
|
|
4634
|
+
}
|
|
4635
|
+
const queryParameters = {};
|
|
4636
|
+
if (requestParameters.uid !== void 0) {
|
|
4637
|
+
queryParameters["uid"] = requestParameters.uid;
|
|
4638
|
+
}
|
|
4639
|
+
const headerParameters = {};
|
|
4640
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4641
|
+
const token = this.configuration.accessToken;
|
|
4642
|
+
const tokenString = await token("BearerAuth", []);
|
|
4643
|
+
if (tokenString) {
|
|
4644
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4645
|
+
}
|
|
4646
|
+
}
|
|
4647
|
+
const response = await this.request({
|
|
4648
|
+
path: `/activities/{activityId}/claim/status`.replace(`{${"activityId"}}`, encodeURIComponent(String(requestParameters.activityId))),
|
|
4649
|
+
method: "GET",
|
|
4650
|
+
headers: headerParameters,
|
|
4651
|
+
query: queryParameters
|
|
4652
|
+
}, initOverrides);
|
|
4653
|
+
return new JSONApiResponse(response, (jsonValue) => GetClaimStatus200ResponseFromJSON(jsonValue));
|
|
4654
|
+
}
|
|
4655
|
+
/**
|
|
4656
|
+
* 获取用户在指定活动中的领取状态
|
|
4657
|
+
* 获取领取状态
|
|
4658
|
+
*/
|
|
4659
|
+
async getClaimStatus(requestParameters, initOverrides) {
|
|
4660
|
+
const response = await this.getClaimStatusRaw(requestParameters, initOverrides);
|
|
4661
|
+
return await response.value();
|
|
4662
|
+
}
|
|
4275
4663
|
/**
|
|
4276
4664
|
* 获取用户在指定活动中的抽奖记录
|
|
4277
4665
|
* 获取抽奖记录
|
|
@@ -4347,6 +4735,45 @@ var ActivitiesApi = class extends BaseAPI {
|
|
|
4347
4735
|
const response = await this.getSigninCalendarRaw(requestParameters, initOverrides);
|
|
4348
4736
|
return await response.value();
|
|
4349
4737
|
}
|
|
4738
|
+
/**
|
|
4739
|
+
* 获取用户在指定活动中的签到状态
|
|
4740
|
+
* 获取签到状态
|
|
4741
|
+
*/
|
|
4742
|
+
async getSigninStatusRaw(requestParameters, initOverrides) {
|
|
4743
|
+
if (requestParameters.activityId === null || requestParameters.activityId === void 0) {
|
|
4744
|
+
throw new RequiredError("activityId", "Required parameter requestParameters.activityId was null or undefined when calling getSigninStatus.");
|
|
4745
|
+
}
|
|
4746
|
+
if (requestParameters.uid === null || requestParameters.uid === void 0) {
|
|
4747
|
+
throw new RequiredError("uid", "Required parameter requestParameters.uid was null or undefined when calling getSigninStatus.");
|
|
4748
|
+
}
|
|
4749
|
+
const queryParameters = {};
|
|
4750
|
+
if (requestParameters.uid !== void 0) {
|
|
4751
|
+
queryParameters["uid"] = requestParameters.uid;
|
|
4752
|
+
}
|
|
4753
|
+
const headerParameters = {};
|
|
4754
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4755
|
+
const token = this.configuration.accessToken;
|
|
4756
|
+
const tokenString = await token("BearerAuth", []);
|
|
4757
|
+
if (tokenString) {
|
|
4758
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4759
|
+
}
|
|
4760
|
+
}
|
|
4761
|
+
const response = await this.request({
|
|
4762
|
+
path: `/activities/{activityId}/signin/status`.replace(`{${"activityId"}}`, encodeURIComponent(String(requestParameters.activityId))),
|
|
4763
|
+
method: "GET",
|
|
4764
|
+
headers: headerParameters,
|
|
4765
|
+
query: queryParameters
|
|
4766
|
+
}, initOverrides);
|
|
4767
|
+
return new JSONApiResponse(response, (jsonValue) => GetSigninStatus200ResponseFromJSON(jsonValue));
|
|
4768
|
+
}
|
|
4769
|
+
/**
|
|
4770
|
+
* 获取用户在指定活动中的签到状态
|
|
4771
|
+
* 获取签到状态
|
|
4772
|
+
*/
|
|
4773
|
+
async getSigninStatus(requestParameters, initOverrides) {
|
|
4774
|
+
const response = await this.getSigninStatusRaw(requestParameters, initOverrides);
|
|
4775
|
+
return await response.value();
|
|
4776
|
+
}
|
|
4350
4777
|
};
|
|
4351
4778
|
|
|
4352
4779
|
// src/generated/apis/HealthApi.ts
|
|
@@ -4424,6 +4851,90 @@ var HealthApi = class extends BaseAPI {
|
|
|
4424
4851
|
|
|
4425
4852
|
// src/generated/apis/PagesApi.ts
|
|
4426
4853
|
var PagesApi = class extends BaseAPI {
|
|
4854
|
+
/**
|
|
4855
|
+
* 返回当前运维配置(killSwitch、blockedComponents、featureFlags 等)。 用途: - Runtime 启动时获取全局运维配置 - 判断是否有组件被阻断或功能被关闭
|
|
4856
|
+
* 获取运维配置
|
|
4857
|
+
*/
|
|
4858
|
+
async getPageConfigRaw(requestParameters, initOverrides) {
|
|
4859
|
+
const queryParameters = {};
|
|
4860
|
+
if (requestParameters.env !== void 0) {
|
|
4861
|
+
queryParameters["env"] = requestParameters.env;
|
|
4862
|
+
}
|
|
4863
|
+
const headerParameters = {};
|
|
4864
|
+
if (requestParameters.xTraceId !== void 0 && requestParameters.xTraceId !== null) {
|
|
4865
|
+
headerParameters["X-Trace-Id"] = String(requestParameters.xTraceId);
|
|
4866
|
+
}
|
|
4867
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
4868
|
+
headerParameters["X-API-Key"] = this.configuration.apiKey("X-API-Key");
|
|
4869
|
+
}
|
|
4870
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4871
|
+
const token = this.configuration.accessToken;
|
|
4872
|
+
const tokenString = await token("BearerAuth", []);
|
|
4873
|
+
if (tokenString) {
|
|
4874
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4875
|
+
}
|
|
4876
|
+
}
|
|
4877
|
+
const response = await this.request({
|
|
4878
|
+
path: `/page/config`,
|
|
4879
|
+
method: "GET",
|
|
4880
|
+
headers: headerParameters,
|
|
4881
|
+
query: queryParameters
|
|
4882
|
+
}, initOverrides);
|
|
4883
|
+
return new JSONApiResponse(response, (jsonValue) => GetPageConfig200ResponseFromJSON(jsonValue));
|
|
4884
|
+
}
|
|
4885
|
+
/**
|
|
4886
|
+
* 返回当前运维配置(killSwitch、blockedComponents、featureFlags 等)。 用途: - Runtime 启动时获取全局运维配置 - 判断是否有组件被阻断或功能被关闭
|
|
4887
|
+
* 获取运维配置
|
|
4888
|
+
*/
|
|
4889
|
+
async getPageConfig(requestParameters = {}, initOverrides) {
|
|
4890
|
+
const response = await this.getPageConfigRaw(requestParameters, initOverrides);
|
|
4891
|
+
return await response.value();
|
|
4892
|
+
}
|
|
4893
|
+
/**
|
|
4894
|
+
* 返回页面的组件锁定清单(manifest),包含所有引用的组件版本和资源信息。 用途: - Runtime 根据 manifest 预加载组件资源 - Editor 根据 manifest 展示组件依赖
|
|
4895
|
+
* 获取组件清单
|
|
4896
|
+
*/
|
|
4897
|
+
async getPageManifestRaw(requestParameters, initOverrides) {
|
|
4898
|
+
if (requestParameters.pageId === null || requestParameters.pageId === void 0) {
|
|
4899
|
+
throw new RequiredError("pageId", "Required parameter requestParameters.pageId was null or undefined when calling getPageManifest.");
|
|
4900
|
+
}
|
|
4901
|
+
const queryParameters = {};
|
|
4902
|
+
if (requestParameters.pageId !== void 0) {
|
|
4903
|
+
queryParameters["pageId"] = requestParameters.pageId;
|
|
4904
|
+
}
|
|
4905
|
+
if (requestParameters.env !== void 0) {
|
|
4906
|
+
queryParameters["env"] = requestParameters.env;
|
|
4907
|
+
}
|
|
4908
|
+
const headerParameters = {};
|
|
4909
|
+
if (requestParameters.xTraceId !== void 0 && requestParameters.xTraceId !== null) {
|
|
4910
|
+
headerParameters["X-Trace-Id"] = String(requestParameters.xTraceId);
|
|
4911
|
+
}
|
|
4912
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
4913
|
+
headerParameters["X-API-Key"] = this.configuration.apiKey("X-API-Key");
|
|
4914
|
+
}
|
|
4915
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4916
|
+
const token = this.configuration.accessToken;
|
|
4917
|
+
const tokenString = await token("BearerAuth", []);
|
|
4918
|
+
if (tokenString) {
|
|
4919
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4920
|
+
}
|
|
4921
|
+
}
|
|
4922
|
+
const response = await this.request({
|
|
4923
|
+
path: `/page/manifest`,
|
|
4924
|
+
method: "GET",
|
|
4925
|
+
headers: headerParameters,
|
|
4926
|
+
query: queryParameters
|
|
4927
|
+
}, initOverrides);
|
|
4928
|
+
return new JSONApiResponse(response, (jsonValue) => GetPageManifest200ResponseFromJSON(jsonValue));
|
|
4929
|
+
}
|
|
4930
|
+
/**
|
|
4931
|
+
* 返回页面的组件锁定清单(manifest),包含所有引用的组件版本和资源信息。 用途: - Runtime 根据 manifest 预加载组件资源 - Editor 根据 manifest 展示组件依赖
|
|
4932
|
+
* 获取组件清单
|
|
4933
|
+
*/
|
|
4934
|
+
async getPageManifest(requestParameters, initOverrides) {
|
|
4935
|
+
const response = await this.getPageManifestRaw(requestParameters, initOverrides);
|
|
4936
|
+
return await response.value();
|
|
4937
|
+
}
|
|
4427
4938
|
/**
|
|
4428
4939
|
* Runtime 的核心接口,返回渲染所需的完整数据。 支持两种模式: 1. 稳定入口(推荐):支持灰度/回滚/ops,返回 resolvedVersionId 和 CDN 地址 2. 保底模式:当 includeSnapshot=1 时,返回完整 snapshot(CDN 失败时使用) 响应包含: - resolvedVersionId: 解析后的页面版本 ID(考虑灰度/回滚) - cdnBase: CDN 基础地址 - snapshotUrl: snapshot.json 的完整 URL - manifestUrl: manifest.json 的完整 URL - ops: 运维配置(killSwitch、blockedComponents、flags) - etag: 内容哈希(用于缓存) - cacheTtlSeconds: 缓存 TTL(建议 10~30 秒) - snapshot: 完整快照(仅当 includeSnapshot=1 时返回)
|
|
4429
4940
|
* 解析页面(Runtime 核心接口)
|
|
@@ -4452,6 +4963,9 @@ var PagesApi = class extends BaseAPI {
|
|
|
4452
4963
|
queryParameters["includeSnapshot"] = requestParameters.includeSnapshot;
|
|
4453
4964
|
}
|
|
4454
4965
|
const headerParameters = {};
|
|
4966
|
+
if (requestParameters.xTraceId !== void 0 && requestParameters.xTraceId !== null) {
|
|
4967
|
+
headerParameters["X-Trace-Id"] = String(requestParameters.xTraceId);
|
|
4968
|
+
}
|
|
4455
4969
|
if (this.configuration && this.configuration.apiKey) {
|
|
4456
4970
|
headerParameters["X-API-Key"] = this.configuration.apiKey("X-API-Key");
|
|
4457
4971
|
}
|
|
@@ -4815,9 +5329,9 @@ var VERSION = "1.0.0";
|
|
|
4815
5329
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4816
5330
|
0 && (module.exports = {
|
|
4817
5331
|
AbortError,
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
5332
|
+
ActionClientContextFromJSON,
|
|
5333
|
+
ActionClientContextFromJSONTyped,
|
|
5334
|
+
ActionClientContextToJSON,
|
|
4821
5335
|
ActionDefinitionResponseDataFromJSON,
|
|
4822
5336
|
ActionDefinitionResponseDataFromJSONTyped,
|
|
4823
5337
|
ActionDefinitionResponseDataToJSON,
|
|
@@ -4834,6 +5348,10 @@ var VERSION = "1.0.0";
|
|
|
4834
5348
|
ActionManifestToJSON,
|
|
4835
5349
|
ActionsApi,
|
|
4836
5350
|
ActivitiesApi,
|
|
5351
|
+
ActivityStatusFromJSON,
|
|
5352
|
+
ActivityStatusFromJSONTyped,
|
|
5353
|
+
ActivityStatusToJSON,
|
|
5354
|
+
ActivityStatusTypeEnum,
|
|
4837
5355
|
ApiError,
|
|
4838
5356
|
BaseAPI,
|
|
4839
5357
|
BatchQueryRequestFromJSON,
|
|
@@ -4851,17 +5369,18 @@ var VERSION = "1.0.0";
|
|
|
4851
5369
|
BatchQueryResponseFromJSON,
|
|
4852
5370
|
BatchQueryResponseFromJSONTyped,
|
|
4853
5371
|
BatchQueryResponseToJSON,
|
|
5372
|
+
BlockedComponentItemFromJSON,
|
|
5373
|
+
BlockedComponentItemFromJSONTyped,
|
|
5374
|
+
BlockedComponentItemToJSON,
|
|
4854
5375
|
ClaimRecordInfoFromJSON,
|
|
4855
5376
|
ClaimRecordInfoFromJSONTyped,
|
|
4856
5377
|
ClaimRecordInfoStatusEnum,
|
|
4857
5378
|
ClaimRecordInfoToJSON,
|
|
4858
5379
|
ComponentManifestFromJSON,
|
|
4859
5380
|
ComponentManifestFromJSONTyped,
|
|
5381
|
+
ComponentManifestSourceEnum,
|
|
4860
5382
|
ComponentManifestToJSON,
|
|
4861
5383
|
Configuration,
|
|
4862
|
-
ErrorDetailFromJSON,
|
|
4863
|
-
ErrorDetailFromJSONTyped,
|
|
4864
|
-
ErrorDetailToJSON,
|
|
4865
5384
|
ErrorResponseFromJSON,
|
|
4866
5385
|
ErrorResponseFromJSONTyped,
|
|
4867
5386
|
ErrorResponseToJSON,
|
|
@@ -4871,6 +5390,9 @@ var VERSION = "1.0.0";
|
|
|
4871
5390
|
ExecuteActionRequestToJSON,
|
|
4872
5391
|
ExecuteActionResponseAllOfDataFromJSON,
|
|
4873
5392
|
ExecuteActionResponseAllOfDataFromJSONTyped,
|
|
5393
|
+
ExecuteActionResponseAllOfDataRiskDecisionFromJSON,
|
|
5394
|
+
ExecuteActionResponseAllOfDataRiskDecisionFromJSONTyped,
|
|
5395
|
+
ExecuteActionResponseAllOfDataRiskDecisionToJSON,
|
|
4874
5396
|
ExecuteActionResponseAllOfDataToJSON,
|
|
4875
5397
|
ExecuteActionResponseFromJSON,
|
|
4876
5398
|
ExecuteActionResponseFromJSONTyped,
|
|
@@ -4882,15 +5404,30 @@ var VERSION = "1.0.0";
|
|
|
4882
5404
|
GetActivityState200ResponseFromJSON,
|
|
4883
5405
|
GetActivityState200ResponseFromJSONTyped,
|
|
4884
5406
|
GetActivityState200ResponseToJSON,
|
|
5407
|
+
GetActivityStatus200ResponseFromJSON,
|
|
5408
|
+
GetActivityStatus200ResponseFromJSONTyped,
|
|
5409
|
+
GetActivityStatus200ResponseToJSON,
|
|
4885
5410
|
GetClaimRecords200ResponseFromJSON,
|
|
4886
5411
|
GetClaimRecords200ResponseFromJSONTyped,
|
|
4887
5412
|
GetClaimRecords200ResponseToJSON,
|
|
5413
|
+
GetClaimStatus200ResponseFromJSON,
|
|
5414
|
+
GetClaimStatus200ResponseFromJSONTyped,
|
|
5415
|
+
GetClaimStatus200ResponseToJSON,
|
|
4888
5416
|
GetLotteryRecords200ResponseFromJSON,
|
|
4889
5417
|
GetLotteryRecords200ResponseFromJSONTyped,
|
|
4890
5418
|
GetLotteryRecords200ResponseToJSON,
|
|
5419
|
+
GetPageConfig200ResponseFromJSON,
|
|
5420
|
+
GetPageConfig200ResponseFromJSONTyped,
|
|
5421
|
+
GetPageConfig200ResponseToJSON,
|
|
5422
|
+
GetPageManifest200ResponseFromJSON,
|
|
5423
|
+
GetPageManifest200ResponseFromJSONTyped,
|
|
5424
|
+
GetPageManifest200ResponseToJSON,
|
|
4891
5425
|
GetSigninCalendar200ResponseFromJSON,
|
|
4892
5426
|
GetSigninCalendar200ResponseFromJSONTyped,
|
|
4893
5427
|
GetSigninCalendar200ResponseToJSON,
|
|
5428
|
+
GetSigninStatus200ResponseFromJSON,
|
|
5429
|
+
GetSigninStatus200ResponseFromJSONTyped,
|
|
5430
|
+
GetSigninStatus200ResponseToJSON,
|
|
4894
5431
|
GetTenantConfig200ResponseFromJSON,
|
|
4895
5432
|
GetTenantConfig200ResponseFromJSONTyped,
|
|
4896
5433
|
GetTenantConfig200ResponseToJSON,
|
|
@@ -4909,6 +5446,10 @@ var VERSION = "1.0.0";
|
|
|
4909
5446
|
IdempotencyConflictResponseFromJSON,
|
|
4910
5447
|
IdempotencyConflictResponseFromJSONTyped,
|
|
4911
5448
|
IdempotencyConflictResponseToJSON,
|
|
5449
|
+
KillSwitchItemFromJSON,
|
|
5450
|
+
KillSwitchItemFromJSONTyped,
|
|
5451
|
+
KillSwitchItemTargetTypeEnum,
|
|
5452
|
+
KillSwitchItemToJSON,
|
|
4912
5453
|
LivenessCheck200ResponseFromJSON,
|
|
4913
5454
|
LivenessCheck200ResponseFromJSONTyped,
|
|
4914
5455
|
LivenessCheck200ResponseToJSON,
|
|
@@ -4918,9 +5459,6 @@ var VERSION = "1.0.0";
|
|
|
4918
5459
|
LotteryRecordInfoStatusEnum,
|
|
4919
5460
|
LotteryRecordInfoToJSON,
|
|
4920
5461
|
NetworkError,
|
|
4921
|
-
OpsConfigBlockedComponentsInnerFromJSON,
|
|
4922
|
-
OpsConfigBlockedComponentsInnerFromJSONTyped,
|
|
4923
|
-
OpsConfigBlockedComponentsInnerToJSON,
|
|
4924
5462
|
OpsConfigFromJSON,
|
|
4925
5463
|
OpsConfigFromJSONTyped,
|
|
4926
5464
|
OpsConfigToJSON,
|
|
@@ -4989,6 +5527,7 @@ var VERSION = "1.0.0";
|
|
|
4989
5527
|
ResolvePageResponseAllOfDataSnapshotFromJSONTyped,
|
|
4990
5528
|
ResolvePageResponseAllOfDataSnapshotManifestComponentsFromJSON,
|
|
4991
5529
|
ResolvePageResponseAllOfDataSnapshotManifestComponentsFromJSONTyped,
|
|
5530
|
+
ResolvePageResponseAllOfDataSnapshotManifestComponentsSourceEnum,
|
|
4992
5531
|
ResolvePageResponseAllOfDataSnapshotManifestComponentsToJSON,
|
|
4993
5532
|
ResolvePageResponseAllOfDataSnapshotManifestEntrypointsFromJSON,
|
|
4994
5533
|
ResolvePageResponseAllOfDataSnapshotManifestEntrypointsFromJSONTyped,
|
|
@@ -5132,37 +5671,44 @@ var VERSION = "1.0.0";
|
|
|
5132
5671
|
createSilentLogger,
|
|
5133
5672
|
createUserClient,
|
|
5134
5673
|
createUserConfiguration,
|
|
5135
|
-
|
|
5674
|
+
instanceOfActionClientContext,
|
|
5136
5675
|
instanceOfActionDefinitionResponse,
|
|
5137
5676
|
instanceOfActionDefinitionResponseData,
|
|
5138
5677
|
instanceOfActionEffect,
|
|
5139
5678
|
instanceOfActionManifest,
|
|
5679
|
+
instanceOfActivityStatus,
|
|
5140
5680
|
instanceOfBatchQueryRequest,
|
|
5141
5681
|
instanceOfBatchQueryRequestQueriesInner,
|
|
5142
5682
|
instanceOfBatchQueryResponse,
|
|
5143
5683
|
instanceOfBatchQueryResponseDataValue,
|
|
5144
5684
|
instanceOfBatchQueryResponseDataValueError,
|
|
5685
|
+
instanceOfBlockedComponentItem,
|
|
5145
5686
|
instanceOfClaimRecordInfo,
|
|
5146
5687
|
instanceOfComponentManifest,
|
|
5147
|
-
instanceOfErrorDetail,
|
|
5148
5688
|
instanceOfErrorResponse,
|
|
5149
5689
|
instanceOfExecuteActionRequest,
|
|
5150
5690
|
instanceOfExecuteActionResponse,
|
|
5151
5691
|
instanceOfExecuteActionResponseAllOfData,
|
|
5692
|
+
instanceOfExecuteActionResponseAllOfDataRiskDecision,
|
|
5152
5693
|
instanceOfGetActivityInfo200Response,
|
|
5153
5694
|
instanceOfGetActivityState200Response,
|
|
5695
|
+
instanceOfGetActivityStatus200Response,
|
|
5154
5696
|
instanceOfGetClaimRecords200Response,
|
|
5697
|
+
instanceOfGetClaimStatus200Response,
|
|
5155
5698
|
instanceOfGetLotteryRecords200Response,
|
|
5699
|
+
instanceOfGetPageConfig200Response,
|
|
5700
|
+
instanceOfGetPageManifest200Response,
|
|
5156
5701
|
instanceOfGetSigninCalendar200Response,
|
|
5702
|
+
instanceOfGetSigninStatus200Response,
|
|
5157
5703
|
instanceOfGetTenantConfig200Response,
|
|
5158
5704
|
instanceOfHealthResponse,
|
|
5159
5705
|
instanceOfHealthResponseDependenciesValue,
|
|
5160
5706
|
instanceOfIdempotencyConflictResponse,
|
|
5161
5707
|
instanceOfIdempotencyConflictResponseData,
|
|
5708
|
+
instanceOfKillSwitchItem,
|
|
5162
5709
|
instanceOfLivenessCheck200Response,
|
|
5163
5710
|
instanceOfLotteryRecordInfo,
|
|
5164
5711
|
instanceOfOpsConfig,
|
|
5165
|
-
instanceOfOpsConfigBlockedComponentsInner,
|
|
5166
5712
|
instanceOfPageResponse,
|
|
5167
5713
|
instanceOfPageResponseAllOfData,
|
|
5168
5714
|
instanceOfPageResponseAllOfDataMeta,
|