@digital8/scope-backend-ts-sdk 0.0.1 → 0.0.2

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
- ## @digital8/scope-backend-ts-sdk@0.0.1
1
+ ## @digital8/scope-backend-ts-sdk@0.0.2
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 @digital8/scope-backend-ts-sdk@0.0.1 --save
39
+ npm install @digital8/scope-backend-ts-sdk@0.0.2 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -41,7 +41,7 @@ export interface BusinessResource {
41
41
  * @type {string}
42
42
  * @memberof BusinessResource
43
43
  */
44
- phone: string;
44
+ phone?: string | null;
45
45
  /**
46
46
  *
47
47
  * @type {string}
@@ -29,8 +29,6 @@ function instanceOfBusinessResource(value) {
29
29
  return false;
30
30
  if (!('address' in value) || value['address'] === undefined)
31
31
  return false;
32
- if (!('phone' in value) || value['phone'] === undefined)
33
- return false;
34
32
  if (!('mobile' in value) || value['mobile'] === undefined)
35
33
  return false;
36
34
  if (!('email' in value) || value['email'] === undefined)
@@ -54,7 +52,7 @@ function BusinessResourceFromJSONTyped(json, ignoreDiscriminator) {
54
52
  'id': json['id'] == null ? undefined : json['id'],
55
53
  'name': json['name'],
56
54
  'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
57
- 'phone': json['phone'],
55
+ 'phone': json['phone'] == null ? undefined : json['phone'],
58
56
  'mobile': json['mobile'],
59
57
  'email': json['email'],
60
58
  'manager': (0, UserRelationResource_1.UserRelationResourceFromJSON)(json['manager']),
@@ -111,7 +111,7 @@ export interface BusinessUnitResource {
111
111
  * @type {string}
112
112
  * @memberof BusinessUnitResource
113
113
  */
114
- phone: string;
114
+ phone?: string | null;
115
115
  /**
116
116
  *
117
117
  * @type {string}
@@ -55,8 +55,6 @@ function instanceOfBusinessUnitResource(value) {
55
55
  return false;
56
56
  if (!('address' in value) || value['address'] === undefined)
57
57
  return false;
58
- if (!('phone' in value) || value['phone'] === undefined)
59
- return false;
60
58
  if (!('mobile' in value) || value['mobile'] === undefined)
61
59
  return false;
62
60
  if (!('timezone' in value) || value['timezone'] === undefined)
@@ -99,7 +97,7 @@ function BusinessUnitResourceFromJSONTyped(json, ignoreDiscriminator) {
99
97
  'contacts': (json['contacts'] == null ? null : json['contacts'].map(ContactResource_1.ContactResourceFromJSON)),
100
98
  'serviceProviders': (json['serviceProviders'] == null ? null : json['serviceProviders'].map(ServiceProviderResource_1.ServiceProviderResourceFromJSON)),
101
99
  'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
102
- 'phone': json['phone'],
100
+ 'phone': json['phone'] == null ? undefined : json['phone'],
103
101
  'mobile': json['mobile'],
104
102
  'timezone': json['timezone'],
105
103
  'email': json['email'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/scope-backend-ts-sdk",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "OpenAPI client for @digital8/scope-backend-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -64,7 +64,7 @@ export interface BusinessResource {
64
64
  * @type {string}
65
65
  * @memberof BusinessResource
66
66
  */
67
- phone: string;
67
+ phone?: string | null;
68
68
  /**
69
69
  *
70
70
  * @type {string}
@@ -103,7 +103,6 @@ export interface BusinessResource {
103
103
  export function instanceOfBusinessResource(value: object): value is BusinessResource {
104
104
  if (!('name' in value) || value['name'] === undefined) return false;
105
105
  if (!('address' in value) || value['address'] === undefined) return false;
106
- if (!('phone' in value) || value['phone'] === undefined) return false;
107
106
  if (!('mobile' in value) || value['mobile'] === undefined) return false;
108
107
  if (!('email' in value) || value['email'] === undefined) return false;
109
108
  if (!('manager' in value) || value['manager'] === undefined) return false;
@@ -125,7 +124,7 @@ export function BusinessResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
125
124
  'id': json['id'] == null ? undefined : json['id'],
126
125
  'name': json['name'],
127
126
  'address': AddressResourceFromJSON(json['address']),
128
- 'phone': json['phone'],
127
+ 'phone': json['phone'] == null ? undefined : json['phone'],
129
128
  'mobile': json['mobile'],
130
129
  'email': json['email'],
131
130
  'manager': UserRelationResourceFromJSON(json['manager']),
@@ -158,7 +158,7 @@ export interface BusinessUnitResource {
158
158
  * @type {string}
159
159
  * @memberof BusinessUnitResource
160
160
  */
161
- phone: string;
161
+ phone?: string | null;
162
162
  /**
163
163
  *
164
164
  * @type {string}
@@ -256,7 +256,6 @@ export function instanceOfBusinessUnitResource(value: object): value is Business
256
256
  if (!('contacts' in value) || value['contacts'] === undefined) return false;
257
257
  if (!('serviceProviders' in value) || value['serviceProviders'] === undefined) return false;
258
258
  if (!('address' in value) || value['address'] === undefined) return false;
259
- if (!('phone' in value) || value['phone'] === undefined) return false;
260
259
  if (!('mobile' in value) || value['mobile'] === undefined) return false;
261
260
  if (!('timezone' in value) || value['timezone'] === undefined) return false;
262
261
  if (!('email' in value) || value['email'] === undefined) return false;
@@ -293,7 +292,7 @@ export function BusinessUnitResourceFromJSONTyped(json: any, ignoreDiscriminator
293
292
  'contacts': (json['contacts'] == null ? null : (json['contacts'] as Array<any>).map(ContactResourceFromJSON)),
294
293
  'serviceProviders': (json['serviceProviders'] == null ? null : (json['serviceProviders'] as Array<any>).map(ServiceProviderResourceFromJSON)),
295
294
  'address': AddressResourceFromJSON(json['address']),
296
- 'phone': json['phone'],
295
+ 'phone': json['phone'] == null ? undefined : json['phone'],
297
296
  'mobile': json['mobile'],
298
297
  'timezone': json['timezone'],
299
298
  'email': json['email'],