octopian-configuration-apis 1.0.1 → 1.0.2

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-configuration-apis",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "a global javascript sdk",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -1498,4 +1498,13 @@ export async function CreateNewCorrespondence(
1498
1498
  return APIResponse;
1499
1499
  }
1500
1500
  }
1501
+
1502
+ export async function UpdateConfiguration(AuthToken = null, Timeout = 30000) {
1503
+ let APIResponse = await apiHandler.GetMethod(
1504
+ ConfigurationAPIConstants.uriUpdateConfiguration(),
1505
+ AuthToken,
1506
+ Timeout
1507
+ );
1508
+ return APIResponse;
1509
+ }
1501
1510
  //#endregion
@@ -1,4 +1,4 @@
1
- import { GetAssetList, GetInteractorTypeList, GetUnitList,GetInteractorList,GetAssetBlazorViewList } from "./configurationServices";
1
+ import { GetAssetList, GetInteractorTypeList, GetUnitList,GetInteractorList,GetAssetBlazorViewList, UpdateConfiguration } from "./configurationServices";
2
2
 
3
3
  export async function GetEnglishNewsList(Input, AuthToken = null, Timeout = 30000) {
4
4
  let InteractorTypes = await GetInteractorTypeList(-12345,AuthToken,Timeout)
@@ -452,4 +452,9 @@ export async function MaintainAssetsList(Input, AuthToken = null, Timeout = 3000
452
452
  Input
453
453
  })
454
454
  return response;
455
+ }
456
+
457
+ export async function UpdateDarAlBerConfiguration( AuthToken = null, Timeout = 30000) {
458
+ let response = await UpdateConfiguration(AuthToken, Timeout)
459
+ return response;
455
460
  }
package/src/index.d.ts CHANGED
@@ -755,6 +755,11 @@ interface ConfigurationServices {
755
755
  AuthToken?: string | null,
756
756
  Timeout?: number | null
757
757
  ) => BaseResponse<GetInteractorListOutput[] | BaseErrorResponse>;
758
+
759
+ UpdateConfiguration: (
760
+ AuthToken?: string | null,
761
+ Timeout?: number | null
762
+ ) => BaseResponse<boolean | BaseErrorResponse>;
758
763
  }
759
764
 
760
765
  interface DABConfigurationServices {
@@ -852,7 +857,12 @@ interface DABConfigurationServices {
852
857
  Input: AddAssetsInput,
853
858
  AuthToken?: string | null,
854
859
  Timeout?: number | null
855
- ) => BaseResponse<GetAssetListOutput[] | BaseErrorResponse>;
860
+ ) => BaseResponse<GetAssetListOutput[] | BaseErrorResponse>;
861
+
862
+ UpdateDarAlBerConfiguration: (
863
+ AuthToken?: string | null,
864
+ Timeout?: number | null
865
+ ) => BaseResponse<boolean | BaseErrorResponse>;
856
866
  }
857
867
 
858
868
  interface ConfigurationSDKConfig {
package/src/index.js CHANGED
@@ -28,7 +28,8 @@ const {
28
28
  CreateNewCorrespondence,
29
29
  GetDefaultConfigurationList,
30
30
  getCorrespondenceList,
31
- GetAssetBlazorViewList
31
+ GetAssetBlazorViewList,
32
+ UpdateConfiguration
32
33
  } = require("./CoreServices/configurationServices");
33
34
  const {
34
35
  GetEnglishNewsList,
@@ -46,7 +47,8 @@ const {
46
47
  AddQuickDonations,
47
48
  AddMainStepper,
48
49
  AddBranches,
49
- AddBankAccounts
50
+ AddBankAccounts,
51
+ UpdateDarAlBerConfiguration
50
52
  } = require("./CoreServices/darAlBerServices");
51
53
 
52
54
  const ConfigurationServices = {
@@ -79,7 +81,8 @@ const ConfigurationServices = {
79
81
  CreateNewCorrespondence,
80
82
  GetDefaultConfigurationList,
81
83
  getCorrespondenceList,
82
- GetAssetBlazorViewList
84
+ GetAssetBlazorViewList,
85
+ UpdateConfiguration
83
86
  };
84
87
 
85
88
  const DABConfigurationServices = {
@@ -98,7 +101,8 @@ const DABConfigurationServices = {
98
101
  AddQuickDonations,
99
102
  AddMainStepper,
100
103
  AddBranches,
101
- AddBankAccounts
104
+ AddBankAccounts,
105
+ UpdateDarAlBerConfiguration
102
106
  };
103
107
 
104
108
  const {
@@ -90,10 +90,14 @@ export class ConfigurationAPIConstants {
90
90
  static uriGetInteractorList(){
91
91
  return ConfigurationURI + "/api/Organization/GetInteractorList";
92
92
  }
93
+ static uriUpdateConfiguration(){
94
+ return CustomURI + "/api/AssetsUpdate/UpdateConfigration";
95
+ }
93
96
  }
94
97
 
95
98
  //#region BaseConstants
96
99
  let ConfigurationURI = "/configuration";
97
100
  let authenticationURI = "/ConfigurationAuthentication";
98
101
  let storageURI = "/storage";
102
+ let CustomURI = "/CustomApi";
99
103
  //#endregion