sdk-sapi-promarketing 0.0.6 → 0.0.8

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
@@ -4152,7 +4152,7 @@ declare class TwoFactorAuthenticationService extends RequestBase {
4152
4152
  */
4153
4153
  getTwoFactorAuthenticationMethods: () => Promise<PlayerTwoFactorAuthenticationMethodsType>;
4154
4154
  /**
4155
- * Post Verifies Two Factor Authentication Code.
4155
+ * Post Verifies Two Factor Authentication Code By Player.
4156
4156
  *
4157
4157
  * @param data Represent the data to send in the body.
4158
4158
  * @returns These returns values PlayerTwoFactorAuthenticationVerifiesCodeType.
package/dist/index.d.ts CHANGED
@@ -4152,7 +4152,7 @@ declare class TwoFactorAuthenticationService extends RequestBase {
4152
4152
  */
4153
4153
  getTwoFactorAuthenticationMethods: () => Promise<PlayerTwoFactorAuthenticationMethodsType>;
4154
4154
  /**
4155
- * Post Verifies Two Factor Authentication Code.
4155
+ * Post Verifies Two Factor Authentication Code By Player.
4156
4156
  *
4157
4157
  * @param data Represent the data to send in the body.
4158
4158
  * @returns These returns values PlayerTwoFactorAuthenticationVerifiesCodeType.
package/dist/index.js CHANGED
@@ -2244,7 +2244,7 @@ var TwoFactorAuthenticationService = class extends RequestBase {
2244
2244
  false
2245
2245
  );
2246
2246
  /**
2247
- * Post Verifies Two Factor Authentication Code.
2247
+ * Post Verifies Two Factor Authentication Code By Player.
2248
2248
  *
2249
2249
  * @param data Represent the data to send in the body.
2250
2250
  * @returns These returns values PlayerTwoFactorAuthenticationVerifiesCodeType.