dt-common-device 3.0.1 → 3.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.
@@ -12,6 +12,7 @@ export declare class HybridHttpQueue {
12
12
  method: string;
13
13
  url: string;
14
14
  body?: any;
15
+ params?: Record<string, any>;
15
16
  headers?: Record<string, string>;
16
17
  queueOptions?: {
17
18
  connectionId: string;
@@ -156,11 +156,12 @@ let HybridHttpQueue = (() => {
156
156
  }
157
157
  }
158
158
  async request(options) {
159
- const { method, url, body, headers, queueOptions } = options;
159
+ const { method, url, body, params, headers, queueOptions } = options;
160
160
  // Create HttpCallOption object
161
161
  const httpCallOption = {
162
162
  headers,
163
163
  body,
164
+ params,
164
165
  queueOptions,
165
166
  };
166
167
  // Call handleRequest with the constructed parameters
@@ -5,6 +5,7 @@ export interface IHybridHttpQueue {
5
5
  method: string;
6
6
  url: string;
7
7
  body?: any;
8
+ params?: Record<string, any>;
8
9
  headers?: Record<string, string>;
9
10
  queueOptions?: {
10
11
  connectionId: string;
@@ -7,6 +7,7 @@ export declare class QueueService implements IHybridHttpQueue {
7
7
  method: string;
8
8
  url: string;
9
9
  body?: any;
10
+ params?: Record<string, any>;
10
11
  headers?: Record<string, string>;
11
12
  queueOptions?: {
12
13
  connectionId: string;
@@ -12,6 +12,7 @@ export interface HttpRequestOptions {
12
12
  method: string;
13
13
  url: string;
14
14
  body?: any;
15
+ params?: Record<string, any>;
15
16
  headers?: Record<string, string>;
16
17
  queueOptions?: {
17
18
  connectionId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dt-common-device",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -166,6 +166,7 @@ export class HybridHttpQueue {
166
166
  method: string;
167
167
  url: string;
168
168
  body?: any;
169
+ params?: Record<string, any>;
169
170
  headers?: Record<string, string>;
170
171
  queueOptions?: {
171
172
  connectionId: string;
@@ -173,11 +174,12 @@ export class HybridHttpQueue {
173
174
  microservice: string;
174
175
  };
175
176
  }): Promise<IQueueResponse> {
176
- const { method, url, body, headers, queueOptions } = options;
177
+ const { method, url, body, params, headers, queueOptions } = options;
177
178
  // Create HttpCallOption object
178
179
  const httpCallOption: HttpCallOption = {
179
180
  headers,
180
181
  body,
182
+ params,
181
183
  queueOptions,
182
184
  };
183
185
  // Call handleRequest with the constructed parameters
@@ -6,6 +6,7 @@ export interface IHybridHttpQueue {
6
6
  method: string;
7
7
  url: string;
8
8
  body?: any;
9
+ params?: Record<string, any>;
9
10
  headers?: Record<string, string>;
10
11
  queueOptions?: {
11
12
  connectionId: string;
@@ -15,6 +15,7 @@ export class QueueService implements IHybridHttpQueue {
15
15
  method: string;
16
16
  url: string;
17
17
  body?: any;
18
+ params?: Record<string, any>;
18
19
  headers?: Record<string, string>;
19
20
  queueOptions?: {
20
21
  connectionId: string;
@@ -13,6 +13,7 @@ export interface HttpRequestOptions {
13
13
  method: string;
14
14
  url: string;
15
15
  body?: any;
16
+ params?: Record<string, any>;
16
17
  headers?: Record<string, string>;
17
18
  queueOptions?: {
18
19
  connectionId: string;