octopian-apis 1.0.49 → 1.0.51

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.49",
3
+ "version": "1.0.51",
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": {
@@ -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
- PrevAttribute.Value +
114
+ PreviousStepDocumentAttachment.Value +
115
115
  "?" +
116
116
  ReadSASResult.Result.split("?")[1]
117
- : "";
117
+ : "");
118
118
  }
119
119
  }
120
120
  }
@@ -184,7 +184,7 @@ export async function GetMyApprovedCorrespondenceRequests(
184
184
  Name: step.ProviderName,
185
185
  Comment: step.ProviderComments,
186
186
  SubmitDate: step.StartDate,
187
- ParentRequestStepId: step.ParentRequestStepId,
187
+ ParentRequestStepId: step.ParentRequestStepId || 0,
188
188
  });
189
189
  });
190
190
  }
@@ -195,7 +195,7 @@ export async function GetMyApprovedCorrespondenceRequests(
195
195
  Name: element.CurrentActiveRequestStep.ProviderRoleName,
196
196
  Comment: "",
197
197
  SubmitDate: element.CurrentActiveRequestStep.StartDate,
198
- ParentRequestStepId: element.CurrentActiveRequestStep.ParentRequestStepId,
198
+ ParentRequestStepId: element.CurrentActiveRequestStep.ParentRequestStepId || 0,
199
199
  });
200
200
  }
201
201
 
@@ -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
- ? ReadSASResult.Result.split("?")[0] +
326
- "/" +
327
- PrevAttribute.Value +
328
- "?" +
329
- ReadSASResult.Result.split("?")[1]
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
  }
@@ -396,7 +396,7 @@ export async function GetMyRejectedCorrespondenceRequests(
396
396
  Name: step.ProviderName,
397
397
  Comment: step.ProviderComments,
398
398
  SubmitDate: step.StartDate,
399
- ParentRequestStepId: step.ParentRequestStepId,
399
+ ParentRequestStepId: step.ParentRequestStepId || 0,
400
400
  });
401
401
  });
402
402
  }
@@ -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
- ? ReadSASResult.Result.split("?")[0] +
986
- "/" +
987
- PrevAttribute.Value +
988
- "?" +
989
- ReadSASResult.Result.split("?")[1]
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
  }
@@ -1056,7 +1056,7 @@ export async function GetMyClosedCorrespondenceRequests(
1056
1056
  Name: step.ProviderName,
1057
1057
  Comment: step.ProviderComments,
1058
1058
  SubmitDate: step.StartDate,
1059
- ParentRequestStepId: step.ParentRequestStepId,
1059
+ ParentRequestStepId: step.ParentRequestStepId || 0,
1060
1060
  });
1061
1061
  });
1062
1062
  }
@@ -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
- ? ReadSASResult.Result.split("?")[0] +
1311
- "/" +
1312
- PrevAttribute.Value +
1313
- "?" +
1314
- ReadSASResult.Result.split("?")[1]
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
  }
@@ -1381,7 +1381,7 @@ export async function GetMyInboxCorrespondenceRequests(
1381
1381
  Name: step.ProviderName,
1382
1382
  Comment: step.ProviderComments,
1383
1383
  SubmitDate: step.StartDate,
1384
- ParentRequestStepId: step.ParentRequestStepId,
1384
+ ParentRequestStepId: step.ParentRequestStepId || 0,
1385
1385
  });
1386
1386
  });
1387
1387
  }
@@ -22,6 +22,7 @@
22
22
  Name: string
23
23
  Comment: string
24
24
  SubmitDate: string
25
+ ParentRequestStepId: number
25
26
  }
26
27
  export interface Attachment {
27
28
  id: number