@randock/nameshift-api-client 0.0.235 → 0.0.237

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.
@@ -197,6 +197,7 @@ src/models/RelatedSellerDomain.ts
197
197
  src/models/RentConfigurationDto.ts
198
198
  src/models/RentConfigurationInput.ts
199
199
  src/models/RentConfigurationPresetsDto.ts
200
+ src/models/RentDto.ts
200
201
  src/models/RequestAccessTokenInput.ts
201
202
  src/models/SellerDomainTransferAuthCodeDto.ts
202
203
  src/models/SellerDomainTransferDomainDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.235
1
+ ## @randock/nameshift-api-client@0.0.237
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.235 --save
39
+ npm install @randock/nameshift-api-client@0.0.237 --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
- 4946203675ba3a3b913898b51acc04add7cfdafb641bbeba0d2ce66731784fe70119abc594b3c682720fcff0ba8d10cd
47
+ dadd5853e7158ad505019292b0a48d2f7816a37e6ee3ce3e8ab941e880700d28f92a031725c43adb74f1782a2500b697
@@ -22,6 +22,12 @@ export interface DomainStatsDto {
22
22
  * @memberof DomainStatsDto
23
23
  */
24
24
  websiteId: string;
25
+ /**
26
+ * The url for public stats for this website.
27
+ * @type {string}
28
+ * @memberof DomainStatsDto
29
+ */
30
+ scriptUrl: string;
25
31
  /**
26
32
  * The url for public stats for this website.
27
33
  * @type {string}
@@ -33,6 +33,8 @@ exports.DomainStatsDtoChartUnitEnum = {
33
33
  function instanceOfDomainStatsDto(value) {
34
34
  if (!('websiteId' in value) || value['websiteId'] === undefined)
35
35
  return false;
36
+ if (!('scriptUrl' in value) || value['scriptUrl'] === undefined)
37
+ return false;
36
38
  if (!('shareUrl' in value) || value['shareUrl'] === undefined)
37
39
  return false;
38
40
  if (!('chartUnit' in value) || value['chartUnit'] === undefined)
@@ -50,6 +52,7 @@ function DomainStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
50
52
  }
51
53
  return {
52
54
  'websiteId': json['websiteId'],
55
+ 'scriptUrl': json['scriptUrl'],
53
56
  'shareUrl': json['shareUrl'],
54
57
  'chartUnit': json['chartUnit'],
55
58
  'chartData': (json['chartData'] == null ? null : json['chartData'].map(ChartDataPoint_1.ChartDataPointFromJSON)),
@@ -65,6 +68,7 @@ function DomainStatsDtoToJSONTyped(value, ignoreDiscriminator) {
65
68
  }
66
69
  return {
67
70
  'websiteId': value['websiteId'],
71
+ 'scriptUrl': value['scriptUrl'],
68
72
  'shareUrl': value['shareUrl'],
69
73
  'chartUnit': value['chartUnit'],
70
74
  'chartData': (value['chartData'] == null ? null : value['chartData'].map(ChartDataPoint_1.ChartDataPointToJSON)),
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { MoneyDto } from './MoneyDto';
13
+ import type { RentDto } from './RentDto';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -40,6 +41,12 @@ export interface RelatedSellerDomain {
40
41
  * @memberof RelatedSellerDomain
41
42
  */
42
43
  minOffer: MoneyDto | null;
44
+ /**
45
+ *
46
+ * @type {RentDto}
47
+ * @memberof RelatedSellerDomain
48
+ */
49
+ rent: RentDto;
43
50
  /**
44
51
  *
45
52
  * @type {string}
@@ -19,6 +19,7 @@ exports.RelatedSellerDomainFromJSONTyped = RelatedSellerDomainFromJSONTyped;
19
19
  exports.RelatedSellerDomainToJSON = RelatedSellerDomainToJSON;
20
20
  exports.RelatedSellerDomainToJSONTyped = RelatedSellerDomainToJSONTyped;
21
21
  var MoneyDto_1 = require("./MoneyDto");
22
+ var RentDto_1 = require("./RentDto");
22
23
  /**
23
24
  * Check if a given object implements the RelatedSellerDomain interface.
24
25
  */
@@ -31,6 +32,8 @@ function instanceOfRelatedSellerDomain(value) {
31
32
  return false;
32
33
  if (!('minOffer' in value) || value['minOffer'] === undefined)
33
34
  return false;
35
+ if (!('rent' in value) || value['rent'] === undefined)
36
+ return false;
34
37
  if (!('url' in value) || value['url'] === undefined)
35
38
  return false;
36
39
  return true;
@@ -47,6 +50,7 @@ function RelatedSellerDomainFromJSONTyped(json, ignoreDiscriminator) {
47
50
  'displayName': json['displayName'],
48
51
  'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
49
52
  'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
53
+ 'rent': (0, RentDto_1.RentDtoFromJSON)(json['rent']),
50
54
  'url': json['url'],
51
55
  };
52
56
  }
@@ -63,6 +67,7 @@ function RelatedSellerDomainToJSONTyped(value, ignoreDiscriminator) {
63
67
  'displayName': value['displayName'],
64
68
  'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
65
69
  'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
70
+ 'rent': (0, RentDto_1.RentDtoToJSON)(value['rent']),
66
71
  'url': value['url'],
67
72
  };
68
73
  }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { MoneyDto } from './MoneyDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RentDto
17
+ */
18
+ export interface RentDto {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof RentDto
23
+ */
24
+ enabled: boolean;
25
+ /**
26
+ *
27
+ * @type {MoneyDto}
28
+ * @memberof RentDto
29
+ */
30
+ price: MoneyDto | null;
31
+ }
32
+ /**
33
+ * Check if a given object implements the RentDto interface.
34
+ */
35
+ export declare function instanceOfRentDto(value: object): value is RentDto;
36
+ export declare function RentDtoFromJSON(json: any): RentDto;
37
+ export declare function RentDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RentDto;
38
+ export declare function RentDtoToJSON(json: any): RentDto;
39
+ export declare function RentDtoToJSONTyped(value?: RentDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.instanceOfRentDto = instanceOfRentDto;
17
+ exports.RentDtoFromJSON = RentDtoFromJSON;
18
+ exports.RentDtoFromJSONTyped = RentDtoFromJSONTyped;
19
+ exports.RentDtoToJSON = RentDtoToJSON;
20
+ exports.RentDtoToJSONTyped = RentDtoToJSONTyped;
21
+ var MoneyDto_1 = require("./MoneyDto");
22
+ /**
23
+ * Check if a given object implements the RentDto interface.
24
+ */
25
+ function instanceOfRentDto(value) {
26
+ if (!('enabled' in value) || value['enabled'] === undefined)
27
+ return false;
28
+ if (!('price' in value) || value['price'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function RentDtoFromJSON(json) {
33
+ return RentDtoFromJSONTyped(json, false);
34
+ }
35
+ function RentDtoFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'enabled': json['enabled'],
41
+ 'price': (0, MoneyDto_1.MoneyDtoFromJSON)(json['price']),
42
+ };
43
+ }
44
+ function RentDtoToJSON(json) {
45
+ return RentDtoToJSONTyped(json, false);
46
+ }
47
+ function RentDtoToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'enabled': value['enabled'],
54
+ 'price': (0, MoneyDto_1.MoneyDtoToJSON)(value['price']),
55
+ };
56
+ }
@@ -169,6 +169,7 @@ export * from './RelatedSellerDomain';
169
169
  export * from './RentConfigurationDto';
170
170
  export * from './RentConfigurationInput';
171
171
  export * from './RentConfigurationPresetsDto';
172
+ export * from './RentDto';
172
173
  export * from './RequestAccessTokenInput';
173
174
  export * from './SellerDomainTransferAuthCodeDto';
174
175
  export * from './SellerDomainTransferDomainDto';
@@ -187,6 +187,7 @@ __exportStar(require("./RelatedSellerDomain"), exports);
187
187
  __exportStar(require("./RentConfigurationDto"), exports);
188
188
  __exportStar(require("./RentConfigurationInput"), exports);
189
189
  __exportStar(require("./RentConfigurationPresetsDto"), exports);
190
+ __exportStar(require("./RentDto"), exports);
190
191
  __exportStar(require("./RequestAccessTokenInput"), exports);
191
192
  __exportStar(require("./SellerDomainTransferAuthCodeDto"), exports);
192
193
  __exportStar(require("./SellerDomainTransferDomainDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.235",
3
+ "version": "0.0.237",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -33,6 +33,12 @@ export interface DomainStatsDto {
33
33
  * @memberof DomainStatsDto
34
34
  */
35
35
  websiteId: string;
36
+ /**
37
+ * The url for public stats for this website.
38
+ * @type {string}
39
+ * @memberof DomainStatsDto
40
+ */
41
+ scriptUrl: string;
36
42
  /**
37
43
  * The url for public stats for this website.
38
44
  * @type {string}
@@ -69,6 +75,7 @@ export type DomainStatsDtoChartUnitEnum = typeof DomainStatsDtoChartUnitEnum[key
69
75
  */
70
76
  export function instanceOfDomainStatsDto(value: object): value is DomainStatsDto {
71
77
  if (!('websiteId' in value) || value['websiteId'] === undefined) return false;
78
+ if (!('scriptUrl' in value) || value['scriptUrl'] === undefined) return false;
72
79
  if (!('shareUrl' in value) || value['shareUrl'] === undefined) return false;
73
80
  if (!('chartUnit' in value) || value['chartUnit'] === undefined) return false;
74
81
  if (!('chartData' in value) || value['chartData'] === undefined) return false;
@@ -86,6 +93,7 @@ export function DomainStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: bool
86
93
  return {
87
94
 
88
95
  'websiteId': json['websiteId'],
96
+ 'scriptUrl': json['scriptUrl'],
89
97
  'shareUrl': json['shareUrl'],
90
98
  'chartUnit': json['chartUnit'],
91
99
  'chartData': (json['chartData'] == null ? null : (json['chartData'] as Array<any>).map(ChartDataPointFromJSON)),
@@ -104,6 +112,7 @@ export function DomainStatsDtoToJSONTyped(value?: DomainStatsDto | null, ignoreD
104
112
  return {
105
113
 
106
114
  'websiteId': value['websiteId'],
115
+ 'scriptUrl': value['scriptUrl'],
107
116
  'shareUrl': value['shareUrl'],
108
117
  'chartUnit': value['chartUnit'],
109
118
  'chartData': (value['chartData'] == null ? null : (value['chartData'] as Array<any>).map(ChartDataPointToJSON)),
@@ -20,6 +20,13 @@ import {
20
20
  MoneyDtoToJSON,
21
21
  MoneyDtoToJSONTyped,
22
22
  } from './MoneyDto';
23
+ import type { RentDto } from './RentDto';
24
+ import {
25
+ RentDtoFromJSON,
26
+ RentDtoFromJSONTyped,
27
+ RentDtoToJSON,
28
+ RentDtoToJSONTyped,
29
+ } from './RentDto';
23
30
 
24
31
  /**
25
32
  *
@@ -51,6 +58,12 @@ export interface RelatedSellerDomain {
51
58
  * @memberof RelatedSellerDomain
52
59
  */
53
60
  minOffer: MoneyDto | null;
61
+ /**
62
+ *
63
+ * @type {RentDto}
64
+ * @memberof RelatedSellerDomain
65
+ */
66
+ rent: RentDto;
54
67
  /**
55
68
  *
56
69
  * @type {string}
@@ -67,6 +80,7 @@ export function instanceOfRelatedSellerDomain(value: object): value is RelatedSe
67
80
  if (!('displayName' in value) || value['displayName'] === undefined) return false;
68
81
  if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
69
82
  if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
83
+ if (!('rent' in value) || value['rent'] === undefined) return false;
70
84
  if (!('url' in value) || value['url'] === undefined) return false;
71
85
  return true;
72
86
  }
@@ -85,6 +99,7 @@ export function RelatedSellerDomainFromJSONTyped(json: any, ignoreDiscriminator:
85
99
  'displayName': json['displayName'],
86
100
  'buyNow': MoneyDtoFromJSON(json['buyNow']),
87
101
  'minOffer': MoneyDtoFromJSON(json['minOffer']),
102
+ 'rent': RentDtoFromJSON(json['rent']),
88
103
  'url': json['url'],
89
104
  };
90
105
  }
@@ -104,6 +119,7 @@ export function RelatedSellerDomainToJSONTyped(value?: RelatedSellerDomain | nul
104
119
  'displayName': value['displayName'],
105
120
  'buyNow': MoneyDtoToJSON(value['buyNow']),
106
121
  'minOffer': MoneyDtoToJSON(value['minOffer']),
122
+ 'rent': RentDtoToJSON(value['rent']),
107
123
  'url': value['url'],
108
124
  };
109
125
  }
@@ -0,0 +1,83 @@
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 { MoneyDto } from './MoneyDto';
17
+ import {
18
+ MoneyDtoFromJSON,
19
+ MoneyDtoFromJSONTyped,
20
+ MoneyDtoToJSON,
21
+ MoneyDtoToJSONTyped,
22
+ } from './MoneyDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface RentDto
28
+ */
29
+ export interface RentDto {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof RentDto
34
+ */
35
+ enabled: boolean;
36
+ /**
37
+ *
38
+ * @type {MoneyDto}
39
+ * @memberof RentDto
40
+ */
41
+ price: MoneyDto | null;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the RentDto interface.
46
+ */
47
+ export function instanceOfRentDto(value: object): value is RentDto {
48
+ if (!('enabled' in value) || value['enabled'] === undefined) return false;
49
+ if (!('price' in value) || value['price'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function RentDtoFromJSON(json: any): RentDto {
54
+ return RentDtoFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function RentDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RentDto {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'enabled': json['enabled'],
64
+ 'price': MoneyDtoFromJSON(json['price']),
65
+ };
66
+ }
67
+
68
+ export function RentDtoToJSON(json: any): RentDto {
69
+ return RentDtoToJSONTyped(json, false);
70
+ }
71
+
72
+ export function RentDtoToJSONTyped(value?: RentDto | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'enabled': value['enabled'],
80
+ 'price': MoneyDtoToJSON(value['price']),
81
+ };
82
+ }
83
+
@@ -171,6 +171,7 @@ export * from './RelatedSellerDomain';
171
171
  export * from './RentConfigurationDto';
172
172
  export * from './RentConfigurationInput';
173
173
  export * from './RentConfigurationPresetsDto';
174
+ export * from './RentDto';
174
175
  export * from './RequestAccessTokenInput';
175
176
  export * from './SellerDomainTransferAuthCodeDto';
176
177
  export * from './SellerDomainTransferDomainDto';