@randock/nameshift-api-client 0.0.1

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 (123) hide show
  1. package/.openapi-generator/FILES +45 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +45 -0
  5. package/dist/apis/AccountsApi.d.ts +54 -0
  6. package/dist/apis/AccountsApi.js +254 -0
  7. package/dist/apis/AuthApi.d.ts +27 -0
  8. package/dist/apis/AuthApi.js +124 -0
  9. package/dist/apis/DomainsApi.d.ts +77 -0
  10. package/dist/apis/DomainsApi.js +374 -0
  11. package/dist/apis/LeadsApi.d.ts +27 -0
  12. package/dist/apis/LeadsApi.js +124 -0
  13. package/dist/apis/TestApi.d.ts +23 -0
  14. package/dist/apis/TestApi.js +116 -0
  15. package/dist/apis/index.d.ts +5 -0
  16. package/dist/apis/index.js +23 -0
  17. package/dist/index.d.ts +3 -0
  18. package/dist/index.js +21 -0
  19. package/dist/models/AccountAddressDto.d.ts +68 -0
  20. package/dist/models/AccountAddressDto.js +71 -0
  21. package/dist/models/AccountAddressInput.d.ts +68 -0
  22. package/dist/models/AccountAddressInput.js +71 -0
  23. package/dist/models/AccountFinancialInput.d.ts +49 -0
  24. package/dist/models/AccountFinancialInput.js +59 -0
  25. package/dist/models/AccountSettingsInput.d.ts +32 -0
  26. package/dist/models/AccountSettingsInput.js +51 -0
  27. package/dist/models/BatchUpdate404Response.d.ts +43 -0
  28. package/dist/models/BatchUpdate404Response.js +56 -0
  29. package/dist/models/BatchUpdateDomainsInput.d.ts +38 -0
  30. package/dist/models/BatchUpdateDomainsInput.js +54 -0
  31. package/dist/models/CreateLeadInput.d.ts +61 -0
  32. package/dist/models/CreateLeadInput.js +65 -0
  33. package/dist/models/DomainDto.d.ts +62 -0
  34. package/dist/models/DomainDto.js +66 -0
  35. package/dist/models/ImportDomainsDto.d.ts +49 -0
  36. package/dist/models/ImportDomainsDto.js +59 -0
  37. package/dist/models/IntersectionAccountDtoWithAddressDto.d.ts +38 -0
  38. package/dist/models/IntersectionAccountDtoWithAddressDto.js +54 -0
  39. package/dist/models/IntersectionAccountDtoWithFinancialDto.d.ts +38 -0
  40. package/dist/models/IntersectionAccountDtoWithFinancialDto.js +54 -0
  41. package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.d.ts +49 -0
  42. package/dist/models/IntersectionAccountDtoWithFinancialDtoFinancial.js +56 -0
  43. package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +38 -0
  44. package/dist/models/IntersectionAccountDtoWithSettingsDto.js +54 -0
  45. package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.d.ts +32 -0
  46. package/dist/models/IntersectionAccountDtoWithSettingsDtoSettings.js +51 -0
  47. package/dist/models/LeadDto.d.ts +31 -0
  48. package/dist/models/LeadDto.js +50 -0
  49. package/dist/models/List200Response.d.ts +46 -0
  50. package/dist/models/List200Response.js +59 -0
  51. package/dist/models/List400Response.d.ts +43 -0
  52. package/dist/models/List400Response.js +56 -0
  53. package/dist/models/List401Response.d.ts +43 -0
  54. package/dist/models/List401Response.js +56 -0
  55. package/dist/models/List429Response.d.ts +43 -0
  56. package/dist/models/List429Response.js +56 -0
  57. package/dist/models/LoginInput.d.ts +37 -0
  58. package/dist/models/LoginInput.js +53 -0
  59. package/dist/models/MoneyDto.d.ts +37 -0
  60. package/dist/models/MoneyDto.js +53 -0
  61. package/dist/models/MoneyInput.d.ts +37 -0
  62. package/dist/models/MoneyInput.js +53 -0
  63. package/dist/models/PaginateResponse.d.ts +45 -0
  64. package/dist/models/PaginateResponse.js +58 -0
  65. package/dist/models/PaginateResponseLinks.d.ts +55 -0
  66. package/dist/models/PaginateResponseLinks.js +58 -0
  67. package/dist/models/PaginateResponseMeta.d.ts +67 -0
  68. package/dist/models/PaginateResponseMeta.js +62 -0
  69. package/dist/models/TokenDto.d.ts +31 -0
  70. package/dist/models/TokenDto.js +50 -0
  71. package/dist/models/UpdateDomainInput.d.ts +38 -0
  72. package/dist/models/UpdateDomainInput.js +53 -0
  73. package/dist/models/UpdateSettings401Response.d.ts +43 -0
  74. package/dist/models/UpdateSettings401Response.js +56 -0
  75. package/dist/models/UserAuthControllerLogin401Response.d.ts +43 -0
  76. package/dist/models/UserAuthControllerLogin401Response.js +56 -0
  77. package/dist/models/UserAuthControllerLogin429Response.d.ts +43 -0
  78. package/dist/models/UserAuthControllerLogin429Response.js +56 -0
  79. package/dist/models/index.d.ts +30 -0
  80. package/dist/models/index.js +48 -0
  81. package/dist/runtime.d.ts +182 -0
  82. package/dist/runtime.js +562 -0
  83. package/package.json +19 -0
  84. package/src/apis/AccountsApi.ts +201 -0
  85. package/src/apis/AuthApi.ts +74 -0
  86. package/src/apis/DomainsApi.ts +305 -0
  87. package/src/apis/LeadsApi.ts +71 -0
  88. package/src/apis/TestApi.ts +46 -0
  89. package/src/apis/index.ts +7 -0
  90. package/src/index.ts +5 -0
  91. package/src/models/AccountAddressDto.ts +120 -0
  92. package/src/models/AccountAddressInput.ts +120 -0
  93. package/src/models/AccountFinancialInput.ts +93 -0
  94. package/src/models/AccountSettingsInput.ts +72 -0
  95. package/src/models/BatchUpdate404Response.ts +83 -0
  96. package/src/models/BatchUpdateDomainsInput.ts +82 -0
  97. package/src/models/CreateLeadInput.ts +111 -0
  98. package/src/models/DomainDto.ts +118 -0
  99. package/src/models/ImportDomainsDto.ts +93 -0
  100. package/src/models/IntersectionAccountDtoWithAddressDto.ts +82 -0
  101. package/src/models/IntersectionAccountDtoWithFinancialDto.ts +82 -0
  102. package/src/models/IntersectionAccountDtoWithFinancialDtoFinancial.ts +89 -0
  103. package/src/models/IntersectionAccountDtoWithSettingsDto.ts +82 -0
  104. package/src/models/IntersectionAccountDtoWithSettingsDtoSettings.ts +72 -0
  105. package/src/models/LeadDto.ts +66 -0
  106. package/src/models/List200Response.ts +103 -0
  107. package/src/models/List400Response.ts +83 -0
  108. package/src/models/List401Response.ts +83 -0
  109. package/src/models/List429Response.ts +83 -0
  110. package/src/models/LoginInput.ts +75 -0
  111. package/src/models/MoneyDto.ts +75 -0
  112. package/src/models/MoneyInput.ts +75 -0
  113. package/src/models/PaginateResponse.ts +97 -0
  114. package/src/models/PaginateResponseLinks.ts +97 -0
  115. package/src/models/PaginateResponseMeta.ts +113 -0
  116. package/src/models/TokenDto.ts +66 -0
  117. package/src/models/UpdateDomainInput.ts +80 -0
  118. package/src/models/UpdateSettings401Response.ts +83 -0
  119. package/src/models/UserAuthControllerLogin401Response.ts +83 -0
  120. package/src/models/UserAuthControllerLogin429Response.ts +83 -0
  121. package/src/models/index.ts +32 -0
  122. package/src/runtime.ts +431 -0
  123. package/tsconfig.json +20 -0
@@ -0,0 +1,103 @@
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 { exists, mapValues } from '../runtime';
16
+ import type { DomainDto } from './DomainDto';
17
+ import {
18
+ DomainDtoFromJSON,
19
+ DomainDtoFromJSONTyped,
20
+ DomainDtoToJSON,
21
+ } from './DomainDto';
22
+ import type { PaginateResponseLinks } from './PaginateResponseLinks';
23
+ import {
24
+ PaginateResponseLinksFromJSON,
25
+ PaginateResponseLinksFromJSONTyped,
26
+ PaginateResponseLinksToJSON,
27
+ } from './PaginateResponseLinks';
28
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
29
+ import {
30
+ PaginateResponseMetaFromJSON,
31
+ PaginateResponseMetaFromJSONTyped,
32
+ PaginateResponseMetaToJSON,
33
+ } from './PaginateResponseMeta';
34
+
35
+ /**
36
+ *
37
+ * @export
38
+ * @interface List200Response
39
+ */
40
+ export interface List200Response {
41
+ /**
42
+ *
43
+ * @type {Array<DomainDto>}
44
+ * @memberof List200Response
45
+ */
46
+ data: Array<DomainDto>;
47
+ /**
48
+ *
49
+ * @type {PaginateResponseMeta}
50
+ * @memberof List200Response
51
+ */
52
+ meta: PaginateResponseMeta;
53
+ /**
54
+ *
55
+ * @type {PaginateResponseLinks}
56
+ * @memberof List200Response
57
+ */
58
+ links: PaginateResponseLinks;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the List200Response interface.
63
+ */
64
+ export function instanceOfList200Response(value: object): boolean {
65
+ let isInstance = true;
66
+ isInstance = isInstance && "data" in value;
67
+ isInstance = isInstance && "meta" in value;
68
+ isInstance = isInstance && "links" in value;
69
+
70
+ return isInstance;
71
+ }
72
+
73
+ export function List200ResponseFromJSON(json: any): List200Response {
74
+ return List200ResponseFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function List200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): List200Response {
78
+ if ((json === undefined) || (json === null)) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'data': ((json['data'] as Array<any>).map(DomainDtoFromJSON)),
84
+ 'meta': PaginateResponseMetaFromJSON(json['meta']),
85
+ 'links': PaginateResponseLinksFromJSON(json['links']),
86
+ };
87
+ }
88
+
89
+ export function List200ResponseToJSON(value?: List200Response | null): any {
90
+ if (value === undefined) {
91
+ return undefined;
92
+ }
93
+ if (value === null) {
94
+ return null;
95
+ }
96
+ return {
97
+
98
+ 'data': ((value.data as Array<any>).map(DomainDtoToJSON)),
99
+ 'meta': PaginateResponseMetaToJSON(value.meta),
100
+ 'links': PaginateResponseLinksToJSON(value.links),
101
+ };
102
+ }
103
+
@@ -0,0 +1,83 @@
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 { exists, mapValues } from '../runtime';
16
+ /**
17
+ * Returned if invalid request was specified.
18
+ * @export
19
+ * @interface List400Response
20
+ */
21
+ export interface List400Response {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof List400Response
26
+ */
27
+ statusCode: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof List400Response
32
+ */
33
+ message: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof List400Response
38
+ */
39
+ error?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the List400Response interface.
44
+ */
45
+ export function instanceOfList400Response(value: object): boolean {
46
+ let isInstance = true;
47
+ isInstance = isInstance && "statusCode" in value;
48
+ isInstance = isInstance && "message" in value;
49
+
50
+ return isInstance;
51
+ }
52
+
53
+ export function List400ResponseFromJSON(json: any): List400Response {
54
+ return List400ResponseFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function List400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): List400Response {
58
+ if ((json === undefined) || (json === null)) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'statusCode': json['statusCode'],
64
+ 'message': json['message'],
65
+ 'error': !exists(json, 'error') ? undefined : json['error'],
66
+ };
67
+ }
68
+
69
+ export function List400ResponseToJSON(value?: List400Response | null): any {
70
+ if (value === undefined) {
71
+ return undefined;
72
+ }
73
+ if (value === null) {
74
+ return null;
75
+ }
76
+ return {
77
+
78
+ 'statusCode': value.statusCode,
79
+ 'message': value.message,
80
+ 'error': value.error,
81
+ };
82
+ }
83
+
@@ -0,0 +1,83 @@
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 { exists, mapValues } from '../runtime';
16
+ /**
17
+ * Returned if invalid authentication provided.
18
+ * @export
19
+ * @interface List401Response
20
+ */
21
+ export interface List401Response {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof List401Response
26
+ */
27
+ statusCode: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof List401Response
32
+ */
33
+ message: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof List401Response
38
+ */
39
+ error?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the List401Response interface.
44
+ */
45
+ export function instanceOfList401Response(value: object): boolean {
46
+ let isInstance = true;
47
+ isInstance = isInstance && "statusCode" in value;
48
+ isInstance = isInstance && "message" in value;
49
+
50
+ return isInstance;
51
+ }
52
+
53
+ export function List401ResponseFromJSON(json: any): List401Response {
54
+ return List401ResponseFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function List401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): List401Response {
58
+ if ((json === undefined) || (json === null)) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'statusCode': json['statusCode'],
64
+ 'message': json['message'],
65
+ 'error': !exists(json, 'error') ? undefined : json['error'],
66
+ };
67
+ }
68
+
69
+ export function List401ResponseToJSON(value?: List401Response | null): any {
70
+ if (value === undefined) {
71
+ return undefined;
72
+ }
73
+ if (value === null) {
74
+ return null;
75
+ }
76
+ return {
77
+
78
+ 'statusCode': value.statusCode,
79
+ 'message': value.message,
80
+ 'error': value.error,
81
+ };
82
+ }
83
+
@@ -0,0 +1,83 @@
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 { exists, mapValues } from '../runtime';
16
+ /**
17
+ * Returned if more than 300 requests are made per minute.
18
+ * @export
19
+ * @interface List429Response
20
+ */
21
+ export interface List429Response {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof List429Response
26
+ */
27
+ statusCode: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof List429Response
32
+ */
33
+ message: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof List429Response
38
+ */
39
+ error?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the List429Response interface.
44
+ */
45
+ export function instanceOfList429Response(value: object): boolean {
46
+ let isInstance = true;
47
+ isInstance = isInstance && "statusCode" in value;
48
+ isInstance = isInstance && "message" in value;
49
+
50
+ return isInstance;
51
+ }
52
+
53
+ export function List429ResponseFromJSON(json: any): List429Response {
54
+ return List429ResponseFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function List429ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): List429Response {
58
+ if ((json === undefined) || (json === null)) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'statusCode': json['statusCode'],
64
+ 'message': json['message'],
65
+ 'error': !exists(json, 'error') ? undefined : json['error'],
66
+ };
67
+ }
68
+
69
+ export function List429ResponseToJSON(value?: List429Response | null): any {
70
+ if (value === undefined) {
71
+ return undefined;
72
+ }
73
+ if (value === null) {
74
+ return null;
75
+ }
76
+ return {
77
+
78
+ 'statusCode': value.statusCode,
79
+ 'message': value.message,
80
+ 'error': value.error,
81
+ };
82
+ }
83
+
@@ -0,0 +1,75 @@
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 { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface LoginInput
20
+ */
21
+ export interface LoginInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof LoginInput
26
+ */
27
+ email: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof LoginInput
32
+ */
33
+ password: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the LoginInput interface.
38
+ */
39
+ export function instanceOfLoginInput(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "email" in value;
42
+ isInstance = isInstance && "password" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function LoginInputFromJSON(json: any): LoginInput {
48
+ return LoginInputFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function LoginInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginInput {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'email': json['email'],
58
+ 'password': json['password'],
59
+ };
60
+ }
61
+
62
+ export function LoginInputToJSON(value?: LoginInput | null): any {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+
71
+ 'email': value.email,
72
+ 'password': value.password,
73
+ };
74
+ }
75
+
@@ -0,0 +1,75 @@
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 { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface MoneyDto
20
+ */
21
+ export interface MoneyDto {
22
+ /**
23
+ * Monetary amount, represented as an integer without scale/decimals.
24
+ * @type {number}
25
+ * @memberof MoneyDto
26
+ */
27
+ amount: number;
28
+ /**
29
+ * Three letter ISO currency code
30
+ * @type {string}
31
+ * @memberof MoneyDto
32
+ */
33
+ currencyCode: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the MoneyDto interface.
38
+ */
39
+ export function instanceOfMoneyDto(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "amount" in value;
42
+ isInstance = isInstance && "currencyCode" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function MoneyDtoFromJSON(json: any): MoneyDto {
48
+ return MoneyDtoFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function MoneyDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyDto {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'amount': json['amount'],
58
+ 'currencyCode': json['currencyCode'],
59
+ };
60
+ }
61
+
62
+ export function MoneyDtoToJSON(value?: MoneyDto | null): any {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+
71
+ 'amount': value.amount,
72
+ 'currencyCode': value.currencyCode,
73
+ };
74
+ }
75
+
@@ -0,0 +1,75 @@
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 { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface MoneyInput
20
+ */
21
+ export interface MoneyInput {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof MoneyInput
26
+ */
27
+ amount: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof MoneyInput
32
+ */
33
+ currencyCode: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the MoneyInput interface.
38
+ */
39
+ export function instanceOfMoneyInput(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "amount" in value;
42
+ isInstance = isInstance && "currencyCode" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function MoneyInputFromJSON(json: any): MoneyInput {
48
+ return MoneyInputFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function MoneyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyInput {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'amount': json['amount'],
58
+ 'currencyCode': json['currencyCode'],
59
+ };
60
+ }
61
+
62
+ export function MoneyInputToJSON(value?: MoneyInput | null): any {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+
71
+ 'amount': value.amount,
72
+ 'currencyCode': value.currencyCode,
73
+ };
74
+ }
75
+
@@ -0,0 +1,97 @@
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 { exists, mapValues } from '../runtime';
16
+ import type { PaginateResponseLinks } from './PaginateResponseLinks';
17
+ import {
18
+ PaginateResponseLinksFromJSON,
19
+ PaginateResponseLinksFromJSONTyped,
20
+ PaginateResponseLinksToJSON,
21
+ } from './PaginateResponseLinks';
22
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
23
+ import {
24
+ PaginateResponseMetaFromJSON,
25
+ PaginateResponseMetaFromJSONTyped,
26
+ PaginateResponseMetaToJSON,
27
+ } from './PaginateResponseMeta';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface PaginateResponse
33
+ */
34
+ export interface PaginateResponse {
35
+ /**
36
+ *
37
+ * @type {Array<string>}
38
+ * @memberof PaginateResponse
39
+ */
40
+ data: Array<string>;
41
+ /**
42
+ *
43
+ * @type {PaginateResponseMeta}
44
+ * @memberof PaginateResponse
45
+ */
46
+ meta: PaginateResponseMeta;
47
+ /**
48
+ *
49
+ * @type {PaginateResponseLinks}
50
+ * @memberof PaginateResponse
51
+ */
52
+ links: PaginateResponseLinks;
53
+ }
54
+
55
+ /**
56
+ * Check if a given object implements the PaginateResponse interface.
57
+ */
58
+ export function instanceOfPaginateResponse(value: object): boolean {
59
+ let isInstance = true;
60
+ isInstance = isInstance && "data" in value;
61
+ isInstance = isInstance && "meta" in value;
62
+ isInstance = isInstance && "links" in value;
63
+
64
+ return isInstance;
65
+ }
66
+
67
+ export function PaginateResponseFromJSON(json: any): PaginateResponse {
68
+ return PaginateResponseFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function PaginateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginateResponse {
72
+ if ((json === undefined) || (json === null)) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'data': json['data'],
78
+ 'meta': PaginateResponseMetaFromJSON(json['meta']),
79
+ 'links': PaginateResponseLinksFromJSON(json['links']),
80
+ };
81
+ }
82
+
83
+ export function PaginateResponseToJSON(value?: PaginateResponse | null): any {
84
+ if (value === undefined) {
85
+ return undefined;
86
+ }
87
+ if (value === null) {
88
+ return null;
89
+ }
90
+ return {
91
+
92
+ 'data': value.data,
93
+ 'meta': PaginateResponseMetaToJSON(value.meta),
94
+ 'links': PaginateResponseLinksToJSON(value.links),
95
+ };
96
+ }
97
+