octopian-apis 1.0.28 → 1.0.30
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/correspondenceServices.js +382 -0
- package/src/CoreServices/requestsServices.js +1 -1
- package/src/index.d.ts +33 -6
- package/src/index.js +4 -2
- package/src/modals/input-modals/correspondence-modals/GetMyCorrespondenceListDTO.ts +1 -0
- package/src/modals/input-modals/request-step-modals/GetRequestStepListInput.ts +1 -0
- package/src/modals/output-modals/correspondence-modals/GetMyCorrespondenceOutput.ts +24 -0
- package/src/modals/output-modals/request-modals/GetMyRequestGroupedOutput.ts +91 -1
- package/src/modals/output-modals/request-step-modals/GetProviderStepTypeCountOutput.ts +5 -0
- package/src/web-services/apiConstants.js +3 -0
package/package.json
CHANGED
|
@@ -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
|
}
|
|
@@ -684,7 +684,7 @@ export async function AddRequestAndSubmit(AddRequestDTO, AuthToken = null, Timeo
|
|
|
684
684
|
specificRequestIds: [APIResponse.Result.RequestId],
|
|
685
685
|
ShippingAddressId: 0,
|
|
686
686
|
BillingAddressId: 0,
|
|
687
|
-
PaymentMethod: "
|
|
687
|
+
PaymentMethod: "CashOnDelivery",
|
|
688
688
|
});
|
|
689
689
|
return APIResponse;
|
|
690
690
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -257,6 +257,8 @@ 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";
|
|
260
262
|
// Define each module with its specific functions
|
|
261
263
|
|
|
262
264
|
interface AuthenticationServices {
|
|
@@ -6252,7 +6254,7 @@ interface CorrespondenceServices {
|
|
|
6252
6254
|
Input: GetMyCorrespondenceListDTO,
|
|
6253
6255
|
AuthToken?: string | null,
|
|
6254
6256
|
Timeout?: number | null
|
|
6255
|
-
) => BaseResponse<
|
|
6257
|
+
) => BaseResponse<GetMyCorrespondenceOutput[] | BaseErrorResponse>;
|
|
6256
6258
|
|
|
6257
6259
|
/**
|
|
6258
6260
|
* @description
|
|
@@ -6289,7 +6291,7 @@ interface CorrespondenceServices {
|
|
|
6289
6291
|
Input: GetMyCorrespondenceListDTO,
|
|
6290
6292
|
AuthToken?: string | null,
|
|
6291
6293
|
Timeout?: number | null
|
|
6292
|
-
) => BaseResponse<
|
|
6294
|
+
) => BaseResponse<GetMyCorrespondenceOutput[] | BaseErrorResponse>;
|
|
6293
6295
|
|
|
6294
6296
|
/**
|
|
6295
6297
|
* @description
|
|
@@ -6326,7 +6328,7 @@ interface CorrespondenceServices {
|
|
|
6326
6328
|
Input: GetMyCorrespondenceListDTO,
|
|
6327
6329
|
AuthToken?: string | null,
|
|
6328
6330
|
Timeout?: number | null
|
|
6329
|
-
) => BaseResponse<
|
|
6331
|
+
) => BaseResponse<GetMyCorrespondenceOutput[] | BaseErrorResponse>;
|
|
6330
6332
|
|
|
6331
6333
|
/**
|
|
6332
6334
|
* @description
|
|
@@ -6363,7 +6365,7 @@ interface CorrespondenceServices {
|
|
|
6363
6365
|
Input: GetMyCorrespondenceListDTO,
|
|
6364
6366
|
AuthToken?: string | null,
|
|
6365
6367
|
Timeout?: number | null
|
|
6366
|
-
) => BaseResponse<
|
|
6368
|
+
) => BaseResponse<GetMyCorrespondenceOutput[] | BaseErrorResponse>;
|
|
6367
6369
|
|
|
6368
6370
|
/**
|
|
6369
6371
|
* @description
|
|
@@ -6400,8 +6402,31 @@ interface CorrespondenceServices {
|
|
|
6400
6402
|
Input: GetMyCorrespondenceListDTO,
|
|
6401
6403
|
AuthToken?: string | null,
|
|
6402
6404
|
Timeout?: number | null
|
|
6403
|
-
) => BaseResponse<
|
|
6405
|
+
) => BaseResponse<GetMyCorrespondenceOutput[] | BaseErrorResponse>;
|
|
6404
6406
|
|
|
6407
|
+
/**
|
|
6408
|
+
* @description
|
|
6409
|
+
* Retrieves the list of provider step type counts.
|
|
6410
|
+
*
|
|
6411
|
+
* @param {string} AuthToken
|
|
6412
|
+
* Authentication token for authorization purposes.
|
|
6413
|
+
*
|
|
6414
|
+
* @param {number} Timeout
|
|
6415
|
+
* Time in milliseconds to wait before the request times out. Default is 30000.
|
|
6416
|
+
*
|
|
6417
|
+
* @returns
|
|
6418
|
+
* An object containing the response from the Get My Inbox Category With Counts request, including
|
|
6419
|
+
* success message, status code, and any additional data returned by the API.
|
|
6420
|
+
* {
|
|
6421
|
+
* Message: string,
|
|
6422
|
+
* StatusCode: number,
|
|
6423
|
+
* Result: GetProviderStepTypeCountOutput[]
|
|
6424
|
+
* }
|
|
6425
|
+
*/
|
|
6426
|
+
GetMyInboxCategoryWithCounts: (
|
|
6427
|
+
AuthToken?: string | null,
|
|
6428
|
+
Timeout?: number | null
|
|
6429
|
+
) => BaseResponse<GetProviderStepTypeCountOutput[] | BaseErrorResponse>;
|
|
6405
6430
|
/**
|
|
6406
6431
|
* @description
|
|
6407
6432
|
* Retrieves the list of comments for a request.
|
|
@@ -6788,5 +6813,7 @@ export {
|
|
|
6788
6813
|
DonatorDetailsOutput,
|
|
6789
6814
|
PaymentDetailsOutput,
|
|
6790
6815
|
GetMyCorrespondenceListDTO,
|
|
6791
|
-
CorrespondenceSubmitDraftInput
|
|
6816
|
+
CorrespondenceSubmitDraftInput,
|
|
6817
|
+
GetProviderStepTypeCountOutput,
|
|
6818
|
+
GetMyCorrespondenceOutput
|
|
6792
6819
|
};
|
package/src/index.js
CHANGED
|
@@ -400,7 +400,8 @@ const {
|
|
|
400
400
|
PostCorrespondenceComment,
|
|
401
401
|
SubmitDraftCorrespondence,
|
|
402
402
|
GetMyInboxCorrespondenceRequests,
|
|
403
|
-
GetMyRejectedCorrespondenceRequests
|
|
403
|
+
GetMyRejectedCorrespondenceRequests,
|
|
404
|
+
GetMyInboxCategoryWithCounts
|
|
404
405
|
} = require('./CoreServices/correspondenceServices')
|
|
405
406
|
|
|
406
407
|
const CorrespondenceServices = {
|
|
@@ -411,7 +412,8 @@ const CorrespondenceServices = {
|
|
|
411
412
|
PostCorrespondenceComment,
|
|
412
413
|
SubmitDraftCorrespondence,
|
|
413
414
|
GetMyInboxCorrespondenceRequests,
|
|
414
|
-
GetMyRejectedCorrespondenceRequests
|
|
415
|
+
GetMyRejectedCorrespondenceRequests,
|
|
416
|
+
GetMyInboxCategoryWithCounts
|
|
415
417
|
}
|
|
416
418
|
//#region DarAlBer
|
|
417
419
|
const {
|
|
@@ -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
|
+
|
|
@@ -246,13 +246,103 @@ export interface CompositeRequestStep {
|
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
export interface RequestAttribute {
|
|
249
|
+
IsSystemGenerated: any
|
|
250
|
+
DtoState: number
|
|
249
251
|
RequestAttributeId: number
|
|
250
252
|
RequestId: number
|
|
251
253
|
Name: string
|
|
252
254
|
IsRequired: boolean
|
|
253
|
-
Value
|
|
255
|
+
Value?: string
|
|
254
256
|
AttributeTypeId: number
|
|
255
257
|
AttributeGroupId: number
|
|
258
|
+
IsRequesterVisible: boolean
|
|
259
|
+
IsProviderVisible: boolean
|
|
260
|
+
IsRequesterEditable: boolean
|
|
261
|
+
IsProviderEditable: boolean
|
|
262
|
+
RequestStepId: any
|
|
263
|
+
SequenceNo: number
|
|
264
|
+
IsComputed: boolean
|
|
265
|
+
Formula: string
|
|
266
|
+
SourceServiceAttributeId?: number
|
|
267
|
+
Group: string
|
|
268
|
+
GroupSequenceNo: number
|
|
269
|
+
ExtendedValue?: string
|
|
270
|
+
GroupId: number
|
|
271
|
+
AttachmentOriginalName: string
|
|
272
|
+
AlternateName?: string
|
|
273
|
+
AlternateValue?: string
|
|
274
|
+
AlternateGroup?: string
|
|
275
|
+
Alias: string
|
|
276
|
+
PlaceHolder?: string
|
|
277
|
+
ShowInReport: boolean
|
|
278
|
+
Description?: string
|
|
279
|
+
AlternateDescription: any
|
|
280
|
+
AlternatePlaceHolder: any
|
|
281
|
+
Prefix?: string
|
|
282
|
+
IsFiltered: boolean
|
|
283
|
+
FilterAttributeAlias?: string
|
|
284
|
+
IsParameter: boolean
|
|
285
|
+
Extra1: any
|
|
286
|
+
Extra2: any
|
|
287
|
+
BatchId: any
|
|
288
|
+
IsComputedInitialValue: boolean
|
|
289
|
+
InitialValueFormula?: string
|
|
290
|
+
IsValidationEnabled: boolean
|
|
291
|
+
ValidationRule?: string
|
|
292
|
+
ValidationRuleFailedComment?: string
|
|
293
|
+
IsIntegrationEditable: boolean
|
|
294
|
+
IsRequiredCondition?: string
|
|
295
|
+
OnChangeRecalculate: boolean
|
|
296
|
+
PageNumber: number
|
|
297
|
+
AttributeTypeValueTypeName: string
|
|
298
|
+
FormatCategoryId: number
|
|
299
|
+
FormatTypeName: string
|
|
300
|
+
Hint?: string
|
|
301
|
+
HideLabel: boolean
|
|
302
|
+
IsIntegration: boolean
|
|
303
|
+
IsRecord: boolean
|
|
304
|
+
IsRecordName: boolean
|
|
305
|
+
Regex?: string
|
|
306
|
+
ReturnType?: string
|
|
307
|
+
CounterMaxValue?: string
|
|
308
|
+
CounterMinValue?: string
|
|
309
|
+
CounterStepValue?: string
|
|
310
|
+
HideValue: boolean
|
|
311
|
+
IsPicker: boolean
|
|
312
|
+
AttributeLength?: string
|
|
313
|
+
ShowInQuestionnaire: boolean
|
|
314
|
+
IsMultipleChoice: boolean
|
|
315
|
+
AttributeDefinition: any
|
|
316
|
+
IsPasswordMask: boolean
|
|
317
|
+
IsEncryptionEnabled: boolean
|
|
318
|
+
AllowOthers: boolean
|
|
319
|
+
UseGridControl: boolean
|
|
320
|
+
UIControlAlias?: string
|
|
321
|
+
ShowInProfile: boolean
|
|
322
|
+
ObjectType: number
|
|
323
|
+
DocumentId: number
|
|
324
|
+
FormatTypeId: number
|
|
325
|
+
Translations?: string
|
|
326
|
+
DescriptionTranslations?: string
|
|
327
|
+
PlaceHolderTranslations?: string
|
|
328
|
+
ValueTranslations?: string
|
|
329
|
+
ValidationRuleFailedCommentTranslation?: string
|
|
330
|
+
GroupTranslations: any
|
|
331
|
+
HintTranslations: any
|
|
332
|
+
IsProfileDocument: any
|
|
333
|
+
IsRequesterEditableCondition?: string
|
|
334
|
+
IsProviderEditableCondition?: string
|
|
335
|
+
IsResetIf: boolean
|
|
336
|
+
ResetIfFormula?: string
|
|
337
|
+
FullFilePath: any
|
|
338
|
+
CopyToRequest: any
|
|
339
|
+
UseInService: boolean
|
|
340
|
+
IsPhantomVisible: any
|
|
341
|
+
IsAsynchronousIntegration: boolean
|
|
342
|
+
ApplyToExisting: boolean
|
|
343
|
+
FullImagePath: any
|
|
344
|
+
IsActionAttribute: any
|
|
345
|
+
ActionAttributeDetails: any
|
|
256
346
|
}
|
|
257
347
|
|
|
258
348
|
export interface RequestIntegrationTrigger {
|
|
@@ -581,6 +581,9 @@ export class RequestStepsAPIConstants {
|
|
|
581
581
|
requestStepURI + "/api/Provider/PartiallyProcessCheckedOutRequestStepList"
|
|
582
582
|
);
|
|
583
583
|
}
|
|
584
|
+
static uriGetProviderStepTypeCounts() {
|
|
585
|
+
return requestStepURI + "/api/Provider/GetProviderStepTypeCounts";
|
|
586
|
+
}
|
|
584
587
|
//#endregion
|
|
585
588
|
|
|
586
589
|
//#region Dispatch
|