octopian-apis 1.0.54 → 1.0.55

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.54",
3
+ "version": "1.0.55",
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": {
@@ -3985,6 +3985,44 @@ export async function GenerateStepDocument(
3985
3985
  );
3986
3986
  return APIResponse;
3987
3987
  }
3988
+
3989
+ /**
3990
+ * @description
3991
+ * Retrieves a list of notifications.
3992
+ *
3993
+ * @param {string} AuthToken
3994
+ * Authentication token for authorization purposes.
3995
+ *
3996
+ * @param {number} Timeout
3997
+ * Time in milliseconds to wait before the request times out. Default is 30000.
3998
+ *
3999
+ * @param {string} RequiredHeaderValue
4000
+ * Value for any required header. Default is null.
4001
+ *
4002
+ * @returns
4003
+ * An object containing the response from the Get Notification List API,
4004
+ * including success message, status code, and any additional data returned by the API.
4005
+ * Message: Success,
4006
+ * StatusCode: 200,
4007
+ * Result: [
4008
+ * --- notification data ---
4009
+ * ],
4010
+ * HeaderValue: string
4011
+ */
4012
+ export async function GetNotificationList(
4013
+ AuthToken = null,
4014
+ Timeout = 30000,
4015
+ RequiredHeaderValue = null
4016
+ ) {
4017
+ let APIResponse = await apiHandler.PostMethod(
4018
+ TransactionsAPIConstants.uriGetNotificationList(),
4019
+ null,
4020
+ AuthToken,
4021
+ Timeout,
4022
+ RequiredHeaderValue
4023
+ );
4024
+ return APIResponse;
4025
+ }
3988
4026
  //#endregion
3989
4027
 
3990
4028
  //#region Agent
package/src/index.d.ts CHANGED
@@ -271,6 +271,7 @@ import { MaintainAgentInteractorInput } from "./modals/input-modals/transaction-
271
271
  import { MaintainAgentInteractorOutput } from "./modals/output-modals/transaction-catalog-modals/MaintainAgentInteractorOutput";
272
272
  import { GetServiceManagementServiceListOutput } from "./modals/output-modals/request-modals/GetServiceManagementServiceListOutput";
273
273
  import { GetAppStyles } from "./modals/output-modals/correspondence-modals/GetAppStyles";
274
+ import { NotificationListOutput } from "./modals/output-modals/transaction-catalog-modals/NotificationListOutput";
274
275
  // Define each module with its specific functions
275
276
 
276
277
  interface AuthenticationServices {
@@ -4118,6 +4119,35 @@ interface TransactionCommonServices {
4118
4119
  Timeout?: number | null,
4119
4120
  RequiredHeaderValue?: string
4120
4121
  ) => BaseResponse<boolean | BaseErrorResponse>;
4122
+
4123
+ /**
4124
+ * @description
4125
+ * Retrieves a list of notifications.
4126
+ *
4127
+ * @param {string} AuthToken
4128
+ * Authentication token for authorization purposes.
4129
+ *
4130
+ * @param {number} Timeout
4131
+ * Time in milliseconds to wait before the request times out. Default is 30000.
4132
+ *
4133
+ * @param {string} RequiredHeaderValue
4134
+ * Value for any required header. Default is null.
4135
+ *
4136
+ * @returns
4137
+ * An object containing the response from the Get Notification List API,
4138
+ * including success message, status code, and any additional data returned by the API.
4139
+ * Message: Success,
4140
+ * StatusCode: 200,
4141
+ * Result: [
4142
+ * --- notification data ---
4143
+ * ],
4144
+ * HeaderValue: string
4145
+ */
4146
+ GetNotificationList: (
4147
+ AuthToken?: string | null,
4148
+ Timeout?: number | null,
4149
+ RequiredHeaderValue?: string
4150
+ ) => BaseResponse<NotificationListOutput[] | BaseErrorResponse>;
4121
4151
  }
4122
4152
 
4123
4153
  // Storage Services interface
@@ -7526,5 +7556,6 @@ export {
7526
7556
  GetServiceManagementServiceListOutput,
7527
7557
  DynamicStepList,
7528
7558
  GetAppStyles,
7529
- GenerateStepDocumentInput
7559
+ GenerateStepDocumentInput,
7560
+ NotificationListOutput
7530
7561
  };
package/src/index.js CHANGED
@@ -139,6 +139,7 @@ const {
139
139
  GetInteractorEligibleDocumentListAgent,
140
140
  MaintainAgentUnitList,
141
141
  MaintainAgentInteractorList,
142
+ GetNotificationList,
142
143
  } = require("./CoreServices/transactionsServices");
143
144
  const TransactionRequesterServices = {
144
145
  GetCompanyLanguageList,
@@ -237,7 +238,8 @@ const TransactionCommonServices = {
237
238
  GetServiceManagementServiceList,
238
239
  MaintainServiceManagementServiceList,
239
240
  GetMyPersonalUnitMemberList,
240
- ConvertPersonalUnitMemberToRecord
241
+ ConvertPersonalUnitMemberToRecord,
242
+ GetNotificationList,
241
243
  };
242
244
 
243
245
  const {
@@ -0,0 +1,8 @@
1
+ export interface NotificationListOutput {
2
+ Message: string;
3
+ Action: string;
4
+ UserId: string;
5
+ GroupName: string;
6
+ Method: string;
7
+ Error: string;
8
+ }
@@ -384,6 +384,9 @@ export class TransactionsAPIConstants {
384
384
  static uriMaintainServiceManagementServiceList() {
385
385
  return transactionCatalogURI + "/api/TransactionCommon/MaintainServiceManagementServiceList";
386
386
  }
387
+ static uriGetNotificationList(){
388
+ return transactionCatalogURI + "/api/Notification/GetNotificationList";
389
+ }
387
390
  //#endregion
388
391
 
389
392
  //#region Agent