@xmobitea/gn-typescript-client 2.5.4 → 2.6.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.
@@ -4189,6 +4189,9 @@ GNParameterCode.StoreItemType = "storeItemType";
4189
4189
  GNParameterCode.OwnerIds = "ownerIds";
4190
4190
  GNParameterCode.GetStoreUsed = "getStoreUsed";
4191
4191
  GNParameterCode.RemoveStoreUsed = "removeStoreUsed";
4192
+ GNParameterCode.AdminSecretKeys = "adminSecretKeys";
4193
+ GNParameterCode.ServerSecretKeys = "serverSecretKeys";
4194
+ GNParameterCode.PlayerSecretKeys = "playerSecretKeys";
4192
4195
 
4193
4196
  ;// ./src/runtime/constant/parameterCode/ParameterCode.ts
4194
4197
  class ParameterCode {
@@ -14643,6 +14646,10 @@ var DashboardModels;
14643
14646
  NumberDataMember({ code: GNParameterCode.TsExpire, isOptional: true }),
14644
14647
  DashboardModels_metadata("design:type", Number)
14645
14648
  ], SetSecretInfoInformationRequestData.prototype, "tsExpire", void 0);
14649
+ DashboardModels_decorate([
14650
+ StringDataMember({ code: GNParameterCode.DisplayName, isOptional: true }),
14651
+ DashboardModels_metadata("design:type", String)
14652
+ ], SetSecretInfoInformationRequestData.prototype, "displayName", void 0);
14646
14653
  DashboardModels_decorate([
14647
14654
  GNHashtableDataMember({ code: GNParameterCode.Permission, isOptional: true }),
14648
14655
  DashboardModels_metadata("design:type", PermissionParam)
@@ -14935,6 +14942,10 @@ var DashboardModels;
14935
14942
  NumberDataMember({ code: GNParameterCode.TsExpire }),
14936
14943
  DashboardModels_metadata("design:type", Number)
14937
14944
  ], GetSecretInfoInformationResponseData.prototype, "tsExpire", void 0);
14945
+ DashboardModels_decorate([
14946
+ StringDataMember({ code: GNParameterCode.DisplayName }),
14947
+ DashboardModels_metadata("design:type", String)
14948
+ ], GetSecretInfoInformationResponseData.prototype, "displayName", void 0);
14938
14949
  DashboardModels_decorate([
14939
14950
  GNHashtableDataMember({ code: GNParameterCode.Permission }),
14940
14951
  DashboardModels_metadata("design:type", PermissionParam)
@@ -14950,9 +14961,17 @@ var DashboardModels;
14950
14961
  class GetSecretInfoListResponseData {
14951
14962
  }
14952
14963
  DashboardModels_decorate([
14953
- GNArrayDataMember({ code: GNParameterCode.Results, elementCls: SecretInfoWithSecretKeyResponseData }),
14964
+ GNArrayDataMember({ code: GNParameterCode.AdminSecretKeys, elementCls: SecretInfoWithSecretKeyResponseData }),
14965
+ DashboardModels_metadata("design:type", Array)
14966
+ ], GetSecretInfoListResponseData.prototype, "adminSecretKeys", void 0);
14967
+ DashboardModels_decorate([
14968
+ GNArrayDataMember({ code: GNParameterCode.ServerSecretKeys, elementCls: SecretInfoWithSecretKeyResponseData }),
14954
14969
  DashboardModels_metadata("design:type", Array)
14955
- ], GetSecretInfoListResponseData.prototype, "results", void 0);
14970
+ ], GetSecretInfoListResponseData.prototype, "serverSecretKeys", void 0);
14971
+ DashboardModels_decorate([
14972
+ GNArrayDataMember({ code: GNParameterCode.PlayerSecretKeys, elementCls: SecretInfoWithSecretKeyResponseData }),
14973
+ DashboardModels_metadata("design:type", Array)
14974
+ ], GetSecretInfoListResponseData.prototype, "playerSecretKeys", void 0);
14956
14975
  DashboardModels.GetSecretInfoListResponseData = GetSecretInfoListResponseData;
14957
14976
  class AdminAccountWithUserIdResponseData {
14958
14977
  }
@@ -41961,7 +41980,7 @@ class AdminCloudScriptApi {
41961
41980
  }
41962
41981
 
41963
41982
  ;// ./src/runtime/GNNetwork.ts
41964
- const VERSION = "2.5";
41983
+ const VERSION = "2.6";
41965
41984
 
41966
41985
 
41967
41986
 
@@ -42230,6 +42249,7 @@ function bind(fn, thisArg) {
42230
42249
 
42231
42250
  const {toString: utils_toString} = Object.prototype;
42232
42251
  const {getPrototypeOf} = Object;
42252
+ const {iterator, toStringTag} = Symbol;
42233
42253
 
42234
42254
  const kindOf = (cache => thing => {
42235
42255
  const str = utils_toString.call(thing);
@@ -42356,7 +42376,7 @@ const isPlainObject = (val) => {
42356
42376
  }
42357
42377
 
42358
42378
  const prototype = getPrototypeOf(val);
42359
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
42379
+ return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
42360
42380
  }
42361
42381
 
42362
42382
  /**
@@ -42707,13 +42727,13 @@ const isTypedArray = (TypedArray => {
42707
42727
  * @returns {void}
42708
42728
  */
42709
42729
  const forEachEntry = (obj, fn) => {
42710
- const generator = obj && obj[Symbol.iterator];
42730
+ const generator = obj && obj[iterator];
42711
42731
 
42712
- const iterator = generator.call(obj);
42732
+ const _iterator = generator.call(obj);
42713
42733
 
42714
42734
  let result;
42715
42735
 
42716
- while ((result = iterator.next()) && !result.done) {
42736
+ while ((result = _iterator.next()) && !result.done) {
42717
42737
  const pair = result.value;
42718
42738
  fn.call(obj, pair[0], pair[1]);
42719
42739
  }
@@ -42826,26 +42846,6 @@ const toFiniteNumber = (value, defaultValue) => {
42826
42846
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
42827
42847
  }
42828
42848
 
42829
- const ALPHA = 'abcdefghijklmnopqrstuvwxyz'
42830
-
42831
- const DIGIT = '0123456789';
42832
-
42833
- const ALPHABET = {
42834
- DIGIT,
42835
- ALPHA,
42836
- ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
42837
- }
42838
-
42839
- const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
42840
- let str = '';
42841
- const {length} = alphabet;
42842
- while (size--) {
42843
- str += alphabet[Math.random() * length|0]
42844
- }
42845
-
42846
- return str;
42847
- }
42848
-
42849
42849
  /**
42850
42850
  * If the thing is a FormData object, return true, otherwise return false.
42851
42851
  *
@@ -42854,7 +42854,7 @@ const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
42854
42854
  * @returns {boolean}
42855
42855
  */
42856
42856
  function isSpecCompliantForm(thing) {
42857
- return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);
42857
+ return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
42858
42858
  }
42859
42859
 
42860
42860
  const toJSONObject = (obj) => {
@@ -42923,6 +42923,10 @@ const asap = typeof queueMicrotask !== 'undefined' ?
42923
42923
 
42924
42924
  // *********************
42925
42925
 
42926
+
42927
+ const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
42928
+
42929
+
42926
42930
  /* harmony default export */ const utils = ({
42927
42931
  isArray,
42928
42932
  isArrayBuffer,
@@ -42973,14 +42977,13 @@ const asap = typeof queueMicrotask !== 'undefined' ?
42973
42977
  findKey,
42974
42978
  global: _global,
42975
42979
  isContextDefined,
42976
- ALPHABET,
42977
- generateString,
42978
42980
  isSpecCompliantForm,
42979
42981
  toJSONObject,
42980
42982
  isAsyncFn,
42981
42983
  isThenable,
42982
42984
  setImmediate: _setImmediate,
42983
- asap
42985
+ asap,
42986
+ isIterable
42984
42987
  });
42985
42988
 
42986
42989
  ;// ./node_modules/axios/lib/core/AxiosError.js
@@ -43215,6 +43218,10 @@ function toFormData(obj, formData, options) {
43215
43218
  return value.toISOString();
43216
43219
  }
43217
43220
 
43221
+ if (utils.isBoolean(value)) {
43222
+ return value.toString();
43223
+ }
43224
+
43218
43225
  if (!useBlob && utils.isBlob(value)) {
43219
43226
  throw new core_AxiosError('Blob is not supported. Use a Buffer instead.');
43220
43227
  }
@@ -44053,10 +44060,18 @@ class AxiosHeaders {
44053
44060
  setHeaders(header, valueOrRewrite)
44054
44061
  } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
44055
44062
  setHeaders(parseHeaders(header), valueOrRewrite);
44056
- } else if (utils.isHeaders(header)) {
44057
- for (const [key, value] of header.entries()) {
44058
- setHeader(value, key, rewrite);
44063
+ } else if (utils.isObject(header) && utils.isIterable(header)) {
44064
+ let obj = {}, dest, key;
44065
+ for (const entry of header) {
44066
+ if (!utils.isArray(entry)) {
44067
+ throw TypeError('Object iterator must return a key-value pair');
44068
+ }
44069
+
44070
+ obj[key = entry[0]] = (dest = obj[key]) ?
44071
+ (utils.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]]) : entry[1];
44059
44072
  }
44073
+
44074
+ setHeaders(obj, valueOrRewrite)
44060
44075
  } else {
44061
44076
  header != null && setHeader(valueOrRewrite, header, rewrite);
44062
44077
  }
@@ -44198,6 +44213,10 @@ class AxiosHeaders {
44198
44213
  return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
44199
44214
  }
44200
44215
 
44216
+ getSetCookie() {
44217
+ return this.get("set-cookie") || [];
44218
+ }
44219
+
44201
44220
  get [Symbol.toStringTag]() {
44202
44221
  return 'AxiosHeaders';
44203
44222
  }
@@ -44614,8 +44633,9 @@ function combineURLs(baseURL, relativeURL) {
44614
44633
  *
44615
44634
  * @returns {string} The combined full path
44616
44635
  */
44617
- function buildFullPath(baseURL, requestedURL) {
44618
- if (baseURL && !isAbsoluteURL(requestedURL)) {
44636
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
44637
+ let isRelativeUrl = !isAbsoluteURL(requestedURL);
44638
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
44619
44639
  return combineURLs(baseURL, requestedURL);
44620
44640
  }
44621
44641
  return requestedURL;
@@ -44746,7 +44766,7 @@ function mergeConfig(config1, config2) {
44746
44766
 
44747
44767
  newConfig.headers = headers = core_AxiosHeaders.from(headers);
44748
44768
 
44749
- newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
44769
+ newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
44750
44770
 
44751
44771
  // HTTP basic authentication
44752
44772
  if (auth) {
@@ -45296,7 +45316,7 @@ const resolveBodyLength = async (headers, body) => {
45296
45316
  credentials: isCredentialsSupported ? withCredentials : undefined
45297
45317
  });
45298
45318
 
45299
- let response = await fetch(request);
45319
+ let response = await fetch(request, fetchOptions);
45300
45320
 
45301
45321
  const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
45302
45322
 
@@ -45342,7 +45362,7 @@ const resolveBodyLength = async (headers, body) => {
45342
45362
  } catch (err) {
45343
45363
  unsubscribe && unsubscribe();
45344
45364
 
45345
- if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {
45365
+ if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
45346
45366
  throw Object.assign(
45347
45367
  new core_AxiosError('Network Error', core_AxiosError.ERR_NETWORK, config, request),
45348
45368
  {
@@ -45522,7 +45542,7 @@ function dispatchRequest(config) {
45522
45542
  }
45523
45543
 
45524
45544
  ;// ./node_modules/axios/lib/env/data.js
45525
- const data_VERSION = "1.7.9";
45545
+ const data_VERSION = "1.10.0";
45526
45546
  ;// ./node_modules/axios/lib/helpers/validator.js
45527
45547
 
45528
45548
 
@@ -45647,7 +45667,7 @@ const Axios_validators = validator.validators;
45647
45667
  */
45648
45668
  class Axios {
45649
45669
  constructor(instanceConfig) {
45650
- this.defaults = instanceConfig;
45670
+ this.defaults = instanceConfig || {};
45651
45671
  this.interceptors = {
45652
45672
  request: new core_InterceptorManager(),
45653
45673
  response: new core_InterceptorManager()
@@ -45724,6 +45744,15 @@ class Axios {
45724
45744
  }
45725
45745
  }
45726
45746
 
45747
+ // Set config.allowAbsoluteUrls
45748
+ if (config.allowAbsoluteUrls !== undefined) {
45749
+ // do nothing
45750
+ } else if (this.defaults.allowAbsoluteUrls !== undefined) {
45751
+ config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
45752
+ } else {
45753
+ config.allowAbsoluteUrls = true;
45754
+ }
45755
+
45727
45756
  validator.assertOptions(config, {
45728
45757
  baseUrl: Axios_validators.spelling('baseURL'),
45729
45758
  withXsrfToken: Axios_validators.spelling('withXSRFToken')
@@ -45819,7 +45848,7 @@ class Axios {
45819
45848
 
45820
45849
  getUri(config) {
45821
45850
  config = mergeConfig(this.defaults, config);
45822
- const fullPath = buildFullPath(config.baseURL, config.url);
45851
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
45823
45852
  return buildURL(fullPath, config.params, config.paramsSerializer);
45824
45853
  }
45825
45854
  }