octopian-apis 1.0.66 → 1.0.67

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.66",
3
+ "version": "1.0.67",
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": {
@@ -105,7 +105,7 @@ export async function DABGetServiceItemList(
105
105
  Timeout = 30000,
106
106
  RequiredHeaderValue = null
107
107
  ) {
108
- let serviceID = GetServiceItemListDTO.ServiceID;
108
+ let serviceID = GetServiceItemListDTO.ServiceId;
109
109
  if (serviceID === 0 && GetServiceItemListDTO.ServiceAlias) {
110
110
  // Fetch the list of services
111
111
  const servicesList = await apiHandler.PostMethod(
@@ -133,7 +133,6 @@ export async function DABGetServiceItemList(
133
133
  const service = servicesList.Result.find(
134
134
  (service) => service.Alias === GetServiceItemListDTO.ServiceAlias
135
135
  );
136
-
137
136
  // Check if the service was found
138
137
  if (!service) {
139
138
  return {
@@ -146,12 +145,13 @@ export async function DABGetServiceItemList(
146
145
  };
147
146
  } else {
148
147
  serviceID = service.ServiceId;
148
+
149
149
  }
150
150
  }
151
151
  if (serviceID && serviceID !== 0) {
152
152
  let APIResponse = await apiHandler.PostMethod(
153
153
  TransactionsAPIConstants.uriGetServiceItemList(),
154
- GetServiceItemListDTO,
154
+ {...GetServiceItemListDTO, ServiceId: serviceID},
155
155
  AuthToken,
156
156
  Timeout,
157
157
  RequiredHeaderValue,
@@ -163,7 +163,7 @@ export async function DABGetServiceItemList(
163
163
  Message: "Error",
164
164
  StatusCode: -1,
165
165
  Result: {
166
- ErrorMessage: `Service with alias ${GetServiceItemListDTO.ServiceAlias} not found`,
166
+ ErrorMessage: `Service with alias ${GetServiceItemListDTO.ServiceAlias} test not found`,
167
167
  ErrorRefNo: "-1",
168
168
  },
169
169
  };
@@ -240,7 +240,6 @@ export async function DABGetServiceAssetList(
240
240
  const service = servicesList.Result.find(
241
241
  (service) => service.Alias === GetServiceAssetListDTO.ServiceAlias
242
242
  );
243
- "service", service;
244
243
  // Check if the service was found
245
244
  if (!service) {
246
245
  return {