@randock/nameshift-api-client 0.0.197 → 0.0.199

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/.openapi-generator/FILES +4 -1
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsApi.d.ts +3 -3
  4. package/dist/apis/AccountsApi.js +1 -1
  5. package/dist/apis/BuyersApi.d.ts +15 -1
  6. package/dist/apis/BuyersApi.js +63 -0
  7. package/dist/models/AccountSettingsLandingDto.d.ts +6 -0
  8. package/dist/models/AccountSettingsLandingDto.js +4 -0
  9. package/dist/models/BuyerSubscriptionListItemDto.d.ts +89 -0
  10. package/dist/models/BuyerSubscriptionListItemDto.js +95 -0
  11. package/dist/models/BuyerSubscriptionListItemDtoDomainInformation.d.ts +44 -0
  12. package/dist/models/BuyerSubscriptionListItemDtoDomainInformation.js +59 -0
  13. package/dist/models/GetBuyerSubscriptions200Response.d.ts +47 -0
  14. package/dist/models/GetBuyerSubscriptions200Response.js +62 -0
  15. package/dist/models/{IntersectionAccountDtoWithSettingsDtoWithNotificationsDto.d.ts → IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts} +30 -16
  16. package/dist/models/{IntersectionAccountDtoWithSettingsDtoWithNotificationsDto.js → IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js} +25 -13
  17. package/dist/models/LandingPageInput.d.ts +6 -0
  18. package/dist/models/LandingPageInput.js +2 -0
  19. package/dist/models/index.d.ts +4 -1
  20. package/dist/models/index.js +4 -1
  21. package/package.json +1 -1
  22. package/src/apis/AccountsApi.ts +6 -6
  23. package/src/apis/BuyersApi.ts +60 -0
  24. package/src/models/AccountSettingsLandingDto.ts +9 -0
  25. package/src/models/BuyerSubscriptionListItemDto.ts +158 -0
  26. package/src/models/BuyerSubscriptionListItemDtoDomainInformation.ts +84 -0
  27. package/src/models/GetBuyerSubscriptions200Response.ts +106 -0
  28. package/src/models/{IntersectionAccountDtoWithSettingsDtoWithNotificationsDto.ts → IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts} +38 -18
  29. package/src/models/LandingPageInput.ts +8 -0
  30. package/src/models/index.ts +4 -1
@@ -52,6 +52,8 @@ src/models/BuyerDto.ts
52
52
  src/models/BuyerLeadListItemDomainDto.ts
53
53
  src/models/BuyerLeadListItemDto.ts
54
54
  src/models/BuyerSecurityUserDto.ts
55
+ src/models/BuyerSubscriptionListItemDto.ts
56
+ src/models/BuyerSubscriptionListItemDtoDomainInformation.ts
55
57
  src/models/ChangeOrderStatusInput.ts
56
58
  src/models/ChangeSubscriptionStatusInput.ts
57
59
  src/models/ChartDataPoint.ts
@@ -100,9 +102,10 @@ src/models/GetAllOwnedDomains200Response.ts
100
102
  src/models/GetAllSubscriptions200Response.ts
101
103
  src/models/GetAllSubscriptions200Response1.ts
102
104
  src/models/GetBuyerLeads200Response.ts
105
+ src/models/GetBuyerSubscriptions200Response.ts
103
106
  src/models/GetBuyerTransfers200Response.ts
104
107
  src/models/HttpException.ts
105
- src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDto.ts
108
+ src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts
106
109
  src/models/IntersectionDomainDtoWithAccountDto.ts
107
110
  src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts
108
111
  src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.197
1
+ ## @randock/nameshift-api-client@0.0.199
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.197 --save
39
+ npm install @randock/nameshift-api-client@0.0.199 --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
- 6f28801799fb1f9518d3c83a78fd2ea7fb7b8807a3ed333f0167418e806eb3a69ca6a1d242c433a3012afb165495c8f3
47
+ 8a9c6c60ce5babfa85725463d2777f12d3b47cb5d3d86a03e0f4214bd0489f7a7623f48a32dc0821a193c95614a8d79b
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountPaymentProviderSessionDto, AccountSettingsDto, AccountSettingsInput, IntersectionAccountDtoWithSettingsDtoWithNotificationsDto, UpdateAccountBillingInformationInput } from '../models/index';
13
+ import type { AccountPaymentProviderSessionDto, AccountSettingsDto, AccountSettingsInput, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, UpdateAccountBillingInformationInput } from '../models/index';
14
14
  export interface AccountsApiGetAccountPaymentProviderSessionRequest {
15
15
  accountId: string;
16
16
  }
@@ -53,11 +53,11 @@ export declare class AccountsApi extends runtime.BaseAPI {
53
53
  /**
54
54
  *
55
55
  */
56
- meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionAccountDtoWithSettingsDtoWithNotificationsDto>>;
56
+ meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto>>;
57
57
  /**
58
58
  *
59
59
  */
60
- me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithSettingsDtoWithNotificationsDto>;
60
+ me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto>;
61
61
  /**
62
62
  *
63
63
  */
@@ -206,7 +206,7 @@ var AccountsApi = /** @class */ (function (_super) {
206
206
  }, initOverrides)];
207
207
  case 3:
208
208
  response = _a.sent();
209
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoFromJSON)(jsonValue); })];
209
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSON)(jsonValue); })];
210
210
  }
211
211
  });
212
212
  });
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BuyerDomainTransferAuthCodeDto, BuyerSecurityUserDto, CreateBuyerLeadMessageInput, GetAllInvoices200Response, GetBuyerLeads200Response, GetBuyerTransfers200Response, LeadDto, LeadMessageDto, ObjectId, PutBuyerLeadOfferInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput } from '../models/index';
13
+ import type { BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BuyerDomainTransferAuthCodeDto, BuyerSecurityUserDto, CreateBuyerLeadMessageInput, GetAllInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadMessageDto, ObjectId, PutBuyerLeadOfferInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput } from '../models/index';
14
14
  export interface BuyersApiAcceptBuyerLeadOfferRequest {
15
15
  leadId: string;
16
16
  }
@@ -49,6 +49,12 @@ export interface BuyersApiGetBuyerLeadsRequest {
49
49
  limit?: number;
50
50
  sortBy?: Array<string>;
51
51
  }
52
+ export interface BuyersApiGetBuyerSubscriptionsRequest {
53
+ filter?: object;
54
+ page?: number;
55
+ limit?: number;
56
+ sortBy?: Array<string>;
57
+ }
52
58
  export interface BuyersApiGetBuyerTransfersRequest {
53
59
  filter?: object;
54
60
  page?: number;
@@ -164,6 +170,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
164
170
  *
165
171
  */
166
172
  getBuyerLeads(requestParameters?: BuyersApiGetBuyerLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerLeads200Response>;
173
+ /**
174
+ *
175
+ */
176
+ getBuyerSubscriptionsRaw(requestParameters: BuyersApiGetBuyerSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetBuyerSubscriptions200Response>>;
177
+ /**
178
+ *
179
+ */
180
+ getBuyerSubscriptions(requestParameters?: BuyersApiGetBuyerSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerSubscriptions200Response>;
167
181
  /**
168
182
  *
169
183
  */
@@ -681,6 +681,69 @@ var BuyersApi = /** @class */ (function (_super) {
681
681
  });
682
682
  });
683
683
  };
684
+ /**
685
+ *
686
+ */
687
+ BuyersApi.prototype.getBuyerSubscriptionsRaw = function (requestParameters, initOverrides) {
688
+ return __awaiter(this, void 0, void 0, function () {
689
+ var queryParameters, headerParameters, token, tokenString, response;
690
+ return __generator(this, function (_a) {
691
+ switch (_a.label) {
692
+ case 0:
693
+ queryParameters = {};
694
+ if (requestParameters['filter'] != null) {
695
+ queryParameters['filter'] = requestParameters['filter'];
696
+ }
697
+ if (requestParameters['page'] != null) {
698
+ queryParameters['page'] = requestParameters['page'];
699
+ }
700
+ if (requestParameters['limit'] != null) {
701
+ queryParameters['limit'] = requestParameters['limit'];
702
+ }
703
+ if (requestParameters['sortBy'] != null) {
704
+ queryParameters['sortBy'] = requestParameters['sortBy'];
705
+ }
706
+ headerParameters = {};
707
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
708
+ token = this.configuration.accessToken;
709
+ return [4 /*yield*/, token("bearer", [])];
710
+ case 1:
711
+ tokenString = _a.sent();
712
+ if (tokenString) {
713
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
714
+ }
715
+ _a.label = 2;
716
+ case 2: return [4 /*yield*/, this.request({
717
+ path: "/buyers/private/subscriptions",
718
+ method: 'GET',
719
+ headers: headerParameters,
720
+ query: queryParameters,
721
+ }, initOverrides)];
722
+ case 3:
723
+ response = _a.sent();
724
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetBuyerSubscriptions200ResponseFromJSON)(jsonValue); })];
725
+ }
726
+ });
727
+ });
728
+ };
729
+ /**
730
+ *
731
+ */
732
+ BuyersApi.prototype.getBuyerSubscriptions = function () {
733
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
734
+ var response;
735
+ if (requestParameters === void 0) { requestParameters = {}; }
736
+ return __generator(this, function (_a) {
737
+ switch (_a.label) {
738
+ case 0: return [4 /*yield*/, this.getBuyerSubscriptionsRaw(requestParameters, initOverrides)];
739
+ case 1:
740
+ response = _a.sent();
741
+ return [4 /*yield*/, response.value()];
742
+ case 2: return [2 /*return*/, _a.sent()];
743
+ }
744
+ });
745
+ });
746
+ };
684
747
  /**
685
748
  *
686
749
  */
@@ -27,6 +27,12 @@ export interface AccountSettingsLandingDto {
27
27
  * @memberof AccountSettingsLandingDto
28
28
  */
29
29
  showRelatedDomains: boolean;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof AccountSettingsLandingDto
34
+ */
35
+ seoMetrics: boolean;
30
36
  /**
31
37
  *
32
38
  * @type {string}
@@ -26,6 +26,8 @@ function instanceOfAccountSettingsLandingDto(value) {
26
26
  return false;
27
27
  if (!('showRelatedDomains' in value) || value['showRelatedDomains'] === undefined)
28
28
  return false;
29
+ if (!('seoMetrics' in value) || value['seoMetrics'] === undefined)
30
+ return false;
29
31
  if (!('description' in value) || value['description'] === undefined)
30
32
  return false;
31
33
  if (!('avatar' in value) || value['avatar'] === undefined)
@@ -42,6 +44,7 @@ function AccountSettingsLandingDtoFromJSONTyped(json, ignoreDiscriminator) {
42
44
  return {
43
45
  'anonymous': json['anonymous'],
44
46
  'showRelatedDomains': json['showRelatedDomains'],
47
+ 'seoMetrics': json['seoMetrics'],
45
48
  'description': json['description'],
46
49
  'avatar': json['avatar'],
47
50
  };
@@ -57,6 +60,7 @@ function AccountSettingsLandingDtoToJSONTyped(value, ignoreDiscriminator) {
57
60
  return {
58
61
  'anonymous': value['anonymous'],
59
62
  'showRelatedDomains': value['showRelatedDomains'],
63
+ 'seoMetrics': value['seoMetrics'],
60
64
  'description': value['description'],
61
65
  'avatar': value['avatar'],
62
66
  };
@@ -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 { BuyerSubscriptionListItemDtoDomainInformation } from './BuyerSubscriptionListItemDtoDomainInformation';
13
+ import type { MoneyDto } from './MoneyDto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface BuyerSubscriptionListItemDto
18
+ */
19
+ export interface BuyerSubscriptionListItemDto {
20
+ /**
21
+ * The subscription ID
22
+ * @type {object}
23
+ * @memberof BuyerSubscriptionListItemDto
24
+ */
25
+ id: object;
26
+ /**
27
+ * The subscription status
28
+ * @type {string}
29
+ * @memberof BuyerSubscriptionListItemDto
30
+ */
31
+ status: BuyerSubscriptionListItemDtoStatusEnum;
32
+ /**
33
+ * The subscription type
34
+ * @type {string}
35
+ * @memberof BuyerSubscriptionListItemDto
36
+ */
37
+ type: BuyerSubscriptionListItemDtoTypeEnum;
38
+ /**
39
+ * The subscription start date
40
+ * @type {Date}
41
+ * @memberof BuyerSubscriptionListItemDto
42
+ */
43
+ startedAt: Date | null;
44
+ /**
45
+ * The subscription creation date
46
+ * @type {Date}
47
+ * @memberof BuyerSubscriptionListItemDto
48
+ */
49
+ createdAt: Date;
50
+ /**
51
+ * The subscription domain information
52
+ * @type {BuyerSubscriptionListItemDtoDomainInformation}
53
+ * @memberof BuyerSubscriptionListItemDto
54
+ */
55
+ domain: BuyerSubscriptionListItemDtoDomainInformation;
56
+ /**
57
+ * The subscription base price
58
+ * @type {MoneyDto}
59
+ * @memberof BuyerSubscriptionListItemDto
60
+ */
61
+ basePrice: MoneyDto | null;
62
+ }
63
+ /**
64
+ * @export
65
+ */
66
+ export declare const BuyerSubscriptionListItemDtoStatusEnum: {
67
+ readonly DRAFT: "draft";
68
+ readonly ACTIVE: "active";
69
+ readonly PAUSED: "paused";
70
+ readonly CANCELLED: "cancelled";
71
+ readonly FINISHED: "finished";
72
+ };
73
+ export type BuyerSubscriptionListItemDtoStatusEnum = typeof BuyerSubscriptionListItemDtoStatusEnum[keyof typeof BuyerSubscriptionListItemDtoStatusEnum];
74
+ /**
75
+ * @export
76
+ */
77
+ export declare const BuyerSubscriptionListItemDtoTypeEnum: {
78
+ readonly RENT: "rent";
79
+ readonly LEASE_TO_OWN: "lease_to_own";
80
+ };
81
+ export type BuyerSubscriptionListItemDtoTypeEnum = typeof BuyerSubscriptionListItemDtoTypeEnum[keyof typeof BuyerSubscriptionListItemDtoTypeEnum];
82
+ /**
83
+ * Check if a given object implements the BuyerSubscriptionListItemDto interface.
84
+ */
85
+ export declare function instanceOfBuyerSubscriptionListItemDto(value: object): value is BuyerSubscriptionListItemDto;
86
+ export declare function BuyerSubscriptionListItemDtoFromJSON(json: any): BuyerSubscriptionListItemDto;
87
+ export declare function BuyerSubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerSubscriptionListItemDto;
88
+ export declare function BuyerSubscriptionListItemDtoToJSON(json: any): BuyerSubscriptionListItemDto;
89
+ export declare function BuyerSubscriptionListItemDtoToJSONTyped(value?: BuyerSubscriptionListItemDto | 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.BuyerSubscriptionListItemDtoTypeEnum = exports.BuyerSubscriptionListItemDtoStatusEnum = void 0;
17
+ exports.instanceOfBuyerSubscriptionListItemDto = instanceOfBuyerSubscriptionListItemDto;
18
+ exports.BuyerSubscriptionListItemDtoFromJSON = BuyerSubscriptionListItemDtoFromJSON;
19
+ exports.BuyerSubscriptionListItemDtoFromJSONTyped = BuyerSubscriptionListItemDtoFromJSONTyped;
20
+ exports.BuyerSubscriptionListItemDtoToJSON = BuyerSubscriptionListItemDtoToJSON;
21
+ exports.BuyerSubscriptionListItemDtoToJSONTyped = BuyerSubscriptionListItemDtoToJSONTyped;
22
+ var BuyerSubscriptionListItemDtoDomainInformation_1 = require("./BuyerSubscriptionListItemDtoDomainInformation");
23
+ var MoneyDto_1 = require("./MoneyDto");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.BuyerSubscriptionListItemDtoStatusEnum = {
28
+ DRAFT: 'draft',
29
+ ACTIVE: 'active',
30
+ PAUSED: 'paused',
31
+ CANCELLED: 'cancelled',
32
+ FINISHED: 'finished'
33
+ };
34
+ /**
35
+ * @export
36
+ */
37
+ exports.BuyerSubscriptionListItemDtoTypeEnum = {
38
+ RENT: 'rent',
39
+ LEASE_TO_OWN: 'lease_to_own'
40
+ };
41
+ /**
42
+ * Check if a given object implements the BuyerSubscriptionListItemDto interface.
43
+ */
44
+ function instanceOfBuyerSubscriptionListItemDto(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 BuyerSubscriptionListItemDtoFromJSON(json) {
62
+ return BuyerSubscriptionListItemDtoFromJSONTyped(json, false);
63
+ }
64
+ function BuyerSubscriptionListItemDtoFromJSONTyped(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, BuyerSubscriptionListItemDtoDomainInformation_1.BuyerSubscriptionListItemDtoDomainInformationFromJSON)(json['domain']),
75
+ 'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
76
+ };
77
+ }
78
+ function BuyerSubscriptionListItemDtoToJSON(json) {
79
+ return BuyerSubscriptionListItemDtoToJSONTyped(json, false);
80
+ }
81
+ function BuyerSubscriptionListItemDtoToJSONTyped(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, BuyerSubscriptionListItemDtoDomainInformation_1.BuyerSubscriptionListItemDtoDomainInformationToJSON)(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 BuyerSubscriptionListItemDtoDomainInformation
16
+ */
17
+ export interface BuyerSubscriptionListItemDtoDomainInformation {
18
+ /**
19
+ * The subscription domain TLD
20
+ * @type {string}
21
+ * @memberof BuyerSubscriptionListItemDtoDomainInformation
22
+ */
23
+ tld: string;
24
+ /**
25
+ * The subscription domain name
26
+ * @type {string}
27
+ * @memberof BuyerSubscriptionListItemDtoDomainInformation
28
+ */
29
+ name: string;
30
+ /**
31
+ * The subscription domain name
32
+ * @type {string}
33
+ * @memberof BuyerSubscriptionListItemDtoDomainInformation
34
+ */
35
+ displayName: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the BuyerSubscriptionListItemDtoDomainInformation interface.
39
+ */
40
+ export declare function instanceOfBuyerSubscriptionListItemDtoDomainInformation(value: object): value is BuyerSubscriptionListItemDtoDomainInformation;
41
+ export declare function BuyerSubscriptionListItemDtoDomainInformationFromJSON(json: any): BuyerSubscriptionListItemDtoDomainInformation;
42
+ export declare function BuyerSubscriptionListItemDtoDomainInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerSubscriptionListItemDtoDomainInformation;
43
+ export declare function BuyerSubscriptionListItemDtoDomainInformationToJSON(json: any): BuyerSubscriptionListItemDtoDomainInformation;
44
+ export declare function BuyerSubscriptionListItemDtoDomainInformationToJSONTyped(value?: BuyerSubscriptionListItemDtoDomainInformation | 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.instanceOfBuyerSubscriptionListItemDtoDomainInformation = instanceOfBuyerSubscriptionListItemDtoDomainInformation;
17
+ exports.BuyerSubscriptionListItemDtoDomainInformationFromJSON = BuyerSubscriptionListItemDtoDomainInformationFromJSON;
18
+ exports.BuyerSubscriptionListItemDtoDomainInformationFromJSONTyped = BuyerSubscriptionListItemDtoDomainInformationFromJSONTyped;
19
+ exports.BuyerSubscriptionListItemDtoDomainInformationToJSON = BuyerSubscriptionListItemDtoDomainInformationToJSON;
20
+ exports.BuyerSubscriptionListItemDtoDomainInformationToJSONTyped = BuyerSubscriptionListItemDtoDomainInformationToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the BuyerSubscriptionListItemDtoDomainInformation interface.
23
+ */
24
+ function instanceOfBuyerSubscriptionListItemDtoDomainInformation(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 BuyerSubscriptionListItemDtoDomainInformationFromJSON(json) {
34
+ return BuyerSubscriptionListItemDtoDomainInformationFromJSONTyped(json, false);
35
+ }
36
+ function BuyerSubscriptionListItemDtoDomainInformationFromJSONTyped(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 BuyerSubscriptionListItemDtoDomainInformationToJSON(json) {
47
+ return BuyerSubscriptionListItemDtoDomainInformationToJSONTyped(json, false);
48
+ }
49
+ function BuyerSubscriptionListItemDtoDomainInformationToJSONTyped(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,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 { BuyerSubscriptionListItemDto } from './BuyerSubscriptionListItemDto';
14
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface GetBuyerSubscriptions200Response
19
+ */
20
+ export interface GetBuyerSubscriptions200Response {
21
+ /**
22
+ *
23
+ * @type {Array<BuyerSubscriptionListItemDto>}
24
+ * @memberof GetBuyerSubscriptions200Response
25
+ */
26
+ data: Array<BuyerSubscriptionListItemDto>;
27
+ /**
28
+ *
29
+ * @type {PaginateResponseMeta}
30
+ * @memberof GetBuyerSubscriptions200Response
31
+ */
32
+ meta: PaginateResponseMeta;
33
+ /**
34
+ *
35
+ * @type {PaginateResponseLinks}
36
+ * @memberof GetBuyerSubscriptions200Response
37
+ */
38
+ links: PaginateResponseLinks;
39
+ }
40
+ /**
41
+ * Check if a given object implements the GetBuyerSubscriptions200Response interface.
42
+ */
43
+ export declare function instanceOfGetBuyerSubscriptions200Response(value: object): value is GetBuyerSubscriptions200Response;
44
+ export declare function GetBuyerSubscriptions200ResponseFromJSON(json: any): GetBuyerSubscriptions200Response;
45
+ export declare function GetBuyerSubscriptions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetBuyerSubscriptions200Response;
46
+ export declare function GetBuyerSubscriptions200ResponseToJSON(json: any): GetBuyerSubscriptions200Response;
47
+ export declare function GetBuyerSubscriptions200ResponseToJSONTyped(value?: GetBuyerSubscriptions200Response | 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.instanceOfGetBuyerSubscriptions200Response = instanceOfGetBuyerSubscriptions200Response;
17
+ exports.GetBuyerSubscriptions200ResponseFromJSON = GetBuyerSubscriptions200ResponseFromJSON;
18
+ exports.GetBuyerSubscriptions200ResponseFromJSONTyped = GetBuyerSubscriptions200ResponseFromJSONTyped;
19
+ exports.GetBuyerSubscriptions200ResponseToJSON = GetBuyerSubscriptions200ResponseToJSON;
20
+ exports.GetBuyerSubscriptions200ResponseToJSONTyped = GetBuyerSubscriptions200ResponseToJSONTyped;
21
+ var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
22
+ var BuyerSubscriptionListItemDto_1 = require("./BuyerSubscriptionListItemDto");
23
+ var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
24
+ /**
25
+ * Check if a given object implements the GetBuyerSubscriptions200Response interface.
26
+ */
27
+ function instanceOfGetBuyerSubscriptions200Response(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 GetBuyerSubscriptions200ResponseFromJSON(json) {
37
+ return GetBuyerSubscriptions200ResponseFromJSONTyped(json, false);
38
+ }
39
+ function GetBuyerSubscriptions200ResponseFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'data': (json['data'].map(BuyerSubscriptionListItemDto_1.BuyerSubscriptionListItemDtoFromJSON)),
45
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
46
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
47
+ };
48
+ }
49
+ function GetBuyerSubscriptions200ResponseToJSON(json) {
50
+ return GetBuyerSubscriptions200ResponseToJSONTyped(json, false);
51
+ }
52
+ function GetBuyerSubscriptions200ResponseToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'data': (value['data'].map(BuyerSubscriptionListItemDto_1.BuyerSubscriptionListItemDtoToJSON)),
59
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
60
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
61
+ };
62
+ }