octopian-apis 1.0.60 → 1.0.62
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/requestsServices.js +38 -0
- package/src/CoreServices/transactionsServices.js +117 -0
- package/src/index.d.ts +117 -1
- package/src/index.js +8 -0
- package/src/modals/input-modals/request-modals/MaintainRequestStepListInput.ts +6 -0
- package/src/modals/input-modals/transaction-catalog-modals/GenerateDocumentInput.ts +2 -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 +15 -1
package/package.json
CHANGED
|
@@ -1097,6 +1097,44 @@ export async function MaintainRequestAttributeList(
|
|
|
1097
1097
|
);
|
|
1098
1098
|
return APIResponse;
|
|
1099
1099
|
}
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
* @description
|
|
1103
|
+
* Maintains the request steps.
|
|
1104
|
+
*
|
|
1105
|
+
* @param {object} MaintainRequestStepListDTO
|
|
1106
|
+
* An object containing fields necessary for maintaining the request steps.
|
|
1107
|
+
* DynamicSteps : DynamicStep[]
|
|
1108
|
+
* RequestId : number
|
|
1109
|
+
*
|
|
1110
|
+
* @param {string} AuthToken
|
|
1111
|
+
* Authentication token for authorization purposes.
|
|
1112
|
+
*
|
|
1113
|
+
* @param {number} Timeout
|
|
1114
|
+
* Time in milliseconds to wait before the request times out. Default is 30000.
|
|
1115
|
+
*
|
|
1116
|
+
* @returns
|
|
1117
|
+
* An object containing the response from the Maintain Request Step List request, including
|
|
1118
|
+
* success message, status code, and any additional data returned by the API.
|
|
1119
|
+
* {
|
|
1120
|
+
* Message: Success,
|
|
1121
|
+
* StatusCode: 200,
|
|
1122
|
+
* Result: -- list of updated request steps --
|
|
1123
|
+
* }
|
|
1124
|
+
*/
|
|
1125
|
+
export async function MaintainRequestStepList(
|
|
1126
|
+
MaintainRequestStepListDTO,
|
|
1127
|
+
AuthToken = null,
|
|
1128
|
+
Timeout = 30000
|
|
1129
|
+
) {
|
|
1130
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
1131
|
+
RequestsAPIConstants.uriMaintainRequestStepList(),
|
|
1132
|
+
MaintainRequestStepListDTO,
|
|
1133
|
+
AuthToken,
|
|
1134
|
+
Timeout
|
|
1135
|
+
);
|
|
1136
|
+
return APIResponse;
|
|
1137
|
+
}
|
|
1100
1138
|
/**
|
|
1101
1139
|
* @description
|
|
1102
1140
|
* Updates the dismiss status of a request.
|
|
@@ -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
|
@@ -102,6 +102,7 @@ import { DispatchOrderInput } from "./modals/input-modals/request-step-modals/Di
|
|
|
102
102
|
import { GetDriverDetailsInput } from "./modals/input-modals/request-step-modals/GetDriverDetailsInput";
|
|
103
103
|
import { GetOrderDetailsInput } from "./modals/input-modals/request-step-modals/GetOrderDetailsInput";
|
|
104
104
|
import { GetOrderStatusInput } from "./modals/input-modals/request-step-modals/GetOrderStatusInput";
|
|
105
|
+
import { MaintainRequestStepListInput } from "./modals/input-modals/request-modals/MaintainRequestStepListInput";
|
|
105
106
|
import {
|
|
106
107
|
ProcessRequestStepListInput,
|
|
107
108
|
ProcessCheckedOutStepListInput,
|
|
@@ -274,6 +275,9 @@ import { GetAppStyles } from "./modals/output-modals/correspondence-modals/GetAp
|
|
|
274
275
|
import { NotificationListOutput } from "./modals/output-modals/transaction-catalog-modals/NotificationListOutput";
|
|
275
276
|
import { UpdateNotificationInput } from "./modals/input-modals/transaction-catalog-modals/UpdateNotificationInput";
|
|
276
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";
|
|
277
281
|
// Define each module with its specific functions
|
|
278
282
|
|
|
279
283
|
interface AuthenticationServices {
|
|
@@ -4210,6 +4214,98 @@ interface TransactionCommonServices {
|
|
|
4210
4214
|
Timeout?: number | null,
|
|
4211
4215
|
RequiredHeaderValue?: string
|
|
4212
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>;
|
|
4213
4309
|
}
|
|
4214
4310
|
|
|
4215
4311
|
// Storage Services interface
|
|
@@ -5577,6 +5673,22 @@ interface RequestsTransactionCommonServices {
|
|
|
5577
5673
|
AuthToken?: string | null,
|
|
5578
5674
|
Timeout?: number | null
|
|
5579
5675
|
) => BaseResponse<MaintainRequestAttributeListOutput[] | BaseErrorResponse>;
|
|
5676
|
+
|
|
5677
|
+
/**
|
|
5678
|
+
* @description
|
|
5679
|
+
* Maintains the request steps.
|
|
5680
|
+
*
|
|
5681
|
+
* @param {MaintainRequestStepListInput} MaintainRequestStepListDTO
|
|
5682
|
+
* An object containing fields necessary for maintaining the request steps.
|
|
5683
|
+
* DynamicSteps : DynamicStep[]
|
|
5684
|
+
* RequestId : number
|
|
5685
|
+
*/
|
|
5686
|
+
MaintainRequestStepList: (
|
|
5687
|
+
Input: MaintainRequestStepListInput,
|
|
5688
|
+
AuthToken?: string | null,
|
|
5689
|
+
Timeout?: number | null
|
|
5690
|
+
) => BaseResponse<boolean | BaseErrorResponse>;
|
|
5691
|
+
|
|
5580
5692
|
/**
|
|
5581
5693
|
* @description
|
|
5582
5694
|
* Reorders a trackable batch for a given batch identifier.
|
|
@@ -7622,5 +7734,9 @@ export {
|
|
|
7622
7734
|
NotificationListOutput,
|
|
7623
7735
|
UpdateNotificationInput,
|
|
7624
7736
|
GetStepTypeOutput,
|
|
7625
|
-
ChildStep
|
|
7737
|
+
ChildStep,
|
|
7738
|
+
MaintainRequestStepListInput,
|
|
7739
|
+
SignDocumentInput,
|
|
7740
|
+
GetSignatureBlobOutput,
|
|
7741
|
+
GetInteractorSignatureOutput,
|
|
7626
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 {
|
|
@@ -298,6 +304,7 @@ const {
|
|
|
298
304
|
JoinGroupOrder,
|
|
299
305
|
LeaveGroupOrder,
|
|
300
306
|
MaintainRequestAttributeList,
|
|
307
|
+
MaintainRequestStepList,
|
|
301
308
|
ReorderTrackableBatch,
|
|
302
309
|
TrackBatch,
|
|
303
310
|
UpdateRequestDismiss,
|
|
@@ -348,6 +355,7 @@ const RequestsTransactionCommonServices = {
|
|
|
348
355
|
JoinGroupOrder,
|
|
349
356
|
LeaveGroupOrder,
|
|
350
357
|
MaintainRequestAttributeList,
|
|
358
|
+
MaintainRequestStepList,
|
|
351
359
|
ReorderTrackableBatch,
|
|
352
360
|
TrackBatch,
|
|
353
361
|
UpdateRequestDismiss,
|
|
@@ -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
|
|
@@ -540,6 +549,11 @@ export class RequestsAPIConstants {
|
|
|
540
549
|
requestServicesURI + "/api/TransactionCommon/MaintainRequestAttributeList"
|
|
541
550
|
);
|
|
542
551
|
}
|
|
552
|
+
static uriMaintainRequestStepList() {
|
|
553
|
+
return (
|
|
554
|
+
requestServicesURI + "/api/TransactionCommon/MaintainRequestStepList"
|
|
555
|
+
);
|
|
556
|
+
}
|
|
543
557
|
static uriUpdateRequestDismiss() {
|
|
544
558
|
return requestServicesURI + "/api/TransactionCommon/UpdateRequestDismiss";
|
|
545
559
|
}
|
|
@@ -749,5 +763,5 @@ let requestServicesURI = "/Request";
|
|
|
749
763
|
let requestStepURI = "/RequestStep";
|
|
750
764
|
let storageURI = "/Storage";
|
|
751
765
|
let transactionCatalogURI = "/TransactionCatalog";
|
|
752
|
-
|
|
766
|
+
let signatureURI = "/Signature";
|
|
753
767
|
//#endregion
|