planvortex 0.23.0 → 0.25.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/README.md +5 -2
- package/dist/{index-61v6zYKJ.d.cts → index-CVJ6ace_.d.cts} +164 -23
- package/dist/{index-61v6zYKJ.d.ts → index-CVJ6ace_.d.ts} +164 -23
- package/dist/index.cjs +11 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -5
- package/dist/index.d.ts +16 -5
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/webhooks/index.cjs +11 -0
- package/dist/webhooks/index.cjs.map +1 -1
- package/dist/webhooks/index.d.cts +1 -1
- package/dist/webhooks/index.d.ts +1 -1
- package/dist/webhooks/index.js +10 -1
- package/dist/webhooks/index.js.map +1 -1
- package/package.json +1 -1
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 ConversationRead, a0 as Client, a1 as Organization, a2 as AiSettings, a3 as ClientWithOrganizations, a4 as AccountSelection, a5 as PlanData, a6 as PlanUseData, a7 as ConnectToken, a8 as AiContext, a9 as SocialCredentialsInput, aa as Product, ab as ProductInput, ac as ProductCatalog, ad as ProductCatalogInput, ae as PublicationInput, af as PublicationState, ag as PublicationStats, ah as PublicationStatsHistory, ai as Upload } from './index-
|
|
2
|
-
export { aj as AccountError, ak as AccountMetricRow, al as AccountStateChange, am as AccountWebhookChangeBase, an as AccountWithError, ao as AiImageOrigin, ap as AiPlanCostEstimate, aq as AiPlanDestination, ar as AiPlanError, as as AiPlanNotice, at as AiPlanOptions, au as AiPlanOptionsInput, av as AiPlanResult, aw as AiPlanResultsGroup, ax as AiPlanResultsTemplateGroup, ay as AiPlanSource, az as AiPlanSourceImageInput, aA as AiPlanSourceInput, aB as AiPlanSourceProduct, aC as AiPlanState, aD as ApiErrorBody, aE as AspectRatios, aF as AuthError, aG as ClientPlan, aH as CommentAuthor, aI as CommentChange, aJ as ConnectSessionAccount, aK as ContactChannel, aL as ContactError, aM as DashboardAiPlanRef, aN as DashboardPublicationRef, aO as DashboardRange, aP as EngagementBase, aQ as FileError, aR as FileFormat, aS as FileProperties, aT as FileType, aU as IntegrationCatalogProduct, aV as IntegrationConfig, aW as IntegrationError, aX as IntegrationErrorChange, aY as IntegrationFormField, aZ as MessageChange, a_ as MessageEchoChange, a$ as MessageOptions, b0 as MessageType, b1 as MessagingError, b2 as MetricRow, b3 as NO_ERROR_CODE, b4 as OpenApiComponents, b5 as OpenApiOperations, b6 as OpenApiPaths, b7 as OpenApiWebhooks, b8 as OpenEnum, b9 as OrganizationError, ba as PLANVORTEX_ERROR_RANGES, bb as PlanLimitError, bc as PlanVortexAuthenticationError, bd as PlanVortexConfigError, be as PlanVortexConnectionError, bf as PlanVortexError, bg as PlanVortexErrorOptions, bh as PlanVortexErrorRange, bi as PlannerTemplateField, bj as PlannerTemplateFieldType, bk as ProductError, bl as PublicationAiGenerated, bm as PublicationDestination, bn as PublicationError, bo as PublicationErrorDetail, bp as PublicationMetrics, bq as PublicationPending, br as PublicationStatsPoint, bs as PublicationType, bt as PublicationsSummary, bu as RssConfig, bv as SocialAuthorizationMethod, bw as SocialCredentials, bx as SocialIdentifier, by as SocialIdentifierInput, bz as SocialLimitsMap, bA as TOKEN_ERROR_CODES, bB as TopPublication, bC as UnknownWebhookChange, bD as UserError, bE as WebhookAlgorithm, bF as WebhookChange, bG as WebhookEvent, bH as WithAccount, bI as WithPublication, bJ as WooCommerceConnectRequest, bK as account, bL as accountId, bM as errorFamilyForCode, bN as isPlanVortexError, bO as isTokenError, bP as messageContact, bQ as messageContactId, bR as messageDirection, bS as messageFileIds, bT as messageFiles, bU as publication, bV as publicationId } from './index-
|
|
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 ConversationRead, a0 as Client, a1 as Organization, a2 as AiSettings, a3 as ClientWithOrganizations, a4 as AccountSelection, a5 as PlanData, a6 as PlanUseData, a7 as ConnectToken, a8 as AiContext, a9 as SocialCredentialsInput, aa as Product, ab as ProductInput, ac as ProductCatalog, ad as ProductCatalogInput, ae as PublicationInput, af as PublicationState, ag as PublicationStats, ah as PublicationStatsHistory, ai as Upload } from './index-CVJ6ace_.cjs';
|
|
2
|
+
export { aj as AccountError, ak as AccountMetricRow, al as AccountStateChange, am as AccountWebhookChangeBase, an as AccountWithError, ao as AiImageOrigin, ap as AiPlanCostEstimate, aq as AiPlanDestination, ar as AiPlanError, as as AiPlanNotice, at as AiPlanOptions, au as AiPlanOptionsInput, av as AiPlanResult, aw as AiPlanResultsGroup, ax as AiPlanResultsTemplateGroup, ay as AiPlanSource, az as AiPlanSourceImageInput, aA as AiPlanSourceInput, aB as AiPlanSourceProduct, aC as AiPlanState, aD as ApiErrorBody, aE as AspectRatios, aF as AuthError, aG as ClientPlan, aH as CommentAuthor, aI as CommentChange, aJ as ConnectSessionAccount, aK as ContactChannel, aL as ContactError, aM as DashboardAiPlanRef, aN as DashboardPublicationRef, aO as DashboardRange, aP as EngagementBase, aQ as FileError, aR as FileFormat, aS as FileProperties, aT as FileType, aU as IntegrationCatalogProduct, aV as IntegrationConfig, aW as IntegrationError, aX as IntegrationErrorChange, aY as IntegrationFormField, aZ as MessageChange, a_ as MessageEchoChange, a$ as MessageOptions, b0 as MessageType, b1 as MessagingError, b2 as MetricRow, b3 as NO_ERROR_CODE, b4 as OpenApiComponents, b5 as OpenApiOperations, b6 as OpenApiPaths, b7 as OpenApiWebhooks, b8 as OpenEnum, b9 as OrganizationError, ba as PLANVORTEX_ERROR_RANGES, bb as PlanLimitError, bc as PlanVortexAuthenticationError, bd as PlanVortexConfigError, be as PlanVortexConnectionError, bf as PlanVortexError, bg as PlanVortexErrorOptions, bh as PlanVortexErrorRange, bi as PlannerTemplateField, bj as PlannerTemplateFieldType, bk as ProductError, bl as PublicationAiGenerated, bm as PublicationDestination, bn as PublicationError, bo as PublicationErrorDetail, bp as PublicationMetrics, bq as PublicationPending, br as PublicationStatsPoint, bs as PublicationType, bt as PublicationsSummary, bu as RssConfig, bv as SocialAuthorizationMethod, bw as SocialCredentials, bx as SocialIdentifier, by as SocialIdentifierInput, bz as SocialLimitsMap, bA as TOKEN_ERROR_CODES, bB as TopPublication, bC as UnknownWebhookChange, bD as UserError, bE as WebhookAlgorithm, bF as WebhookChange, bG as WebhookEvent, bH as WithAccount, bI as WithPublication, bJ as WooCommerceConnectRequest, bK as account, bL as accountId, bM as errorFamilyForCode, bN as isPlanVortexError, bO as isTokenError, bP as messageContact, bQ as messageContactId, bR as messageDirection, bS as messageFileIds, bT as messageFiles, bU as publication, bV as publicationId } from './index-CVJ6ace_.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.
|
|
18
|
+
declare const VERSION = "0.25.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>;
|
|
@@ -344,9 +344,17 @@ declare class AccountsResource extends Resource {
|
|
|
344
344
|
iterate(idOrganization: string, options?: AccountListOptions & RequestOptions): AsyncGenerator<Account>;
|
|
345
345
|
/** La ficha de una cuenta. */
|
|
346
346
|
get(idOrganization: string, idAccount: string, options?: RequestOptions): Promise<Account>;
|
|
347
|
-
/**
|
|
347
|
+
/**
|
|
348
|
+
* Cambia el nombre con el que la cuenta se ve en PlanVortex y, en **Discord**, qué se trae del
|
|
349
|
+
* canal a la bandeja de comentarios (`comments_settings.all_channel_messages`: `true` es todo lo
|
|
350
|
+
* que se escribe; por defecto, sólo las respuestas a tus publicaciones y las menciones a tu bot).
|
|
351
|
+
* En las demás redes `comments_settings` se ignora.
|
|
352
|
+
*/
|
|
348
353
|
update(idOrganization: string, idAccount: string, body: {
|
|
349
354
|
name?: string;
|
|
355
|
+
comments_settings?: {
|
|
356
|
+
all_channel_messages?: boolean;
|
|
357
|
+
};
|
|
350
358
|
}, options?: RequestOptions): Promise<Account>;
|
|
351
359
|
/**
|
|
352
360
|
* Desconecta la cuenta y **borra sus publicaciones**. Lo ya publicado en la red se queda donde
|
|
@@ -1131,10 +1139,13 @@ declare class CommentsResource extends Resource {
|
|
|
1131
1139
|
* EL HILO de una CUENTA, gemelo del anterior, para las redes cuyos comentarios no cuelgan de
|
|
1132
1140
|
* una publicación nuestra.
|
|
1133
1141
|
*
|
|
1134
|
-
*
|
|
1142
|
+
* Son dos. En Google Business una reseña cuelga de la FICHA, no de un post, así que esa cuenta no
|
|
1135
1143
|
* tiene ninguna publicación con la que llamar a {@link thread}. Ojo con `total`: es el número
|
|
1136
1144
|
* de RESEÑAS, que no es la longitud de `comments` — nuestras respuestas viajan en el mismo
|
|
1137
1145
|
* array, colgando de la reseña que contestan.
|
|
1146
|
+
*
|
|
1147
|
+
* En Discord es lo que le dicen a la marca en el propio CANAL: las respuestas a sus publicaciones
|
|
1148
|
+
* y las menciones a su bot. Los hilos de las publicaciones siguen en {@link thread}.
|
|
1138
1149
|
*/
|
|
1139
1150
|
threadByAccount(idOrganization: string, idAccount: string, options?: CommentThreadOptions & RequestOptions): Promise<CommentThread>;
|
|
1140
1151
|
/**
|
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 ConversationRead, a0 as Client, a1 as Organization, a2 as AiSettings, a3 as ClientWithOrganizations, a4 as AccountSelection, a5 as PlanData, a6 as PlanUseData, a7 as ConnectToken, a8 as AiContext, a9 as SocialCredentialsInput, aa as Product, ab as ProductInput, ac as ProductCatalog, ad as ProductCatalogInput, ae as PublicationInput, af as PublicationState, ag as PublicationStats, ah as PublicationStatsHistory, ai as Upload } from './index-
|
|
2
|
-
export { aj as AccountError, ak as AccountMetricRow, al as AccountStateChange, am as AccountWebhookChangeBase, an as AccountWithError, ao as AiImageOrigin, ap as AiPlanCostEstimate, aq as AiPlanDestination, ar as AiPlanError, as as AiPlanNotice, at as AiPlanOptions, au as AiPlanOptionsInput, av as AiPlanResult, aw as AiPlanResultsGroup, ax as AiPlanResultsTemplateGroup, ay as AiPlanSource, az as AiPlanSourceImageInput, aA as AiPlanSourceInput, aB as AiPlanSourceProduct, aC as AiPlanState, aD as ApiErrorBody, aE as AspectRatios, aF as AuthError, aG as ClientPlan, aH as CommentAuthor, aI as CommentChange, aJ as ConnectSessionAccount, aK as ContactChannel, aL as ContactError, aM as DashboardAiPlanRef, aN as DashboardPublicationRef, aO as DashboardRange, aP as EngagementBase, aQ as FileError, aR as FileFormat, aS as FileProperties, aT as FileType, aU as IntegrationCatalogProduct, aV as IntegrationConfig, aW as IntegrationError, aX as IntegrationErrorChange, aY as IntegrationFormField, aZ as MessageChange, a_ as MessageEchoChange, a$ as MessageOptions, b0 as MessageType, b1 as MessagingError, b2 as MetricRow, b3 as NO_ERROR_CODE, b4 as OpenApiComponents, b5 as OpenApiOperations, b6 as OpenApiPaths, b7 as OpenApiWebhooks, b8 as OpenEnum, b9 as OrganizationError, ba as PLANVORTEX_ERROR_RANGES, bb as PlanLimitError, bc as PlanVortexAuthenticationError, bd as PlanVortexConfigError, be as PlanVortexConnectionError, bf as PlanVortexError, bg as PlanVortexErrorOptions, bh as PlanVortexErrorRange, bi as PlannerTemplateField, bj as PlannerTemplateFieldType, bk as ProductError, bl as PublicationAiGenerated, bm as PublicationDestination, bn as PublicationError, bo as PublicationErrorDetail, bp as PublicationMetrics, bq as PublicationPending, br as PublicationStatsPoint, bs as PublicationType, bt as PublicationsSummary, bu as RssConfig, bv as SocialAuthorizationMethod, bw as SocialCredentials, bx as SocialIdentifier, by as SocialIdentifierInput, bz as SocialLimitsMap, bA as TOKEN_ERROR_CODES, bB as TopPublication, bC as UnknownWebhookChange, bD as UserError, bE as WebhookAlgorithm, bF as WebhookChange, bG as WebhookEvent, bH as WithAccount, bI as WithPublication, bJ as WooCommerceConnectRequest, bK as account, bL as accountId, bM as errorFamilyForCode, bN as isPlanVortexError, bO as isTokenError, bP as messageContact, bQ as messageContactId, bR as messageDirection, bS as messageFileIds, bT as messageFiles, bU as publication, bV as publicationId } from './index-
|
|
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 ConversationRead, a0 as Client, a1 as Organization, a2 as AiSettings, a3 as ClientWithOrganizations, a4 as AccountSelection, a5 as PlanData, a6 as PlanUseData, a7 as ConnectToken, a8 as AiContext, a9 as SocialCredentialsInput, aa as Product, ab as ProductInput, ac as ProductCatalog, ad as ProductCatalogInput, ae as PublicationInput, af as PublicationState, ag as PublicationStats, ah as PublicationStatsHistory, ai as Upload } from './index-CVJ6ace_.js';
|
|
2
|
+
export { aj as AccountError, ak as AccountMetricRow, al as AccountStateChange, am as AccountWebhookChangeBase, an as AccountWithError, ao as AiImageOrigin, ap as AiPlanCostEstimate, aq as AiPlanDestination, ar as AiPlanError, as as AiPlanNotice, at as AiPlanOptions, au as AiPlanOptionsInput, av as AiPlanResult, aw as AiPlanResultsGroup, ax as AiPlanResultsTemplateGroup, ay as AiPlanSource, az as AiPlanSourceImageInput, aA as AiPlanSourceInput, aB as AiPlanSourceProduct, aC as AiPlanState, aD as ApiErrorBody, aE as AspectRatios, aF as AuthError, aG as ClientPlan, aH as CommentAuthor, aI as CommentChange, aJ as ConnectSessionAccount, aK as ContactChannel, aL as ContactError, aM as DashboardAiPlanRef, aN as DashboardPublicationRef, aO as DashboardRange, aP as EngagementBase, aQ as FileError, aR as FileFormat, aS as FileProperties, aT as FileType, aU as IntegrationCatalogProduct, aV as IntegrationConfig, aW as IntegrationError, aX as IntegrationErrorChange, aY as IntegrationFormField, aZ as MessageChange, a_ as MessageEchoChange, a$ as MessageOptions, b0 as MessageType, b1 as MessagingError, b2 as MetricRow, b3 as NO_ERROR_CODE, b4 as OpenApiComponents, b5 as OpenApiOperations, b6 as OpenApiPaths, b7 as OpenApiWebhooks, b8 as OpenEnum, b9 as OrganizationError, ba as PLANVORTEX_ERROR_RANGES, bb as PlanLimitError, bc as PlanVortexAuthenticationError, bd as PlanVortexConfigError, be as PlanVortexConnectionError, bf as PlanVortexError, bg as PlanVortexErrorOptions, bh as PlanVortexErrorRange, bi as PlannerTemplateField, bj as PlannerTemplateFieldType, bk as ProductError, bl as PublicationAiGenerated, bm as PublicationDestination, bn as PublicationError, bo as PublicationErrorDetail, bp as PublicationMetrics, bq as PublicationPending, br as PublicationStatsPoint, bs as PublicationType, bt as PublicationsSummary, bu as RssConfig, bv as SocialAuthorizationMethod, bw as SocialCredentials, bx as SocialIdentifier, by as SocialIdentifierInput, bz as SocialLimitsMap, bA as TOKEN_ERROR_CODES, bB as TopPublication, bC as UnknownWebhookChange, bD as UserError, bE as WebhookAlgorithm, bF as WebhookChange, bG as WebhookEvent, bH as WithAccount, bI as WithPublication, bJ as WooCommerceConnectRequest, bK as account, bL as accountId, bM as errorFamilyForCode, bN as isPlanVortexError, bO as isTokenError, bP as messageContact, bQ as messageContactId, bR as messageDirection, bS as messageFileIds, bT as messageFiles, bU as publication, bV as publicationId } from './index-CVJ6ace_.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.
|
|
18
|
+
declare const VERSION = "0.25.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>;
|
|
@@ -344,9 +344,17 @@ declare class AccountsResource extends Resource {
|
|
|
344
344
|
iterate(idOrganization: string, options?: AccountListOptions & RequestOptions): AsyncGenerator<Account>;
|
|
345
345
|
/** La ficha de una cuenta. */
|
|
346
346
|
get(idOrganization: string, idAccount: string, options?: RequestOptions): Promise<Account>;
|
|
347
|
-
/**
|
|
347
|
+
/**
|
|
348
|
+
* Cambia el nombre con el que la cuenta se ve en PlanVortex y, en **Discord**, qué se trae del
|
|
349
|
+
* canal a la bandeja de comentarios (`comments_settings.all_channel_messages`: `true` es todo lo
|
|
350
|
+
* que se escribe; por defecto, sólo las respuestas a tus publicaciones y las menciones a tu bot).
|
|
351
|
+
* En las demás redes `comments_settings` se ignora.
|
|
352
|
+
*/
|
|
348
353
|
update(idOrganization: string, idAccount: string, body: {
|
|
349
354
|
name?: string;
|
|
355
|
+
comments_settings?: {
|
|
356
|
+
all_channel_messages?: boolean;
|
|
357
|
+
};
|
|
350
358
|
}, options?: RequestOptions): Promise<Account>;
|
|
351
359
|
/**
|
|
352
360
|
* Desconecta la cuenta y **borra sus publicaciones**. Lo ya publicado en la red se queda donde
|
|
@@ -1131,10 +1139,13 @@ declare class CommentsResource extends Resource {
|
|
|
1131
1139
|
* EL HILO de una CUENTA, gemelo del anterior, para las redes cuyos comentarios no cuelgan de
|
|
1132
1140
|
* una publicación nuestra.
|
|
1133
1141
|
*
|
|
1134
|
-
*
|
|
1142
|
+
* Son dos. En Google Business una reseña cuelga de la FICHA, no de un post, así que esa cuenta no
|
|
1135
1143
|
* tiene ninguna publicación con la que llamar a {@link thread}. Ojo con `total`: es el número
|
|
1136
1144
|
* de RESEÑAS, que no es la longitud de `comments` — nuestras respuestas viajan en el mismo
|
|
1137
1145
|
* array, colgando de la reseña que contestan.
|
|
1146
|
+
*
|
|
1147
|
+
* En Discord es lo que le dicen a la marca en el propio CANAL: las respuestas a sus publicaciones
|
|
1148
|
+
* y las menciones a su bot. Los hilos de las publicaciones siguen en {@link thread}.
|
|
1138
1149
|
*/
|
|
1139
1150
|
threadByAccount(idOrganization: string, idAccount: string, options?: CommentThreadOptions & RequestOptions): Promise<CommentThread>;
|
|
1140
1151
|
/**
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ 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.
|
|
7
|
+
var VERSION = "0.25.0";
|
|
8
8
|
|
|
9
9
|
// src/core/auth.ts
|
|
10
10
|
var TOKEN_REFRESH_MARGIN_MS = 6e4;
|
|
@@ -658,7 +658,12 @@ var AccountsResource = class extends Resource {
|
|
|
658
658
|
async get(idOrganization, idAccount, options = {}) {
|
|
659
659
|
return this.getOne(this.path(idOrganization, idAccount), "account", void 0, options);
|
|
660
660
|
}
|
|
661
|
-
/**
|
|
661
|
+
/**
|
|
662
|
+
* Cambia el nombre con el que la cuenta se ve en PlanVortex y, en **Discord**, qué se trae del
|
|
663
|
+
* canal a la bandeja de comentarios (`comments_settings.all_channel_messages`: `true` es todo lo
|
|
664
|
+
* que se escribe; por defecto, sólo las respuestas a tus publicaciones y las menciones a tu bot).
|
|
665
|
+
* En las demás redes `comments_settings` se ignora.
|
|
666
|
+
*/
|
|
662
667
|
async update(idOrganization, idAccount, body, options = {}) {
|
|
663
668
|
return this.putOne(this.path(idOrganization, idAccount), "account", body, options);
|
|
664
669
|
}
|
|
@@ -1381,10 +1386,13 @@ var CommentsResource = class extends Resource {
|
|
|
1381
1386
|
* EL HILO de una CUENTA, gemelo del anterior, para las redes cuyos comentarios no cuelgan de
|
|
1382
1387
|
* una publicación nuestra.
|
|
1383
1388
|
*
|
|
1384
|
-
*
|
|
1389
|
+
* Son dos. En Google Business una reseña cuelga de la FICHA, no de un post, así que esa cuenta no
|
|
1385
1390
|
* tiene ninguna publicación con la que llamar a {@link thread}. Ojo con `total`: es el número
|
|
1386
1391
|
* de RESEÑAS, que no es la longitud de `comments` — nuestras respuestas viajan en el mismo
|
|
1387
1392
|
* array, colgando de la reseña que contestan.
|
|
1393
|
+
*
|
|
1394
|
+
* En Discord es lo que le dicen a la marca en el propio CANAL: las respuestas a sus publicaciones
|
|
1395
|
+
* y las menciones a su bot. Los hilos de las publicaciones siguen en {@link thread}.
|
|
1388
1396
|
*/
|
|
1389
1397
|
async threadByAccount(idOrganization, idAccount, options = {}) {
|
|
1390
1398
|
return this.httpGet(
|