octopian-apis 1.0.56 → 1.0.57

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.56",
3
+ "version": "1.0.57",
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": {
@@ -4023,6 +4023,85 @@ export async function GetNotificationList(
4023
4023
  );
4024
4024
  return APIResponse;
4025
4025
  }
4026
+
4027
+ /**
4028
+ * @description
4029
+ * Updates a list of notifications.
4030
+ *
4031
+ * @param {object} UpdateNotificationListDTO
4032
+ * Data object containing fields necessary for updating the notification list.
4033
+ * --- notification data list---
4034
+ *
4035
+ * @param {string} AuthToken
4036
+ * Authentication token for authorization purposes.
4037
+ *
4038
+ * @param {number} Timeout
4039
+ * Time in milliseconds to wait before the request times out. Default is 30000.
4040
+ *
4041
+ * @param {string} RequiredHeaderValue
4042
+ * Value for any required header. Default is null.
4043
+ *
4044
+ * @returns
4045
+ * An object containing the response from the Update Notification List API,
4046
+ * including success message, status code, and any additional data returned by the API.
4047
+ * Message: Success,
4048
+ * StatusCode: 200,
4049
+ * Result: boolean,
4050
+ * HeaderValue: string
4051
+ */
4052
+ export async function UpdateNotificationList(
4053
+ UpdateNotificationListDTO,
4054
+ AuthToken = null,
4055
+ Timeout = 30000,
4056
+ RequiredHeaderValue = null
4057
+ ) {
4058
+ let APIResponse = await apiHandler.PostMethod(
4059
+ TransactionsAPIConstants.uriUpdateNotificationList(),
4060
+ UpdateNotificationListDTO,
4061
+ AuthToken,
4062
+ Timeout,
4063
+ RequiredHeaderValue
4064
+ );
4065
+ return APIResponse;
4066
+ }
4067
+
4068
+ /**
4069
+ * @description
4070
+ * Retrieves a list of step types.
4071
+ *
4072
+ * @param {string} AuthToken
4073
+ * Authentication token for authorization purposes.
4074
+ *
4075
+ * @param {number} Timeout
4076
+ * Time in milliseconds to wait before the request times out. Default is 30000.
4077
+ *
4078
+ * @param {string} RequiredHeaderValue
4079
+ * Value for any required header. Default is null.
4080
+ *
4081
+ * @returns
4082
+ * An object containing the response from the Get Step Type List API,
4083
+ * including success message, status code, and any additional data returned by the API.
4084
+ * Message: Success,
4085
+ * StatusCode: 200,
4086
+ * Result: [
4087
+ * --- step type data ---
4088
+ * ],
4089
+ * HeaderValue: string
4090
+ */
4091
+ export async function GetStepTypeList(
4092
+ AuthToken = null,
4093
+ Timeout = 30000,
4094
+ RequiredHeaderValue = null
4095
+ ) {
4096
+ let APIResponse = await apiHandler.PostMethod(
4097
+ TransactionsAPIConstants.uriGetStepTypeList(),
4098
+ null,
4099
+ AuthToken,
4100
+ Timeout,
4101
+ RequiredHeaderValue
4102
+ );
4103
+ return APIResponse;
4104
+ }
4026
4105
  //#endregion
4027
4106
 
4028
4107
  //#region Agent
package/src/index.d.ts CHANGED
@@ -272,6 +272,8 @@ import { MaintainAgentInteractorOutput } from "./modals/output-modals/transactio
272
272
  import { GetServiceManagementServiceListOutput } from "./modals/output-modals/request-modals/GetServiceManagementServiceListOutput";
273
273
  import { GetAppStyles } from "./modals/output-modals/correspondence-modals/GetAppStyles";
274
274
  import { NotificationListOutput } from "./modals/output-modals/transaction-catalog-modals/NotificationListOutput";
275
+ import { UpdateNotificationInput } from "./modals/input-modals/transaction-catalog-modals/UpdateNotificationInput";
276
+ import { GetStepTypeOutput } from "./modals/output-modals/transaction-catalog-modals/GetStepTypesOutput";
275
277
  // Define each module with its specific functions
276
278
 
277
279
  interface AuthenticationServices {
@@ -4148,6 +4150,66 @@ interface TransactionCommonServices {
4148
4150
  Timeout?: number | null,
4149
4151
  RequiredHeaderValue?: string
4150
4152
  ) => BaseResponse<NotificationListOutput[] | BaseErrorResponse>;
4153
+ /**
4154
+ * @description
4155
+ * Updates a list of notifications.
4156
+ *
4157
+ * @param {UpdateNotificationInput} UpdateNotificationListDTO
4158
+ * Data object containing fields necessary for updating the notification list.
4159
+ * --- notification data list---
4160
+ *
4161
+ * @param {string} AuthToken
4162
+ * Authentication token for authorization purposes.
4163
+ *
4164
+ * @param {number} Timeout
4165
+ * Time in milliseconds to wait before the request times out. Default is 30000.
4166
+ *
4167
+ * @param {string} RequiredHeaderValue
4168
+ * Value for any required header. Default is null.
4169
+ *
4170
+ * @returns
4171
+ * An object containing the response from the Update Notification List API,
4172
+ * including success message, status code, and any additional data returned by the API.
4173
+ * Message: Success,
4174
+ * StatusCode: 200,
4175
+ * Result: boolean,
4176
+ * HeaderValue: string
4177
+ */
4178
+ UpdateNotificationList: (
4179
+ Input: UpdateNotificationInput,
4180
+ AuthToken?: string | null,
4181
+ Timeout?: number | null,
4182
+ RequiredHeaderValue?: string
4183
+ ) => BaseResponse<boolean | BaseErrorResponse>;
4184
+
4185
+ /**
4186
+ * @description
4187
+ * Retrieves a list of step types.
4188
+ *
4189
+ * @param {string} AuthToken
4190
+ * Authentication token for authorization purposes.
4191
+ *
4192
+ * @param {number} Timeout
4193
+ * Time in milliseconds to wait before the request times out. Default is 30000.
4194
+ *
4195
+ * @param {string} RequiredHeaderValue
4196
+ * Value for any required header. Default is null.
4197
+ *
4198
+ * @returns
4199
+ * An object containing the response from the Get Step Type List API,
4200
+ * including success message, status code, and any additional data returned by the API.
4201
+ * Message: Success,
4202
+ * StatusCode: 200,
4203
+ * Result: [
4204
+ * --- step type data ---
4205
+ * ],
4206
+ * HeaderValue: string
4207
+ */
4208
+ GetStepTypeList: (
4209
+ AuthToken?: string | null,
4210
+ Timeout?: number | null,
4211
+ RequiredHeaderValue?: string
4212
+ ) => BaseResponse<GetStepTypeOutput[] | BaseErrorResponse>;
4151
4213
  }
4152
4214
 
4153
4215
  // Storage Services interface
@@ -7557,5 +7619,7 @@ export {
7557
7619
  DynamicStepList,
7558
7620
  GetAppStyles,
7559
7621
  GenerateStepDocumentInput,
7560
- NotificationListOutput
7622
+ NotificationListOutput,
7623
+ UpdateNotificationInput,
7624
+ GetStepTypeOutput
7561
7625
  };
package/src/index.js CHANGED
@@ -140,6 +140,8 @@ const {
140
140
  MaintainAgentUnitList,
141
141
  MaintainAgentInteractorList,
142
142
  GetNotificationList,
143
+ UpdateNotificationList,
144
+ GetStepTypeList,
143
145
  } = require("./CoreServices/transactionsServices");
144
146
  const TransactionRequesterServices = {
145
147
  GetCompanyLanguageList,
@@ -240,6 +242,8 @@ const TransactionCommonServices = {
240
242
  GetMyPersonalUnitMemberList,
241
243
  ConvertPersonalUnitMemberToRecord,
242
244
  GetNotificationList,
245
+ UpdateNotificationList,
246
+ GetStepTypeList,
243
247
  };
244
248
 
245
249
  const {
@@ -0,0 +1,4 @@
1
+ export interface UpdateNotificationInput {
2
+ RowKey: string;
3
+ PartitionKey: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ export interface GetStepTypeOutput {
2
+ StepTypeId: number;
3
+ Name: string;
4
+ DtoState: number;
5
+ Translations: string;
6
+ }
@@ -387,6 +387,12 @@ export class TransactionsAPIConstants {
387
387
  static uriGetNotificationList(){
388
388
  return transactionCatalogURI + "/api/Notification/GetNotificationList";
389
389
  }
390
+ static uriUpdateNotificationList(){
391
+ return transactionCatalogURI + "/api/TransactionCommon/UpdateNotificationList";
392
+ }
393
+ static uriGetStepTypeList(){
394
+ return transactionCatalogURI + "/api/TransactionCommon/GetStepTypeList";
395
+ }
390
396
  //#endregion
391
397
 
392
398
  //#region Agent