@randock/nameshift-api-client 0.0.245 → 0.0.246
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/.openapi-generator/FILES +0 -1
- package/README.md +3 -3
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/package.json +1 -1
- package/src/apis/index.ts +0 -1
- package/dist/apis/AirwallexPublicApi.d.ts +0 -29
- package/dist/apis/AirwallexPublicApi.js +0 -130
- package/src/apis/AirwallexPublicApi.ts +0 -85
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.246
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.246 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
06326bbbd8fabc037419c457a3e884d3f04a075337067df7112de07cb5518eb6a23891d30291a1493274c3da1c1a9670
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -19,7 +19,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
__exportStar(require("./AccountsApi"), exports);
|
|
20
20
|
__exportStar(require("./AccountsPublicApi"), exports);
|
|
21
21
|
__exportStar(require("./AdminApi"), exports);
|
|
22
|
-
__exportStar(require("./AirwallexPublicApi"), exports);
|
|
23
22
|
__exportStar(require("./BankAccountsApi"), exports);
|
|
24
23
|
__exportStar(require("./BuyersApi"), exports);
|
|
25
24
|
__exportStar(require("./BuyersPublicApi"), exports);
|
package/package.json
CHANGED
package/src/apis/index.ts
CHANGED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Nameshift
|
|
3
|
-
* Nameshift API
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import * as runtime from '../runtime';
|
|
13
|
-
export interface AirwallexPublicApiPostAirwallexWebhookRequest {
|
|
14
|
-
xSignature: string;
|
|
15
|
-
xTimestamp: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
export declare class AirwallexPublicApi extends runtime.BaseAPI {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
postAirwallexWebhookRaw(requestParameters: AirwallexPublicApiPostAirwallexWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
postAirwallexWebhook(requestParameters: AirwallexPublicApiPostAirwallexWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
29
|
-
}
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Nameshift
|
|
6
|
-
* Nameshift API
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
-
function step(op) {
|
|
44
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
-
switch (op[0]) {
|
|
49
|
-
case 0: case 1: t = op; break;
|
|
50
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
-
default:
|
|
54
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
-
if (t[2]) _.ops.pop();
|
|
59
|
-
_.trys.pop(); continue;
|
|
60
|
-
}
|
|
61
|
-
op = body.call(thisArg, _);
|
|
62
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.AirwallexPublicApi = void 0;
|
|
68
|
-
var runtime = require("../runtime");
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
*/
|
|
72
|
-
var AirwallexPublicApi = /** @class */ (function (_super) {
|
|
73
|
-
__extends(AirwallexPublicApi, _super);
|
|
74
|
-
function AirwallexPublicApi() {
|
|
75
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
*/
|
|
80
|
-
AirwallexPublicApi.prototype.postAirwallexWebhookRaw = function (requestParameters, initOverrides) {
|
|
81
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
82
|
-
var queryParameters, headerParameters, response;
|
|
83
|
-
return __generator(this, function (_a) {
|
|
84
|
-
switch (_a.label) {
|
|
85
|
-
case 0:
|
|
86
|
-
if (requestParameters['xSignature'] == null) {
|
|
87
|
-
throw new runtime.RequiredError('xSignature', 'Required parameter "xSignature" was null or undefined when calling postAirwallexWebhook().');
|
|
88
|
-
}
|
|
89
|
-
if (requestParameters['xTimestamp'] == null) {
|
|
90
|
-
throw new runtime.RequiredError('xTimestamp', 'Required parameter "xTimestamp" was null or undefined when calling postAirwallexWebhook().');
|
|
91
|
-
}
|
|
92
|
-
queryParameters = {};
|
|
93
|
-
headerParameters = {};
|
|
94
|
-
if (requestParameters['xSignature'] != null) {
|
|
95
|
-
headerParameters['x-signature'] = String(requestParameters['xSignature']);
|
|
96
|
-
}
|
|
97
|
-
if (requestParameters['xTimestamp'] != null) {
|
|
98
|
-
headerParameters['x-timestamp'] = String(requestParameters['xTimestamp']);
|
|
99
|
-
}
|
|
100
|
-
return [4 /*yield*/, this.request({
|
|
101
|
-
path: "/airwallex/webhook",
|
|
102
|
-
method: 'POST',
|
|
103
|
-
headers: headerParameters,
|
|
104
|
-
query: queryParameters,
|
|
105
|
-
}, initOverrides)];
|
|
106
|
-
case 1:
|
|
107
|
-
response = _a.sent();
|
|
108
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
*
|
|
115
|
-
*/
|
|
116
|
-
AirwallexPublicApi.prototype.postAirwallexWebhook = function (requestParameters, initOverrides) {
|
|
117
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
118
|
-
return __generator(this, function (_a) {
|
|
119
|
-
switch (_a.label) {
|
|
120
|
-
case 0: return [4 /*yield*/, this.postAirwallexWebhookRaw(requestParameters, initOverrides)];
|
|
121
|
-
case 1:
|
|
122
|
-
_a.sent();
|
|
123
|
-
return [2 /*return*/];
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
};
|
|
128
|
-
return AirwallexPublicApi;
|
|
129
|
-
}(runtime.BaseAPI));
|
|
130
|
-
exports.AirwallexPublicApi = AirwallexPublicApi;
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Nameshift
|
|
5
|
-
* Nameshift API
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import * as runtime from '../runtime';
|
|
17
|
-
import type {
|
|
18
|
-
ThrottlerException,
|
|
19
|
-
ValidationException,
|
|
20
|
-
} from '../models/index';
|
|
21
|
-
import {
|
|
22
|
-
ThrottlerExceptionFromJSON,
|
|
23
|
-
ThrottlerExceptionToJSON,
|
|
24
|
-
ValidationExceptionFromJSON,
|
|
25
|
-
ValidationExceptionToJSON,
|
|
26
|
-
} from '../models/index';
|
|
27
|
-
|
|
28
|
-
export interface AirwallexPublicApiPostAirwallexWebhookRequest {
|
|
29
|
-
xSignature: string;
|
|
30
|
-
xTimestamp: string;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
|
-
export class AirwallexPublicApi extends runtime.BaseAPI {
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
async postAirwallexWebhookRaw(requestParameters: AirwallexPublicApiPostAirwallexWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
42
|
-
if (requestParameters['xSignature'] == null) {
|
|
43
|
-
throw new runtime.RequiredError(
|
|
44
|
-
'xSignature',
|
|
45
|
-
'Required parameter "xSignature" was null or undefined when calling postAirwallexWebhook().'
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
if (requestParameters['xTimestamp'] == null) {
|
|
50
|
-
throw new runtime.RequiredError(
|
|
51
|
-
'xTimestamp',
|
|
52
|
-
'Required parameter "xTimestamp" was null or undefined when calling postAirwallexWebhook().'
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
const queryParameters: any = {};
|
|
57
|
-
|
|
58
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
59
|
-
|
|
60
|
-
if (requestParameters['xSignature'] != null) {
|
|
61
|
-
headerParameters['x-signature'] = String(requestParameters['xSignature']);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
if (requestParameters['xTimestamp'] != null) {
|
|
65
|
-
headerParameters['x-timestamp'] = String(requestParameters['xTimestamp']);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
const response = await this.request({
|
|
69
|
-
path: `/airwallex/webhook`,
|
|
70
|
-
method: 'POST',
|
|
71
|
-
headers: headerParameters,
|
|
72
|
-
query: queryParameters,
|
|
73
|
-
}, initOverrides);
|
|
74
|
-
|
|
75
|
-
return new runtime.VoidApiResponse(response);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
*/
|
|
81
|
-
async postAirwallexWebhook(requestParameters: AirwallexPublicApiPostAirwallexWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
82
|
-
await this.postAirwallexWebhookRaw(requestParameters, initOverrides);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
}
|