@randock/nameshift-api-client 0.0.285 → 0.0.286

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.
@@ -11,6 +11,7 @@ src/apis/BuyersApi.ts
11
11
  src/apis/BuyersPublicApi.ts
12
12
  src/apis/DomainsApi.ts
13
13
  src/apis/DomainsPublicApi.ts
14
+ src/apis/EppApi.ts
14
15
  src/apis/InvoicesApi.ts
15
16
  src/apis/LeadsApi.ts
16
17
  src/apis/LeadsPublicApi.ts
@@ -126,6 +127,7 @@ src/models/DomainTransferSellerAccountDto.ts
126
127
  src/models/DomainTransferSubscriptionDto.ts
127
128
  src/models/DomainTransferWorkflowDto.ts
128
129
  src/models/DomainUrlDto.ts
130
+ src/models/EppBatchUpdateInput.ts
129
131
  src/models/ForgotPasswordRequestInput.ts
130
132
  src/models/GetAllDomainTransfers200Response.ts
131
133
  src/models/GetAllInvoices200Response.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.285
1
+ ## @randock/nameshift-api-client@0.0.286
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.285 --save
39
+ npm install @randock/nameshift-api-client@0.0.286 --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
- b95778f118d0e659eb68244a0b8cfb52b0dfc5285521b31f96413fff838611241450befb02adb28da9827717fcd93f45
47
+ 99292b9870383b8d264b1635400137fff5a0e4497a17f35ca4ab873db05b036555e232fc7ad9e306d5ae02a5244a9a59
@@ -0,0 +1,29 @@
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
+ import type { EppBatchUpdateInput } from '../models/index';
14
+ export interface EppApiEppBatchUpdateDomainsRequest {
15
+ eppBatchUpdateInput: EppBatchUpdateInput;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class EppApi extends runtime.BaseAPI {
21
+ /**
22
+ *
23
+ */
24
+ eppBatchUpdateDomainsRaw(requestParameters: EppApiEppBatchUpdateDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
25
+ /**
26
+ *
27
+ */
28
+ eppBatchUpdateDomains(requestParameters: EppApiEppBatchUpdateDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
29
+ }
@@ -0,0 +1,133 @@
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.EppApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var EppApi = /** @class */ (function (_super) {
74
+ __extends(EppApi, _super);
75
+ function EppApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ *
80
+ */
81
+ EppApi.prototype.eppBatchUpdateDomainsRaw = function (requestParameters, initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, token, tokenString, response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ if (requestParameters['eppBatchUpdateInput'] == null) {
88
+ throw new runtime.RequiredError('eppBatchUpdateInput', 'Required parameter "eppBatchUpdateInput" was null or undefined when calling eppBatchUpdateDomains().');
89
+ }
90
+ queryParameters = {};
91
+ headerParameters = {};
92
+ headerParameters['Content-Type'] = 'application/json';
93
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
94
+ token = this.configuration.accessToken;
95
+ return [4 /*yield*/, token("bearer", [])];
96
+ case 1:
97
+ tokenString = _a.sent();
98
+ if (tokenString) {
99
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
100
+ }
101
+ _a.label = 2;
102
+ case 2: return [4 /*yield*/, this.request({
103
+ path: "/private/epp",
104
+ method: 'POST',
105
+ headers: headerParameters,
106
+ query: queryParameters,
107
+ body: (0, index_1.EppBatchUpdateInputToJSON)(requestParameters['eppBatchUpdateInput']),
108
+ }, initOverrides)];
109
+ case 3:
110
+ response = _a.sent();
111
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
112
+ }
113
+ });
114
+ });
115
+ };
116
+ /**
117
+ *
118
+ */
119
+ EppApi.prototype.eppBatchUpdateDomains = function (requestParameters, initOverrides) {
120
+ return __awaiter(this, void 0, void 0, function () {
121
+ return __generator(this, function (_a) {
122
+ switch (_a.label) {
123
+ case 0: return [4 /*yield*/, this.eppBatchUpdateDomainsRaw(requestParameters, initOverrides)];
124
+ case 1:
125
+ _a.sent();
126
+ return [2 /*return*/];
127
+ }
128
+ });
129
+ });
130
+ };
131
+ return EppApi;
132
+ }(runtime.BaseAPI));
133
+ exports.EppApi = EppApi;
@@ -6,6 +6,7 @@ export * from './BuyersApi';
6
6
  export * from './BuyersPublicApi';
7
7
  export * from './DomainsApi';
8
8
  export * from './DomainsPublicApi';
9
+ export * from './EppApi';
9
10
  export * from './InvoicesApi';
10
11
  export * from './LeadsApi';
11
12
  export * from './LeadsPublicApi';
@@ -24,6 +24,7 @@ __exportStar(require("./BuyersApi"), exports);
24
24
  __exportStar(require("./BuyersPublicApi"), exports);
25
25
  __exportStar(require("./DomainsApi"), exports);
26
26
  __exportStar(require("./DomainsPublicApi"), exports);
27
+ __exportStar(require("./EppApi"), exports);
27
28
  __exportStar(require("./InvoicesApi"), exports);
28
29
  __exportStar(require("./LeadsApi"), exports);
29
30
  __exportStar(require("./LeadsPublicApi"), exports);
@@ -0,0 +1,92 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface EppBatchUpdateInput
16
+ */
17
+ export interface EppBatchUpdateInput {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof EppBatchUpdateInput
22
+ */
23
+ eppServer: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof EppBatchUpdateInput
28
+ */
29
+ eppPort: number;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof EppBatchUpdateInput
34
+ */
35
+ eppUsername: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof EppBatchUpdateInput
40
+ */
41
+ eppPassword: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof EppBatchUpdateInput
46
+ */
47
+ action: EppBatchUpdateInputActionEnum;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof EppBatchUpdateInput
52
+ */
53
+ domainSelector: EppBatchUpdateInputDomainSelectorEnum;
54
+ /**
55
+ *
56
+ * @type {Array<string>}
57
+ * @memberof EppBatchUpdateInput
58
+ */
59
+ domains: Array<string> | null;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof EppBatchUpdateInput
64
+ */
65
+ tld: string | null;
66
+ }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const EppBatchUpdateInputActionEnum: {
71
+ readonly DNSSEC: "dnssec";
72
+ readonly NAMESERVERS: "nameservers";
73
+ readonly DNSSEC_AND_NAMESERVERS: "dnssec_and_nameservers";
74
+ };
75
+ export type EppBatchUpdateInputActionEnum = typeof EppBatchUpdateInputActionEnum[keyof typeof EppBatchUpdateInputActionEnum];
76
+ /**
77
+ * @export
78
+ */
79
+ export declare const EppBatchUpdateInputDomainSelectorEnum: {
80
+ readonly ALL: "all";
81
+ readonly SPECIFIED: "specified";
82
+ readonly TLD: "tld";
83
+ };
84
+ export type EppBatchUpdateInputDomainSelectorEnum = typeof EppBatchUpdateInputDomainSelectorEnum[keyof typeof EppBatchUpdateInputDomainSelectorEnum];
85
+ /**
86
+ * Check if a given object implements the EppBatchUpdateInput interface.
87
+ */
88
+ export declare function instanceOfEppBatchUpdateInput(value: object): value is EppBatchUpdateInput;
89
+ export declare function EppBatchUpdateInputFromJSON(json: any): EppBatchUpdateInput;
90
+ export declare function EppBatchUpdateInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): EppBatchUpdateInput;
91
+ export declare function EppBatchUpdateInputToJSON(json: any): EppBatchUpdateInput;
92
+ export declare function EppBatchUpdateInputToJSONTyped(value?: EppBatchUpdateInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,96 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.EppBatchUpdateInputDomainSelectorEnum = exports.EppBatchUpdateInputActionEnum = void 0;
17
+ exports.instanceOfEppBatchUpdateInput = instanceOfEppBatchUpdateInput;
18
+ exports.EppBatchUpdateInputFromJSON = EppBatchUpdateInputFromJSON;
19
+ exports.EppBatchUpdateInputFromJSONTyped = EppBatchUpdateInputFromJSONTyped;
20
+ exports.EppBatchUpdateInputToJSON = EppBatchUpdateInputToJSON;
21
+ exports.EppBatchUpdateInputToJSONTyped = EppBatchUpdateInputToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.EppBatchUpdateInputActionEnum = {
26
+ DNSSEC: 'dnssec',
27
+ NAMESERVERS: 'nameservers',
28
+ DNSSEC_AND_NAMESERVERS: 'dnssec_and_nameservers'
29
+ };
30
+ /**
31
+ * @export
32
+ */
33
+ exports.EppBatchUpdateInputDomainSelectorEnum = {
34
+ ALL: 'all',
35
+ SPECIFIED: 'specified',
36
+ TLD: 'tld'
37
+ };
38
+ /**
39
+ * Check if a given object implements the EppBatchUpdateInput interface.
40
+ */
41
+ function instanceOfEppBatchUpdateInput(value) {
42
+ if (!('eppServer' in value) || value['eppServer'] === undefined)
43
+ return false;
44
+ if (!('eppPort' in value) || value['eppPort'] === undefined)
45
+ return false;
46
+ if (!('eppUsername' in value) || value['eppUsername'] === undefined)
47
+ return false;
48
+ if (!('eppPassword' in value) || value['eppPassword'] === undefined)
49
+ return false;
50
+ if (!('action' in value) || value['action'] === undefined)
51
+ return false;
52
+ if (!('domainSelector' in value) || value['domainSelector'] === undefined)
53
+ return false;
54
+ if (!('domains' in value) || value['domains'] === undefined)
55
+ return false;
56
+ if (!('tld' in value) || value['tld'] === undefined)
57
+ return false;
58
+ return true;
59
+ }
60
+ function EppBatchUpdateInputFromJSON(json) {
61
+ return EppBatchUpdateInputFromJSONTyped(json, false);
62
+ }
63
+ function EppBatchUpdateInputFromJSONTyped(json, ignoreDiscriminator) {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+ 'eppServer': json['eppServer'],
69
+ 'eppPort': json['eppPort'],
70
+ 'eppUsername': json['eppUsername'],
71
+ 'eppPassword': json['eppPassword'],
72
+ 'action': json['action'],
73
+ 'domainSelector': json['domainSelector'],
74
+ 'domains': json['domains'] == null ? null : json['domains'],
75
+ 'tld': json['tld'],
76
+ };
77
+ }
78
+ function EppBatchUpdateInputToJSON(json) {
79
+ return EppBatchUpdateInputToJSONTyped(json, false);
80
+ }
81
+ function EppBatchUpdateInputToJSONTyped(value, ignoreDiscriminator) {
82
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
83
+ if (value == null) {
84
+ return value;
85
+ }
86
+ return {
87
+ 'eppServer': value['eppServer'],
88
+ 'eppPort': value['eppPort'],
89
+ 'eppUsername': value['eppUsername'],
90
+ 'eppPassword': value['eppPassword'],
91
+ 'action': value['action'],
92
+ 'domainSelector': value['domainSelector'],
93
+ 'domains': value['domains'],
94
+ 'tld': value['tld'],
95
+ };
96
+ }
@@ -99,6 +99,7 @@ export * from './DomainTransferSellerAccountDto';
99
99
  export * from './DomainTransferSubscriptionDto';
100
100
  export * from './DomainTransferWorkflowDto';
101
101
  export * from './DomainUrlDto';
102
+ export * from './EppBatchUpdateInput';
102
103
  export * from './ForgotPasswordRequestInput';
103
104
  export * from './GetAllDomainTransfers200Response';
104
105
  export * from './GetAllInvoices200Response';
@@ -117,6 +117,7 @@ __exportStar(require("./DomainTransferSellerAccountDto"), exports);
117
117
  __exportStar(require("./DomainTransferSubscriptionDto"), exports);
118
118
  __exportStar(require("./DomainTransferWorkflowDto"), exports);
119
119
  __exportStar(require("./DomainUrlDto"), exports);
120
+ __exportStar(require("./EppBatchUpdateInput"), exports);
120
121
  __exportStar(require("./ForgotPasswordRequestInput"), exports);
121
122
  __exportStar(require("./GetAllDomainTransfers200Response"), exports);
122
123
  __exportStar(require("./GetAllInvoices200Response"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.285",
3
+ "version": "0.0.286",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,80 @@
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
+ EppBatchUpdateInput,
19
+ ThrottlerException,
20
+ } from '../models/index';
21
+ import {
22
+ EppBatchUpdateInputFromJSON,
23
+ EppBatchUpdateInputToJSON,
24
+ ThrottlerExceptionFromJSON,
25
+ ThrottlerExceptionToJSON,
26
+ } from '../models/index';
27
+
28
+ export interface EppApiEppBatchUpdateDomainsRequest {
29
+ eppBatchUpdateInput: EppBatchUpdateInput;
30
+ }
31
+
32
+ /**
33
+ *
34
+ */
35
+ export class EppApi extends runtime.BaseAPI {
36
+
37
+ /**
38
+ *
39
+ */
40
+ async eppBatchUpdateDomainsRaw(requestParameters: EppApiEppBatchUpdateDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
41
+ if (requestParameters['eppBatchUpdateInput'] == null) {
42
+ throw new runtime.RequiredError(
43
+ 'eppBatchUpdateInput',
44
+ 'Required parameter "eppBatchUpdateInput" was null or undefined when calling eppBatchUpdateDomains().'
45
+ );
46
+ }
47
+
48
+ const queryParameters: any = {};
49
+
50
+ const headerParameters: runtime.HTTPHeaders = {};
51
+
52
+ headerParameters['Content-Type'] = 'application/json';
53
+
54
+ if (this.configuration && this.configuration.accessToken) {
55
+ const token = this.configuration.accessToken;
56
+ const tokenString = await token("bearer", []);
57
+
58
+ if (tokenString) {
59
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
60
+ }
61
+ }
62
+ const response = await this.request({
63
+ path: `/private/epp`,
64
+ method: 'POST',
65
+ headers: headerParameters,
66
+ query: queryParameters,
67
+ body: EppBatchUpdateInputToJSON(requestParameters['eppBatchUpdateInput']),
68
+ }, initOverrides);
69
+
70
+ return new runtime.VoidApiResponse(response);
71
+ }
72
+
73
+ /**
74
+ *
75
+ */
76
+ async eppBatchUpdateDomains(requestParameters: EppApiEppBatchUpdateDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
77
+ await this.eppBatchUpdateDomainsRaw(requestParameters, initOverrides);
78
+ }
79
+
80
+ }
package/src/apis/index.ts CHANGED
@@ -8,6 +8,7 @@ export * from './BuyersApi';
8
8
  export * from './BuyersPublicApi';
9
9
  export * from './DomainsApi';
10
10
  export * from './DomainsPublicApi';
11
+ export * from './EppApi';
11
12
  export * from './InvoicesApi';
12
13
  export * from './LeadsApi';
13
14
  export * from './LeadsPublicApi';
@@ -0,0 +1,151 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface EppBatchUpdateInput
20
+ */
21
+ export interface EppBatchUpdateInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof EppBatchUpdateInput
26
+ */
27
+ eppServer: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof EppBatchUpdateInput
32
+ */
33
+ eppPort: number;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof EppBatchUpdateInput
38
+ */
39
+ eppUsername: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof EppBatchUpdateInput
44
+ */
45
+ eppPassword: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof EppBatchUpdateInput
50
+ */
51
+ action: EppBatchUpdateInputActionEnum;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof EppBatchUpdateInput
56
+ */
57
+ domainSelector: EppBatchUpdateInputDomainSelectorEnum;
58
+ /**
59
+ *
60
+ * @type {Array<string>}
61
+ * @memberof EppBatchUpdateInput
62
+ */
63
+ domains: Array<string> | null;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof EppBatchUpdateInput
68
+ */
69
+ tld: string | null;
70
+ }
71
+
72
+
73
+ /**
74
+ * @export
75
+ */
76
+ export const EppBatchUpdateInputActionEnum = {
77
+ DNSSEC: 'dnssec',
78
+ NAMESERVERS: 'nameservers',
79
+ DNSSEC_AND_NAMESERVERS: 'dnssec_and_nameservers'
80
+ } as const;
81
+ export type EppBatchUpdateInputActionEnum = typeof EppBatchUpdateInputActionEnum[keyof typeof EppBatchUpdateInputActionEnum];
82
+
83
+ /**
84
+ * @export
85
+ */
86
+ export const EppBatchUpdateInputDomainSelectorEnum = {
87
+ ALL: 'all',
88
+ SPECIFIED: 'specified',
89
+ TLD: 'tld'
90
+ } as const;
91
+ export type EppBatchUpdateInputDomainSelectorEnum = typeof EppBatchUpdateInputDomainSelectorEnum[keyof typeof EppBatchUpdateInputDomainSelectorEnum];
92
+
93
+
94
+ /**
95
+ * Check if a given object implements the EppBatchUpdateInput interface.
96
+ */
97
+ export function instanceOfEppBatchUpdateInput(value: object): value is EppBatchUpdateInput {
98
+ if (!('eppServer' in value) || value['eppServer'] === undefined) return false;
99
+ if (!('eppPort' in value) || value['eppPort'] === undefined) return false;
100
+ if (!('eppUsername' in value) || value['eppUsername'] === undefined) return false;
101
+ if (!('eppPassword' in value) || value['eppPassword'] === undefined) return false;
102
+ if (!('action' in value) || value['action'] === undefined) return false;
103
+ if (!('domainSelector' in value) || value['domainSelector'] === undefined) return false;
104
+ if (!('domains' in value) || value['domains'] === undefined) return false;
105
+ if (!('tld' in value) || value['tld'] === undefined) return false;
106
+ return true;
107
+ }
108
+
109
+ export function EppBatchUpdateInputFromJSON(json: any): EppBatchUpdateInput {
110
+ return EppBatchUpdateInputFromJSONTyped(json, false);
111
+ }
112
+
113
+ export function EppBatchUpdateInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): EppBatchUpdateInput {
114
+ if (json == null) {
115
+ return json;
116
+ }
117
+ return {
118
+
119
+ 'eppServer': json['eppServer'],
120
+ 'eppPort': json['eppPort'],
121
+ 'eppUsername': json['eppUsername'],
122
+ 'eppPassword': json['eppPassword'],
123
+ 'action': json['action'],
124
+ 'domainSelector': json['domainSelector'],
125
+ 'domains': json['domains'] == null ? null : json['domains'],
126
+ 'tld': json['tld'],
127
+ };
128
+ }
129
+
130
+ export function EppBatchUpdateInputToJSON(json: any): EppBatchUpdateInput {
131
+ return EppBatchUpdateInputToJSONTyped(json, false);
132
+ }
133
+
134
+ export function EppBatchUpdateInputToJSONTyped(value?: EppBatchUpdateInput | null, ignoreDiscriminator: boolean = false): any {
135
+ if (value == null) {
136
+ return value;
137
+ }
138
+
139
+ return {
140
+
141
+ 'eppServer': value['eppServer'],
142
+ 'eppPort': value['eppPort'],
143
+ 'eppUsername': value['eppUsername'],
144
+ 'eppPassword': value['eppPassword'],
145
+ 'action': value['action'],
146
+ 'domainSelector': value['domainSelector'],
147
+ 'domains': value['domains'],
148
+ 'tld': value['tld'],
149
+ };
150
+ }
151
+
@@ -101,6 +101,7 @@ export * from './DomainTransferSellerAccountDto';
101
101
  export * from './DomainTransferSubscriptionDto';
102
102
  export * from './DomainTransferWorkflowDto';
103
103
  export * from './DomainUrlDto';
104
+ export * from './EppBatchUpdateInput';
104
105
  export * from './ForgotPasswordRequestInput';
105
106
  export * from './GetAllDomainTransfers200Response';
106
107
  export * from './GetAllInvoices200Response';