planvortex 0.20.0 → 0.21.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
@@ -1,5 +1,5 @@
1
- import { P as Paginated, S as SocialNetwork, C as ConnectLink, a as ConnectResult, E as EnableResult, b as ConnectSession, A as Account, c as AccountMetrics, D as Destination, d as PublishSettings, e as PersistentMenu, f as Dashboard, M as MetricName, g as DashboardMetricsResult, h as PublicationsSummaryResult, T as TopPublicationsResult, i as PublicationsStatsResult, j as PlanUse, k as Publication, l as AiPlanResultsSort, m as PlannerTemplateName, n as AiPlanCreateRequest, o as AiPlanCreateResult, p as AiPlan, q as AiPlanResults, r as ClientApp, s as ClientAppInput, t as SocialCapabilities, u as CommentActions, v as SocialLimits, w as PublicationLimits, x as AspectRatiosByNetwork, y as PlannerTemplate, z as CommentNetwork, B as Comment, F as CommentThread, G as CommentReplyResult, H as ContactExtraData, I as Contact, J as ContactCreate, K as ContactUpdate, L as IntegrationProviderName, N as IntegrationProvider, O as Integration, Q as IntegrationConnectRequest, R as IntegrationUpdate, U as IntegrationPickerConfig, V as IntegrationCatalogPage, W as MessageTemplate, X as Conversation, Y as ConversationTotals, Z as Message, _ as MessageInput, $ as Client, a0 as Organization, a1 as AiSettings, a2 as ClientWithOrganizations, a3 as AccountSelection, a4 as PlanData, a5 as PlanUseData, a6 as ConnectToken, a7 as AiContext, a8 as SocialCredentialsInput, a9 as Product, aa as ProductInput, ab as ProductCatalog, ac as ProductCatalogInput, ad as PublicationInput, ae as PublicationState, af as PublicationStats, ag as PublicationStatsHistory, ah as Upload } from './index-BQPQczjR.cjs';
2
- export { ai as AccountError, aj as AccountMetricRow, ak as AccountStateChange, al as AccountWebhookChangeBase, am as AccountWithError, an as AiImageOrigin, ao as AiPlanCostEstimate, ap as AiPlanDestination, aq as AiPlanError, ar as AiPlanNotice, as as AiPlanOptions, at as AiPlanOptionsInput, au as AiPlanResult, av as AiPlanResultsGroup, aw as AiPlanResultsTemplateGroup, ax as AiPlanSource, ay as AiPlanSourceImageInput, az as AiPlanSourceInput, aA as AiPlanSourceProduct, aB as AiPlanState, aC as ApiErrorBody, aD as AspectRatios, aE as AuthError, aF as ClientPlan, aG as CommentAuthor, aH as CommentChange, aI as ConnectSessionAccount, aJ as ContactChannel, aK as ContactError, aL as DashboardAiPlanRef, aM as DashboardPublicationRef, aN as DashboardRange, aO as EngagementBase, aP as FileError, aQ as FileFormat, aR as FileProperties, aS as FileType, aT as IntegrationCatalogProduct, aU as IntegrationConfig, aV as IntegrationError, aW as IntegrationErrorChange, aX as IntegrationFormField, aY as MessageChange, aZ as MessageEchoChange, a_ as MessageOptions, a$ as MessageType, b0 as MessagingError, b1 as MetricRow, b2 as NO_ERROR_CODE, b3 as OpenApiComponents, b4 as OpenApiOperations, b5 as OpenApiPaths, b6 as OpenApiWebhooks, b7 as OpenEnum, b8 as OrganizationError, b9 as PLANVORTEX_ERROR_RANGES, ba as PlanLimitError, bb as PlanVortexAuthenticationError, bc as PlanVortexConfigError, bd as PlanVortexConnectionError, be as PlanVortexError, bf as PlanVortexErrorOptions, bg as PlanVortexErrorRange, bh as PlannerTemplateField, bi as PlannerTemplateFieldType, bj as ProductError, bk as PublicationAiGenerated, bl as PublicationDestination, bm as PublicationError, bn as PublicationErrorDetail, bo as PublicationMetrics, bp as PublicationPending, bq as PublicationStatsPoint, br as PublicationType, bs as PublicationsSummary, bt as RssConfig, bu as SocialAuthorizationMethod, bv as SocialCredentials, bw as SocialIdentifier, bx as SocialIdentifierInput, by as SocialLimitsMap, bz as TOKEN_ERROR_CODES, bA as TopPublication, bB as UnknownWebhookChange, bC as UserError, bD as WebhookAlgorithm, bE as WebhookChange, bF as WebhookEvent, bG as WithAccount, bH as WithPublication, bI as WooCommerceConnectRequest, bJ as account, bK as accountId, bL as errorFamilyForCode, bM as isPlanVortexError, bN as isTokenError, bO as messageContact, bP as messageContactId, bQ as messageDirection, bR as messageFileIds, bS as messageFiles, bT as publication, bU as publicationId } from './index-BQPQczjR.cjs';
1
+ import { P as Paginated, S as SocialNetwork, C as ConnectLink, a as ConnectResult, E as EnableResult, b as ConnectSession, A as Account, c as AccountMetrics, D as Destination, d as PublishSettings, e as PersistentMenu, f as Dashboard, M as MetricName, g as DashboardMetricsResult, h as PublicationsSummaryResult, T as TopPublicationsResult, i as PublicationsStatsResult, j as PlanUse, k as Publication, l as AiPlanResultsSort, m as PlannerTemplateName, n as AiPlanCreateRequest, o as AiPlanCreateResult, p as AiPlan, q as AiPlanResults, r as ClientApp, s as ClientAppInput, t as SocialCapabilities, u as CommentActions, v as SocialLimits, w as PublicationLimits, x as AspectRatiosByNetwork, y as PlannerTemplate, z as CommentNetwork, B as Comment, F as CommentThread, G as CommentReplyResult, H as ContactExtraData, I as Contact, J as ContactCreate, K as ContactUpdate, L as IntegrationProviderName, N as IntegrationProvider, O as Integration, Q as IntegrationConnectRequest, R as IntegrationUpdate, U as IntegrationPickerConfig, V as IntegrationCatalogPage, W as MessageTemplate, X as Conversation, Y as ConversationTotals, Z as Message, _ as MessageInput, $ as Client, a0 as Organization, a1 as AiSettings, a2 as ClientWithOrganizations, a3 as AccountSelection, a4 as PlanData, a5 as PlanUseData, a6 as ConnectToken, a7 as AiContext, a8 as SocialCredentialsInput, a9 as Product, aa as ProductInput, ab as ProductCatalog, ac as ProductCatalogInput, ad as PublicationInput, ae as PublicationState, af as PublicationStats, ag as PublicationStatsHistory, ah as Upload } from './index-BsE8URFA.cjs';
2
+ export { ai as AccountError, aj as AccountMetricRow, ak as AccountStateChange, al as AccountWebhookChangeBase, am as AccountWithError, an as AiImageOrigin, ao as AiPlanCostEstimate, ap as AiPlanDestination, aq as AiPlanError, ar as AiPlanNotice, as as AiPlanOptions, at as AiPlanOptionsInput, au as AiPlanResult, av as AiPlanResultsGroup, aw as AiPlanResultsTemplateGroup, ax as AiPlanSource, ay as AiPlanSourceImageInput, az as AiPlanSourceInput, aA as AiPlanSourceProduct, aB as AiPlanState, aC as ApiErrorBody, aD as AspectRatios, aE as AuthError, aF as ClientPlan, aG as CommentAuthor, aH as CommentChange, aI as ConnectSessionAccount, aJ as ContactChannel, aK as ContactError, aL as DashboardAiPlanRef, aM as DashboardPublicationRef, aN as DashboardRange, aO as EngagementBase, aP as FileError, aQ as FileFormat, aR as FileProperties, aS as FileType, aT as IntegrationCatalogProduct, aU as IntegrationConfig, aV as IntegrationError, aW as IntegrationErrorChange, aX as IntegrationFormField, aY as MessageChange, aZ as MessageEchoChange, a_ as MessageOptions, a$ as MessageType, b0 as MessagingError, b1 as MetricRow, b2 as NO_ERROR_CODE, b3 as OpenApiComponents, b4 as OpenApiOperations, b5 as OpenApiPaths, b6 as OpenApiWebhooks, b7 as OpenEnum, b8 as OrganizationError, b9 as PLANVORTEX_ERROR_RANGES, ba as PlanLimitError, bb as PlanVortexAuthenticationError, bc as PlanVortexConfigError, bd as PlanVortexConnectionError, be as PlanVortexError, bf as PlanVortexErrorOptions, bg as PlanVortexErrorRange, bh as PlannerTemplateField, bi as PlannerTemplateFieldType, bj as ProductError, bk as PublicationAiGenerated, bl as PublicationDestination, bm as PublicationError, bn as PublicationErrorDetail, bo as PublicationMetrics, bp as PublicationPending, bq as PublicationStatsPoint, br as PublicationType, bs as PublicationsSummary, bt as RssConfig, bu as SocialAuthorizationMethod, bv as SocialCredentials, bw as SocialIdentifier, bx as SocialIdentifierInput, by as SocialLimitsMap, bz as TOKEN_ERROR_CODES, bA as TopPublication, bB as UnknownWebhookChange, bC as UserError, bD as WebhookAlgorithm, bE as WebhookChange, bF as WebhookEvent, bG as WithAccount, bH as WithPublication, bI as WooCommerceConnectRequest, bJ as account, bK as accountId, bL as errorFamilyForCode, bM as isPlanVortexError, bN as isTokenError, bO as messageContact, bP as messageContactId, bQ as messageDirection, bR as messageFileIds, bS as messageFiles, bT as publication, bU as publicationId } from './index-BsE8URFA.cjs';
3
3
 
4
4
  /**
5
5
  * Las dos constantes que todo lo demás necesita. Viven aparte de `index.ts` para que `client.ts`
@@ -15,7 +15,7 @@ declare const PLANVORTEX_API_URL = "https://api.planvortex.com/v1.0.0";
15
15
  * de ejecución obliga a empaquetarlo y se rompe distinto en ESM y en CJS. La mantiene sincronizada
16
16
  * un test.
17
17
  */
18
- declare const VERSION = "0.20.0";
18
+ declare const VERSION = "0.21.0";
19
19
 
20
20
  /** `fetch` con la firma que usamos. Se puede sustituir en tests o para meter un proxy. */
21
21
  type FetchLike = (input: string, init: RequestInit) => Promise<Response>;
@@ -198,7 +198,7 @@ declare const MAX_PAGES = 10000;
198
198
  * `catalog.socialCapabilities()`, aplicadas en el servidor: es la forma de pedir "las cuentas con
199
199
  * las que puedo publicar" sin mantener tu propia tabla de qué red hace qué.
200
200
  */
201
- type AccountCapability = "publications" | "messages" | "products" | "webhooks" | "persistent_menu" | "comments";
201
+ type AccountCapability = "publications" | "messages" | "products" | "webhooks" | "persistent_menu" | "comments" | "statistics";
202
202
  interface AccountListOptions extends PageOptions {
203
203
  /** Búsqueda libre sobre el nombre y el usuario de la cuenta. */
204
204
  name?: string | undefined;
@@ -208,7 +208,9 @@ interface AccountListOptions extends PageOptions {
208
208
  accounts?: readonly string[] | undefined;
209
209
  /**
210
210
  * Sólo las cuentas cuya red sabe hacer esto. `comments` mira además la cuenta: deja fuera los
211
- * perfiles personales de LinkedIn, que no tienen bandeja aunque las páginas sí.
211
+ * perfiles personales de LinkedIn, que no tienen bandeja aunque las páginas sí. `statistics`
212
+ * deja fuera las redes de las que PlanVortex no lee ninguna métrica (hoy WhatsApp): son las
213
+ * cuentas que tiene sentido ofrecer en una pantalla de estadísticas.
212
214
  */
213
215
  capability?: AccountCapability | undefined;
214
216
  }
@@ -916,8 +918,8 @@ declare class CatalogResource extends Resource {
916
918
  */
917
919
  allowedSocialMessages(options?: RequestOptions): Promise<SocialNetwork[]>;
918
920
  /**
919
- * La matriz red → qué sabe hacer: publicar, mensajes, productos, webhooks, menú persistente y
920
- * comentarios.
921
+ * La matriz red → qué sabe hacer: publicar, mensajes, productos, webhooks, menú persistente,
922
+ * comentarios y estadísticas (`statistics`, hoy todas menos WhatsApp).
921
923
  *
922
924
  * Es lo que evita ofrecer una cuenta en una pantalla que su red no soporta — WhatsApp en el
923
925
  * compositor, LinkedIn en el chat.
@@ -1215,6 +1217,9 @@ declare class CommentsResource extends Resource {
1215
1217
  * lo explica y {@link ContactsResource.merge} lo evita.
1216
1218
  * - **Borrar un contacto borra también sus mensajes**, y borrar los de la organización los borra
1217
1219
  * todos. No hay papelera.
1220
+ * - **En WhatsApp un contacto puede no tener teléfono.** Quien usa nombre de usuario puede no
1221
+ * darnos su número: su `external_identifier` es entonces su BSUID (`ES.1349...`, el mismo valor
1222
+ * que `user_id`), que no se enseña como si fuera un teléfono. Ver el tipo `SocialIdentifier`.
1218
1223
  * - **Exige plan de pago** (error 516).
1219
1224
  */
1220
1225
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as Paginated, S as SocialNetwork, C as ConnectLink, a as ConnectResult, E as EnableResult, b as ConnectSession, A as Account, c as AccountMetrics, D as Destination, d as PublishSettings, e as PersistentMenu, f as Dashboard, M as MetricName, g as DashboardMetricsResult, h as PublicationsSummaryResult, T as TopPublicationsResult, i as PublicationsStatsResult, j as PlanUse, k as Publication, l as AiPlanResultsSort, m as PlannerTemplateName, n as AiPlanCreateRequest, o as AiPlanCreateResult, p as AiPlan, q as AiPlanResults, r as ClientApp, s as ClientAppInput, t as SocialCapabilities, u as CommentActions, v as SocialLimits, w as PublicationLimits, x as AspectRatiosByNetwork, y as PlannerTemplate, z as CommentNetwork, B as Comment, F as CommentThread, G as CommentReplyResult, H as ContactExtraData, I as Contact, J as ContactCreate, K as ContactUpdate, L as IntegrationProviderName, N as IntegrationProvider, O as Integration, Q as IntegrationConnectRequest, R as IntegrationUpdate, U as IntegrationPickerConfig, V as IntegrationCatalogPage, W as MessageTemplate, X as Conversation, Y as ConversationTotals, Z as Message, _ as MessageInput, $ as Client, a0 as Organization, a1 as AiSettings, a2 as ClientWithOrganizations, a3 as AccountSelection, a4 as PlanData, a5 as PlanUseData, a6 as ConnectToken, a7 as AiContext, a8 as SocialCredentialsInput, a9 as Product, aa as ProductInput, ab as ProductCatalog, ac as ProductCatalogInput, ad as PublicationInput, ae as PublicationState, af as PublicationStats, ag as PublicationStatsHistory, ah as Upload } from './index-BQPQczjR.js';
2
- export { ai as AccountError, aj as AccountMetricRow, ak as AccountStateChange, al as AccountWebhookChangeBase, am as AccountWithError, an as AiImageOrigin, ao as AiPlanCostEstimate, ap as AiPlanDestination, aq as AiPlanError, ar as AiPlanNotice, as as AiPlanOptions, at as AiPlanOptionsInput, au as AiPlanResult, av as AiPlanResultsGroup, aw as AiPlanResultsTemplateGroup, ax as AiPlanSource, ay as AiPlanSourceImageInput, az as AiPlanSourceInput, aA as AiPlanSourceProduct, aB as AiPlanState, aC as ApiErrorBody, aD as AspectRatios, aE as AuthError, aF as ClientPlan, aG as CommentAuthor, aH as CommentChange, aI as ConnectSessionAccount, aJ as ContactChannel, aK as ContactError, aL as DashboardAiPlanRef, aM as DashboardPublicationRef, aN as DashboardRange, aO as EngagementBase, aP as FileError, aQ as FileFormat, aR as FileProperties, aS as FileType, aT as IntegrationCatalogProduct, aU as IntegrationConfig, aV as IntegrationError, aW as IntegrationErrorChange, aX as IntegrationFormField, aY as MessageChange, aZ as MessageEchoChange, a_ as MessageOptions, a$ as MessageType, b0 as MessagingError, b1 as MetricRow, b2 as NO_ERROR_CODE, b3 as OpenApiComponents, b4 as OpenApiOperations, b5 as OpenApiPaths, b6 as OpenApiWebhooks, b7 as OpenEnum, b8 as OrganizationError, b9 as PLANVORTEX_ERROR_RANGES, ba as PlanLimitError, bb as PlanVortexAuthenticationError, bc as PlanVortexConfigError, bd as PlanVortexConnectionError, be as PlanVortexError, bf as PlanVortexErrorOptions, bg as PlanVortexErrorRange, bh as PlannerTemplateField, bi as PlannerTemplateFieldType, bj as ProductError, bk as PublicationAiGenerated, bl as PublicationDestination, bm as PublicationError, bn as PublicationErrorDetail, bo as PublicationMetrics, bp as PublicationPending, bq as PublicationStatsPoint, br as PublicationType, bs as PublicationsSummary, bt as RssConfig, bu as SocialAuthorizationMethod, bv as SocialCredentials, bw as SocialIdentifier, bx as SocialIdentifierInput, by as SocialLimitsMap, bz as TOKEN_ERROR_CODES, bA as TopPublication, bB as UnknownWebhookChange, bC as UserError, bD as WebhookAlgorithm, bE as WebhookChange, bF as WebhookEvent, bG as WithAccount, bH as WithPublication, bI as WooCommerceConnectRequest, bJ as account, bK as accountId, bL as errorFamilyForCode, bM as isPlanVortexError, bN as isTokenError, bO as messageContact, bP as messageContactId, bQ as messageDirection, bR as messageFileIds, bS as messageFiles, bT as publication, bU as publicationId } from './index-BQPQczjR.js';
1
+ import { P as Paginated, S as SocialNetwork, C as ConnectLink, a as ConnectResult, E as EnableResult, b as ConnectSession, A as Account, c as AccountMetrics, D as Destination, d as PublishSettings, e as PersistentMenu, f as Dashboard, M as MetricName, g as DashboardMetricsResult, h as PublicationsSummaryResult, T as TopPublicationsResult, i as PublicationsStatsResult, j as PlanUse, k as Publication, l as AiPlanResultsSort, m as PlannerTemplateName, n as AiPlanCreateRequest, o as AiPlanCreateResult, p as AiPlan, q as AiPlanResults, r as ClientApp, s as ClientAppInput, t as SocialCapabilities, u as CommentActions, v as SocialLimits, w as PublicationLimits, x as AspectRatiosByNetwork, y as PlannerTemplate, z as CommentNetwork, B as Comment, F as CommentThread, G as CommentReplyResult, H as ContactExtraData, I as Contact, J as ContactCreate, K as ContactUpdate, L as IntegrationProviderName, N as IntegrationProvider, O as Integration, Q as IntegrationConnectRequest, R as IntegrationUpdate, U as IntegrationPickerConfig, V as IntegrationCatalogPage, W as MessageTemplate, X as Conversation, Y as ConversationTotals, Z as Message, _ as MessageInput, $ as Client, a0 as Organization, a1 as AiSettings, a2 as ClientWithOrganizations, a3 as AccountSelection, a4 as PlanData, a5 as PlanUseData, a6 as ConnectToken, a7 as AiContext, a8 as SocialCredentialsInput, a9 as Product, aa as ProductInput, ab as ProductCatalog, ac as ProductCatalogInput, ad as PublicationInput, ae as PublicationState, af as PublicationStats, ag as PublicationStatsHistory, ah as Upload } from './index-BsE8URFA.js';
2
+ export { ai as AccountError, aj as AccountMetricRow, ak as AccountStateChange, al as AccountWebhookChangeBase, am as AccountWithError, an as AiImageOrigin, ao as AiPlanCostEstimate, ap as AiPlanDestination, aq as AiPlanError, ar as AiPlanNotice, as as AiPlanOptions, at as AiPlanOptionsInput, au as AiPlanResult, av as AiPlanResultsGroup, aw as AiPlanResultsTemplateGroup, ax as AiPlanSource, ay as AiPlanSourceImageInput, az as AiPlanSourceInput, aA as AiPlanSourceProduct, aB as AiPlanState, aC as ApiErrorBody, aD as AspectRatios, aE as AuthError, aF as ClientPlan, aG as CommentAuthor, aH as CommentChange, aI as ConnectSessionAccount, aJ as ContactChannel, aK as ContactError, aL as DashboardAiPlanRef, aM as DashboardPublicationRef, aN as DashboardRange, aO as EngagementBase, aP as FileError, aQ as FileFormat, aR as FileProperties, aS as FileType, aT as IntegrationCatalogProduct, aU as IntegrationConfig, aV as IntegrationError, aW as IntegrationErrorChange, aX as IntegrationFormField, aY as MessageChange, aZ as MessageEchoChange, a_ as MessageOptions, a$ as MessageType, b0 as MessagingError, b1 as MetricRow, b2 as NO_ERROR_CODE, b3 as OpenApiComponents, b4 as OpenApiOperations, b5 as OpenApiPaths, b6 as OpenApiWebhooks, b7 as OpenEnum, b8 as OrganizationError, b9 as PLANVORTEX_ERROR_RANGES, ba as PlanLimitError, bb as PlanVortexAuthenticationError, bc as PlanVortexConfigError, bd as PlanVortexConnectionError, be as PlanVortexError, bf as PlanVortexErrorOptions, bg as PlanVortexErrorRange, bh as PlannerTemplateField, bi as PlannerTemplateFieldType, bj as ProductError, bk as PublicationAiGenerated, bl as PublicationDestination, bm as PublicationError, bn as PublicationErrorDetail, bo as PublicationMetrics, bp as PublicationPending, bq as PublicationStatsPoint, br as PublicationType, bs as PublicationsSummary, bt as RssConfig, bu as SocialAuthorizationMethod, bv as SocialCredentials, bw as SocialIdentifier, bx as SocialIdentifierInput, by as SocialLimitsMap, bz as TOKEN_ERROR_CODES, bA as TopPublication, bB as UnknownWebhookChange, bC as UserError, bD as WebhookAlgorithm, bE as WebhookChange, bF as WebhookEvent, bG as WithAccount, bH as WithPublication, bI as WooCommerceConnectRequest, bJ as account, bK as accountId, bL as errorFamilyForCode, bM as isPlanVortexError, bN as isTokenError, bO as messageContact, bP as messageContactId, bQ as messageDirection, bR as messageFileIds, bS as messageFiles, bT as publication, bU as publicationId } from './index-BsE8URFA.js';
3
3
 
4
4
  /**
5
5
  * Las dos constantes que todo lo demás necesita. Viven aparte de `index.ts` para que `client.ts`
@@ -15,7 +15,7 @@ declare const PLANVORTEX_API_URL = "https://api.planvortex.com/v1.0.0";
15
15
  * de ejecución obliga a empaquetarlo y se rompe distinto en ESM y en CJS. La mantiene sincronizada
16
16
  * un test.
17
17
  */
18
- declare const VERSION = "0.20.0";
18
+ declare const VERSION = "0.21.0";
19
19
 
20
20
  /** `fetch` con la firma que usamos. Se puede sustituir en tests o para meter un proxy. */
21
21
  type FetchLike = (input: string, init: RequestInit) => Promise<Response>;
@@ -198,7 +198,7 @@ declare const MAX_PAGES = 10000;
198
198
  * `catalog.socialCapabilities()`, aplicadas en el servidor: es la forma de pedir "las cuentas con
199
199
  * las que puedo publicar" sin mantener tu propia tabla de qué red hace qué.
200
200
  */
201
- type AccountCapability = "publications" | "messages" | "products" | "webhooks" | "persistent_menu" | "comments";
201
+ type AccountCapability = "publications" | "messages" | "products" | "webhooks" | "persistent_menu" | "comments" | "statistics";
202
202
  interface AccountListOptions extends PageOptions {
203
203
  /** Búsqueda libre sobre el nombre y el usuario de la cuenta. */
204
204
  name?: string | undefined;
@@ -208,7 +208,9 @@ interface AccountListOptions extends PageOptions {
208
208
  accounts?: readonly string[] | undefined;
209
209
  /**
210
210
  * Sólo las cuentas cuya red sabe hacer esto. `comments` mira además la cuenta: deja fuera los
211
- * perfiles personales de LinkedIn, que no tienen bandeja aunque las páginas sí.
211
+ * perfiles personales de LinkedIn, que no tienen bandeja aunque las páginas sí. `statistics`
212
+ * deja fuera las redes de las que PlanVortex no lee ninguna métrica (hoy WhatsApp): son las
213
+ * cuentas que tiene sentido ofrecer en una pantalla de estadísticas.
212
214
  */
213
215
  capability?: AccountCapability | undefined;
214
216
  }
@@ -916,8 +918,8 @@ declare class CatalogResource extends Resource {
916
918
  */
917
919
  allowedSocialMessages(options?: RequestOptions): Promise<SocialNetwork[]>;
918
920
  /**
919
- * La matriz red → qué sabe hacer: publicar, mensajes, productos, webhooks, menú persistente y
920
- * comentarios.
921
+ * La matriz red → qué sabe hacer: publicar, mensajes, productos, webhooks, menú persistente,
922
+ * comentarios y estadísticas (`statistics`, hoy todas menos WhatsApp).
921
923
  *
922
924
  * Es lo que evita ofrecer una cuenta en una pantalla que su red no soporta — WhatsApp en el
923
925
  * compositor, LinkedIn en el chat.
@@ -1215,6 +1217,9 @@ declare class CommentsResource extends Resource {
1215
1217
  * lo explica y {@link ContactsResource.merge} lo evita.
1216
1218
  * - **Borrar un contacto borra también sus mensajes**, y borrar los de la organización los borra
1217
1219
  * todos. No hay papelera.
1220
+ * - **En WhatsApp un contacto puede no tener teléfono.** Quien usa nombre de usuario puede no
1221
+ * darnos su número: su `external_identifier` es entonces su BSUID (`ES.1349...`, el mismo valor
1222
+ * que `user_id`), que no se enseña como si fuera un teléfono. Ver el tipo `SocialIdentifier`.
1218
1223
  * - **Exige plan de pago** (error 516).
1219
1224
  */
1220
1225
 
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { createErrorFromResponse, NO_ERROR_CODE, PlanVortexError, PlanVortexConfigError, isTokenError, PlanVortexConnectionError, PlanVortexAuthenticationError, isPlanVortexError } from './chunk-DRVCK5JO.js';
2
- export { AccountError, AiPlanError, AuthError, ContactError, FileError, IntegrationError, MessagingError, NO_ERROR_CODE, OrganizationError, PLANVORTEX_ERROR_RANGES, PlanLimitError, PlanVortexAuthenticationError, PlanVortexConfigError, PlanVortexConnectionError, PlanVortexError, ProductError, PublicationError, TOKEN_ERROR_CODES, UserError, errorFamilyForCode, isPlanVortexError, isTokenError } from './chunk-DRVCK5JO.js';
1
+ import { createErrorFromResponse, NO_ERROR_CODE, PlanVortexError, PlanVortexConfigError, isTokenError, PlanVortexConnectionError, PlanVortexAuthenticationError, isPlanVortexError } from './chunk-A77VAAQH.js';
2
+ export { AccountError, AiPlanError, AuthError, ContactError, FileError, IntegrationError, MessagingError, NO_ERROR_CODE, OrganizationError, PLANVORTEX_ERROR_RANGES, PlanLimitError, PlanVortexAuthenticationError, PlanVortexConfigError, PlanVortexConnectionError, PlanVortexError, ProductError, PublicationError, TOKEN_ERROR_CODES, UserError, errorFamilyForCode, isPlanVortexError, isTokenError } from './chunk-A77VAAQH.js';
3
3
  import { basename } from 'path';
4
4
 
5
5
  // src/version.ts
6
6
  var PLANVORTEX_API_URL = "https://api.planvortex.com/v1.0.0";
7
- var VERSION = "0.20.0";
7
+ var VERSION = "0.21.0";
8
8
 
9
9
  // src/core/auth.ts
10
10
  var TOKEN_REFRESH_MARGIN_MS = 6e4;
@@ -1174,8 +1174,8 @@ var CatalogResource = class extends Resource {
1174
1174
  );
1175
1175
  }
1176
1176
  /**
1177
- * La matriz red → qué sabe hacer: publicar, mensajes, productos, webhooks, menú persistente y
1178
- * comentarios.
1177
+ * La matriz red → qué sabe hacer: publicar, mensajes, productos, webhooks, menú persistente,
1178
+ * comentarios y estadísticas (`statistics`, hoy todas menos WhatsApp).
1179
1179
  *
1180
1180
  * Es lo que evita ofrecer una cuenta en una pantalla que su red no soporta — WhatsApp en el
1181
1181
  * compositor, LinkedIn en el chat.