octopian-apis 1.0.46 → 1.0.47
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
|
@@ -87,18 +87,15 @@ export async function GetMyApprovedCorrespondenceRequests(
|
|
|
87
87
|
ToName = attribute.Value;
|
|
88
88
|
}
|
|
89
89
|
if (
|
|
90
|
-
attribute.
|
|
91
|
-
!attribute.IsRequesterVisible
|
|
90
|
+
attribute.Alias === element.Request.CustomField5
|
|
92
91
|
) {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
// }
|
|
101
|
-
GeneratedDocument = attribute.Value;
|
|
92
|
+
GeneratedDocument = ReadSASResult?.Result
|
|
93
|
+
? ReadSASResult.Result.split("?")[0] +
|
|
94
|
+
"/" +
|
|
95
|
+
attribute.Value +
|
|
96
|
+
"?" +
|
|
97
|
+
ReadSASResult.Result.split("?")[1]
|
|
98
|
+
: "";
|
|
102
99
|
}
|
|
103
100
|
if (
|
|
104
101
|
attribute.Alias === "Attachments" &&
|
|
@@ -111,7 +108,9 @@ export async function GetMyApprovedCorrespondenceRequests(
|
|
|
111
108
|
for (let attributeGroup of DecodedAttachmentsRecordList) {
|
|
112
109
|
for (let group of attributeGroup) {
|
|
113
110
|
for (let attributeDTO of group.RequestAttributeDtos) {
|
|
114
|
-
if (
|
|
111
|
+
if (
|
|
112
|
+
attributeDTO.AttributeTypeValueTypeName === "Attachment"
|
|
113
|
+
) {
|
|
115
114
|
Attachments.push({
|
|
116
115
|
id: attributeDTO.RequestAttributeId || 0,
|
|
117
116
|
name: attributeDTO.ExtendedValue || "",
|
|
@@ -276,18 +275,15 @@ export async function GetMyRejectedCorrespondenceRequests(
|
|
|
276
275
|
ToName = attribute.Value;
|
|
277
276
|
}
|
|
278
277
|
if (
|
|
279
|
-
attribute.
|
|
280
|
-
!attribute.IsRequesterVisible
|
|
278
|
+
attribute.Alias === element.Request.CustomField5
|
|
281
279
|
) {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
// }
|
|
290
|
-
GeneratedDocument = attribute.Value;
|
|
280
|
+
GeneratedDocument = ReadSASResult?.Result
|
|
281
|
+
? ReadSASResult.Result.split("?")[0] +
|
|
282
|
+
"/" +
|
|
283
|
+
attribute.Value +
|
|
284
|
+
"?" +
|
|
285
|
+
ReadSASResult.Result.split("?")[1]
|
|
286
|
+
: "";
|
|
291
287
|
}
|
|
292
288
|
if (
|
|
293
289
|
attribute.Alias === "Attachments" &&
|
|
@@ -300,7 +296,9 @@ export async function GetMyRejectedCorrespondenceRequests(
|
|
|
300
296
|
for (let attributeGroup of DecodedAttachmentsRecordList) {
|
|
301
297
|
for (let group of attributeGroup) {
|
|
302
298
|
for (let attributeDTO of group.RequestAttributeDtos) {
|
|
303
|
-
if (
|
|
299
|
+
if (
|
|
300
|
+
attributeDTO.AttributeTypeValueTypeName === "Attachment"
|
|
301
|
+
) {
|
|
304
302
|
Attachments.push({
|
|
305
303
|
id: attributeDTO.RequestAttributeId || 0,
|
|
306
304
|
name: attributeDTO.ExtendedValue || "",
|
|
@@ -453,18 +451,15 @@ export async function GetMyDraftCorrespondenceRequests(
|
|
|
453
451
|
ToName = attribute.Value;
|
|
454
452
|
}
|
|
455
453
|
if (
|
|
456
|
-
attribute.
|
|
457
|
-
!attribute.IsRequesterVisible
|
|
454
|
+
attribute.Alias === element.CustomField5
|
|
458
455
|
) {
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
// }
|
|
467
|
-
GeneratedDocument = attribute.Value;
|
|
456
|
+
GeneratedDocument = ReadSASResult?.Result
|
|
457
|
+
? ReadSASResult.Result.split("?")[0] +
|
|
458
|
+
"/" +
|
|
459
|
+
attribute.Value +
|
|
460
|
+
"?" +
|
|
461
|
+
ReadSASResult.Result.split("?")[1]
|
|
462
|
+
: "";
|
|
468
463
|
}
|
|
469
464
|
if (
|
|
470
465
|
attribute.Alias === "Attachments" &&
|
|
@@ -477,7 +472,9 @@ export async function GetMyDraftCorrespondenceRequests(
|
|
|
477
472
|
for (let attributeGroup of DecodedAttachmentsRecordList) {
|
|
478
473
|
for (let group of attributeGroup) {
|
|
479
474
|
for (let attributeDTO of group.RequestAttributeDtos) {
|
|
480
|
-
if (
|
|
475
|
+
if (
|
|
476
|
+
attributeDTO.AttributeTypeValueTypeName === "Attachment"
|
|
477
|
+
) {
|
|
481
478
|
Attachments.push({
|
|
482
479
|
id: attributeDTO.RequestAttributeId || 0,
|
|
483
480
|
name: attributeDTO.ExtendedValue || "",
|
|
@@ -492,9 +489,9 @@ export async function GetMyDraftCorrespondenceRequests(
|
|
|
492
489
|
});
|
|
493
490
|
}
|
|
494
491
|
}
|
|
492
|
+
}
|
|
495
493
|
}
|
|
496
494
|
}
|
|
497
|
-
}
|
|
498
495
|
}
|
|
499
496
|
});
|
|
500
497
|
}
|
|
@@ -602,18 +599,15 @@ export async function GetSentCorrespondenceRequests(
|
|
|
602
599
|
ToName = attribute.Value;
|
|
603
600
|
}
|
|
604
601
|
if (
|
|
605
|
-
attribute.
|
|
606
|
-
!attribute.IsRequesterVisible
|
|
602
|
+
attribute.Alias === element.CustomField5
|
|
607
603
|
) {
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
// }
|
|
616
|
-
GeneratedDocument = attribute.Value;
|
|
604
|
+
GeneratedDocument = ReadSASResult?.Result
|
|
605
|
+
? ReadSASResult.Result.split("?")[0] +
|
|
606
|
+
"/" +
|
|
607
|
+
attribute.Value +
|
|
608
|
+
"?" +
|
|
609
|
+
ReadSASResult.Result.split("?")[1]
|
|
610
|
+
: "";
|
|
617
611
|
}
|
|
618
612
|
if (
|
|
619
613
|
attribute.Alias === "Attachments" &&
|
|
@@ -751,18 +745,15 @@ export async function GetCancelledCorrespondenceRequests(
|
|
|
751
745
|
ToName = attribute.Value;
|
|
752
746
|
}
|
|
753
747
|
if (
|
|
754
|
-
attribute.
|
|
755
|
-
!attribute.IsRequesterVisible
|
|
748
|
+
attribute.Alias === element.CustomField5
|
|
756
749
|
) {
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
// }
|
|
765
|
-
GeneratedDocument = attribute.Value;
|
|
750
|
+
GeneratedDocument = ReadSASResult?.Result
|
|
751
|
+
? ReadSASResult.Result.split("?")[0] +
|
|
752
|
+
"/" +
|
|
753
|
+
attribute.Value +
|
|
754
|
+
"?" +
|
|
755
|
+
ReadSASResult.Result.split("?")[1]
|
|
756
|
+
: "";
|
|
766
757
|
}
|
|
767
758
|
if (
|
|
768
759
|
attribute.Alias === "Attachments" &&
|
|
@@ -775,7 +766,9 @@ export async function GetCancelledCorrespondenceRequests(
|
|
|
775
766
|
for (let attributeGroup of DecodedAttachmentsRecordList) {
|
|
776
767
|
for (let group of attributeGroup) {
|
|
777
768
|
for (let attributeDTO of group.RequestAttributeDtos) {
|
|
778
|
-
if (
|
|
769
|
+
if (
|
|
770
|
+
attributeDTO.AttributeTypeValueTypeName === "Attachment"
|
|
771
|
+
) {
|
|
779
772
|
Attachments.push({
|
|
780
773
|
id: attributeDTO.RequestAttributeId || 0,
|
|
781
774
|
name: attributeDTO.ExtendedValue || "",
|
|
@@ -901,18 +894,15 @@ export async function GetMyClosedCorrespondenceRequests(
|
|
|
901
894
|
ToName = attribute.Value;
|
|
902
895
|
}
|
|
903
896
|
if (
|
|
904
|
-
attribute.
|
|
905
|
-
!attribute.IsRequesterVisible
|
|
897
|
+
attribute.Alias === element.Request.CustomField5
|
|
906
898
|
) {
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
// }
|
|
915
|
-
GeneratedDocument = attribute.Value;
|
|
899
|
+
GeneratedDocument = ReadSASResult?.Result
|
|
900
|
+
? ReadSASResult.Result.split("?")[0] +
|
|
901
|
+
"/" +
|
|
902
|
+
attribute.Value +
|
|
903
|
+
"?" +
|
|
904
|
+
ReadSASResult.Result.split("?")[1]
|
|
905
|
+
: "";
|
|
916
906
|
}
|
|
917
907
|
if (
|
|
918
908
|
attribute.Alias === "Attachments" &&
|
|
@@ -925,7 +915,9 @@ export async function GetMyClosedCorrespondenceRequests(
|
|
|
925
915
|
for (let attributeGroup of DecodedAttachmentsRecordList) {
|
|
926
916
|
for (let group of attributeGroup) {
|
|
927
917
|
for (let attributeDTO of group.RequestAttributeDtos) {
|
|
928
|
-
if (
|
|
918
|
+
if (
|
|
919
|
+
attributeDTO.AttributeTypeValueTypeName === "Attachment"
|
|
920
|
+
) {
|
|
929
921
|
Attachments.push({
|
|
930
922
|
id: attributeDTO.RequestAttributeId || 0,
|
|
931
923
|
name: attributeDTO.ExtendedValue || "",
|
|
@@ -1204,18 +1196,15 @@ export async function GetMyInboxCorrespondenceRequests(
|
|
|
1204
1196
|
ImagePath = attribute.Value;
|
|
1205
1197
|
}
|
|
1206
1198
|
if (
|
|
1207
|
-
attribute.
|
|
1208
|
-
!attribute.IsRequesterVisible
|
|
1199
|
+
attribute.Alias === element.Request.CustomField5
|
|
1209
1200
|
) {
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
// }
|
|
1218
|
-
GeneratedDocument = attribute.Value;
|
|
1201
|
+
GeneratedDocument = ReadSASResult?.Result
|
|
1202
|
+
? ReadSASResult.Result.split("?")[0] +
|
|
1203
|
+
"/" +
|
|
1204
|
+
attributeDTO.Value +
|
|
1205
|
+
"?" +
|
|
1206
|
+
ReadSASResult.Result.split("?")[1]
|
|
1207
|
+
: "";
|
|
1219
1208
|
}
|
|
1220
1209
|
if (
|
|
1221
1210
|
attribute.Alias === "Attachments" &&
|
|
@@ -1228,7 +1217,9 @@ export async function GetMyInboxCorrespondenceRequests(
|
|
|
1228
1217
|
for (let attributeGroup of DecodedAttachmentsRecordList) {
|
|
1229
1218
|
for (let group of attributeGroup) {
|
|
1230
1219
|
for (let attributeDTO of group.RequestAttributeDtos) {
|
|
1231
|
-
if (
|
|
1220
|
+
if (
|
|
1221
|
+
attributeDTO.AttributeTypeValueTypeName === "Attachment"
|
|
1222
|
+
) {
|
|
1232
1223
|
Attachments.push({
|
|
1233
1224
|
id: attributeDTO.RequestAttributeId || 0,
|
|
1234
1225
|
name: attributeDTO.ExtendedValue || "",
|
|
@@ -17,11 +17,26 @@ export interface RequesterAddRequestInput {
|
|
|
17
17
|
StepName: string
|
|
18
18
|
SequenceNo: number
|
|
19
19
|
ProviderRoleId: number
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
CloseWhenChildCompleted: boolean
|
|
21
|
+
CloseWhenParentCompleted: boolean
|
|
22
|
+
SetWaitingOnStart: boolean
|
|
22
23
|
IsRequesterVisible: boolean
|
|
23
24
|
IsProviderVisible: boolean
|
|
25
|
+
IsRejectable: boolean
|
|
26
|
+
IsAssignable: boolean
|
|
27
|
+
ChildSteps: ChildStep[]
|
|
24
28
|
}
|
|
29
|
+
|
|
30
|
+
export interface ChildStep {
|
|
31
|
+
StepTypeName: string
|
|
32
|
+
StepName: string
|
|
33
|
+
SequenceNo: number
|
|
34
|
+
ProviderRoleId: number
|
|
35
|
+
CloseWhenChildCompleted: boolean
|
|
36
|
+
CloseWhenParentCompleted: boolean
|
|
37
|
+
SetWaitingOnStart: boolean
|
|
38
|
+
}
|
|
39
|
+
|
|
25
40
|
export interface ClientRequestAttributeDto {
|
|
26
41
|
IsSystemGenerated: boolean
|
|
27
42
|
DtoState: number
|