@managespace/sdk 0.0.207 → 0.0.209
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/package.json +1 -1
- package/src/extensibility/functions/project/billing.ts +1 -0
- package/src/generated/.openapi-generator/FILES +0 -1
- package/src/generated/apis/default-api.ts +110 -10
- package/src/generated/models/create-template.ts +5 -5
- package/src/generated/models/document-complete.ts +5 -5
- package/src/generated/models/index.ts +0 -1
package/package.json
CHANGED
|
@@ -207,7 +207,6 @@ models/update-subscription.ts
|
|
|
207
207
|
models/update-task-instance.ts
|
|
208
208
|
models/update-user-properties.ts
|
|
209
209
|
models/update-workflow-instance-description.ts
|
|
210
|
-
models/upload-document.ts
|
|
211
210
|
models/uploaded-document.ts
|
|
212
211
|
models/user-id.ts
|
|
213
212
|
models/user.ts
|
|
@@ -160,7 +160,6 @@ import type {
|
|
|
160
160
|
UpdateTaskInstance,
|
|
161
161
|
UpdateUserProperties,
|
|
162
162
|
UpdateWorkflowInstanceDescription,
|
|
163
|
-
UploadDocument,
|
|
164
163
|
UploadedDocument,
|
|
165
164
|
User,
|
|
166
165
|
UserId,
|
|
@@ -462,8 +461,6 @@ import {
|
|
|
462
461
|
UpdateUserPropertiesToJSON,
|
|
463
462
|
UpdateWorkflowInstanceDescriptionFromJSON,
|
|
464
463
|
UpdateWorkflowInstanceDescriptionToJSON,
|
|
465
|
-
UploadDocumentFromJSON,
|
|
466
|
-
UploadDocumentToJSON,
|
|
467
464
|
UploadedDocumentFromJSON,
|
|
468
465
|
UploadedDocumentToJSON,
|
|
469
466
|
UserFromJSON,
|
|
@@ -988,6 +985,10 @@ export interface GetProductsRequest {
|
|
|
988
985
|
isDefault?: string;
|
|
989
986
|
}
|
|
990
987
|
|
|
988
|
+
export interface GetRentRollExportRequest {
|
|
989
|
+
siteId: string;
|
|
990
|
+
}
|
|
991
|
+
|
|
991
992
|
export interface GetRevenueRuleRequest {
|
|
992
993
|
revenueRuleId: string;
|
|
993
994
|
}
|
|
@@ -1031,6 +1032,7 @@ export interface GetSubscriptionsRequest {
|
|
|
1031
1032
|
customerId?: string;
|
|
1032
1033
|
status?: string;
|
|
1033
1034
|
assetId?: string;
|
|
1035
|
+
siteId?: string;
|
|
1034
1036
|
}
|
|
1035
1037
|
|
|
1036
1038
|
export interface GetTaskDefinitionRequest {
|
|
@@ -1262,7 +1264,13 @@ export interface UpdateWorkflowInstanceDescriptionRequest {
|
|
|
1262
1264
|
}
|
|
1263
1265
|
|
|
1264
1266
|
export interface UploadDocumentRequest {
|
|
1265
|
-
|
|
1267
|
+
externalId: string;
|
|
1268
|
+
file: Blob;
|
|
1269
|
+
siteId?: string | null;
|
|
1270
|
+
customerId?: string | null;
|
|
1271
|
+
contactId?: string | null;
|
|
1272
|
+
userId?: string | null;
|
|
1273
|
+
metadata?: string;
|
|
1266
1274
|
}
|
|
1267
1275
|
|
|
1268
1276
|
export interface UploadPluginRequest {
|
|
@@ -5752,6 +5760,45 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
5752
5760
|
return await response.value();
|
|
5753
5761
|
}
|
|
5754
5762
|
|
|
5763
|
+
/**
|
|
5764
|
+
*/
|
|
5765
|
+
async getRentRollExportRaw(requestParameters: GetRentRollExportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Success>> {
|
|
5766
|
+
if (requestParameters['siteId'] == null) {
|
|
5767
|
+
throw new runtime.RequiredError(
|
|
5768
|
+
'siteId',
|
|
5769
|
+
'Required parameter "siteId" was null or undefined when calling getRentRollExport().'
|
|
5770
|
+
);
|
|
5771
|
+
}
|
|
5772
|
+
|
|
5773
|
+
const queryParameters: any = {};
|
|
5774
|
+
|
|
5775
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
5776
|
+
|
|
5777
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5778
|
+
const token = this.configuration.accessToken;
|
|
5779
|
+
const tokenString = await token("bearer", []);
|
|
5780
|
+
|
|
5781
|
+
if (tokenString) {
|
|
5782
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5783
|
+
}
|
|
5784
|
+
}
|
|
5785
|
+
const response = await this.request({
|
|
5786
|
+
path: `/api/sites/{siteId}/rent-roll`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))),
|
|
5787
|
+
method: 'GET',
|
|
5788
|
+
headers: headerParameters,
|
|
5789
|
+
query: queryParameters,
|
|
5790
|
+
}, initOverrides);
|
|
5791
|
+
|
|
5792
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFromJSON(jsonValue));
|
|
5793
|
+
}
|
|
5794
|
+
|
|
5795
|
+
/**
|
|
5796
|
+
*/
|
|
5797
|
+
async getRentRollExport(requestParameters: GetRentRollExportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Success> {
|
|
5798
|
+
const response = await this.getRentRollExportRaw(requestParameters, initOverrides);
|
|
5799
|
+
return await response.value();
|
|
5800
|
+
}
|
|
5801
|
+
|
|
5755
5802
|
/**
|
|
5756
5803
|
*/
|
|
5757
5804
|
async getRevenueRuleRaw(requestParameters: GetRevenueRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RevenueRule>> {
|
|
@@ -6135,6 +6182,10 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
6135
6182
|
queryParameters['assetId'] = requestParameters['assetId'];
|
|
6136
6183
|
}
|
|
6137
6184
|
|
|
6185
|
+
if (requestParameters['siteId'] != null) {
|
|
6186
|
+
queryParameters['siteId'] = requestParameters['siteId'];
|
|
6187
|
+
}
|
|
6188
|
+
|
|
6138
6189
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
6139
6190
|
|
|
6140
6191
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -8261,10 +8312,17 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
8261
8312
|
/**
|
|
8262
8313
|
*/
|
|
8263
8314
|
async uploadDocumentRaw(requestParameters: UploadDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadedDocument>> {
|
|
8264
|
-
if (requestParameters['
|
|
8315
|
+
if (requestParameters['externalId'] == null) {
|
|
8265
8316
|
throw new runtime.RequiredError(
|
|
8266
|
-
'
|
|
8267
|
-
'Required parameter "
|
|
8317
|
+
'externalId',
|
|
8318
|
+
'Required parameter "externalId" was null or undefined when calling uploadDocument().'
|
|
8319
|
+
);
|
|
8320
|
+
}
|
|
8321
|
+
|
|
8322
|
+
if (requestParameters['file'] == null) {
|
|
8323
|
+
throw new runtime.RequiredError(
|
|
8324
|
+
'file',
|
|
8325
|
+
'Required parameter "file" was null or undefined when calling uploadDocument().'
|
|
8268
8326
|
);
|
|
8269
8327
|
}
|
|
8270
8328
|
|
|
@@ -8272,8 +8330,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
8272
8330
|
|
|
8273
8331
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
8274
8332
|
|
|
8275
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
8276
|
-
|
|
8277
8333
|
if (this.configuration && this.configuration.accessToken) {
|
|
8278
8334
|
const token = this.configuration.accessToken;
|
|
8279
8335
|
const tokenString = await token("bearer", []);
|
|
@@ -8282,12 +8338,56 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
8282
8338
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8283
8339
|
}
|
|
8284
8340
|
}
|
|
8341
|
+
const consumes: runtime.Consume[] = [
|
|
8342
|
+
{ contentType: 'multipart/form-data' },
|
|
8343
|
+
];
|
|
8344
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
8345
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
8346
|
+
|
|
8347
|
+
let formParams: { append(param: string, value: any): any };
|
|
8348
|
+
let useForm = false;
|
|
8349
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
8350
|
+
useForm = canConsumeForm;
|
|
8351
|
+
if (useForm) {
|
|
8352
|
+
formParams = new FormData();
|
|
8353
|
+
} else {
|
|
8354
|
+
formParams = new URLSearchParams();
|
|
8355
|
+
}
|
|
8356
|
+
|
|
8357
|
+
if (requestParameters['externalId'] != null) {
|
|
8358
|
+
formParams.append('externalId', requestParameters['externalId'] as any);
|
|
8359
|
+
}
|
|
8360
|
+
|
|
8361
|
+
if (requestParameters['siteId'] != null) {
|
|
8362
|
+
formParams.append('siteId', requestParameters['siteId'] as any);
|
|
8363
|
+
}
|
|
8364
|
+
|
|
8365
|
+
if (requestParameters['customerId'] != null) {
|
|
8366
|
+
formParams.append('customerId', requestParameters['customerId'] as any);
|
|
8367
|
+
}
|
|
8368
|
+
|
|
8369
|
+
if (requestParameters['contactId'] != null) {
|
|
8370
|
+
formParams.append('contactId', requestParameters['contactId'] as any);
|
|
8371
|
+
}
|
|
8372
|
+
|
|
8373
|
+
if (requestParameters['userId'] != null) {
|
|
8374
|
+
formParams.append('userId', requestParameters['userId'] as any);
|
|
8375
|
+
}
|
|
8376
|
+
|
|
8377
|
+
if (requestParameters['file'] != null) {
|
|
8378
|
+
formParams.append('file', requestParameters['file'] as any);
|
|
8379
|
+
}
|
|
8380
|
+
|
|
8381
|
+
if (requestParameters['metadata'] != null) {
|
|
8382
|
+
formParams.append('metadata', requestParameters['metadata'] as any);
|
|
8383
|
+
}
|
|
8384
|
+
|
|
8285
8385
|
const response = await this.request({
|
|
8286
8386
|
path: `/api/object-store/documents`,
|
|
8287
8387
|
method: 'POST',
|
|
8288
8388
|
headers: headerParameters,
|
|
8289
8389
|
query: queryParameters,
|
|
8290
|
-
body:
|
|
8390
|
+
body: formParams,
|
|
8291
8391
|
}, initOverrides);
|
|
8292
8392
|
|
|
8293
8393
|
return new runtime.JSONApiResponse(response, (jsonValue) => UploadedDocumentFromJSON(jsonValue));
|
|
@@ -35,11 +35,11 @@ import {
|
|
|
35
35
|
*/
|
|
36
36
|
export interface CreateTemplate {
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Downloadable URL of the template.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof CreateTemplate
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
fileUrl: string;
|
|
43
43
|
/**
|
|
44
44
|
* Name of your template.
|
|
45
45
|
* @type {string}
|
|
@@ -64,7 +64,7 @@ export interface CreateTemplate {
|
|
|
64
64
|
* Check if a given object implements the CreateTemplate interface.
|
|
65
65
|
*/
|
|
66
66
|
export function instanceOfCreateTemplate(value: object): value is CreateTemplate {
|
|
67
|
-
if (!('
|
|
67
|
+
if (!('fileUrl' in value) || value['fileUrl'] === undefined) return false;
|
|
68
68
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
69
69
|
return true;
|
|
70
70
|
}
|
|
@@ -79,7 +79,7 @@ export function CreateTemplateFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
79
79
|
}
|
|
80
80
|
return {
|
|
81
81
|
|
|
82
|
-
'
|
|
82
|
+
'fileUrl': json['fileUrl'],
|
|
83
83
|
'name': json['name'],
|
|
84
84
|
'signers': json['signers'] == null ? undefined : ((json['signers'] as Array<any>).map(TemplateSignerFromJSON)),
|
|
85
85
|
'fields': json['fields'] == null ? undefined : ((json['fields'] as Array<any>).map(TemplateFieldFromJSON)),
|
|
@@ -97,7 +97,7 @@ export function CreateTemplateToJSONTyped(value?: CreateTemplate | null, ignoreD
|
|
|
97
97
|
|
|
98
98
|
return {
|
|
99
99
|
|
|
100
|
-
'
|
|
100
|
+
'fileUrl': value['fileUrl'],
|
|
101
101
|
'name': value['name'],
|
|
102
102
|
'signers': value['signers'] == null ? undefined : ((value['signers'] as Array<any>).map(TemplateSignerToJSON)),
|
|
103
103
|
'fields': value['fields'] == null ? undefined : ((value['fields'] as Array<any>).map(TemplateFieldToJSON)),
|
|
@@ -56,11 +56,11 @@ export interface DocumentComplete {
|
|
|
56
56
|
*/
|
|
57
57
|
allSignaturesGathered: boolean;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Downloadable URL of the document.
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof DocumentComplete
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
fileUrl: string;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/**
|
|
@@ -68,7 +68,7 @@ export interface DocumentComplete {
|
|
|
68
68
|
*/
|
|
69
69
|
export function instanceOfDocumentComplete(value: object): value is DocumentComplete {
|
|
70
70
|
if (!('allSignaturesGathered' in value) || value['allSignaturesGathered'] === undefined) return false;
|
|
71
|
-
if (!('
|
|
71
|
+
if (!('fileUrl' in value) || value['fileUrl'] === undefined) return false;
|
|
72
72
|
return true;
|
|
73
73
|
}
|
|
74
74
|
|
|
@@ -88,7 +88,7 @@ export function DocumentCompleteFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
88
88
|
'contactId': json['contactId'] == null ? undefined : json['contactId'],
|
|
89
89
|
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
90
90
|
'allSignaturesGathered': json['allSignaturesGathered'],
|
|
91
|
-
'
|
|
91
|
+
'fileUrl': json['fileUrl'],
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
@@ -109,7 +109,7 @@ export function DocumentCompleteToJSONTyped(value?: DocumentComplete | null, ign
|
|
|
109
109
|
'contactId': value['contactId'],
|
|
110
110
|
'userId': value['userId'],
|
|
111
111
|
'allSignaturesGathered': value['allSignaturesGathered'],
|
|
112
|
-
'
|
|
112
|
+
'fileUrl': value['fileUrl'],
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -205,7 +205,6 @@ export * from './update-subscription-charge';
|
|
|
205
205
|
export * from './update-task-instance';
|
|
206
206
|
export * from './update-user-properties';
|
|
207
207
|
export * from './update-workflow-instance-description';
|
|
208
|
-
export * from './upload-document';
|
|
209
208
|
export * from './uploaded-document';
|
|
210
209
|
export * from './user';
|
|
211
210
|
export * from './user-id';
|