@cristian-israel/giganet_lib_conecta 1.0.63 → 1.0.64

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
@@ -37120,7 +37120,9 @@ declare class NtfyPublishResource {
37120
37120
 
37121
37121
  declare class NtfyAPIClient extends APIClient {
37122
37122
  readonly notifications: NtfyPublishResource;
37123
- constructor(config?: Partial<APIClientConfig>);
37123
+ constructor(config: Partial<APIClientConfig> & {
37124
+ topic: string;
37125
+ });
37124
37126
  }
37125
37127
 
37126
37128
  export { IXCSoftAPIClient, ixcSoftApi_types as IXCSoftAPITypes, type IXCSoftMysqlModels, type IXCSoftMysqlModelsAttributes, IXCSoftMysqlService, NtfyAPIClient, ntfyApi_types as NtfyAPITypes, type OPASuiteMongoCollectionsModels, type OPASuiteMongoDocuments, OPASuiteMongoService, RoutinesAPIClient, routinesApi_types as RoutinesAPITypes, type RoutinesMongoCollectionsModels, type RoutinesMongoDocuments, RoutinesMongoService, type ToolsMongoCollectionsModels, type ToolsMongoDocuments, ToolsMongoService, loger, printSignature };
package/dist/index.d.ts CHANGED
@@ -37120,7 +37120,9 @@ declare class NtfyPublishResource {
37120
37120
 
37121
37121
  declare class NtfyAPIClient extends APIClient {
37122
37122
  readonly notifications: NtfyPublishResource;
37123
- constructor(config?: Partial<APIClientConfig>);
37123
+ constructor(config: Partial<APIClientConfig> & {
37124
+ topic: string;
37125
+ });
37124
37126
  }
37125
37127
 
37126
37128
  export { IXCSoftAPIClient, ixcSoftApi_types as IXCSoftAPITypes, type IXCSoftMysqlModels, type IXCSoftMysqlModelsAttributes, IXCSoftMysqlService, NtfyAPIClient, ntfyApi_types as NtfyAPITypes, type OPASuiteMongoCollectionsModels, type OPASuiteMongoDocuments, OPASuiteMongoService, RoutinesAPIClient, routinesApi_types as RoutinesAPITypes, type RoutinesMongoCollectionsModels, type RoutinesMongoDocuments, RoutinesMongoService, type ToolsMongoCollectionsModels, type ToolsMongoDocuments, ToolsMongoService, loger, printSignature };
package/dist/index.js CHANGED
@@ -91534,10 +91534,15 @@ var NtfyPublishResource = class {
91534
91534
  // src/apis/clients/ntfy/ntfy-api.client.ts
91535
91535
  var NtfyAPIClient = class extends APIClient {
91536
91536
  constructor(config) {
91537
- const baseURL = config?.baseURL || "https://ntfy.sh";
91538
- const auth = config?.auth || { type: "none" };
91537
+ const { topic, ...rest } = config;
91538
+ if (!topic) {
91539
+ throw new Error("Topic required");
91540
+ }
91541
+ const URL = rest.baseURL ?? "https://ntfy.sh";
91542
+ const baseURL = `${URL}/${config.topic}`;
91543
+ const auth = rest.auth ?? { type: "none" };
91539
91544
  super({
91540
- ...config,
91545
+ ...rest,
91541
91546
  baseURL,
91542
91547
  auth
91543
91548
  });
package/dist/index.mjs CHANGED
@@ -91493,10 +91493,15 @@ var NtfyPublishResource = class {
91493
91493
  // src/apis/clients/ntfy/ntfy-api.client.ts
91494
91494
  var NtfyAPIClient = class extends APIClient {
91495
91495
  constructor(config) {
91496
- const baseURL = config?.baseURL || "https://ntfy.sh";
91497
- const auth = config?.auth || { type: "none" };
91496
+ const { topic, ...rest } = config;
91497
+ if (!topic) {
91498
+ throw new Error("Topic required");
91499
+ }
91500
+ const URL = rest.baseURL ?? "https://ntfy.sh";
91501
+ const baseURL = `${URL}/${config.topic}`;
91502
+ const auth = rest.auth ?? { type: "none" };
91498
91503
  super({
91499
- ...config,
91504
+ ...rest,
91500
91505
  baseURL,
91501
91506
  auth
91502
91507
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cristian-israel/giganet_lib_conecta",
3
- "version": "1.0.63",
3
+ "version": "1.0.64",
4
4
  "description": "Database Connector Layer",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",