octopian-apis 1.0.36 → 1.0.38

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.36",
3
+ "version": "1.0.38",
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": {
@@ -103,7 +103,7 @@ export async function LinkedLogin(LoginDTO, Timeout = 30000) {
103
103
  return {
104
104
  Message: "Success",
105
105
  StatusCode: 200,
106
- Result: linkedSubInteractorTokenList.Result.GatewayToken,
106
+ Result:{ Token: linkedSubInteractorTokenList.Result.GatewayToken, ProfileToken: APIResponse.Result.Token}
107
107
  };
108
108
  }
109
109
  }
@@ -104,7 +104,7 @@ export async function DABLinkedLogin(LoginDTO, Timeout = 30000) {
104
104
  return {
105
105
  Message: "Success",
106
106
  StatusCode: 200,
107
- Result: linkedSubInteractorTokenList.Result.GatewayToken,
107
+ Result:{ Token: linkedSubInteractorTokenList.Result.GatewayToken, ProfileToken: APIResponse.Result.Token}
108
108
  };
109
109
  }
110
110
  }
@@ -811,31 +811,31 @@ export async function DABGetMyDonations(
811
811
  );
812
812
  for(let request of requestsList.Result){
813
813
 
814
- let selectedAsset = null;
815
- if (request.AssetId && request.AssetId > 0) {
816
- try
817
- {
814
+ // let selectedAsset = null;
815
+ // if (request.AssetId && request.AssetId > 0) {
816
+ // try
817
+ // {
818
818
 
819
- let assetList = await apiHandler.PostMethod(
820
- TransactionsAPIConstants.uriGetServiceAssetList(),
821
- { PageSize: 100, PageIndex: 0, ServiceId: request.ServiceId, AssetIdList: [request.AssetId] },
822
- AuthToken,
823
- Timeout,
824
- RequiredHeaderValue,
825
- true
826
- )
827
- if(assetList?.StatusCode==200){
828
- for (let asset of assetList?.Result) {
829
- selectedAsset = asset?.Assetlist?.find(
830
- (asset) => asset.AssetId === request.AssetId
831
- );
832
- }
833
- }
834
- }
835
- catch(error){
836
- //console.log(error);
837
- }
838
- }
819
+ // let assetList = await apiHandler.PostMethod(
820
+ // TransactionsAPIConstants.uriGetServiceAssetList(),
821
+ // { PageSize: 100, PageIndex: 0, ServiceId: request.ServiceId, AssetIdList: [request.AssetId] },
822
+ // AuthToken,
823
+ // Timeout,
824
+ // RequiredHeaderValue,
825
+ // true
826
+ // )
827
+ // if(assetList?.StatusCode==200){
828
+ // for (let asset of assetList?.Result) {
829
+ // selectedAsset = asset?.Assetlist?.find(
830
+ // (asset) => asset.AssetId === request.AssetId
831
+ // );
832
+ // }
833
+ // }
834
+ // }
835
+ // catch(error){
836
+ // //console.log(error);
837
+ // }
838
+ // }
839
839
  request["ServiceAlias"] = servicesList?.Result?.find(
840
840
  (service) => service.ServiceId === request.ServiceId
841
841
  )?.Alias;
@@ -845,7 +845,7 @@ export async function DABGetMyDonations(
845
845
  request["Description"] = request.RequestAttributeList.find(
846
846
  (attribute) => attribute.Alias === "Description"
847
847
  )?.Value;
848
- request["AssetImagePath"] = selectedAsset?.FullImagePath || "";
848
+ // request["AssetImagePath"] = selectedAsset?.FullImagePath || "";
849
849
  }
850
850
  }
851
851
  return requestsList;
@@ -1421,10 +1421,10 @@ export async function DABGetPaymentURL(
1421
1421
  );
1422
1422
  if (addrequestResult.StatusCode === 200 && isAddToCart) {
1423
1423
  DABSubmitCart({
1424
- specificRequestIds: [addrequestResult.Result.RequestId],
1424
+ specificRequestIds: [addrequestResult.Result.requestId],
1425
1425
  ShippingAddressId: 0,
1426
1426
  BillingAddressId: 0,
1427
- PaymentMethod: "Card",
1427
+ PaymentMethod: "CashOnDelivery",
1428
1428
  });
1429
1429
  }
1430
1430
  return {
@@ -230,6 +230,7 @@ import { GetServiceSelectorListInput } from "./modals/input-modals/transaction-c
230
230
  import { CustomSubmitInput } from "./modals/input-modals/transaction-catalog-modals/CustomSubmitInput";
231
231
  import { GetPaymentURLInput } from "./modals/input-modals/transaction-catalog-modals/GetPaymentURLInput";
232
232
  import { PaymentInvoiceOutput, DonatorDetailsOutput, PaymentDetailsOutput } from "./modals/output-modals/transaction-catalog-modals/PaymentInvoiceOutput";
233
+ import { LinkedLoginOutput } from "./modals/output-modals/authentications-modals/LinkedLoginOutput";
233
234
  // Define each module with its specific functions
234
235
  interface DarAlBerServices {
235
236
  /**
@@ -291,7 +292,7 @@ interface DarAlBerServices {
291
292
  DABLinkedLogin: (
292
293
  Input: LoginInput,
293
294
  Timeout?: number | null
294
- ) => BaseResponse<String | BaseErrorResponse>;
295
+ ) => BaseResponse<LinkedLoginOutput | BaseErrorResponse>;
295
296
  /**
296
297
  * @description
297
298
  * Handles user signup by sending a POST request with the provided signup data.
package/src/index.d.ts CHANGED
@@ -262,6 +262,7 @@ import { GetMyCorrespondenceOutput } from "./modals/output-modals/correspondence
262
262
  import { RequestStepAssignableRoleInput } from "./modals/input-modals/request-step-modals/RequestStepAssignableRoleInput";
263
263
  import { RequestStepAssignableRoleOutput } from "./modals/output-modals/request-step-modals/RequestStepAssignableRoleOutput";
264
264
  import { ProcessStepSpecialActionInput } from "./modals/input-modals/request-step-modals/ProcessStepSpecialActionInput";
265
+ import { LinkedLoginOutput } from "./modals/output-modals/authentications-modals/LinkedLoginOutput";
265
266
  // Define each module with its specific functions
266
267
 
267
268
  interface AuthenticationServices {
@@ -335,7 +336,7 @@ interface AuthenticationServices {
335
336
  LinkedLogin: (
336
337
  Input: LoginInput,
337
338
  Timeout?: number | null
338
- ) => BaseResponse<String | BaseErrorResponse>;
339
+ ) => BaseResponse<LinkedLoginOutput | BaseErrorResponse>;
339
340
 
340
341
  /**
341
342
  * @description
@@ -6885,5 +6886,6 @@ export {
6885
6886
  GetMyCorrespondenceOutput,
6886
6887
  RequestStepAssignableRoleInput,
6887
6888
  RequestStepAssignableRoleOutput,
6888
- ProcessStepSpecialActionInput
6889
+ ProcessStepSpecialActionInput,
6890
+ LinkedLoginOutput
6889
6891
  };
@@ -0,0 +1,4 @@
1
+ export interface LinkedLoginOutput {
2
+ Token: string
3
+ ProfileToken: string
4
+ }