@randock/nameshift-api-client 0.0.236 → 0.0.238

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.
@@ -151,6 +151,7 @@ src/models/LeadStatusDto.ts
151
151
  src/models/LeaseToOwnConfigurationDto.ts
152
152
  src/models/LeaseToOwnConfigurationInput.ts
153
153
  src/models/LeaseToOwnConfigurationPresetsDto.ts
154
+ src/models/LeaseToOwnDto.ts
154
155
  src/models/List200Response.ts
155
156
  src/models/List200Response1.ts
156
157
  src/models/List200Response2.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.236
1
+ ## @randock/nameshift-api-client@0.0.238
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.236 --save
39
+ npm install @randock/nameshift-api-client@0.0.238 --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
- 02521abfb7cb69385f2a7f295c96ba8c67df3ff3aa36a3b27824d42aa11a460ee1a106c246627d0499e1815dbf1001e2
47
+ bcefc8f7d1eb451df26fa36b4c94a2f52d5dc399af2ca5a2bd9bc08e5cbb74881a957323694a791144b2c03bd482e8ce
@@ -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)),
@@ -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 LeaseToOwnDto
16
+ */
17
+ export interface LeaseToOwnDto {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof LeaseToOwnDto
22
+ */
23
+ enabled: boolean;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof LeaseToOwnDto
28
+ */
29
+ minMonths: number | null;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof LeaseToOwnDto
34
+ */
35
+ maxMonths: number | null;
36
+ }
37
+ /**
38
+ * Check if a given object implements the LeaseToOwnDto interface.
39
+ */
40
+ export declare function instanceOfLeaseToOwnDto(value: object): value is LeaseToOwnDto;
41
+ export declare function LeaseToOwnDtoFromJSON(json: any): LeaseToOwnDto;
42
+ export declare function LeaseToOwnDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeaseToOwnDto;
43
+ export declare function LeaseToOwnDtoToJSON(json: any): LeaseToOwnDto;
44
+ export declare function LeaseToOwnDtoToJSONTyped(value?: LeaseToOwnDto | 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.instanceOfLeaseToOwnDto = instanceOfLeaseToOwnDto;
17
+ exports.LeaseToOwnDtoFromJSON = LeaseToOwnDtoFromJSON;
18
+ exports.LeaseToOwnDtoFromJSONTyped = LeaseToOwnDtoFromJSONTyped;
19
+ exports.LeaseToOwnDtoToJSON = LeaseToOwnDtoToJSON;
20
+ exports.LeaseToOwnDtoToJSONTyped = LeaseToOwnDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LeaseToOwnDto interface.
23
+ */
24
+ function instanceOfLeaseToOwnDto(value) {
25
+ if (!('enabled' in value) || value['enabled'] === undefined)
26
+ return false;
27
+ if (!('minMonths' in value) || value['minMonths'] === undefined)
28
+ return false;
29
+ if (!('maxMonths' in value) || value['maxMonths'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function LeaseToOwnDtoFromJSON(json) {
34
+ return LeaseToOwnDtoFromJSONTyped(json, false);
35
+ }
36
+ function LeaseToOwnDtoFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'enabled': json['enabled'],
42
+ 'minMonths': json['minMonths'],
43
+ 'maxMonths': json['maxMonths'],
44
+ };
45
+ }
46
+ function LeaseToOwnDtoToJSON(json) {
47
+ return LeaseToOwnDtoToJSONTyped(json, false);
48
+ }
49
+ function LeaseToOwnDtoToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'enabled': value['enabled'],
56
+ 'minMonths': value['minMonths'],
57
+ 'maxMonths': value['maxMonths'],
58
+ };
59
+ }
@@ -10,6 +10,8 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { MoneyDto } from './MoneyDto';
13
+ import type { LeaseToOwnDto } from './LeaseToOwnDto';
14
+ import type { RentDto } from './RentDto';
13
15
  /**
14
16
  *
15
17
  * @export
@@ -40,6 +42,18 @@ export interface ParsedDomainDto {
40
42
  * @memberof ParsedDomainDto
41
43
  */
42
44
  minOffer?: MoneyDto | null;
45
+ /**
46
+ *
47
+ * @type {RentDto}
48
+ * @memberof ParsedDomainDto
49
+ */
50
+ rent?: RentDto;
51
+ /**
52
+ *
53
+ * @type {LeaseToOwnDto}
54
+ * @memberof ParsedDomainDto
55
+ */
56
+ leaseToOwn?: LeaseToOwnDto;
43
57
  }
44
58
  /**
45
59
  * @export
@@ -20,6 +20,8 @@ exports.ParsedDomainDtoFromJSONTyped = ParsedDomainDtoFromJSONTyped;
20
20
  exports.ParsedDomainDtoToJSON = ParsedDomainDtoToJSON;
21
21
  exports.ParsedDomainDtoToJSONTyped = ParsedDomainDtoToJSONTyped;
22
22
  var MoneyDto_1 = require("./MoneyDto");
23
+ var LeaseToOwnDto_1 = require("./LeaseToOwnDto");
24
+ var RentDto_1 = require("./RentDto");
23
25
  /**
24
26
  * @export
25
27
  */
@@ -50,6 +52,8 @@ function ParsedDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
50
52
  'name': json['name'],
51
53
  'buyNow': json['buyNow'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
52
54
  'minOffer': json['minOffer'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
55
+ 'rent': json['rent'] == null ? undefined : (0, RentDto_1.RentDtoFromJSON)(json['rent']),
56
+ 'leaseToOwn': json['leaseToOwn'] == null ? undefined : (0, LeaseToOwnDto_1.LeaseToOwnDtoFromJSON)(json['leaseToOwn']),
53
57
  };
54
58
  }
55
59
  function ParsedDomainDtoToJSON(json) {
@@ -65,5 +69,7 @@ function ParsedDomainDtoToJSONTyped(value, ignoreDiscriminator) {
65
69
  'name': value['name'],
66
70
  'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
67
71
  'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
72
+ 'rent': (0, RentDto_1.RentDtoToJSON)(value['rent']),
73
+ 'leaseToOwn': (0, LeaseToOwnDto_1.LeaseToOwnDtoToJSON)(value['leaseToOwn']),
68
74
  };
69
75
  }
@@ -123,6 +123,7 @@ export * from './LeadStatusDto';
123
123
  export * from './LeaseToOwnConfigurationDto';
124
124
  export * from './LeaseToOwnConfigurationInput';
125
125
  export * from './LeaseToOwnConfigurationPresetsDto';
126
+ export * from './LeaseToOwnDto';
126
127
  export * from './List200Response';
127
128
  export * from './List200Response1';
128
129
  export * from './List200Response2';
@@ -141,6 +141,7 @@ __exportStar(require("./LeadStatusDto"), exports);
141
141
  __exportStar(require("./LeaseToOwnConfigurationDto"), exports);
142
142
  __exportStar(require("./LeaseToOwnConfigurationInput"), exports);
143
143
  __exportStar(require("./LeaseToOwnConfigurationPresetsDto"), exports);
144
+ __exportStar(require("./LeaseToOwnDto"), exports);
144
145
  __exportStar(require("./List200Response"), exports);
145
146
  __exportStar(require("./List200Response1"), exports);
146
147
  __exportStar(require("./List200Response2"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.236",
3
+ "version": "0.0.238",
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)),
@@ -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 LeaseToOwnDto
20
+ */
21
+ export interface LeaseToOwnDto {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof LeaseToOwnDto
26
+ */
27
+ enabled: boolean;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof LeaseToOwnDto
32
+ */
33
+ minMonths: number | null;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof LeaseToOwnDto
38
+ */
39
+ maxMonths: number | null;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the LeaseToOwnDto interface.
44
+ */
45
+ export function instanceOfLeaseToOwnDto(value: object): value is LeaseToOwnDto {
46
+ if (!('enabled' in value) || value['enabled'] === undefined) return false;
47
+ if (!('minMonths' in value) || value['minMonths'] === undefined) return false;
48
+ if (!('maxMonths' in value) || value['maxMonths'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function LeaseToOwnDtoFromJSON(json: any): LeaseToOwnDto {
53
+ return LeaseToOwnDtoFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function LeaseToOwnDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeaseToOwnDto {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'enabled': json['enabled'],
63
+ 'minMonths': json['minMonths'],
64
+ 'maxMonths': json['maxMonths'],
65
+ };
66
+ }
67
+
68
+ export function LeaseToOwnDtoToJSON(json: any): LeaseToOwnDto {
69
+ return LeaseToOwnDtoToJSONTyped(json, false);
70
+ }
71
+
72
+ export function LeaseToOwnDtoToJSONTyped(value?: LeaseToOwnDto | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'enabled': value['enabled'],
80
+ 'minMonths': value['minMonths'],
81
+ 'maxMonths': value['maxMonths'],
82
+ };
83
+ }
84
+
@@ -20,6 +20,20 @@ import {
20
20
  MoneyDtoToJSON,
21
21
  MoneyDtoToJSONTyped,
22
22
  } from './MoneyDto';
23
+ import type { LeaseToOwnDto } from './LeaseToOwnDto';
24
+ import {
25
+ LeaseToOwnDtoFromJSON,
26
+ LeaseToOwnDtoFromJSONTyped,
27
+ LeaseToOwnDtoToJSON,
28
+ LeaseToOwnDtoToJSONTyped,
29
+ } from './LeaseToOwnDto';
30
+ import type { RentDto } from './RentDto';
31
+ import {
32
+ RentDtoFromJSON,
33
+ RentDtoFromJSONTyped,
34
+ RentDtoToJSON,
35
+ RentDtoToJSONTyped,
36
+ } from './RentDto';
23
37
 
24
38
  /**
25
39
  *
@@ -51,6 +65,18 @@ export interface ParsedDomainDto {
51
65
  * @memberof ParsedDomainDto
52
66
  */
53
67
  minOffer?: MoneyDto | null;
68
+ /**
69
+ *
70
+ * @type {RentDto}
71
+ * @memberof ParsedDomainDto
72
+ */
73
+ rent?: RentDto;
74
+ /**
75
+ *
76
+ * @type {LeaseToOwnDto}
77
+ * @memberof ParsedDomainDto
78
+ */
79
+ leaseToOwn?: LeaseToOwnDto;
54
80
  }
55
81
 
56
82
 
@@ -88,6 +114,8 @@ export function ParsedDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
88
114
  'name': json['name'],
89
115
  'buyNow': json['buyNow'] == null ? undefined : MoneyDtoFromJSON(json['buyNow']),
90
116
  'minOffer': json['minOffer'] == null ? undefined : MoneyDtoFromJSON(json['minOffer']),
117
+ 'rent': json['rent'] == null ? undefined : RentDtoFromJSON(json['rent']),
118
+ 'leaseToOwn': json['leaseToOwn'] == null ? undefined : LeaseToOwnDtoFromJSON(json['leaseToOwn']),
91
119
  };
92
120
  }
93
121
 
@@ -106,6 +134,8 @@ export function ParsedDomainDtoToJSONTyped(value?: ParsedDomainDto | null, ignor
106
134
  'name': value['name'],
107
135
  'buyNow': MoneyDtoToJSON(value['buyNow']),
108
136
  'minOffer': MoneyDtoToJSON(value['minOffer']),
137
+ 'rent': RentDtoToJSON(value['rent']),
138
+ 'leaseToOwn': LeaseToOwnDtoToJSON(value['leaseToOwn']),
109
139
  };
110
140
  }
111
141
 
@@ -125,6 +125,7 @@ export * from './LeadStatusDto';
125
125
  export * from './LeaseToOwnConfigurationDto';
126
126
  export * from './LeaseToOwnConfigurationInput';
127
127
  export * from './LeaseToOwnConfigurationPresetsDto';
128
+ export * from './LeaseToOwnDto';
128
129
  export * from './List200Response';
129
130
  export * from './List200Response1';
130
131
  export * from './List200Response2';