@randock/nameshift-api-client 0.0.35 → 0.0.37

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.
Files changed (48) hide show
  1. package/.openapi-generator/FILES +9 -2
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsPublicApi.d.ts +35 -1
  4. package/dist/apis/AccountsPublicApi.js +135 -0
  5. package/dist/apis/AdminApi.d.ts +7 -7
  6. package/dist/apis/AdminApi.js +10 -10
  7. package/dist/models/AccountDto.d.ts +2 -2
  8. package/dist/models/DomainTransferAgentDto.d.ts +37 -0
  9. package/dist/models/DomainTransferAgentDto.js +51 -0
  10. package/dist/models/DomainTransferDomainDto.d.ts +43 -0
  11. package/dist/models/DomainTransferDomainDto.js +55 -0
  12. package/dist/models/DomainTransferDto.d.ts +75 -0
  13. package/dist/models/DomainTransferDto.js +80 -0
  14. package/dist/models/DomainTransferDtoAgent.d.ts +37 -0
  15. package/dist/models/DomainTransferDtoAgent.js +51 -0
  16. package/dist/models/DomainTransferOrderDto.d.ts +43 -0
  17. package/dist/models/DomainTransferOrderDto.js +55 -0
  18. package/dist/models/ForgotPasswordRequestInput.d.ts +31 -0
  19. package/dist/models/ForgotPasswordRequestInput.js +47 -0
  20. package/dist/models/GetAllDomainTransfers200Response.d.ts +46 -0
  21. package/dist/models/GetAllDomainTransfers200Response.js +58 -0
  22. package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.d.ts +2 -2
  23. package/dist/models/SetNewPasswordInput.d.ts +31 -0
  24. package/dist/models/SetNewPasswordInput.js +47 -0
  25. package/dist/models/UserPasswordResetDto.d.ts +45 -0
  26. package/dist/models/UserPasswordResetDto.js +58 -0
  27. package/dist/models/index.d.ts +9 -2
  28. package/dist/models/index.js +9 -2
  29. package/package.json +1 -1
  30. package/src/apis/AccountsPublicApi.ts +135 -0
  31. package/src/apis/AdminApi.ts +15 -15
  32. package/src/models/AccountDto.ts +2 -2
  33. package/src/models/DomainTransferAgentDto.ts +70 -0
  34. package/src/models/DomainTransferDomainDto.ts +79 -0
  35. package/src/models/DomainTransferDto.ts +139 -0
  36. package/src/models/DomainTransferDtoAgent.ts +70 -0
  37. package/src/models/DomainTransferOrderDto.ts +79 -0
  38. package/src/models/ForgotPasswordRequestInput.ts +61 -0
  39. package/src/models/{ListTransfers200Response.ts → GetAllDomainTransfers200Response.ts} +20 -20
  40. package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +2 -2
  41. package/src/models/SetNewPasswordInput.ts +61 -0
  42. package/src/models/UserPasswordResetDto.ts +81 -0
  43. package/src/models/index.ts +9 -2
  44. package/dist/models/ListTransferDto.d.ts +0 -66
  45. package/dist/models/ListTransferDto.js +0 -73
  46. package/dist/models/ListTransfers200Response.d.ts +0 -46
  47. package/dist/models/ListTransfers200Response.js +0 -58
  48. package/src/models/ListTransferDto.ts +0 -111
@@ -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
+ * The domain transfer order
18
+ * @export
19
+ * @interface DomainTransferDtoAgent
20
+ */
21
+ export interface DomainTransferDtoAgent {
22
+ /**
23
+ * The order domain transfer agent ID
24
+ * @type {object}
25
+ * @memberof DomainTransferDtoAgent
26
+ */
27
+ id: object;
28
+ /**
29
+ * The order email address
30
+ * @type {string}
31
+ * @memberof DomainTransferDtoAgent
32
+ */
33
+ name: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the DomainTransferDtoAgent interface.
38
+ */
39
+ export function instanceOfDomainTransferDtoAgent(value: object): boolean {
40
+ if (!('id' in value)) return false;
41
+ if (!('name' in value)) return false;
42
+ return true;
43
+ }
44
+
45
+ export function DomainTransferDtoAgentFromJSON(json: any): DomainTransferDtoAgent {
46
+ return DomainTransferDtoAgentFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function DomainTransferDtoAgentFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainTransferDtoAgent {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'id': json['id'],
56
+ 'name': json['name'],
57
+ };
58
+ }
59
+
60
+ export function DomainTransferDtoAgentToJSON(value?: DomainTransferDtoAgent | null): any {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+
66
+ 'id': value['id'],
67
+ 'name': value['name'],
68
+ };
69
+ }
70
+
@@ -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 DomainTransferOrderDto
20
+ */
21
+ export interface DomainTransferOrderDto {
22
+ /**
23
+ * The order ID
24
+ * @type {object}
25
+ * @memberof DomainTransferOrderDto
26
+ */
27
+ id: object;
28
+ /**
29
+ * The order email address
30
+ * @type {string}
31
+ * @memberof DomainTransferOrderDto
32
+ */
33
+ email: string;
34
+ /**
35
+ * The order seller account ID
36
+ * @type {object}
37
+ * @memberof DomainTransferOrderDto
38
+ */
39
+ sellerAccountId: object;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the DomainTransferOrderDto interface.
44
+ */
45
+ export function instanceOfDomainTransferOrderDto(value: object): boolean {
46
+ if (!('id' in value)) return false;
47
+ if (!('email' in value)) return false;
48
+ if (!('sellerAccountId' in value)) return false;
49
+ return true;
50
+ }
51
+
52
+ export function DomainTransferOrderDtoFromJSON(json: any): DomainTransferOrderDto {
53
+ return DomainTransferOrderDtoFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function DomainTransferOrderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainTransferOrderDto {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'id': json['id'],
63
+ 'email': json['email'],
64
+ 'sellerAccountId': json['sellerAccountId'],
65
+ };
66
+ }
67
+
68
+ export function DomainTransferOrderDtoToJSON(value?: DomainTransferOrderDto | null): any {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+
74
+ 'id': value['id'],
75
+ 'email': value['email'],
76
+ 'sellerAccountId': value['sellerAccountId'],
77
+ };
78
+ }
79
+
@@ -0,0 +1,61 @@
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 ForgotPasswordRequestInput
20
+ */
21
+ export interface ForgotPasswordRequestInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ForgotPasswordRequestInput
26
+ */
27
+ email: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ForgotPasswordRequestInput interface.
32
+ */
33
+ export function instanceOfForgotPasswordRequestInput(value: object): boolean {
34
+ if (!('email' in value)) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ForgotPasswordRequestInputFromJSON(json: any): ForgotPasswordRequestInput {
39
+ return ForgotPasswordRequestInputFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ForgotPasswordRequestInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForgotPasswordRequestInput {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'email': json['email'],
49
+ };
50
+ }
51
+
52
+ export function ForgotPasswordRequestInputToJSON(value?: ForgotPasswordRequestInput | null): any {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+
58
+ 'email': value['email'],
59
+ };
60
+ }
61
+
@@ -19,12 +19,12 @@ import {
19
19
  PaginateResponseLinksFromJSONTyped,
20
20
  PaginateResponseLinksToJSON,
21
21
  } from './PaginateResponseLinks';
22
- import type { ListTransferDto } from './ListTransferDto';
22
+ import type { DomainTransferDto } from './DomainTransferDto';
23
23
  import {
24
- ListTransferDtoFromJSON,
25
- ListTransferDtoFromJSONTyped,
26
- ListTransferDtoToJSON,
27
- } from './ListTransferDto';
24
+ DomainTransferDtoFromJSON,
25
+ DomainTransferDtoFromJSONTyped,
26
+ DomainTransferDtoToJSON,
27
+ } from './DomainTransferDto';
28
28
  import type { PaginateResponseMeta } from './PaginateResponseMeta';
29
29
  import {
30
30
  PaginateResponseMetaFromJSON,
@@ -35,62 +35,62 @@ import {
35
35
  /**
36
36
  *
37
37
  * @export
38
- * @interface ListTransfers200Response
38
+ * @interface GetAllDomainTransfers200Response
39
39
  */
40
- export interface ListTransfers200Response {
40
+ export interface GetAllDomainTransfers200Response {
41
41
  /**
42
42
  *
43
- * @type {Array<ListTransferDto>}
44
- * @memberof ListTransfers200Response
43
+ * @type {Array<DomainTransferDto>}
44
+ * @memberof GetAllDomainTransfers200Response
45
45
  */
46
- data: Array<ListTransferDto>;
46
+ data: Array<DomainTransferDto>;
47
47
  /**
48
48
  *
49
49
  * @type {PaginateResponseMeta}
50
- * @memberof ListTransfers200Response
50
+ * @memberof GetAllDomainTransfers200Response
51
51
  */
52
52
  meta: PaginateResponseMeta;
53
53
  /**
54
54
  *
55
55
  * @type {PaginateResponseLinks}
56
- * @memberof ListTransfers200Response
56
+ * @memberof GetAllDomainTransfers200Response
57
57
  */
58
58
  links: PaginateResponseLinks;
59
59
  }
60
60
 
61
61
  /**
62
- * Check if a given object implements the ListTransfers200Response interface.
62
+ * Check if a given object implements the GetAllDomainTransfers200Response interface.
63
63
  */
64
- export function instanceOfListTransfers200Response(value: object): boolean {
64
+ export function instanceOfGetAllDomainTransfers200Response(value: object): boolean {
65
65
  if (!('data' in value)) return false;
66
66
  if (!('meta' in value)) return false;
67
67
  if (!('links' in value)) return false;
68
68
  return true;
69
69
  }
70
70
 
71
- export function ListTransfers200ResponseFromJSON(json: any): ListTransfers200Response {
72
- return ListTransfers200ResponseFromJSONTyped(json, false);
71
+ export function GetAllDomainTransfers200ResponseFromJSON(json: any): GetAllDomainTransfers200Response {
72
+ return GetAllDomainTransfers200ResponseFromJSONTyped(json, false);
73
73
  }
74
74
 
75
- export function ListTransfers200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListTransfers200Response {
75
+ export function GetAllDomainTransfers200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllDomainTransfers200Response {
76
76
  if (json == null) {
77
77
  return json;
78
78
  }
79
79
  return {
80
80
 
81
- 'data': ((json['data'] as Array<any>).map(ListTransferDtoFromJSON)),
81
+ 'data': ((json['data'] as Array<any>).map(DomainTransferDtoFromJSON)),
82
82
  'meta': PaginateResponseMetaFromJSON(json['meta']),
83
83
  'links': PaginateResponseLinksFromJSON(json['links']),
84
84
  };
85
85
  }
86
86
 
87
- export function ListTransfers200ResponseToJSON(value?: ListTransfers200Response | null): any {
87
+ export function GetAllDomainTransfers200ResponseToJSON(value?: GetAllDomainTransfers200Response | null): any {
88
88
  if (value == null) {
89
89
  return value;
90
90
  }
91
91
  return {
92
92
 
93
- 'data': ((value['data'] as Array<any>).map(ListTransferDtoToJSON)),
93
+ 'data': ((value['data'] as Array<any>).map(DomainTransferDtoToJSON)),
94
94
  'meta': PaginateResponseMetaToJSON(value['meta']),
95
95
  'links': PaginateResponseLinksToJSON(value['links']),
96
96
  };
@@ -46,10 +46,10 @@ export interface IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddres
46
46
  id: string;
47
47
  /**
48
48
  *
49
- * @type {object}
49
+ * @type {string}
50
50
  * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
51
51
  */
52
- identifier: object;
52
+ identifier: string;
53
53
  /**
54
54
  *
55
55
  * @type {WithFinancialDtoInner}
@@ -0,0 +1,61 @@
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 SetNewPasswordInput
20
+ */
21
+ export interface SetNewPasswordInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SetNewPasswordInput
26
+ */
27
+ password: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the SetNewPasswordInput interface.
32
+ */
33
+ export function instanceOfSetNewPasswordInput(value: object): boolean {
34
+ if (!('password' in value)) return false;
35
+ return true;
36
+ }
37
+
38
+ export function SetNewPasswordInputFromJSON(json: any): SetNewPasswordInput {
39
+ return SetNewPasswordInputFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function SetNewPasswordInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetNewPasswordInput {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'password': json['password'],
49
+ };
50
+ }
51
+
52
+ export function SetNewPasswordInputToJSON(value?: SetNewPasswordInput | null): any {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+
58
+ 'password': value['password'],
59
+ };
60
+ }
61
+
@@ -0,0 +1,81 @@
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 UserPasswordResetDto
20
+ */
21
+ export interface UserPasswordResetDto {
22
+ /**
23
+ * user uuid
24
+ * @type {string}
25
+ * @memberof UserPasswordResetDto
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof UserPasswordResetDto
32
+ */
33
+ status: UserPasswordResetDtoStatusEnum;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const UserPasswordResetDtoStatusEnum = {
41
+ ACTIVE: 'active',
42
+ EXPIRED: 'expired'
43
+ } as const;
44
+ export type UserPasswordResetDtoStatusEnum = typeof UserPasswordResetDtoStatusEnum[keyof typeof UserPasswordResetDtoStatusEnum];
45
+
46
+
47
+ /**
48
+ * Check if a given object implements the UserPasswordResetDto interface.
49
+ */
50
+ export function instanceOfUserPasswordResetDto(value: object): boolean {
51
+ if (!('id' in value)) return false;
52
+ if (!('status' in value)) return false;
53
+ return true;
54
+ }
55
+
56
+ export function UserPasswordResetDtoFromJSON(json: any): UserPasswordResetDto {
57
+ return UserPasswordResetDtoFromJSONTyped(json, false);
58
+ }
59
+
60
+ export function UserPasswordResetDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPasswordResetDto {
61
+ if (json == null) {
62
+ return json;
63
+ }
64
+ return {
65
+
66
+ 'id': json['id'],
67
+ 'status': json['status'],
68
+ };
69
+ }
70
+
71
+ export function UserPasswordResetDtoToJSON(value?: UserPasswordResetDto | null): any {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+ return {
76
+
77
+ 'id': value['id'],
78
+ 'status': value['status'],
79
+ };
80
+ }
81
+
@@ -16,6 +16,13 @@ export * from './DeleteDomainsInput';
16
16
  export * from './DomainDto';
17
17
  export * from './DomainSalesInformationDto';
18
18
  export * from './DomainSellerDto';
19
+ export * from './DomainTransferAgentDto';
20
+ export * from './DomainTransferDomainDto';
21
+ export * from './DomainTransferDto';
22
+ export * from './DomainTransferDtoAgent';
23
+ export * from './DomainTransferOrderDto';
24
+ export * from './ForgotPasswordRequestInput';
25
+ export * from './GetAllDomainTransfers200Response';
19
26
  export * from './HttpException';
20
27
  export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
21
28
  export * from './IntersectionDomainDtoWithAccountDto';
@@ -32,8 +39,6 @@ export * from './List200Response';
32
39
  export * from './ListAccountDto';
33
40
  export * from './ListAccounts200Response';
34
41
  export * from './ListLeadMessagesDto';
35
- export * from './ListTransferDto';
36
- export * from './ListTransfers200Response';
37
42
  export * from './LoginInput';
38
43
  export * from './MoneyDto';
39
44
  export * from './MoneyInput';
@@ -46,10 +51,12 @@ export * from './PutLeadInput';
46
51
  export * from './RegisterAccountInput';
47
52
  export * from './RelatedSellerDomain';
48
53
  export * from './SecurityUserDto';
54
+ export * from './SetNewPasswordInput';
49
55
  export * from './ThrottlerException';
50
56
  export * from './TokenDto';
51
57
  export * from './UnauthorizedException';
52
58
  export * from './UpdateDomainInput';
59
+ export * from './UserPasswordResetDto';
53
60
  export * from './ValidationError';
54
61
  export * from './ValidationException';
55
62
  export * from './VerifyLeadInput';
@@ -1,66 +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
- /**
13
- *
14
- * @export
15
- * @interface ListTransferDto
16
- */
17
- export interface ListTransferDto {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof ListTransferDto
22
- */
23
- id: string;
24
- /**
25
- *
26
- * @type {Date}
27
- * @memberof ListTransferDto
28
- */
29
- createdAt: Date;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof ListTransferDto
34
- */
35
- status: ListTransferDtoStatusEnum;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof ListTransferDto
40
- */
41
- domainName: string;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof ListTransferDto
46
- */
47
- assignedTo: string | null;
48
- }
49
- /**
50
- * @export
51
- */
52
- export declare const ListTransferDtoStatusEnum: {
53
- readonly CREATED: "created";
54
- readonly STARTED: "started";
55
- readonly PENDING_MANUAL_ACTION: "pending_manual_action";
56
- readonly ERROR: "error";
57
- readonly COMPLETED: "completed";
58
- };
59
- export type ListTransferDtoStatusEnum = typeof ListTransferDtoStatusEnum[keyof typeof ListTransferDtoStatusEnum];
60
- /**
61
- * Check if a given object implements the ListTransferDto interface.
62
- */
63
- export declare function instanceOfListTransferDto(value: object): boolean;
64
- export declare function ListTransferDtoFromJSON(json: any): ListTransferDto;
65
- export declare function ListTransferDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListTransferDto;
66
- export declare function ListTransferDtoToJSON(value?: ListTransferDto | null): any;
@@ -1,73 +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
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ListTransferDtoToJSON = exports.ListTransferDtoFromJSONTyped = exports.ListTransferDtoFromJSON = exports.instanceOfListTransferDto = exports.ListTransferDtoStatusEnum = void 0;
17
- /**
18
- * @export
19
- */
20
- exports.ListTransferDtoStatusEnum = {
21
- CREATED: 'created',
22
- STARTED: 'started',
23
- PENDING_MANUAL_ACTION: 'pending_manual_action',
24
- ERROR: 'error',
25
- COMPLETED: 'completed'
26
- };
27
- /**
28
- * Check if a given object implements the ListTransferDto interface.
29
- */
30
- function instanceOfListTransferDto(value) {
31
- if (!('id' in value))
32
- return false;
33
- if (!('createdAt' in value))
34
- return false;
35
- if (!('status' in value))
36
- return false;
37
- if (!('domainName' in value))
38
- return false;
39
- if (!('assignedTo' in value))
40
- return false;
41
- return true;
42
- }
43
- exports.instanceOfListTransferDto = instanceOfListTransferDto;
44
- function ListTransferDtoFromJSON(json) {
45
- return ListTransferDtoFromJSONTyped(json, false);
46
- }
47
- exports.ListTransferDtoFromJSON = ListTransferDtoFromJSON;
48
- function ListTransferDtoFromJSONTyped(json, ignoreDiscriminator) {
49
- if (json == null) {
50
- return json;
51
- }
52
- return {
53
- 'id': json['id'],
54
- 'createdAt': (new Date(json['createdAt'])),
55
- 'status': json['status'],
56
- 'domainName': json['domainName'],
57
- 'assignedTo': json['assignedTo'],
58
- };
59
- }
60
- exports.ListTransferDtoFromJSONTyped = ListTransferDtoFromJSONTyped;
61
- function ListTransferDtoToJSON(value) {
62
- if (value == null) {
63
- return value;
64
- }
65
- return {
66
- 'id': value['id'],
67
- 'createdAt': ((value['createdAt']).toISOString()),
68
- 'status': value['status'],
69
- 'domainName': value['domainName'],
70
- 'assignedTo': value['assignedTo'],
71
- };
72
- }
73
- exports.ListTransferDtoToJSON = ListTransferDtoToJSON;
@@ -1,46 +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 type { PaginateResponseLinks } from './PaginateResponseLinks';
13
- import type { ListTransferDto } from './ListTransferDto';
14
- import type { PaginateResponseMeta } from './PaginateResponseMeta';
15
- /**
16
- *
17
- * @export
18
- * @interface ListTransfers200Response
19
- */
20
- export interface ListTransfers200Response {
21
- /**
22
- *
23
- * @type {Array<ListTransferDto>}
24
- * @memberof ListTransfers200Response
25
- */
26
- data: Array<ListTransferDto>;
27
- /**
28
- *
29
- * @type {PaginateResponseMeta}
30
- * @memberof ListTransfers200Response
31
- */
32
- meta: PaginateResponseMeta;
33
- /**
34
- *
35
- * @type {PaginateResponseLinks}
36
- * @memberof ListTransfers200Response
37
- */
38
- links: PaginateResponseLinks;
39
- }
40
- /**
41
- * Check if a given object implements the ListTransfers200Response interface.
42
- */
43
- export declare function instanceOfListTransfers200Response(value: object): boolean;
44
- export declare function ListTransfers200ResponseFromJSON(json: any): ListTransfers200Response;
45
- export declare function ListTransfers200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListTransfers200Response;
46
- export declare function ListTransfers200ResponseToJSON(value?: ListTransfers200Response | null): any;