@triveria/wallet 0.0.246 → 0.0.248

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/common.d.ts CHANGED
@@ -12,54 +12,17 @@
12
12
  import type { Configuration } from "./configuration";
13
13
  import type { RequestArgs } from "./base";
14
14
  import type { AxiosInstance, AxiosResponse } from 'axios';
15
- /**
16
- *
17
- * @export
18
- */
19
15
  export declare const DUMMY_BASE_URL = "https://example.com";
20
16
  /**
21
17
  *
22
18
  * @throws {RequiredError}
23
- * @export
24
19
  */
25
20
  export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
26
- /**
27
- *
28
- * @export
29
- */
30
21
  export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
31
- /**
32
- *
33
- * @export
34
- */
35
22
  export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
36
- /**
37
- *
38
- * @export
39
- */
40
23
  export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
41
- /**
42
- *
43
- * @export
44
- */
45
24
  export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
46
- /**
47
- *
48
- * @export
49
- */
50
25
  export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
51
- /**
52
- *
53
- * @export
54
- */
55
26
  export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
56
- /**
57
- *
58
- * @export
59
- */
60
27
  export declare const toPathString: (url: URL) => string;
61
- /**
62
- *
63
- * @export
64
- */
65
28
  export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
package/common.js CHANGED
@@ -24,15 +24,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
26
26
  const base_1 = require("./base");
27
- /**
28
- *
29
- * @export
30
- */
31
27
  exports.DUMMY_BASE_URL = 'https://example.com';
32
28
  /**
33
29
  *
34
30
  * @throws {RequiredError}
35
- * @export
36
31
  */
37
32
  const assertParamExists = function (functionName, paramName, paramValue) {
38
33
  if (paramValue === null || paramValue === undefined) {
@@ -40,10 +35,6 @@ const assertParamExists = function (functionName, paramName, paramValue) {
40
35
  }
41
36
  };
42
37
  exports.assertParamExists = assertParamExists;
43
- /**
44
- *
45
- * @export
46
- */
47
38
  const setApiKeyToObject = function (object, keyParamName, configuration) {
48
39
  return __awaiter(this, void 0, void 0, function* () {
49
40
  if (configuration && configuration.apiKey) {
@@ -55,20 +46,12 @@ const setApiKeyToObject = function (object, keyParamName, configuration) {
55
46
  });
56
47
  };
57
48
  exports.setApiKeyToObject = setApiKeyToObject;
58
- /**
59
- *
60
- * @export
61
- */
62
49
  const setBasicAuthToObject = function (object, configuration) {
63
50
  if (configuration && (configuration.username || configuration.password)) {
64
51
  object["auth"] = { username: configuration.username, password: configuration.password };
65
52
  }
66
53
  };
67
54
  exports.setBasicAuthToObject = setBasicAuthToObject;
68
- /**
69
- *
70
- * @export
71
- */
72
55
  const setBearerAuthToObject = function (object, configuration) {
73
56
  return __awaiter(this, void 0, void 0, function* () {
74
57
  if (configuration && configuration.accessToken) {
@@ -80,10 +63,6 @@ const setBearerAuthToObject = function (object, configuration) {
80
63
  });
81
64
  };
82
65
  exports.setBearerAuthToObject = setBearerAuthToObject;
83
- /**
84
- *
85
- * @export
86
- */
87
66
  const setOAuthToObject = function (object, name, scopes, configuration) {
88
67
  return __awaiter(this, void 0, void 0, function* () {
89
68
  if (configuration && configuration.accessToken) {
@@ -115,20 +94,12 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
115
94
  }
116
95
  }
117
96
  }
118
- /**
119
- *
120
- * @export
121
- */
122
97
  const setSearchParams = function (url, ...objects) {
123
98
  const searchParams = new URLSearchParams(url.search);
124
99
  setFlattenedQueryParams(searchParams, objects);
125
100
  url.search = searchParams.toString();
126
101
  };
127
102
  exports.setSearchParams = setSearchParams;
128
- /**
129
- *
130
- * @export
131
- */
132
103
  const serializeDataIfNeeded = function (value, requestOptions, configuration) {
133
104
  const nonString = typeof value !== 'string';
134
105
  const needsSerialization = nonString && configuration && configuration.isJsonMime
@@ -139,18 +110,10 @@ const serializeDataIfNeeded = function (value, requestOptions, configuration) {
139
110
  : (value || "");
140
111
  };
141
112
  exports.serializeDataIfNeeded = serializeDataIfNeeded;
142
- /**
143
- *
144
- * @export
145
- */
146
113
  const toPathString = function (url) {
147
114
  return url.pathname + url.search + url.hash;
148
115
  };
149
116
  exports.toPathString = toPathString;
150
- /**
151
- *
152
- * @export
153
- */
154
117
  const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
155
118
  return (axios = globalAxios, basePath = BASE_PATH) => {
156
119
  var _a;
@@ -23,49 +23,32 @@ export declare class Configuration {
23
23
  /**
24
24
  * parameter for apiKey security
25
25
  * @param name security name
26
- * @memberof Configuration
27
26
  */
28
27
  apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
29
28
  /**
30
29
  * parameter for basic security
31
- *
32
- * @type {string}
33
- * @memberof Configuration
34
30
  */
35
31
  username?: string;
36
32
  /**
37
33
  * parameter for basic security
38
- *
39
- * @type {string}
40
- * @memberof Configuration
41
34
  */
42
35
  password?: string;
43
36
  /**
44
37
  * parameter for oauth2 security
45
38
  * @param name security name
46
39
  * @param scopes oauth2 scope
47
- * @memberof Configuration
48
40
  */
49
41
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
50
42
  /**
51
43
  * override base path
52
- *
53
- * @type {string}
54
- * @memberof Configuration
55
44
  */
56
45
  basePath?: string;
57
46
  /**
58
47
  * override server index
59
- *
60
- * @type {number}
61
- * @memberof Configuration
62
48
  */
63
49
  serverIndex?: number;
64
50
  /**
65
51
  * base options for axios calls
66
- *
67
- * @type {any}
68
- * @memberof Configuration
69
52
  */
70
53
  baseOptions?: any;
71
54
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.246",
4
+ "version": "0.0.248",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {