sdk-sapi-promarketing 0.0.7 → 0.0.9

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/README.md CHANGED
@@ -93,6 +93,52 @@ import type { QueryType, PlayerType } from "sdk-sapi-promarketing";
93
93
 
94
94
  Ajusta valores según el entorno (desarrollo / producción).
95
95
 
96
+ ## Error `Cannot find module 'sdk-sapi-promarketing'` (TS2307)
97
+
98
+ 1. **Instala el paquete** en el proyecto de la app (no solo en el monorepo raíz si usas workspaces):
99
+
100
+ ```bash
101
+ pnpm add sdk-sapi-promarketing
102
+ ```
103
+
104
+ 2. **Comprueba** que aparece en `package.json` de la app:
105
+
106
+ ```json
107
+ "dependencies": {
108
+ "sdk-sapi-promarketing": "^0.0.7"
109
+ }
110
+ ```
111
+
112
+ 3. **Reinstala** dependencias y reinicia el servidor de TypeScript del IDE:
113
+
114
+ ```bash
115
+ pnpm install
116
+ ```
117
+
118
+ En VS Code/Cursor: `Ctrl+Shift+P` → **TypeScript: Restart TS Server**.
119
+
120
+ 4. **Import correcto** (nombre exacto, sin `sdk-sapi2`):
121
+
122
+ ```typescript
123
+ import { SdkSAPI, type SdkSapiContext } from "sdk-sapi-promarketing";
124
+ ```
125
+
126
+ 5. **Monorepo (pnpm):** declara la dependencia en el `package.json` del paquete/app que importa el SDK, no solo en la raíz, salvo que uses `dependencies` con protocolo de workspace.
127
+
128
+ 6. **`tsconfig.json` de la app** — usa al menos:
129
+
130
+ ```json
131
+ {
132
+ "compilerOptions": {
133
+ "moduleResolution": "bundler",
134
+ "module": "ESNext",
135
+ "skipLibCheck": true
136
+ }
137
+ }
138
+ ```
139
+
140
+ (o `"moduleResolution": "node16"` / `"nodenext"`).
141
+
96
142
  ## Desarrollo del paquete (mantenedores)
97
143
 
98
144
  **Publicar en npm:** ver [docs/PUBLISHING.md](./docs/PUBLISHING.md).
package/dist/index.d.mts CHANGED
@@ -3721,7 +3721,7 @@ declare class SelfLimitationService extends RequestBase {
3721
3721
  * @param typeSelfLimitation - The type of self-limitation to cancel.
3722
3722
  * @returns A promise with the server response about the cancellation status.
3723
3723
  */
3724
- postSelfLimitationCancel: (selfLimitation: SelfLimitationEnum, typeSelfLimitation: TypeSelfLimitationEnum) => Promise<CommonMessageType>;
3724
+ postSelfLimitationCancel: (selfLimitation: SelfLimitationEnum, typeSelfLimitation: TypeSelfLimitationEnum | null) => Promise<CommonMessageType>;
3725
3725
  /**
3726
3726
  * Creates or updates a self-limitation configuration for the given path.
3727
3727
  *
package/dist/index.d.ts CHANGED
@@ -3721,7 +3721,7 @@ declare class SelfLimitationService extends RequestBase {
3721
3721
  * @param typeSelfLimitation - The type of self-limitation to cancel.
3722
3722
  * @returns A promise with the server response about the cancellation status.
3723
3723
  */
3724
- postSelfLimitationCancel: (selfLimitation: SelfLimitationEnum, typeSelfLimitation: TypeSelfLimitationEnum) => Promise<CommonMessageType>;
3724
+ postSelfLimitationCancel: (selfLimitation: SelfLimitationEnum, typeSelfLimitation: TypeSelfLimitationEnum | null) => Promise<CommonMessageType>;
3725
3725
  /**
3726
3726
  * Creates or updates a self-limitation configuration for the given path.
3727
3727
  *