octopian-apis 1.0.29 → 1.0.31

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "octopian-apis",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "description": "Transaction APIs SDK that implements Octopian Services which will be used for any node project typescript or javascript",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -3,6 +3,7 @@ import {
3
3
  RequestStepsAPIConstants,
4
4
  } from "../web-services/apiConstants";
5
5
  import * as apiHandler from "../web-services/apiHandler";
6
+ import { CreateReadSAS } from "./storageServices";
6
7
 
7
8
  /**
8
9
  * @description
@@ -53,6 +54,81 @@ export async function GetMyApprovedCorrespondenceRequests(
53
54
  Timeout,
54
55
  RequiredHeaderValue
55
56
  );
57
+ let MappedResult = [];
58
+ let ReadSASResult = await CreateReadSAS(AuthToken, Timeout);
59
+ if (APIResponse.StatusCode === 200 && APIResponse.Result?.length > 0) {
60
+ APIResponse.Result.forEach((element) => {
61
+ let subject = element.ServiceName;
62
+ let notes = "";
63
+ let ImagePath = "";
64
+ let ProcessFlow = [];
65
+ let ToName = '';
66
+ if (element.RequestAttributeList?.length > 0) {
67
+ element.RequestAttributeList.forEach((attribute) => {
68
+ if (attribute.Alias === "Subject") {
69
+ subject = attribute.Value;
70
+ }
71
+ if (attribute.Alias === "Notes") {
72
+ notes = attribute.Value;
73
+ }
74
+ if (attribute.Alias === "InteractorImagePath") {
75
+ ImagePath = attribute.Value;
76
+ }
77
+ if (attribute.Alias === "To") {
78
+ ToName = attribute.Value;
79
+ }
80
+ });
81
+ }
82
+ if (ImagePath && ReadSASResult.StatusCode === 200) {
83
+ ImagePath =
84
+ ReadSASResult.Result.split("?")[0] +
85
+ "/" +
86
+ ImagePath +
87
+ "?" +
88
+ ReadSASResult.Result.split("?")[1];
89
+ }
90
+ if (element.RequestStepList) {
91
+ element.RequestStepList.forEach((step) => {
92
+ if (step.IsRequesterVisible) {
93
+ let ProviderImagePath = "";
94
+ if (step.ProviderImagePath) {
95
+ ProviderImagePath = step.ProviderImagePath;
96
+ }
97
+ if (ProviderImagePath && ReadSASResult.StatusCode === 200) {
98
+ ProviderImagePath =
99
+ ReadSASResult.Result.split("?")[0] +
100
+ "/" +
101
+ ProviderImagePath +
102
+ "?" +
103
+ ReadSASResult.Result.split("?")[1];
104
+ }
105
+ ProcessFlow.push({
106
+ Id: step.RequestStepId,
107
+ ImagePath: ProviderImagePath,
108
+ Name: step.ProviderName,
109
+ Comment: step.ProviderComments,
110
+ SubmitDate: step.StartDate,
111
+ });
112
+ }
113
+ });
114
+ }
115
+ MappedResult.push({
116
+ RequestId: element.RequestId,
117
+ StepId: 0,
118
+ RequesterImagePath: ImagePath,
119
+ RequesterName: element.InteractorName,
120
+ ToName: ToName,
121
+ CategoryColor: element.ExtraLine1 ? element.ExtraLine1 : "#FB4C2F",
122
+ CategoryName: element.ServiceSubCategoryName,
123
+ SubmitDate: element.SubmitDate,
124
+ Subject: subject,
125
+ Notes: notes,
126
+ IsRead: true,
127
+ ProcessFlow: ProcessFlow,
128
+ });
129
+ });
130
+ APIResponse.Result = MappedResult;
131
+ }
56
132
  return APIResponse;
57
133
  }
58
134
 
@@ -105,6 +181,81 @@ export async function GetMyRejectedCorrespondenceRequests(
105
181
  Timeout,
106
182
  RequiredHeaderValue
107
183
  );
184
+ let MappedResult = [];
185
+ let ReadSASResult = await CreateReadSAS(AuthToken, Timeout);
186
+ if (APIResponse.StatusCode === 200 && APIResponse.Result?.length > 0) {
187
+ APIResponse.Result.forEach((element) => {
188
+ let subject = element.ServiceName;
189
+ let notes = "";
190
+ let ImagePath = "";
191
+ let ProcessFlow = [];
192
+ let ToName = '';
193
+ if (element.RequestAttributeList?.length > 0) {
194
+ element.RequestAttributeList.forEach((attribute) => {
195
+ if (attribute.Alias === "Subject") {
196
+ subject = attribute.Value;
197
+ }
198
+ if (attribute.Alias === "Notes") {
199
+ notes = attribute.Value;
200
+ }
201
+ if (attribute.Alias === "InteractorImagePath") {
202
+ ImagePath = attribute.Value;
203
+ }
204
+ if (attribute.Alias === "To") {
205
+ ToName = attribute.Value;
206
+ }
207
+ });
208
+ }
209
+ if (ImagePath && ReadSASResult.StatusCode === 200) {
210
+ ImagePath =
211
+ ReadSASResult.Result.split("?")[0] +
212
+ "/" +
213
+ ImagePath +
214
+ "?" +
215
+ ReadSASResult.Result.split("?")[1];
216
+ }
217
+ if (element.RequestStepList) {
218
+ element.RequestStepList.forEach((step) => {
219
+ if (step.IsRequesterVisible) {
220
+ let ProviderImagePath = "";
221
+ if (step.ProviderImagePath) {
222
+ ProviderImagePath = step.ProviderImagePath;
223
+ }
224
+ if (ProviderImagePath && ReadSASResult.StatusCode === 200) {
225
+ ProviderImagePath =
226
+ ReadSASResult.Result.split("?")[0] +
227
+ "/" +
228
+ ProviderImagePath +
229
+ "?" +
230
+ ReadSASResult.Result.split("?")[1];
231
+ }
232
+ ProcessFlow.push({
233
+ Id: step.RequestStepId,
234
+ ImagePath: ProviderImagePath,
235
+ Name: step.ProviderName,
236
+ Comment: step.ProviderComments,
237
+ SubmitDate: step.StartDate,
238
+ });
239
+ }
240
+ });
241
+ }
242
+ MappedResult.push({
243
+ RequestId: element.RequestId,
244
+ StepId: 0,
245
+ RequesterImagePath: ImagePath,
246
+ RequesterName: element.InteractorName,
247
+ ToName: ToName,
248
+ CategoryColor: element.ExtraLine1 ? element.ExtraLine1 : "#FB4C2F",
249
+ CategoryName: element.ServiceSubCategoryName,
250
+ SubmitDate: element.SubmitDate,
251
+ Subject: subject,
252
+ Notes: notes,
253
+ IsRead: true,
254
+ ProcessFlow: ProcessFlow,
255
+ });
256
+ });
257
+ APIResponse.Result = MappedResult;
258
+ }
108
259
  return APIResponse;
109
260
  }
110
261
 
@@ -157,6 +308,55 @@ export async function GetMyDraftCorrespondenceRequests(
157
308
  Timeout,
158
309
  RequiredHeaderValue
159
310
  );
311
+ let MappedResult = [];
312
+ let ReadSASResult = await CreateReadSAS(AuthToken, Timeout);
313
+ if (APIResponse.StatusCode === 200 && APIResponse.Result?.length > 0) {
314
+ APIResponse.Result.forEach((element) => {
315
+ let subject = element.ServiceName;
316
+ let notes = "";
317
+ let ImagePath = "";
318
+ let ToName = '';
319
+ if (element.RequestAttributeList?.length > 0) {
320
+ element.RequestAttributeList.forEach((attribute) => {
321
+ if (attribute.Alias === "Subject") {
322
+ subject = attribute.Value;
323
+ }
324
+ if (attribute.Alias === "Notes") {
325
+ notes = attribute.Value;
326
+ }
327
+ if (attribute.Alias === "InteractorImagePath") {
328
+ ImagePath = attribute.Value;
329
+ }
330
+ if (attribute.Alias === "To") {
331
+ ToName = attribute.Value;
332
+ }
333
+ });
334
+ }
335
+ if (ImagePath && ReadSASResult.StatusCode === 200) {
336
+ ImagePath =
337
+ ReadSASResult.Result.split("?")[0] +
338
+ "/" +
339
+ ImagePath +
340
+ "?" +
341
+ ReadSASResult.Result.split("?")[1];
342
+ }
343
+ MappedResult.push({
344
+ RequestId: element.RequestId,
345
+ StepId: 0,
346
+ RequesterImagePath: ImagePath,
347
+ RequesterName: element.InteractorName,
348
+ ToName: ToName,
349
+ CategoryColor: element.ExtraLine1 ? element.ExtraLine1 : "#FB4C2F",
350
+ CategoryName: element.ServiceSubCategoryName,
351
+ SubmitDate: element.SubmitDate,
352
+ Subject: subject,
353
+ Notes: notes,
354
+ IsRead: true,
355
+ ProcessFlow: [],
356
+ });
357
+ });
358
+ APIResponse.Result = MappedResult;
359
+ }
160
360
  return APIResponse;
161
361
  }
162
362
 
@@ -209,6 +409,81 @@ export async function GetMyClosedCorrespondenceRequests(
209
409
  Timeout,
210
410
  RequiredHeaderValue
211
411
  );
412
+ let MappedResult = [];
413
+ let ReadSASResult = await CreateReadSAS(AuthToken, Timeout);
414
+ if (APIResponse.StatusCode === 200 && APIResponse.Result?.length > 0) {
415
+ APIResponse.Result.forEach((element) => {
416
+ let subject = element.ServiceName;
417
+ let notes = "";
418
+ let ImagePath = "";
419
+ let ProcessFlow = [];
420
+ let ToName = '';
421
+ if (element.RequestAttributeList?.length > 0) {
422
+ element.RequestAttributeList.forEach((attribute) => {
423
+ if (attribute.Alias === "Subject") {
424
+ subject = attribute.Value;
425
+ }
426
+ if (attribute.Alias === "Notes") {
427
+ notes = attribute.Value;
428
+ }
429
+ if (attribute.Alias === "InteractorImagePath") {
430
+ ImagePath = attribute.Value;
431
+ }
432
+ if (attribute.Alias === "To") {
433
+ ToName = attribute.Value;
434
+ }
435
+ });
436
+ }
437
+ if (ImagePath && ReadSASResult.StatusCode === 200) {
438
+ ImagePath =
439
+ ReadSASResult.Result.split("?")[0] +
440
+ "/" +
441
+ ImagePath +
442
+ "?" +
443
+ ReadSASResult.Result.split("?")[1];
444
+ }
445
+ if (element.RequestStepList) {
446
+ element.RequestStepList.forEach((step) => {
447
+ if (step.IsRequesterVisible) {
448
+ let ProviderImagePath = "";
449
+ if (step.ProviderImagePath) {
450
+ ProviderImagePath = step.ProviderImagePath;
451
+ }
452
+ if (ProviderImagePath && ReadSASResult.StatusCode === 200) {
453
+ ProviderImagePath =
454
+ ReadSASResult.Result.split("?")[0] +
455
+ "/" +
456
+ ProviderImagePath +
457
+ "?" +
458
+ ReadSASResult.Result.split("?")[1];
459
+ }
460
+ ProcessFlow.push({
461
+ Id: step.RequestStepId,
462
+ ImagePath: ProviderImagePath,
463
+ Name: step.ProviderName,
464
+ Comment: step.ProviderComments,
465
+ SubmitDate: step.StartDate,
466
+ });
467
+ }
468
+ });
469
+ }
470
+ MappedResult.push({
471
+ RequestId: element.RequestId,
472
+ StepId: 0,
473
+ RequesterImagePath: ImagePath,
474
+ RequesterName: element.InteractorName,
475
+ ToName: ToName,
476
+ CategoryColor: element.ExtraLine1 ? element.ExtraLine1 : "#FB4C2F",
477
+ CategoryName: element.ServiceSubCategoryName,
478
+ SubmitDate: element.SubmitDate,
479
+ Subject: subject,
480
+ Notes: notes,
481
+ IsRead: true,
482
+ ProcessFlow: ProcessFlow,
483
+ });
484
+ });
485
+ APIResponse.Result = MappedResult;
486
+ }
212
487
  return APIResponse;
213
488
  }
214
489
 
@@ -385,5 +660,112 @@ export async function GetMyInboxCorrespondenceRequests(
385
660
  Timeout,
386
661
  RequiredHeaderValue
387
662
  );
663
+ let MappedResult = [];
664
+ let ReadSASResult = await CreateReadSAS(AuthToken, Timeout);
665
+ if (APIResponse.StatusCode === 200 && APIResponse.Result?.length > 0) {
666
+ APIResponse.Result.forEach((element) => {
667
+ let subject = element.Request.ServiceName;
668
+ let notes = "";
669
+ let ImagePath = "";
670
+ let ProcessFlow = [];
671
+ if (element.Request?.RequestAttributeList?.length > 0) {
672
+ element.Request.RequestAttributeList.forEach((attribute) => {
673
+ if (attribute.Alias === "Subject") {
674
+ subject = attribute.Value;
675
+ }
676
+ if (attribute.Alias === "Notes") {
677
+ notes = attribute.Value;
678
+ }
679
+ if (attribute.Alias === "InteractorImagePath") {
680
+ ImagePath = attribute.Value;
681
+ }
682
+ });
683
+ }
684
+ if (element.ProviderImagePath) {
685
+ ImagePath = element.ProviderImagePath;
686
+ }
687
+ if (ImagePath && ReadSASResult.StatusCode === 200) {
688
+ ImagePath =
689
+ ReadSASResult.Result.split("?")[0] +
690
+ "/" +
691
+ ImagePath +
692
+ "?" +
693
+ ReadSASResult.Result.split("?")[1];
694
+ }
695
+ if (element.PreviousClosedRequestStepList) {
696
+ element.PreviousClosedRequestStepList.forEach((step) => {
697
+ let ProviderImagePath = "";
698
+ if (step.ProviderImagePath) {
699
+ ProviderImagePath = step.ProviderImagePath;
700
+ }
701
+ if (ProviderImagePath && ReadSASResult.StatusCode === 200) {
702
+ ProviderImagePath =
703
+ ReadSASResult.Result.split("?")[0] +
704
+ "/" +
705
+ ProviderImagePath +
706
+ "?" +
707
+ ReadSASResult.Result.split("?")[1];
708
+ }
709
+ ProcessFlow.push({
710
+ Id: step.RequestStepId,
711
+ ImagePath: ProviderImagePath,
712
+ Name: step.ProviderName,
713
+ Comment: step.ProviderComments,
714
+ SubmitDate: step.StartDate,
715
+ });
716
+ });
717
+ }
718
+ MappedResult.push({
719
+ RequestId: element.RequestId,
720
+ StepId: element.RequestStepId,
721
+ RequesterImagePath: ImagePath,
722
+ RequesterName: element.Request.InteractorName,
723
+ CategoryColor: element.Request.ExtraLine1
724
+ ? element.Request.ExtraLine1
725
+ : "#FB4C2F",
726
+ CategoryName: element.Request.ServiceSubCategoryName,
727
+ SubmitDate: element.StartDate,
728
+ Subject: subject,
729
+ Notes: notes,
730
+ IsRead: element.IsCheckedOut,
731
+ ProcessFlow: ProcessFlow,
732
+ });
733
+ });
734
+ APIResponse.Result = MappedResult;
735
+ }
736
+ return APIResponse;
737
+ }
738
+
739
+ /**
740
+ * @description
741
+ * Retrieves the list of provider step type counts.
742
+ *
743
+ * @param {string} AuthToken
744
+ * Authentication token for authorization purposes.
745
+ *
746
+ * @param {number} Timeout
747
+ * Time in milliseconds to wait before the request times out. Default is 30000.
748
+ *
749
+ * @returns
750
+ * An object containing the API response from the Get Provider Step Type Counts request,
751
+ * including a success message, status code, and any additional data returned by the API.
752
+ * {
753
+ * Message: string,
754
+ * StatusCode: number,
755
+ * Result: GetProviderStepTypeCountsOutput[]
756
+ * }
757
+ **/
758
+ export async function GetMyInboxCategoryWithCounts(
759
+ AuthToken = null,
760
+ Timeout = 30000,
761
+ RequiredHeaderValue = null
762
+ ) {
763
+ let APIResponse = await apiHandler.PostMethod(
764
+ RequestStepsAPIConstants.uriGetProviderStepTypeCounts(),
765
+ { RequestStepStatus: "Active" },
766
+ AuthToken,
767
+ Timeout,
768
+ RequiredHeaderValue
769
+ );
388
770
  return APIResponse;
389
771
  }
@@ -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
@@ -257,6 +257,11 @@ import {
257
257
  import { GetMyCorrespondenceListDTO } from "./modals/input-modals/correspondence-modals/GetMyCorrespondenceListDTO";
258
258
  import { CorrespondenceSubmitDraftInput } from "./modals/input-modals/correspondence-modals/CorrespondenceSubmitDraftInput";
259
259
  import { GenerateDocumentInput } from "./modals/input-modals/transaction-catalog-modals/GenerateDocumentInput";
260
+ import { GetProviderStepTypeCountOutput } from "./modals/output-modals/request-step-modals/GetProviderStepTypeCountOutput";
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";
260
265
  // Define each module with its specific functions
261
266
 
262
267
  interface AuthenticationServices {
@@ -5871,8 +5876,72 @@ interface RequestStepProviderServices {
5871
5876
  AuthToken?: string | null,
5872
5877
  Timeout?: number | null
5873
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
+
5874
5942
  }
5875
5943
 
5944
+
5876
5945
  // Request Step Dispatch Services interface
5877
5946
  interface RequestStepDispatchServices {
5878
5947
  /**
@@ -6252,7 +6321,7 @@ interface CorrespondenceServices {
6252
6321
  Input: GetMyCorrespondenceListDTO,
6253
6322
  AuthToken?: string | null,
6254
6323
  Timeout?: number | null
6255
- ) => BaseResponse<GetMyRequestOutput[] | BaseErrorResponse>;
6324
+ ) => BaseResponse<GetMyCorrespondenceOutput[] | BaseErrorResponse>;
6256
6325
 
6257
6326
  /**
6258
6327
  * @description
@@ -6289,7 +6358,7 @@ interface CorrespondenceServices {
6289
6358
  Input: GetMyCorrespondenceListDTO,
6290
6359
  AuthToken?: string | null,
6291
6360
  Timeout?: number | null
6292
- ) => BaseResponse<GetMyRequestOutput[] | BaseErrorResponse>;
6361
+ ) => BaseResponse<GetMyCorrespondenceOutput[] | BaseErrorResponse>;
6293
6362
 
6294
6363
  /**
6295
6364
  * @description
@@ -6326,7 +6395,7 @@ interface CorrespondenceServices {
6326
6395
  Input: GetMyCorrespondenceListDTO,
6327
6396
  AuthToken?: string | null,
6328
6397
  Timeout?: number | null
6329
- ) => BaseResponse<GetMyRequestOutput[] | BaseErrorResponse>;
6398
+ ) => BaseResponse<GetMyCorrespondenceOutput[] | BaseErrorResponse>;
6330
6399
 
6331
6400
  /**
6332
6401
  * @description
@@ -6363,7 +6432,7 @@ interface CorrespondenceServices {
6363
6432
  Input: GetMyCorrespondenceListDTO,
6364
6433
  AuthToken?: string | null,
6365
6434
  Timeout?: number | null
6366
- ) => BaseResponse<GetMyRequestOutput[] | BaseErrorResponse>;
6435
+ ) => BaseResponse<GetMyCorrespondenceOutput[] | BaseErrorResponse>;
6367
6436
 
6368
6437
  /**
6369
6438
  * @description
@@ -6400,8 +6469,31 @@ interface CorrespondenceServices {
6400
6469
  Input: GetMyCorrespondenceListDTO,
6401
6470
  AuthToken?: string | null,
6402
6471
  Timeout?: number | null
6403
- ) => BaseResponse<GetRequestStepListOutput[] | BaseErrorResponse>;
6472
+ ) => BaseResponse<GetMyCorrespondenceOutput[] | BaseErrorResponse>;
6404
6473
 
6474
+ /**
6475
+ * @description
6476
+ * Retrieves the list of provider step type counts.
6477
+ *
6478
+ * @param {string} AuthToken
6479
+ * Authentication token for authorization purposes.
6480
+ *
6481
+ * @param {number} Timeout
6482
+ * Time in milliseconds to wait before the request times out. Default is 30000.
6483
+ *
6484
+ * @returns
6485
+ * An object containing the response from the Get My Inbox Category With Counts request, including
6486
+ * success message, status code, and any additional data returned by the API.
6487
+ * {
6488
+ * Message: string,
6489
+ * StatusCode: number,
6490
+ * Result: GetProviderStepTypeCountOutput[]
6491
+ * }
6492
+ */
6493
+ GetMyInboxCategoryWithCounts: (
6494
+ AuthToken?: string | null,
6495
+ Timeout?: number | null
6496
+ ) => BaseResponse<GetProviderStepTypeCountOutput[] | BaseErrorResponse>;
6405
6497
  /**
6406
6498
  * @description
6407
6499
  * Retrieves the list of comments for a request.
@@ -6788,5 +6880,10 @@ export {
6788
6880
  DonatorDetailsOutput,
6789
6881
  PaymentDetailsOutput,
6790
6882
  GetMyCorrespondenceListDTO,
6791
- CorrespondenceSubmitDraftInput
6883
+ CorrespondenceSubmitDraftInput,
6884
+ GetProviderStepTypeCountOutput,
6885
+ GetMyCorrespondenceOutput,
6886
+ RequestStepAssignableRoleInput,
6887
+ RequestStepAssignableRoleOutput,
6888
+ ProcessStepSpecialActionInput
6792
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,
@@ -400,7 +404,8 @@ const {
400
404
  PostCorrespondenceComment,
401
405
  SubmitDraftCorrespondence,
402
406
  GetMyInboxCorrespondenceRequests,
403
- GetMyRejectedCorrespondenceRequests
407
+ GetMyRejectedCorrespondenceRequests,
408
+ GetMyInboxCategoryWithCounts
404
409
  } = require('./CoreServices/correspondenceServices')
405
410
 
406
411
  const CorrespondenceServices = {
@@ -411,7 +416,8 @@ const CorrespondenceServices = {
411
416
  PostCorrespondenceComment,
412
417
  SubmitDraftCorrespondence,
413
418
  GetMyInboxCorrespondenceRequests,
414
- GetMyRejectedCorrespondenceRequests
419
+ GetMyRejectedCorrespondenceRequests,
420
+ GetMyInboxCategoryWithCounts
415
421
  }
416
422
  //#region DarAlBer
417
423
  const {
@@ -1,6 +1,7 @@
1
1
  export interface GetMyCorrespondenceListDTO {
2
2
  PageSize: number
3
3
  PageIndex: number
4
+ StepTypeName?: string
4
5
  IsAscendingOrder?: boolean
5
6
  FromFinishDate?: string
6
7
  ToFinishDate?: string
@@ -32,6 +32,7 @@ export interface GetRequestStepListInput {
32
32
  IsCheckOutLocked?: boolean
33
33
  PrivilegeLevel?: number
34
34
  IsSimpleResult?: boolean
35
+ StepTypeName?: string
35
36
  }
36
37
 
37
38
 
@@ -0,0 +1,5 @@
1
+ export interface ProcessStepSpecialActionInput {
2
+ RequestStepId: number;
3
+ ActionType: string;
4
+ RoleId: number;
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface RequestStepAssignableRoleInput {
2
+ RequestStepId: number;
3
+ RoleType: string;
4
+ }
@@ -0,0 +1,24 @@
1
+ export interface GetMyCorrespondenceOutput {
2
+ RequestId: number
3
+ StepId: number
4
+ RequesterImagePath: string
5
+ RequesterName: string
6
+ ToName: string
7
+ CategoryColor: string
8
+ CategoryName: string
9
+ SubmitDate: string
10
+ Subject: string
11
+ Notes:string
12
+ IsRead: boolean
13
+ ProcessFlow: ProcessFlow[]
14
+ }
15
+
16
+ export interface ProcessFlow {
17
+ Id: number
18
+ ImagePath: string
19
+ Name: string
20
+ Comment: string
21
+ SubmitDate: string
22
+ }
23
+
24
+
@@ -0,0 +1,5 @@
1
+ export interface GetProviderStepTypeCountOutput {
2
+ Name: string;
3
+ CheckedOutByCurrentUserCount: number;
4
+ Count: number;
5
+ }
@@ -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
@@ -0,0 +1,9 @@
1
+ export interface RequestStepAssignableRoleOutput {
2
+ RoleId: number;
3
+ Name: string;
4
+ RoleTypeId: number;
5
+ SystemName: string;
6
+ ObjectId: number;
7
+ ObjectName: any;
8
+ }
9
+
@@ -581,6 +581,15 @@ export class RequestStepsAPIConstants {
581
581
  requestStepURI + "/api/Provider/PartiallyProcessCheckedOutRequestStepList"
582
582
  );
583
583
  }
584
+ static uriGetProviderStepTypeCounts() {
585
+ return requestStepURI + "/api/Provider/GetProviderStepTypeCounts";
586
+ }
587
+ static uriGetRequestStepAssignableRoleList() {
588
+ return requestStepURI + "/api/Provider/GetRequestStepAssignableRoleList";
589
+ }
590
+ static uriProcessStepSpecialAction() {
591
+ return requestStepURI + "/api/Provider/ProcessStepSpecialAction";
592
+ }
584
593
  //#endregion
585
594
 
586
595
  //#region Dispatch