@nulvless/nulvless-js 0.2.2 → 0.3.0

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.cts CHANGED
@@ -17,7 +17,7 @@ interface NulvlessStorage {
17
17
  removeItem(key: string): Promise<void>;
18
18
  }
19
19
 
20
- type Language = 'en-US' | 'pt-BR' | 'pt-PT';
20
+ type Language = 'en-US' | 'pt-BR' | 'pt-PT' | 'es-419' | 'es-ES' | 'es-AR' | 'fr-FR' | 'fr-CA' | 'de-DE' | 'ko-KR';
21
21
  interface Phone {
22
22
  /** Country dial code — e.g. "+55" */
23
23
  country_code: string;
@@ -1952,7 +1952,7 @@ interface SendSMSParams {
1952
1952
  params?: Record<string, unknown>;
1953
1953
  }
1954
1954
  type NotificationChannel = 'email' | 'sms' | 'webhook';
1955
- type TemplateLanguage = 'en-US' | 'pt-BR' | 'pt-PT';
1955
+ type TemplateLanguage = Language;
1956
1956
  interface TemplateTranslation {
1957
1957
  language: TemplateLanguage;
1958
1958
  subject?: string;
package/dist/index.d.ts CHANGED
@@ -17,7 +17,7 @@ interface NulvlessStorage {
17
17
  removeItem(key: string): Promise<void>;
18
18
  }
19
19
 
20
- type Language = 'en-US' | 'pt-BR' | 'pt-PT';
20
+ type Language = 'en-US' | 'pt-BR' | 'pt-PT' | 'es-419' | 'es-ES' | 'es-AR' | 'fr-FR' | 'fr-CA' | 'de-DE' | 'ko-KR';
21
21
  interface Phone {
22
22
  /** Country dial code — e.g. "+55" */
23
23
  country_code: string;
@@ -1952,7 +1952,7 @@ interface SendSMSParams {
1952
1952
  params?: Record<string, unknown>;
1953
1953
  }
1954
1954
  type NotificationChannel = 'email' | 'sms' | 'webhook';
1955
- type TemplateLanguage = 'en-US' | 'pt-BR' | 'pt-PT';
1955
+ type TemplateLanguage = Language;
1956
1956
  interface TemplateTranslation {
1957
1957
  language: TemplateLanguage;
1958
1958
  subject?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nulvless/nulvless-js",
3
- "version": "0.2.2",
3
+ "version": "0.3.0",
4
4
  "description": "Official JavaScript SDK for the Nulvless platform",
5
5
  "keywords": [
6
6
  "nulvless",