@managespace/sdk 0.0.105 → 0.0.106
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/dist/generated/models/address-response.d.ts +13 -0
- package/dist/generated/models/address-response.d.ts.map +1 -1
- package/dist/generated/models/address-response.js +7 -0
- package/dist/generated/models/create-site-custom.d.ts +7 -0
- package/dist/generated/models/create-site-custom.d.ts.map +1 -1
- package/dist/generated/models/create-site-custom.js +5 -0
- package/dist/generated/models/site-response.d.ts +13 -0
- package/dist/generated/models/site-response.d.ts.map +1 -1
- package/dist/generated/models/site-response.js +7 -0
- package/package.deploy.json +33 -0
- package/package.json +1 -1
- package/src/generated/models/address-response.ts +24 -0
- package/src/generated/models/create-site-custom.ts +17 -0
- package/src/generated/models/site-response.ts +24 -0
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ContactResponse } from './contact-response';
|
|
13
|
+
import type { SiteResponse } from './site-response';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -70,6 +71,18 @@ export interface AddressResponse {
|
|
|
70
71
|
* @memberof AddressResponse
|
|
71
72
|
*/
|
|
72
73
|
contact?: Array<ContactResponse>;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {SiteResponse}
|
|
77
|
+
* @memberof AddressResponse
|
|
78
|
+
*/
|
|
79
|
+
site?: SiteResponse | null;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof AddressResponse
|
|
84
|
+
*/
|
|
85
|
+
siteId: string | null;
|
|
73
86
|
}
|
|
74
87
|
/**
|
|
75
88
|
* Check if a given object implements the AddressResponse interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/address-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"address-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/address-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAO1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAQpD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IACjC;;;;OAIG;IACH,IAAI,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAWjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAkBrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAmBpH"}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.AddressResponseToJSONTyped = exports.AddressResponseToJSON = exports.AddressResponseFromJSONTyped = exports.AddressResponseFromJSON = exports.instanceOfAddressResponse = void 0;
|
|
17
17
|
const contact_response_1 = require("./contact-response");
|
|
18
|
+
const site_response_1 = require("./site-response");
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the AddressResponse interface.
|
|
20
21
|
*/
|
|
@@ -35,6 +36,8 @@ function instanceOfAddressResponse(value) {
|
|
|
35
36
|
return false;
|
|
36
37
|
if (!('county' in value) || value['county'] === undefined)
|
|
37
38
|
return false;
|
|
39
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
40
|
+
return false;
|
|
38
41
|
return true;
|
|
39
42
|
}
|
|
40
43
|
exports.instanceOfAddressResponse = instanceOfAddressResponse;
|
|
@@ -56,6 +59,8 @@ function AddressResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
59
|
'country': json['country'],
|
|
57
60
|
'county': json['county'],
|
|
58
61
|
'contact': json['contact'] == null ? undefined : (json['contact'].map(contact_response_1.ContactResponseFromJSON)),
|
|
62
|
+
'site': json['site'] == null ? undefined : (0, site_response_1.SiteResponseFromJSON)(json['site']),
|
|
63
|
+
'siteId': json['siteId'],
|
|
59
64
|
};
|
|
60
65
|
}
|
|
61
66
|
exports.AddressResponseFromJSONTyped = AddressResponseFromJSONTyped;
|
|
@@ -77,6 +82,8 @@ function AddressResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
77
82
|
'country': value['country'],
|
|
78
83
|
'county': value['county'],
|
|
79
84
|
'contact': value['contact'] == null ? undefined : (value['contact'].map(contact_response_1.ContactResponseToJSON)),
|
|
85
|
+
'site': (0, site_response_1.SiteResponseToJSON)(value['site']),
|
|
86
|
+
'siteId': value['siteId'],
|
|
80
87
|
};
|
|
81
88
|
}
|
|
82
89
|
exports.AddressResponseToJSONTyped = AddressResponseToJSONTyped;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { CreateAddress } from './create-address';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -51,6 +52,12 @@ export interface CreateSiteCustom {
|
|
|
51
52
|
* @memberof CreateSiteCustom
|
|
52
53
|
*/
|
|
53
54
|
userIds: Array<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Site address.
|
|
57
|
+
* @type {CreateAddress}
|
|
58
|
+
* @memberof CreateSiteCustom
|
|
59
|
+
*/
|
|
60
|
+
address: CreateAddress;
|
|
54
61
|
}
|
|
55
62
|
/**
|
|
56
63
|
* Check if a given object implements the CreateSiteCustom interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-site-custom.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-site-custom.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,
|
|
1
|
+
{"version":3,"file":"create-site-custom.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-site-custom.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAQtD;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB;;;;OAIG;IACH,OAAO,EAAE,aAAa,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CASnF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAcvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAetH"}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CreateSiteCustomToJSONTyped = exports.CreateSiteCustomToJSON = exports.CreateSiteCustomFromJSONTyped = exports.CreateSiteCustomFromJSON = exports.instanceOfCreateSiteCustom = void 0;
|
|
17
|
+
const create_address_1 = require("./create-address");
|
|
17
18
|
/**
|
|
18
19
|
* Check if a given object implements the CreateSiteCustom interface.
|
|
19
20
|
*/
|
|
@@ -30,6 +31,8 @@ function instanceOfCreateSiteCustom(value) {
|
|
|
30
31
|
return false;
|
|
31
32
|
if (!('userIds' in value) || value['userIds'] === undefined)
|
|
32
33
|
return false;
|
|
34
|
+
if (!('address' in value) || value['address'] === undefined)
|
|
35
|
+
return false;
|
|
33
36
|
return true;
|
|
34
37
|
}
|
|
35
38
|
exports.instanceOfCreateSiteCustom = instanceOfCreateSiteCustom;
|
|
@@ -48,6 +51,7 @@ function CreateSiteCustomFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
51
|
'phoneNumber': json['phoneNumber'],
|
|
49
52
|
'typeIds': json['typeIds'],
|
|
50
53
|
'userIds': json['userIds'],
|
|
54
|
+
'address': (0, create_address_1.CreateAddressFromJSON)(json['address']),
|
|
51
55
|
};
|
|
52
56
|
}
|
|
53
57
|
exports.CreateSiteCustomFromJSONTyped = CreateSiteCustomFromJSONTyped;
|
|
@@ -66,6 +70,7 @@ function CreateSiteCustomToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
70
|
'phoneNumber': value['phoneNumber'],
|
|
67
71
|
'typeIds': value['typeIds'],
|
|
68
72
|
'userIds': value['userIds'],
|
|
73
|
+
'address': (0, create_address_1.CreateAddressToJSON)(value['address']),
|
|
69
74
|
};
|
|
70
75
|
}
|
|
71
76
|
exports.CreateSiteCustomToJSONTyped = CreateSiteCustomToJSONTyped;
|
|
@@ -22,6 +22,7 @@ import type { TaskTemplateResponse } from './task-template-response';
|
|
|
22
22
|
import type { NotificationResponse } from './notification-response';
|
|
23
23
|
import type { ExtensibilityFunctionInstanceResponse } from './extensibility-function-instance-response';
|
|
24
24
|
import type { TaskResponse } from './task-response';
|
|
25
|
+
import type { AddressResponse } from './address-response';
|
|
25
26
|
import type { SiteTypeResponse3 } from './site-type-response3';
|
|
26
27
|
/**
|
|
27
28
|
*
|
|
@@ -161,6 +162,18 @@ export interface SiteResponse {
|
|
|
161
162
|
* @memberof SiteResponse
|
|
162
163
|
*/
|
|
163
164
|
communications?: Array<CommunicationResponse>;
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @type {AddressResponse}
|
|
168
|
+
* @memberof SiteResponse
|
|
169
|
+
*/
|
|
170
|
+
address?: AddressResponse;
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @type {string}
|
|
174
|
+
* @memberof SiteResponse
|
|
175
|
+
*/
|
|
176
|
+
addressId: string;
|
|
164
177
|
}
|
|
165
178
|
/**
|
|
166
179
|
* Check if a given object implements the SiteResponse interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/site-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAO5D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAOrF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAOtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAOlD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAO9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAOpD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAO7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAOpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAOrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAOpE,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AAOxG,OAAO,KAAK,EAAE,YAAY,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Y,CAAC,CAAC;IAC5B;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC,4BAA4B,CAAC,CAAC;IAC5D;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAC9C;;;;OAIG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAW3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CA+B/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgC9G"}
|
|
@@ -27,6 +27,7 @@ const task_template_response_1 = require("./task-template-response");
|
|
|
27
27
|
const notification_response_1 = require("./notification-response");
|
|
28
28
|
const extensibility_function_instance_response_1 = require("./extensibility-function-instance-response");
|
|
29
29
|
const task_response_1 = require("./task-response");
|
|
30
|
+
const address_response_1 = require("./address-response");
|
|
30
31
|
const site_type_response3_1 = require("./site-type-response3");
|
|
31
32
|
/**
|
|
32
33
|
* Check if a given object implements the SiteResponse interface.
|
|
@@ -48,6 +49,8 @@ function instanceOfSiteResponse(value) {
|
|
|
48
49
|
return false;
|
|
49
50
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
50
51
|
return false;
|
|
52
|
+
if (!('addressId' in value) || value['addressId'] === undefined)
|
|
53
|
+
return false;
|
|
51
54
|
return true;
|
|
52
55
|
}
|
|
53
56
|
exports.instanceOfSiteResponse = instanceOfSiteResponse;
|
|
@@ -82,6 +85,8 @@ function SiteResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
85
|
'notes': json['notes'] == null ? undefined : (json['notes'].map(note_response_1.NoteResponseFromJSON)),
|
|
83
86
|
'configurationSettings': json['configurationSettings'] == null ? undefined : (json['configurationSettings'].map(configuration_setting_response_1.ConfigurationSettingResponseFromJSON)),
|
|
84
87
|
'communications': json['communications'] == null ? undefined : (json['communications'].map(communication_response_1.CommunicationResponseFromJSON)),
|
|
88
|
+
'address': json['address'] == null ? undefined : (0, address_response_1.AddressResponseFromJSON)(json['address']),
|
|
89
|
+
'addressId': json['addressId'],
|
|
85
90
|
};
|
|
86
91
|
}
|
|
87
92
|
exports.SiteResponseFromJSONTyped = SiteResponseFromJSONTyped;
|
|
@@ -116,6 +121,8 @@ function SiteResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
116
121
|
'notes': value['notes'] == null ? undefined : (value['notes'].map(note_response_1.NoteResponseToJSON)),
|
|
117
122
|
'configurationSettings': value['configurationSettings'] == null ? undefined : (value['configurationSettings'].map(configuration_setting_response_1.ConfigurationSettingResponseToJSON)),
|
|
118
123
|
'communications': value['communications'] == null ? undefined : (value['communications'].map(communication_response_1.CommunicationResponseToJSON)),
|
|
124
|
+
'address': (0, address_response_1.AddressResponseToJSON)(value['address']),
|
|
125
|
+
'addressId': value['addressId'],
|
|
119
126
|
};
|
|
120
127
|
}
|
|
121
128
|
exports.SiteResponseToJSONTyped = SiteResponseToJSONTyped;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@managespace/sdk",
|
|
3
|
+
"version": "0.0.105",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"dev": "tsc -w --preserveWatchOutput",
|
|
6
|
+
"build": "tsc",
|
|
7
|
+
"lint:check": "eslint .",
|
|
8
|
+
"lint:fix": "eslint --fix .",
|
|
9
|
+
"upload": "tsc && npm publish"
|
|
10
|
+
},
|
|
11
|
+
"main": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./*": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"default": "./dist/index.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"tslib": "^2.4.0",
|
|
25
|
+
"zod": "^3.23.8"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/node": "^12",
|
|
29
|
+
"typescript": "^4.0",
|
|
30
|
+
"@repo/eslint-config": "*",
|
|
31
|
+
"@repo/typescript-config": "*"
|
|
32
|
+
}
|
|
33
|
+
}
|
package/package.json
CHANGED
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
ContactResponseToJSON,
|
|
21
21
|
ContactResponseToJSONTyped,
|
|
22
22
|
} from './contact-response';
|
|
23
|
+
import type { SiteResponse } from './site-response';
|
|
24
|
+
import {
|
|
25
|
+
SiteResponseFromJSON,
|
|
26
|
+
SiteResponseFromJSONTyped,
|
|
27
|
+
SiteResponseToJSON,
|
|
28
|
+
SiteResponseToJSONTyped,
|
|
29
|
+
} from './site-response';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -81,6 +88,18 @@ export interface AddressResponse {
|
|
|
81
88
|
* @memberof AddressResponse
|
|
82
89
|
*/
|
|
83
90
|
contact?: Array<ContactResponse>;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {SiteResponse}
|
|
94
|
+
* @memberof AddressResponse
|
|
95
|
+
*/
|
|
96
|
+
site?: SiteResponse | null;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof AddressResponse
|
|
101
|
+
*/
|
|
102
|
+
siteId: string | null;
|
|
84
103
|
}
|
|
85
104
|
|
|
86
105
|
/**
|
|
@@ -95,6 +114,7 @@ export function instanceOfAddressResponse(value: object): value is AddressRespon
|
|
|
95
114
|
if (!('zip' in value) || value['zip'] === undefined) return false;
|
|
96
115
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
97
116
|
if (!('county' in value) || value['county'] === undefined) return false;
|
|
117
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
98
118
|
return true;
|
|
99
119
|
}
|
|
100
120
|
|
|
@@ -117,6 +137,8 @@ export function AddressResponseFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
117
137
|
'country': json['country'],
|
|
118
138
|
'county': json['county'],
|
|
119
139
|
'contact': json['contact'] == null ? undefined : ((json['contact'] as Array<any>).map(ContactResponseFromJSON)),
|
|
140
|
+
'site': json['site'] == null ? undefined : SiteResponseFromJSON(json['site']),
|
|
141
|
+
'siteId': json['siteId'],
|
|
120
142
|
};
|
|
121
143
|
}
|
|
122
144
|
|
|
@@ -140,6 +162,8 @@ export function AddressResponseToJSONTyped(value?: AddressResponse | null, ignor
|
|
|
140
162
|
'country': value['country'],
|
|
141
163
|
'county': value['county'],
|
|
142
164
|
'contact': value['contact'] == null ? undefined : ((value['contact'] as Array<any>).map(ContactResponseToJSON)),
|
|
165
|
+
'site': SiteResponseToJSON(value['site']),
|
|
166
|
+
'siteId': value['siteId'],
|
|
143
167
|
};
|
|
144
168
|
}
|
|
145
169
|
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { CreateAddress } from './create-address';
|
|
17
|
+
import {
|
|
18
|
+
CreateAddressFromJSON,
|
|
19
|
+
CreateAddressFromJSONTyped,
|
|
20
|
+
CreateAddressToJSON,
|
|
21
|
+
CreateAddressToJSONTyped,
|
|
22
|
+
} from './create-address';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -55,6 +63,12 @@ export interface CreateSiteCustom {
|
|
|
55
63
|
* @memberof CreateSiteCustom
|
|
56
64
|
*/
|
|
57
65
|
userIds: Array<string>;
|
|
66
|
+
/**
|
|
67
|
+
* Site address.
|
|
68
|
+
* @type {CreateAddress}
|
|
69
|
+
* @memberof CreateSiteCustom
|
|
70
|
+
*/
|
|
71
|
+
address: CreateAddress;
|
|
58
72
|
}
|
|
59
73
|
|
|
60
74
|
/**
|
|
@@ -67,6 +81,7 @@ export function instanceOfCreateSiteCustom(value: object): value is CreateSiteCu
|
|
|
67
81
|
if (!('phoneNumber' in value) || value['phoneNumber'] === undefined) return false;
|
|
68
82
|
if (!('typeIds' in value) || value['typeIds'] === undefined) return false;
|
|
69
83
|
if (!('userIds' in value) || value['userIds'] === undefined) return false;
|
|
84
|
+
if (!('address' in value) || value['address'] === undefined) return false;
|
|
70
85
|
return true;
|
|
71
86
|
}
|
|
72
87
|
|
|
@@ -86,6 +101,7 @@ export function CreateSiteCustomFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
86
101
|
'phoneNumber': json['phoneNumber'],
|
|
87
102
|
'typeIds': json['typeIds'],
|
|
88
103
|
'userIds': json['userIds'],
|
|
104
|
+
'address': CreateAddressFromJSON(json['address']),
|
|
89
105
|
};
|
|
90
106
|
}
|
|
91
107
|
|
|
@@ -106,6 +122,7 @@ export function CreateSiteCustomToJSONTyped(value?: CreateSiteCustom | null, ign
|
|
|
106
122
|
'phoneNumber': value['phoneNumber'],
|
|
107
123
|
'typeIds': value['typeIds'],
|
|
108
124
|
'userIds': value['userIds'],
|
|
125
|
+
'address': CreateAddressToJSON(value['address']),
|
|
109
126
|
};
|
|
110
127
|
}
|
|
111
128
|
|
|
@@ -104,6 +104,13 @@ import {
|
|
|
104
104
|
TaskResponseToJSON,
|
|
105
105
|
TaskResponseToJSONTyped,
|
|
106
106
|
} from './task-response';
|
|
107
|
+
import type { AddressResponse } from './address-response';
|
|
108
|
+
import {
|
|
109
|
+
AddressResponseFromJSON,
|
|
110
|
+
AddressResponseFromJSONTyped,
|
|
111
|
+
AddressResponseToJSON,
|
|
112
|
+
AddressResponseToJSONTyped,
|
|
113
|
+
} from './address-response';
|
|
107
114
|
import type { SiteTypeResponse3 } from './site-type-response3';
|
|
108
115
|
import {
|
|
109
116
|
SiteTypeResponse3FromJSON,
|
|
@@ -250,6 +257,18 @@ export interface SiteResponse {
|
|
|
250
257
|
* @memberof SiteResponse
|
|
251
258
|
*/
|
|
252
259
|
communications?: Array<CommunicationResponse>;
|
|
260
|
+
/**
|
|
261
|
+
*
|
|
262
|
+
* @type {AddressResponse}
|
|
263
|
+
* @memberof SiteResponse
|
|
264
|
+
*/
|
|
265
|
+
address?: AddressResponse;
|
|
266
|
+
/**
|
|
267
|
+
*
|
|
268
|
+
* @type {string}
|
|
269
|
+
* @memberof SiteResponse
|
|
270
|
+
*/
|
|
271
|
+
addressId: string;
|
|
253
272
|
}
|
|
254
273
|
|
|
255
274
|
/**
|
|
@@ -264,6 +283,7 @@ export function instanceOfSiteResponse(value: object): value is SiteResponse {
|
|
|
264
283
|
if (!('phoneNumber' in value) || value['phoneNumber'] === undefined) return false;
|
|
265
284
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
266
285
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
286
|
+
if (!('addressId' in value) || value['addressId'] === undefined) return false;
|
|
267
287
|
return true;
|
|
268
288
|
}
|
|
269
289
|
|
|
@@ -299,6 +319,8 @@ export function SiteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
299
319
|
'notes': json['notes'] == null ? undefined : ((json['notes'] as Array<any>).map(NoteResponseFromJSON)),
|
|
300
320
|
'configurationSettings': json['configurationSettings'] == null ? undefined : ((json['configurationSettings'] as Array<any>).map(ConfigurationSettingResponseFromJSON)),
|
|
301
321
|
'communications': json['communications'] == null ? undefined : ((json['communications'] as Array<any>).map(CommunicationResponseFromJSON)),
|
|
322
|
+
'address': json['address'] == null ? undefined : AddressResponseFromJSON(json['address']),
|
|
323
|
+
'addressId': json['addressId'],
|
|
302
324
|
};
|
|
303
325
|
}
|
|
304
326
|
|
|
@@ -335,6 +357,8 @@ export function SiteResponseToJSONTyped(value?: SiteResponse | null, ignoreDiscr
|
|
|
335
357
|
'notes': value['notes'] == null ? undefined : ((value['notes'] as Array<any>).map(NoteResponseToJSON)),
|
|
336
358
|
'configurationSettings': value['configurationSettings'] == null ? undefined : ((value['configurationSettings'] as Array<any>).map(ConfigurationSettingResponseToJSON)),
|
|
337
359
|
'communications': value['communications'] == null ? undefined : ((value['communications'] as Array<any>).map(CommunicationResponseToJSON)),
|
|
360
|
+
'address': AddressResponseToJSON(value['address']),
|
|
361
|
+
'addressId': value['addressId'],
|
|
338
362
|
};
|
|
339
363
|
}
|
|
340
364
|
|