@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
@@ -0,0 +1,47 @@
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 { IntersectionTaskListTaskDto } from './IntersectionTaskListTaskDto';
14
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface List200Response2
19
+ */
20
+ export interface List200Response2 {
21
+ /**
22
+ *
23
+ * @type {Array<IntersectionTaskListTaskDto>}
24
+ * @memberof List200Response2
25
+ */
26
+ data: Array<IntersectionTaskListTaskDto>;
27
+ /**
28
+ *
29
+ * @type {PaginateResponseMeta}
30
+ * @memberof List200Response2
31
+ */
32
+ meta: PaginateResponseMeta;
33
+ /**
34
+ *
35
+ * @type {PaginateResponseLinks}
36
+ * @memberof List200Response2
37
+ */
38
+ links: PaginateResponseLinks;
39
+ }
40
+ /**
41
+ * Check if a given object implements the List200Response2 interface.
42
+ */
43
+ export declare function instanceOfList200Response2(value: object): value is List200Response2;
44
+ export declare function List200Response2FromJSON(json: any): List200Response2;
45
+ export declare function List200Response2FromJSONTyped(json: any, ignoreDiscriminator: boolean): List200Response2;
46
+ export declare function List200Response2ToJSON(json: any): List200Response2;
47
+ export declare function List200Response2ToJSONTyped(value?: List200Response2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.instanceOfList200Response2 = instanceOfList200Response2;
17
+ exports.List200Response2FromJSON = List200Response2FromJSON;
18
+ exports.List200Response2FromJSONTyped = List200Response2FromJSONTyped;
19
+ exports.List200Response2ToJSON = List200Response2ToJSON;
20
+ exports.List200Response2ToJSONTyped = List200Response2ToJSONTyped;
21
+ var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
22
+ var IntersectionTaskListTaskDto_1 = require("./IntersectionTaskListTaskDto");
23
+ var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
24
+ /**
25
+ * Check if a given object implements the List200Response2 interface.
26
+ */
27
+ function instanceOfList200Response2(value) {
28
+ if (!('data' in value) || value['data'] === undefined)
29
+ return false;
30
+ if (!('meta' in value) || value['meta'] === undefined)
31
+ return false;
32
+ if (!('links' in value) || value['links'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function List200Response2FromJSON(json) {
37
+ return List200Response2FromJSONTyped(json, false);
38
+ }
39
+ function List200Response2FromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'data': (json['data'].map(IntersectionTaskListTaskDto_1.IntersectionTaskListTaskDtoFromJSON)),
45
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
46
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
47
+ };
48
+ }
49
+ function List200Response2ToJSON(json) {
50
+ return List200Response2ToJSONTyped(json, false);
51
+ }
52
+ function List200Response2ToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'data': (value['data'].map(IntersectionTaskListTaskDto_1.IntersectionTaskListTaskDtoToJSON)),
59
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
60
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
61
+ };
62
+ }
@@ -0,0 +1,44 @@
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 TaskListDomainDto
16
+ */
17
+ export interface TaskListDomainDto {
18
+ /**
19
+ * The uuid for this domain.
20
+ * @type {string}
21
+ * @memberof TaskListDomainDto
22
+ */
23
+ id: string;
24
+ /**
25
+ * Domain display name
26
+ * @type {string}
27
+ * @memberof TaskListDomainDto
28
+ */
29
+ displayName: string;
30
+ /**
31
+ * Domain currency
32
+ * @type {string}
33
+ * @memberof TaskListDomainDto
34
+ */
35
+ currencyCode: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the TaskListDomainDto interface.
39
+ */
40
+ export declare function instanceOfTaskListDomainDto(value: object): value is TaskListDomainDto;
41
+ export declare function TaskListDomainDtoFromJSON(json: any): TaskListDomainDto;
42
+ export declare function TaskListDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskListDomainDto;
43
+ export declare function TaskListDomainDtoToJSON(json: any): TaskListDomainDto;
44
+ export declare function TaskListDomainDtoToJSONTyped(value?: TaskListDomainDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.instanceOfTaskListDomainDto = instanceOfTaskListDomainDto;
17
+ exports.TaskListDomainDtoFromJSON = TaskListDomainDtoFromJSON;
18
+ exports.TaskListDomainDtoFromJSONTyped = TaskListDomainDtoFromJSONTyped;
19
+ exports.TaskListDomainDtoToJSON = TaskListDomainDtoToJSON;
20
+ exports.TaskListDomainDtoToJSONTyped = TaskListDomainDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the TaskListDomainDto interface.
23
+ */
24
+ function instanceOfTaskListDomainDto(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('displayName' in value) || value['displayName'] === undefined)
28
+ return false;
29
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function TaskListDomainDtoFromJSON(json) {
34
+ return TaskListDomainDtoFromJSONTyped(json, false);
35
+ }
36
+ function TaskListDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'id': json['id'],
42
+ 'displayName': json['displayName'],
43
+ 'currencyCode': json['currencyCode'],
44
+ };
45
+ }
46
+ function TaskListDomainDtoToJSON(json) {
47
+ return TaskListDomainDtoToJSONTyped(json, false);
48
+ }
49
+ function TaskListDomainDtoToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'id': value['id'],
56
+ 'displayName': value['displayName'],
57
+ 'currencyCode': value['currencyCode'],
58
+ };
59
+ }
@@ -0,0 +1,60 @@
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 { MoneyDto } from './MoneyDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TaskListLeadDto
17
+ */
18
+ export interface TaskListLeadDto {
19
+ /**
20
+ * The uuid for this domain.
21
+ * @type {string}
22
+ * @memberof TaskListLeadDto
23
+ */
24
+ id: string;
25
+ /**
26
+ * Last offer or null
27
+ * @type {MoneyDto}
28
+ * @memberof TaskListLeadDto
29
+ */
30
+ lastOffer: MoneyDto | null;
31
+ /**
32
+ * Last offer by or null
33
+ * @type {string}
34
+ * @memberof TaskListLeadDto
35
+ */
36
+ lastOfferBy: TaskListLeadDtoLastOfferByEnum | null;
37
+ /**
38
+ * Seller unread messages
39
+ * @type {number}
40
+ * @memberof TaskListLeadDto
41
+ */
42
+ unreadSellerMessagesNumber: number;
43
+ }
44
+ /**
45
+ * @export
46
+ */
47
+ export declare const TaskListLeadDtoLastOfferByEnum: {
48
+ readonly BUYER: "buyer";
49
+ readonly SELLER: "seller";
50
+ readonly ADMIN: "admin";
51
+ };
52
+ export type TaskListLeadDtoLastOfferByEnum = typeof TaskListLeadDtoLastOfferByEnum[keyof typeof TaskListLeadDtoLastOfferByEnum];
53
+ /**
54
+ * Check if a given object implements the TaskListLeadDto interface.
55
+ */
56
+ export declare function instanceOfTaskListLeadDto(value: object): value is TaskListLeadDto;
57
+ export declare function TaskListLeadDtoFromJSON(json: any): TaskListLeadDto;
58
+ export declare function TaskListLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskListLeadDto;
59
+ export declare function TaskListLeadDtoToJSON(json: any): TaskListLeadDto;
60
+ export declare function TaskListLeadDtoToJSONTyped(value?: TaskListLeadDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,73 @@
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.TaskListLeadDtoLastOfferByEnum = void 0;
17
+ exports.instanceOfTaskListLeadDto = instanceOfTaskListLeadDto;
18
+ exports.TaskListLeadDtoFromJSON = TaskListLeadDtoFromJSON;
19
+ exports.TaskListLeadDtoFromJSONTyped = TaskListLeadDtoFromJSONTyped;
20
+ exports.TaskListLeadDtoToJSON = TaskListLeadDtoToJSON;
21
+ exports.TaskListLeadDtoToJSONTyped = TaskListLeadDtoToJSONTyped;
22
+ var MoneyDto_1 = require("./MoneyDto");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.TaskListLeadDtoLastOfferByEnum = {
27
+ BUYER: 'buyer',
28
+ SELLER: 'seller',
29
+ ADMIN: 'admin'
30
+ };
31
+ /**
32
+ * Check if a given object implements the TaskListLeadDto interface.
33
+ */
34
+ function instanceOfTaskListLeadDto(value) {
35
+ if (!('id' in value) || value['id'] === undefined)
36
+ return false;
37
+ if (!('lastOffer' in value) || value['lastOffer'] === undefined)
38
+ return false;
39
+ if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined)
40
+ return false;
41
+ if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ function TaskListLeadDtoFromJSON(json) {
46
+ return TaskListLeadDtoFromJSONTyped(json, false);
47
+ }
48
+ function TaskListLeadDtoFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'id': json['id'],
54
+ 'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
55
+ 'lastOfferBy': json['lastOfferBy'],
56
+ 'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
57
+ };
58
+ }
59
+ function TaskListLeadDtoToJSON(json) {
60
+ return TaskListLeadDtoToJSONTyped(json, false);
61
+ }
62
+ function TaskListLeadDtoToJSONTyped(value, ignoreDiscriminator) {
63
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'id': value['id'],
69
+ 'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
70
+ 'lastOfferBy': value['lastOfferBy'],
71
+ 'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
72
+ };
73
+ }
@@ -64,6 +64,7 @@ export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
64
64
  export * from './IntersectionDomainSalesInformationDtoWithDomainStatsDto';
65
65
  export * from './IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto';
66
66
  export * from './IntersectionLeadDtoWithListFieldsDto';
67
+ export * from './IntersectionTaskListTaskDto';
67
68
  export * from './InvoiceDomainDto';
68
69
  export * from './InvoiceDto';
69
70
  export * from './InvoiceItemDto';
@@ -76,6 +77,7 @@ export * from './LeadMessageDto';
76
77
  export * from './LeadStatusDto';
77
78
  export * from './List200Response';
78
79
  export * from './List200Response1';
80
+ export * from './List200Response2';
79
81
  export * from './ListAccountDto';
80
82
  export * from './ListAccounts200Response';
81
83
  export * from './ListLeadMessagesDto';
@@ -115,6 +117,8 @@ export * from './SetDomainTransferConfirmationInput';
115
117
  export * from './SetNewPasswordInput';
116
118
  export * from './StoreBuyerLocaleInput';
117
119
  export * from './StoreUserLocaleInput';
120
+ export * from './TaskListDomainDto';
121
+ export * from './TaskListLeadDto';
118
122
  export * from './ThrottlerException';
119
123
  export * from './UpdateAccountBillingInformationInput';
120
124
  export * from './UpdateDomainInput';
@@ -82,6 +82,7 @@ __exportStar(require("./IntersectionDomainDtoWithHijackerDtoWithAccountDto"), ex
82
82
  __exportStar(require("./IntersectionDomainSalesInformationDtoWithDomainStatsDto"), exports);
83
83
  __exportStar(require("./IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto"), exports);
84
84
  __exportStar(require("./IntersectionLeadDtoWithListFieldsDto"), exports);
85
+ __exportStar(require("./IntersectionTaskListTaskDto"), exports);
85
86
  __exportStar(require("./InvoiceDomainDto"), exports);
86
87
  __exportStar(require("./InvoiceDto"), exports);
87
88
  __exportStar(require("./InvoiceItemDto"), exports);
@@ -94,6 +95,7 @@ __exportStar(require("./LeadMessageDto"), exports);
94
95
  __exportStar(require("./LeadStatusDto"), exports);
95
96
  __exportStar(require("./List200Response"), exports);
96
97
  __exportStar(require("./List200Response1"), exports);
98
+ __exportStar(require("./List200Response2"), exports);
97
99
  __exportStar(require("./ListAccountDto"), exports);
98
100
  __exportStar(require("./ListAccounts200Response"), exports);
99
101
  __exportStar(require("./ListLeadMessagesDto"), exports);
@@ -133,6 +135,8 @@ __exportStar(require("./SetDomainTransferConfirmationInput"), exports);
133
135
  __exportStar(require("./SetNewPasswordInput"), exports);
134
136
  __exportStar(require("./StoreBuyerLocaleInput"), exports);
135
137
  __exportStar(require("./StoreUserLocaleInput"), exports);
138
+ __exportStar(require("./TaskListDomainDto"), exports);
139
+ __exportStar(require("./TaskListLeadDto"), exports);
136
140
  __exportStar(require("./ThrottlerException"), exports);
137
141
  __exportStar(require("./UpdateAccountBillingInformationInput"), exports);
138
142
  __exportStar(require("./UpdateDomainInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.142",
3
+ "version": "0.0.144",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -131,7 +131,7 @@ export interface BuyersApiPutBuyerOfferRequest {
131
131
  putBuyerLeadOfferInput: PutBuyerLeadOfferInput;
132
132
  }
133
133
 
134
- export interface BuyersApiSetLocaleRequest {
134
+ export interface BuyersApiSetLocale0Request {
135
135
  storeBuyerLocaleInput: StoreBuyerLocaleInput;
136
136
  }
137
137
 
@@ -732,7 +732,7 @@ export class BuyersApi extends runtime.BaseAPI {
732
732
  /**
733
733
  *
734
734
  */
735
- async setLocaleRaw(requestParameters: BuyersApiSetLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
735
+ async setLocaleRaw(requestParameters: BuyersApiSetLocale0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
736
736
  if (requestParameters['storeBuyerLocaleInput'] == null) {
737
737
  throw new runtime.RequiredError(
738
738
  'storeBuyerLocaleInput',
@@ -768,7 +768,7 @@ export class BuyersApi extends runtime.BaseAPI {
768
768
  /**
769
769
  *
770
770
  */
771
- async setLocale(requestParameters: BuyersApiSetLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
771
+ async setLocale(requestParameters: BuyersApiSetLocale0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
772
772
  await this.setLocaleRaw(requestParameters, initOverrides);
773
773
  }
774
774
 
@@ -94,7 +94,7 @@ export interface DomainsApiGetDomainTransferRequest {
94
94
  transferId: string;
95
95
  }
96
96
 
97
- export interface DomainsApiListRequest {
97
+ export interface DomainsApiList0Request {
98
98
  filter?: object;
99
99
  page?: number;
100
100
  limit?: number;
@@ -490,7 +490,7 @@ export class DomainsApi extends runtime.BaseAPI {
490
490
  /**
491
491
  *
492
492
  */
493
- async listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response1>> {
493
+ async listRaw(requestParameters: DomainsApiList0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response1>> {
494
494
  const queryParameters: any = {};
495
495
 
496
496
  if (requestParameters['filter'] != null) {
@@ -532,7 +532,7 @@ export class DomainsApi extends runtime.BaseAPI {
532
532
  /**
533
533
  *
534
534
  */
535
- async list(requestParameters: DomainsApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response1> {
535
+ async list(requestParameters: DomainsApiList0Request = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response1> {
536
536
  const response = await this.listRaw(requestParameters, initOverrides);
537
537
  return await response.value();
538
538
  }
@@ -31,7 +31,7 @@ import {
31
31
  ValidationExceptionToJSON,
32
32
  } from '../models/index';
33
33
 
34
- export interface InvoicesApiDownloadInvoiceRequest {
34
+ export interface InvoicesApiDownloadInvoice0Request {
35
35
  invoiceId: string;
36
36
  }
37
37
 
@@ -50,7 +50,7 @@ export class InvoicesApi extends runtime.BaseAPI {
50
50
  /**
51
51
  *
52
52
  */
53
- async downloadInvoiceRaw(requestParameters: InvoicesApiDownloadInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
53
+ async downloadInvoiceRaw(requestParameters: InvoicesApiDownloadInvoice0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
54
54
  if (requestParameters['invoiceId'] == null) {
55
55
  throw new runtime.RequiredError(
56
56
  'invoiceId',
@@ -83,7 +83,7 @@ export class InvoicesApi extends runtime.BaseAPI {
83
83
  /**
84
84
  *
85
85
  */
86
- async downloadInvoice(requestParameters: InvoicesApiDownloadInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
86
+ async downloadInvoice(requestParameters: InvoicesApiDownloadInvoice0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
87
87
  const response = await this.downloadInvoiceRaw(requestParameters, initOverrides);
88
88
  return await response.value();
89
89
  }
@@ -53,11 +53,11 @@ export interface LeadsPublicApiCreateLeadRequest {
53
53
  createLeadInput: CreateLeadInput;
54
54
  }
55
55
 
56
- export interface LeadsPublicApiGetLeadRequest {
56
+ export interface LeadsPublicApiGetLeadStatusRequest {
57
57
  leadId: string;
58
58
  }
59
59
 
60
- export interface LeadsPublicApiGetLeadStatusRequest {
60
+ export interface LeadsPublicApiGetLead0Request {
61
61
  leadId: string;
62
62
  }
63
63
 
@@ -119,11 +119,11 @@ export class LeadsPublicApi extends runtime.BaseAPI {
119
119
  /**
120
120
  *
121
121
  */
122
- async getLeadRaw(requestParameters: LeadsPublicApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicLeadDto>> {
122
+ async getLeadStatusRaw(requestParameters: LeadsPublicApiGetLeadStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadStatusDto>> {
123
123
  if (requestParameters['leadId'] == null) {
124
124
  throw new runtime.RequiredError(
125
125
  'leadId',
126
- 'Required parameter "leadId" was null or undefined when calling getLead().'
126
+ 'Required parameter "leadId" was null or undefined when calling getLeadStatus().'
127
127
  );
128
128
  }
129
129
 
@@ -132,31 +132,31 @@ export class LeadsPublicApi extends runtime.BaseAPI {
132
132
  const headerParameters: runtime.HTTPHeaders = {};
133
133
 
134
134
  const response = await this.request({
135
- path: `/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
135
+ path: `/leads/{leadId}/status`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
136
136
  method: 'GET',
137
137
  headers: headerParameters,
138
138
  query: queryParameters,
139
139
  }, initOverrides);
140
140
 
141
- return new runtime.JSONApiResponse(response, (jsonValue) => PublicLeadDtoFromJSON(jsonValue));
141
+ return new runtime.JSONApiResponse(response, (jsonValue) => LeadStatusDtoFromJSON(jsonValue));
142
142
  }
143
143
 
144
144
  /**
145
145
  *
146
146
  */
147
- async getLead(requestParameters: LeadsPublicApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicLeadDto> {
148
- const response = await this.getLeadRaw(requestParameters, initOverrides);
147
+ async getLeadStatus(requestParameters: LeadsPublicApiGetLeadStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadStatusDto> {
148
+ const response = await this.getLeadStatusRaw(requestParameters, initOverrides);
149
149
  return await response.value();
150
150
  }
151
151
 
152
152
  /**
153
153
  *
154
154
  */
155
- async getLeadStatusRaw(requestParameters: LeadsPublicApiGetLeadStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadStatusDto>> {
155
+ async getLeadRaw(requestParameters: LeadsPublicApiGetLead0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicLeadDto>> {
156
156
  if (requestParameters['leadId'] == null) {
157
157
  throw new runtime.RequiredError(
158
158
  'leadId',
159
- 'Required parameter "leadId" was null or undefined when calling getLeadStatus().'
159
+ 'Required parameter "leadId" was null or undefined when calling getLead().'
160
160
  );
161
161
  }
162
162
 
@@ -165,20 +165,20 @@ export class LeadsPublicApi extends runtime.BaseAPI {
165
165
  const headerParameters: runtime.HTTPHeaders = {};
166
166
 
167
167
  const response = await this.request({
168
- path: `/leads/{leadId}/status`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
168
+ path: `/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
169
169
  method: 'GET',
170
170
  headers: headerParameters,
171
171
  query: queryParameters,
172
172
  }, initOverrides);
173
173
 
174
- return new runtime.JSONApiResponse(response, (jsonValue) => LeadStatusDtoFromJSON(jsonValue));
174
+ return new runtime.JSONApiResponse(response, (jsonValue) => PublicLeadDtoFromJSON(jsonValue));
175
175
  }
176
176
 
177
177
  /**
178
178
  *
179
179
  */
180
- async getLeadStatus(requestParameters: LeadsPublicApiGetLeadStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadStatusDto> {
181
- const response = await this.getLeadStatusRaw(requestParameters, initOverrides);
180
+ async getLead(requestParameters: LeadsPublicApiGetLead0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicLeadDto> {
181
+ const response = await this.getLeadRaw(requestParameters, initOverrides);
182
182
  return await response.value();
183
183
  }
184
184
 
@@ -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
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ List200Response2,
19
+ ThrottlerException,
20
+ ValidationException,
21
+ } from '../models/index';
22
+ import {
23
+ List200Response2FromJSON,
24
+ List200Response2ToJSON,
25
+ ThrottlerExceptionFromJSON,
26
+ ThrottlerExceptionToJSON,
27
+ ValidationExceptionFromJSON,
28
+ ValidationExceptionToJSON,
29
+ } from '../models/index';
30
+
31
+ export interface TasksApiList1Request {
32
+ filter?: object;
33
+ page?: number;
34
+ limit?: number;
35
+ sortBy?: Array<string>;
36
+ }
37
+
38
+ /**
39
+ *
40
+ */
41
+ export class TasksApi extends runtime.BaseAPI {
42
+
43
+ /**
44
+ *
45
+ */
46
+ async listRaw(requestParameters: TasksApiList1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response2>> {
47
+ const queryParameters: any = {};
48
+
49
+ if (requestParameters['filter'] != null) {
50
+ queryParameters['filter'] = requestParameters['filter'];
51
+ }
52
+
53
+ if (requestParameters['page'] != null) {
54
+ queryParameters['page'] = requestParameters['page'];
55
+ }
56
+
57
+ if (requestParameters['limit'] != null) {
58
+ queryParameters['limit'] = requestParameters['limit'];
59
+ }
60
+
61
+ if (requestParameters['sortBy'] != null) {
62
+ queryParameters['sortBy'] = requestParameters['sortBy'];
63
+ }
64
+
65
+ const headerParameters: runtime.HTTPHeaders = {};
66
+
67
+ if (this.configuration && this.configuration.accessToken) {
68
+ const token = this.configuration.accessToken;
69
+ const tokenString = await token("bearer", []);
70
+
71
+ if (tokenString) {
72
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
73
+ }
74
+ }
75
+ const response = await this.request({
76
+ path: `/private/tasks`,
77
+ method: 'GET',
78
+ headers: headerParameters,
79
+ query: queryParameters,
80
+ }, initOverrides);
81
+
82
+ return new runtime.JSONApiResponse(response, (jsonValue) => List200Response2FromJSON(jsonValue));
83
+ }
84
+
85
+ /**
86
+ *
87
+ */
88
+ async list(requestParameters: TasksApiList1Request = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response2> {
89
+ const response = await this.listRaw(requestParameters, initOverrides);
90
+ return await response.value();
91
+ }
92
+
93
+ }