octopian-apis 1.0.30 → 1.0.32
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/requestStepsServices.js +83 -0
- package/src/index.d.ts +71 -1
- package/src/index.js +6 -0
- package/src/modals/input-modals/request-step-modals/ProcessStepSpecialActionInput.ts +5 -0
- package/src/modals/input-modals/request-step-modals/RequestStepAssignableRoleInput.ts +4 -0
- package/src/modals/output-modals/request-step-modals/GetRequestStepListOutput.ts +1 -0
- package/src/modals/output-modals/request-step-modals/RequestStepAssignableRoleOutput.ts +9 -0
- package/src/web-services/apiConstants.js +6 -0
package/package.json
CHANGED
|
@@ -504,6 +504,89 @@ export async function PartiallyProcessCheckedOutRequestStepList(
|
|
|
504
504
|
);
|
|
505
505
|
return APIResponse;
|
|
506
506
|
}
|
|
507
|
+
/**
|
|
508
|
+
* @description
|
|
509
|
+
* Retrieves a list of assignable roles for a request step.
|
|
510
|
+
*
|
|
511
|
+
* @param {object} GetRequestStepAssignableRoleListDTO
|
|
512
|
+
* Data object containing fields necessary for retrieving the assignable roles for a request step.
|
|
513
|
+
* RequestStepId: number
|
|
514
|
+
* RoleType: string
|
|
515
|
+
*
|
|
516
|
+
* @param {string} AuthToken
|
|
517
|
+
* Authentication token for authorization purposes.
|
|
518
|
+
*
|
|
519
|
+
* @param {number} Timeout
|
|
520
|
+
* Time in milliseconds to wait before the request times out. Default is 30000.
|
|
521
|
+
*
|
|
522
|
+
* @returns
|
|
523
|
+
* An object containing the response from the Get Request Step Assignable Role List request, including
|
|
524
|
+
* success message, status code, and any additional data returned by the API.
|
|
525
|
+
* {
|
|
526
|
+
* Message: string,
|
|
527
|
+
* StatusCode: number,
|
|
528
|
+
* Result: [{
|
|
529
|
+
* RoleId: number,
|
|
530
|
+
* Name: string,
|
|
531
|
+
* RoleTypeId: number,
|
|
532
|
+
* SystemName: string,
|
|
533
|
+
* ObjectId: number,
|
|
534
|
+
* ObjectName: string
|
|
535
|
+
* }]
|
|
536
|
+
* }
|
|
537
|
+
*/
|
|
538
|
+
export async function GetRequestStepAssignableRoleList(
|
|
539
|
+
GetRequestStepAssignableRoleListDTO,
|
|
540
|
+
AuthToken = null,
|
|
541
|
+
Timeout = 30000
|
|
542
|
+
) {
|
|
543
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
544
|
+
RequestStepsAPIConstants.uriGetRequestStepAssignableRoleList(),
|
|
545
|
+
GetRequestStepAssignableRoleListDTO,
|
|
546
|
+
AuthToken,
|
|
547
|
+
Timeout
|
|
548
|
+
);
|
|
549
|
+
return APIResponse;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* @description
|
|
554
|
+
* Processes a step special action using the provided data.
|
|
555
|
+
*
|
|
556
|
+
* @param {object} ProcessStepSpecialActionDTO
|
|
557
|
+
* Data object containing fields necessary for processing the step special action.
|
|
558
|
+
* RequestStepId: number
|
|
559
|
+
* RoleId: number
|
|
560
|
+
* ActionType: string
|
|
561
|
+
*
|
|
562
|
+
* @param {string} AuthToken
|
|
563
|
+
* Authentication token for authorization purposes.
|
|
564
|
+
*
|
|
565
|
+
* @param {number} Timeout
|
|
566
|
+
* Time in milliseconds to wait before the request times out. Default is 30000.
|
|
567
|
+
*
|
|
568
|
+
* @returns
|
|
569
|
+
* An object containing the response from the Process Step Special Action request, including
|
|
570
|
+
* success message, status code, and any additional data returned by the API.
|
|
571
|
+
* {
|
|
572
|
+
* Message: string,
|
|
573
|
+
* StatusCode: number,
|
|
574
|
+
* Result: boolean
|
|
575
|
+
* }
|
|
576
|
+
*/
|
|
577
|
+
export async function ProcessStepSpecialAction(
|
|
578
|
+
ProcessStepSpecialActionDTO,
|
|
579
|
+
AuthToken = null,
|
|
580
|
+
Timeout = 30000
|
|
581
|
+
) {
|
|
582
|
+
let APIResponse = await apiHandler.PostMethod(
|
|
583
|
+
RequestStepsAPIConstants.uriProcessStepSpecialAction(),
|
|
584
|
+
ProcessStepSpecialActionDTO,
|
|
585
|
+
AuthToken,
|
|
586
|
+
Timeout
|
|
587
|
+
);
|
|
588
|
+
return APIResponse;
|
|
589
|
+
}
|
|
507
590
|
//#endregion
|
|
508
591
|
|
|
509
592
|
//#region Dispatch
|
package/src/index.d.ts
CHANGED
|
@@ -259,6 +259,9 @@ import { CorrespondenceSubmitDraftInput } from "./modals/input-modals/correspond
|
|
|
259
259
|
import { GenerateDocumentInput } from "./modals/input-modals/transaction-catalog-modals/GenerateDocumentInput";
|
|
260
260
|
import { GetProviderStepTypeCountOutput } from "./modals/output-modals/request-step-modals/GetProviderStepTypeCountOutput";
|
|
261
261
|
import { GetMyCorrespondenceOutput } from "./modals/output-modals/correspondence-modals/GetMyCorrespondenceOutput";
|
|
262
|
+
import { RequestStepAssignableRoleInput } from "./modals/input-modals/request-step-modals/RequestStepAssignableRoleInput";
|
|
263
|
+
import { RequestStepAssignableRoleOutput } from "./modals/output-modals/request-step-modals/RequestStepAssignableRoleOutput";
|
|
264
|
+
import { ProcessStepSpecialActionInput } from "./modals/input-modals/request-step-modals/ProcessStepSpecialActionInput";
|
|
262
265
|
// Define each module with its specific functions
|
|
263
266
|
|
|
264
267
|
interface AuthenticationServices {
|
|
@@ -5873,8 +5876,72 @@ interface RequestStepProviderServices {
|
|
|
5873
5876
|
AuthToken?: string | null,
|
|
5874
5877
|
Timeout?: number | null
|
|
5875
5878
|
) => BaseResponse<boolean | BaseErrorResponse>;
|
|
5879
|
+
|
|
5880
|
+
/**
|
|
5881
|
+
* @description
|
|
5882
|
+
* Retrieves a list of assignable roles for a request step.
|
|
5883
|
+
*
|
|
5884
|
+
* @param {RequestStepAssignableRoleInput} Input
|
|
5885
|
+
* Data object containing fields necessary for retrieving the list of assignable roles.
|
|
5886
|
+
* RequestStepId: number
|
|
5887
|
+
* RoleType: string
|
|
5888
|
+
*
|
|
5889
|
+
* @param {string} AuthToken
|
|
5890
|
+
* Authentication token for authorization purposes.
|
|
5891
|
+
*
|
|
5892
|
+
* @param {number} Timeout
|
|
5893
|
+
* Time in milliseconds to wait before the request times out. Default is 30000.
|
|
5894
|
+
*
|
|
5895
|
+
* @returns
|
|
5896
|
+
* An object containing the response from the Get Request Step Assignable Role List request, including
|
|
5897
|
+
* success message, status code, and any additional data returned by the API.
|
|
5898
|
+
* {
|
|
5899
|
+
* Message: string,
|
|
5900
|
+
* StatusCode: number,
|
|
5901
|
+
* Result: RequestStepAssignableRoleOutput[]
|
|
5902
|
+
* }
|
|
5903
|
+
*/
|
|
5904
|
+
GetRequestStepAssignableRoleList: (
|
|
5905
|
+
Input: RequestStepAssignableRoleInput,
|
|
5906
|
+
AuthToken?: string | null,
|
|
5907
|
+
Timeout?: number | null
|
|
5908
|
+
) => BaseResponse<RequestStepAssignableRoleOutput[] | BaseErrorResponse>;
|
|
5909
|
+
|
|
5910
|
+
/**
|
|
5911
|
+
* @description
|
|
5912
|
+
* Processes a special action for a request step.
|
|
5913
|
+
*
|
|
5914
|
+
* @param {ProcessStepSpecialActionInput} Input
|
|
5915
|
+
* Data object containing fields necessary for processing the special action.
|
|
5916
|
+
* RequestStepId: number
|
|
5917
|
+
* ActionType: string
|
|
5918
|
+
* RoleId: number
|
|
5919
|
+
*
|
|
5920
|
+
* @param {string} AuthToken
|
|
5921
|
+
* Authentication token for authorization purposes.
|
|
5922
|
+
*
|
|
5923
|
+
* @param {number} Timeout
|
|
5924
|
+
* Time in milliseconds to wait before the request times out. Default is 30000.
|
|
5925
|
+
*
|
|
5926
|
+
* @returns
|
|
5927
|
+
* An object containing the response from the Process Step Special Action request, including
|
|
5928
|
+
* success message, status code, and any additional data returned by the API.
|
|
5929
|
+
* {
|
|
5930
|
+
* Message: string,
|
|
5931
|
+
* StatusCode: number,
|
|
5932
|
+
* Result: boolean
|
|
5933
|
+
* }
|
|
5934
|
+
*/
|
|
5935
|
+
ProcessStepSpecialAction: (
|
|
5936
|
+
Input: ProcessStepSpecialActionInput,
|
|
5937
|
+
AuthToken?: string | null,
|
|
5938
|
+
Timeout?: number | null
|
|
5939
|
+
) => BaseResponse<boolean | BaseErrorResponse>;
|
|
5940
|
+
|
|
5941
|
+
|
|
5876
5942
|
}
|
|
5877
5943
|
|
|
5944
|
+
|
|
5878
5945
|
// Request Step Dispatch Services interface
|
|
5879
5946
|
interface RequestStepDispatchServices {
|
|
5880
5947
|
/**
|
|
@@ -6815,5 +6882,8 @@ export {
|
|
|
6815
6882
|
GetMyCorrespondenceListDTO,
|
|
6816
6883
|
CorrespondenceSubmitDraftInput,
|
|
6817
6884
|
GetProviderStepTypeCountOutput,
|
|
6818
|
-
GetMyCorrespondenceOutput
|
|
6885
|
+
GetMyCorrespondenceOutput,
|
|
6886
|
+
RequestStepAssignableRoleInput,
|
|
6887
|
+
RequestStepAssignableRoleOutput,
|
|
6888
|
+
ProcessStepSpecialActionInput
|
|
6819
6889
|
};
|
package/src/index.js
CHANGED
|
@@ -340,6 +340,8 @@ const {
|
|
|
340
340
|
NotFound,
|
|
341
341
|
Reject,
|
|
342
342
|
Start,
|
|
343
|
+
GetRequestStepAssignableRoleList,
|
|
344
|
+
ProcessStepSpecialAction
|
|
343
345
|
} = require("./CoreServices/requestStepsServices");
|
|
344
346
|
const RequestStepProviderServices = {
|
|
345
347
|
AcceptOrder,
|
|
@@ -356,6 +358,8 @@ const RequestStepProviderServices = {
|
|
|
356
358
|
ProcessRequestStepList,
|
|
357
359
|
RejectOrder,
|
|
358
360
|
UpdateDismissedRequestStepList,
|
|
361
|
+
GetRequestStepAssignableRoleList,
|
|
362
|
+
ProcessStepSpecialAction
|
|
359
363
|
};
|
|
360
364
|
const RequestStepDispatchServices = {
|
|
361
365
|
Accept,
|
|
@@ -516,6 +520,7 @@ const {
|
|
|
516
520
|
DABValidateAttributesWithIntegration,
|
|
517
521
|
DABGetPaymentBatch,
|
|
518
522
|
DABGetInvoiceDetails,
|
|
523
|
+
DABAddToCart
|
|
519
524
|
} = require("./darAlBerServices/transactionsServices");
|
|
520
525
|
const {
|
|
521
526
|
DABCreateReadSAS,
|
|
@@ -759,6 +764,7 @@ const DarAlBerServices = {
|
|
|
759
764
|
DABValidateAttributesWithIntegration,
|
|
760
765
|
DABGetPaymentBatch,
|
|
761
766
|
DABGetInvoiceDetails,
|
|
767
|
+
DABAddToCart
|
|
762
768
|
};
|
|
763
769
|
//#endregion
|
|
764
770
|
const {
|
|
@@ -20,6 +20,7 @@ import { GetMyRequestOutput, RequestList } from "../request-modals/GetMyRequestG
|
|
|
20
20
|
ProviderRoleId: number
|
|
21
21
|
ProviderId: number
|
|
22
22
|
ProviderComments: string
|
|
23
|
+
ProviderImagePath: string
|
|
23
24
|
IsCheckedOut: boolean
|
|
24
25
|
CheckedOutProviderId: number
|
|
25
26
|
IsAssignable: boolean
|
|
@@ -584,6 +584,12 @@ export class RequestStepsAPIConstants {
|
|
|
584
584
|
static uriGetProviderStepTypeCounts() {
|
|
585
585
|
return requestStepURI + "/api/Provider/GetProviderStepTypeCounts";
|
|
586
586
|
}
|
|
587
|
+
static uriGetRequestStepAssignableRoleList() {
|
|
588
|
+
return requestStepURI + "/api/Provider/GetRequestStepAssignableRoleList";
|
|
589
|
+
}
|
|
590
|
+
static uriProcessStepSpecialAction() {
|
|
591
|
+
return requestStepURI + "/api/Provider/ProcessStepSpecialAction";
|
|
592
|
+
}
|
|
587
593
|
//#endregion
|
|
588
594
|
|
|
589
595
|
//#region Dispatch
|