@digital8/scope-backend-ts-sdk 0.0.3 → 0.0.4
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 +2 -2
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/BusinessUnitResource.d.ts +1 -1
- package/dist/models/BusinessUnitResource.js +3 -1
- package/package.json +1 -1
- package/src/models/AddressResource.ts +3 -2
- package/src/models/BusinessUnitResource.ts +3 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/scope-backend-ts-sdk@0.0.
|
|
1
|
+
## @digital8/scope-backend-ts-sdk@0.0.4
|
|
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.
|
|
39
|
+
npm install @digital8/scope-backend-ts-sdk@0.0.4 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -24,6 +24,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
25
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('addressLine2' in value) || value['addressLine2'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
28
30
|
return false;
|
|
29
31
|
if (!('city' in value) || value['city'] === undefined)
|
|
@@ -48,7 +50,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
return {
|
|
49
51
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
52
|
'addressLine1': json['addressLine1'],
|
|
51
|
-
'addressLine2': json['addressLine2']
|
|
53
|
+
'addressLine2': json['addressLine2'],
|
|
52
54
|
'suburb': json['suburb'],
|
|
53
55
|
'city': json['city'],
|
|
54
56
|
'state': json['state'],
|
|
@@ -55,6 +55,8 @@ 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;
|
|
58
60
|
if (!('mobile' in value) || value['mobile'] === undefined)
|
|
59
61
|
return false;
|
|
60
62
|
if (!('timezone' in value) || value['timezone'] === undefined)
|
|
@@ -97,7 +99,7 @@ function BusinessUnitResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
97
99
|
'contacts': (json['contacts'] == null ? null : json['contacts'].map(ContactResource_1.ContactResourceFromJSON)),
|
|
98
100
|
'serviceProviders': (json['serviceProviders'] == null ? null : json['serviceProviders'].map(ServiceProviderResource_1.ServiceProviderResourceFromJSON)),
|
|
99
101
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
100
|
-
'phone': json['phone']
|
|
102
|
+
'phone': json['phone'],
|
|
101
103
|
'mobile': json['mobile'],
|
|
102
104
|
'timezone': json['timezone'],
|
|
103
105
|
'email': json['email'],
|
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@ export interface AddressResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressResource
|
|
38
38
|
*/
|
|
39
|
-
addressLine2
|
|
39
|
+
addressLine2: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -80,6 +80,7 @@ export interface AddressResource {
|
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
82
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
|
|
83
|
+
if (!('addressLine2' in value) || value['addressLine2'] === undefined) return false;
|
|
83
84
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
84
85
|
if (!('city' in value) || value['city'] === undefined) return false;
|
|
85
86
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
@@ -101,7 +102,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
101
102
|
|
|
102
103
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
104
|
'addressLine1': json['addressLine1'],
|
|
104
|
-
'addressLine2': json['addressLine2']
|
|
105
|
+
'addressLine2': json['addressLine2'],
|
|
105
106
|
'suburb': json['suburb'],
|
|
106
107
|
'city': json['city'],
|
|
107
108
|
'state': json['state'],
|
|
@@ -158,7 +158,7 @@ export interface BusinessUnitResource {
|
|
|
158
158
|
* @type {string}
|
|
159
159
|
* @memberof BusinessUnitResource
|
|
160
160
|
*/
|
|
161
|
-
phone
|
|
161
|
+
phone: string;
|
|
162
162
|
/**
|
|
163
163
|
*
|
|
164
164
|
* @type {string}
|
|
@@ -256,6 +256,7 @@ 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;
|
|
259
260
|
if (!('mobile' in value) || value['mobile'] === undefined) return false;
|
|
260
261
|
if (!('timezone' in value) || value['timezone'] === undefined) return false;
|
|
261
262
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
@@ -292,7 +293,7 @@ export function BusinessUnitResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
292
293
|
'contacts': (json['contacts'] == null ? null : (json['contacts'] as Array<any>).map(ContactResourceFromJSON)),
|
|
293
294
|
'serviceProviders': (json['serviceProviders'] == null ? null : (json['serviceProviders'] as Array<any>).map(ServiceProviderResourceFromJSON)),
|
|
294
295
|
'address': AddressResourceFromJSON(json['address']),
|
|
295
|
-
'phone': json['phone']
|
|
296
|
+
'phone': json['phone'],
|
|
296
297
|
'mobile': json['mobile'],
|
|
297
298
|
'timezone': json['timezone'],
|
|
298
299
|
'email': json['email'],
|