@randock/nameshift-api-client 0.0.161 → 0.0.162

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.161
1
+ ## @randock/nameshift-api-client@0.0.162
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.161 --save
39
+ npm install @randock/nameshift-api-client@0.0.162 --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
- 4646247f09dc2ea5352236890c37d01c21eed95a92482c9dccbc5491f5a7a6c7a56acc6987c2ae267e6eb53027f101f5
47
+ 8740a870942c2315b93c37de4f1ae5df7e1df646df5df21058b01a8e3d0dd2ead26e9c2828b46f058ffde6bf6602b190
@@ -40,7 +40,7 @@ export interface InvoiceDto {
40
40
  * @type {Date}
41
41
  * @memberof InvoiceDto
42
42
  */
43
- date: Date;
43
+ date: Date | null;
44
44
  /**
45
45
  *
46
46
  * @type {string}
@@ -58,7 +58,7 @@ function InvoiceDtoFromJSONTyped(json, ignoreDiscriminator) {
58
58
  'id': json['id'],
59
59
  'invoiceNumber': json['invoiceNumber'],
60
60
  'domain': (0, InvoiceDomainDto_1.InvoiceDomainDtoFromJSON)(json['domain']),
61
- 'date': (new Date(json['date'])),
61
+ 'date': (json['date'] == null ? null : new Date(json['date'])),
62
62
  'status': json['status'],
63
63
  'totalPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalPrice']),
64
64
  };
@@ -75,7 +75,7 @@ function InvoiceDtoToJSONTyped(value, ignoreDiscriminator) {
75
75
  'id': value['id'],
76
76
  'invoiceNumber': value['invoiceNumber'],
77
77
  'domain': (0, InvoiceDomainDto_1.InvoiceDomainDtoToJSON)(value['domain']),
78
- 'date': ((value['date']).toISOString()),
78
+ 'date': (value['date'] == null ? null : value['date'].toISOString()),
79
79
  'status': value['status'],
80
80
  'totalPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalPrice']),
81
81
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.161",
3
+ "version": "0.0.162",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -57,7 +57,7 @@ export interface InvoiceDto {
57
57
  * @type {Date}
58
58
  * @memberof InvoiceDto
59
59
  */
60
- date: Date;
60
+ date: Date | null;
61
61
  /**
62
62
  *
63
63
  * @type {string}
@@ -110,7 +110,7 @@ export function InvoiceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
110
110
  'id': json['id'],
111
111
  'invoiceNumber': json['invoiceNumber'],
112
112
  'domain': InvoiceDomainDtoFromJSON(json['domain']),
113
- 'date': (new Date(json['date'])),
113
+ 'date': (json['date'] == null ? null : new Date(json['date'])),
114
114
  'status': json['status'],
115
115
  'totalPrice': MoneyDtoFromJSON(json['totalPrice']),
116
116
  };
@@ -130,7 +130,7 @@ export function InvoiceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
130
130
  'id': value['id'],
131
131
  'invoiceNumber': value['invoiceNumber'],
132
132
  'domain': InvoiceDomainDtoToJSON(value['domain']),
133
- 'date': ((value['date']).toISOString()),
133
+ 'date': (value['date'] == null ? null : (value['date'] as any).toISOString()),
134
134
  'status': value['status'],
135
135
  'totalPrice': MoneyDtoToJSON(value['totalPrice']),
136
136
  };