@randock/nameshift-api-client 0.0.191 → 0.0.193

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 (30) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +23 -1
  4. package/dist/apis/AdminApi.js +106 -0
  5. package/dist/models/AccountNotificationDto.d.ts +4 -4
  6. package/dist/models/AccountNotificationDto.js +4 -4
  7. package/dist/models/AdminAccountLoginDto.d.ts +32 -0
  8. package/dist/models/AdminAccountLoginDto.js +51 -0
  9. package/dist/models/SubscriptionDetailsBillingPeriodicityDto.d.ts +46 -0
  10. package/dist/models/SubscriptionDetailsBillingPeriodicityDto.js +63 -0
  11. package/dist/models/SubscriptionDetailsDomainDto.d.ts +44 -0
  12. package/dist/models/SubscriptionDetailsDomainDto.js +59 -0
  13. package/dist/models/SubscriptionDetailsDomainSellerDto.d.ts +45 -0
  14. package/dist/models/SubscriptionDetailsDomainSellerDto.js +60 -0
  15. package/dist/models/SubscriptionDetailsDomainSellerUserDto.d.ts +50 -0
  16. package/dist/models/SubscriptionDetailsDomainSellerUserDto.js +63 -0
  17. package/dist/models/SubscriptionDetailsDto.d.ts +184 -0
  18. package/dist/models/SubscriptionDetailsDto.js +160 -0
  19. package/dist/models/index.d.ts +6 -0
  20. package/dist/models/index.js +6 -0
  21. package/package.json +1 -1
  22. package/src/apis/AdminApi.ts +96 -0
  23. package/src/models/AccountNotificationDto.ts +4 -4
  24. package/src/models/AdminAccountLoginDto.ts +66 -0
  25. package/src/models/SubscriptionDetailsBillingPeriodicityDto.ts +86 -0
  26. package/src/models/SubscriptionDetailsDomainDto.ts +84 -0
  27. package/src/models/SubscriptionDetailsDomainSellerDto.ts +92 -0
  28. package/src/models/SubscriptionDetailsDomainSellerUserDto.ts +93 -0
  29. package/src/models/SubscriptionDetailsDto.ts +328 -0
  30. package/src/models/index.ts +6 -0
@@ -0,0 +1,66 @@
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 AdminAccountLoginDto
20
+ */
21
+ export interface AdminAccountLoginDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AdminAccountLoginDto
26
+ */
27
+ token: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the AdminAccountLoginDto interface.
32
+ */
33
+ export function instanceOfAdminAccountLoginDto(value: object): value is AdminAccountLoginDto {
34
+ if (!('token' in value) || value['token'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function AdminAccountLoginDtoFromJSON(json: any): AdminAccountLoginDto {
39
+ return AdminAccountLoginDtoFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function AdminAccountLoginDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminAccountLoginDto {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'token': json['token'],
49
+ };
50
+ }
51
+
52
+ export function AdminAccountLoginDtoToJSON(json: any): AdminAccountLoginDto {
53
+ return AdminAccountLoginDtoToJSONTyped(json, false);
54
+ }
55
+
56
+ export function AdminAccountLoginDtoToJSONTyped(value?: AdminAccountLoginDto | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'token': value['token'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,86 @@
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 SubscriptionDetailsBillingPeriodicityDto
20
+ */
21
+ export interface SubscriptionDetailsBillingPeriodicityDto {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof SubscriptionDetailsBillingPeriodicityDto
26
+ */
27
+ amount: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof SubscriptionDetailsBillingPeriodicityDto
32
+ */
33
+ unit: SubscriptionDetailsBillingPeriodicityDtoUnitEnum;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const SubscriptionDetailsBillingPeriodicityDtoUnitEnum = {
41
+ WEEK: 'week',
42
+ MONTH: 'month'
43
+ } as const;
44
+ export type SubscriptionDetailsBillingPeriodicityDtoUnitEnum = typeof SubscriptionDetailsBillingPeriodicityDtoUnitEnum[keyof typeof SubscriptionDetailsBillingPeriodicityDtoUnitEnum];
45
+
46
+
47
+ /**
48
+ * Check if a given object implements the SubscriptionDetailsBillingPeriodicityDto interface.
49
+ */
50
+ export function instanceOfSubscriptionDetailsBillingPeriodicityDto(value: object): value is SubscriptionDetailsBillingPeriodicityDto {
51
+ if (!('amount' in value) || value['amount'] === undefined) return false;
52
+ if (!('unit' in value) || value['unit'] === undefined) return false;
53
+ return true;
54
+ }
55
+
56
+ export function SubscriptionDetailsBillingPeriodicityDtoFromJSON(json: any): SubscriptionDetailsBillingPeriodicityDto {
57
+ return SubscriptionDetailsBillingPeriodicityDtoFromJSONTyped(json, false);
58
+ }
59
+
60
+ export function SubscriptionDetailsBillingPeriodicityDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionDetailsBillingPeriodicityDto {
61
+ if (json == null) {
62
+ return json;
63
+ }
64
+ return {
65
+
66
+ 'amount': json['amount'],
67
+ 'unit': json['unit'],
68
+ };
69
+ }
70
+
71
+ export function SubscriptionDetailsBillingPeriodicityDtoToJSON(json: any): SubscriptionDetailsBillingPeriodicityDto {
72
+ return SubscriptionDetailsBillingPeriodicityDtoToJSONTyped(json, false);
73
+ }
74
+
75
+ export function SubscriptionDetailsBillingPeriodicityDtoToJSONTyped(value?: SubscriptionDetailsBillingPeriodicityDto | null, ignoreDiscriminator: boolean = false): any {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+
80
+ return {
81
+
82
+ 'amount': value['amount'],
83
+ 'unit': value['unit'],
84
+ };
85
+ }
86
+
@@ -0,0 +1,84 @@
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 SubscriptionDetailsDomainDto
20
+ */
21
+ export interface SubscriptionDetailsDomainDto {
22
+ /**
23
+ *
24
+ * @type {object}
25
+ * @memberof SubscriptionDetailsDomainDto
26
+ */
27
+ id: object;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof SubscriptionDetailsDomainDto
32
+ */
33
+ displayName: string;
34
+ /**
35
+ *
36
+ * @type {Date}
37
+ * @memberof SubscriptionDetailsDomainDto
38
+ */
39
+ deletedAt: Date | null;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the SubscriptionDetailsDomainDto interface.
44
+ */
45
+ export function instanceOfSubscriptionDetailsDomainDto(value: object): value is SubscriptionDetailsDomainDto {
46
+ if (!('id' in value) || value['id'] === undefined) return false;
47
+ if (!('displayName' in value) || value['displayName'] === undefined) return false;
48
+ if (!('deletedAt' in value) || value['deletedAt'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function SubscriptionDetailsDomainDtoFromJSON(json: any): SubscriptionDetailsDomainDto {
53
+ return SubscriptionDetailsDomainDtoFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function SubscriptionDetailsDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionDetailsDomainDto {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'id': json['id'],
63
+ 'displayName': json['displayName'],
64
+ 'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
65
+ };
66
+ }
67
+
68
+ export function SubscriptionDetailsDomainDtoToJSON(json: any): SubscriptionDetailsDomainDto {
69
+ return SubscriptionDetailsDomainDtoToJSONTyped(json, false);
70
+ }
71
+
72
+ export function SubscriptionDetailsDomainDtoToJSONTyped(value?: SubscriptionDetailsDomainDto | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'id': value['id'],
80
+ 'displayName': value['displayName'],
81
+ 'deletedAt': (value['deletedAt'] == null ? null : (value['deletedAt'] as any).toISOString()),
82
+ };
83
+ }
84
+
@@ -0,0 +1,92 @@
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
+ import type { SubscriptionDetailsDomainSellerUserDto } from './SubscriptionDetailsDomainSellerUserDto';
17
+ import {
18
+ SubscriptionDetailsDomainSellerUserDtoFromJSON,
19
+ SubscriptionDetailsDomainSellerUserDtoFromJSONTyped,
20
+ SubscriptionDetailsDomainSellerUserDtoToJSON,
21
+ SubscriptionDetailsDomainSellerUserDtoToJSONTyped,
22
+ } from './SubscriptionDetailsDomainSellerUserDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SubscriptionDetailsDomainSellerDto
28
+ */
29
+ export interface SubscriptionDetailsDomainSellerDto {
30
+ /**
31
+ * The subscription domain seller account ID
32
+ * @type {object}
33
+ * @memberof SubscriptionDetailsDomainSellerDto
34
+ */
35
+ id: object;
36
+ /**
37
+ * The subscription domain seller account identifier
38
+ * @type {object}
39
+ * @memberof SubscriptionDetailsDomainSellerDto
40
+ */
41
+ identifier: object;
42
+ /**
43
+ * The subscription domain seller users information
44
+ * @type {Array<SubscriptionDetailsDomainSellerUserDto>}
45
+ * @memberof SubscriptionDetailsDomainSellerDto
46
+ */
47
+ users: Array<SubscriptionDetailsDomainSellerUserDto>;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the SubscriptionDetailsDomainSellerDto interface.
52
+ */
53
+ export function instanceOfSubscriptionDetailsDomainSellerDto(value: object): value is SubscriptionDetailsDomainSellerDto {
54
+ if (!('id' in value) || value['id'] === undefined) return false;
55
+ if (!('identifier' in value) || value['identifier'] === undefined) return false;
56
+ if (!('users' in value) || value['users'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function SubscriptionDetailsDomainSellerDtoFromJSON(json: any): SubscriptionDetailsDomainSellerDto {
61
+ return SubscriptionDetailsDomainSellerDtoFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function SubscriptionDetailsDomainSellerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionDetailsDomainSellerDto {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'id': json['id'],
71
+ 'identifier': json['identifier'],
72
+ 'users': ((json['users'] as Array<any>).map(SubscriptionDetailsDomainSellerUserDtoFromJSON)),
73
+ };
74
+ }
75
+
76
+ export function SubscriptionDetailsDomainSellerDtoToJSON(json: any): SubscriptionDetailsDomainSellerDto {
77
+ return SubscriptionDetailsDomainSellerDtoToJSONTyped(json, false);
78
+ }
79
+
80
+ export function SubscriptionDetailsDomainSellerDtoToJSONTyped(value?: SubscriptionDetailsDomainSellerDto | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'id': value['id'],
88
+ 'identifier': value['identifier'],
89
+ 'users': ((value['users'] as Array<any>).map(SubscriptionDetailsDomainSellerUserDtoToJSON)),
90
+ };
91
+ }
92
+
@@ -0,0 +1,93 @@
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 SubscriptionDetailsDomainSellerUserDto
20
+ */
21
+ export interface SubscriptionDetailsDomainSellerUserDto {
22
+ /**
23
+ * The order seller account user first name
24
+ * @type {string}
25
+ * @memberof SubscriptionDetailsDomainSellerUserDto
26
+ */
27
+ firstName: string;
28
+ /**
29
+ * The order seller account user last name
30
+ * @type {string}
31
+ * @memberof SubscriptionDetailsDomainSellerUserDto
32
+ */
33
+ lastName: string;
34
+ /**
35
+ * The order seller account user email
36
+ * @type {string}
37
+ * @memberof SubscriptionDetailsDomainSellerUserDto
38
+ */
39
+ email: string;
40
+ /**
41
+ * The order seller account user phone number
42
+ * @type {string}
43
+ * @memberof SubscriptionDetailsDomainSellerUserDto
44
+ */
45
+ phoneNumber: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the SubscriptionDetailsDomainSellerUserDto interface.
50
+ */
51
+ export function instanceOfSubscriptionDetailsDomainSellerUserDto(value: object): value is SubscriptionDetailsDomainSellerUserDto {
52
+ if (!('firstName' in value) || value['firstName'] === undefined) return false;
53
+ if (!('lastName' in value) || value['lastName'] === undefined) return false;
54
+ if (!('email' in value) || value['email'] === undefined) return false;
55
+ if (!('phoneNumber' in value) || value['phoneNumber'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function SubscriptionDetailsDomainSellerUserDtoFromJSON(json: any): SubscriptionDetailsDomainSellerUserDto {
60
+ return SubscriptionDetailsDomainSellerUserDtoFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function SubscriptionDetailsDomainSellerUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionDetailsDomainSellerUserDto {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'firstName': json['firstName'],
70
+ 'lastName': json['lastName'],
71
+ 'email': json['email'],
72
+ 'phoneNumber': json['phoneNumber'],
73
+ };
74
+ }
75
+
76
+ export function SubscriptionDetailsDomainSellerUserDtoToJSON(json: any): SubscriptionDetailsDomainSellerUserDto {
77
+ return SubscriptionDetailsDomainSellerUserDtoToJSONTyped(json, false);
78
+ }
79
+
80
+ export function SubscriptionDetailsDomainSellerUserDtoToJSONTyped(value?: SubscriptionDetailsDomainSellerUserDto | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'firstName': value['firstName'],
88
+ 'lastName': value['lastName'],
89
+ 'email': value['email'],
90
+ 'phoneNumber': value['phoneNumber'],
91
+ };
92
+ }
93
+