@managespace/sdk 0.0.134 → 0.0.135
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/.turbo/turbo-build.log +2 -0
- package/dist/extensibility/functions/project/billing.d.ts +7 -0
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +5 -0
- package/dist/extensibility/functions/project/document.d.ts +1 -14
- package/dist/extensibility/functions/project/document.d.ts.map +1 -1
- package/dist/extensibility/functions/project/document.js +0 -10
- package/dist/generated/apis/default-api.d.ts +11 -51
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +33 -163
- package/dist/generated/models/create-subscription-plan.d.ts +69 -0
- package/dist/generated/models/create-subscription-plan.d.ts.map +1 -0
- package/dist/generated/models/create-subscription-plan.js +71 -0
- package/dist/generated/models/document-signed.d.ts +0 -6
- package/dist/generated/models/document-signed.d.ts.map +1 -1
- package/dist/generated/models/document-signed.js +0 -4
- package/dist/generated/models/index.d.ts +0 -5
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +0 -5
- package/dist/generated/models/subscription-invoice-line.d.ts +117 -0
- package/dist/generated/models/subscription-invoice-line.d.ts.map +1 -0
- package/dist/generated/models/subscription-invoice-line.js +107 -0
- package/dist/generated/models/subscription-invoice.d.ts +58 -0
- package/dist/generated/models/subscription-invoice.d.ts.map +1 -0
- package/dist/generated/models/subscription-invoice.js +68 -0
- package/dist/generated/models/subscription-plan.d.ts +268 -0
- package/dist/generated/models/subscription-plan.d.ts.map +1 -0
- package/dist/generated/models/subscription-plan.js +208 -0
- package/dist/generated/models/subscription-preview.d.ts +275 -0
- package/dist/generated/models/subscription-preview.d.ts.map +1 -0
- package/dist/generated/models/subscription-preview.js +211 -0
- package/dist/generated/models/update-subscription-charge.d.ts +293 -0
- package/dist/generated/models/update-subscription-charge.d.ts.map +1 -0
- package/dist/generated/models/update-subscription-charge.js +149 -0
- package/dist/generated/models/update-subscription.d.ts +226 -0
- package/dist/generated/models/update-subscription.d.ts.map +1 -0
- package/dist/generated/models/update-subscription.js +118 -0
- package/package.json +2 -2
- package/src/extensibility/functions/project/billing.ts +7 -0
- package/src/extensibility/functions/project/document.ts +0 -9
- package/src/generated/.openapi-generator/FILES +0 -5
- package/src/generated/apis/default-api.ts +52 -262
- package/src/generated/models/document-signed.ts +0 -9
- package/src/generated/models/index.ts +0 -5
- package/dist/generated/models/document-url.d.ts +0 -39
- package/dist/generated/models/document-url.d.ts.map +0 -1
- package/dist/generated/models/document-url.js +0 -55
- package/dist/generated/models/document.d.ts +0 -39
- package/dist/generated/models/document.d.ts.map +0 -1
- package/dist/generated/models/document.js +0 -55
- package/dist/generated/models/get-documents200-response.d.ts +0 -41
- package/dist/generated/models/get-documents200-response.d.ts.map +0 -1
- package/dist/generated/models/get-documents200-response.js +0 -55
- package/dist/generated/models/upload-document.d.ts +0 -45
- package/dist/generated/models/upload-document.d.ts.map +0 -1
- package/dist/generated/models/upload-document.js +0 -55
- package/dist/generated/models/uploaded-document.d.ts +0 -33
- package/dist/generated/models/uploaded-document.d.ts.map +0 -1
- package/dist/generated/models/uploaded-document.js +0 -51
- package/dist/generated/models/uploaded-documents.d.ts +0 -45
- package/dist/generated/models/uploaded-documents.d.ts.map +0 -1
- package/dist/generated/models/uploaded-documents.js +0 -59
- package/package.deploy.json +0 -33
- package/src/generated/models/document-url.ts +0 -75
- package/src/generated/models/document.ts +0 -75
- package/src/generated/models/get-documents200-response.ts +0 -89
- package/src/generated/models/upload-document.ts +0 -82
- package/src/generated/models/uploaded-document.ts +0 -66
- package/src/generated/models/uploaded-documents.ts +0 -84
|
@@ -65,7 +65,6 @@ import type {
|
|
|
65
65
|
CustomUpdateTaskTemplate,
|
|
66
66
|
Customer,
|
|
67
67
|
DocumentSigned,
|
|
68
|
-
DocumentUrl,
|
|
69
68
|
ExecuteBy,
|
|
70
69
|
ExtensibilityRepo,
|
|
71
70
|
FileUploaded,
|
|
@@ -82,7 +81,6 @@ import type {
|
|
|
82
81
|
GetConfigurationSettings200Response,
|
|
83
82
|
GetContacts200Response,
|
|
84
83
|
GetCustomers200Response,
|
|
85
|
-
GetDocuments200Response,
|
|
86
84
|
GetIntent,
|
|
87
85
|
GetInvoices200Response,
|
|
88
86
|
GetNotes200Response,
|
|
@@ -146,9 +144,6 @@ import type {
|
|
|
146
144
|
UpdateOrg,
|
|
147
145
|
UpdateSmartBarPrompt,
|
|
148
146
|
UpdateUserProperties,
|
|
149
|
-
UploadDocument,
|
|
150
|
-
UploadedDocument,
|
|
151
|
-
UploadedDocuments,
|
|
152
147
|
User,
|
|
153
148
|
UserId,
|
|
154
149
|
WorkflowDefinition,
|
|
@@ -259,8 +254,6 @@ import {
|
|
|
259
254
|
CustomerToJSON,
|
|
260
255
|
DocumentSignedFromJSON,
|
|
261
256
|
DocumentSignedToJSON,
|
|
262
|
-
DocumentUrlFromJSON,
|
|
263
|
-
DocumentUrlToJSON,
|
|
264
257
|
ExecuteByFromJSON,
|
|
265
258
|
ExecuteByToJSON,
|
|
266
259
|
ExtensibilityRepoFromJSON,
|
|
@@ -293,8 +286,6 @@ import {
|
|
|
293
286
|
GetContacts200ResponseToJSON,
|
|
294
287
|
GetCustomers200ResponseFromJSON,
|
|
295
288
|
GetCustomers200ResponseToJSON,
|
|
296
|
-
GetDocuments200ResponseFromJSON,
|
|
297
|
-
GetDocuments200ResponseToJSON,
|
|
298
289
|
GetIntentFromJSON,
|
|
299
290
|
GetIntentToJSON,
|
|
300
291
|
GetInvoices200ResponseFromJSON,
|
|
@@ -421,12 +412,6 @@ import {
|
|
|
421
412
|
UpdateSmartBarPromptToJSON,
|
|
422
413
|
UpdateUserPropertiesFromJSON,
|
|
423
414
|
UpdateUserPropertiesToJSON,
|
|
424
|
-
UploadDocumentFromJSON,
|
|
425
|
-
UploadDocumentToJSON,
|
|
426
|
-
UploadedDocumentFromJSON,
|
|
427
|
-
UploadedDocumentToJSON,
|
|
428
|
-
UploadedDocumentsFromJSON,
|
|
429
|
-
UploadedDocumentsToJSON,
|
|
430
415
|
UserFromJSON,
|
|
431
416
|
UserToJSON,
|
|
432
417
|
UserIdFromJSON,
|
|
@@ -445,6 +430,11 @@ import {
|
|
|
445
430
|
WorkflowStepInstancesToJSON,
|
|
446
431
|
} from '../models/index';
|
|
447
432
|
|
|
433
|
+
export interface ActivateSubscriptionRequest {
|
|
434
|
+
siteId: string;
|
|
435
|
+
subscriptionId: string;
|
|
436
|
+
}
|
|
437
|
+
|
|
448
438
|
export interface AdminSignUpRequest {
|
|
449
439
|
adminSignUp: AdminSignUp;
|
|
450
440
|
}
|
|
@@ -624,7 +614,6 @@ export interface DeleteWorkflowInstanceRequest {
|
|
|
624
614
|
|
|
625
615
|
export interface DocumentSignedRequest {
|
|
626
616
|
siteId: string;
|
|
627
|
-
documentId: string;
|
|
628
617
|
documentSigned: DocumentSigned;
|
|
629
618
|
}
|
|
630
619
|
|
|
@@ -772,17 +761,6 @@ export interface GetCustomersRequest {
|
|
|
772
761
|
name?: string;
|
|
773
762
|
}
|
|
774
763
|
|
|
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
|
-
|
|
786
764
|
export interface GetInvoiceRequest {
|
|
787
765
|
siteId: string;
|
|
788
766
|
invoiceId: string;
|
|
@@ -982,15 +960,6 @@ export interface GetTemplatesRequest {
|
|
|
982
960
|
siteId?: string;
|
|
983
961
|
}
|
|
984
962
|
|
|
985
|
-
export interface GetUploadedDocumentRequest {
|
|
986
|
-
documentId: string;
|
|
987
|
-
siteId?: string;
|
|
988
|
-
}
|
|
989
|
-
|
|
990
|
-
export interface GetUploadedDocumentsRequest {
|
|
991
|
-
siteId?: string;
|
|
992
|
-
}
|
|
993
|
-
|
|
994
963
|
export interface GetUserRequest {
|
|
995
964
|
userId: string;
|
|
996
965
|
}
|
|
@@ -1173,10 +1142,6 @@ export interface UpdateUserPropertiesRequest {
|
|
|
1173
1142
|
updateUserProperties: UpdateUserProperties;
|
|
1174
1143
|
}
|
|
1175
1144
|
|
|
1176
|
-
export interface UploadDocumentRequest {
|
|
1177
|
-
uploadDocument: UploadDocument;
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
1145
|
export interface UploadPluginRequest {
|
|
1181
1146
|
file: Blob;
|
|
1182
1147
|
}
|
|
@@ -1186,6 +1151,52 @@ export interface UploadPluginRequest {
|
|
|
1186
1151
|
*/
|
|
1187
1152
|
export class DefaultApi extends runtime.BaseAPI {
|
|
1188
1153
|
|
|
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
|
+
|
|
1189
1200
|
/**
|
|
1190
1201
|
*/
|
|
1191
1202
|
async adminSignUpRaw(requestParameters: AdminSignUpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Token>> {
|
|
@@ -2967,13 +2978,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2967
2978
|
);
|
|
2968
2979
|
}
|
|
2969
2980
|
|
|
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
|
-
|
|
2977
2981
|
if (requestParameters['documentSigned'] == null) {
|
|
2978
2982
|
throw new runtime.RequiredError(
|
|
2979
2983
|
'documentSigned',
|
|
@@ -2996,7 +3000,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2996
3000
|
}
|
|
2997
3001
|
}
|
|
2998
3002
|
const response = await this.request({
|
|
2999
|
-
path: `/api/sites/{siteId}/documents/
|
|
3003
|
+
path: `/api/sites/{siteId}/documents/signed`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))),
|
|
3000
3004
|
method: 'POST',
|
|
3001
3005
|
headers: headerParameters,
|
|
3002
3006
|
query: queryParameters,
|
|
@@ -4190,99 +4194,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
4190
4194
|
return await response.value();
|
|
4191
4195
|
}
|
|
4192
4196
|
|
|
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
|
-
|
|
4286
4197
|
/**
|
|
4287
4198
|
*/
|
|
4288
4199
|
async getExtensibilityRepoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ExtensibilityRepo>> {
|
|
@@ -5933,85 +5844,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
5933
5844
|
return await response.value();
|
|
5934
5845
|
}
|
|
5935
5846
|
|
|
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
|
-
|
|
6015
5847
|
/**
|
|
6016
5848
|
*/
|
|
6017
5849
|
async getUserRaw(requestParameters: GetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<User>> {
|
|
@@ -7722,48 +7554,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
7722
7554
|
return await response.value();
|
|
7723
7555
|
}
|
|
7724
7556
|
|
|
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
|
-
|
|
7767
7557
|
/**
|
|
7768
7558
|
*/
|
|
7769
7559
|
async uploadPluginRaw(requestParameters: UploadPluginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileUploaded>> {
|
|
@@ -37,12 +37,6 @@ 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;
|
|
46
40
|
}
|
|
47
41
|
|
|
48
42
|
/**
|
|
@@ -50,7 +44,6 @@ export interface DocumentSigned {
|
|
|
50
44
|
*/
|
|
51
45
|
export function instanceOfDocumentSigned(value: object): value is DocumentSigned {
|
|
52
46
|
if (!('allSignaturesGathered' in value) || value['allSignaturesGathered'] === undefined) return false;
|
|
53
|
-
if (!('file' in value) || value['file'] === undefined) return false;
|
|
54
47
|
return true;
|
|
55
48
|
}
|
|
56
49
|
|
|
@@ -67,7 +60,6 @@ export function DocumentSignedFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
67
60
|
'workflowId': json['workflowId'] == null ? undefined : json['workflowId'],
|
|
68
61
|
'workflowStepId': json['workflowStepId'] == null ? undefined : json['workflowStepId'],
|
|
69
62
|
'allSignaturesGathered': json['allSignaturesGathered'],
|
|
70
|
-
'file': json['file'],
|
|
71
63
|
};
|
|
72
64
|
}
|
|
73
65
|
|
|
@@ -85,7 +77,6 @@ export function DocumentSignedToJSONTyped(value?: DocumentSigned | null, ignoreD
|
|
|
85
77
|
'workflowId': value['workflowId'],
|
|
86
78
|
'workflowStepId': value['workflowStepId'],
|
|
87
79
|
'allSignaturesGathered': value['allSignaturesGathered'],
|
|
88
|
-
'file': value['file'],
|
|
89
80
|
};
|
|
90
81
|
}
|
|
91
82
|
|
|
@@ -66,7 +66,6 @@ export * from './customer';
|
|
|
66
66
|
export * from './document-field';
|
|
67
67
|
export * from './document-signed';
|
|
68
68
|
export * from './document-signer';
|
|
69
|
-
export * from './document-url';
|
|
70
69
|
export * from './execute-by';
|
|
71
70
|
export * from './extensibility-function-definition';
|
|
72
71
|
export * from './extensibility-function-instance';
|
|
@@ -90,7 +89,6 @@ export * from './get-communications200-response';
|
|
|
90
89
|
export * from './get-configuration-settings200-response';
|
|
91
90
|
export * from './get-contacts200-response';
|
|
92
91
|
export * from './get-customers200-response';
|
|
93
|
-
export * from './get-documents200-response';
|
|
94
92
|
export * from './get-intent';
|
|
95
93
|
export * from './get-invoices200-response';
|
|
96
94
|
export * from './get-notes200-response';
|
|
@@ -185,9 +183,6 @@ export * from './update-note';
|
|
|
185
183
|
export * from './update-org';
|
|
186
184
|
export * from './update-smart-bar-prompt';
|
|
187
185
|
export * from './update-user-properties';
|
|
188
|
-
export * from './upload-document';
|
|
189
|
-
export * from './uploaded-document';
|
|
190
|
-
export * from './uploaded-documents';
|
|
191
186
|
export * from './user';
|
|
192
187
|
export * from './user-id';
|
|
193
188
|
export * from './workflow-definition';
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ManageSpace API
|
|
3
|
-
* ManageSpace API Documentation
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface DocumentUrl
|
|
16
|
-
*/
|
|
17
|
-
export interface DocumentUrl {
|
|
18
|
-
/**
|
|
19
|
-
* The ID of the document.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof DocumentUrl
|
|
22
|
-
*/
|
|
23
|
-
id: string;
|
|
24
|
-
/**
|
|
25
|
-
* The URL of the document.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof DocumentUrl
|
|
28
|
-
*/
|
|
29
|
-
url: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the DocumentUrl interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfDocumentUrl(value: object): value is DocumentUrl;
|
|
35
|
-
export declare function DocumentUrlFromJSON(json: any): DocumentUrl;
|
|
36
|
-
export declare function DocumentUrlFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentUrl;
|
|
37
|
-
export declare function DocumentUrlToJSON(json: any): DocumentUrl;
|
|
38
|
-
export declare function DocumentUrlToJSONTyped(value?: DocumentUrl | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
-
//# sourceMappingURL=document-url.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"document-url.d.ts","sourceRoot":"","sources":["../../../src/generated/models/document-url.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAIzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAS7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU5G"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* ManageSpace API
|
|
6
|
-
* ManageSpace API Documentation
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.DocumentUrlToJSONTyped = exports.DocumentUrlToJSON = exports.DocumentUrlFromJSONTyped = exports.DocumentUrlFromJSON = exports.instanceOfDocumentUrl = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the DocumentUrl interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfDocumentUrl(value) {
|
|
21
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
if (!('url' in value) || value['url'] === undefined)
|
|
24
|
-
return false;
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
exports.instanceOfDocumentUrl = instanceOfDocumentUrl;
|
|
28
|
-
function DocumentUrlFromJSON(json) {
|
|
29
|
-
return DocumentUrlFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
exports.DocumentUrlFromJSON = DocumentUrlFromJSON;
|
|
32
|
-
function DocumentUrlFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'id': json['id'],
|
|
38
|
-
'url': json['url'],
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
exports.DocumentUrlFromJSONTyped = DocumentUrlFromJSONTyped;
|
|
42
|
-
function DocumentUrlToJSON(json) {
|
|
43
|
-
return DocumentUrlToJSONTyped(json, false);
|
|
44
|
-
}
|
|
45
|
-
exports.DocumentUrlToJSON = DocumentUrlToJSON;
|
|
46
|
-
function DocumentUrlToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
-
if (value == null) {
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
'id': value['id'],
|
|
52
|
-
'url': value['url'],
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
exports.DocumentUrlToJSONTyped = DocumentUrlToJSONTyped;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ManageSpace API
|
|
3
|
-
* ManageSpace API Documentation
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface Document
|
|
16
|
-
*/
|
|
17
|
-
export interface Document {
|
|
18
|
-
/**
|
|
19
|
-
* The ID of the document.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof Document
|
|
22
|
-
*/
|
|
23
|
-
documentId: string;
|
|
24
|
-
/**
|
|
25
|
-
* The URL of the document.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof Document
|
|
28
|
-
*/
|
|
29
|
-
documentUrl: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the Document interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfDocument(value: object): value is Document;
|
|
35
|
-
export declare function DocumentFromJSON(json: any): Document;
|
|
36
|
-
export declare function DocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Document;
|
|
37
|
-
export declare function DocumentToJSON(json: any): Document;
|
|
38
|
-
export declare function DocumentToJSONTyped(value?: Document | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
-
//# sourceMappingURL=document.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../src/generated/models/document.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,QAAQ,CAInE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAEpD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,QAAQ,CASvF;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAElD;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUtG"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* ManageSpace API
|
|
6
|
-
* ManageSpace API Documentation
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.DocumentToJSONTyped = exports.DocumentToJSON = exports.DocumentFromJSONTyped = exports.DocumentFromJSON = exports.instanceOfDocument = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the Document interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfDocument(value) {
|
|
21
|
-
if (!('documentId' in value) || value['documentId'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
if (!('documentUrl' in value) || value['documentUrl'] === undefined)
|
|
24
|
-
return false;
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
exports.instanceOfDocument = instanceOfDocument;
|
|
28
|
-
function DocumentFromJSON(json) {
|
|
29
|
-
return DocumentFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
exports.DocumentFromJSON = DocumentFromJSON;
|
|
32
|
-
function DocumentFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'documentId': json['documentId'],
|
|
38
|
-
'documentUrl': json['documentUrl'],
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
exports.DocumentFromJSONTyped = DocumentFromJSONTyped;
|
|
42
|
-
function DocumentToJSON(json) {
|
|
43
|
-
return DocumentToJSONTyped(json, false);
|
|
44
|
-
}
|
|
45
|
-
exports.DocumentToJSON = DocumentToJSON;
|
|
46
|
-
function DocumentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
-
if (value == null) {
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
'documentId': value['documentId'],
|
|
52
|
-
'documentUrl': value['documentUrl'],
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
exports.DocumentToJSONTyped = DocumentToJSONTyped;
|