@randock/nameshift-api-client 0.0.195 → 0.0.197

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.
@@ -16,6 +16,7 @@ src/apis/LeadsApi.ts
16
16
  src/apis/LeadsPublicApi.ts
17
17
  src/apis/OrdersPublicApi.ts
18
18
  src/apis/StripePublicApi.ts
19
+ src/apis/SubscriptionsApi.ts
19
20
  src/apis/SubscriptionsPublicApi.ts
20
21
  src/apis/TasksApi.ts
21
22
  src/apis/UsersApi.ts
@@ -97,6 +98,7 @@ src/models/GetAllInvoices200Response.ts
97
98
  src/models/GetAllOrders200Response.ts
98
99
  src/models/GetAllOwnedDomains200Response.ts
99
100
  src/models/GetAllSubscriptions200Response.ts
101
+ src/models/GetAllSubscriptions200Response1.ts
100
102
  src/models/GetBuyerLeads200Response.ts
101
103
  src/models/GetBuyerTransfers200Response.ts
102
104
  src/models/HttpException.ts
@@ -166,6 +168,8 @@ src/models/SellerDomainTransferListItemDomainDto.ts
166
168
  src/models/SellerDomainTransferListItemDto.ts
167
169
  src/models/SellerSecurityUserAccountDto.ts
168
170
  src/models/SellerSecurityUserDto.ts
171
+ src/models/SellerSubscriptionListItemDto.ts
172
+ src/models/SellerSubscriptionListItemDtoDomainInformation.ts
169
173
  src/models/SetDomainTransferConfirmationInput.ts
170
174
  src/models/SetNewPasswordInput.ts
171
175
  src/models/StoreBuyerLocaleInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.195
1
+ ## @randock/nameshift-api-client@0.0.197
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.195 --save
39
+ npm install @randock/nameshift-api-client@0.0.197 --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
- 5ed41c6161ed305cc31f3195dcd026e6ab00504d687ebc3a69024ead96822bfad4e9d9d052a87a9c35f49eb1bf8ec2d0
47
+ 6f28801799fb1f9518d3c83a78fd2ea7fb7b8807a3ed333f0167418e806eb3a69ca6a1d242c433a3012afb165495c8f3
@@ -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 { GetAllSubscriptions200Response1 } from '../models/index';
14
+ export interface SubscriptionsApiGetAllSubscriptionsRequest {
15
+ filter?: object;
16
+ page?: number;
17
+ limit?: number;
18
+ sortBy?: Array<string>;
19
+ }
20
+ /**
21
+ *
22
+ */
23
+ export declare class SubscriptionsApi extends runtime.BaseAPI {
24
+ /**
25
+ *
26
+ */
27
+ getAllSubscriptionsRaw(requestParameters: SubscriptionsApiGetAllSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllSubscriptions200Response1>>;
28
+ /**
29
+ *
30
+ */
31
+ getAllSubscriptions(requestParameters?: SubscriptionsApiGetAllSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllSubscriptions200Response1>;
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.SubscriptionsApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var SubscriptionsApi = /** @class */ (function (_super) {
74
+ __extends(SubscriptionsApi, _super);
75
+ function SubscriptionsApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ *
80
+ */
81
+ SubscriptionsApi.prototype.getAllSubscriptionsRaw = 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/subscriptions",
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.GetAllSubscriptions200Response1FromJSON)(jsonValue); })];
119
+ }
120
+ });
121
+ });
122
+ };
123
+ /**
124
+ *
125
+ */
126
+ SubscriptionsApi.prototype.getAllSubscriptions = 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.getAllSubscriptionsRaw(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 SubscriptionsApi;
142
+ }(runtime.BaseAPI));
143
+ exports.SubscriptionsApi = SubscriptionsApi;
@@ -11,6 +11,7 @@ export * from './LeadsApi';
11
11
  export * from './LeadsPublicApi';
12
12
  export * from './OrdersPublicApi';
13
13
  export * from './StripePublicApi';
14
+ export * from './SubscriptionsApi';
14
15
  export * from './SubscriptionsPublicApi';
15
16
  export * from './TasksApi';
16
17
  export * from './UsersApi';
@@ -29,6 +29,7 @@ __exportStar(require("./LeadsApi"), exports);
29
29
  __exportStar(require("./LeadsPublicApi"), exports);
30
30
  __exportStar(require("./OrdersPublicApi"), exports);
31
31
  __exportStar(require("./StripePublicApi"), exports);
32
+ __exportStar(require("./SubscriptionsApi"), exports);
32
33
  __exportStar(require("./SubscriptionsPublicApi"), exports);
33
34
  __exportStar(require("./TasksApi"), exports);
34
35
  __exportStar(require("./UsersApi"), exports);
@@ -30,6 +30,7 @@ export declare const ConcreteDomainTransferTaskDataRequirementsEnum: {
30
30
  readonly BUYER_CONFIRMATION: "buyer_confirmation";
31
31
  readonly OWNED_DOMAIN: "owned_domain";
32
32
  readonly OWNED_DOMAIN_TAKEN_BY_BUYER: "owned_domain_taken_by_buyer";
33
+ readonly OWNED_DOMAIN_TAKEN_BY_SELLER: "owned_domain_taken_by_seller";
33
34
  };
34
35
  export type ConcreteDomainTransferTaskDataRequirementsEnum = typeof ConcreteDomainTransferTaskDataRequirementsEnum[keyof typeof ConcreteDomainTransferTaskDataRequirementsEnum];
35
36
  /**
@@ -26,7 +26,8 @@ exports.ConcreteDomainTransferTaskDataRequirementsEnum = {
26
26
  AUTH_CODE: 'auth_code',
27
27
  BUYER_CONFIRMATION: 'buyer_confirmation',
28
28
  OWNED_DOMAIN: 'owned_domain',
29
- OWNED_DOMAIN_TAKEN_BY_BUYER: 'owned_domain_taken_by_buyer'
29
+ OWNED_DOMAIN_TAKEN_BY_BUYER: 'owned_domain_taken_by_buyer',
30
+ OWNED_DOMAIN_TAKEN_BY_SELLER: 'owned_domain_taken_by_seller'
30
31
  };
31
32
  /**
32
33
  * Check if a given object implements the ConcreteDomainTransferTaskData interface.
@@ -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 { SellerSubscriptionListItemDto } from './SellerSubscriptionListItemDto';
14
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface GetAllSubscriptions200Response1
19
+ */
20
+ export interface GetAllSubscriptions200Response1 {
21
+ /**
22
+ *
23
+ * @type {Array<SellerSubscriptionListItemDto>}
24
+ * @memberof GetAllSubscriptions200Response1
25
+ */
26
+ data: Array<SellerSubscriptionListItemDto>;
27
+ /**
28
+ *
29
+ * @type {PaginateResponseMeta}
30
+ * @memberof GetAllSubscriptions200Response1
31
+ */
32
+ meta: PaginateResponseMeta;
33
+ /**
34
+ *
35
+ * @type {PaginateResponseLinks}
36
+ * @memberof GetAllSubscriptions200Response1
37
+ */
38
+ links: PaginateResponseLinks;
39
+ }
40
+ /**
41
+ * Check if a given object implements the GetAllSubscriptions200Response1 interface.
42
+ */
43
+ export declare function instanceOfGetAllSubscriptions200Response1(value: object): value is GetAllSubscriptions200Response1;
44
+ export declare function GetAllSubscriptions200Response1FromJSON(json: any): GetAllSubscriptions200Response1;
45
+ export declare function GetAllSubscriptions200Response1FromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllSubscriptions200Response1;
46
+ export declare function GetAllSubscriptions200Response1ToJSON(json: any): GetAllSubscriptions200Response1;
47
+ export declare function GetAllSubscriptions200Response1ToJSONTyped(value?: GetAllSubscriptions200Response1 | 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.instanceOfGetAllSubscriptions200Response1 = instanceOfGetAllSubscriptions200Response1;
17
+ exports.GetAllSubscriptions200Response1FromJSON = GetAllSubscriptions200Response1FromJSON;
18
+ exports.GetAllSubscriptions200Response1FromJSONTyped = GetAllSubscriptions200Response1FromJSONTyped;
19
+ exports.GetAllSubscriptions200Response1ToJSON = GetAllSubscriptions200Response1ToJSON;
20
+ exports.GetAllSubscriptions200Response1ToJSONTyped = GetAllSubscriptions200Response1ToJSONTyped;
21
+ var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
22
+ var SellerSubscriptionListItemDto_1 = require("./SellerSubscriptionListItemDto");
23
+ var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
24
+ /**
25
+ * Check if a given object implements the GetAllSubscriptions200Response1 interface.
26
+ */
27
+ function instanceOfGetAllSubscriptions200Response1(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 GetAllSubscriptions200Response1FromJSON(json) {
37
+ return GetAllSubscriptions200Response1FromJSONTyped(json, false);
38
+ }
39
+ function GetAllSubscriptions200Response1FromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'data': (json['data'].map(SellerSubscriptionListItemDto_1.SellerSubscriptionListItemDtoFromJSON)),
45
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
46
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
47
+ };
48
+ }
49
+ function GetAllSubscriptions200Response1ToJSON(json) {
50
+ return GetAllSubscriptions200Response1ToJSONTyped(json, false);
51
+ }
52
+ function GetAllSubscriptions200Response1ToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'data': (value['data'].map(SellerSubscriptionListItemDto_1.SellerSubscriptionListItemDtoToJSON)),
59
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
60
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
61
+ };
62
+ }
@@ -0,0 +1,89 @@
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 { SellerSubscriptionListItemDtoDomainInformation } from './SellerSubscriptionListItemDtoDomainInformation';
13
+ import type { MoneyDto } from './MoneyDto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface SellerSubscriptionListItemDto
18
+ */
19
+ export interface SellerSubscriptionListItemDto {
20
+ /**
21
+ * The subscription ID
22
+ * @type {object}
23
+ * @memberof SellerSubscriptionListItemDto
24
+ */
25
+ id: object;
26
+ /**
27
+ * The subscription status
28
+ * @type {string}
29
+ * @memberof SellerSubscriptionListItemDto
30
+ */
31
+ status: SellerSubscriptionListItemDtoStatusEnum;
32
+ /**
33
+ * The subscription type
34
+ * @type {string}
35
+ * @memberof SellerSubscriptionListItemDto
36
+ */
37
+ type: SellerSubscriptionListItemDtoTypeEnum;
38
+ /**
39
+ * The subscription start date
40
+ * @type {Date}
41
+ * @memberof SellerSubscriptionListItemDto
42
+ */
43
+ startedAt: Date | null;
44
+ /**
45
+ * The subscription creation date
46
+ * @type {Date}
47
+ * @memberof SellerSubscriptionListItemDto
48
+ */
49
+ createdAt: Date;
50
+ /**
51
+ * The subscription domain information
52
+ * @type {SellerSubscriptionListItemDtoDomainInformation}
53
+ * @memberof SellerSubscriptionListItemDto
54
+ */
55
+ domain: SellerSubscriptionListItemDtoDomainInformation;
56
+ /**
57
+ * The subscription base price
58
+ * @type {MoneyDto}
59
+ * @memberof SellerSubscriptionListItemDto
60
+ */
61
+ basePrice: MoneyDto | null;
62
+ }
63
+ /**
64
+ * @export
65
+ */
66
+ export declare const SellerSubscriptionListItemDtoStatusEnum: {
67
+ readonly DRAFT: "draft";
68
+ readonly ACTIVE: "active";
69
+ readonly PAUSED: "paused";
70
+ readonly CANCELLED: "cancelled";
71
+ readonly FINISHED: "finished";
72
+ };
73
+ export type SellerSubscriptionListItemDtoStatusEnum = typeof SellerSubscriptionListItemDtoStatusEnum[keyof typeof SellerSubscriptionListItemDtoStatusEnum];
74
+ /**
75
+ * @export
76
+ */
77
+ export declare const SellerSubscriptionListItemDtoTypeEnum: {
78
+ readonly RENT: "rent";
79
+ readonly LEASE_TO_OWN: "lease_to_own";
80
+ };
81
+ export type SellerSubscriptionListItemDtoTypeEnum = typeof SellerSubscriptionListItemDtoTypeEnum[keyof typeof SellerSubscriptionListItemDtoTypeEnum];
82
+ /**
83
+ * Check if a given object implements the SellerSubscriptionListItemDto interface.
84
+ */
85
+ export declare function instanceOfSellerSubscriptionListItemDto(value: object): value is SellerSubscriptionListItemDto;
86
+ export declare function SellerSubscriptionListItemDtoFromJSON(json: any): SellerSubscriptionListItemDto;
87
+ export declare function SellerSubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSubscriptionListItemDto;
88
+ export declare function SellerSubscriptionListItemDtoToJSON(json: any): SellerSubscriptionListItemDto;
89
+ export declare function SellerSubscriptionListItemDtoToJSONTyped(value?: SellerSubscriptionListItemDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,95 @@
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.SellerSubscriptionListItemDtoTypeEnum = exports.SellerSubscriptionListItemDtoStatusEnum = void 0;
17
+ exports.instanceOfSellerSubscriptionListItemDto = instanceOfSellerSubscriptionListItemDto;
18
+ exports.SellerSubscriptionListItemDtoFromJSON = SellerSubscriptionListItemDtoFromJSON;
19
+ exports.SellerSubscriptionListItemDtoFromJSONTyped = SellerSubscriptionListItemDtoFromJSONTyped;
20
+ exports.SellerSubscriptionListItemDtoToJSON = SellerSubscriptionListItemDtoToJSON;
21
+ exports.SellerSubscriptionListItemDtoToJSONTyped = SellerSubscriptionListItemDtoToJSONTyped;
22
+ var SellerSubscriptionListItemDtoDomainInformation_1 = require("./SellerSubscriptionListItemDtoDomainInformation");
23
+ var MoneyDto_1 = require("./MoneyDto");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.SellerSubscriptionListItemDtoStatusEnum = {
28
+ DRAFT: 'draft',
29
+ ACTIVE: 'active',
30
+ PAUSED: 'paused',
31
+ CANCELLED: 'cancelled',
32
+ FINISHED: 'finished'
33
+ };
34
+ /**
35
+ * @export
36
+ */
37
+ exports.SellerSubscriptionListItemDtoTypeEnum = {
38
+ RENT: 'rent',
39
+ LEASE_TO_OWN: 'lease_to_own'
40
+ };
41
+ /**
42
+ * Check if a given object implements the SellerSubscriptionListItemDto interface.
43
+ */
44
+ function instanceOfSellerSubscriptionListItemDto(value) {
45
+ if (!('id' in value) || value['id'] === undefined)
46
+ return false;
47
+ if (!('status' in value) || value['status'] === undefined)
48
+ return false;
49
+ if (!('type' in value) || value['type'] === undefined)
50
+ return false;
51
+ if (!('startedAt' in value) || value['startedAt'] === undefined)
52
+ return false;
53
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
54
+ return false;
55
+ if (!('domain' in value) || value['domain'] === undefined)
56
+ return false;
57
+ if (!('basePrice' in value) || value['basePrice'] === undefined)
58
+ return false;
59
+ return true;
60
+ }
61
+ function SellerSubscriptionListItemDtoFromJSON(json) {
62
+ return SellerSubscriptionListItemDtoFromJSONTyped(json, false);
63
+ }
64
+ function SellerSubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+ 'id': json['id'],
70
+ 'status': json['status'],
71
+ 'type': json['type'],
72
+ 'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
73
+ 'createdAt': (new Date(json['createdAt'])),
74
+ 'domain': (0, SellerSubscriptionListItemDtoDomainInformation_1.SellerSubscriptionListItemDtoDomainInformationFromJSON)(json['domain']),
75
+ 'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
76
+ };
77
+ }
78
+ function SellerSubscriptionListItemDtoToJSON(json) {
79
+ return SellerSubscriptionListItemDtoToJSONTyped(json, false);
80
+ }
81
+ function SellerSubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
82
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
83
+ if (value == null) {
84
+ return value;
85
+ }
86
+ return {
87
+ 'id': value['id'],
88
+ 'status': value['status'],
89
+ 'type': value['type'],
90
+ 'startedAt': (value['startedAt'] == null ? null : value['startedAt'].toISOString()),
91
+ 'createdAt': ((value['createdAt']).toISOString()),
92
+ 'domain': (0, SellerSubscriptionListItemDtoDomainInformation_1.SellerSubscriptionListItemDtoDomainInformationToJSON)(value['domain']),
93
+ 'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
94
+ };
95
+ }
@@ -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 SellerSubscriptionListItemDtoDomainInformation
16
+ */
17
+ export interface SellerSubscriptionListItemDtoDomainInformation {
18
+ /**
19
+ * The subscription domain TLD
20
+ * @type {string}
21
+ * @memberof SellerSubscriptionListItemDtoDomainInformation
22
+ */
23
+ tld: string;
24
+ /**
25
+ * The subscription domain name
26
+ * @type {string}
27
+ * @memberof SellerSubscriptionListItemDtoDomainInformation
28
+ */
29
+ name: string;
30
+ /**
31
+ * The subscription domain name
32
+ * @type {string}
33
+ * @memberof SellerSubscriptionListItemDtoDomainInformation
34
+ */
35
+ displayName: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the SellerSubscriptionListItemDtoDomainInformation interface.
39
+ */
40
+ export declare function instanceOfSellerSubscriptionListItemDtoDomainInformation(value: object): value is SellerSubscriptionListItemDtoDomainInformation;
41
+ export declare function SellerSubscriptionListItemDtoDomainInformationFromJSON(json: any): SellerSubscriptionListItemDtoDomainInformation;
42
+ export declare function SellerSubscriptionListItemDtoDomainInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSubscriptionListItemDtoDomainInformation;
43
+ export declare function SellerSubscriptionListItemDtoDomainInformationToJSON(json: any): SellerSubscriptionListItemDtoDomainInformation;
44
+ export declare function SellerSubscriptionListItemDtoDomainInformationToJSONTyped(value?: SellerSubscriptionListItemDtoDomainInformation | 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.instanceOfSellerSubscriptionListItemDtoDomainInformation = instanceOfSellerSubscriptionListItemDtoDomainInformation;
17
+ exports.SellerSubscriptionListItemDtoDomainInformationFromJSON = SellerSubscriptionListItemDtoDomainInformationFromJSON;
18
+ exports.SellerSubscriptionListItemDtoDomainInformationFromJSONTyped = SellerSubscriptionListItemDtoDomainInformationFromJSONTyped;
19
+ exports.SellerSubscriptionListItemDtoDomainInformationToJSON = SellerSubscriptionListItemDtoDomainInformationToJSON;
20
+ exports.SellerSubscriptionListItemDtoDomainInformationToJSONTyped = SellerSubscriptionListItemDtoDomainInformationToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SellerSubscriptionListItemDtoDomainInformation interface.
23
+ */
24
+ function instanceOfSellerSubscriptionListItemDtoDomainInformation(value) {
25
+ if (!('tld' in value) || value['tld'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('displayName' in value) || value['displayName'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function SellerSubscriptionListItemDtoDomainInformationFromJSON(json) {
34
+ return SellerSubscriptionListItemDtoDomainInformationFromJSONTyped(json, false);
35
+ }
36
+ function SellerSubscriptionListItemDtoDomainInformationFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'tld': json['tld'],
42
+ 'name': json['name'],
43
+ 'displayName': json['displayName'],
44
+ };
45
+ }
46
+ function SellerSubscriptionListItemDtoDomainInformationToJSON(json) {
47
+ return SellerSubscriptionListItemDtoDomainInformationToJSONTyped(json, false);
48
+ }
49
+ function SellerSubscriptionListItemDtoDomainInformationToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'tld': value['tld'],
56
+ 'name': value['name'],
57
+ 'displayName': value['displayName'],
58
+ };
59
+ }
@@ -73,6 +73,7 @@ export * from './GetAllInvoices200Response';
73
73
  export * from './GetAllOrders200Response';
74
74
  export * from './GetAllOwnedDomains200Response';
75
75
  export * from './GetAllSubscriptions200Response';
76
+ export * from './GetAllSubscriptions200Response1';
76
77
  export * from './GetBuyerLeads200Response';
77
78
  export * from './GetBuyerTransfers200Response';
78
79
  export * from './HttpException';
@@ -142,6 +143,8 @@ export * from './SellerDomainTransferListItemDomainDto';
142
143
  export * from './SellerDomainTransferListItemDto';
143
144
  export * from './SellerSecurityUserAccountDto';
144
145
  export * from './SellerSecurityUserDto';
146
+ export * from './SellerSubscriptionListItemDto';
147
+ export * from './SellerSubscriptionListItemDtoDomainInformation';
145
148
  export * from './SetDomainTransferConfirmationInput';
146
149
  export * from './SetNewPasswordInput';
147
150
  export * from './StoreBuyerLocaleInput';
@@ -91,6 +91,7 @@ __exportStar(require("./GetAllInvoices200Response"), exports);
91
91
  __exportStar(require("./GetAllOrders200Response"), exports);
92
92
  __exportStar(require("./GetAllOwnedDomains200Response"), exports);
93
93
  __exportStar(require("./GetAllSubscriptions200Response"), exports);
94
+ __exportStar(require("./GetAllSubscriptions200Response1"), exports);
94
95
  __exportStar(require("./GetBuyerLeads200Response"), exports);
95
96
  __exportStar(require("./GetBuyerTransfers200Response"), exports);
96
97
  __exportStar(require("./HttpException"), exports);
@@ -160,6 +161,8 @@ __exportStar(require("./SellerDomainTransferListItemDomainDto"), exports);
160
161
  __exportStar(require("./SellerDomainTransferListItemDto"), exports);
161
162
  __exportStar(require("./SellerSecurityUserAccountDto"), exports);
162
163
  __exportStar(require("./SellerSecurityUserDto"), exports);
164
+ __exportStar(require("./SellerSubscriptionListItemDto"), exports);
165
+ __exportStar(require("./SellerSubscriptionListItemDtoDomainInformation"), exports);
163
166
  __exportStar(require("./SetDomainTransferConfirmationInput"), exports);
164
167
  __exportStar(require("./SetNewPasswordInput"), exports);
165
168
  __exportStar(require("./StoreBuyerLocaleInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.195",
3
+ "version": "0.0.197",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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
+ GetAllSubscriptions200Response1,
19
+ ThrottlerException,
20
+ ValidationException,
21
+ } from '../models/index';
22
+ import {
23
+ GetAllSubscriptions200Response1FromJSON,
24
+ GetAllSubscriptions200Response1ToJSON,
25
+ ThrottlerExceptionFromJSON,
26
+ ThrottlerExceptionToJSON,
27
+ ValidationExceptionFromJSON,
28
+ ValidationExceptionToJSON,
29
+ } from '../models/index';
30
+
31
+ export interface SubscriptionsApiGetAllSubscriptionsRequest {
32
+ filter?: object;
33
+ page?: number;
34
+ limit?: number;
35
+ sortBy?: Array<string>;
36
+ }
37
+
38
+ /**
39
+ *
40
+ */
41
+ export class SubscriptionsApi extends runtime.BaseAPI {
42
+
43
+ /**
44
+ *
45
+ */
46
+ async getAllSubscriptionsRaw(requestParameters: SubscriptionsApiGetAllSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllSubscriptions200Response1>> {
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/subscriptions`,
77
+ method: 'GET',
78
+ headers: headerParameters,
79
+ query: queryParameters,
80
+ }, initOverrides);
81
+
82
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetAllSubscriptions200Response1FromJSON(jsonValue));
83
+ }
84
+
85
+ /**
86
+ *
87
+ */
88
+ async getAllSubscriptions(requestParameters: SubscriptionsApiGetAllSubscriptionsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllSubscriptions200Response1> {
89
+ const response = await this.getAllSubscriptionsRaw(requestParameters, initOverrides);
90
+ return await response.value();
91
+ }
92
+
93
+ }
package/src/apis/index.ts CHANGED
@@ -13,6 +13,7 @@ export * from './LeadsApi';
13
13
  export * from './LeadsPublicApi';
14
14
  export * from './OrdersPublicApi';
15
15
  export * from './StripePublicApi';
16
+ export * from './SubscriptionsApi';
16
17
  export * from './SubscriptionsPublicApi';
17
18
  export * from './TasksApi';
18
19
  export * from './UsersApi';
@@ -35,7 +35,8 @@ export const ConcreteDomainTransferTaskDataRequirementsEnum = {
35
35
  AUTH_CODE: 'auth_code',
36
36
  BUYER_CONFIRMATION: 'buyer_confirmation',
37
37
  OWNED_DOMAIN: 'owned_domain',
38
- OWNED_DOMAIN_TAKEN_BY_BUYER: 'owned_domain_taken_by_buyer'
38
+ OWNED_DOMAIN_TAKEN_BY_BUYER: 'owned_domain_taken_by_buyer',
39
+ OWNED_DOMAIN_TAKEN_BY_SELLER: 'owned_domain_taken_by_seller'
39
40
  } as const;
40
41
  export type ConcreteDomainTransferTaskDataRequirementsEnum = typeof ConcreteDomainTransferTaskDataRequirementsEnum[keyof typeof ConcreteDomainTransferTaskDataRequirementsEnum];
41
42
 
@@ -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 { SellerSubscriptionListItemDto } from './SellerSubscriptionListItemDto';
24
+ import {
25
+ SellerSubscriptionListItemDtoFromJSON,
26
+ SellerSubscriptionListItemDtoFromJSONTyped,
27
+ SellerSubscriptionListItemDtoToJSON,
28
+ SellerSubscriptionListItemDtoToJSONTyped,
29
+ } from './SellerSubscriptionListItemDto';
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 GetAllSubscriptions200Response1
42
+ */
43
+ export interface GetAllSubscriptions200Response1 {
44
+ /**
45
+ *
46
+ * @type {Array<SellerSubscriptionListItemDto>}
47
+ * @memberof GetAllSubscriptions200Response1
48
+ */
49
+ data: Array<SellerSubscriptionListItemDto>;
50
+ /**
51
+ *
52
+ * @type {PaginateResponseMeta}
53
+ * @memberof GetAllSubscriptions200Response1
54
+ */
55
+ meta: PaginateResponseMeta;
56
+ /**
57
+ *
58
+ * @type {PaginateResponseLinks}
59
+ * @memberof GetAllSubscriptions200Response1
60
+ */
61
+ links: PaginateResponseLinks;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the GetAllSubscriptions200Response1 interface.
66
+ */
67
+ export function instanceOfGetAllSubscriptions200Response1(value: object): value is GetAllSubscriptions200Response1 {
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 GetAllSubscriptions200Response1FromJSON(json: any): GetAllSubscriptions200Response1 {
75
+ return GetAllSubscriptions200Response1FromJSONTyped(json, false);
76
+ }
77
+
78
+ export function GetAllSubscriptions200Response1FromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllSubscriptions200Response1 {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'data': ((json['data'] as Array<any>).map(SellerSubscriptionListItemDtoFromJSON)),
85
+ 'meta': PaginateResponseMetaFromJSON(json['meta']),
86
+ 'links': PaginateResponseLinksFromJSON(json['links']),
87
+ };
88
+ }
89
+
90
+ export function GetAllSubscriptions200Response1ToJSON(json: any): GetAllSubscriptions200Response1 {
91
+ return GetAllSubscriptions200Response1ToJSONTyped(json, false);
92
+ }
93
+
94
+ export function GetAllSubscriptions200Response1ToJSONTyped(value?: GetAllSubscriptions200Response1 | 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(SellerSubscriptionListItemDtoToJSON)),
102
+ 'meta': PaginateResponseMetaToJSON(value['meta']),
103
+ 'links': PaginateResponseLinksToJSON(value['links']),
104
+ };
105
+ }
106
+
@@ -0,0 +1,158 @@
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 { SellerSubscriptionListItemDtoDomainInformation } from './SellerSubscriptionListItemDtoDomainInformation';
17
+ import {
18
+ SellerSubscriptionListItemDtoDomainInformationFromJSON,
19
+ SellerSubscriptionListItemDtoDomainInformationFromJSONTyped,
20
+ SellerSubscriptionListItemDtoDomainInformationToJSON,
21
+ SellerSubscriptionListItemDtoDomainInformationToJSONTyped,
22
+ } from './SellerSubscriptionListItemDtoDomainInformation';
23
+ import type { MoneyDto } from './MoneyDto';
24
+ import {
25
+ MoneyDtoFromJSON,
26
+ MoneyDtoFromJSONTyped,
27
+ MoneyDtoToJSON,
28
+ MoneyDtoToJSONTyped,
29
+ } from './MoneyDto';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface SellerSubscriptionListItemDto
35
+ */
36
+ export interface SellerSubscriptionListItemDto {
37
+ /**
38
+ * The subscription ID
39
+ * @type {object}
40
+ * @memberof SellerSubscriptionListItemDto
41
+ */
42
+ id: object;
43
+ /**
44
+ * The subscription status
45
+ * @type {string}
46
+ * @memberof SellerSubscriptionListItemDto
47
+ */
48
+ status: SellerSubscriptionListItemDtoStatusEnum;
49
+ /**
50
+ * The subscription type
51
+ * @type {string}
52
+ * @memberof SellerSubscriptionListItemDto
53
+ */
54
+ type: SellerSubscriptionListItemDtoTypeEnum;
55
+ /**
56
+ * The subscription start date
57
+ * @type {Date}
58
+ * @memberof SellerSubscriptionListItemDto
59
+ */
60
+ startedAt: Date | null;
61
+ /**
62
+ * The subscription creation date
63
+ * @type {Date}
64
+ * @memberof SellerSubscriptionListItemDto
65
+ */
66
+ createdAt: Date;
67
+ /**
68
+ * The subscription domain information
69
+ * @type {SellerSubscriptionListItemDtoDomainInformation}
70
+ * @memberof SellerSubscriptionListItemDto
71
+ */
72
+ domain: SellerSubscriptionListItemDtoDomainInformation;
73
+ /**
74
+ * The subscription base price
75
+ * @type {MoneyDto}
76
+ * @memberof SellerSubscriptionListItemDto
77
+ */
78
+ basePrice: MoneyDto | null;
79
+ }
80
+
81
+
82
+ /**
83
+ * @export
84
+ */
85
+ export const SellerSubscriptionListItemDtoStatusEnum = {
86
+ DRAFT: 'draft',
87
+ ACTIVE: 'active',
88
+ PAUSED: 'paused',
89
+ CANCELLED: 'cancelled',
90
+ FINISHED: 'finished'
91
+ } as const;
92
+ export type SellerSubscriptionListItemDtoStatusEnum = typeof SellerSubscriptionListItemDtoStatusEnum[keyof typeof SellerSubscriptionListItemDtoStatusEnum];
93
+
94
+ /**
95
+ * @export
96
+ */
97
+ export const SellerSubscriptionListItemDtoTypeEnum = {
98
+ RENT: 'rent',
99
+ LEASE_TO_OWN: 'lease_to_own'
100
+ } as const;
101
+ export type SellerSubscriptionListItemDtoTypeEnum = typeof SellerSubscriptionListItemDtoTypeEnum[keyof typeof SellerSubscriptionListItemDtoTypeEnum];
102
+
103
+
104
+ /**
105
+ * Check if a given object implements the SellerSubscriptionListItemDto interface.
106
+ */
107
+ export function instanceOfSellerSubscriptionListItemDto(value: object): value is SellerSubscriptionListItemDto {
108
+ if (!('id' in value) || value['id'] === undefined) return false;
109
+ if (!('status' in value) || value['status'] === undefined) return false;
110
+ if (!('type' in value) || value['type'] === undefined) return false;
111
+ if (!('startedAt' in value) || value['startedAt'] === undefined) return false;
112
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
113
+ if (!('domain' in value) || value['domain'] === undefined) return false;
114
+ if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
115
+ return true;
116
+ }
117
+
118
+ export function SellerSubscriptionListItemDtoFromJSON(json: any): SellerSubscriptionListItemDto {
119
+ return SellerSubscriptionListItemDtoFromJSONTyped(json, false);
120
+ }
121
+
122
+ export function SellerSubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSubscriptionListItemDto {
123
+ if (json == null) {
124
+ return json;
125
+ }
126
+ return {
127
+
128
+ 'id': json['id'],
129
+ 'status': json['status'],
130
+ 'type': json['type'],
131
+ 'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
132
+ 'createdAt': (new Date(json['createdAt'])),
133
+ 'domain': SellerSubscriptionListItemDtoDomainInformationFromJSON(json['domain']),
134
+ 'basePrice': MoneyDtoFromJSON(json['basePrice']),
135
+ };
136
+ }
137
+
138
+ export function SellerSubscriptionListItemDtoToJSON(json: any): SellerSubscriptionListItemDto {
139
+ return SellerSubscriptionListItemDtoToJSONTyped(json, false);
140
+ }
141
+
142
+ export function SellerSubscriptionListItemDtoToJSONTyped(value?: SellerSubscriptionListItemDto | null, ignoreDiscriminator: boolean = false): any {
143
+ if (value == null) {
144
+ return value;
145
+ }
146
+
147
+ return {
148
+
149
+ 'id': value['id'],
150
+ 'status': value['status'],
151
+ 'type': value['type'],
152
+ 'startedAt': (value['startedAt'] == null ? null : (value['startedAt'] as any).toISOString()),
153
+ 'createdAt': ((value['createdAt']).toISOString()),
154
+ 'domain': SellerSubscriptionListItemDtoDomainInformationToJSON(value['domain']),
155
+ 'basePrice': MoneyDtoToJSON(value['basePrice']),
156
+ };
157
+ }
158
+
@@ -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 SellerSubscriptionListItemDtoDomainInformation
20
+ */
21
+ export interface SellerSubscriptionListItemDtoDomainInformation {
22
+ /**
23
+ * The subscription domain TLD
24
+ * @type {string}
25
+ * @memberof SellerSubscriptionListItemDtoDomainInformation
26
+ */
27
+ tld: string;
28
+ /**
29
+ * The subscription domain name
30
+ * @type {string}
31
+ * @memberof SellerSubscriptionListItemDtoDomainInformation
32
+ */
33
+ name: string;
34
+ /**
35
+ * The subscription domain name
36
+ * @type {string}
37
+ * @memberof SellerSubscriptionListItemDtoDomainInformation
38
+ */
39
+ displayName: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the SellerSubscriptionListItemDtoDomainInformation interface.
44
+ */
45
+ export function instanceOfSellerSubscriptionListItemDtoDomainInformation(value: object): value is SellerSubscriptionListItemDtoDomainInformation {
46
+ if (!('tld' in value) || value['tld'] === undefined) return false;
47
+ if (!('name' in value) || value['name'] === undefined) return false;
48
+ if (!('displayName' in value) || value['displayName'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function SellerSubscriptionListItemDtoDomainInformationFromJSON(json: any): SellerSubscriptionListItemDtoDomainInformation {
53
+ return SellerSubscriptionListItemDtoDomainInformationFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function SellerSubscriptionListItemDtoDomainInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSubscriptionListItemDtoDomainInformation {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'tld': json['tld'],
63
+ 'name': json['name'],
64
+ 'displayName': json['displayName'],
65
+ };
66
+ }
67
+
68
+ export function SellerSubscriptionListItemDtoDomainInformationToJSON(json: any): SellerSubscriptionListItemDtoDomainInformation {
69
+ return SellerSubscriptionListItemDtoDomainInformationToJSONTyped(json, false);
70
+ }
71
+
72
+ export function SellerSubscriptionListItemDtoDomainInformationToJSONTyped(value?: SellerSubscriptionListItemDtoDomainInformation | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'tld': value['tld'],
80
+ 'name': value['name'],
81
+ 'displayName': value['displayName'],
82
+ };
83
+ }
84
+
@@ -75,6 +75,7 @@ export * from './GetAllInvoices200Response';
75
75
  export * from './GetAllOrders200Response';
76
76
  export * from './GetAllOwnedDomains200Response';
77
77
  export * from './GetAllSubscriptions200Response';
78
+ export * from './GetAllSubscriptions200Response1';
78
79
  export * from './GetBuyerLeads200Response';
79
80
  export * from './GetBuyerTransfers200Response';
80
81
  export * from './HttpException';
@@ -144,6 +145,8 @@ export * from './SellerDomainTransferListItemDomainDto';
144
145
  export * from './SellerDomainTransferListItemDto';
145
146
  export * from './SellerSecurityUserAccountDto';
146
147
  export * from './SellerSecurityUserDto';
148
+ export * from './SellerSubscriptionListItemDto';
149
+ export * from './SellerSubscriptionListItemDtoDomainInformation';
147
150
  export * from './SetDomainTransferConfirmationInput';
148
151
  export * from './SetNewPasswordInput';
149
152
  export * from './StoreBuyerLocaleInput';