@randock/nameshift-api-client 0.0.142 → 0.0.144

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 (37) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +3 -3
  4. package/dist/apis/BuyersApi.d.ts +3 -3
  5. package/dist/apis/DomainsApi.d.ts +3 -3
  6. package/dist/apis/InvoicesApi.d.ts +3 -3
  7. package/dist/apis/LeadsPublicApi.d.ts +6 -6
  8. package/dist/apis/LeadsPublicApi.js +12 -12
  9. package/dist/apis/TasksApi.d.ts +32 -0
  10. package/dist/apis/TasksApi.js +143 -0
  11. package/dist/apis/index.d.ts +1 -0
  12. package/dist/apis/index.js +1 -0
  13. package/dist/models/AccountMetricsDto.d.ts +6 -0
  14. package/dist/models/AccountMetricsDto.js +4 -0
  15. package/dist/models/IntersectionTaskListTaskDto.d.ts +81 -0
  16. package/dist/models/IntersectionTaskListTaskDto.js +89 -0
  17. package/dist/models/List200Response2.d.ts +47 -0
  18. package/dist/models/List200Response2.js +62 -0
  19. package/dist/models/TaskListDomainDto.d.ts +44 -0
  20. package/dist/models/TaskListDomainDto.js +59 -0
  21. package/dist/models/TaskListLeadDto.d.ts +60 -0
  22. package/dist/models/TaskListLeadDto.js +73 -0
  23. package/dist/models/index.d.ts +4 -0
  24. package/dist/models/index.js +4 -0
  25. package/package.json +1 -1
  26. package/src/apis/BuyersApi.ts +3 -3
  27. package/src/apis/DomainsApi.ts +3 -3
  28. package/src/apis/InvoicesApi.ts +3 -3
  29. package/src/apis/LeadsPublicApi.ts +14 -14
  30. package/src/apis/TasksApi.ts +93 -0
  31. package/src/apis/index.ts +1 -0
  32. package/src/models/AccountMetricsDto.ts +9 -0
  33. package/src/models/IntersectionTaskListTaskDto.ts +147 -0
  34. package/src/models/List200Response2.ts +106 -0
  35. package/src/models/TaskListDomainDto.ts +84 -0
  36. package/src/models/TaskListLeadDto.ts +113 -0
  37. package/src/models/index.ts +4 -0
package/src/apis/index.ts CHANGED
@@ -12,5 +12,6 @@ export * from './LeadsApi';
12
12
  export * from './LeadsPublicApi';
13
13
  export * from './OrdersPublicApi';
14
14
  export * from './StripePublicApi';
15
+ export * from './TasksApi';
15
16
  export * from './UsersApi';
16
17
  export * from './UsersPublicApi';
@@ -43,6 +43,12 @@ export interface AccountMetricsDto {
43
43
  * @memberof AccountMetricsDto
44
44
  */
45
45
  activeDomainTransfersNumber: number;
46
+ /**
47
+ * Total of active account domain transfers number
48
+ * @type {number}
49
+ * @memberof AccountMetricsDto
50
+ */
51
+ tasksNumber: number;
46
52
  }
47
53
 
48
54
  /**
@@ -53,6 +59,7 @@ export function instanceOfAccountMetricsDto(value: object): value is AccountMetr
53
59
  if (!('domainsNumber' in value) || value['domainsNumber'] === undefined) return false;
54
60
  if (!('activeLeadsNumber' in value) || value['activeLeadsNumber'] === undefined) return false;
55
61
  if (!('activeDomainTransfersNumber' in value) || value['activeDomainTransfersNumber'] === undefined) return false;
62
+ if (!('tasksNumber' in value) || value['tasksNumber'] === undefined) return false;
56
63
  return true;
57
64
  }
58
65
 
@@ -70,6 +77,7 @@ export function AccountMetricsDtoFromJSONTyped(json: any, ignoreDiscriminator: b
70
77
  'domainsNumber': json['domainsNumber'],
71
78
  'activeLeadsNumber': json['activeLeadsNumber'],
72
79
  'activeDomainTransfersNumber': json['activeDomainTransfersNumber'],
80
+ 'tasksNumber': json['tasksNumber'],
73
81
  };
74
82
  }
75
83
 
@@ -88,6 +96,7 @@ export function AccountMetricsDtoFromJSONTyped(json: any, ignoreDiscriminator: b
88
96
  'domainsNumber': value['domainsNumber'],
89
97
  'activeLeadsNumber': value['activeLeadsNumber'],
90
98
  'activeDomainTransfersNumber': value['activeDomainTransfersNumber'],
99
+ 'tasksNumber': value['tasksNumber'],
91
100
  };
92
101
  }
93
102
 
@@ -0,0 +1,147 @@
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 { TaskListLeadDto } from './TaskListLeadDto';
17
+ import {
18
+ TaskListLeadDtoFromJSON,
19
+ TaskListLeadDtoFromJSONTyped,
20
+ TaskListLeadDtoToJSON,
21
+ TaskListLeadDtoToJSONTyped,
22
+ } from './TaskListLeadDto';
23
+ import type { TaskListDomainDto } from './TaskListDomainDto';
24
+ import {
25
+ TaskListDomainDtoFromJSON,
26
+ TaskListDomainDtoFromJSONTyped,
27
+ TaskListDomainDtoToJSON,
28
+ TaskListDomainDtoToJSONTyped,
29
+ } from './TaskListDomainDto';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface IntersectionTaskListTaskDto
35
+ */
36
+ export interface IntersectionTaskListTaskDto {
37
+ /**
38
+ * The uuid for this domain.
39
+ * @type {string}
40
+ * @memberof IntersectionTaskListTaskDto
41
+ */
42
+ id: string;
43
+ /**
44
+ * The date the task was updated.
45
+ * @type {Date}
46
+ * @memberof IntersectionTaskListTaskDto
47
+ */
48
+ updatedAt: Date;
49
+ /**
50
+ * The priority.
51
+ * @type {number}
52
+ * @memberof IntersectionTaskListTaskDto
53
+ */
54
+ priority: IntersectionTaskListTaskDtoPriorityEnum;
55
+ /**
56
+ * The type of task.
57
+ * @type {string}
58
+ * @memberof IntersectionTaskListTaskDto
59
+ */
60
+ type: IntersectionTaskListTaskDtoTypeEnum;
61
+ /**
62
+ * Domain data this task belongs to.
63
+ * @type {TaskListDomainDto}
64
+ * @memberof IntersectionTaskListTaskDto
65
+ */
66
+ domain: TaskListDomainDto | null;
67
+ /**
68
+ * Domain data this task belongs to.
69
+ * @type {TaskListLeadDto}
70
+ * @memberof IntersectionTaskListTaskDto
71
+ */
72
+ lead: TaskListLeadDto | null;
73
+ }
74
+
75
+
76
+ /**
77
+ * @export
78
+ */
79
+ export const IntersectionTaskListTaskDtoPriorityEnum = {
80
+ NUMBER_1: 1,
81
+ NUMBER_2: 2,
82
+ NUMBER_3: 3
83
+ } as const;
84
+ export type IntersectionTaskListTaskDtoPriorityEnum = typeof IntersectionTaskListTaskDtoPriorityEnum[keyof typeof IntersectionTaskListTaskDtoPriorityEnum];
85
+
86
+ /**
87
+ * @export
88
+ */
89
+ export const IntersectionTaskListTaskDtoTypeEnum = {
90
+ LEAD: 'lead',
91
+ AUTH_CODE: 'auth_code'
92
+ } as const;
93
+ export type IntersectionTaskListTaskDtoTypeEnum = typeof IntersectionTaskListTaskDtoTypeEnum[keyof typeof IntersectionTaskListTaskDtoTypeEnum];
94
+
95
+
96
+ /**
97
+ * Check if a given object implements the IntersectionTaskListTaskDto interface.
98
+ */
99
+ export function instanceOfIntersectionTaskListTaskDto(value: object): value is IntersectionTaskListTaskDto {
100
+ if (!('id' in value) || value['id'] === undefined) return false;
101
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
102
+ if (!('priority' in value) || value['priority'] === undefined) return false;
103
+ if (!('type' in value) || value['type'] === undefined) return false;
104
+ if (!('domain' in value) || value['domain'] === undefined) return false;
105
+ if (!('lead' in value) || value['lead'] === undefined) return false;
106
+ return true;
107
+ }
108
+
109
+ export function IntersectionTaskListTaskDtoFromJSON(json: any): IntersectionTaskListTaskDto {
110
+ return IntersectionTaskListTaskDtoFromJSONTyped(json, false);
111
+ }
112
+
113
+ export function IntersectionTaskListTaskDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionTaskListTaskDto {
114
+ if (json == null) {
115
+ return json;
116
+ }
117
+ return {
118
+
119
+ 'id': json['id'],
120
+ 'updatedAt': (new Date(json['updatedAt'])),
121
+ 'priority': json['priority'],
122
+ 'type': json['type'],
123
+ 'domain': TaskListDomainDtoFromJSON(json['domain']),
124
+ 'lead': TaskListLeadDtoFromJSON(json['lead']),
125
+ };
126
+ }
127
+
128
+ export function IntersectionTaskListTaskDtoToJSON(json: any): IntersectionTaskListTaskDto {
129
+ return IntersectionTaskListTaskDtoToJSONTyped(json, false);
130
+ }
131
+
132
+ export function IntersectionTaskListTaskDtoToJSONTyped(value?: IntersectionTaskListTaskDto | null, ignoreDiscriminator: boolean = false): any {
133
+ if (value == null) {
134
+ return value;
135
+ }
136
+
137
+ return {
138
+
139
+ 'id': value['id'],
140
+ 'updatedAt': ((value['updatedAt']).toISOString()),
141
+ 'priority': value['priority'],
142
+ 'type': value['type'],
143
+ 'domain': TaskListDomainDtoToJSON(value['domain']),
144
+ 'lead': TaskListLeadDtoToJSON(value['lead']),
145
+ };
146
+ }
147
+
@@ -0,0 +1,106 @@
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 { PaginateResponseLinks } from './PaginateResponseLinks';
17
+ import {
18
+ PaginateResponseLinksFromJSON,
19
+ PaginateResponseLinksFromJSONTyped,
20
+ PaginateResponseLinksToJSON,
21
+ PaginateResponseLinksToJSONTyped,
22
+ } from './PaginateResponseLinks';
23
+ import type { IntersectionTaskListTaskDto } from './IntersectionTaskListTaskDto';
24
+ import {
25
+ IntersectionTaskListTaskDtoFromJSON,
26
+ IntersectionTaskListTaskDtoFromJSONTyped,
27
+ IntersectionTaskListTaskDtoToJSON,
28
+ IntersectionTaskListTaskDtoToJSONTyped,
29
+ } from './IntersectionTaskListTaskDto';
30
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
31
+ import {
32
+ PaginateResponseMetaFromJSON,
33
+ PaginateResponseMetaFromJSONTyped,
34
+ PaginateResponseMetaToJSON,
35
+ PaginateResponseMetaToJSONTyped,
36
+ } from './PaginateResponseMeta';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface List200Response2
42
+ */
43
+ export interface List200Response2 {
44
+ /**
45
+ *
46
+ * @type {Array<IntersectionTaskListTaskDto>}
47
+ * @memberof List200Response2
48
+ */
49
+ data: Array<IntersectionTaskListTaskDto>;
50
+ /**
51
+ *
52
+ * @type {PaginateResponseMeta}
53
+ * @memberof List200Response2
54
+ */
55
+ meta: PaginateResponseMeta;
56
+ /**
57
+ *
58
+ * @type {PaginateResponseLinks}
59
+ * @memberof List200Response2
60
+ */
61
+ links: PaginateResponseLinks;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the List200Response2 interface.
66
+ */
67
+ export function instanceOfList200Response2(value: object): value is List200Response2 {
68
+ if (!('data' in value) || value['data'] === undefined) return false;
69
+ if (!('meta' in value) || value['meta'] === undefined) return false;
70
+ if (!('links' in value) || value['links'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function List200Response2FromJSON(json: any): List200Response2 {
75
+ return List200Response2FromJSONTyped(json, false);
76
+ }
77
+
78
+ export function List200Response2FromJSONTyped(json: any, ignoreDiscriminator: boolean): List200Response2 {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'data': ((json['data'] as Array<any>).map(IntersectionTaskListTaskDtoFromJSON)),
85
+ 'meta': PaginateResponseMetaFromJSON(json['meta']),
86
+ 'links': PaginateResponseLinksFromJSON(json['links']),
87
+ };
88
+ }
89
+
90
+ export function List200Response2ToJSON(json: any): List200Response2 {
91
+ return List200Response2ToJSONTyped(json, false);
92
+ }
93
+
94
+ export function List200Response2ToJSONTyped(value?: List200Response2 | null, ignoreDiscriminator: boolean = false): any {
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+
99
+ return {
100
+
101
+ 'data': ((value['data'] as Array<any>).map(IntersectionTaskListTaskDtoToJSON)),
102
+ 'meta': PaginateResponseMetaToJSON(value['meta']),
103
+ 'links': PaginateResponseLinksToJSON(value['links']),
104
+ };
105
+ }
106
+
@@ -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 TaskListDomainDto
20
+ */
21
+ export interface TaskListDomainDto {
22
+ /**
23
+ * The uuid for this domain.
24
+ * @type {string}
25
+ * @memberof TaskListDomainDto
26
+ */
27
+ id: string;
28
+ /**
29
+ * Domain display name
30
+ * @type {string}
31
+ * @memberof TaskListDomainDto
32
+ */
33
+ displayName: string;
34
+ /**
35
+ * Domain currency
36
+ * @type {string}
37
+ * @memberof TaskListDomainDto
38
+ */
39
+ currencyCode: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the TaskListDomainDto interface.
44
+ */
45
+ export function instanceOfTaskListDomainDto(value: object): value is TaskListDomainDto {
46
+ if (!('id' in value) || value['id'] === undefined) return false;
47
+ if (!('displayName' in value) || value['displayName'] === undefined) return false;
48
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function TaskListDomainDtoFromJSON(json: any): TaskListDomainDto {
53
+ return TaskListDomainDtoFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function TaskListDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskListDomainDto {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'id': json['id'],
63
+ 'displayName': json['displayName'],
64
+ 'currencyCode': json['currencyCode'],
65
+ };
66
+ }
67
+
68
+ export function TaskListDomainDtoToJSON(json: any): TaskListDomainDto {
69
+ return TaskListDomainDtoToJSONTyped(json, false);
70
+ }
71
+
72
+ export function TaskListDomainDtoToJSONTyped(value?: TaskListDomainDto | 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
+ 'currencyCode': value['currencyCode'],
82
+ };
83
+ }
84
+
@@ -0,0 +1,113 @@
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 { MoneyDto } from './MoneyDto';
17
+ import {
18
+ MoneyDtoFromJSON,
19
+ MoneyDtoFromJSONTyped,
20
+ MoneyDtoToJSON,
21
+ MoneyDtoToJSONTyped,
22
+ } from './MoneyDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface TaskListLeadDto
28
+ */
29
+ export interface TaskListLeadDto {
30
+ /**
31
+ * The uuid for this domain.
32
+ * @type {string}
33
+ * @memberof TaskListLeadDto
34
+ */
35
+ id: string;
36
+ /**
37
+ * Last offer or null
38
+ * @type {MoneyDto}
39
+ * @memberof TaskListLeadDto
40
+ */
41
+ lastOffer: MoneyDto | null;
42
+ /**
43
+ * Last offer by or null
44
+ * @type {string}
45
+ * @memberof TaskListLeadDto
46
+ */
47
+ lastOfferBy: TaskListLeadDtoLastOfferByEnum | null;
48
+ /**
49
+ * Seller unread messages
50
+ * @type {number}
51
+ * @memberof TaskListLeadDto
52
+ */
53
+ unreadSellerMessagesNumber: number;
54
+ }
55
+
56
+
57
+ /**
58
+ * @export
59
+ */
60
+ export const TaskListLeadDtoLastOfferByEnum = {
61
+ BUYER: 'buyer',
62
+ SELLER: 'seller',
63
+ ADMIN: 'admin'
64
+ } as const;
65
+ export type TaskListLeadDtoLastOfferByEnum = typeof TaskListLeadDtoLastOfferByEnum[keyof typeof TaskListLeadDtoLastOfferByEnum];
66
+
67
+
68
+ /**
69
+ * Check if a given object implements the TaskListLeadDto interface.
70
+ */
71
+ export function instanceOfTaskListLeadDto(value: object): value is TaskListLeadDto {
72
+ if (!('id' in value) || value['id'] === undefined) return false;
73
+ if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
74
+ if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
75
+ if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
76
+ return true;
77
+ }
78
+
79
+ export function TaskListLeadDtoFromJSON(json: any): TaskListLeadDto {
80
+ return TaskListLeadDtoFromJSONTyped(json, false);
81
+ }
82
+
83
+ export function TaskListLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskListLeadDto {
84
+ if (json == null) {
85
+ return json;
86
+ }
87
+ return {
88
+
89
+ 'id': json['id'],
90
+ 'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
91
+ 'lastOfferBy': json['lastOfferBy'],
92
+ 'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
93
+ };
94
+ }
95
+
96
+ export function TaskListLeadDtoToJSON(json: any): TaskListLeadDto {
97
+ return TaskListLeadDtoToJSONTyped(json, false);
98
+ }
99
+
100
+ export function TaskListLeadDtoToJSONTyped(value?: TaskListLeadDto | null, ignoreDiscriminator: boolean = false): any {
101
+ if (value == null) {
102
+ return value;
103
+ }
104
+
105
+ return {
106
+
107
+ 'id': value['id'],
108
+ 'lastOffer': MoneyDtoToJSON(value['lastOffer']),
109
+ 'lastOfferBy': value['lastOfferBy'],
110
+ 'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
111
+ };
112
+ }
113
+
@@ -66,6 +66,7 @@ export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
66
66
  export * from './IntersectionDomainSalesInformationDtoWithDomainStatsDto';
67
67
  export * from './IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto';
68
68
  export * from './IntersectionLeadDtoWithListFieldsDto';
69
+ export * from './IntersectionTaskListTaskDto';
69
70
  export * from './InvoiceDomainDto';
70
71
  export * from './InvoiceDto';
71
72
  export * from './InvoiceItemDto';
@@ -78,6 +79,7 @@ export * from './LeadMessageDto';
78
79
  export * from './LeadStatusDto';
79
80
  export * from './List200Response';
80
81
  export * from './List200Response1';
82
+ export * from './List200Response2';
81
83
  export * from './ListAccountDto';
82
84
  export * from './ListAccounts200Response';
83
85
  export * from './ListLeadMessagesDto';
@@ -117,6 +119,8 @@ export * from './SetDomainTransferConfirmationInput';
117
119
  export * from './SetNewPasswordInput';
118
120
  export * from './StoreBuyerLocaleInput';
119
121
  export * from './StoreUserLocaleInput';
122
+ export * from './TaskListDomainDto';
123
+ export * from './TaskListLeadDto';
120
124
  export * from './ThrottlerException';
121
125
  export * from './UpdateAccountBillingInformationInput';
122
126
  export * from './UpdateDomainInput';