@randock/nameshift-api-client 0.0.142 → 0.0.143
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.
- package/.openapi-generator/FILES +5 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/dist/apis/BuyersApi.d.ts +3 -3
- package/dist/apis/DomainsApi.d.ts +3 -3
- package/dist/apis/InvoicesApi.d.ts +3 -3
- package/dist/apis/LeadsPublicApi.d.ts +6 -6
- package/dist/apis/LeadsPublicApi.js +12 -12
- package/dist/apis/TasksApi.d.ts +32 -0
- package/dist/apis/TasksApi.js +143 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/IntersectionTaskListTaskDto.d.ts +81 -0
- package/dist/models/IntersectionTaskListTaskDto.js +89 -0
- package/dist/models/List200Response2.d.ts +47 -0
- package/dist/models/List200Response2.js +62 -0
- package/dist/models/TaskListDomainDto.d.ts +44 -0
- package/dist/models/TaskListDomainDto.js +59 -0
- package/dist/models/TaskListLeadDto.d.ts +60 -0
- package/dist/models/TaskListLeadDto.js +73 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +3 -3
- package/src/apis/DomainsApi.ts +3 -3
- package/src/apis/InvoicesApi.ts +3 -3
- package/src/apis/LeadsPublicApi.ts +14 -14
- package/src/apis/TasksApi.ts +93 -0
- package/src/apis/index.ts +1 -0
- package/src/models/IntersectionTaskListTaskDto.ts +147 -0
- package/src/models/List200Response2.ts +106 -0
- package/src/models/TaskListDomainDto.ts +84 -0
- package/src/models/TaskListLeadDto.ts +113 -0
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -15,6 +15,7 @@ src/apis/LeadsApi.ts
|
|
|
15
15
|
src/apis/LeadsPublicApi.ts
|
|
16
16
|
src/apis/OrdersPublicApi.ts
|
|
17
17
|
src/apis/StripePublicApi.ts
|
|
18
|
+
src/apis/TasksApi.ts
|
|
18
19
|
src/apis/UsersApi.ts
|
|
19
20
|
src/apis/UsersPublicApi.ts
|
|
20
21
|
src/apis/index.ts
|
|
@@ -85,6 +86,7 @@ src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts
|
|
|
85
86
|
src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts
|
|
86
87
|
src/models/IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto.ts
|
|
87
88
|
src/models/IntersectionLeadDtoWithListFieldsDto.ts
|
|
89
|
+
src/models/IntersectionTaskListTaskDto.ts
|
|
88
90
|
src/models/InvoiceDomainDto.ts
|
|
89
91
|
src/models/InvoiceDto.ts
|
|
90
92
|
src/models/InvoiceItemDto.ts
|
|
@@ -97,6 +99,7 @@ src/models/LeadMessageDto.ts
|
|
|
97
99
|
src/models/LeadStatusDto.ts
|
|
98
100
|
src/models/List200Response.ts
|
|
99
101
|
src/models/List200Response1.ts
|
|
102
|
+
src/models/List200Response2.ts
|
|
100
103
|
src/models/ListAccountDto.ts
|
|
101
104
|
src/models/ListAccounts200Response.ts
|
|
102
105
|
src/models/ListLeadMessagesDto.ts
|
|
@@ -136,6 +139,8 @@ src/models/SetDomainTransferConfirmationInput.ts
|
|
|
136
139
|
src/models/SetNewPasswordInput.ts
|
|
137
140
|
src/models/StoreBuyerLocaleInput.ts
|
|
138
141
|
src/models/StoreUserLocaleInput.ts
|
|
142
|
+
src/models/TaskListDomainDto.ts
|
|
143
|
+
src/models/TaskListLeadDto.ts
|
|
139
144
|
src/models/ThrottlerException.ts
|
|
140
145
|
src/models/UpdateAccountBillingInformationInput.ts
|
|
141
146
|
src/models/UpdateDomainInput.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.10.0-SNAPSHOT
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.143
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.143 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
38e0f8680859734c530a61849e69a06d78f68f7c6d7a4b535fc87ade0f5f30cc1b619f909dd3ed970c7065835a6081cb
|
package/dist/apis/BuyersApi.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export interface BuyersApiPutBuyerOfferRequest {
|
|
|
60
60
|
leadId: string;
|
|
61
61
|
putBuyerLeadOfferInput: PutBuyerLeadOfferInput;
|
|
62
62
|
}
|
|
63
|
-
export interface
|
|
63
|
+
export interface BuyersApiSetLocale0Request {
|
|
64
64
|
storeBuyerLocaleInput: StoreBuyerLocaleInput;
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
@@ -174,9 +174,9 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
174
174
|
/**
|
|
175
175
|
*
|
|
176
176
|
*/
|
|
177
|
-
setLocaleRaw(requestParameters:
|
|
177
|
+
setLocaleRaw(requestParameters: BuyersApiSetLocale0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
178
178
|
/**
|
|
179
179
|
*
|
|
180
180
|
*/
|
|
181
|
-
setLocale(requestParameters:
|
|
181
|
+
setLocale(requestParameters: BuyersApiSetLocale0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
182
182
|
}
|
|
@@ -39,7 +39,7 @@ export interface DomainsApiGetDomainRequest {
|
|
|
39
39
|
export interface DomainsApiGetDomainTransferRequest {
|
|
40
40
|
transferId: string;
|
|
41
41
|
}
|
|
42
|
-
export interface
|
|
42
|
+
export interface DomainsApiList0Request {
|
|
43
43
|
filter?: object;
|
|
44
44
|
page?: number;
|
|
45
45
|
limit?: number;
|
|
@@ -124,11 +124,11 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
124
124
|
/**
|
|
125
125
|
*
|
|
126
126
|
*/
|
|
127
|
-
listRaw(requestParameters:
|
|
127
|
+
listRaw(requestParameters: DomainsApiList0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response1>>;
|
|
128
128
|
/**
|
|
129
129
|
*
|
|
130
130
|
*/
|
|
131
|
-
list(requestParameters?:
|
|
131
|
+
list(requestParameters?: DomainsApiList0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response1>;
|
|
132
132
|
/**
|
|
133
133
|
*
|
|
134
134
|
*/
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { GetAllInvoices200Response } from '../models/index';
|
|
14
|
-
export interface
|
|
14
|
+
export interface InvoicesApiDownloadInvoice0Request {
|
|
15
15
|
invoiceId: string;
|
|
16
16
|
}
|
|
17
17
|
export interface InvoicesApiGetInvoicesRequest {
|
|
@@ -27,11 +27,11 @@ export declare class InvoicesApi extends runtime.BaseAPI {
|
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
|
-
downloadInvoiceRaw(requestParameters:
|
|
30
|
+
downloadInvoiceRaw(requestParameters: InvoicesApiDownloadInvoice0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
*/
|
|
34
|
-
downloadInvoice(requestParameters:
|
|
34
|
+
downloadInvoice(requestParameters: InvoicesApiDownloadInvoice0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
*/
|
|
@@ -14,10 +14,10 @@ import type { CreateLeadInput, LeadStatusDto, ObjectId, PublicLeadDto, UpdateLea
|
|
|
14
14
|
export interface LeadsPublicApiCreateLeadRequest {
|
|
15
15
|
createLeadInput: CreateLeadInput;
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
17
|
+
export interface LeadsPublicApiGetLeadStatusRequest {
|
|
18
18
|
leadId: string;
|
|
19
19
|
}
|
|
20
|
-
export interface
|
|
20
|
+
export interface LeadsPublicApiGetLead0Request {
|
|
21
21
|
leadId: string;
|
|
22
22
|
}
|
|
23
23
|
export interface LeadsPublicApiRequestVerificationCodeRequest {
|
|
@@ -46,19 +46,19 @@ export declare class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
getLeadStatusRaw(requestParameters: LeadsPublicApiGetLeadStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadStatusDto>>;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
getLeadStatus(requestParameters: LeadsPublicApiGetLeadStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadStatusDto>;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
getLeadRaw(requestParameters: LeadsPublicApiGetLead0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicLeadDto>>;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
getLead(requestParameters: LeadsPublicApiGetLead0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicLeadDto>;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
64
|
*/
|
|
@@ -124,26 +124,26 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
124
124
|
/**
|
|
125
125
|
*
|
|
126
126
|
*/
|
|
127
|
-
LeadsPublicApi.prototype.
|
|
127
|
+
LeadsPublicApi.prototype.getLeadStatusRaw = function (requestParameters, initOverrides) {
|
|
128
128
|
return __awaiter(this, void 0, void 0, function () {
|
|
129
129
|
var queryParameters, headerParameters, response;
|
|
130
130
|
return __generator(this, function (_a) {
|
|
131
131
|
switch (_a.label) {
|
|
132
132
|
case 0:
|
|
133
133
|
if (requestParameters['leadId'] == null) {
|
|
134
|
-
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling
|
|
134
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getLeadStatus().');
|
|
135
135
|
}
|
|
136
136
|
queryParameters = {};
|
|
137
137
|
headerParameters = {};
|
|
138
138
|
return [4 /*yield*/, this.request({
|
|
139
|
-
path: "/leads/{leadId}".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
139
|
+
path: "/leads/{leadId}/status".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
140
140
|
method: 'GET',
|
|
141
141
|
headers: headerParameters,
|
|
142
142
|
query: queryParameters,
|
|
143
143
|
}, initOverrides)];
|
|
144
144
|
case 1:
|
|
145
145
|
response = _a.sent();
|
|
146
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
146
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadStatusDtoFromJSON)(jsonValue); })];
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
149
|
});
|
|
@@ -151,12 +151,12 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
151
151
|
/**
|
|
152
152
|
*
|
|
153
153
|
*/
|
|
154
|
-
LeadsPublicApi.prototype.
|
|
154
|
+
LeadsPublicApi.prototype.getLeadStatus = function (requestParameters, initOverrides) {
|
|
155
155
|
return __awaiter(this, void 0, void 0, function () {
|
|
156
156
|
var response;
|
|
157
157
|
return __generator(this, function (_a) {
|
|
158
158
|
switch (_a.label) {
|
|
159
|
-
case 0: return [4 /*yield*/, this.
|
|
159
|
+
case 0: return [4 /*yield*/, this.getLeadStatusRaw(requestParameters, initOverrides)];
|
|
160
160
|
case 1:
|
|
161
161
|
response = _a.sent();
|
|
162
162
|
return [4 /*yield*/, response.value()];
|
|
@@ -168,26 +168,26 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
168
168
|
/**
|
|
169
169
|
*
|
|
170
170
|
*/
|
|
171
|
-
LeadsPublicApi.prototype.
|
|
171
|
+
LeadsPublicApi.prototype.getLeadRaw = function (requestParameters, initOverrides) {
|
|
172
172
|
return __awaiter(this, void 0, void 0, function () {
|
|
173
173
|
var queryParameters, headerParameters, response;
|
|
174
174
|
return __generator(this, function (_a) {
|
|
175
175
|
switch (_a.label) {
|
|
176
176
|
case 0:
|
|
177
177
|
if (requestParameters['leadId'] == null) {
|
|
178
|
-
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling
|
|
178
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getLead().');
|
|
179
179
|
}
|
|
180
180
|
queryParameters = {};
|
|
181
181
|
headerParameters = {};
|
|
182
182
|
return [4 /*yield*/, this.request({
|
|
183
|
-
path: "/leads/{leadId}
|
|
183
|
+
path: "/leads/{leadId}".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
184
184
|
method: 'GET',
|
|
185
185
|
headers: headerParameters,
|
|
186
186
|
query: queryParameters,
|
|
187
187
|
}, initOverrides)];
|
|
188
188
|
case 1:
|
|
189
189
|
response = _a.sent();
|
|
190
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
190
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PublicLeadDtoFromJSON)(jsonValue); })];
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
193
|
});
|
|
@@ -195,12 +195,12 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
195
195
|
/**
|
|
196
196
|
*
|
|
197
197
|
*/
|
|
198
|
-
LeadsPublicApi.prototype.
|
|
198
|
+
LeadsPublicApi.prototype.getLead = function (requestParameters, initOverrides) {
|
|
199
199
|
return __awaiter(this, void 0, void 0, function () {
|
|
200
200
|
var response;
|
|
201
201
|
return __generator(this, function (_a) {
|
|
202
202
|
switch (_a.label) {
|
|
203
|
-
case 0: return [4 /*yield*/, this.
|
|
203
|
+
case 0: return [4 /*yield*/, this.getLeadRaw(requestParameters, initOverrides)];
|
|
204
204
|
case 1:
|
|
205
205
|
response = _a.sent();
|
|
206
206
|
return [4 /*yield*/, response.value()];
|
|
@@ -0,0 +1,32 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { List200Response2 } from '../models/index';
|
|
14
|
+
export interface TasksApiList1Request {
|
|
15
|
+
filter?: object;
|
|
16
|
+
page?: number;
|
|
17
|
+
limit?: number;
|
|
18
|
+
sortBy?: Array<string>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare class TasksApi extends runtime.BaseAPI {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
listRaw(requestParameters: TasksApiList1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response2>>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
list(requestParameters?: TasksApiList1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response2>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.TasksApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var TasksApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(TasksApi, _super);
|
|
75
|
+
function TasksApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
TasksApi.prototype.listRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
queryParameters = {};
|
|
88
|
+
if (requestParameters['filter'] != null) {
|
|
89
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
90
|
+
}
|
|
91
|
+
if (requestParameters['page'] != null) {
|
|
92
|
+
queryParameters['page'] = requestParameters['page'];
|
|
93
|
+
}
|
|
94
|
+
if (requestParameters['limit'] != null) {
|
|
95
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
96
|
+
}
|
|
97
|
+
if (requestParameters['sortBy'] != null) {
|
|
98
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
99
|
+
}
|
|
100
|
+
headerParameters = {};
|
|
101
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
102
|
+
token = this.configuration.accessToken;
|
|
103
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
104
|
+
case 1:
|
|
105
|
+
tokenString = _a.sent();
|
|
106
|
+
if (tokenString) {
|
|
107
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
108
|
+
}
|
|
109
|
+
_a.label = 2;
|
|
110
|
+
case 2: return [4 /*yield*/, this.request({
|
|
111
|
+
path: "/private/tasks",
|
|
112
|
+
method: 'GET',
|
|
113
|
+
headers: headerParameters,
|
|
114
|
+
query: queryParameters,
|
|
115
|
+
}, initOverrides)];
|
|
116
|
+
case 3:
|
|
117
|
+
response = _a.sent();
|
|
118
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.List200Response2FromJSON)(jsonValue); })];
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
TasksApi.prototype.list = function () {
|
|
127
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
128
|
+
var response;
|
|
129
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
130
|
+
return __generator(this, function (_a) {
|
|
131
|
+
switch (_a.label) {
|
|
132
|
+
case 0: return [4 /*yield*/, this.listRaw(requestParameters, initOverrides)];
|
|
133
|
+
case 1:
|
|
134
|
+
response = _a.sent();
|
|
135
|
+
return [4 /*yield*/, response.value()];
|
|
136
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
return TasksApi;
|
|
142
|
+
}(runtime.BaseAPI));
|
|
143
|
+
exports.TasksApi = TasksApi;
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -28,5 +28,6 @@ __exportStar(require("./LeadsApi"), exports);
|
|
|
28
28
|
__exportStar(require("./LeadsPublicApi"), exports);
|
|
29
29
|
__exportStar(require("./OrdersPublicApi"), exports);
|
|
30
30
|
__exportStar(require("./StripePublicApi"), exports);
|
|
31
|
+
__exportStar(require("./TasksApi"), exports);
|
|
31
32
|
__exportStar(require("./UsersApi"), exports);
|
|
32
33
|
__exportStar(require("./UsersPublicApi"), exports);
|
|
@@ -0,0 +1,81 @@
|
|
|
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 { TaskListLeadDto } from './TaskListLeadDto';
|
|
13
|
+
import type { TaskListDomainDto } from './TaskListDomainDto';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface IntersectionTaskListTaskDto
|
|
18
|
+
*/
|
|
19
|
+
export interface IntersectionTaskListTaskDto {
|
|
20
|
+
/**
|
|
21
|
+
* The uuid for this domain.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof IntersectionTaskListTaskDto
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* The date the task was updated.
|
|
28
|
+
* @type {Date}
|
|
29
|
+
* @memberof IntersectionTaskListTaskDto
|
|
30
|
+
*/
|
|
31
|
+
updatedAt: Date;
|
|
32
|
+
/**
|
|
33
|
+
* The priority.
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof IntersectionTaskListTaskDto
|
|
36
|
+
*/
|
|
37
|
+
priority: IntersectionTaskListTaskDtoPriorityEnum;
|
|
38
|
+
/**
|
|
39
|
+
* The type of task.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof IntersectionTaskListTaskDto
|
|
42
|
+
*/
|
|
43
|
+
type: IntersectionTaskListTaskDtoTypeEnum;
|
|
44
|
+
/**
|
|
45
|
+
* Domain data this task belongs to.
|
|
46
|
+
* @type {TaskListDomainDto}
|
|
47
|
+
* @memberof IntersectionTaskListTaskDto
|
|
48
|
+
*/
|
|
49
|
+
domain: TaskListDomainDto | null;
|
|
50
|
+
/**
|
|
51
|
+
* Domain data this task belongs to.
|
|
52
|
+
* @type {TaskListLeadDto}
|
|
53
|
+
* @memberof IntersectionTaskListTaskDto
|
|
54
|
+
*/
|
|
55
|
+
lead: TaskListLeadDto | null;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const IntersectionTaskListTaskDtoPriorityEnum: {
|
|
61
|
+
readonly NUMBER_1: 1;
|
|
62
|
+
readonly NUMBER_2: 2;
|
|
63
|
+
readonly NUMBER_3: 3;
|
|
64
|
+
};
|
|
65
|
+
export type IntersectionTaskListTaskDtoPriorityEnum = typeof IntersectionTaskListTaskDtoPriorityEnum[keyof typeof IntersectionTaskListTaskDtoPriorityEnum];
|
|
66
|
+
/**
|
|
67
|
+
* @export
|
|
68
|
+
*/
|
|
69
|
+
export declare const IntersectionTaskListTaskDtoTypeEnum: {
|
|
70
|
+
readonly LEAD: "lead";
|
|
71
|
+
readonly AUTH_CODE: "auth_code";
|
|
72
|
+
};
|
|
73
|
+
export type IntersectionTaskListTaskDtoTypeEnum = typeof IntersectionTaskListTaskDtoTypeEnum[keyof typeof IntersectionTaskListTaskDtoTypeEnum];
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the IntersectionTaskListTaskDto interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfIntersectionTaskListTaskDto(value: object): value is IntersectionTaskListTaskDto;
|
|
78
|
+
export declare function IntersectionTaskListTaskDtoFromJSON(json: any): IntersectionTaskListTaskDto;
|
|
79
|
+
export declare function IntersectionTaskListTaskDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionTaskListTaskDto;
|
|
80
|
+
export declare function IntersectionTaskListTaskDtoToJSON(json: any): IntersectionTaskListTaskDto;
|
|
81
|
+
export declare function IntersectionTaskListTaskDtoToJSONTyped(value?: IntersectionTaskListTaskDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,89 @@
|
|
|
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.IntersectionTaskListTaskDtoTypeEnum = exports.IntersectionTaskListTaskDtoPriorityEnum = void 0;
|
|
17
|
+
exports.instanceOfIntersectionTaskListTaskDto = instanceOfIntersectionTaskListTaskDto;
|
|
18
|
+
exports.IntersectionTaskListTaskDtoFromJSON = IntersectionTaskListTaskDtoFromJSON;
|
|
19
|
+
exports.IntersectionTaskListTaskDtoFromJSONTyped = IntersectionTaskListTaskDtoFromJSONTyped;
|
|
20
|
+
exports.IntersectionTaskListTaskDtoToJSON = IntersectionTaskListTaskDtoToJSON;
|
|
21
|
+
exports.IntersectionTaskListTaskDtoToJSONTyped = IntersectionTaskListTaskDtoToJSONTyped;
|
|
22
|
+
var TaskListLeadDto_1 = require("./TaskListLeadDto");
|
|
23
|
+
var TaskListDomainDto_1 = require("./TaskListDomainDto");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.IntersectionTaskListTaskDtoPriorityEnum = {
|
|
28
|
+
NUMBER_1: 1,
|
|
29
|
+
NUMBER_2: 2,
|
|
30
|
+
NUMBER_3: 3
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
exports.IntersectionTaskListTaskDtoTypeEnum = {
|
|
36
|
+
LEAD: 'lead',
|
|
37
|
+
AUTH_CODE: 'auth_code'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the IntersectionTaskListTaskDto interface.
|
|
41
|
+
*/
|
|
42
|
+
function instanceOfIntersectionTaskListTaskDto(value) {
|
|
43
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('priority' in value) || value['priority'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('domain' in value) || value['domain'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('lead' in value) || value['lead'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
function IntersectionTaskListTaskDtoFromJSON(json) {
|
|
58
|
+
return IntersectionTaskListTaskDtoFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function IntersectionTaskListTaskDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': json['id'],
|
|
66
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
67
|
+
'priority': json['priority'],
|
|
68
|
+
'type': json['type'],
|
|
69
|
+
'domain': (0, TaskListDomainDto_1.TaskListDomainDtoFromJSON)(json['domain']),
|
|
70
|
+
'lead': (0, TaskListLeadDto_1.TaskListLeadDtoFromJSON)(json['lead']),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function IntersectionTaskListTaskDtoToJSON(json) {
|
|
74
|
+
return IntersectionTaskListTaskDtoToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
function IntersectionTaskListTaskDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
77
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
'id': value['id'],
|
|
83
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
84
|
+
'priority': value['priority'],
|
|
85
|
+
'type': value['type'],
|
|
86
|
+
'domain': (0, TaskListDomainDto_1.TaskListDomainDtoToJSON)(value['domain']),
|
|
87
|
+
'lead': (0, TaskListLeadDto_1.TaskListLeadDtoToJSON)(value['lead']),
|
|
88
|
+
};
|
|
89
|
+
}
|