@randock/nameshift-api-client 0.0.20 → 0.0.22

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 (39) hide show
  1. package/.openapi-generator/FILES +8 -2
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +46 -0
  4. package/dist/apis/AdminApi.js +206 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/ListAccountDto.d.ts +49 -0
  8. package/dist/models/ListAccountDto.js +59 -0
  9. package/dist/models/ListAccounts200Response.d.ts +46 -0
  10. package/dist/models/ListAccounts200Response.js +58 -0
  11. package/dist/models/ListAccounts400Response.d.ts +43 -0
  12. package/dist/models/{UpdateSettings429Response.js → ListAccounts400Response.js} +11 -11
  13. package/dist/models/ListAccounts429Response.d.ts +43 -0
  14. package/dist/models/{UpdateFinancial400Response.js → ListAccounts429Response.js} +11 -11
  15. package/dist/models/ListTransferDto.d.ts +72 -0
  16. package/dist/models/ListTransferDto.js +77 -0
  17. package/dist/models/ListTransfers200Response.d.ts +46 -0
  18. package/dist/models/ListTransfers200Response.js +58 -0
  19. package/dist/models/SecurityUserDto.d.ts +55 -0
  20. package/dist/models/SecurityUserDto.js +63 -0
  21. package/dist/models/index.d.ts +7 -2
  22. package/dist/models/index.js +7 -2
  23. package/package.json +1 -1
  24. package/src/apis/AccountsApi.ts +6 -6
  25. package/src/apis/AdminApi.ts +153 -0
  26. package/src/apis/DomainsApi.ts +3 -3
  27. package/src/apis/LeadsApi.ts +6 -6
  28. package/src/apis/LeadsPublicApi.ts +6 -6
  29. package/src/apis/index.ts +1 -0
  30. package/src/models/ListAccountDto.ts +88 -0
  31. package/src/models/ListAccounts200Response.ts +98 -0
  32. package/src/models/{UpdateFinancial400Response.ts → ListAccounts400Response.ts} +11 -11
  33. package/src/models/{UpdateSettings429Response.ts → ListAccounts429Response.ts} +11 -11
  34. package/src/models/ListTransferDto.ts +120 -0
  35. package/src/models/ListTransfers200Response.ts +98 -0
  36. package/src/models/SecurityUserDto.ts +97 -0
  37. package/src/models/index.ts +7 -2
  38. package/dist/models/UpdateFinancial400Response.d.ts +0 -43
  39. package/dist/models/UpdateSettings429Response.d.ts +0 -43
@@ -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 { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SecurityUserDto
20
+ */
21
+ export interface SecurityUserDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SecurityUserDto
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof SecurityUserDto
32
+ */
33
+ accountId: string;
34
+ /**
35
+ *
36
+ * @type {Array<string>}
37
+ * @memberof SecurityUserDto
38
+ */
39
+ roles: Array<string>;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof SecurityUserDto
44
+ */
45
+ firstname: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof SecurityUserDto
50
+ */
51
+ lastname: string;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the SecurityUserDto interface.
56
+ */
57
+ export function instanceOfSecurityUserDto(value: object): boolean {
58
+ if (!('id' in value)) return false;
59
+ if (!('accountId' in value)) return false;
60
+ if (!('roles' in value)) return false;
61
+ if (!('firstname' in value)) return false;
62
+ if (!('lastname' in value)) return false;
63
+ return true;
64
+ }
65
+
66
+ export function SecurityUserDtoFromJSON(json: any): SecurityUserDto {
67
+ return SecurityUserDtoFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function SecurityUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityUserDto {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'id': json['id'],
77
+ 'accountId': json['accountId'],
78
+ 'roles': json['roles'],
79
+ 'firstname': json['firstname'],
80
+ 'lastname': json['lastname'],
81
+ };
82
+ }
83
+
84
+ export function SecurityUserDtoToJSON(value?: SecurityUserDto | null): any {
85
+ if (value == null) {
86
+ return value;
87
+ }
88
+ return {
89
+
90
+ 'id': value['id'],
91
+ 'accountId': value['accountId'],
92
+ 'roles': value['roles'],
93
+ 'firstname': value['firstname'],
94
+ 'lastname': value['lastname'],
95
+ };
96
+ }
97
+
@@ -26,7 +26,13 @@ export * from './LeadMessageDtoData';
26
26
  export * from './List200Response';
27
27
  export * from './List400Response';
28
28
  export * from './List401Response';
29
+ export * from './ListAccountDto';
30
+ export * from './ListAccounts200Response';
31
+ export * from './ListAccounts400Response';
32
+ export * from './ListAccounts429Response';
29
33
  export * from './ListLeadMessagesDto';
34
+ export * from './ListTransferDto';
35
+ export * from './ListTransfers200Response';
30
36
  export * from './Login401Response';
31
37
  export * from './Login429Response';
32
38
  export * from './LoginInput';
@@ -38,11 +44,10 @@ export * from './PaginateResponseLinks';
38
44
  export * from './PaginateResponseMeta';
39
45
  export * from './PublicDomainControllerGetDomainSalesInformation404Response';
40
46
  export * from './PutLeadInput';
47
+ export * from './SecurityUserDto';
41
48
  export * from './TokenDto';
42
49
  export * from './UpdateDomainInput';
43
- export * from './UpdateFinancial400Response';
44
50
  export * from './UpdateSettings400Response';
45
51
  export * from './UpdateSettings401Response';
46
- export * from './UpdateSettings429Response';
47
52
  export * from './WithFinancialDtoInner';
48
53
  export * from './WithSettingsInner';
@@ -1,43 +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
- * Thrown in case of requestion validation errors.
14
- * @export
15
- * @interface UpdateFinancial400Response
16
- */
17
- export interface UpdateFinancial400Response {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof UpdateFinancial400Response
22
- */
23
- statusCode: number;
24
- /**
25
- *
26
- * @type {Array<object>}
27
- * @memberof UpdateFinancial400Response
28
- */
29
- message: Array<object>;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof UpdateFinancial400Response
34
- */
35
- error?: string;
36
- }
37
- /**
38
- * Check if a given object implements the UpdateFinancial400Response interface.
39
- */
40
- export declare function instanceOfUpdateFinancial400Response(value: object): boolean;
41
- export declare function UpdateFinancial400ResponseFromJSON(json: any): UpdateFinancial400Response;
42
- export declare function UpdateFinancial400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFinancial400Response;
43
- export declare function UpdateFinancial400ResponseToJSON(value?: UpdateFinancial400Response | null): any;
@@ -1,43 +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
- * Returned if more than 300 requests are made per minute.
14
- * @export
15
- * @interface UpdateSettings429Response
16
- */
17
- export interface UpdateSettings429Response {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof UpdateSettings429Response
22
- */
23
- statusCode: number;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof UpdateSettings429Response
28
- */
29
- message: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof UpdateSettings429Response
34
- */
35
- error?: string;
36
- }
37
- /**
38
- * Check if a given object implements the UpdateSettings429Response interface.
39
- */
40
- export declare function instanceOfUpdateSettings429Response(value: object): boolean;
41
- export declare function UpdateSettings429ResponseFromJSON(json: any): UpdateSettings429Response;
42
- export declare function UpdateSettings429ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSettings429Response;
43
- export declare function UpdateSettings429ResponseToJSON(value?: UpdateSettings429Response | null): any;