planvortex 0.6.0 → 0.8.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 +3 -3
- package/dist/{chunk-GUYS6XTO.js → chunk-IIAKKH3S.js} +12 -5
- package/dist/chunk-IIAKKH3S.js.map +1 -0
- package/dist/{index-B7gbjlNe.d.cts → index-DteI6Aqt.d.cts} +42 -20
- package/dist/{index-B7gbjlNe.d.ts → index-DteI6Aqt.d.ts} +42 -20
- package/dist/index.cjs +12 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/webhooks/index.cjs +10 -3
- 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 +1 -1
- package/package.json +1 -1
- package/dist/chunk-GUYS6XTO.js.map +0 -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, A as Account, b as AccountMetrics, c as PersistentMenu, d as Publication, e as AiPlanCreateRequest, f as AiPlanCreateResult, g as AiPlan, h as ClientApp, i as ClientAppInput, j as SocialCapabilities, k as CommentActions, l as SocialLimits, m as PublicationLimits, n as AspectRatiosByNetwork, o as PlannerTemplate, p as CommentNetwork, q as Comment, r as CommentThread, s as CommentReplyResult, t as ContactExtraData, u as Contact, v as ContactCreate, w as ContactUpdate, D as Dashboard, M as MetricName, x as DashboardMetricsResult, y as PublicationsSummaryResult, T as TopPublicationsResult, z as PublicationsStatsResult, B as PlanUse, I as IntegrationProviderName, F as IntegrationProvider, G as Integration, H as IntegrationConnectRequest, J as IntegrationUpdate, K as IntegrationPickerConfig, L as MessageTemplate, N as Conversation, O as ConversationTotals, Q as Message, R as MessageInput, U as Client, V as Organization, W as AiSettings, X as ClientWithOrganizations, Y as PlanData, Z as
|
|
2
|
-
export {
|
|
1
|
+
import { P as Paginated, S as SocialNetwork, C as ConnectLink, a as ConnectResult, E as EnableResult, A as Account, b as AccountMetrics, c as PersistentMenu, d as Publication, e as AiPlanCreateRequest, f as AiPlanCreateResult, g as AiPlan, h as ClientApp, i as ClientAppInput, j as SocialCapabilities, k as CommentActions, l as SocialLimits, m as PublicationLimits, n as AspectRatiosByNetwork, o as PlannerTemplate, p as CommentNetwork, q as Comment, r as CommentThread, s as CommentReplyResult, t as ContactExtraData, u as Contact, v as ContactCreate, w as ContactUpdate, D as Dashboard, M as MetricName, x as DashboardMetricsResult, y as PublicationsSummaryResult, T as TopPublicationsResult, z as PublicationsStatsResult, B as PlanUse, I as IntegrationProviderName, F as IntegrationProvider, G as Integration, H as IntegrationConnectRequest, J as IntegrationUpdate, K as IntegrationPickerConfig, L as MessageTemplate, N as Conversation, O as ConversationTotals, Q as Message, R as MessageInput, U as Client, V as Organization, W as AiSettings, X as ClientWithOrganizations, Y as PlanData, Z as PlanUseData, _ as ConnectToken, $ as AiContext, a0 as SocialCredentialsInput, a1 as Product, a2 as ProductInput, a3 as ProductCatalog, a4 as ProductCatalogInput, a5 as PublicationInput, a6 as PublicationState, a7 as PublicationStats, a8 as PublicationStatsHistory, a9 as Upload } from './index-DteI6Aqt.cjs';
|
|
2
|
+
export { aa as AccountError, ab as AccountMetricRow, ac as AccountStateChange, ad as AccountWebhookChangeBase, ae as AccountWithError, af as AiPlanCostEstimate, ag as AiPlanError, ah as AiPlanNotice, ai as AiPlanOptions, aj as AiPlanOptionsInput, ak as AiPlanSource, al as AiPlanSourceImageInput, am as AiPlanSourceInput, an as AiPlanSourceProduct, ao as AiPlanState, ap as ApiErrorBody, aq as AspectRatios, ar as AuthError, as as ClientPlan, at as CommentAuthor, au as CommentChange, av as ContactChannel, aw as ContactError, ax as DashboardAiPlanRef, ay as DashboardPublicationRef, az as DashboardRange, aA as EngagementBase, aB as FileError, aC as FileFormat, aD as FileProperties, aE as FileType, aF as IntegrationError, aG as IntegrationErrorChange, aH as MessageChange, aI as MessageOptions, aJ as MessageType, aK as MessagingError, aL as MetricRow, aM as NO_ERROR_CODE, aN as OpenApiComponents, aO as OpenApiOperations, aP as OpenApiPaths, aQ as OpenApiWebhooks, aR as OpenEnum, aS as OrganizationError, aT as PLANVORTEX_ERROR_RANGES, aU as PlanLimitError, aV as PlanVortexAuthenticationError, aW as PlanVortexConfigError, aX as PlanVortexConnectionError, aY as PlanVortexError, aZ as PlanVortexErrorOptions, a_ as PlanVortexErrorRange, a$ as PlannerTemplateField, b0 as PlannerTemplateFieldType, b1 as PlannerTemplateName, b2 as ProductError, b3 as PublicationError, b4 as PublicationErrorDetail, b5 as PublicationMetrics, b6 as PublicationStatsPoint, b7 as PublicationType, b8 as PublicationsSummary, b9 as RssConfig, ba as SocialAuthorizationMethod, bb as SocialCredentials, bc as SocialIdentifier, bd as SocialIdentifierInput, be as SocialLimitsMap, bf as TOKEN_ERROR_CODES, bg as TopPublication, bh as UnknownWebhookChange, bi as UserError, bj as WebhookAlgorithm, bk as WebhookChange, bl as WebhookEvent, bm as WithAccount, bn as WithPublication, bo as account, bp as accountId, bq as errorFamilyForCode, br as isPlanVortexError, bs as isTokenError, bt as messageContact, bu as messageContactId, bv as messageDirection, bw as messageFileIds, bx as messageFiles, by as publication, bz as publicationId } from './index-DteI6Aqt.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.8.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>;
|
|
@@ -222,7 +222,7 @@ declare class AccountsResource extends Resource {
|
|
|
222
222
|
* no un fallo: es lo que pasa con Discord en una organización que todavía no ha guardado sus
|
|
223
223
|
* propias credenciales de bot.
|
|
224
224
|
*
|
|
225
|
-
* **MIRA `authorization`, NO si `link` está vacío.**
|
|
225
|
+
* **MIRA `authorization`, NO si `link` está vacío.** Diez de las doce redes son `redirect` y se
|
|
226
226
|
* manda a la persona a `link`. Las otras dos no, y ninguna de las dos falla de forma visible si
|
|
227
227
|
* se recorre la lista redirigiendo a `link`:
|
|
228
228
|
*
|
|
@@ -1503,7 +1503,7 @@ declare class OrganizationsResource extends Resource {
|
|
|
1503
1503
|
* quiere cuando se está pintando una barra de "3 de 5 cuentas".
|
|
1504
1504
|
*/
|
|
1505
1505
|
use(idOrganization: string, options?: RequestOptions): Promise<{
|
|
1506
|
-
actual_use:
|
|
1506
|
+
actual_use: PlanUseData | undefined;
|
|
1507
1507
|
actual_asigned: PlanData | undefined;
|
|
1508
1508
|
}>;
|
|
1509
1509
|
/**
|
|
@@ -2007,4 +2007,4 @@ interface AuthProvider {
|
|
|
2007
2007
|
/** Margen con el que se pide un token nuevo antes de que caduque el que hay. */
|
|
2008
2008
|
declare const TOKEN_REFRESH_MARGIN_MS = 60000;
|
|
2009
2009
|
|
|
2010
|
-
export { Account, type AccountCapability, type AccountListOptions, AccountMetrics, type AccountMetricsOptions, AccountsResource, AiContext, AiPlan, AiPlanCreateRequest, AiPlanCreateResult, type AiPlanListOptions, type AiPlanRegenerateResult, type AiPlanRegenerateTarget, AiPlansResource, AiSettings, AppsResource, AspectRatiosByNetwork, type AuthProvider, CatalogResource, type ChildOrganizationListOptions, Client, ClientApp, ClientAppInput, type ClientCredentialsToken, type ClientListOptions, ClientWithOrganizations, ClientsResource, Comment, CommentActions, type CommentListOptions, CommentNetwork, CommentReplyResult, CommentThread, type CommentThreadOptions, type CommentUpdate, CommentsResource, type ConnectCallbackParams, ConnectLink, type ConnectLinkOptions, type ConnectLinksOptions, ConnectResult, ConnectToken, type ConnectTokenOptions, Contact, ContactCreate, ContactExtraData, type ContactExtraFilter, type ContactListOptions, ContactUpdate, ContactsResource, Conversation, type ConversationGroupBy, ConversationTotals, type ConversationTotalsOptions, DEFAULT_PAGE_SIZE, DEFAULT_RETRY, DEFAULT_TIMEOUT_MS, Dashboard, DashboardMetricsResult, DashboardResource, EnableResult, type FetchLike, type FileInput, type FileSource, type HttpHooks, type HttpMethod, type HttpRequest, type HttpResponse, type ImportError, type ImportFileInput, type ImportResult, Integration, IntegrationConnectRequest, type IntegrationListOptions, IntegrationPickerConfig, IntegrationProvider, IntegrationProviderName, IntegrationUpdate, IntegrationsResource, MAX_PAGES, Message, MessageInput, MessageTemplate, type MessageTemplateResult, MessagesResource, MetricName, type MetricsGroupBy, type MetricsOptions, Organization, type OrganizationInput, type OrganizationListOptions, type OrganizationOptions, type OrganizationPlanInput, OrganizationsResource, PLANVORTEX_API_URL, type PageOptions, Paginated, PersistentMenu, PlanData, PlanUse, PlanVortex, type PlanVortexOptions, PlannerTemplate, Product, ProductCatalog, ProductCatalogInput, ProductInput, ProductsResource, Publication, PublicationInput, PublicationLimits, type PublicationListOptions, type PublicationRetryResult, PublicationState, PublicationStats, PublicationStatsHistory, PublicationsResource, type PublicationsStatsOptions, PublicationsStatsResult, PublicationsSummaryResult, type QueryValue, type RangeOptions, type RequestInfo, type RequestOptions, type RequestSender, type ResponseInfo, type RetryConfig, type RetryInfo, SocialCapabilities, SocialLimits, SocialNetwork, TOKEN_REFRESH_MARGIN_MS, type TopPublicationsOptions, TopPublicationsResult, Upload, type UploadUpdate, UploadsResource, VERSION, guessContentType };
|
|
2010
|
+
export { Account, type AccountCapability, type AccountListOptions, AccountMetrics, type AccountMetricsOptions, AccountsResource, AiContext, AiPlan, AiPlanCreateRequest, AiPlanCreateResult, type AiPlanListOptions, type AiPlanRegenerateResult, type AiPlanRegenerateTarget, AiPlansResource, AiSettings, AppsResource, AspectRatiosByNetwork, type AuthProvider, CatalogResource, type ChildOrganizationListOptions, Client, ClientApp, ClientAppInput, type ClientCredentialsToken, type ClientListOptions, ClientWithOrganizations, ClientsResource, Comment, CommentActions, type CommentListOptions, CommentNetwork, CommentReplyResult, CommentThread, type CommentThreadOptions, type CommentUpdate, CommentsResource, type ConnectCallbackParams, ConnectLink, type ConnectLinkOptions, type ConnectLinksOptions, ConnectResult, ConnectToken, type ConnectTokenOptions, Contact, ContactCreate, ContactExtraData, type ContactExtraFilter, type ContactListOptions, ContactUpdate, ContactsResource, Conversation, type ConversationGroupBy, ConversationTotals, type ConversationTotalsOptions, DEFAULT_PAGE_SIZE, DEFAULT_RETRY, DEFAULT_TIMEOUT_MS, Dashboard, DashboardMetricsResult, DashboardResource, EnableResult, type FetchLike, type FileInput, type FileSource, type HttpHooks, type HttpMethod, type HttpRequest, type HttpResponse, type ImportError, type ImportFileInput, type ImportResult, Integration, IntegrationConnectRequest, type IntegrationListOptions, IntegrationPickerConfig, IntegrationProvider, IntegrationProviderName, IntegrationUpdate, IntegrationsResource, MAX_PAGES, Message, MessageInput, MessageTemplate, type MessageTemplateResult, MessagesResource, MetricName, type MetricsGroupBy, type MetricsOptions, Organization, type OrganizationInput, type OrganizationListOptions, type OrganizationOptions, type OrganizationPlanInput, OrganizationsResource, PLANVORTEX_API_URL, type PageOptions, Paginated, PersistentMenu, PlanData, PlanUse, PlanUseData, PlanVortex, type PlanVortexOptions, PlannerTemplate, Product, ProductCatalog, ProductCatalogInput, ProductInput, ProductsResource, Publication, PublicationInput, PublicationLimits, type PublicationListOptions, type PublicationRetryResult, PublicationState, PublicationStats, PublicationStatsHistory, PublicationsResource, type PublicationsStatsOptions, PublicationsStatsResult, PublicationsSummaryResult, type QueryValue, type RangeOptions, type RequestInfo, type RequestOptions, type RequestSender, type ResponseInfo, type RetryConfig, type RetryInfo, SocialCapabilities, SocialLimits, SocialNetwork, TOKEN_REFRESH_MARGIN_MS, type TopPublicationsOptions, TopPublicationsResult, Upload, type UploadUpdate, UploadsResource, VERSION, guessContentType };
|
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, A as Account, b as AccountMetrics, c as PersistentMenu, d as Publication, e as AiPlanCreateRequest, f as AiPlanCreateResult, g as AiPlan, h as ClientApp, i as ClientAppInput, j as SocialCapabilities, k as CommentActions, l as SocialLimits, m as PublicationLimits, n as AspectRatiosByNetwork, o as PlannerTemplate, p as CommentNetwork, q as Comment, r as CommentThread, s as CommentReplyResult, t as ContactExtraData, u as Contact, v as ContactCreate, w as ContactUpdate, D as Dashboard, M as MetricName, x as DashboardMetricsResult, y as PublicationsSummaryResult, T as TopPublicationsResult, z as PublicationsStatsResult, B as PlanUse, I as IntegrationProviderName, F as IntegrationProvider, G as Integration, H as IntegrationConnectRequest, J as IntegrationUpdate, K as IntegrationPickerConfig, L as MessageTemplate, N as Conversation, O as ConversationTotals, Q as Message, R as MessageInput, U as Client, V as Organization, W as AiSettings, X as ClientWithOrganizations, Y as PlanData, Z as
|
|
2
|
-
export {
|
|
1
|
+
import { P as Paginated, S as SocialNetwork, C as ConnectLink, a as ConnectResult, E as EnableResult, A as Account, b as AccountMetrics, c as PersistentMenu, d as Publication, e as AiPlanCreateRequest, f as AiPlanCreateResult, g as AiPlan, h as ClientApp, i as ClientAppInput, j as SocialCapabilities, k as CommentActions, l as SocialLimits, m as PublicationLimits, n as AspectRatiosByNetwork, o as PlannerTemplate, p as CommentNetwork, q as Comment, r as CommentThread, s as CommentReplyResult, t as ContactExtraData, u as Contact, v as ContactCreate, w as ContactUpdate, D as Dashboard, M as MetricName, x as DashboardMetricsResult, y as PublicationsSummaryResult, T as TopPublicationsResult, z as PublicationsStatsResult, B as PlanUse, I as IntegrationProviderName, F as IntegrationProvider, G as Integration, H as IntegrationConnectRequest, J as IntegrationUpdate, K as IntegrationPickerConfig, L as MessageTemplate, N as Conversation, O as ConversationTotals, Q as Message, R as MessageInput, U as Client, V as Organization, W as AiSettings, X as ClientWithOrganizations, Y as PlanData, Z as PlanUseData, _ as ConnectToken, $ as AiContext, a0 as SocialCredentialsInput, a1 as Product, a2 as ProductInput, a3 as ProductCatalog, a4 as ProductCatalogInput, a5 as PublicationInput, a6 as PublicationState, a7 as PublicationStats, a8 as PublicationStatsHistory, a9 as Upload } from './index-DteI6Aqt.js';
|
|
2
|
+
export { aa as AccountError, ab as AccountMetricRow, ac as AccountStateChange, ad as AccountWebhookChangeBase, ae as AccountWithError, af as AiPlanCostEstimate, ag as AiPlanError, ah as AiPlanNotice, ai as AiPlanOptions, aj as AiPlanOptionsInput, ak as AiPlanSource, al as AiPlanSourceImageInput, am as AiPlanSourceInput, an as AiPlanSourceProduct, ao as AiPlanState, ap as ApiErrorBody, aq as AspectRatios, ar as AuthError, as as ClientPlan, at as CommentAuthor, au as CommentChange, av as ContactChannel, aw as ContactError, ax as DashboardAiPlanRef, ay as DashboardPublicationRef, az as DashboardRange, aA as EngagementBase, aB as FileError, aC as FileFormat, aD as FileProperties, aE as FileType, aF as IntegrationError, aG as IntegrationErrorChange, aH as MessageChange, aI as MessageOptions, aJ as MessageType, aK as MessagingError, aL as MetricRow, aM as NO_ERROR_CODE, aN as OpenApiComponents, aO as OpenApiOperations, aP as OpenApiPaths, aQ as OpenApiWebhooks, aR as OpenEnum, aS as OrganizationError, aT as PLANVORTEX_ERROR_RANGES, aU as PlanLimitError, aV as PlanVortexAuthenticationError, aW as PlanVortexConfigError, aX as PlanVortexConnectionError, aY as PlanVortexError, aZ as PlanVortexErrorOptions, a_ as PlanVortexErrorRange, a$ as PlannerTemplateField, b0 as PlannerTemplateFieldType, b1 as PlannerTemplateName, b2 as ProductError, b3 as PublicationError, b4 as PublicationErrorDetail, b5 as PublicationMetrics, b6 as PublicationStatsPoint, b7 as PublicationType, b8 as PublicationsSummary, b9 as RssConfig, ba as SocialAuthorizationMethod, bb as SocialCredentials, bc as SocialIdentifier, bd as SocialIdentifierInput, be as SocialLimitsMap, bf as TOKEN_ERROR_CODES, bg as TopPublication, bh as UnknownWebhookChange, bi as UserError, bj as WebhookAlgorithm, bk as WebhookChange, bl as WebhookEvent, bm as WithAccount, bn as WithPublication, bo as account, bp as accountId, bq as errorFamilyForCode, br as isPlanVortexError, bs as isTokenError, bt as messageContact, bu as messageContactId, bv as messageDirection, bw as messageFileIds, bx as messageFiles, by as publication, bz as publicationId } from './index-DteI6Aqt.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.8.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>;
|
|
@@ -222,7 +222,7 @@ declare class AccountsResource extends Resource {
|
|
|
222
222
|
* no un fallo: es lo que pasa con Discord en una organización que todavía no ha guardado sus
|
|
223
223
|
* propias credenciales de bot.
|
|
224
224
|
*
|
|
225
|
-
* **MIRA `authorization`, NO si `link` está vacío.**
|
|
225
|
+
* **MIRA `authorization`, NO si `link` está vacío.** Diez de las doce redes son `redirect` y se
|
|
226
226
|
* manda a la persona a `link`. Las otras dos no, y ninguna de las dos falla de forma visible si
|
|
227
227
|
* se recorre la lista redirigiendo a `link`:
|
|
228
228
|
*
|
|
@@ -1503,7 +1503,7 @@ declare class OrganizationsResource extends Resource {
|
|
|
1503
1503
|
* quiere cuando se está pintando una barra de "3 de 5 cuentas".
|
|
1504
1504
|
*/
|
|
1505
1505
|
use(idOrganization: string, options?: RequestOptions): Promise<{
|
|
1506
|
-
actual_use:
|
|
1506
|
+
actual_use: PlanUseData | undefined;
|
|
1507
1507
|
actual_asigned: PlanData | undefined;
|
|
1508
1508
|
}>;
|
|
1509
1509
|
/**
|
|
@@ -2007,4 +2007,4 @@ interface AuthProvider {
|
|
|
2007
2007
|
/** Margen con el que se pide un token nuevo antes de que caduque el que hay. */
|
|
2008
2008
|
declare const TOKEN_REFRESH_MARGIN_MS = 60000;
|
|
2009
2009
|
|
|
2010
|
-
export { Account, type AccountCapability, type AccountListOptions, AccountMetrics, type AccountMetricsOptions, AccountsResource, AiContext, AiPlan, AiPlanCreateRequest, AiPlanCreateResult, type AiPlanListOptions, type AiPlanRegenerateResult, type AiPlanRegenerateTarget, AiPlansResource, AiSettings, AppsResource, AspectRatiosByNetwork, type AuthProvider, CatalogResource, type ChildOrganizationListOptions, Client, ClientApp, ClientAppInput, type ClientCredentialsToken, type ClientListOptions, ClientWithOrganizations, ClientsResource, Comment, CommentActions, type CommentListOptions, CommentNetwork, CommentReplyResult, CommentThread, type CommentThreadOptions, type CommentUpdate, CommentsResource, type ConnectCallbackParams, ConnectLink, type ConnectLinkOptions, type ConnectLinksOptions, ConnectResult, ConnectToken, type ConnectTokenOptions, Contact, ContactCreate, ContactExtraData, type ContactExtraFilter, type ContactListOptions, ContactUpdate, ContactsResource, Conversation, type ConversationGroupBy, ConversationTotals, type ConversationTotalsOptions, DEFAULT_PAGE_SIZE, DEFAULT_RETRY, DEFAULT_TIMEOUT_MS, Dashboard, DashboardMetricsResult, DashboardResource, EnableResult, type FetchLike, type FileInput, type FileSource, type HttpHooks, type HttpMethod, type HttpRequest, type HttpResponse, type ImportError, type ImportFileInput, type ImportResult, Integration, IntegrationConnectRequest, type IntegrationListOptions, IntegrationPickerConfig, IntegrationProvider, IntegrationProviderName, IntegrationUpdate, IntegrationsResource, MAX_PAGES, Message, MessageInput, MessageTemplate, type MessageTemplateResult, MessagesResource, MetricName, type MetricsGroupBy, type MetricsOptions, Organization, type OrganizationInput, type OrganizationListOptions, type OrganizationOptions, type OrganizationPlanInput, OrganizationsResource, PLANVORTEX_API_URL, type PageOptions, Paginated, PersistentMenu, PlanData, PlanUse, PlanVortex, type PlanVortexOptions, PlannerTemplate, Product, ProductCatalog, ProductCatalogInput, ProductInput, ProductsResource, Publication, PublicationInput, PublicationLimits, type PublicationListOptions, type PublicationRetryResult, PublicationState, PublicationStats, PublicationStatsHistory, PublicationsResource, type PublicationsStatsOptions, PublicationsStatsResult, PublicationsSummaryResult, type QueryValue, type RangeOptions, type RequestInfo, type RequestOptions, type RequestSender, type ResponseInfo, type RetryConfig, type RetryInfo, SocialCapabilities, SocialLimits, SocialNetwork, TOKEN_REFRESH_MARGIN_MS, type TopPublicationsOptions, TopPublicationsResult, Upload, type UploadUpdate, UploadsResource, VERSION, guessContentType };
|
|
2010
|
+
export { Account, type AccountCapability, type AccountListOptions, AccountMetrics, type AccountMetricsOptions, AccountsResource, AiContext, AiPlan, AiPlanCreateRequest, AiPlanCreateResult, type AiPlanListOptions, type AiPlanRegenerateResult, type AiPlanRegenerateTarget, AiPlansResource, AiSettings, AppsResource, AspectRatiosByNetwork, type AuthProvider, CatalogResource, type ChildOrganizationListOptions, Client, ClientApp, ClientAppInput, type ClientCredentialsToken, type ClientListOptions, ClientWithOrganizations, ClientsResource, Comment, CommentActions, type CommentListOptions, CommentNetwork, CommentReplyResult, CommentThread, type CommentThreadOptions, type CommentUpdate, CommentsResource, type ConnectCallbackParams, ConnectLink, type ConnectLinkOptions, type ConnectLinksOptions, ConnectResult, ConnectToken, type ConnectTokenOptions, Contact, ContactCreate, ContactExtraData, type ContactExtraFilter, type ContactListOptions, ContactUpdate, ContactsResource, Conversation, type ConversationGroupBy, ConversationTotals, type ConversationTotalsOptions, DEFAULT_PAGE_SIZE, DEFAULT_RETRY, DEFAULT_TIMEOUT_MS, Dashboard, DashboardMetricsResult, DashboardResource, EnableResult, type FetchLike, type FileInput, type FileSource, type HttpHooks, type HttpMethod, type HttpRequest, type HttpResponse, type ImportError, type ImportFileInput, type ImportResult, Integration, IntegrationConnectRequest, type IntegrationListOptions, IntegrationPickerConfig, IntegrationProvider, IntegrationProviderName, IntegrationUpdate, IntegrationsResource, MAX_PAGES, Message, MessageInput, MessageTemplate, type MessageTemplateResult, MessagesResource, MetricName, type MetricsGroupBy, type MetricsOptions, Organization, type OrganizationInput, type OrganizationListOptions, type OrganizationOptions, type OrganizationPlanInput, OrganizationsResource, PLANVORTEX_API_URL, type PageOptions, Paginated, PersistentMenu, PlanData, PlanUse, PlanUseData, PlanVortex, type PlanVortexOptions, PlannerTemplate, Product, ProductCatalog, ProductCatalogInput, ProductInput, ProductsResource, Publication, PublicationInput, PublicationLimits, type PublicationListOptions, type PublicationRetryResult, PublicationState, PublicationStats, PublicationStatsHistory, PublicationsResource, type PublicationsStatsOptions, PublicationsStatsResult, PublicationsSummaryResult, type QueryValue, type RangeOptions, type RequestInfo, type RequestOptions, type RequestSender, type ResponseInfo, type RetryConfig, type RetryInfo, SocialCapabilities, SocialLimits, SocialNetwork, TOKEN_REFRESH_MARGIN_MS, type TopPublicationsOptions, TopPublicationsResult, Upload, type UploadUpdate, UploadsResource, VERSION, guessContentType };
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { createErrorFromResponse, NO_ERROR_CODE, PlanVortexError, PlanVortexConfigError, isTokenError, PlanVortexConnectionError, PlanVortexAuthenticationError, isPlanVortexError } from './chunk-
|
|
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-
|
|
1
|
+
import { createErrorFromResponse, NO_ERROR_CODE, PlanVortexError, PlanVortexConfigError, isTokenError, PlanVortexConnectionError, PlanVortexAuthenticationError, isPlanVortexError } from './chunk-IIAKKH3S.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-IIAKKH3S.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.
|
|
7
|
+
var VERSION = "0.8.0";
|
|
8
8
|
|
|
9
9
|
// src/core/auth.ts
|
|
10
10
|
var TOKEN_REFRESH_MARGIN_MS = 6e4;
|
|
@@ -472,7 +472,7 @@ var AccountsResource = class extends Resource {
|
|
|
472
472
|
* no un fallo: es lo que pasa con Discord en una organización que todavía no ha guardado sus
|
|
473
473
|
* propias credenciales de bot.
|
|
474
474
|
*
|
|
475
|
-
* **MIRA `authorization`, NO si `link` está vacío.**
|
|
475
|
+
* **MIRA `authorization`, NO si `link` está vacío.** Diez de las doce redes son `redirect` y se
|
|
476
476
|
* manda a la persona a `link`. Las otras dos no, y ninguna de las dos falla de forma visible si
|
|
477
477
|
* se recorre la lista redirigiendo a `link`:
|
|
478
478
|
*
|