@cristian-israel/giganet_lib_conecta 1.0.64 → 1.0.65

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/dist/index.d.mts CHANGED
@@ -37091,7 +37091,7 @@ interface NtfyAction {
37091
37091
  clear?: boolean;
37092
37092
  }
37093
37093
  interface NtfyPublishOptions {
37094
- topic: string;
37094
+ sequence_id: string;
37095
37095
  message: string;
37096
37096
  title?: string;
37097
37097
  priority?: NtfyPriority;
@@ -37099,13 +37099,23 @@ interface NtfyPublishOptions {
37099
37099
  click?: string;
37100
37100
  actions?: NtfyAction[];
37101
37101
  }
37102
+ interface NtfyPublishResponse {
37103
+ id: string;
37104
+ sequence_id?: string;
37105
+ time: number;
37106
+ expires: number;
37107
+ event: "message" | string;
37108
+ topic: string;
37109
+ message: string;
37110
+ }
37102
37111
 
37103
37112
  type ntfyApi_types_NtfyAction = NtfyAction;
37104
37113
  type ntfyApi_types_NtfyActionType = NtfyActionType;
37105
37114
  type ntfyApi_types_NtfyPriority = NtfyPriority;
37106
37115
  type ntfyApi_types_NtfyPublishOptions = NtfyPublishOptions;
37116
+ type ntfyApi_types_NtfyPublishResponse = NtfyPublishResponse;
37107
37117
  declare namespace ntfyApi_types {
37108
- export type { ntfyApi_types_NtfyAction as NtfyAction, ntfyApi_types_NtfyActionType as NtfyActionType, ntfyApi_types_NtfyPriority as NtfyPriority, ntfyApi_types_NtfyPublishOptions as NtfyPublishOptions };
37118
+ export type { ntfyApi_types_NtfyAction as NtfyAction, ntfyApi_types_NtfyActionType as NtfyActionType, ntfyApi_types_NtfyPriority as NtfyPriority, ntfyApi_types_NtfyPublishOptions as NtfyPublishOptions, ntfyApi_types_NtfyPublishResponse as NtfyPublishResponse };
37109
37119
  }
37110
37120
 
37111
37121
  declare class NtfyPublishResource {
@@ -37115,7 +37125,7 @@ declare class NtfyPublishResource {
37115
37125
  * Envia uma notificação para um tópico do ntfy.
37116
37126
  * @param options Opções da notificação
37117
37127
  */
37118
- publish(options: NtfyPublishOptions): Promise<any>;
37128
+ publish(options: NtfyPublishOptions): Promise<NtfyPublishResponse>;
37119
37129
  }
37120
37130
 
37121
37131
  declare class NtfyAPIClient extends APIClient {
package/dist/index.d.ts CHANGED
@@ -37091,7 +37091,7 @@ interface NtfyAction {
37091
37091
  clear?: boolean;
37092
37092
  }
37093
37093
  interface NtfyPublishOptions {
37094
- topic: string;
37094
+ sequence_id: string;
37095
37095
  message: string;
37096
37096
  title?: string;
37097
37097
  priority?: NtfyPriority;
@@ -37099,13 +37099,23 @@ interface NtfyPublishOptions {
37099
37099
  click?: string;
37100
37100
  actions?: NtfyAction[];
37101
37101
  }
37102
+ interface NtfyPublishResponse {
37103
+ id: string;
37104
+ sequence_id?: string;
37105
+ time: number;
37106
+ expires: number;
37107
+ event: "message" | string;
37108
+ topic: string;
37109
+ message: string;
37110
+ }
37102
37111
 
37103
37112
  type ntfyApi_types_NtfyAction = NtfyAction;
37104
37113
  type ntfyApi_types_NtfyActionType = NtfyActionType;
37105
37114
  type ntfyApi_types_NtfyPriority = NtfyPriority;
37106
37115
  type ntfyApi_types_NtfyPublishOptions = NtfyPublishOptions;
37116
+ type ntfyApi_types_NtfyPublishResponse = NtfyPublishResponse;
37107
37117
  declare namespace ntfyApi_types {
37108
- export type { ntfyApi_types_NtfyAction as NtfyAction, ntfyApi_types_NtfyActionType as NtfyActionType, ntfyApi_types_NtfyPriority as NtfyPriority, ntfyApi_types_NtfyPublishOptions as NtfyPublishOptions };
37118
+ export type { ntfyApi_types_NtfyAction as NtfyAction, ntfyApi_types_NtfyActionType as NtfyActionType, ntfyApi_types_NtfyPriority as NtfyPriority, ntfyApi_types_NtfyPublishOptions as NtfyPublishOptions, ntfyApi_types_NtfyPublishResponse as NtfyPublishResponse };
37109
37119
  }
37110
37120
 
37111
37121
  declare class NtfyPublishResource {
@@ -37115,7 +37125,7 @@ declare class NtfyPublishResource {
37115
37125
  * Envia uma notificação para um tópico do ntfy.
37116
37126
  * @param options Opções da notificação
37117
37127
  */
37118
- publish(options: NtfyPublishOptions): Promise<any>;
37128
+ publish(options: NtfyPublishOptions): Promise<NtfyPublishResponse>;
37119
37129
  }
37120
37130
 
37121
37131
  declare class NtfyAPIClient extends APIClient {
package/dist/index.js CHANGED
@@ -91488,7 +91488,7 @@ var NtfyPublishResource = class {
91488
91488
  * @param options Opções da notificação
91489
91489
  */
91490
91490
  async publish(options) {
91491
- const { topic, message, title, priority, tags, click, actions } = options;
91491
+ const { sequence_id, message, title, priority, tags, click, actions } = options;
91492
91492
  const headers = {
91493
91493
  "Content-Type": "text/plain"
91494
91494
  };
@@ -91525,7 +91525,7 @@ var NtfyPublishResource = class {
91525
91525
  return parts.join(", ");
91526
91526
  }).join("; ");
91527
91527
  }
91528
- return this.client.post(`/${topic}`, message, {
91528
+ return this.client.post(`/${sequence_id}`, message, {
91529
91529
  headers
91530
91530
  });
91531
91531
  }
package/dist/index.mjs CHANGED
@@ -91447,7 +91447,7 @@ var NtfyPublishResource = class {
91447
91447
  * @param options Opções da notificação
91448
91448
  */
91449
91449
  async publish(options) {
91450
- const { topic, message, title, priority, tags, click, actions } = options;
91450
+ const { sequence_id, message, title, priority, tags, click, actions } = options;
91451
91451
  const headers = {
91452
91452
  "Content-Type": "text/plain"
91453
91453
  };
@@ -91484,7 +91484,7 @@ var NtfyPublishResource = class {
91484
91484
  return parts.join(", ");
91485
91485
  }).join("; ");
91486
91486
  }
91487
- return this.client.post(`/${topic}`, message, {
91487
+ return this.client.post(`/${sequence_id}`, message, {
91488
91488
  headers
91489
91489
  });
91490
91490
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cristian-israel/giganet_lib_conecta",
3
- "version": "1.0.64",
3
+ "version": "1.0.65",
4
4
  "description": "Database Connector Layer",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",