@managespace/sdk 0.0.131 → 0.0.133
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/extensibility/functions/project/billing.d.ts +0 -6
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +0 -5
- package/dist/extensibility/functions/project/document.d.ts +14 -1
- package/dist/extensibility/functions/project/document.d.ts.map +1 -1
- package/dist/extensibility/functions/project/document.js +10 -0
- package/dist/generated/apis/default-api.d.ts +51 -11
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +163 -33
- package/dist/generated/models/document-signed.d.ts +6 -0
- package/dist/generated/models/document-signed.d.ts.map +1 -1
- package/dist/generated/models/document-signed.js +4 -0
- package/dist/generated/models/document-url.d.ts +39 -0
- package/dist/generated/models/document-url.d.ts.map +1 -0
- package/dist/generated/models/document-url.js +55 -0
- package/dist/generated/models/document.d.ts +39 -0
- package/dist/generated/models/document.d.ts.map +1 -0
- package/dist/generated/models/document.js +55 -0
- package/dist/generated/models/get-documents200-response.d.ts +41 -0
- package/dist/generated/models/get-documents200-response.d.ts.map +1 -0
- package/dist/generated/models/get-documents200-response.js +55 -0
- package/dist/generated/models/index.d.ts +5 -0
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +5 -0
- package/dist/generated/models/upload-document.d.ts +45 -0
- package/dist/generated/models/upload-document.d.ts.map +1 -0
- package/dist/generated/models/upload-document.js +55 -0
- package/dist/generated/models/uploaded-document.d.ts +33 -0
- package/dist/generated/models/uploaded-document.d.ts.map +1 -0
- package/dist/generated/models/uploaded-document.js +51 -0
- package/dist/generated/models/uploaded-documents.d.ts +45 -0
- package/dist/generated/models/uploaded-documents.d.ts.map +1 -0
- package/dist/generated/models/uploaded-documents.js +59 -0
- package/package.deploy.json +33 -0
- package/package.json +2 -2
- package/src/extensibility/functions/project/billing.ts +0 -6
- package/src/extensibility/functions/project/document.ts +9 -0
- package/src/generated/.openapi-generator/FILES +5 -0
- package/src/generated/apis/default-api.ts +262 -52
- package/src/generated/models/document-signed.ts +9 -0
- package/src/generated/models/document-url.ts +75 -0
- package/src/generated/models/document.ts +75 -0
- package/src/generated/models/get-documents200-response.ts +89 -0
- package/src/generated/models/index.ts +5 -0
- package/src/generated/models/upload-document.ts +82 -0
- package/src/generated/models/uploaded-document.ts +66 -0
- package/src/generated/models/uploaded-documents.ts +84 -0
- package/.turbo/turbo-build.log +0 -2
- package/dist/generated/models/create-subscription-plan.d.ts +0 -69
- package/dist/generated/models/create-subscription-plan.d.ts.map +0 -1
- package/dist/generated/models/create-subscription-plan.js +0 -71
- package/dist/generated/models/subscription-invoice-line.d.ts +0 -117
- package/dist/generated/models/subscription-invoice-line.d.ts.map +0 -1
- package/dist/generated/models/subscription-invoice-line.js +0 -107
- package/dist/generated/models/subscription-invoice.d.ts +0 -58
- package/dist/generated/models/subscription-invoice.d.ts.map +0 -1
- package/dist/generated/models/subscription-invoice.js +0 -68
- package/dist/generated/models/subscription-plan.d.ts +0 -268
- package/dist/generated/models/subscription-plan.d.ts.map +0 -1
- package/dist/generated/models/subscription-plan.js +0 -208
- package/dist/generated/models/subscription-preview.d.ts +0 -275
- package/dist/generated/models/subscription-preview.d.ts.map +0 -1
- package/dist/generated/models/subscription-preview.js +0 -211
- package/dist/generated/models/update-subscription-charge.d.ts +0 -293
- package/dist/generated/models/update-subscription-charge.d.ts.map +0 -1
- package/dist/generated/models/update-subscription-charge.js +0 -149
- package/dist/generated/models/update-subscription.d.ts +0 -226
- package/dist/generated/models/update-subscription.d.ts.map +0 -1
- package/dist/generated/models/update-subscription.js +0 -118
|
@@ -65,6 +65,7 @@ import type {
|
|
|
65
65
|
CustomUpdateTaskTemplate,
|
|
66
66
|
Customer,
|
|
67
67
|
DocumentSigned,
|
|
68
|
+
DocumentUrl,
|
|
68
69
|
ExecuteBy,
|
|
69
70
|
ExtensibilityRepo,
|
|
70
71
|
FileUploaded,
|
|
@@ -81,6 +82,7 @@ import type {
|
|
|
81
82
|
GetConfigurationSettings200Response,
|
|
82
83
|
GetContacts200Response,
|
|
83
84
|
GetCustomers200Response,
|
|
85
|
+
GetDocuments200Response,
|
|
84
86
|
GetIntent,
|
|
85
87
|
GetInvoices200Response,
|
|
86
88
|
GetNotes200Response,
|
|
@@ -144,6 +146,9 @@ import type {
|
|
|
144
146
|
UpdateOrg,
|
|
145
147
|
UpdateSmartBarPrompt,
|
|
146
148
|
UpdateUserProperties,
|
|
149
|
+
UploadDocument,
|
|
150
|
+
UploadedDocument,
|
|
151
|
+
UploadedDocuments,
|
|
147
152
|
User,
|
|
148
153
|
UserId,
|
|
149
154
|
WorkflowDefinition,
|
|
@@ -254,6 +259,8 @@ import {
|
|
|
254
259
|
CustomerToJSON,
|
|
255
260
|
DocumentSignedFromJSON,
|
|
256
261
|
DocumentSignedToJSON,
|
|
262
|
+
DocumentUrlFromJSON,
|
|
263
|
+
DocumentUrlToJSON,
|
|
257
264
|
ExecuteByFromJSON,
|
|
258
265
|
ExecuteByToJSON,
|
|
259
266
|
ExtensibilityRepoFromJSON,
|
|
@@ -286,6 +293,8 @@ import {
|
|
|
286
293
|
GetContacts200ResponseToJSON,
|
|
287
294
|
GetCustomers200ResponseFromJSON,
|
|
288
295
|
GetCustomers200ResponseToJSON,
|
|
296
|
+
GetDocuments200ResponseFromJSON,
|
|
297
|
+
GetDocuments200ResponseToJSON,
|
|
289
298
|
GetIntentFromJSON,
|
|
290
299
|
GetIntentToJSON,
|
|
291
300
|
GetInvoices200ResponseFromJSON,
|
|
@@ -412,6 +421,12 @@ import {
|
|
|
412
421
|
UpdateSmartBarPromptToJSON,
|
|
413
422
|
UpdateUserPropertiesFromJSON,
|
|
414
423
|
UpdateUserPropertiesToJSON,
|
|
424
|
+
UploadDocumentFromJSON,
|
|
425
|
+
UploadDocumentToJSON,
|
|
426
|
+
UploadedDocumentFromJSON,
|
|
427
|
+
UploadedDocumentToJSON,
|
|
428
|
+
UploadedDocumentsFromJSON,
|
|
429
|
+
UploadedDocumentsToJSON,
|
|
415
430
|
UserFromJSON,
|
|
416
431
|
UserToJSON,
|
|
417
432
|
UserIdFromJSON,
|
|
@@ -430,11 +445,6 @@ import {
|
|
|
430
445
|
WorkflowStepInstancesToJSON,
|
|
431
446
|
} from '../models/index';
|
|
432
447
|
|
|
433
|
-
export interface ActivateSubscriptionRequest {
|
|
434
|
-
siteId: string;
|
|
435
|
-
subscriptionId: string;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
448
|
export interface AdminSignUpRequest {
|
|
439
449
|
adminSignUp: AdminSignUp;
|
|
440
450
|
}
|
|
@@ -614,6 +624,7 @@ export interface DeleteWorkflowInstanceRequest {
|
|
|
614
624
|
|
|
615
625
|
export interface DocumentSignedRequest {
|
|
616
626
|
siteId: string;
|
|
627
|
+
documentId: string;
|
|
617
628
|
documentSigned: DocumentSigned;
|
|
618
629
|
}
|
|
619
630
|
|
|
@@ -761,6 +772,17 @@ export interface GetCustomersRequest {
|
|
|
761
772
|
name?: string;
|
|
762
773
|
}
|
|
763
774
|
|
|
775
|
+
export interface GetDocumentRequest {
|
|
776
|
+
siteId: string;
|
|
777
|
+
documentId: string;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
export interface GetDocumentsRequest {
|
|
781
|
+
siteId: string;
|
|
782
|
+
offset?: number;
|
|
783
|
+
limit?: number;
|
|
784
|
+
}
|
|
785
|
+
|
|
764
786
|
export interface GetInvoiceRequest {
|
|
765
787
|
siteId: string;
|
|
766
788
|
invoiceId: string;
|
|
@@ -960,6 +982,15 @@ export interface GetTemplatesRequest {
|
|
|
960
982
|
siteId?: string;
|
|
961
983
|
}
|
|
962
984
|
|
|
985
|
+
export interface GetUploadedDocumentRequest {
|
|
986
|
+
documentId: string;
|
|
987
|
+
siteId?: string;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
export interface GetUploadedDocumentsRequest {
|
|
991
|
+
siteId?: string;
|
|
992
|
+
}
|
|
993
|
+
|
|
963
994
|
export interface GetUserRequest {
|
|
964
995
|
userId: string;
|
|
965
996
|
}
|
|
@@ -1142,6 +1173,10 @@ export interface UpdateUserPropertiesRequest {
|
|
|
1142
1173
|
updateUserProperties: UpdateUserProperties;
|
|
1143
1174
|
}
|
|
1144
1175
|
|
|
1176
|
+
export interface UploadDocumentRequest {
|
|
1177
|
+
uploadDocument: UploadDocument;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1145
1180
|
export interface UploadPluginRequest {
|
|
1146
1181
|
file: Blob;
|
|
1147
1182
|
}
|
|
@@ -1151,52 +1186,6 @@ export interface UploadPluginRequest {
|
|
|
1151
1186
|
*/
|
|
1152
1187
|
export class DefaultApi extends runtime.BaseAPI {
|
|
1153
1188
|
|
|
1154
|
-
/**
|
|
1155
|
-
*/
|
|
1156
|
-
async activateSubscriptionRaw(requestParameters: ActivateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSubscriptions200Response>> {
|
|
1157
|
-
if (requestParameters['siteId'] == null) {
|
|
1158
|
-
throw new runtime.RequiredError(
|
|
1159
|
-
'siteId',
|
|
1160
|
-
'Required parameter "siteId" was null or undefined when calling activateSubscription().'
|
|
1161
|
-
);
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
if (requestParameters['subscriptionId'] == null) {
|
|
1165
|
-
throw new runtime.RequiredError(
|
|
1166
|
-
'subscriptionId',
|
|
1167
|
-
'Required parameter "subscriptionId" was null or undefined when calling activateSubscription().'
|
|
1168
|
-
);
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
const queryParameters: any = {};
|
|
1172
|
-
|
|
1173
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1174
|
-
|
|
1175
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1176
|
-
const token = this.configuration.accessToken;
|
|
1177
|
-
const tokenString = await token("bearer", []);
|
|
1178
|
-
|
|
1179
|
-
if (tokenString) {
|
|
1180
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1181
|
-
}
|
|
1182
|
-
}
|
|
1183
|
-
const response = await this.request({
|
|
1184
|
-
path: `/api/sites/{siteId}/subscriptions/{subscriptionId}/activate`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))).replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
1185
|
-
method: 'PUT',
|
|
1186
|
-
headers: headerParameters,
|
|
1187
|
-
query: queryParameters,
|
|
1188
|
-
}, initOverrides);
|
|
1189
|
-
|
|
1190
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GetSubscriptions200ResponseFromJSON(jsonValue));
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
/**
|
|
1194
|
-
*/
|
|
1195
|
-
async activateSubscription(requestParameters: ActivateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSubscriptions200Response> {
|
|
1196
|
-
const response = await this.activateSubscriptionRaw(requestParameters, initOverrides);
|
|
1197
|
-
return await response.value();
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
1189
|
/**
|
|
1201
1190
|
*/
|
|
1202
1191
|
async adminSignUpRaw(requestParameters: AdminSignUpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Token>> {
|
|
@@ -2978,6 +2967,13 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2978
2967
|
);
|
|
2979
2968
|
}
|
|
2980
2969
|
|
|
2970
|
+
if (requestParameters['documentId'] == null) {
|
|
2971
|
+
throw new runtime.RequiredError(
|
|
2972
|
+
'documentId',
|
|
2973
|
+
'Required parameter "documentId" was null or undefined when calling documentSigned().'
|
|
2974
|
+
);
|
|
2975
|
+
}
|
|
2976
|
+
|
|
2981
2977
|
if (requestParameters['documentSigned'] == null) {
|
|
2982
2978
|
throw new runtime.RequiredError(
|
|
2983
2979
|
'documentSigned',
|
|
@@ -3000,7 +2996,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
3000
2996
|
}
|
|
3001
2997
|
}
|
|
3002
2998
|
const response = await this.request({
|
|
3003
|
-
path: `/api/sites/{siteId}/documents/signed`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))),
|
|
2999
|
+
path: `/api/sites/{siteId}/documents/{documentId}/signed`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))).replace(`{${"documentId"}}`, encodeURIComponent(String(requestParameters['documentId']))),
|
|
3004
3000
|
method: 'POST',
|
|
3005
3001
|
headers: headerParameters,
|
|
3006
3002
|
query: queryParameters,
|
|
@@ -4194,6 +4190,99 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
4194
4190
|
return await response.value();
|
|
4195
4191
|
}
|
|
4196
4192
|
|
|
4193
|
+
/**
|
|
4194
|
+
*/
|
|
4195
|
+
async getDocumentRaw(requestParameters: GetDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentUrl>> {
|
|
4196
|
+
if (requestParameters['siteId'] == null) {
|
|
4197
|
+
throw new runtime.RequiredError(
|
|
4198
|
+
'siteId',
|
|
4199
|
+
'Required parameter "siteId" was null or undefined when calling getDocument().'
|
|
4200
|
+
);
|
|
4201
|
+
}
|
|
4202
|
+
|
|
4203
|
+
if (requestParameters['documentId'] == null) {
|
|
4204
|
+
throw new runtime.RequiredError(
|
|
4205
|
+
'documentId',
|
|
4206
|
+
'Required parameter "documentId" was null or undefined when calling getDocument().'
|
|
4207
|
+
);
|
|
4208
|
+
}
|
|
4209
|
+
|
|
4210
|
+
const queryParameters: any = {};
|
|
4211
|
+
|
|
4212
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
4213
|
+
|
|
4214
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4215
|
+
const token = this.configuration.accessToken;
|
|
4216
|
+
const tokenString = await token("bearer", []);
|
|
4217
|
+
|
|
4218
|
+
if (tokenString) {
|
|
4219
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4220
|
+
}
|
|
4221
|
+
}
|
|
4222
|
+
const response = await this.request({
|
|
4223
|
+
path: `/api/sites/{siteId}/documents/{documentId}`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))).replace(`{${"documentId"}}`, encodeURIComponent(String(requestParameters['documentId']))),
|
|
4224
|
+
method: 'GET',
|
|
4225
|
+
headers: headerParameters,
|
|
4226
|
+
query: queryParameters,
|
|
4227
|
+
}, initOverrides);
|
|
4228
|
+
|
|
4229
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DocumentUrlFromJSON(jsonValue));
|
|
4230
|
+
}
|
|
4231
|
+
|
|
4232
|
+
/**
|
|
4233
|
+
*/
|
|
4234
|
+
async getDocument(requestParameters: GetDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentUrl> {
|
|
4235
|
+
const response = await this.getDocumentRaw(requestParameters, initOverrides);
|
|
4236
|
+
return await response.value();
|
|
4237
|
+
}
|
|
4238
|
+
|
|
4239
|
+
/**
|
|
4240
|
+
*/
|
|
4241
|
+
async getDocumentsRaw(requestParameters: GetDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetDocuments200Response>> {
|
|
4242
|
+
if (requestParameters['siteId'] == null) {
|
|
4243
|
+
throw new runtime.RequiredError(
|
|
4244
|
+
'siteId',
|
|
4245
|
+
'Required parameter "siteId" was null or undefined when calling getDocuments().'
|
|
4246
|
+
);
|
|
4247
|
+
}
|
|
4248
|
+
|
|
4249
|
+
const queryParameters: any = {};
|
|
4250
|
+
|
|
4251
|
+
if (requestParameters['offset'] != null) {
|
|
4252
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
4253
|
+
}
|
|
4254
|
+
|
|
4255
|
+
if (requestParameters['limit'] != null) {
|
|
4256
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
4257
|
+
}
|
|
4258
|
+
|
|
4259
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
4260
|
+
|
|
4261
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4262
|
+
const token = this.configuration.accessToken;
|
|
4263
|
+
const tokenString = await token("bearer", []);
|
|
4264
|
+
|
|
4265
|
+
if (tokenString) {
|
|
4266
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4267
|
+
}
|
|
4268
|
+
}
|
|
4269
|
+
const response = await this.request({
|
|
4270
|
+
path: `/api/sites/{siteId}/documents`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))),
|
|
4271
|
+
method: 'GET',
|
|
4272
|
+
headers: headerParameters,
|
|
4273
|
+
query: queryParameters,
|
|
4274
|
+
}, initOverrides);
|
|
4275
|
+
|
|
4276
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetDocuments200ResponseFromJSON(jsonValue));
|
|
4277
|
+
}
|
|
4278
|
+
|
|
4279
|
+
/**
|
|
4280
|
+
*/
|
|
4281
|
+
async getDocuments(requestParameters: GetDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetDocuments200Response> {
|
|
4282
|
+
const response = await this.getDocumentsRaw(requestParameters, initOverrides);
|
|
4283
|
+
return await response.value();
|
|
4284
|
+
}
|
|
4285
|
+
|
|
4197
4286
|
/**
|
|
4198
4287
|
*/
|
|
4199
4288
|
async getExtensibilityRepoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ExtensibilityRepo>> {
|
|
@@ -5844,6 +5933,85 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
5844
5933
|
return await response.value();
|
|
5845
5934
|
}
|
|
5846
5935
|
|
|
5936
|
+
/**
|
|
5937
|
+
*/
|
|
5938
|
+
async getUploadedDocumentRaw(requestParameters: GetUploadedDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadedDocument>> {
|
|
5939
|
+
if (requestParameters['documentId'] == null) {
|
|
5940
|
+
throw new runtime.RequiredError(
|
|
5941
|
+
'documentId',
|
|
5942
|
+
'Required parameter "documentId" was null or undefined when calling getUploadedDocument().'
|
|
5943
|
+
);
|
|
5944
|
+
}
|
|
5945
|
+
|
|
5946
|
+
const queryParameters: any = {};
|
|
5947
|
+
|
|
5948
|
+
if (requestParameters['siteId'] != null) {
|
|
5949
|
+
queryParameters['siteId'] = requestParameters['siteId'];
|
|
5950
|
+
}
|
|
5951
|
+
|
|
5952
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
5953
|
+
|
|
5954
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5955
|
+
const token = this.configuration.accessToken;
|
|
5956
|
+
const tokenString = await token("bearer", []);
|
|
5957
|
+
|
|
5958
|
+
if (tokenString) {
|
|
5959
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5960
|
+
}
|
|
5961
|
+
}
|
|
5962
|
+
const response = await this.request({
|
|
5963
|
+
path: `/api/documents/{documentId}/upload`.replace(`{${"documentId"}}`, encodeURIComponent(String(requestParameters['documentId']))),
|
|
5964
|
+
method: 'GET',
|
|
5965
|
+
headers: headerParameters,
|
|
5966
|
+
query: queryParameters,
|
|
5967
|
+
}, initOverrides);
|
|
5968
|
+
|
|
5969
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UploadedDocumentFromJSON(jsonValue));
|
|
5970
|
+
}
|
|
5971
|
+
|
|
5972
|
+
/**
|
|
5973
|
+
*/
|
|
5974
|
+
async getUploadedDocument(requestParameters: GetUploadedDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadedDocument> {
|
|
5975
|
+
const response = await this.getUploadedDocumentRaw(requestParameters, initOverrides);
|
|
5976
|
+
return await response.value();
|
|
5977
|
+
}
|
|
5978
|
+
|
|
5979
|
+
/**
|
|
5980
|
+
*/
|
|
5981
|
+
async getUploadedDocumentsRaw(requestParameters: GetUploadedDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadedDocuments>> {
|
|
5982
|
+
const queryParameters: any = {};
|
|
5983
|
+
|
|
5984
|
+
if (requestParameters['siteId'] != null) {
|
|
5985
|
+
queryParameters['siteId'] = requestParameters['siteId'];
|
|
5986
|
+
}
|
|
5987
|
+
|
|
5988
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
5989
|
+
|
|
5990
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5991
|
+
const token = this.configuration.accessToken;
|
|
5992
|
+
const tokenString = await token("bearer", []);
|
|
5993
|
+
|
|
5994
|
+
if (tokenString) {
|
|
5995
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5996
|
+
}
|
|
5997
|
+
}
|
|
5998
|
+
const response = await this.request({
|
|
5999
|
+
path: `/api/documents/upload`,
|
|
6000
|
+
method: 'GET',
|
|
6001
|
+
headers: headerParameters,
|
|
6002
|
+
query: queryParameters,
|
|
6003
|
+
}, initOverrides);
|
|
6004
|
+
|
|
6005
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UploadedDocumentsFromJSON(jsonValue));
|
|
6006
|
+
}
|
|
6007
|
+
|
|
6008
|
+
/**
|
|
6009
|
+
*/
|
|
6010
|
+
async getUploadedDocuments(requestParameters: GetUploadedDocumentsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadedDocuments> {
|
|
6011
|
+
const response = await this.getUploadedDocumentsRaw(requestParameters, initOverrides);
|
|
6012
|
+
return await response.value();
|
|
6013
|
+
}
|
|
6014
|
+
|
|
5847
6015
|
/**
|
|
5848
6016
|
*/
|
|
5849
6017
|
async getUserRaw(requestParameters: GetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<User>> {
|
|
@@ -7554,6 +7722,48 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
7554
7722
|
return await response.value();
|
|
7555
7723
|
}
|
|
7556
7724
|
|
|
7725
|
+
/**
|
|
7726
|
+
*/
|
|
7727
|
+
async uploadDocumentRaw(requestParameters: UploadDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Success>> {
|
|
7728
|
+
if (requestParameters['uploadDocument'] == null) {
|
|
7729
|
+
throw new runtime.RequiredError(
|
|
7730
|
+
'uploadDocument',
|
|
7731
|
+
'Required parameter "uploadDocument" was null or undefined when calling uploadDocument().'
|
|
7732
|
+
);
|
|
7733
|
+
}
|
|
7734
|
+
|
|
7735
|
+
const queryParameters: any = {};
|
|
7736
|
+
|
|
7737
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
7738
|
+
|
|
7739
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
7740
|
+
|
|
7741
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
7742
|
+
const token = this.configuration.accessToken;
|
|
7743
|
+
const tokenString = await token("bearer", []);
|
|
7744
|
+
|
|
7745
|
+
if (tokenString) {
|
|
7746
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
7747
|
+
}
|
|
7748
|
+
}
|
|
7749
|
+
const response = await this.request({
|
|
7750
|
+
path: `/api/documents/upload`,
|
|
7751
|
+
method: 'POST',
|
|
7752
|
+
headers: headerParameters,
|
|
7753
|
+
query: queryParameters,
|
|
7754
|
+
body: UploadDocumentToJSON(requestParameters['uploadDocument']),
|
|
7755
|
+
}, initOverrides);
|
|
7756
|
+
|
|
7757
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFromJSON(jsonValue));
|
|
7758
|
+
}
|
|
7759
|
+
|
|
7760
|
+
/**
|
|
7761
|
+
*/
|
|
7762
|
+
async uploadDocument(requestParameters: UploadDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Success> {
|
|
7763
|
+
const response = await this.uploadDocumentRaw(requestParameters, initOverrides);
|
|
7764
|
+
return await response.value();
|
|
7765
|
+
}
|
|
7766
|
+
|
|
7557
7767
|
/**
|
|
7558
7768
|
*/
|
|
7559
7769
|
async uploadPluginRaw(requestParameters: UploadPluginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileUploaded>> {
|
|
@@ -37,6 +37,12 @@ export interface DocumentSigned {
|
|
|
37
37
|
* @memberof DocumentSigned
|
|
38
38
|
*/
|
|
39
39
|
allSignaturesGathered: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Base64 encoded signed document
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof DocumentSigned
|
|
44
|
+
*/
|
|
45
|
+
file: string;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
/**
|
|
@@ -44,6 +50,7 @@ export interface DocumentSigned {
|
|
|
44
50
|
*/
|
|
45
51
|
export function instanceOfDocumentSigned(value: object): value is DocumentSigned {
|
|
46
52
|
if (!('allSignaturesGathered' in value) || value['allSignaturesGathered'] === undefined) return false;
|
|
53
|
+
if (!('file' in value) || value['file'] === undefined) return false;
|
|
47
54
|
return true;
|
|
48
55
|
}
|
|
49
56
|
|
|
@@ -60,6 +67,7 @@ export function DocumentSignedFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
60
67
|
'workflowId': json['workflowId'] == null ? undefined : json['workflowId'],
|
|
61
68
|
'workflowStepId': json['workflowStepId'] == null ? undefined : json['workflowStepId'],
|
|
62
69
|
'allSignaturesGathered': json['allSignaturesGathered'],
|
|
70
|
+
'file': json['file'],
|
|
63
71
|
};
|
|
64
72
|
}
|
|
65
73
|
|
|
@@ -77,6 +85,7 @@ export function DocumentSignedToJSONTyped(value?: DocumentSigned | null, ignoreD
|
|
|
77
85
|
'workflowId': value['workflowId'],
|
|
78
86
|
'workflowStepId': value['workflowStepId'],
|
|
79
87
|
'allSignaturesGathered': value['allSignaturesGathered'],
|
|
88
|
+
'file': value['file'],
|
|
80
89
|
};
|
|
81
90
|
}
|
|
82
91
|
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace API
|
|
5
|
+
* ManageSpace API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DocumentUrl
|
|
20
|
+
*/
|
|
21
|
+
export interface DocumentUrl {
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the document.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DocumentUrl
|
|
26
|
+
*/
|
|
27
|
+
documentId: string;
|
|
28
|
+
/**
|
|
29
|
+
* The URL of the document.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DocumentUrl
|
|
32
|
+
*/
|
|
33
|
+
documentUrl: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the DocumentUrl interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfDocumentUrl(value: object): value is DocumentUrl {
|
|
40
|
+
if (!('documentId' in value) || value['documentId'] === undefined) return false;
|
|
41
|
+
if (!('documentUrl' in value) || value['documentUrl'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function DocumentUrlFromJSON(json: any): DocumentUrl {
|
|
46
|
+
return DocumentUrlFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function DocumentUrlFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentUrl {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'documentId': json['documentId'],
|
|
56
|
+
'documentUrl': json['documentUrl'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function DocumentUrlToJSON(json: any): DocumentUrl {
|
|
61
|
+
return DocumentUrlToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function DocumentUrlToJSONTyped(value?: DocumentUrl | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'documentId': value['documentId'],
|
|
72
|
+
'documentUrl': value['documentUrl'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace API
|
|
5
|
+
* ManageSpace API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Document
|
|
20
|
+
*/
|
|
21
|
+
export interface Document {
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the document.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Document
|
|
26
|
+
*/
|
|
27
|
+
documentId: string;
|
|
28
|
+
/**
|
|
29
|
+
* The URL of the document.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Document
|
|
32
|
+
*/
|
|
33
|
+
documentUrl: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the Document interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfDocument(value: object): value is Document {
|
|
40
|
+
if (!('documentId' in value) || value['documentId'] === undefined) return false;
|
|
41
|
+
if (!('documentUrl' in value) || value['documentUrl'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function DocumentFromJSON(json: any): Document {
|
|
46
|
+
return DocumentFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function DocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Document {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'documentId': json['documentId'],
|
|
56
|
+
'documentUrl': json['documentUrl'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function DocumentToJSON(json: any): Document {
|
|
61
|
+
return DocumentToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function DocumentToJSONTyped(value?: Document | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'documentId': value['documentId'],
|
|
72
|
+
'documentUrl': value['documentUrl'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace API
|
|
5
|
+
* ManageSpace API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PageMeta } from './page-meta';
|
|
17
|
+
import {
|
|
18
|
+
PageMetaFromJSON,
|
|
19
|
+
PageMetaFromJSONTyped,
|
|
20
|
+
PageMetaToJSON,
|
|
21
|
+
PageMetaToJSONTyped,
|
|
22
|
+
} from './page-meta';
|
|
23
|
+
import type { DocumentUrl } from './document-url';
|
|
24
|
+
import {
|
|
25
|
+
DocumentUrlFromJSON,
|
|
26
|
+
DocumentUrlFromJSONTyped,
|
|
27
|
+
DocumentUrlToJSON,
|
|
28
|
+
DocumentUrlToJSONTyped,
|
|
29
|
+
} from './document-url';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface GetDocuments200Response
|
|
35
|
+
*/
|
|
36
|
+
export interface GetDocuments200Response {
|
|
37
|
+
/**
|
|
38
|
+
* The pagination metadata
|
|
39
|
+
* @type {PageMeta}
|
|
40
|
+
* @memberof GetDocuments200Response
|
|
41
|
+
*/
|
|
42
|
+
pageMeta: PageMeta;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<DocumentUrl>}
|
|
46
|
+
* @memberof GetDocuments200Response
|
|
47
|
+
*/
|
|
48
|
+
results?: Array<DocumentUrl>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the GetDocuments200Response interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfGetDocuments200Response(value: object): value is GetDocuments200Response {
|
|
55
|
+
if (!('pageMeta' in value) || value['pageMeta'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function GetDocuments200ResponseFromJSON(json: any): GetDocuments200Response {
|
|
60
|
+
return GetDocuments200ResponseFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function GetDocuments200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDocuments200Response {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'pageMeta': PageMetaFromJSON(json['pageMeta']),
|
|
70
|
+
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(DocumentUrlFromJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GetDocuments200ResponseToJSON(json: any): GetDocuments200Response {
|
|
75
|
+
return GetDocuments200ResponseToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetDocuments200ResponseToJSONTyped(value?: GetDocuments200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'pageMeta': PageMetaToJSON(value['pageMeta']),
|
|
86
|
+
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(DocumentUrlToJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|