octopian-apis 1.0.50 → 1.0.52
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,13 +87,13 @@ export async function GetMyApprovedCorrespondenceRequests(
|
|
|
87
87
|
ToName = attribute.Value;
|
|
88
88
|
}
|
|
89
89
|
if (attribute.Alias === element.Request.CustomField5) {
|
|
90
|
-
GeneratedDocument = ReadSASResult?.Result
|
|
90
|
+
GeneratedDocument = attribute.Value.includes('https') ? attribute.Value : (ReadSASResult?.Result
|
|
91
91
|
? ReadSASResult.Result.split("?")[0] +
|
|
92
92
|
"/" +
|
|
93
93
|
attribute.Value +
|
|
94
94
|
"?" +
|
|
95
95
|
ReadSASResult.Result.split("?")[1]
|
|
96
|
-
: "";
|
|
96
|
+
: "");
|
|
97
97
|
if (element.PreviousClosedRequestStepList?.length > 0) {
|
|
98
98
|
let PreviousSteps = element.PreviousClosedRequestStepList.filter(
|
|
99
99
|
(step) => step.IsNeutralEmotion
|
|
@@ -108,13 +108,13 @@ export async function GetMyApprovedCorrespondenceRequests(
|
|
|
108
108
|
(PrevAttribute) => PrevAttribute.Alias === PreviousStep.ExtraLine1
|
|
109
109
|
);
|
|
110
110
|
if (PreviousStepDocumentAttachment) {
|
|
111
|
-
GeneratedDocument = ReadSASResult?.Result
|
|
111
|
+
GeneratedDocument =PreviousStepDocumentAttachment.Value.includes('https') ? PreviousStepDocumentAttachment.Value : (ReadSASResult?.Result
|
|
112
112
|
? ReadSASResult.Result.split("?")[0] +
|
|
113
113
|
"/" +
|
|
114
|
-
|
|
114
|
+
PreviousStepDocumentAttachment.Value +
|
|
115
115
|
"?" +
|
|
116
116
|
ReadSASResult.Result.split("?")[1]
|
|
117
|
-
: "";
|
|
117
|
+
: "");
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -181,7 +181,7 @@ export async function GetMyApprovedCorrespondenceRequests(
|
|
|
181
181
|
ProcessFlow.push({
|
|
182
182
|
Id: step.RequestStepId,
|
|
183
183
|
ImagePath: ProviderImagePath,
|
|
184
|
-
Name: step.ProviderName,
|
|
184
|
+
Name: step.ProviderName || step.ProviderRoleName,
|
|
185
185
|
Comment: step.ProviderComments,
|
|
186
186
|
SubmitDate: step.StartDate,
|
|
187
187
|
ParentRequestStepId: step.ParentRequestStepId || 0,
|
|
@@ -299,13 +299,13 @@ export async function GetMyRejectedCorrespondenceRequests(
|
|
|
299
299
|
ToName = attribute.Value;
|
|
300
300
|
}
|
|
301
301
|
if (attribute.Alias === element.Request.CustomField5) {
|
|
302
|
-
GeneratedDocument = ReadSASResult?.Result
|
|
302
|
+
GeneratedDocument = attribute.Value.includes('https') ? attribute.Value : (ReadSASResult?.Result
|
|
303
303
|
? ReadSASResult.Result.split("?")[0] +
|
|
304
304
|
"/" +
|
|
305
305
|
attribute.Value +
|
|
306
306
|
"?" +
|
|
307
307
|
ReadSASResult.Result.split("?")[1]
|
|
308
|
-
: "";
|
|
308
|
+
: "");
|
|
309
309
|
}
|
|
310
310
|
if (element.PreviousClosedRequestStepList?.length > 0) {
|
|
311
311
|
let PreviousSteps = element.PreviousClosedRequestStepList.filter(
|
|
@@ -321,13 +321,13 @@ export async function GetMyRejectedCorrespondenceRequests(
|
|
|
321
321
|
(PrevAttribute) => PrevAttribute.Alias === PreviousStep.ExtraLine1
|
|
322
322
|
);
|
|
323
323
|
if (PreviousStepDocumentAttachment) {
|
|
324
|
-
GeneratedDocument = ReadSASResult?.Result
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
324
|
+
GeneratedDocument =PreviousStepDocumentAttachment.Value.includes('https') ? PreviousStepDocumentAttachment.Value : (ReadSASResult?.Result
|
|
325
|
+
? ReadSASResult.Result.split("?")[0] +
|
|
326
|
+
"/" +
|
|
327
|
+
PreviousStepDocumentAttachment.Value +
|
|
328
|
+
"?" +
|
|
329
|
+
ReadSASResult.Result.split("?")[1]
|
|
330
|
+
: "");
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
}
|
|
@@ -393,7 +393,7 @@ export async function GetMyRejectedCorrespondenceRequests(
|
|
|
393
393
|
ProcessFlow.push({
|
|
394
394
|
Id: step.RequestStepId,
|
|
395
395
|
ImagePath: ProviderImagePath,
|
|
396
|
-
Name: step.ProviderName,
|
|
396
|
+
Name: step.ProviderName || step.ProviderRoleName,
|
|
397
397
|
Comment: step.ProviderComments,
|
|
398
398
|
SubmitDate: step.StartDate,
|
|
399
399
|
ParentRequestStepId: step.ParentRequestStepId || 0,
|
|
@@ -498,13 +498,13 @@ export async function GetMyDraftCorrespondenceRequests(
|
|
|
498
498
|
ToName = attribute.Value;
|
|
499
499
|
}
|
|
500
500
|
if (attribute.Alias === element.CustomField5) {
|
|
501
|
-
GeneratedDocument = ReadSASResult?.Result
|
|
501
|
+
GeneratedDocument = attribute.Value.includes('https') ? attribute.Value : (ReadSASResult?.Result
|
|
502
502
|
? ReadSASResult.Result.split("?")[0] +
|
|
503
503
|
"/" +
|
|
504
504
|
attribute.Value +
|
|
505
505
|
"?" +
|
|
506
506
|
ReadSASResult.Result.split("?")[1]
|
|
507
|
-
: "";
|
|
507
|
+
: "");
|
|
508
508
|
}
|
|
509
509
|
if (
|
|
510
510
|
attribute.Alias === "Attachments" &&
|
|
@@ -644,13 +644,13 @@ export async function GetSentCorrespondenceRequests(
|
|
|
644
644
|
ToName = attribute.Value;
|
|
645
645
|
}
|
|
646
646
|
if (attribute.Alias === element.CustomField5) {
|
|
647
|
-
GeneratedDocument = ReadSASResult?.Result
|
|
647
|
+
GeneratedDocument = attribute.Value.includes('https') ? attribute.Value : (ReadSASResult?.Result
|
|
648
648
|
? ReadSASResult.Result.split("?")[0] +
|
|
649
649
|
"/" +
|
|
650
650
|
attribute.Value +
|
|
651
651
|
"?" +
|
|
652
652
|
ReadSASResult.Result.split("?")[1]
|
|
653
|
-
: "";
|
|
653
|
+
: "");
|
|
654
654
|
}
|
|
655
655
|
if (element.PreviousClosedRequestStepList?.length > 0) {
|
|
656
656
|
let PreviousSteps = element.PreviousClosedRequestStepList.filter(
|
|
@@ -812,13 +812,13 @@ export async function GetCancelledCorrespondenceRequests(
|
|
|
812
812
|
ToName = attribute.Value;
|
|
813
813
|
}
|
|
814
814
|
if (attribute.Alias === element.CustomField5) {
|
|
815
|
-
GeneratedDocument = ReadSASResult?.Result
|
|
815
|
+
GeneratedDocument = attribute.Value.includes('https') ? attribute.Value : (ReadSASResult?.Result
|
|
816
816
|
? ReadSASResult.Result.split("?")[0] +
|
|
817
817
|
"/" +
|
|
818
818
|
attribute.Value +
|
|
819
819
|
"?" +
|
|
820
820
|
ReadSASResult.Result.split("?")[1]
|
|
821
|
-
: "";
|
|
821
|
+
: "");
|
|
822
822
|
}
|
|
823
823
|
if (
|
|
824
824
|
attribute.Alias === "Attachments" &&
|
|
@@ -959,13 +959,13 @@ export async function GetMyClosedCorrespondenceRequests(
|
|
|
959
959
|
ToName = attribute.Value;
|
|
960
960
|
}
|
|
961
961
|
if (attribute.Alias === element.Request.CustomField5) {
|
|
962
|
-
GeneratedDocument = ReadSASResult?.Result
|
|
962
|
+
GeneratedDocument = attribute.Value.includes('https') ? attribute.Value : (ReadSASResult?.Result
|
|
963
963
|
? ReadSASResult.Result.split("?")[0] +
|
|
964
964
|
"/" +
|
|
965
965
|
attribute.Value +
|
|
966
966
|
"?" +
|
|
967
967
|
ReadSASResult.Result.split("?")[1]
|
|
968
|
-
: "";
|
|
968
|
+
: "");
|
|
969
969
|
}
|
|
970
970
|
if (element.PreviousClosedRequestStepList?.length > 0) {
|
|
971
971
|
let PreviousSteps = element.PreviousClosedRequestStepList.filter(
|
|
@@ -981,13 +981,13 @@ export async function GetMyClosedCorrespondenceRequests(
|
|
|
981
981
|
(PrevAttribute) => PrevAttribute.Alias === PreviousStep.ExtraLine1
|
|
982
982
|
);
|
|
983
983
|
if (PreviousStepDocumentAttachment) {
|
|
984
|
-
GeneratedDocument = ReadSASResult?.Result
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
984
|
+
GeneratedDocument =PreviousStepDocumentAttachment.Value.includes('https') ? PreviousStepDocumentAttachment.Value : (ReadSASResult?.Result
|
|
985
|
+
? ReadSASResult.Result.split("?")[0] +
|
|
986
|
+
"/" +
|
|
987
|
+
PreviousStepDocumentAttachment.Value +
|
|
988
|
+
"?" +
|
|
989
|
+
ReadSASResult.Result.split("?")[1]
|
|
990
|
+
: "");
|
|
991
991
|
}
|
|
992
992
|
}
|
|
993
993
|
}
|
|
@@ -1053,7 +1053,7 @@ export async function GetMyClosedCorrespondenceRequests(
|
|
|
1053
1053
|
ProcessFlow.push({
|
|
1054
1054
|
Id: step.RequestStepId,
|
|
1055
1055
|
ImagePath: ProviderImagePath,
|
|
1056
|
-
Name: step.ProviderName,
|
|
1056
|
+
Name: step.ProviderName || step.ProviderRoleName,
|
|
1057
1057
|
Comment: step.ProviderComments,
|
|
1058
1058
|
SubmitDate: step.StartDate,
|
|
1059
1059
|
ParentRequestStepId: step.ParentRequestStepId || 0,
|
|
@@ -1284,13 +1284,13 @@ export async function GetMyInboxCorrespondenceRequests(
|
|
|
1284
1284
|
ImagePath = attribute.Value;
|
|
1285
1285
|
}
|
|
1286
1286
|
if (attribute.Alias === element.Request.CustomField5) {
|
|
1287
|
-
GeneratedDocument = ReadSASResult?.Result
|
|
1287
|
+
GeneratedDocument = attribute.Value.includes('https') ? attribute.Value : (ReadSASResult?.Result
|
|
1288
1288
|
? ReadSASResult.Result.split("?")[0] +
|
|
1289
1289
|
"/" +
|
|
1290
1290
|
attribute.Value +
|
|
1291
1291
|
"?" +
|
|
1292
1292
|
ReadSASResult.Result.split("?")[1]
|
|
1293
|
-
: "";
|
|
1293
|
+
: "");
|
|
1294
1294
|
}
|
|
1295
1295
|
if (element.PreviousClosedRequestStepList?.length > 0) {
|
|
1296
1296
|
let PreviousSteps = element.PreviousClosedRequestStepList.filter(
|
|
@@ -1306,13 +1306,13 @@ export async function GetMyInboxCorrespondenceRequests(
|
|
|
1306
1306
|
(PrevAttribute) => PrevAttribute.Alias === PreviousStep.ExtraLine1
|
|
1307
1307
|
);
|
|
1308
1308
|
if (PreviousStepDocumentAttachment) {
|
|
1309
|
-
GeneratedDocument = ReadSASResult?.Result
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1309
|
+
GeneratedDocument =PreviousStepDocumentAttachment.Value.includes('https') ? PreviousStepDocumentAttachment.Value : (ReadSASResult?.Result
|
|
1310
|
+
? ReadSASResult.Result.split("?")[0] +
|
|
1311
|
+
"/" +
|
|
1312
|
+
PreviousStepDocumentAttachment.Value +
|
|
1313
|
+
"?" +
|
|
1314
|
+
ReadSASResult.Result.split("?")[1]
|
|
1315
|
+
: "");
|
|
1316
1316
|
}
|
|
1317
1317
|
}
|
|
1318
1318
|
}
|
|
@@ -1378,7 +1378,7 @@ export async function GetMyInboxCorrespondenceRequests(
|
|
|
1378
1378
|
ProcessFlow.push({
|
|
1379
1379
|
Id: step.RequestStepId,
|
|
1380
1380
|
ImagePath: ProviderImagePath,
|
|
1381
|
-
Name: step.ProviderName,
|
|
1381
|
+
Name: step.ProviderName || step.ProviderRoleName,
|
|
1382
1382
|
Comment: step.ProviderComments,
|
|
1383
1383
|
SubmitDate: step.StartDate,
|
|
1384
1384
|
ParentRequestStepId: step.ParentRequestStepId || 0,
|