@natyapp/meta 1.5.2 → 1.5.4
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.ts +2 -2
- package/dist/index.js +2 -1
- package/dist/interfaces/IConfigureSdk.d.ts +4 -0
- package/dist/interfaces/IConfigureSdk.js +2 -0
- package/dist/useCases/configuration/index.d.ts +7 -0
- package/dist/useCases/configuration/index.js +10 -0
- package/dist/useCases/index.d.ts +2 -1
- package/dist/useCases/index.js +3 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { NatyMeta, Log, Webhook, Connection, Message } from "./useCases";
|
|
1
|
+
import { NatyMeta, Log, Webhook, Connection, Message, ConfigureSdk } from "./useCases";
|
|
2
2
|
import { WhatsappResponse } from "./useCases/message/whatsappResponse";
|
|
3
3
|
import { Button as CadastroIncorporado } from "./ui/Button";
|
|
4
4
|
import * as interfaces from "./interfaces";
|
|
5
5
|
import * as types from "./types";
|
|
6
6
|
import * as entities from "./Entities";
|
|
7
7
|
import * as elements from "./elements";
|
|
8
|
-
export { NatyMeta as default, WhatsappResponse, entities, elements, Connection, Message, Webhook, Log, interfaces, types, CadastroIncorporado, };
|
|
8
|
+
export { NatyMeta as default, WhatsappResponse, entities, elements, Connection, Message, Webhook, Log, interfaces, types, CadastroIncorporado, ConfigureSdk };
|
package/dist/index.js
CHANGED
|
@@ -23,13 +23,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.CadastroIncorporado = exports.types = exports.interfaces = exports.Log = exports.Webhook = exports.Message = exports.Connection = exports.elements = exports.entities = exports.WhatsappResponse = exports.default = void 0;
|
|
26
|
+
exports.ConfigureSdk = exports.CadastroIncorporado = exports.types = exports.interfaces = exports.Log = exports.Webhook = exports.Message = exports.Connection = exports.elements = exports.entities = exports.WhatsappResponse = exports.default = void 0;
|
|
27
27
|
const useCases_1 = require("./useCases");
|
|
28
28
|
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return useCases_1.NatyMeta; } });
|
|
29
29
|
Object.defineProperty(exports, "Log", { enumerable: true, get: function () { return useCases_1.Log; } });
|
|
30
30
|
Object.defineProperty(exports, "Webhook", { enumerable: true, get: function () { return useCases_1.Webhook; } });
|
|
31
31
|
Object.defineProperty(exports, "Connection", { enumerable: true, get: function () { return useCases_1.Connection; } });
|
|
32
32
|
Object.defineProperty(exports, "Message", { enumerable: true, get: function () { return useCases_1.Message; } });
|
|
33
|
+
Object.defineProperty(exports, "ConfigureSdk", { enumerable: true, get: function () { return useCases_1.ConfigureSdk; } });
|
|
33
34
|
const whatsappResponse_1 = require("./useCases/message/whatsappResponse");
|
|
34
35
|
Object.defineProperty(exports, "WhatsappResponse", { enumerable: true, get: function () { return whatsappResponse_1.WhatsappResponse; } });
|
|
35
36
|
const Button_1 = require("./ui/Button");
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IApiMetaConfig } from "../../interfaces/IApiMetaConfig";
|
|
2
|
+
import { IConfigureSdk } from "../../interfaces/IConfigureSdk";
|
|
3
|
+
declare class ConfigureSdk implements IConfigureSdk {
|
|
4
|
+
configure(config: IApiMetaConfig): void;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: ConfigureSdk;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const apiConfig_1 = require("../../configs/apiConfig");
|
|
4
|
+
class ConfigureSdk {
|
|
5
|
+
configure(config) {
|
|
6
|
+
console.log(process.env.API_META_OFFICIAL_WEBHOOK);
|
|
7
|
+
apiConfig_1.ApiConfig.getInstance, config;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.default = new ConfigureSdk();
|
package/dist/useCases/index.d.ts
CHANGED
|
@@ -3,4 +3,5 @@ import Connection from "./connection";
|
|
|
3
3
|
import Message from "./message";
|
|
4
4
|
import Webhook from "./webhook";
|
|
5
5
|
import Log from "./log";
|
|
6
|
-
|
|
6
|
+
import ConfigureSdk from "./configuration";
|
|
7
|
+
export { NatyMeta, Connection, Message, Webhook, Log, ConfigureSdk };
|
package/dist/useCases/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Log = exports.Webhook = exports.Message = exports.Connection = exports.NatyMeta = void 0;
|
|
6
|
+
exports.ConfigureSdk = exports.Log = exports.Webhook = exports.Message = exports.Connection = exports.NatyMeta = void 0;
|
|
7
7
|
const sdk_1 = require("./sdk");
|
|
8
8
|
Object.defineProperty(exports, "NatyMeta", { enumerable: true, get: function () { return sdk_1.NatyMeta; } });
|
|
9
9
|
const connection_1 = __importDefault(require("./connection"));
|
|
@@ -14,3 +14,5 @@ const webhook_1 = __importDefault(require("./webhook"));
|
|
|
14
14
|
exports.Webhook = webhook_1.default;
|
|
15
15
|
const log_1 = __importDefault(require("./log"));
|
|
16
16
|
exports.Log = log_1.default;
|
|
17
|
+
const configuration_1 = __importDefault(require("./configuration"));
|
|
18
|
+
exports.ConfigureSdk = configuration_1.default;
|