@randock/nameshift-api-client 0.0.184 → 0.0.185
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 +6 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +27 -1
- package/dist/apis/AdminApi.js +119 -0
- package/dist/apis/DomainsApi.d.ts +3 -3
- package/dist/apis/DomainsApi.js +1 -1
- package/dist/apis/TasksApi.d.ts +3 -3
- package/dist/apis/TasksApi.js +1 -1
- package/dist/models/ChangeSubscriptionStatusInput.d.ts +42 -0
- package/dist/models/ChangeSubscriptionStatusInput.js +61 -0
- package/dist/models/GetAllSubscriptions200Response.d.ts +47 -0
- package/dist/models/GetAllSubscriptions200Response.js +62 -0
- package/dist/models/List200Response1.d.ts +3 -3
- package/dist/models/List200Response1.js +3 -3
- package/dist/models/List200Response2.d.ts +3 -3
- package/dist/models/List200Response2.js +3 -3
- package/dist/models/SubscriptionListItemDto.d.ts +102 -0
- package/dist/models/SubscriptionListItemDto.js +104 -0
- package/dist/models/SubscriptionListItemDtoBuyerInformation.d.ts +64 -0
- package/dist/models/SubscriptionListItemDtoBuyerInformation.js +73 -0
- package/dist/models/SubscriptionListItemDtoDomainInformation.d.ts +44 -0
- package/dist/models/SubscriptionListItemDtoDomainInformation.js +59 -0
- package/dist/models/SubscriptionListItemDtoSellerAccount.d.ts +50 -0
- package/dist/models/SubscriptionListItemDtoSellerAccount.js +63 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +118 -0
- package/src/apis/DomainsApi.ts +6 -6
- package/src/apis/TasksApi.ts +6 -6
- package/src/models/ChangeSubscriptionStatusInput.ts +79 -0
- package/src/models/GetAllSubscriptions200Response.ts +106 -0
- package/src/models/List200Response1.ts +10 -10
- package/src/models/List200Response2.ts +10 -10
- package/src/models/SubscriptionListItemDto.ts +189 -0
- package/src/models/SubscriptionListItemDtoBuyerInformation.ts +126 -0
- package/src/models/SubscriptionListItemDtoDomainInformation.ts +84 -0
- package/src/models/SubscriptionListItemDtoSellerAccount.ts +93 -0
- package/src/models/index.ts +6 -0
|
@@ -0,0 +1,102 @@
|
|
|
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 { SubscriptionListItemDtoBuyerInformation } from './SubscriptionListItemDtoBuyerInformation';
|
|
13
|
+
import type { SubscriptionListItemDtoSellerAccount } from './SubscriptionListItemDtoSellerAccount';
|
|
14
|
+
import type { MoneyDto } from './MoneyDto';
|
|
15
|
+
import type { SubscriptionListItemDtoDomainInformation } from './SubscriptionListItemDtoDomainInformation';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SubscriptionListItemDto
|
|
20
|
+
*/
|
|
21
|
+
export interface SubscriptionListItemDto {
|
|
22
|
+
/**
|
|
23
|
+
* The subscription ID
|
|
24
|
+
* @type {object}
|
|
25
|
+
* @memberof SubscriptionListItemDto
|
|
26
|
+
*/
|
|
27
|
+
id: object;
|
|
28
|
+
/**
|
|
29
|
+
* The subscription status
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SubscriptionListItemDto
|
|
32
|
+
*/
|
|
33
|
+
status: SubscriptionListItemDtoStatusEnum;
|
|
34
|
+
/**
|
|
35
|
+
* The subscription type
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SubscriptionListItemDto
|
|
38
|
+
*/
|
|
39
|
+
type: SubscriptionListItemDtoTypeEnum;
|
|
40
|
+
/**
|
|
41
|
+
* The subscription start date
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof SubscriptionListItemDto
|
|
44
|
+
*/
|
|
45
|
+
startedAt: Date | null;
|
|
46
|
+
/**
|
|
47
|
+
* The subscription creation date
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof SubscriptionListItemDto
|
|
50
|
+
*/
|
|
51
|
+
createdAt: Date;
|
|
52
|
+
/**
|
|
53
|
+
* The subscription domain information
|
|
54
|
+
* @type {SubscriptionListItemDtoDomainInformation}
|
|
55
|
+
* @memberof SubscriptionListItemDto
|
|
56
|
+
*/
|
|
57
|
+
domain: SubscriptionListItemDtoDomainInformation;
|
|
58
|
+
/**
|
|
59
|
+
* The subscription seller information
|
|
60
|
+
* @type {SubscriptionListItemDtoSellerAccount}
|
|
61
|
+
* @memberof SubscriptionListItemDto
|
|
62
|
+
*/
|
|
63
|
+
sellerAccount: SubscriptionListItemDtoSellerAccount;
|
|
64
|
+
/**
|
|
65
|
+
* The subscription buyer information
|
|
66
|
+
* @type {SubscriptionListItemDtoBuyerInformation}
|
|
67
|
+
* @memberof SubscriptionListItemDto
|
|
68
|
+
*/
|
|
69
|
+
buyerInformation: SubscriptionListItemDtoBuyerInformation;
|
|
70
|
+
/**
|
|
71
|
+
* The subscription base price
|
|
72
|
+
* @type {MoneyDto}
|
|
73
|
+
* @memberof SubscriptionListItemDto
|
|
74
|
+
*/
|
|
75
|
+
basePrice: MoneyDto | null;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* @export
|
|
79
|
+
*/
|
|
80
|
+
export declare const SubscriptionListItemDtoStatusEnum: {
|
|
81
|
+
readonly DRAFT: "draft";
|
|
82
|
+
readonly ACTIVE: "active";
|
|
83
|
+
readonly PAUSED: "paused";
|
|
84
|
+
readonly CANCELLED: "cancelled";
|
|
85
|
+
};
|
|
86
|
+
export type SubscriptionListItemDtoStatusEnum = typeof SubscriptionListItemDtoStatusEnum[keyof typeof SubscriptionListItemDtoStatusEnum];
|
|
87
|
+
/**
|
|
88
|
+
* @export
|
|
89
|
+
*/
|
|
90
|
+
export declare const SubscriptionListItemDtoTypeEnum: {
|
|
91
|
+
readonly RENT: "rent";
|
|
92
|
+
readonly LEASE_TO_OWN: "lease_to_own";
|
|
93
|
+
};
|
|
94
|
+
export type SubscriptionListItemDtoTypeEnum = typeof SubscriptionListItemDtoTypeEnum[keyof typeof SubscriptionListItemDtoTypeEnum];
|
|
95
|
+
/**
|
|
96
|
+
* Check if a given object implements the SubscriptionListItemDto interface.
|
|
97
|
+
*/
|
|
98
|
+
export declare function instanceOfSubscriptionListItemDto(value: object): value is SubscriptionListItemDto;
|
|
99
|
+
export declare function SubscriptionListItemDtoFromJSON(json: any): SubscriptionListItemDto;
|
|
100
|
+
export declare function SubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionListItemDto;
|
|
101
|
+
export declare function SubscriptionListItemDtoToJSON(json: any): SubscriptionListItemDto;
|
|
102
|
+
export declare function SubscriptionListItemDtoToJSONTyped(value?: SubscriptionListItemDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,104 @@
|
|
|
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.SubscriptionListItemDtoTypeEnum = exports.SubscriptionListItemDtoStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfSubscriptionListItemDto = instanceOfSubscriptionListItemDto;
|
|
18
|
+
exports.SubscriptionListItemDtoFromJSON = SubscriptionListItemDtoFromJSON;
|
|
19
|
+
exports.SubscriptionListItemDtoFromJSONTyped = SubscriptionListItemDtoFromJSONTyped;
|
|
20
|
+
exports.SubscriptionListItemDtoToJSON = SubscriptionListItemDtoToJSON;
|
|
21
|
+
exports.SubscriptionListItemDtoToJSONTyped = SubscriptionListItemDtoToJSONTyped;
|
|
22
|
+
var SubscriptionListItemDtoBuyerInformation_1 = require("./SubscriptionListItemDtoBuyerInformation");
|
|
23
|
+
var SubscriptionListItemDtoSellerAccount_1 = require("./SubscriptionListItemDtoSellerAccount");
|
|
24
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
25
|
+
var SubscriptionListItemDtoDomainInformation_1 = require("./SubscriptionListItemDtoDomainInformation");
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
exports.SubscriptionListItemDtoStatusEnum = {
|
|
30
|
+
DRAFT: 'draft',
|
|
31
|
+
ACTIVE: 'active',
|
|
32
|
+
PAUSED: 'paused',
|
|
33
|
+
CANCELLED: 'cancelled'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
38
|
+
exports.SubscriptionListItemDtoTypeEnum = {
|
|
39
|
+
RENT: 'rent',
|
|
40
|
+
LEASE_TO_OWN: 'lease_to_own'
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the SubscriptionListItemDto interface.
|
|
44
|
+
*/
|
|
45
|
+
function instanceOfSubscriptionListItemDto(value) {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('startedAt' in value) || value['startedAt'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('domain' in value) || value['domain'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('sellerAccount' in value) || value['sellerAccount'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('buyerInformation' in value) || value['buyerInformation'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('basePrice' in value) || value['basePrice'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
function SubscriptionListItemDtoFromJSON(json) {
|
|
67
|
+
return SubscriptionListItemDtoFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function SubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'id': json['id'],
|
|
75
|
+
'status': json['status'],
|
|
76
|
+
'type': json['type'],
|
|
77
|
+
'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
|
|
78
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
79
|
+
'domain': (0, SubscriptionListItemDtoDomainInformation_1.SubscriptionListItemDtoDomainInformationFromJSON)(json['domain']),
|
|
80
|
+
'sellerAccount': (0, SubscriptionListItemDtoSellerAccount_1.SubscriptionListItemDtoSellerAccountFromJSON)(json['sellerAccount']),
|
|
81
|
+
'buyerInformation': (0, SubscriptionListItemDtoBuyerInformation_1.SubscriptionListItemDtoBuyerInformationFromJSON)(json['buyerInformation']),
|
|
82
|
+
'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function SubscriptionListItemDtoToJSON(json) {
|
|
86
|
+
return SubscriptionListItemDtoToJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
function SubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
89
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
90
|
+
if (value == null) {
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
'id': value['id'],
|
|
95
|
+
'status': value['status'],
|
|
96
|
+
'type': value['type'],
|
|
97
|
+
'startedAt': (value['startedAt'] == null ? null : value['startedAt'].toISOString()),
|
|
98
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
99
|
+
'domain': (0, SubscriptionListItemDtoDomainInformation_1.SubscriptionListItemDtoDomainInformationToJSON)(value['domain']),
|
|
100
|
+
'sellerAccount': (0, SubscriptionListItemDtoSellerAccount_1.SubscriptionListItemDtoSellerAccountToJSON)(value['sellerAccount']),
|
|
101
|
+
'buyerInformation': (0, SubscriptionListItemDtoBuyerInformation_1.SubscriptionListItemDtoBuyerInformationToJSON)(value['buyerInformation']),
|
|
102
|
+
'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
|
|
103
|
+
};
|
|
104
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { SubscriptionCompanyInfoDto } from './SubscriptionCompanyInfoDto';
|
|
13
|
+
import type { AddressDto } from './AddressDto';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface SubscriptionListItemDtoBuyerInformation
|
|
18
|
+
*/
|
|
19
|
+
export interface SubscriptionListItemDtoBuyerInformation {
|
|
20
|
+
/**
|
|
21
|
+
* The subscription buyer first name
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof SubscriptionListItemDtoBuyerInformation
|
|
24
|
+
*/
|
|
25
|
+
firstName: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* The subscription buyer last name
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof SubscriptionListItemDtoBuyerInformation
|
|
30
|
+
*/
|
|
31
|
+
lastName: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* The subscription buyer email
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof SubscriptionListItemDtoBuyerInformation
|
|
36
|
+
*/
|
|
37
|
+
email: string;
|
|
38
|
+
/**
|
|
39
|
+
* The subscription buyer phone
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof SubscriptionListItemDtoBuyerInformation
|
|
42
|
+
*/
|
|
43
|
+
phone: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* The subscription buyer address
|
|
46
|
+
* @type {AddressDto}
|
|
47
|
+
* @memberof SubscriptionListItemDtoBuyerInformation
|
|
48
|
+
*/
|
|
49
|
+
address: AddressDto | null;
|
|
50
|
+
/**
|
|
51
|
+
* The subscription buyer company information
|
|
52
|
+
* @type {SubscriptionCompanyInfoDto}
|
|
53
|
+
* @memberof SubscriptionListItemDtoBuyerInformation
|
|
54
|
+
*/
|
|
55
|
+
companyInfo: SubscriptionCompanyInfoDto | null;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the SubscriptionListItemDtoBuyerInformation interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfSubscriptionListItemDtoBuyerInformation(value: object): value is SubscriptionListItemDtoBuyerInformation;
|
|
61
|
+
export declare function SubscriptionListItemDtoBuyerInformationFromJSON(json: any): SubscriptionListItemDtoBuyerInformation;
|
|
62
|
+
export declare function SubscriptionListItemDtoBuyerInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionListItemDtoBuyerInformation;
|
|
63
|
+
export declare function SubscriptionListItemDtoBuyerInformationToJSON(json: any): SubscriptionListItemDtoBuyerInformation;
|
|
64
|
+
export declare function SubscriptionListItemDtoBuyerInformationToJSONTyped(value?: SubscriptionListItemDtoBuyerInformation | 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.instanceOfSubscriptionListItemDtoBuyerInformation = instanceOfSubscriptionListItemDtoBuyerInformation;
|
|
17
|
+
exports.SubscriptionListItemDtoBuyerInformationFromJSON = SubscriptionListItemDtoBuyerInformationFromJSON;
|
|
18
|
+
exports.SubscriptionListItemDtoBuyerInformationFromJSONTyped = SubscriptionListItemDtoBuyerInformationFromJSONTyped;
|
|
19
|
+
exports.SubscriptionListItemDtoBuyerInformationToJSON = SubscriptionListItemDtoBuyerInformationToJSON;
|
|
20
|
+
exports.SubscriptionListItemDtoBuyerInformationToJSONTyped = SubscriptionListItemDtoBuyerInformationToJSONTyped;
|
|
21
|
+
var SubscriptionCompanyInfoDto_1 = require("./SubscriptionCompanyInfoDto");
|
|
22
|
+
var AddressDto_1 = require("./AddressDto");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the SubscriptionListItemDtoBuyerInformation interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfSubscriptionListItemDtoBuyerInformation(value) {
|
|
27
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('phone' in value) || value['phone'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('address' in value) || value['address'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('companyInfo' in value) || value['companyInfo'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function SubscriptionListItemDtoBuyerInformationFromJSON(json) {
|
|
42
|
+
return SubscriptionListItemDtoBuyerInformationFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function SubscriptionListItemDtoBuyerInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'firstName': json['firstName'],
|
|
50
|
+
'lastName': json['lastName'],
|
|
51
|
+
'email': json['email'],
|
|
52
|
+
'phone': json['phone'],
|
|
53
|
+
'address': (0, AddressDto_1.AddressDtoFromJSON)(json['address']),
|
|
54
|
+
'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoFromJSON)(json['companyInfo']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function SubscriptionListItemDtoBuyerInformationToJSON(json) {
|
|
58
|
+
return SubscriptionListItemDtoBuyerInformationToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function SubscriptionListItemDtoBuyerInformationToJSONTyped(value, ignoreDiscriminator) {
|
|
61
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'firstName': value['firstName'],
|
|
67
|
+
'lastName': value['lastName'],
|
|
68
|
+
'email': value['email'],
|
|
69
|
+
'phone': value['phone'],
|
|
70
|
+
'address': (0, AddressDto_1.AddressDtoToJSON)(value['address']),
|
|
71
|
+
'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoToJSON)(value['companyInfo']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -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 SubscriptionListItemDtoDomainInformation
|
|
16
|
+
*/
|
|
17
|
+
export interface SubscriptionListItemDtoDomainInformation {
|
|
18
|
+
/**
|
|
19
|
+
* The subscription domain TLD
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SubscriptionListItemDtoDomainInformation
|
|
22
|
+
*/
|
|
23
|
+
tld: string;
|
|
24
|
+
/**
|
|
25
|
+
* The subscription domain name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SubscriptionListItemDtoDomainInformation
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* The subscription domain name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SubscriptionListItemDtoDomainInformation
|
|
34
|
+
*/
|
|
35
|
+
displayName: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SubscriptionListItemDtoDomainInformation interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfSubscriptionListItemDtoDomainInformation(value: object): value is SubscriptionListItemDtoDomainInformation;
|
|
41
|
+
export declare function SubscriptionListItemDtoDomainInformationFromJSON(json: any): SubscriptionListItemDtoDomainInformation;
|
|
42
|
+
export declare function SubscriptionListItemDtoDomainInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionListItemDtoDomainInformation;
|
|
43
|
+
export declare function SubscriptionListItemDtoDomainInformationToJSON(json: any): SubscriptionListItemDtoDomainInformation;
|
|
44
|
+
export declare function SubscriptionListItemDtoDomainInformationToJSONTyped(value?: SubscriptionListItemDtoDomainInformation | 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.instanceOfSubscriptionListItemDtoDomainInformation = instanceOfSubscriptionListItemDtoDomainInformation;
|
|
17
|
+
exports.SubscriptionListItemDtoDomainInformationFromJSON = SubscriptionListItemDtoDomainInformationFromJSON;
|
|
18
|
+
exports.SubscriptionListItemDtoDomainInformationFromJSONTyped = SubscriptionListItemDtoDomainInformationFromJSONTyped;
|
|
19
|
+
exports.SubscriptionListItemDtoDomainInformationToJSON = SubscriptionListItemDtoDomainInformationToJSON;
|
|
20
|
+
exports.SubscriptionListItemDtoDomainInformationToJSONTyped = SubscriptionListItemDtoDomainInformationToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SubscriptionListItemDtoDomainInformation interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSubscriptionListItemDtoDomainInformation(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 SubscriptionListItemDtoDomainInformationFromJSON(json) {
|
|
34
|
+
return SubscriptionListItemDtoDomainInformationFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function SubscriptionListItemDtoDomainInformationFromJSONTyped(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 SubscriptionListItemDtoDomainInformationToJSON(json) {
|
|
47
|
+
return SubscriptionListItemDtoDomainInformationToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function SubscriptionListItemDtoDomainInformationToJSONTyped(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
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 SubscriptionListItemDtoSellerAccount
|
|
16
|
+
*/
|
|
17
|
+
export interface SubscriptionListItemDtoSellerAccount {
|
|
18
|
+
/**
|
|
19
|
+
* The subscription seller account ID
|
|
20
|
+
* @type {object}
|
|
21
|
+
* @memberof SubscriptionListItemDtoSellerAccount
|
|
22
|
+
*/
|
|
23
|
+
accountId: object;
|
|
24
|
+
/**
|
|
25
|
+
* The subscription seller account ID
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SubscriptionListItemDtoSellerAccount
|
|
28
|
+
*/
|
|
29
|
+
identifier: string;
|
|
30
|
+
/**
|
|
31
|
+
* The subscription seller account name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SubscriptionListItemDtoSellerAccount
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Indicates if subscription seller account is a business or not
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof SubscriptionListItemDtoSellerAccount
|
|
40
|
+
*/
|
|
41
|
+
isBusiness: boolean | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the SubscriptionListItemDtoSellerAccount interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfSubscriptionListItemDtoSellerAccount(value: object): value is SubscriptionListItemDtoSellerAccount;
|
|
47
|
+
export declare function SubscriptionListItemDtoSellerAccountFromJSON(json: any): SubscriptionListItemDtoSellerAccount;
|
|
48
|
+
export declare function SubscriptionListItemDtoSellerAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionListItemDtoSellerAccount;
|
|
49
|
+
export declare function SubscriptionListItemDtoSellerAccountToJSON(json: any): SubscriptionListItemDtoSellerAccount;
|
|
50
|
+
export declare function SubscriptionListItemDtoSellerAccountToJSONTyped(value?: SubscriptionListItemDtoSellerAccount | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfSubscriptionListItemDtoSellerAccount = instanceOfSubscriptionListItemDtoSellerAccount;
|
|
17
|
+
exports.SubscriptionListItemDtoSellerAccountFromJSON = SubscriptionListItemDtoSellerAccountFromJSON;
|
|
18
|
+
exports.SubscriptionListItemDtoSellerAccountFromJSONTyped = SubscriptionListItemDtoSellerAccountFromJSONTyped;
|
|
19
|
+
exports.SubscriptionListItemDtoSellerAccountToJSON = SubscriptionListItemDtoSellerAccountToJSON;
|
|
20
|
+
exports.SubscriptionListItemDtoSellerAccountToJSONTyped = SubscriptionListItemDtoSellerAccountToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SubscriptionListItemDtoSellerAccount interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSubscriptionListItemDtoSellerAccount(value) {
|
|
25
|
+
if (!('accountId' in value) || value['accountId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('identifier' in value) || value['identifier'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('isBusiness' in value) || value['isBusiness'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function SubscriptionListItemDtoSellerAccountFromJSON(json) {
|
|
36
|
+
return SubscriptionListItemDtoSellerAccountFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function SubscriptionListItemDtoSellerAccountFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'accountId': json['accountId'],
|
|
44
|
+
'identifier': json['identifier'],
|
|
45
|
+
'name': json['name'],
|
|
46
|
+
'isBusiness': json['isBusiness'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function SubscriptionListItemDtoSellerAccountToJSON(json) {
|
|
50
|
+
return SubscriptionListItemDtoSellerAccountToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function SubscriptionListItemDtoSellerAccountToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'accountId': value['accountId'],
|
|
59
|
+
'identifier': value['identifier'],
|
|
60
|
+
'name': value['name'],
|
|
61
|
+
'isBusiness': value['isBusiness'],
|
|
62
|
+
};
|
|
63
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from './BuyerLeadListItemDomainDto';
|
|
|
27
27
|
export * from './BuyerLeadListItemDto';
|
|
28
28
|
export * from './BuyerSecurityUserDto';
|
|
29
29
|
export * from './ChangeOrderStatusInput';
|
|
30
|
+
export * from './ChangeSubscriptionStatusInput';
|
|
30
31
|
export * from './ChartDataPoint';
|
|
31
32
|
export * from './CompanyInformationDto';
|
|
32
33
|
export * from './CompanyTaxIdDto';
|
|
@@ -67,6 +68,7 @@ export * from './GetAllDomainTransfers200Response';
|
|
|
67
68
|
export * from './GetAllInvoices200Response';
|
|
68
69
|
export * from './GetAllOrders200Response';
|
|
69
70
|
export * from './GetAllOwnedDomains200Response';
|
|
71
|
+
export * from './GetAllSubscriptions200Response';
|
|
70
72
|
export * from './GetBuyerLeads200Response';
|
|
71
73
|
export * from './GetBuyerTransfers200Response';
|
|
72
74
|
export * from './HttpException';
|
|
@@ -143,6 +145,10 @@ export * from './SubscriptionCompanyInfoDto';
|
|
|
143
145
|
export * from './SubscriptionCompanyTaxIdDto';
|
|
144
146
|
export * from './SubscriptionDomainDto';
|
|
145
147
|
export * from './SubscriptionDto';
|
|
148
|
+
export * from './SubscriptionListItemDto';
|
|
149
|
+
export * from './SubscriptionListItemDtoBuyerInformation';
|
|
150
|
+
export * from './SubscriptionListItemDtoDomainInformation';
|
|
151
|
+
export * from './SubscriptionListItemDtoSellerAccount';
|
|
146
152
|
export * from './TaskListDomainDto';
|
|
147
153
|
export * from './TaskListDomainTransferDto';
|
|
148
154
|
export * from './TaskListLeadDto';
|
package/dist/models/index.js
CHANGED
|
@@ -45,6 +45,7 @@ __exportStar(require("./BuyerLeadListItemDomainDto"), exports);
|
|
|
45
45
|
__exportStar(require("./BuyerLeadListItemDto"), exports);
|
|
46
46
|
__exportStar(require("./BuyerSecurityUserDto"), exports);
|
|
47
47
|
__exportStar(require("./ChangeOrderStatusInput"), exports);
|
|
48
|
+
__exportStar(require("./ChangeSubscriptionStatusInput"), exports);
|
|
48
49
|
__exportStar(require("./ChartDataPoint"), exports);
|
|
49
50
|
__exportStar(require("./CompanyInformationDto"), exports);
|
|
50
51
|
__exportStar(require("./CompanyTaxIdDto"), exports);
|
|
@@ -85,6 +86,7 @@ __exportStar(require("./GetAllDomainTransfers200Response"), exports);
|
|
|
85
86
|
__exportStar(require("./GetAllInvoices200Response"), exports);
|
|
86
87
|
__exportStar(require("./GetAllOrders200Response"), exports);
|
|
87
88
|
__exportStar(require("./GetAllOwnedDomains200Response"), exports);
|
|
89
|
+
__exportStar(require("./GetAllSubscriptions200Response"), exports);
|
|
88
90
|
__exportStar(require("./GetBuyerLeads200Response"), exports);
|
|
89
91
|
__exportStar(require("./GetBuyerTransfers200Response"), exports);
|
|
90
92
|
__exportStar(require("./HttpException"), exports);
|
|
@@ -161,6 +163,10 @@ __exportStar(require("./SubscriptionCompanyInfoDto"), exports);
|
|
|
161
163
|
__exportStar(require("./SubscriptionCompanyTaxIdDto"), exports);
|
|
162
164
|
__exportStar(require("./SubscriptionDomainDto"), exports);
|
|
163
165
|
__exportStar(require("./SubscriptionDto"), exports);
|
|
166
|
+
__exportStar(require("./SubscriptionListItemDto"), exports);
|
|
167
|
+
__exportStar(require("./SubscriptionListItemDtoBuyerInformation"), exports);
|
|
168
|
+
__exportStar(require("./SubscriptionListItemDtoDomainInformation"), exports);
|
|
169
|
+
__exportStar(require("./SubscriptionListItemDtoSellerAccount"), exports);
|
|
164
170
|
__exportStar(require("./TaskListDomainDto"), exports);
|
|
165
171
|
__exportStar(require("./TaskListDomainTransferDto"), exports);
|
|
166
172
|
__exportStar(require("./TaskListLeadDto"), exports);
|