octopian-apis 1.0.37 → 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 +1 -1
- package/src/CoreServices/authenticationServices.js +1 -1
- package/src/darAlBerServices/authenticationServices.js +1 -1
- package/src/darAlBerServices/requestsServices.js +25 -25
- package/src/darAlBerServices.ts +2 -1
- package/src/index.d.ts +4 -2
- package/src/modals/output-modals/authentications-modals/LinkedLoginOutput.ts +4 -0
package/package.json
CHANGED
|
@@ -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
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
814
|
+
// let selectedAsset = null;
|
|
815
|
+
// if (request.AssetId && request.AssetId > 0) {
|
|
816
|
+
// try
|
|
817
|
+
// {
|
|
818
818
|
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
}
|
|
835
|
-
catch(error){
|
|
836
|
-
|
|
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;
|
package/src/darAlBerServices.ts
CHANGED
|
@@ -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<
|
|
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<
|
|
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
|
};
|