octopian-apis 1.0.52 → 1.0.53

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.52",
3
+ "version": "1.0.53",
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": {
@@ -86,7 +86,7 @@ export async function GetMyApprovedCorrespondenceRequests(
86
86
  if (attribute.Alias === "To") {
87
87
  ToName = attribute.Value;
88
88
  }
89
- if (attribute.Alias === element.Request.CustomField5) {
89
+ if (attribute.Alias === element.Request.CustomField5 && attribute.Value) {
90
90
  GeneratedDocument = attribute.Value.includes('https') ? attribute.Value : (ReadSASResult?.Result
91
91
  ? ReadSASResult.Result.split("?")[0] +
92
92
  "/" +
@@ -107,7 +107,7 @@ export async function GetMyApprovedCorrespondenceRequests(
107
107
  PreviousStep.RequestAttributeList.find(
108
108
  (PrevAttribute) => PrevAttribute.Alias === PreviousStep.ExtraLine1
109
109
  );
110
- if (PreviousStepDocumentAttachment) {
110
+ if (PreviousStepDocumentAttachment && PreviousStepDocumentAttachment.Value) {
111
111
  GeneratedDocument =PreviousStepDocumentAttachment.Value.includes('https') ? PreviousStepDocumentAttachment.Value : (ReadSASResult?.Result
112
112
  ? ReadSASResult.Result.split("?")[0] +
113
113
  "/" +
@@ -298,7 +298,7 @@ export async function GetMyRejectedCorrespondenceRequests(
298
298
  if (attribute.Alias === "To") {
299
299
  ToName = attribute.Value;
300
300
  }
301
- if (attribute.Alias === element.Request.CustomField5) {
301
+ if (attribute.Alias === element.Request.CustomField5 && attribute.Value) {
302
302
  GeneratedDocument = attribute.Value.includes('https') ? attribute.Value : (ReadSASResult?.Result
303
303
  ? ReadSASResult.Result.split("?")[0] +
304
304
  "/" +
@@ -320,7 +320,7 @@ export async function GetMyRejectedCorrespondenceRequests(
320
320
  PreviousStep.RequestAttributeList.find(
321
321
  (PrevAttribute) => PrevAttribute.Alias === PreviousStep.ExtraLine1
322
322
  );
323
- if (PreviousStepDocumentAttachment) {
323
+ if (PreviousStepDocumentAttachment && PreviousStepDocumentAttachment.Value) {
324
324
  GeneratedDocument =PreviousStepDocumentAttachment.Value.includes('https') ? PreviousStepDocumentAttachment.Value : (ReadSASResult?.Result
325
325
  ? ReadSASResult.Result.split("?")[0] +
326
326
  "/" +
@@ -497,7 +497,7 @@ export async function GetMyDraftCorrespondenceRequests(
497
497
  if (attribute.Alias === "To") {
498
498
  ToName = attribute.Value;
499
499
  }
500
- if (attribute.Alias === element.CustomField5) {
500
+ if (attribute.Alias === element.CustomField5 && attribute.Value) {
501
501
  GeneratedDocument = attribute.Value.includes('https') ? attribute.Value : (ReadSASResult?.Result
502
502
  ? ReadSASResult.Result.split("?")[0] +
503
503
  "/" +
@@ -643,7 +643,7 @@ export async function GetSentCorrespondenceRequests(
643
643
  if (attribute.Alias === "To") {
644
644
  ToName = attribute.Value;
645
645
  }
646
- if (attribute.Alias === element.CustomField5) {
646
+ if (attribute.Alias === element.CustomField5 && attribute.Value) {
647
647
  GeneratedDocument = attribute.Value.includes('https') ? attribute.Value : (ReadSASResult?.Result
648
648
  ? ReadSASResult.Result.split("?")[0] +
649
649
  "/" +
@@ -811,7 +811,7 @@ export async function GetCancelledCorrespondenceRequests(
811
811
  if (attribute.Alias === "To") {
812
812
  ToName = attribute.Value;
813
813
  }
814
- if (attribute.Alias === element.CustomField5) {
814
+ if (attribute.Alias === element.CustomField5 && attribute.Value) {
815
815
  GeneratedDocument = attribute.Value.includes('https') ? attribute.Value : (ReadSASResult?.Result
816
816
  ? ReadSASResult.Result.split("?")[0] +
817
817
  "/" +
@@ -958,7 +958,7 @@ export async function GetMyClosedCorrespondenceRequests(
958
958
  if (attribute.Alias === "To") {
959
959
  ToName = attribute.Value;
960
960
  }
961
- if (attribute.Alias === element.Request.CustomField5) {
961
+ if (attribute.Alias === element.Request.CustomField5 && attribute.Value) {
962
962
  GeneratedDocument = attribute.Value.includes('https') ? attribute.Value : (ReadSASResult?.Result
963
963
  ? ReadSASResult.Result.split("?")[0] +
964
964
  "/" +
@@ -980,7 +980,7 @@ export async function GetMyClosedCorrespondenceRequests(
980
980
  PreviousStep.RequestAttributeList.find(
981
981
  (PrevAttribute) => PrevAttribute.Alias === PreviousStep.ExtraLine1
982
982
  );
983
- if (PreviousStepDocumentAttachment) {
983
+ if (PreviousStepDocumentAttachment && PreviousStepDocumentAttachment.Value) {
984
984
  GeneratedDocument =PreviousStepDocumentAttachment.Value.includes('https') ? PreviousStepDocumentAttachment.Value : (ReadSASResult?.Result
985
985
  ? ReadSASResult.Result.split("?")[0] +
986
986
  "/" +
@@ -1283,7 +1283,7 @@ export async function GetMyInboxCorrespondenceRequests(
1283
1283
  if (attribute.Alias === "InteractorImagePath") {
1284
1284
  ImagePath = attribute.Value;
1285
1285
  }
1286
- if (attribute.Alias === element.Request.CustomField5) {
1286
+ if (attribute.Alias === element.Request.CustomField5 && attribute.Value) {
1287
1287
  GeneratedDocument = attribute.Value.includes('https') ? attribute.Value : (ReadSASResult?.Result
1288
1288
  ? ReadSASResult.Result.split("?")[0] +
1289
1289
  "/" +
@@ -1305,7 +1305,7 @@ export async function GetMyInboxCorrespondenceRequests(
1305
1305
  PreviousStep.RequestAttributeList.find(
1306
1306
  (PrevAttribute) => PrevAttribute.Alias === PreviousStep.ExtraLine1
1307
1307
  );
1308
- if (PreviousStepDocumentAttachment) {
1308
+ if (PreviousStepDocumentAttachment && PreviousStepDocumentAttachment.Value) {
1309
1309
  GeneratedDocument =PreviousStepDocumentAttachment.Value.includes('https') ? PreviousStepDocumentAttachment.Value : (ReadSASResult?.Result
1310
1310
  ? ReadSASResult.Result.split("?")[0] +
1311
1311
  "/" +