octopian-apis 1.0.61 → 1.0.63
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/CoreServices/transactionsServices.js +117 -0
- package/src/index.d.ts +99 -1
- package/src/index.js +6 -0
- package/src/modals/input-modals/request-modals/RequesterAddRequestInput.ts +5 -0
- package/src/modals/input-modals/transaction-catalog-modals/GenerateDocumentInput.ts +2 -0
- package/src/modals/input-modals/transaction-catalog-modals/GetServicesInput.ts +1 -0
- package/src/modals/input-modals/transaction-catalog-modals/SignDocumentInput.ts +6 -0
- package/src/modals/output-modals/request-step-modals/GetRequestStepListOutput.ts +1 -0
- package/src/modals/output-modals/transaction-catalog-modals/GetInteractorSignatureOutput.ts +7 -0
- package/src/modals/output-modals/transaction-catalog-modals/GetSignatureBlobOutput.ts +7 -0
- package/src/web-services/apiConstants.js +10 -1
package/package.json
CHANGED
|
@@ -4102,6 +4102,123 @@ export async function GetStepTypeList(
|
|
|
4102
4102
|
);
|
|
4103
4103
|
return APIResponse;
|
|
4104
4104
|
}
|
|
4105
|
+
|
|
4106
|
+
/**
|
|
4107
|
+
* @description
|
|
4108
|
+
* Retrieves a list of interactor signatures.
|
|
4109
|
+
*
|
|
4110
|
+
* @param {string} AuthToken
|
|
4111
|
+
* Authentication token for authorization purposes.
|
|
4112
|
+
*
|
|
4113
|
+
* @param {number} Timeout
|
|
4114
|
+
* Time in milliseconds to wait before the request times out. Default is 30000.
|
|
4115
|
+
*
|
|
4116
|
+
* @param {string} RequiredHeaderValue
|
|
4117
|
+
* Value for any required header. Default is null.
|
|
4118
|
+
*
|
|
4119
|
+
* @returns
|
|
4120
|
+
* An object containing the response from the Get Interactor Signatures API,
|
|
4121
|
+
* including success message, status code, and any additional data returned by the API.
|
|
4122
|
+
* Message: Success,
|
|
4123
|
+
* StatusCode: 200,
|
|
4124
|
+
* Result: [
|
|
4125
|
+
* --- interactor signature data ---
|
|
4126
|
+
* ],
|
|
4127
|
+
* HeaderValue: string
|
|
4128
|
+
*/
|
|
4129
|
+
export async function GetInteractorSignatures(
|
|
4130
|
+
AuthToken = null,
|
|
4131
|
+
Timeout = 30000,
|
|
4132
|
+
RequiredHeaderValue = null
|
|
4133
|
+
) {
|
|
4134
|
+
let APIResponse = await apiHandler.GetMethod(
|
|
4135
|
+
TransactionsAPIConstants.uriGetInteractorSignatures(),
|
|
4136
|
+
AuthToken,
|
|
4137
|
+
Timeout,
|
|
4138
|
+
RequiredHeaderValue
|
|
4139
|
+
);
|
|
4140
|
+
return APIResponse;
|
|
4141
|
+
}
|
|
4142
|
+
|
|
4143
|
+
/**
|
|
4144
|
+
* @description
|
|
4145
|
+
* Retrieves a signature blob.
|
|
4146
|
+
*
|
|
4147
|
+
* @param {string} signatureId
|
|
4148
|
+
* The ID of the signature to retrieve.
|
|
4149
|
+
*
|
|
4150
|
+
* @param {string} AuthToken
|
|
4151
|
+
* Authentication token for authorization purposes.
|
|
4152
|
+
*
|
|
4153
|
+
* @param {number} Timeout
|
|
4154
|
+
* Time in milliseconds to wait before the request times out. Default is 30000.
|
|
4155
|
+
*
|
|
4156
|
+
* @param {string} RequiredHeaderValue
|
|
4157
|
+
* Value for any required header. Default is null.
|
|
4158
|
+
*
|
|
4159
|
+
* @returns
|
|
4160
|
+
* An object containing the response from the Get Signature Blob API,
|
|
4161
|
+
* including success message, status code, and any additional data returned by the API.
|
|
4162
|
+
* Message: Success,
|
|
4163
|
+
* StatusCode: 200,
|
|
4164
|
+
* Result: string (signature blob),
|
|
4165
|
+
* HeaderValue: string
|
|
4166
|
+
*/
|
|
4167
|
+
export async function GetSignatureBlob(
|
|
4168
|
+
signatureId,
|
|
4169
|
+
AuthToken = null,
|
|
4170
|
+
Timeout = 30000,
|
|
4171
|
+
RequiredHeaderValue = null
|
|
4172
|
+
) {
|
|
4173
|
+
let APIResponse = await apiHandler.GetMethod(
|
|
4174
|
+
TransactionsAPIConstants.uriGetSignatureBlob(signatureId),
|
|
4175
|
+
AuthToken,
|
|
4176
|
+
Timeout,
|
|
4177
|
+
RequiredHeaderValue
|
|
4178
|
+
);
|
|
4179
|
+
return APIResponse;
|
|
4180
|
+
}
|
|
4181
|
+
|
|
4182
|
+
/**
|
|
4183
|
+
* @description
|
|
4184
|
+
* Signs a document.
|
|
4185
|
+
*
|
|
4186
|
+
* @param {object} SignDocumentDTO
|
|
4187
|
+
* Data object containing fields necessary for signing the document.
|
|
4188
|
+
* --- signature data ---
|
|
4189
|
+
*
|
|
4190
|
+
* @param {string} AuthToken
|
|
4191
|
+
* Authentication token for authorization purposes.
|
|
4192
|
+
*
|
|
4193
|
+
* @param {number} Timeout
|
|
4194
|
+
* Time in milliseconds to wait before the request times out. Default is 30000.
|
|
4195
|
+
*
|
|
4196
|
+
* @param {string} RequiredHeaderValue
|
|
4197
|
+
* Value for any required header. Default is null.
|
|
4198
|
+
*
|
|
4199
|
+
* @returns
|
|
4200
|
+
* An object containing the response from the Sign Document API,
|
|
4201
|
+
* including success message, status code, and any additional data returned by the API.
|
|
4202
|
+
* Message: Success,
|
|
4203
|
+
* StatusCode: 200,
|
|
4204
|
+
* Result: string (signature id),
|
|
4205
|
+
* HeaderValue: string
|
|
4206
|
+
*/
|
|
4207
|
+
export async function SignDocument(
|
|
4208
|
+
SignDocumentDTO,
|
|
4209
|
+
AuthToken = null,
|
|
4210
|
+
Timeout = 30000,
|
|
4211
|
+
RequiredHeaderValue = null
|
|
4212
|
+
) {
|
|
4213
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
4214
|
+
TransactionsAPIConstants.uriSignDocument(),
|
|
4215
|
+
SignDocumentDTO,
|
|
4216
|
+
AuthToken,
|
|
4217
|
+
Timeout,
|
|
4218
|
+
RequiredHeaderValue
|
|
4219
|
+
);
|
|
4220
|
+
return APIResponse;
|
|
4221
|
+
}
|
|
4105
4222
|
//#endregion
|
|
4106
4223
|
|
|
4107
4224
|
//#region Agent
|
package/src/index.d.ts
CHANGED
|
@@ -275,6 +275,9 @@ import { GetAppStyles } from "./modals/output-modals/correspondence-modals/GetAp
|
|
|
275
275
|
import { NotificationListOutput } from "./modals/output-modals/transaction-catalog-modals/NotificationListOutput";
|
|
276
276
|
import { UpdateNotificationInput } from "./modals/input-modals/transaction-catalog-modals/UpdateNotificationInput";
|
|
277
277
|
import { GetStepTypeOutput } from "./modals/output-modals/transaction-catalog-modals/GetStepTypesOutput";
|
|
278
|
+
import { GetInteractorSignatureOutput } from "./modals/output-modals/transaction-catalog-modals/GetInteractorSignatureOutput";
|
|
279
|
+
import { GetSignatureBlobOutput } from "./modals/output-modals/transaction-catalog-modals/GetSignatureBlobOutput";
|
|
280
|
+
import { SignDocumentInput } from "./modals/input-modals/transaction-catalog-modals/SignDocumentInput";
|
|
278
281
|
// Define each module with its specific functions
|
|
279
282
|
|
|
280
283
|
interface AuthenticationServices {
|
|
@@ -4211,6 +4214,98 @@ interface TransactionCommonServices {
|
|
|
4211
4214
|
Timeout?: number | null,
|
|
4212
4215
|
RequiredHeaderValue?: string
|
|
4213
4216
|
) => BaseResponse<GetStepTypeOutput[] | BaseErrorResponse>;
|
|
4217
|
+
|
|
4218
|
+
/**
|
|
4219
|
+
* @description
|
|
4220
|
+
* Retrieves a list of interactor signatures.
|
|
4221
|
+
*
|
|
4222
|
+
* @param {string} AuthToken
|
|
4223
|
+
* Authentication token for authorization purposes.
|
|
4224
|
+
*
|
|
4225
|
+
* @param {number} Timeout
|
|
4226
|
+
* Time in milliseconds to wait before the request times out. Default is 30000.
|
|
4227
|
+
*
|
|
4228
|
+
* @param {string} RequiredHeaderValue
|
|
4229
|
+
* Value for any required header. Default is null.
|
|
4230
|
+
*
|
|
4231
|
+
* @returns
|
|
4232
|
+
* An object containing the response from the Get Interactor Signatures API,
|
|
4233
|
+
* including success message, status code, and any additional data returned by the API.
|
|
4234
|
+
* Message: Success,
|
|
4235
|
+
* StatusCode: 200,
|
|
4236
|
+
* Result: [
|
|
4237
|
+
* --- interactor signature data ---
|
|
4238
|
+
* ],
|
|
4239
|
+
* HeaderValue: string
|
|
4240
|
+
*/
|
|
4241
|
+
GetInteractorSignatures: (
|
|
4242
|
+
AuthToken?: string | null,
|
|
4243
|
+
Timeout?: number | null,
|
|
4244
|
+
RequiredHeaderValue?: string
|
|
4245
|
+
) => BaseResponse<GetInteractorSignatureOutput[] | BaseErrorResponse>;
|
|
4246
|
+
|
|
4247
|
+
/**
|
|
4248
|
+
* @description
|
|
4249
|
+
* Retrieves a signature blob.
|
|
4250
|
+
*
|
|
4251
|
+
* @param {string} signatureId
|
|
4252
|
+
* The ID of the signature to retrieve.
|
|
4253
|
+
*
|
|
4254
|
+
* @param {string} AuthToken
|
|
4255
|
+
* Authentication token for authorization purposes.
|
|
4256
|
+
*
|
|
4257
|
+
* @param {number} Timeout
|
|
4258
|
+
* Time in milliseconds to wait before the request times out. Default is 30000.
|
|
4259
|
+
*
|
|
4260
|
+
* @param {string} RequiredHeaderValue
|
|
4261
|
+
* Value for any required header. Default is null.
|
|
4262
|
+
*
|
|
4263
|
+
* @returns
|
|
4264
|
+
* An object containing the response from the Get Signature Blob API,
|
|
4265
|
+
* including success message, status code, and any additional data returned by the API.
|
|
4266
|
+
* Message: Success,
|
|
4267
|
+
* StatusCode: 200,
|
|
4268
|
+
* Result: GetSignatureBlobOutput,
|
|
4269
|
+
* HeaderValue: string
|
|
4270
|
+
*/
|
|
4271
|
+
GetSignatureBlob: (
|
|
4272
|
+
signatureId: string,
|
|
4273
|
+
AuthToken?: string | null,
|
|
4274
|
+
Timeout?: number | null,
|
|
4275
|
+
RequiredHeaderValue?: string
|
|
4276
|
+
) => BaseResponse<GetSignatureBlobOutput | BaseErrorResponse>;
|
|
4277
|
+
|
|
4278
|
+
/**
|
|
4279
|
+
* @description
|
|
4280
|
+
* Signs a document.
|
|
4281
|
+
*
|
|
4282
|
+
* @param {SignDocumentInput} SignDocumentDTO
|
|
4283
|
+
* Data object containing fields necessary for signing the document.
|
|
4284
|
+
* --- signature data ---
|
|
4285
|
+
*
|
|
4286
|
+
* @param {string} AuthToken
|
|
4287
|
+
* Authentication token for authorization purposes.
|
|
4288
|
+
*
|
|
4289
|
+
* @param {number} Timeout
|
|
4290
|
+
* Time in milliseconds to wait before the request times out. Default is 30000.
|
|
4291
|
+
*
|
|
4292
|
+
* @param {string} RequiredHeaderValue
|
|
4293
|
+
* Value for any required header. Default is null.
|
|
4294
|
+
*
|
|
4295
|
+
* @returns
|
|
4296
|
+
* An object containing the response from the Sign Document API,
|
|
4297
|
+
* including success message, status code, and any additional data returned by the API.
|
|
4298
|
+
* Message: Success,
|
|
4299
|
+
* StatusCode: 200,
|
|
4300
|
+
* Result: string (signature id),
|
|
4301
|
+
* HeaderValue: string
|
|
4302
|
+
*/
|
|
4303
|
+
SignDocument: (
|
|
4304
|
+
SignDocumentDTO: SignDocumentInput,
|
|
4305
|
+
AuthToken?: string | null,
|
|
4306
|
+
Timeout?: number | null,
|
|
4307
|
+
RequiredHeaderValue?: string
|
|
4308
|
+
) => BaseResponse<string | BaseErrorResponse>;
|
|
4214
4309
|
}
|
|
4215
4310
|
|
|
4216
4311
|
// Storage Services interface
|
|
@@ -7640,5 +7735,8 @@ export {
|
|
|
7640
7735
|
UpdateNotificationInput,
|
|
7641
7736
|
GetStepTypeOutput,
|
|
7642
7737
|
ChildStep,
|
|
7643
|
-
MaintainRequestStepListInput
|
|
7738
|
+
MaintainRequestStepListInput,
|
|
7739
|
+
SignDocumentInput,
|
|
7740
|
+
GetSignatureBlobOutput,
|
|
7741
|
+
GetInteractorSignatureOutput,
|
|
7644
7742
|
};
|
package/src/index.js
CHANGED
|
@@ -142,6 +142,9 @@ const {
|
|
|
142
142
|
GetNotificationList,
|
|
143
143
|
UpdateNotificationList,
|
|
144
144
|
GetStepTypeList,
|
|
145
|
+
GetInteractorSignatures,
|
|
146
|
+
GetSignatureBlob,
|
|
147
|
+
SignDocument,
|
|
145
148
|
} = require("./CoreServices/transactionsServices");
|
|
146
149
|
const TransactionRequesterServices = {
|
|
147
150
|
GetCompanyLanguageList,
|
|
@@ -244,6 +247,9 @@ const TransactionCommonServices = {
|
|
|
244
247
|
GetNotificationList,
|
|
245
248
|
UpdateNotificationList,
|
|
246
249
|
GetStepTypeList,
|
|
250
|
+
GetInteractorSignatures,
|
|
251
|
+
GetSignatureBlob,
|
|
252
|
+
SignDocument,
|
|
247
253
|
};
|
|
248
254
|
|
|
249
255
|
const {
|
|
@@ -10,8 +10,13 @@ export interface RequesterAddRequestInput {
|
|
|
10
10
|
ClientRequestAttributeDtos?: ClientRequestAttributeDto[]
|
|
11
11
|
RequestLanguageCode?: string
|
|
12
12
|
DynamicStepList?: DynamicStepList[]
|
|
13
|
+
ChildRequestList?: ChildRequestList[]
|
|
13
14
|
}
|
|
14
15
|
|
|
16
|
+
export interface ChildRequestList {
|
|
17
|
+
ClientRequestAttributeDtos: ClientRequestAttributeDto[]
|
|
18
|
+
}
|
|
19
|
+
|
|
15
20
|
export interface DynamicStepList {
|
|
16
21
|
StepTypeName: string
|
|
17
22
|
StepName: string
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface GenerateDocumentInput {
|
|
2
2
|
serviceId: number
|
|
3
3
|
templateAttributeAlias: string
|
|
4
|
+
IsGeneratedWord:boolean
|
|
4
5
|
clientRequestAttributes: ClientRequestAttribute[]
|
|
5
6
|
}
|
|
6
7
|
|
|
@@ -17,6 +18,7 @@ export interface GenerateDocumentInput {
|
|
|
17
18
|
export interface GenerateStepDocumentInput {
|
|
18
19
|
RequestStepId: number
|
|
19
20
|
TemplateAttributeAlias: string
|
|
21
|
+
IsGeneratedWord:boolean
|
|
20
22
|
ClientRequestAttributes: ClientRequestAttribute[]
|
|
21
23
|
}
|
|
22
24
|
|
|
@@ -142,6 +142,7 @@ import { GetMyRequestOutput, RequestList } from "../request-modals/GetMyRequestG
|
|
|
142
142
|
PreviousClosedRequestStepList: GetRequestStepListOutput[]
|
|
143
143
|
CurrentActiveRequestStep: GetRequestStepListOutput
|
|
144
144
|
StepStatusCounter: StepStatusCounter
|
|
145
|
+
IsSignDocument: boolean
|
|
145
146
|
}
|
|
146
147
|
|
|
147
148
|
export interface RequestAttributeList {
|
|
@@ -393,6 +393,15 @@ export class TransactionsAPIConstants {
|
|
|
393
393
|
static uriGetStepTypeList(){
|
|
394
394
|
return transactionCatalogURI + "/api/TransactionCommon/GetStepTypeList";
|
|
395
395
|
}
|
|
396
|
+
static uriGetInteractorSignatures(){
|
|
397
|
+
return signatureURI + "/api/InteractorSignatures";
|
|
398
|
+
}
|
|
399
|
+
static uriGetSignatureBlob(signatureId){
|
|
400
|
+
return signatureURI + `/api/InteractorSignatures/Blob/${signatureId}`;
|
|
401
|
+
}
|
|
402
|
+
static uriSignDocument(){
|
|
403
|
+
return signatureURI + "/api/SignDocument";
|
|
404
|
+
}
|
|
396
405
|
//#endregion
|
|
397
406
|
|
|
398
407
|
//#region Agent
|
|
@@ -754,5 +763,5 @@ let requestServicesURI = "/Request";
|
|
|
754
763
|
let requestStepURI = "/RequestStep";
|
|
755
764
|
let storageURI = "/Storage";
|
|
756
765
|
let transactionCatalogURI = "/TransactionCatalog";
|
|
757
|
-
|
|
766
|
+
let signatureURI = "/Signature";
|
|
758
767
|
//#endregion
|