@djvlc/openapi-user-client 1.7.15 → 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.mjs CHANGED
@@ -455,6 +455,54 @@ function ActionManifestToJSON(value) {
455
455
  };
456
456
  }
457
457
 
458
+ // src/generated/models/ActivityStatus.ts
459
+ var ActivityStatusTypeEnum = {
460
+ CLAIM: "claim",
461
+ SIGNIN: "signin"
462
+ };
463
+ function instanceOfActivityStatus(value) {
464
+ let isInstance = true;
465
+ isInstance = isInstance && "activityUid" in value;
466
+ isInstance = isInstance && "name" in value;
467
+ isInstance = isInstance && "type" in value;
468
+ isInstance = isInstance && "isInProgress" in value;
469
+ isInstance = isInstance && "startAt" in value;
470
+ isInstance = isInstance && "endAt" in value;
471
+ return isInstance;
472
+ }
473
+ function ActivityStatusFromJSON(json) {
474
+ return ActivityStatusFromJSONTyped(json, false);
475
+ }
476
+ function ActivityStatusFromJSONTyped(json, ignoreDiscriminator) {
477
+ if (json === void 0 || json === null) {
478
+ return json;
479
+ }
480
+ return {
481
+ "activityUid": json["activityUid"],
482
+ "name": json["name"],
483
+ "type": json["type"],
484
+ "isInProgress": json["isInProgress"],
485
+ "startAt": new Date(json["startAt"]),
486
+ "endAt": new Date(json["endAt"])
487
+ };
488
+ }
489
+ function ActivityStatusToJSON(value) {
490
+ if (value === void 0) {
491
+ return void 0;
492
+ }
493
+ if (value === null) {
494
+ return null;
495
+ }
496
+ return {
497
+ "activityUid": value.activityUid,
498
+ "name": value.name,
499
+ "type": value.type,
500
+ "isInProgress": value.isInProgress,
501
+ "startAt": value.startAt.toISOString(),
502
+ "endAt": value.endAt.toISOString()
503
+ };
504
+ }
505
+
458
506
  // src/generated/models/BatchQueryRequestQueriesInner.ts
459
507
  function instanceOfBatchQueryRequestQueriesInner(value) {
460
508
  let isInstance = true;
@@ -739,11 +787,15 @@ function ClaimRecordInfoToJSON(value) {
739
787
  }
740
788
 
741
789
  // src/generated/models/ComponentManifest.ts
790
+ var ComponentManifestSourceEnum = {
791
+ BUNDLED: "bundled",
792
+ REMOTE: "remote"
793
+ };
742
794
  function instanceOfComponentManifest(value) {
743
795
  let isInstance = true;
744
796
  isInstance = isInstance && "componentType" in value;
745
797
  isInstance = isInstance && "version" in value;
746
- isInstance = isInstance && "entryUrl" in value;
798
+ isInstance = isInstance && "source" in value;
747
799
  return isInstance;
748
800
  }
749
801
  function ComponentManifestFromJSON(json) {
@@ -756,7 +808,8 @@ function ComponentManifestFromJSONTyped(json, ignoreDiscriminator) {
756
808
  return {
757
809
  "componentType": json["componentType"],
758
810
  "version": json["version"],
759
- "entryUrl": json["entryUrl"],
811
+ "source": json["source"],
812
+ "entryUrl": !exists(json, "entryUrl") ? void 0 : json["entryUrl"],
760
813
  "styleUrl": !exists(json, "styleUrl") ? void 0 : json["styleUrl"],
761
814
  "integrity": !exists(json, "integrity") ? void 0 : json["integrity"],
762
815
  "blocked": !exists(json, "blocked") ? void 0 : json["blocked"],
@@ -773,6 +826,7 @@ function ComponentManifestToJSON(value) {
773
826
  return {
774
827
  "componentType": value.componentType,
775
828
  "version": value.version,
829
+ "source": value.source,
776
830
  "entryUrl": value.entryUrl,
777
831
  "styleUrl": value.styleUrl,
778
832
  "integrity": value.integrity,
@@ -1548,6 +1602,36 @@ function GetActivityState200ResponseToJSON(value) {
1548
1602
  };
1549
1603
  }
1550
1604
 
1605
+ // src/generated/models/GetActivityStatus200Response.ts
1606
+ function instanceOfGetActivityStatus200Response(value) {
1607
+ let isInstance = true;
1608
+ return isInstance;
1609
+ }
1610
+ function GetActivityStatus200ResponseFromJSON(json) {
1611
+ return GetActivityStatus200ResponseFromJSONTyped(json, false);
1612
+ }
1613
+ function GetActivityStatus200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1614
+ if (json === void 0 || json === null) {
1615
+ return json;
1616
+ }
1617
+ return {
1618
+ "success": !exists(json, "success") ? void 0 : json["success"],
1619
+ "data": !exists(json, "data") ? void 0 : ActivityStatusFromJSON(json["data"])
1620
+ };
1621
+ }
1622
+ function GetActivityStatus200ResponseToJSON(value) {
1623
+ if (value === void 0) {
1624
+ return void 0;
1625
+ }
1626
+ if (value === null) {
1627
+ return null;
1628
+ }
1629
+ return {
1630
+ "success": value.success,
1631
+ "data": ActivityStatusToJSON(value.data)
1632
+ };
1633
+ }
1634
+
1551
1635
  // src/generated/models/PaginationMeta.ts
1552
1636
  function instanceOfPaginationMeta(value) {
1553
1637
  let isInstance = true;
@@ -1624,6 +1708,36 @@ function GetClaimRecords200ResponseToJSON(value) {
1624
1708
  };
1625
1709
  }
1626
1710
 
1711
+ // src/generated/models/GetClaimStatus200Response.ts
1712
+ function instanceOfGetClaimStatus200Response(value) {
1713
+ let isInstance = true;
1714
+ return isInstance;
1715
+ }
1716
+ function GetClaimStatus200ResponseFromJSON(json) {
1717
+ return GetClaimStatus200ResponseFromJSONTyped(json, false);
1718
+ }
1719
+ function GetClaimStatus200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1720
+ if (json === void 0 || json === null) {
1721
+ return json;
1722
+ }
1723
+ return {
1724
+ "success": !exists(json, "success") ? void 0 : json["success"],
1725
+ "data": !exists(json, "data") ? void 0 : json["data"]
1726
+ };
1727
+ }
1728
+ function GetClaimStatus200ResponseToJSON(value) {
1729
+ if (value === void 0) {
1730
+ return void 0;
1731
+ }
1732
+ if (value === null) {
1733
+ return null;
1734
+ }
1735
+ return {
1736
+ "success": value.success,
1737
+ "data": value.data
1738
+ };
1739
+ }
1740
+
1627
1741
  // src/generated/models/LotteryRecordInfo.ts
1628
1742
  var LotteryRecordInfoPrizeTypeEnum = {
1629
1743
  PHYSICAL: "physical",
@@ -1715,6 +1829,221 @@ function GetLotteryRecords200ResponseToJSON(value) {
1715
1829
  };
1716
1830
  }
1717
1831
 
1832
+ // src/generated/models/KillSwitchItem.ts
1833
+ var KillSwitchItemTargetTypeEnum = {
1834
+ ACTION: "action",
1835
+ COMPONENT: "component",
1836
+ FEATURE: "feature",
1837
+ PAGE: "page",
1838
+ QUERY: "query"
1839
+ };
1840
+ function instanceOfKillSwitchItem(value) {
1841
+ let isInstance = true;
1842
+ isInstance = isInstance && "targetType" in value;
1843
+ isInstance = isInstance && "targetId" in value;
1844
+ isInstance = isInstance && "enabled" in value;
1845
+ return isInstance;
1846
+ }
1847
+ function KillSwitchItemFromJSON(json) {
1848
+ return KillSwitchItemFromJSONTyped(json, false);
1849
+ }
1850
+ function KillSwitchItemFromJSONTyped(json, ignoreDiscriminator) {
1851
+ if (json === void 0 || json === null) {
1852
+ return json;
1853
+ }
1854
+ return {
1855
+ "targetType": json["targetType"],
1856
+ "targetId": json["targetId"],
1857
+ "enabled": json["enabled"],
1858
+ "reason": !exists(json, "reason") ? void 0 : json["reason"],
1859
+ "enabledAt": !exists(json, "enabledAt") ? void 0 : new Date(json["enabledAt"]),
1860
+ "enabledBy": !exists(json, "enabledBy") ? void 0 : json["enabledBy"],
1861
+ "userMessage": !exists(json, "userMessage") ? void 0 : json["userMessage"]
1862
+ };
1863
+ }
1864
+ function KillSwitchItemToJSON(value) {
1865
+ if (value === void 0) {
1866
+ return void 0;
1867
+ }
1868
+ if (value === null) {
1869
+ return null;
1870
+ }
1871
+ return {
1872
+ "targetType": value.targetType,
1873
+ "targetId": value.targetId,
1874
+ "enabled": value.enabled,
1875
+ "reason": value.reason,
1876
+ "enabledAt": value.enabledAt === void 0 ? void 0 : value.enabledAt.toISOString(),
1877
+ "enabledBy": value.enabledBy,
1878
+ "userMessage": value.userMessage
1879
+ };
1880
+ }
1881
+
1882
+ // src/generated/models/OpsConfig.ts
1883
+ function instanceOfOpsConfig(value) {
1884
+ let isInstance = true;
1885
+ isInstance = isInstance && "killSwitch" in value;
1886
+ isInstance = isInstance && "blockedComponents" in value;
1887
+ isInstance = isInstance && "flags" in value;
1888
+ return isInstance;
1889
+ }
1890
+ function OpsConfigFromJSON(json) {
1891
+ return OpsConfigFromJSONTyped(json, false);
1892
+ }
1893
+ function OpsConfigFromJSONTyped(json, ignoreDiscriminator) {
1894
+ if (json === void 0 || json === null) {
1895
+ return json;
1896
+ }
1897
+ return {
1898
+ "configVersionId": !exists(json, "configVersionId") ? void 0 : json["configVersionId"],
1899
+ "killSwitch": json["killSwitch"].map(KillSwitchItemFromJSON),
1900
+ "blockedComponents": json["blockedComponents"].map(BlockedComponentItemFromJSON),
1901
+ "flags": json["flags"],
1902
+ "expiresAt": !exists(json, "expiresAt") ? void 0 : new Date(json["expiresAt"])
1903
+ };
1904
+ }
1905
+ function OpsConfigToJSON(value) {
1906
+ if (value === void 0) {
1907
+ return void 0;
1908
+ }
1909
+ if (value === null) {
1910
+ return null;
1911
+ }
1912
+ return {
1913
+ "configVersionId": value.configVersionId,
1914
+ "killSwitch": value.killSwitch.map(KillSwitchItemToJSON),
1915
+ "blockedComponents": value.blockedComponents.map(BlockedComponentItemToJSON),
1916
+ "flags": value.flags,
1917
+ "expiresAt": value.expiresAt === void 0 ? void 0 : value.expiresAt.toISOString()
1918
+ };
1919
+ }
1920
+
1921
+ // src/generated/models/GetPageConfig200Response.ts
1922
+ function instanceOfGetPageConfig200Response(value) {
1923
+ let isInstance = true;
1924
+ return isInstance;
1925
+ }
1926
+ function GetPageConfig200ResponseFromJSON(json) {
1927
+ return GetPageConfig200ResponseFromJSONTyped(json, false);
1928
+ }
1929
+ function GetPageConfig200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1930
+ if (json === void 0 || json === null) {
1931
+ return json;
1932
+ }
1933
+ return {
1934
+ "success": !exists(json, "success") ? void 0 : json["success"],
1935
+ "data": !exists(json, "data") ? void 0 : OpsConfigFromJSON(json["data"])
1936
+ };
1937
+ }
1938
+ function GetPageConfig200ResponseToJSON(value) {
1939
+ if (value === void 0) {
1940
+ return void 0;
1941
+ }
1942
+ if (value === null) {
1943
+ return null;
1944
+ }
1945
+ return {
1946
+ "success": value.success,
1947
+ "data": OpsConfigToJSON(value.data)
1948
+ };
1949
+ }
1950
+
1951
+ // src/generated/models/QueryManifest.ts
1952
+ function instanceOfQueryManifest(value) {
1953
+ let isInstance = true;
1954
+ isInstance = isInstance && "queryId" in value;
1955
+ isInstance = isInstance && "queryVersionId" in value;
1956
+ return isInstance;
1957
+ }
1958
+ function QueryManifestFromJSON(json) {
1959
+ return QueryManifestFromJSONTyped(json, false);
1960
+ }
1961
+ function QueryManifestFromJSONTyped(json, ignoreDiscriminator) {
1962
+ if (json === void 0 || json === null) {
1963
+ return json;
1964
+ }
1965
+ return {
1966
+ "queryId": json["queryId"],
1967
+ "queryVersionId": json["queryVersionId"],
1968
+ "cacheTtl": !exists(json, "cacheTtl") ? void 0 : json["cacheTtl"]
1969
+ };
1970
+ }
1971
+ function QueryManifestToJSON(value) {
1972
+ if (value === void 0) {
1973
+ return void 0;
1974
+ }
1975
+ if (value === null) {
1976
+ return null;
1977
+ }
1978
+ return {
1979
+ "queryId": value.queryId,
1980
+ "queryVersionId": value.queryVersionId,
1981
+ "cacheTtl": value.cacheTtl
1982
+ };
1983
+ }
1984
+
1985
+ // src/generated/models/ResourceManifests.ts
1986
+ function instanceOfResourceManifests(value) {
1987
+ let isInstance = true;
1988
+ return isInstance;
1989
+ }
1990
+ function ResourceManifestsFromJSON(json) {
1991
+ return ResourceManifestsFromJSONTyped(json, false);
1992
+ }
1993
+ function ResourceManifestsFromJSONTyped(json, ignoreDiscriminator) {
1994
+ if (json === void 0 || json === null) {
1995
+ return json;
1996
+ }
1997
+ return {
1998
+ "components": !exists(json, "components") ? void 0 : json["components"].map(ComponentManifestFromJSON),
1999
+ "actions": !exists(json, "actions") ? void 0 : json["actions"].map(ActionManifestFromJSON),
2000
+ "queries": !exists(json, "queries") ? void 0 : json["queries"].map(QueryManifestFromJSON)
2001
+ };
2002
+ }
2003
+ function ResourceManifestsToJSON(value) {
2004
+ if (value === void 0) {
2005
+ return void 0;
2006
+ }
2007
+ if (value === null) {
2008
+ return null;
2009
+ }
2010
+ return {
2011
+ "components": value.components === void 0 ? void 0 : value.components.map(ComponentManifestToJSON),
2012
+ "actions": value.actions === void 0 ? void 0 : value.actions.map(ActionManifestToJSON),
2013
+ "queries": value.queries === void 0 ? void 0 : value.queries.map(QueryManifestToJSON)
2014
+ };
2015
+ }
2016
+
2017
+ // src/generated/models/GetPageManifest200Response.ts
2018
+ function instanceOfGetPageManifest200Response(value) {
2019
+ let isInstance = true;
2020
+ return isInstance;
2021
+ }
2022
+ function GetPageManifest200ResponseFromJSON(json) {
2023
+ return GetPageManifest200ResponseFromJSONTyped(json, false);
2024
+ }
2025
+ function GetPageManifest200ResponseFromJSONTyped(json, ignoreDiscriminator) {
2026
+ if (json === void 0 || json === null) {
2027
+ return json;
2028
+ }
2029
+ return {
2030
+ "success": !exists(json, "success") ? void 0 : json["success"],
2031
+ "data": !exists(json, "data") ? void 0 : ResourceManifestsFromJSON(json["data"])
2032
+ };
2033
+ }
2034
+ function GetPageManifest200ResponseToJSON(value) {
2035
+ if (value === void 0) {
2036
+ return void 0;
2037
+ }
2038
+ if (value === null) {
2039
+ return null;
2040
+ }
2041
+ return {
2042
+ "success": value.success,
2043
+ "data": ResourceManifestsToJSON(value.data)
2044
+ };
2045
+ }
2046
+
1718
2047
  // src/generated/models/SigninCalendarRecordsInnerReward.ts
1719
2048
  function instanceOfSigninCalendarRecordsInnerReward(value) {
1720
2049
  let isInstance = true;
@@ -1846,6 +2175,36 @@ function GetSigninCalendar200ResponseToJSON(value) {
1846
2175
  };
1847
2176
  }
1848
2177
 
2178
+ // src/generated/models/GetSigninStatus200Response.ts
2179
+ function instanceOfGetSigninStatus200Response(value) {
2180
+ let isInstance = true;
2181
+ return isInstance;
2182
+ }
2183
+ function GetSigninStatus200ResponseFromJSON(json) {
2184
+ return GetSigninStatus200ResponseFromJSONTyped(json, false);
2185
+ }
2186
+ function GetSigninStatus200ResponseFromJSONTyped(json, ignoreDiscriminator) {
2187
+ if (json === void 0 || json === null) {
2188
+ return json;
2189
+ }
2190
+ return {
2191
+ "success": !exists(json, "success") ? void 0 : json["success"],
2192
+ "data": !exists(json, "data") ? void 0 : json["data"]
2193
+ };
2194
+ }
2195
+ function GetSigninStatus200ResponseToJSON(value) {
2196
+ if (value === void 0) {
2197
+ return void 0;
2198
+ }
2199
+ if (value === null) {
2200
+ return null;
2201
+ }
2202
+ return {
2203
+ "success": value.success,
2204
+ "data": value.data
2205
+ };
2206
+ }
2207
+
1849
2208
  // src/generated/models/TenantConfigBlockedComponentsInner.ts
1850
2209
  function instanceOfTenantConfigBlockedComponentsInner(value) {
1851
2210
  let isInstance = true;
@@ -2082,115 +2441,36 @@ function IdempotencyConflictResponseDataToJSON(value) {
2082
2441
  return void 0;
2083
2442
  }
2084
2443
  if (value === null) {
2085
- return null;
2086
- }
2087
- return {
2088
- "idempotent": value.idempotent,
2089
- "originalActionId": value.originalActionId,
2090
- "originalResult": value.originalResult,
2091
- "originalExecutedAt": value.originalExecutedAt === void 0 ? void 0 : value.originalExecutedAt.toISOString()
2092
- };
2093
- }
2094
-
2095
- // src/generated/models/IdempotencyConflictResponse.ts
2096
- function instanceOfIdempotencyConflictResponse(value) {
2097
- let isInstance = true;
2098
- isInstance = isInstance && "success" in value;
2099
- isInstance = isInstance && "data" in value;
2100
- return isInstance;
2101
- }
2102
- function IdempotencyConflictResponseFromJSON(json) {
2103
- return IdempotencyConflictResponseFromJSONTyped(json, false);
2104
- }
2105
- function IdempotencyConflictResponseFromJSONTyped(json, ignoreDiscriminator) {
2106
- if (json === void 0 || json === null) {
2107
- return json;
2108
- }
2109
- return {
2110
- "success": json["success"],
2111
- "data": IdempotencyConflictResponseDataFromJSON(json["data"])
2112
- };
2113
- }
2114
- function IdempotencyConflictResponseToJSON(value) {
2115
- if (value === void 0) {
2116
- return void 0;
2117
- }
2118
- if (value === null) {
2119
- return null;
2120
- }
2121
- return {
2122
- "success": value.success,
2123
- "data": IdempotencyConflictResponseDataToJSON(value.data)
2124
- };
2125
- }
2126
-
2127
- // src/generated/models/KillSwitchItem.ts
2128
- var KillSwitchItemTargetTypeEnum = {
2129
- ACTION: "action",
2130
- COMPONENT: "component",
2131
- FEATURE: "feature",
2132
- PAGE: "page",
2133
- QUERY: "query"
2134
- };
2135
- function instanceOfKillSwitchItem(value) {
2136
- let isInstance = true;
2137
- isInstance = isInstance && "targetType" in value;
2138
- isInstance = isInstance && "targetId" in value;
2139
- isInstance = isInstance && "enabled" in value;
2140
- return isInstance;
2141
- }
2142
- function KillSwitchItemFromJSON(json) {
2143
- return KillSwitchItemFromJSONTyped(json, false);
2144
- }
2145
- function KillSwitchItemFromJSONTyped(json, ignoreDiscriminator) {
2146
- if (json === void 0 || json === null) {
2147
- return json;
2148
- }
2149
- return {
2150
- "targetType": json["targetType"],
2151
- "targetId": json["targetId"],
2152
- "enabled": json["enabled"],
2153
- "reason": !exists(json, "reason") ? void 0 : json["reason"],
2154
- "enabledAt": !exists(json, "enabledAt") ? void 0 : new Date(json["enabledAt"]),
2155
- "enabledBy": !exists(json, "enabledBy") ? void 0 : json["enabledBy"],
2156
- "userMessage": !exists(json, "userMessage") ? void 0 : json["userMessage"]
2157
- };
2158
- }
2159
- function KillSwitchItemToJSON(value) {
2160
- if (value === void 0) {
2161
- return void 0;
2162
- }
2163
- if (value === null) {
2164
- return null;
2165
- }
2166
- return {
2167
- "targetType": value.targetType,
2168
- "targetId": value.targetId,
2169
- "enabled": value.enabled,
2170
- "reason": value.reason,
2171
- "enabledAt": value.enabledAt === void 0 ? void 0 : value.enabledAt.toISOString(),
2172
- "enabledBy": value.enabledBy,
2173
- "userMessage": value.userMessage
2444
+ return null;
2445
+ }
2446
+ return {
2447
+ "idempotent": value.idempotent,
2448
+ "originalActionId": value.originalActionId,
2449
+ "originalResult": value.originalResult,
2450
+ "originalExecutedAt": value.originalExecutedAt === void 0 ? void 0 : value.originalExecutedAt.toISOString()
2174
2451
  };
2175
2452
  }
2176
2453
 
2177
- // src/generated/models/LivenessCheck200Response.ts
2178
- function instanceOfLivenessCheck200Response(value) {
2454
+ // src/generated/models/IdempotencyConflictResponse.ts
2455
+ function instanceOfIdempotencyConflictResponse(value) {
2179
2456
  let isInstance = true;
2457
+ isInstance = isInstance && "success" in value;
2458
+ isInstance = isInstance && "data" in value;
2180
2459
  return isInstance;
2181
2460
  }
2182
- function LivenessCheck200ResponseFromJSON(json) {
2183
- return LivenessCheck200ResponseFromJSONTyped(json, false);
2461
+ function IdempotencyConflictResponseFromJSON(json) {
2462
+ return IdempotencyConflictResponseFromJSONTyped(json, false);
2184
2463
  }
2185
- function LivenessCheck200ResponseFromJSONTyped(json, ignoreDiscriminator) {
2464
+ function IdempotencyConflictResponseFromJSONTyped(json, ignoreDiscriminator) {
2186
2465
  if (json === void 0 || json === null) {
2187
2466
  return json;
2188
2467
  }
2189
2468
  return {
2190
- "alive": !exists(json, "alive") ? void 0 : json["alive"]
2469
+ "success": json["success"],
2470
+ "data": IdempotencyConflictResponseDataFromJSON(json["data"])
2191
2471
  };
2192
2472
  }
2193
- function LivenessCheck200ResponseToJSON(value) {
2473
+ function IdempotencyConflictResponseToJSON(value) {
2194
2474
  if (value === void 0) {
2195
2475
  return void 0;
2196
2476
  }
@@ -2198,34 +2478,28 @@ function LivenessCheck200ResponseToJSON(value) {
2198
2478
  return null;
2199
2479
  }
2200
2480
  return {
2201
- "alive": value.alive
2481
+ "success": value.success,
2482
+ "data": IdempotencyConflictResponseDataToJSON(value.data)
2202
2483
  };
2203
2484
  }
2204
2485
 
2205
- // src/generated/models/OpsConfig.ts
2206
- function instanceOfOpsConfig(value) {
2486
+ // src/generated/models/LivenessCheck200Response.ts
2487
+ function instanceOfLivenessCheck200Response(value) {
2207
2488
  let isInstance = true;
2208
- isInstance = isInstance && "killSwitch" in value;
2209
- isInstance = isInstance && "blockedComponents" in value;
2210
- isInstance = isInstance && "flags" in value;
2211
2489
  return isInstance;
2212
2490
  }
2213
- function OpsConfigFromJSON(json) {
2214
- return OpsConfigFromJSONTyped(json, false);
2491
+ function LivenessCheck200ResponseFromJSON(json) {
2492
+ return LivenessCheck200ResponseFromJSONTyped(json, false);
2215
2493
  }
2216
- function OpsConfigFromJSONTyped(json, ignoreDiscriminator) {
2494
+ function LivenessCheck200ResponseFromJSONTyped(json, ignoreDiscriminator) {
2217
2495
  if (json === void 0 || json === null) {
2218
2496
  return json;
2219
2497
  }
2220
2498
  return {
2221
- "configVersionId": !exists(json, "configVersionId") ? void 0 : json["configVersionId"],
2222
- "killSwitch": json["killSwitch"].map(KillSwitchItemFromJSON),
2223
- "blockedComponents": json["blockedComponents"].map(BlockedComponentItemFromJSON),
2224
- "flags": json["flags"],
2225
- "expiresAt": !exists(json, "expiresAt") ? void 0 : new Date(json["expiresAt"])
2499
+ "alive": !exists(json, "alive") ? void 0 : json["alive"]
2226
2500
  };
2227
2501
  }
2228
- function OpsConfigToJSON(value) {
2502
+ function LivenessCheck200ResponseToJSON(value) {
2229
2503
  if (value === void 0) {
2230
2504
  return void 0;
2231
2505
  }
@@ -2233,11 +2507,7 @@ function OpsConfigToJSON(value) {
2233
2507
  return null;
2234
2508
  }
2235
2509
  return {
2236
- "configVersionId": value.configVersionId,
2237
- "killSwitch": value.killSwitch.map(KillSwitchItemToJSON),
2238
- "blockedComponents": value.blockedComponents.map(BlockedComponentItemToJSON),
2239
- "flags": value.flags,
2240
- "expiresAt": value.expiresAt === void 0 ? void 0 : value.expiresAt.toISOString()
2510
+ "alive": value.alive
2241
2511
  };
2242
2512
  }
2243
2513
 
@@ -2548,40 +2818,6 @@ function QueryDefinitionResponseToJSON(value) {
2548
2818
  };
2549
2819
  }
2550
2820
 
2551
- // src/generated/models/QueryManifest.ts
2552
- function instanceOfQueryManifest(value) {
2553
- let isInstance = true;
2554
- isInstance = isInstance && "queryId" in value;
2555
- isInstance = isInstance && "queryVersionId" in value;
2556
- return isInstance;
2557
- }
2558
- function QueryManifestFromJSON(json) {
2559
- return QueryManifestFromJSONTyped(json, false);
2560
- }
2561
- function QueryManifestFromJSONTyped(json, ignoreDiscriminator) {
2562
- if (json === void 0 || json === null) {
2563
- return json;
2564
- }
2565
- return {
2566
- "queryId": json["queryId"],
2567
- "queryVersionId": json["queryVersionId"],
2568
- "cacheTtl": !exists(json, "cacheTtl") ? void 0 : json["cacheTtl"]
2569
- };
2570
- }
2571
- function QueryManifestToJSON(value) {
2572
- if (value === void 0) {
2573
- return void 0;
2574
- }
2575
- if (value === null) {
2576
- return null;
2577
- }
2578
- return {
2579
- "queryId": value.queryId,
2580
- "queryVersionId": value.queryVersionId,
2581
- "cacheTtl": value.cacheTtl
2582
- };
2583
- }
2584
-
2585
2821
  // src/generated/models/ReadinessCheck200Response.ts
2586
2822
  function instanceOfReadinessCheck200Response(value) {
2587
2823
  let isInstance = true;
@@ -2769,6 +3005,10 @@ function ResolvePageResponseAllOfDataSnapshotManifestEntrypointsToJSON(value) {
2769
3005
  }
2770
3006
 
2771
3007
  // src/generated/models/ResolvePageResponseAllOfDataSnapshotManifestComponents.ts
3008
+ var ResolvePageResponseAllOfDataSnapshotManifestComponentsSourceEnum = {
3009
+ BUNDLED: "bundled",
3010
+ REMOTE: "remote"
3011
+ };
2772
3012
  function instanceOfResolvePageResponseAllOfDataSnapshotManifestComponents(value) {
2773
3013
  let isInstance = true;
2774
3014
  return isInstance;
@@ -2783,6 +3023,7 @@ function ResolvePageResponseAllOfDataSnapshotManifestComponentsFromJSONTyped(jso
2783
3023
  return {
2784
3024
  "name": !exists(json, "name") ? void 0 : json["name"],
2785
3025
  "version": !exists(json, "version") ? void 0 : json["version"],
3026
+ "source": !exists(json, "source") ? void 0 : json["source"],
2786
3027
  "integrity": !exists(json, "integrity") ? void 0 : json["integrity"],
2787
3028
  "assetsUrl": !exists(json, "assetsUrl") ? void 0 : json["assetsUrl"],
2788
3029
  "entrypoints": !exists(json, "entrypoints") ? void 0 : ResolvePageResponseAllOfDataSnapshotManifestEntrypointsFromJSON(json["entrypoints"])
@@ -2798,6 +3039,7 @@ function ResolvePageResponseAllOfDataSnapshotManifestComponentsToJSON(value) {
2798
3039
  return {
2799
3040
  "name": value.name,
2800
3041
  "version": value.version,
3042
+ "source": value.source,
2801
3043
  "integrity": value.integrity,
2802
3044
  "assetsUrl": value.assetsUrl,
2803
3045
  "entrypoints": ResolvePageResponseAllOfDataSnapshotManifestEntrypointsToJSON(value.entrypoints)
@@ -3233,38 +3475,6 @@ function ResolveTenantRequestToJSON(value) {
3233
3475
  };
3234
3476
  }
3235
3477
 
3236
- // src/generated/models/ResourceManifests.ts
3237
- function instanceOfResourceManifests(value) {
3238
- let isInstance = true;
3239
- return isInstance;
3240
- }
3241
- function ResourceManifestsFromJSON(json) {
3242
- return ResourceManifestsFromJSONTyped(json, false);
3243
- }
3244
- function ResourceManifestsFromJSONTyped(json, ignoreDiscriminator) {
3245
- if (json === void 0 || json === null) {
3246
- return json;
3247
- }
3248
- return {
3249
- "components": !exists(json, "components") ? void 0 : json["components"].map(ComponentManifestFromJSON),
3250
- "actions": !exists(json, "actions") ? void 0 : json["actions"].map(ActionManifestFromJSON),
3251
- "queries": !exists(json, "queries") ? void 0 : json["queries"].map(QueryManifestFromJSON)
3252
- };
3253
- }
3254
- function ResourceManifestsToJSON(value) {
3255
- if (value === void 0) {
3256
- return void 0;
3257
- }
3258
- if (value === null) {
3259
- return null;
3260
- }
3261
- return {
3262
- "components": value.components === void 0 ? void 0 : value.components.map(ComponentManifestToJSON),
3263
- "actions": value.actions === void 0 ? void 0 : value.actions.map(ActionManifestToJSON),
3264
- "queries": value.queries === void 0 ? void 0 : value.queries.map(QueryManifestToJSON)
3265
- };
3266
- }
3267
-
3268
3478
  // src/generated/models/SuccessResponse.ts
3269
3479
  function instanceOfSuccessResponse(value) {
3270
3480
  let isInstance = true;
@@ -3881,6 +4091,32 @@ var ActivitiesApi = class extends BaseAPI {
3881
4091
  const response = await this.getActivityStateRaw(requestParameters, initOverrides);
3882
4092
  return await response.value();
3883
4093
  }
4094
+ /**
4095
+ * 获取活动的当前状态信息,包括是否进行中、时间范围等。 不需要登录,可用于前端判断活动是否在有效期内。
4096
+ * 获取活动状态(兼容)
4097
+ */
4098
+ async getActivityStatusRaw(requestParameters, initOverrides) {
4099
+ if (requestParameters.activityId === null || requestParameters.activityId === void 0) {
4100
+ throw new RequiredError("activityId", "Required parameter requestParameters.activityId was null or undefined when calling getActivityStatus.");
4101
+ }
4102
+ const queryParameters = {};
4103
+ const headerParameters = {};
4104
+ const response = await this.request({
4105
+ path: `/activities/{activityId}/status`.replace(`{${"activityId"}}`, encodeURIComponent(String(requestParameters.activityId))),
4106
+ method: "GET",
4107
+ headers: headerParameters,
4108
+ query: queryParameters
4109
+ }, initOverrides);
4110
+ return new JSONApiResponse(response, (jsonValue) => GetActivityStatus200ResponseFromJSON(jsonValue));
4111
+ }
4112
+ /**
4113
+ * 获取活动的当前状态信息,包括是否进行中、时间范围等。 不需要登录,可用于前端判断活动是否在有效期内。
4114
+ * 获取活动状态(兼容)
4115
+ */
4116
+ async getActivityStatus(requestParameters, initOverrides) {
4117
+ const response = await this.getActivityStatusRaw(requestParameters, initOverrides);
4118
+ return await response.value();
4119
+ }
3884
4120
  /**
3885
4121
  * 获取用户在指定活动中的领取记录
3886
4122
  * 获取领取记录
@@ -3920,6 +4156,45 @@ var ActivitiesApi = class extends BaseAPI {
3920
4156
  const response = await this.getClaimRecordsRaw(requestParameters, initOverrides);
3921
4157
  return await response.value();
3922
4158
  }
4159
+ /**
4160
+ * 获取用户在指定活动中的领取状态
4161
+ * 获取领取状态
4162
+ */
4163
+ async getClaimStatusRaw(requestParameters, initOverrides) {
4164
+ if (requestParameters.activityId === null || requestParameters.activityId === void 0) {
4165
+ throw new RequiredError("activityId", "Required parameter requestParameters.activityId was null or undefined when calling getClaimStatus.");
4166
+ }
4167
+ if (requestParameters.uid === null || requestParameters.uid === void 0) {
4168
+ throw new RequiredError("uid", "Required parameter requestParameters.uid was null or undefined when calling getClaimStatus.");
4169
+ }
4170
+ const queryParameters = {};
4171
+ if (requestParameters.uid !== void 0) {
4172
+ queryParameters["uid"] = requestParameters.uid;
4173
+ }
4174
+ const headerParameters = {};
4175
+ if (this.configuration && this.configuration.accessToken) {
4176
+ const token = this.configuration.accessToken;
4177
+ const tokenString = await token("BearerAuth", []);
4178
+ if (tokenString) {
4179
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4180
+ }
4181
+ }
4182
+ const response = await this.request({
4183
+ path: `/activities/{activityId}/claim/status`.replace(`{${"activityId"}}`, encodeURIComponent(String(requestParameters.activityId))),
4184
+ method: "GET",
4185
+ headers: headerParameters,
4186
+ query: queryParameters
4187
+ }, initOverrides);
4188
+ return new JSONApiResponse(response, (jsonValue) => GetClaimStatus200ResponseFromJSON(jsonValue));
4189
+ }
4190
+ /**
4191
+ * 获取用户在指定活动中的领取状态
4192
+ * 获取领取状态
4193
+ */
4194
+ async getClaimStatus(requestParameters, initOverrides) {
4195
+ const response = await this.getClaimStatusRaw(requestParameters, initOverrides);
4196
+ return await response.value();
4197
+ }
3923
4198
  /**
3924
4199
  * 获取用户在指定活动中的抽奖记录
3925
4200
  * 获取抽奖记录
@@ -3995,6 +4270,45 @@ var ActivitiesApi = class extends BaseAPI {
3995
4270
  const response = await this.getSigninCalendarRaw(requestParameters, initOverrides);
3996
4271
  return await response.value();
3997
4272
  }
4273
+ /**
4274
+ * 获取用户在指定活动中的签到状态
4275
+ * 获取签到状态
4276
+ */
4277
+ async getSigninStatusRaw(requestParameters, initOverrides) {
4278
+ if (requestParameters.activityId === null || requestParameters.activityId === void 0) {
4279
+ throw new RequiredError("activityId", "Required parameter requestParameters.activityId was null or undefined when calling getSigninStatus.");
4280
+ }
4281
+ if (requestParameters.uid === null || requestParameters.uid === void 0) {
4282
+ throw new RequiredError("uid", "Required parameter requestParameters.uid was null or undefined when calling getSigninStatus.");
4283
+ }
4284
+ const queryParameters = {};
4285
+ if (requestParameters.uid !== void 0) {
4286
+ queryParameters["uid"] = requestParameters.uid;
4287
+ }
4288
+ const headerParameters = {};
4289
+ if (this.configuration && this.configuration.accessToken) {
4290
+ const token = this.configuration.accessToken;
4291
+ const tokenString = await token("BearerAuth", []);
4292
+ if (tokenString) {
4293
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4294
+ }
4295
+ }
4296
+ const response = await this.request({
4297
+ path: `/activities/{activityId}/signin/status`.replace(`{${"activityId"}}`, encodeURIComponent(String(requestParameters.activityId))),
4298
+ method: "GET",
4299
+ headers: headerParameters,
4300
+ query: queryParameters
4301
+ }, initOverrides);
4302
+ return new JSONApiResponse(response, (jsonValue) => GetSigninStatus200ResponseFromJSON(jsonValue));
4303
+ }
4304
+ /**
4305
+ * 获取用户在指定活动中的签到状态
4306
+ * 获取签到状态
4307
+ */
4308
+ async getSigninStatus(requestParameters, initOverrides) {
4309
+ const response = await this.getSigninStatusRaw(requestParameters, initOverrides);
4310
+ return await response.value();
4311
+ }
3998
4312
  };
3999
4313
 
4000
4314
  // src/generated/apis/HealthApi.ts
@@ -4072,6 +4386,90 @@ var HealthApi = class extends BaseAPI {
4072
4386
 
4073
4387
  // src/generated/apis/PagesApi.ts
4074
4388
  var PagesApi = class extends BaseAPI {
4389
+ /**
4390
+ * 返回当前运维配置(killSwitch、blockedComponents、featureFlags 等)。 用途: - Runtime 启动时获取全局运维配置 - 判断是否有组件被阻断或功能被关闭
4391
+ * 获取运维配置
4392
+ */
4393
+ async getPageConfigRaw(requestParameters, initOverrides) {
4394
+ const queryParameters = {};
4395
+ if (requestParameters.env !== void 0) {
4396
+ queryParameters["env"] = requestParameters.env;
4397
+ }
4398
+ const headerParameters = {};
4399
+ if (requestParameters.xTraceId !== void 0 && requestParameters.xTraceId !== null) {
4400
+ headerParameters["X-Trace-Id"] = String(requestParameters.xTraceId);
4401
+ }
4402
+ if (this.configuration && this.configuration.apiKey) {
4403
+ headerParameters["X-API-Key"] = this.configuration.apiKey("X-API-Key");
4404
+ }
4405
+ if (this.configuration && this.configuration.accessToken) {
4406
+ const token = this.configuration.accessToken;
4407
+ const tokenString = await token("BearerAuth", []);
4408
+ if (tokenString) {
4409
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4410
+ }
4411
+ }
4412
+ const response = await this.request({
4413
+ path: `/page/config`,
4414
+ method: "GET",
4415
+ headers: headerParameters,
4416
+ query: queryParameters
4417
+ }, initOverrides);
4418
+ return new JSONApiResponse(response, (jsonValue) => GetPageConfig200ResponseFromJSON(jsonValue));
4419
+ }
4420
+ /**
4421
+ * 返回当前运维配置(killSwitch、blockedComponents、featureFlags 等)。 用途: - Runtime 启动时获取全局运维配置 - 判断是否有组件被阻断或功能被关闭
4422
+ * 获取运维配置
4423
+ */
4424
+ async getPageConfig(requestParameters = {}, initOverrides) {
4425
+ const response = await this.getPageConfigRaw(requestParameters, initOverrides);
4426
+ return await response.value();
4427
+ }
4428
+ /**
4429
+ * 返回页面的组件锁定清单(manifest),包含所有引用的组件版本和资源信息。 用途: - Runtime 根据 manifest 预加载组件资源 - Editor 根据 manifest 展示组件依赖
4430
+ * 获取组件清单
4431
+ */
4432
+ async getPageManifestRaw(requestParameters, initOverrides) {
4433
+ if (requestParameters.pageId === null || requestParameters.pageId === void 0) {
4434
+ throw new RequiredError("pageId", "Required parameter requestParameters.pageId was null or undefined when calling getPageManifest.");
4435
+ }
4436
+ const queryParameters = {};
4437
+ if (requestParameters.pageId !== void 0) {
4438
+ queryParameters["pageId"] = requestParameters.pageId;
4439
+ }
4440
+ if (requestParameters.env !== void 0) {
4441
+ queryParameters["env"] = requestParameters.env;
4442
+ }
4443
+ const headerParameters = {};
4444
+ if (requestParameters.xTraceId !== void 0 && requestParameters.xTraceId !== null) {
4445
+ headerParameters["X-Trace-Id"] = String(requestParameters.xTraceId);
4446
+ }
4447
+ if (this.configuration && this.configuration.apiKey) {
4448
+ headerParameters["X-API-Key"] = this.configuration.apiKey("X-API-Key");
4449
+ }
4450
+ if (this.configuration && this.configuration.accessToken) {
4451
+ const token = this.configuration.accessToken;
4452
+ const tokenString = await token("BearerAuth", []);
4453
+ if (tokenString) {
4454
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4455
+ }
4456
+ }
4457
+ const response = await this.request({
4458
+ path: `/page/manifest`,
4459
+ method: "GET",
4460
+ headers: headerParameters,
4461
+ query: queryParameters
4462
+ }, initOverrides);
4463
+ return new JSONApiResponse(response, (jsonValue) => GetPageManifest200ResponseFromJSON(jsonValue));
4464
+ }
4465
+ /**
4466
+ * 返回页面的组件锁定清单(manifest),包含所有引用的组件版本和资源信息。 用途: - Runtime 根据 manifest 预加载组件资源 - Editor 根据 manifest 展示组件依赖
4467
+ * 获取组件清单
4468
+ */
4469
+ async getPageManifest(requestParameters, initOverrides) {
4470
+ const response = await this.getPageManifestRaw(requestParameters, initOverrides);
4471
+ return await response.value();
4472
+ }
4075
4473
  /**
4076
4474
  * 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 时返回)
4077
4475
  * 解析页面(Runtime 核心接口)
@@ -4496,6 +4894,10 @@ export {
4496
4894
  ActionManifestToJSON,
4497
4895
  ActionsApi,
4498
4896
  ActivitiesApi,
4897
+ ActivityStatusFromJSON,
4898
+ ActivityStatusFromJSONTyped,
4899
+ ActivityStatusToJSON,
4900
+ ActivityStatusTypeEnum,
4499
4901
  ApiError,
4500
4902
  BaseAPI,
4501
4903
  BatchQueryRequestFromJSON,
@@ -4522,6 +4924,7 @@ export {
4522
4924
  ClaimRecordInfoToJSON,
4523
4925
  ComponentManifestFromJSON,
4524
4926
  ComponentManifestFromJSONTyped,
4927
+ ComponentManifestSourceEnum,
4525
4928
  ComponentManifestToJSON,
4526
4929
  Configuration,
4527
4930
  ErrorResponseFromJSON,
@@ -4547,15 +4950,30 @@ export {
4547
4950
  GetActivityState200ResponseFromJSON,
4548
4951
  GetActivityState200ResponseFromJSONTyped,
4549
4952
  GetActivityState200ResponseToJSON,
4953
+ GetActivityStatus200ResponseFromJSON,
4954
+ GetActivityStatus200ResponseFromJSONTyped,
4955
+ GetActivityStatus200ResponseToJSON,
4550
4956
  GetClaimRecords200ResponseFromJSON,
4551
4957
  GetClaimRecords200ResponseFromJSONTyped,
4552
4958
  GetClaimRecords200ResponseToJSON,
4959
+ GetClaimStatus200ResponseFromJSON,
4960
+ GetClaimStatus200ResponseFromJSONTyped,
4961
+ GetClaimStatus200ResponseToJSON,
4553
4962
  GetLotteryRecords200ResponseFromJSON,
4554
4963
  GetLotteryRecords200ResponseFromJSONTyped,
4555
4964
  GetLotteryRecords200ResponseToJSON,
4965
+ GetPageConfig200ResponseFromJSON,
4966
+ GetPageConfig200ResponseFromJSONTyped,
4967
+ GetPageConfig200ResponseToJSON,
4968
+ GetPageManifest200ResponseFromJSON,
4969
+ GetPageManifest200ResponseFromJSONTyped,
4970
+ GetPageManifest200ResponseToJSON,
4556
4971
  GetSigninCalendar200ResponseFromJSON,
4557
4972
  GetSigninCalendar200ResponseFromJSONTyped,
4558
4973
  GetSigninCalendar200ResponseToJSON,
4974
+ GetSigninStatus200ResponseFromJSON,
4975
+ GetSigninStatus200ResponseFromJSONTyped,
4976
+ GetSigninStatus200ResponseToJSON,
4559
4977
  GetTenantConfig200ResponseFromJSON,
4560
4978
  GetTenantConfig200ResponseFromJSONTyped,
4561
4979
  GetTenantConfig200ResponseToJSON,
@@ -4655,6 +5073,7 @@ export {
4655
5073
  ResolvePageResponseAllOfDataSnapshotFromJSONTyped,
4656
5074
  ResolvePageResponseAllOfDataSnapshotManifestComponentsFromJSON,
4657
5075
  ResolvePageResponseAllOfDataSnapshotManifestComponentsFromJSONTyped,
5076
+ ResolvePageResponseAllOfDataSnapshotManifestComponentsSourceEnum,
4658
5077
  ResolvePageResponseAllOfDataSnapshotManifestComponentsToJSON,
4659
5078
  ResolvePageResponseAllOfDataSnapshotManifestEntrypointsFromJSON,
4660
5079
  ResolvePageResponseAllOfDataSnapshotManifestEntrypointsFromJSONTyped,
@@ -4803,6 +5222,7 @@ export {
4803
5222
  instanceOfActionDefinitionResponseData,
4804
5223
  instanceOfActionEffect,
4805
5224
  instanceOfActionManifest,
5225
+ instanceOfActivityStatus,
4806
5226
  instanceOfBatchQueryRequest,
4807
5227
  instanceOfBatchQueryRequestQueriesInner,
4808
5228
  instanceOfBatchQueryResponse,
@@ -4818,9 +5238,14 @@ export {
4818
5238
  instanceOfExecuteActionResponseAllOfDataRiskDecision,
4819
5239
  instanceOfGetActivityInfo200Response,
4820
5240
  instanceOfGetActivityState200Response,
5241
+ instanceOfGetActivityStatus200Response,
4821
5242
  instanceOfGetClaimRecords200Response,
5243
+ instanceOfGetClaimStatus200Response,
4822
5244
  instanceOfGetLotteryRecords200Response,
5245
+ instanceOfGetPageConfig200Response,
5246
+ instanceOfGetPageManifest200Response,
4823
5247
  instanceOfGetSigninCalendar200Response,
5248
+ instanceOfGetSigninStatus200Response,
4824
5249
  instanceOfGetTenantConfig200Response,
4825
5250
  instanceOfHealthResponse,
4826
5251
  instanceOfHealthResponseDependenciesValue,