@tec.pet/tecpet-sdk 0.0.29 → 0.0.31

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/changelog.md CHANGED
@@ -1,8 +1,2 @@
1
- 🚀 Alterações desde v0.0.27:
2
- - feat: update package name to use @tec.pet scope for NPM organization (734e161)
3
- - chore: release v0.0.28 (095fd23)
4
- - feat: switch to NPM public with private repo - simplified approach (84d0b0f)
5
- - docs: add installation guide for different package managers including Bun limitations (bd8824f)
6
- - revert: configure GitHub Packages for fully private distribution (b21d6f6)
7
- - feat: configure GitHub Packages publishing for private repo distribution (ba17cd3)
8
- - github action (bcd1581)
1
+ 🚀 Alterações desde v0.0.30:
2
+ - github action (91bb997)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tec.pet/tecpet-sdk",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "description": "TecPet SDK for integration with TecPet services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,3 +0,0 @@
1
- export declare enum ChatbotChannelTypeEnum {
2
- WHATSAPP = "WHATSAPP"
3
- }
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChatbotChannelTypeEnum = void 0;
4
- var ChatbotChannelTypeEnum;
5
- (function (ChatbotChannelTypeEnum) {
6
- ChatbotChannelTypeEnum["WHATSAPP"] = "WHATSAPP";
7
- })(ChatbotChannelTypeEnum || (exports.ChatbotChannelTypeEnum = ChatbotChannelTypeEnum = {}));
@@ -1,5 +0,0 @@
1
- export declare enum ChatbotModeEnum {
2
- DISABLED = "DISABLED",
3
- AUTO_REPLY = "AUTO_REPLY",
4
- SELF_SERVICE = "SELF_SERVICE"
5
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChatbotModeEnum = void 0;
4
- var ChatbotModeEnum;
5
- (function (ChatbotModeEnum) {
6
- ChatbotModeEnum["DISABLED"] = "DISABLED";
7
- ChatbotModeEnum["AUTO_REPLY"] = "AUTO_REPLY";
8
- ChatbotModeEnum["SELF_SERVICE"] = "SELF_SERVICE";
9
- })(ChatbotModeEnum || (exports.ChatbotModeEnum = ChatbotModeEnum = {}));
@@ -1,4 +0,0 @@
1
- export declare enum ChatbotPlatformTypeEnum {
2
- ZAPI = "ZAPI",
3
- TYPEBOT = "TYPEBOT"
4
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChatbotPlatformTypeEnum = void 0;
4
- var ChatbotPlatformTypeEnum;
5
- (function (ChatbotPlatformTypeEnum) {
6
- ChatbotPlatformTypeEnum["ZAPI"] = "ZAPI";
7
- ChatbotPlatformTypeEnum["TYPEBOT"] = "TYPEBOT";
8
- })(ChatbotPlatformTypeEnum || (exports.ChatbotPlatformTypeEnum = ChatbotPlatformTypeEnum = {}));
@@ -1,45 +0,0 @@
1
- #!/bin/bash
2
-
3
- ## Caminho absoluto do SDK original
4
- #SDK_SOURCE_DIR="$(cd "$(dirname "$0")/.." && pwd)"
5
- #SDK_BUILD_DIR="$SDK_SOURCE_DIR/dist"
6
- #TEMP_SDK_DIR="$SDK_SOURCE_DIR/../temp-tecpet-sdk"
7
- #
8
- ## 1. Builda o SDK
9
- #echo "🏗️ Buildando o SDK..."
10
- #npm run build
11
- #
12
- ## 2. Prepara o diretório temporário contendo apenas o build e o package.json
13
- #echo "🧼 Preparando pacote isolado para link..."
14
- #rm -rf "$TEMP_SDK_DIR"
15
- #mkdir "$TEMP_SDK_DIR"
16
- #cp -r "$SDK_BUILD_DIR" "$TEMP_SDK_DIR/dist"
17
- #cp "$SDK_SOURCE_DIR/package.json" "$TEMP_SDK_DIR/package.json"
18
- #
19
- ## 3. Ajusta o package.json para apontar corretamente pro build
20
- #sed -i '' 's|"main":.*|"main": "dist/index.js",|' "$TEMP_SDK_DIR/package.json"
21
- #sed -i '' 's|"types":.*|"types": "dist/index.d.ts",|' "$TEMP_SDK_DIR/package.json"
22
- #
23
- ## 4. Cria o link global a partir do build isolado
24
- #echo "🔗 Criando link a partir do dist isolado..."
25
- #cd "$TEMP_SDK_DIR" || exit 1
26
- #npm link
27
-
28
- # 5. Linka nos projetos consumidores
29
- projects=(
30
- "/Users/pablo/workspace/tecpet/communication-gateway"
31
- "/Users/pablo/workspace/tecpet/botflow"
32
- )
33
-
34
- for project in "${projects[@]}"; do
35
- if [ -d "$project" ]; then
36
- echo "🔁 Linkando SDK em $project"
37
- cd "$project" || continue
38
- npm link tecpet-sdk
39
- cd - > /dev/null
40
- else
41
- echo "⚠️ Projeto não encontrado: $project"
42
- fi
43
- done
44
-
45
- echo "✅ Link concluído com sucesso."