@randock/nameshift-api-client 0.0.38 → 0.0.39

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.
@@ -34,6 +34,7 @@ src/models/DomainTransferDomainDto.ts
34
34
  src/models/DomainTransferDto.ts
35
35
  src/models/DomainTransferDtoAgent.ts
36
36
  src/models/DomainTransferOrderDto.ts
37
+ src/models/ForbiddenException.ts
37
38
  src/models/ForgotPasswordRequestInput.ts
38
39
  src/models/GetAllDomainTransfers200Response.ts
39
40
  src/models/HttpException.ts
@@ -69,6 +70,7 @@ src/models/ThrottlerException.ts
69
70
  src/models/TokenDto.ts
70
71
  src/models/UnauthorizedException.ts
71
72
  src/models/UpdateDomainInput.ts
73
+ src/models/UpdateDomainTransferAuthCodeInput.ts
72
74
  src/models/UserPasswordResetDto.ts
73
75
  src/models/ValidationError.ts
74
76
  src/models/ValidationException.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.38
1
+ ## @randock/nameshift-api-client@0.0.39
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.38 --save
39
+ npm install @randock/nameshift-api-client@0.0.39 --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
- b845e6a459e7167f87797e53c8f64f7d2224fa48c1245a9debc93d4cb791b0997fc5c65544ba88c9ab2d862fce3f4917
47
+ cacad4b67bc73168cababee84cd0d3deaa023455d86ede1b3660c3ab8628623de7e67ecdff30da08a63e907ab2485412
@@ -10,7 +10,12 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ChangeOrderStatusInput, GetAllDomainTransfers200Response, ListAccounts200Response } from '../models/index';
13
+ import type { ChangeOrderStatusInput, GetAllDomainTransfers200Response, ListAccounts200Response, UpdateDomainTransferAuthCodeInput } from '../models/index';
14
+ export interface AdminApiChangeDomainTransferAuthCodeRequest {
15
+ domainId: string;
16
+ transferId: string;
17
+ updateDomainTransferAuthCodeInput: UpdateDomainTransferAuthCodeInput;
18
+ }
14
19
  export interface AdminApiChangeOrderStatusRequest {
15
20
  orderId: string;
16
21
  changeOrderStatusInput: ChangeOrderStatusInput;
@@ -31,6 +36,14 @@ export interface AdminApiListAccountsRequest {
31
36
  *
32
37
  */
33
38
  export declare class AdminApi extends runtime.BaseAPI {
39
+ /**
40
+ *
41
+ */
42
+ changeDomainTransferAuthCodeRaw(requestParameters: AdminApiChangeDomainTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
43
+ /**
44
+ *
45
+ */
46
+ changeDomainTransferAuthCode(requestParameters: AdminApiChangeDomainTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
34
47
  /**
35
48
  *
36
49
  */
@@ -75,6 +75,65 @@ var AdminApi = /** @class */ (function (_super) {
75
75
  function AdminApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
+ /**
79
+ *
80
+ */
81
+ AdminApi.prototype.changeDomainTransferAuthCodeRaw = 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['domainId'] == null) {
88
+ throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling changeDomainTransferAuthCode().');
89
+ }
90
+ if (requestParameters['transferId'] == null) {
91
+ throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling changeDomainTransferAuthCode().');
92
+ }
93
+ if (requestParameters['updateDomainTransferAuthCodeInput'] == null) {
94
+ throw new runtime.RequiredError('updateDomainTransferAuthCodeInput', 'Required parameter "updateDomainTransferAuthCodeInput" was null or undefined when calling changeDomainTransferAuthCode().');
95
+ }
96
+ queryParameters = {};
97
+ headerParameters = {};
98
+ headerParameters['Content-Type'] = 'application/json';
99
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
100
+ token = this.configuration.accessToken;
101
+ return [4 /*yield*/, token("bearer", [])];
102
+ case 1:
103
+ tokenString = _a.sent();
104
+ if (tokenString) {
105
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
106
+ }
107
+ _a.label = 2;
108
+ case 2: return [4 /*yield*/, this.request({
109
+ path: "/admin/domains/{domainId}/transfers/{transferId}/auth-code".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))).replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
110
+ method: 'PATCH',
111
+ headers: headerParameters,
112
+ query: queryParameters,
113
+ body: (0, index_1.UpdateDomainTransferAuthCodeInputToJSON)(requestParameters['updateDomainTransferAuthCodeInput']),
114
+ }, initOverrides)];
115
+ case 3:
116
+ response = _a.sent();
117
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
118
+ }
119
+ });
120
+ });
121
+ };
122
+ /**
123
+ *
124
+ */
125
+ AdminApi.prototype.changeDomainTransferAuthCode = function (requestParameters, initOverrides) {
126
+ return __awaiter(this, void 0, void 0, function () {
127
+ return __generator(this, function (_a) {
128
+ switch (_a.label) {
129
+ case 0: return [4 /*yield*/, this.changeDomainTransferAuthCodeRaw(requestParameters, initOverrides)];
130
+ case 1:
131
+ _a.sent();
132
+ return [2 /*return*/];
133
+ }
134
+ });
135
+ });
136
+ };
78
137
  /**
79
138
  *
80
139
  */
@@ -0,0 +1,43 @@
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 ForbiddenException
16
+ */
17
+ export interface ForbiddenException {
18
+ /**
19
+ * Exception name
20
+ * @type {string}
21
+ * @memberof ForbiddenException
22
+ */
23
+ name: string;
24
+ /**
25
+ * http status code
26
+ * @type {number}
27
+ * @memberof ForbiddenException
28
+ */
29
+ statusCode: number;
30
+ /**
31
+ * error message
32
+ * @type {string}
33
+ * @memberof ForbiddenException
34
+ */
35
+ message: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ForbiddenException interface.
39
+ */
40
+ export declare function instanceOfForbiddenException(value: object): boolean;
41
+ export declare function ForbiddenExceptionFromJSON(json: any): ForbiddenException;
42
+ export declare function ForbiddenExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForbiddenException;
43
+ export declare function ForbiddenExceptionToJSON(value?: ForbiddenException | null): any;
@@ -0,0 +1,55 @@
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.ForbiddenExceptionToJSON = exports.ForbiddenExceptionFromJSONTyped = exports.ForbiddenExceptionFromJSON = exports.instanceOfForbiddenException = void 0;
17
+ /**
18
+ * Check if a given object implements the ForbiddenException interface.
19
+ */
20
+ function instanceOfForbiddenException(value) {
21
+ if (!('name' in value))
22
+ return false;
23
+ if (!('statusCode' in value))
24
+ return false;
25
+ if (!('message' in value))
26
+ return false;
27
+ return true;
28
+ }
29
+ exports.instanceOfForbiddenException = instanceOfForbiddenException;
30
+ function ForbiddenExceptionFromJSON(json) {
31
+ return ForbiddenExceptionFromJSONTyped(json, false);
32
+ }
33
+ exports.ForbiddenExceptionFromJSON = ForbiddenExceptionFromJSON;
34
+ function ForbiddenExceptionFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'name': json['name'],
40
+ 'statusCode': json['statusCode'],
41
+ 'message': json['message'],
42
+ };
43
+ }
44
+ exports.ForbiddenExceptionFromJSONTyped = ForbiddenExceptionFromJSONTyped;
45
+ function ForbiddenExceptionToJSON(value) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'name': value['name'],
51
+ 'statusCode': value['statusCode'],
52
+ 'message': value['message'],
53
+ };
54
+ }
55
+ exports.ForbiddenExceptionToJSON = ForbiddenExceptionToJSON;
@@ -0,0 +1,37 @@
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 UpdateDomainTransferAuthCodeInput
16
+ */
17
+ export interface UpdateDomainTransferAuthCodeInput {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UpdateDomainTransferAuthCodeInput
22
+ */
23
+ authCode: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UpdateDomainTransferAuthCodeInput
28
+ */
29
+ expiryDate: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UpdateDomainTransferAuthCodeInput interface.
33
+ */
34
+ export declare function instanceOfUpdateDomainTransferAuthCodeInput(value: object): boolean;
35
+ export declare function UpdateDomainTransferAuthCodeInputFromJSON(json: any): UpdateDomainTransferAuthCodeInput;
36
+ export declare function UpdateDomainTransferAuthCodeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDomainTransferAuthCodeInput;
37
+ export declare function UpdateDomainTransferAuthCodeInputToJSON(value?: UpdateDomainTransferAuthCodeInput | null): any;
@@ -0,0 +1,51 @@
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.UpdateDomainTransferAuthCodeInputToJSON = exports.UpdateDomainTransferAuthCodeInputFromJSONTyped = exports.UpdateDomainTransferAuthCodeInputFromJSON = exports.instanceOfUpdateDomainTransferAuthCodeInput = void 0;
17
+ /**
18
+ * Check if a given object implements the UpdateDomainTransferAuthCodeInput interface.
19
+ */
20
+ function instanceOfUpdateDomainTransferAuthCodeInput(value) {
21
+ if (!('authCode' in value))
22
+ return false;
23
+ if (!('expiryDate' in value))
24
+ return false;
25
+ return true;
26
+ }
27
+ exports.instanceOfUpdateDomainTransferAuthCodeInput = instanceOfUpdateDomainTransferAuthCodeInput;
28
+ function UpdateDomainTransferAuthCodeInputFromJSON(json) {
29
+ return UpdateDomainTransferAuthCodeInputFromJSONTyped(json, false);
30
+ }
31
+ exports.UpdateDomainTransferAuthCodeInputFromJSON = UpdateDomainTransferAuthCodeInputFromJSON;
32
+ function UpdateDomainTransferAuthCodeInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'authCode': json['authCode'],
38
+ 'expiryDate': json['expiryDate'],
39
+ };
40
+ }
41
+ exports.UpdateDomainTransferAuthCodeInputFromJSONTyped = UpdateDomainTransferAuthCodeInputFromJSONTyped;
42
+ function UpdateDomainTransferAuthCodeInputToJSON(value) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'authCode': value['authCode'],
48
+ 'expiryDate': value['expiryDate'],
49
+ };
50
+ }
51
+ exports.UpdateDomainTransferAuthCodeInputToJSON = UpdateDomainTransferAuthCodeInputToJSON;
@@ -19,6 +19,7 @@ export * from './DomainTransferDomainDto';
19
19
  export * from './DomainTransferDto';
20
20
  export * from './DomainTransferDtoAgent';
21
21
  export * from './DomainTransferOrderDto';
22
+ export * from './ForbiddenException';
22
23
  export * from './ForgotPasswordRequestInput';
23
24
  export * from './GetAllDomainTransfers200Response';
24
25
  export * from './HttpException';
@@ -54,6 +55,7 @@ export * from './ThrottlerException';
54
55
  export * from './TokenDto';
55
56
  export * from './UnauthorizedException';
56
57
  export * from './UpdateDomainInput';
58
+ export * from './UpdateDomainTransferAuthCodeInput';
57
59
  export * from './UserPasswordResetDto';
58
60
  export * from './ValidationError';
59
61
  export * from './ValidationException';
@@ -37,6 +37,7 @@ __exportStar(require("./DomainTransferDomainDto"), exports);
37
37
  __exportStar(require("./DomainTransferDto"), exports);
38
38
  __exportStar(require("./DomainTransferDtoAgent"), exports);
39
39
  __exportStar(require("./DomainTransferOrderDto"), exports);
40
+ __exportStar(require("./ForbiddenException"), exports);
40
41
  __exportStar(require("./ForgotPasswordRequestInput"), exports);
41
42
  __exportStar(require("./GetAllDomainTransfers200Response"), exports);
42
43
  __exportStar(require("./HttpException"), exports);
@@ -72,6 +73,7 @@ __exportStar(require("./ThrottlerException"), exports);
72
73
  __exportStar(require("./TokenDto"), exports);
73
74
  __exportStar(require("./UnauthorizedException"), exports);
74
75
  __exportStar(require("./UpdateDomainInput"), exports);
76
+ __exportStar(require("./UpdateDomainTransferAuthCodeInput"), exports);
75
77
  __exportStar(require("./UserPasswordResetDto"), exports);
76
78
  __exportStar(require("./ValidationError"), exports);
77
79
  __exportStar(require("./ValidationException"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -16,15 +16,19 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ChangeOrderStatusInput,
19
+ ForbiddenException,
19
20
  GetAllDomainTransfers200Response,
20
21
  ListAccounts200Response,
21
22
  NotFoundException,
22
23
  ThrottlerException,
24
+ UpdateDomainTransferAuthCodeInput,
23
25
  ValidationException,
24
26
  } from '../models/index';
25
27
  import {
26
28
  ChangeOrderStatusInputFromJSON,
27
29
  ChangeOrderStatusInputToJSON,
30
+ ForbiddenExceptionFromJSON,
31
+ ForbiddenExceptionToJSON,
28
32
  GetAllDomainTransfers200ResponseFromJSON,
29
33
  GetAllDomainTransfers200ResponseToJSON,
30
34
  ListAccounts200ResponseFromJSON,
@@ -33,10 +37,18 @@ import {
33
37
  NotFoundExceptionToJSON,
34
38
  ThrottlerExceptionFromJSON,
35
39
  ThrottlerExceptionToJSON,
40
+ UpdateDomainTransferAuthCodeInputFromJSON,
41
+ UpdateDomainTransferAuthCodeInputToJSON,
36
42
  ValidationExceptionFromJSON,
37
43
  ValidationExceptionToJSON,
38
44
  } from '../models/index';
39
45
 
46
+ export interface AdminApiChangeDomainTransferAuthCodeRequest {
47
+ domainId: string;
48
+ transferId: string;
49
+ updateDomainTransferAuthCodeInput: UpdateDomainTransferAuthCodeInput;
50
+ }
51
+
40
52
  export interface AdminApiChangeOrderStatusRequest {
41
53
  orderId: string;
42
54
  changeOrderStatusInput: ChangeOrderStatusInput;
@@ -61,6 +73,63 @@ export interface AdminApiListAccountsRequest {
61
73
  */
62
74
  export class AdminApi extends runtime.BaseAPI {
63
75
 
76
+ /**
77
+ *
78
+ */
79
+ async changeDomainTransferAuthCodeRaw(requestParameters: AdminApiChangeDomainTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
80
+ if (requestParameters['domainId'] == null) {
81
+ throw new runtime.RequiredError(
82
+ 'domainId',
83
+ 'Required parameter "domainId" was null or undefined when calling changeDomainTransferAuthCode().'
84
+ );
85
+ }
86
+
87
+ if (requestParameters['transferId'] == null) {
88
+ throw new runtime.RequiredError(
89
+ 'transferId',
90
+ 'Required parameter "transferId" was null or undefined when calling changeDomainTransferAuthCode().'
91
+ );
92
+ }
93
+
94
+ if (requestParameters['updateDomainTransferAuthCodeInput'] == null) {
95
+ throw new runtime.RequiredError(
96
+ 'updateDomainTransferAuthCodeInput',
97
+ 'Required parameter "updateDomainTransferAuthCodeInput" was null or undefined when calling changeDomainTransferAuthCode().'
98
+ );
99
+ }
100
+
101
+ const queryParameters: any = {};
102
+
103
+ const headerParameters: runtime.HTTPHeaders = {};
104
+
105
+ headerParameters['Content-Type'] = 'application/json';
106
+
107
+ if (this.configuration && this.configuration.accessToken) {
108
+ const token = this.configuration.accessToken;
109
+ const tokenString = await token("bearer", []);
110
+
111
+ if (tokenString) {
112
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
113
+ }
114
+ }
115
+ const response = await this.request({
116
+ path: `/admin/domains/{domainId}/transfers/{transferId}/auth-code`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))).replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
117
+ method: 'PATCH',
118
+ headers: headerParameters,
119
+ query: queryParameters,
120
+ body: UpdateDomainTransferAuthCodeInputToJSON(requestParameters['updateDomainTransferAuthCodeInput']),
121
+ }, initOverrides);
122
+
123
+ return new runtime.VoidApiResponse(response);
124
+ }
125
+
126
+ /**
127
+ *
128
+ */
129
+ async changeDomainTransferAuthCode(requestParameters: AdminApiChangeDomainTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
130
+ await this.changeDomainTransferAuthCodeRaw(requestParameters, initOverrides);
131
+ }
132
+
64
133
  /**
65
134
  *
66
135
  */
@@ -0,0 +1,79 @@
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 ForbiddenException
20
+ */
21
+ export interface ForbiddenException {
22
+ /**
23
+ * Exception name
24
+ * @type {string}
25
+ * @memberof ForbiddenException
26
+ */
27
+ name: string;
28
+ /**
29
+ * http status code
30
+ * @type {number}
31
+ * @memberof ForbiddenException
32
+ */
33
+ statusCode: number;
34
+ /**
35
+ * error message
36
+ * @type {string}
37
+ * @memberof ForbiddenException
38
+ */
39
+ message: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the ForbiddenException interface.
44
+ */
45
+ export function instanceOfForbiddenException(value: object): boolean {
46
+ if (!('name' in value)) return false;
47
+ if (!('statusCode' in value)) return false;
48
+ if (!('message' in value)) return false;
49
+ return true;
50
+ }
51
+
52
+ export function ForbiddenExceptionFromJSON(json: any): ForbiddenException {
53
+ return ForbiddenExceptionFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function ForbiddenExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForbiddenException {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'name': json['name'],
63
+ 'statusCode': json['statusCode'],
64
+ 'message': json['message'],
65
+ };
66
+ }
67
+
68
+ export function ForbiddenExceptionToJSON(value?: ForbiddenException | null): any {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+
74
+ 'name': value['name'],
75
+ 'statusCode': value['statusCode'],
76
+ 'message': value['message'],
77
+ };
78
+ }
79
+
@@ -0,0 +1,70 @@
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 UpdateDomainTransferAuthCodeInput
20
+ */
21
+ export interface UpdateDomainTransferAuthCodeInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof UpdateDomainTransferAuthCodeInput
26
+ */
27
+ authCode: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof UpdateDomainTransferAuthCodeInput
32
+ */
33
+ expiryDate: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the UpdateDomainTransferAuthCodeInput interface.
38
+ */
39
+ export function instanceOfUpdateDomainTransferAuthCodeInput(value: object): boolean {
40
+ if (!('authCode' in value)) return false;
41
+ if (!('expiryDate' in value)) return false;
42
+ return true;
43
+ }
44
+
45
+ export function UpdateDomainTransferAuthCodeInputFromJSON(json: any): UpdateDomainTransferAuthCodeInput {
46
+ return UpdateDomainTransferAuthCodeInputFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function UpdateDomainTransferAuthCodeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDomainTransferAuthCodeInput {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'authCode': json['authCode'],
56
+ 'expiryDate': json['expiryDate'],
57
+ };
58
+ }
59
+
60
+ export function UpdateDomainTransferAuthCodeInputToJSON(value?: UpdateDomainTransferAuthCodeInput | null): any {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+
66
+ 'authCode': value['authCode'],
67
+ 'expiryDate': value['expiryDate'],
68
+ };
69
+ }
70
+
@@ -21,6 +21,7 @@ export * from './DomainTransferDomainDto';
21
21
  export * from './DomainTransferDto';
22
22
  export * from './DomainTransferDtoAgent';
23
23
  export * from './DomainTransferOrderDto';
24
+ export * from './ForbiddenException';
24
25
  export * from './ForgotPasswordRequestInput';
25
26
  export * from './GetAllDomainTransfers200Response';
26
27
  export * from './HttpException';
@@ -56,6 +57,7 @@ export * from './ThrottlerException';
56
57
  export * from './TokenDto';
57
58
  export * from './UnauthorizedException';
58
59
  export * from './UpdateDomainInput';
60
+ export * from './UpdateDomainTransferAuthCodeInput';
59
61
  export * from './UserPasswordResetDto';
60
62
  export * from './ValidationError';
61
63
  export * from './ValidationException';