planvortex 0.6.0 → 0.7.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, 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 ConnectToken, _ as AiContext, $ as SocialCredentialsInput, a0 as Product, a1 as ProductInput, a2 as ProductCatalog, a3 as ProductCatalogInput, a4 as PublicationInput, a5 as PublicationState, a6 as PublicationStats, a7 as PublicationStatsHistory, a8 as Upload } from './index-B7gbjlNe.cjs';
2
- export { a9 as AccountError, aa as AccountMetricRow, ab as AccountStateChange, ac as AccountWebhookChangeBase, ad as AccountWithError, ae as AiPlanCostEstimate, af as AiPlanError, ag as AiPlanNotice, ah as AiPlanOptions, ai as AiPlanOptionsInput, aj as AiPlanSource, ak as AiPlanSourceImageInput, al as AiPlanSourceInput, am as AiPlanSourceProduct, an as AiPlanState, ao as ApiErrorBody, ap as AspectRatios, aq as AuthError, ar as ClientPlan, as as CommentAuthor, at as CommentChange, au as ContactChannel, av as ContactError, aw as DashboardAiPlanRef, ax as DashboardPublicationRef, ay as DashboardRange, az as EngagementBase, aA as FileError, aB as FileFormat, aC as FileProperties, aD as FileType, aE as IntegrationError, aF as IntegrationErrorChange, aG as MessageChange, aH as MessageOptions, aI as MessageType, aJ as MessagingError, aK as MetricRow, aL as NO_ERROR_CODE, aM as OpenApiComponents, aN as OpenApiOperations, aO as OpenApiPaths, aP as OpenApiWebhooks, aQ as OpenEnum, aR as OrganizationError, aS as PLANVORTEX_ERROR_RANGES, aT as PlanLimitError, aU as PlanVortexAuthenticationError, aV as PlanVortexConfigError, aW as PlanVortexConnectionError, aX as PlanVortexError, aY as PlanVortexErrorOptions, aZ as PlanVortexErrorRange, a_ as PlannerTemplateField, a$ as PlannerTemplateFieldType, b0 as PlannerTemplateName, b1 as ProductError, b2 as PublicationError, b3 as PublicationErrorDetail, b4 as PublicationMetrics, b5 as PublicationStatsPoint, b6 as PublicationType, b7 as PublicationsSummary, b8 as RssConfig, b9 as SocialAuthorizationMethod, ba as SocialCredentials, bb as SocialIdentifier, bc as SocialIdentifierInput, bd as SocialLimitsMap, be as TOKEN_ERROR_CODES, bf as TopPublication, bg as UnknownWebhookChange, bh as UserError, bi as WebhookAlgorithm, bj as WebhookChange, bk as WebhookEvent, bl as WithAccount, bm as WithPublication, bn as account, bo as accountId, bp as errorFamilyForCode, bq as isPlanVortexError, br as isTokenError, bs as messageContact, bt as messageContactId, bu as messageDirection, bv as messageFileIds, bw as messageFiles, bx as publication, by as publicationId } from './index-B7gbjlNe.cjs';
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 ConnectToken, _ as AiContext, $ as SocialCredentialsInput, a0 as Product, a1 as ProductInput, a2 as ProductCatalog, a3 as ProductCatalogInput, a4 as PublicationInput, a5 as PublicationState, a6 as PublicationStats, a7 as PublicationStatsHistory, a8 as Upload } from './index-BX1Kvdqd.cjs';
2
+ export { a9 as AccountError, aa as AccountMetricRow, ab as AccountStateChange, ac as AccountWebhookChangeBase, ad as AccountWithError, ae as AiPlanCostEstimate, af as AiPlanError, ag as AiPlanNotice, ah as AiPlanOptions, ai as AiPlanOptionsInput, aj as AiPlanSource, ak as AiPlanSourceImageInput, al as AiPlanSourceInput, am as AiPlanSourceProduct, an as AiPlanState, ao as ApiErrorBody, ap as AspectRatios, aq as AuthError, ar as ClientPlan, as as CommentAuthor, at as CommentChange, au as ContactChannel, av as ContactError, aw as DashboardAiPlanRef, ax as DashboardPublicationRef, ay as DashboardRange, az as EngagementBase, aA as FileError, aB as FileFormat, aC as FileProperties, aD as FileType, aE as IntegrationError, aF as IntegrationErrorChange, aG as MessageChange, aH as MessageOptions, aI as MessageType, aJ as MessagingError, aK as MetricRow, aL as NO_ERROR_CODE, aM as OpenApiComponents, aN as OpenApiOperations, aO as OpenApiPaths, aP as OpenApiWebhooks, aQ as OpenEnum, aR as OrganizationError, aS as PLANVORTEX_ERROR_RANGES, aT as PlanLimitError, aU as PlanVortexAuthenticationError, aV as PlanVortexConfigError, aW as PlanVortexConnectionError, aX as PlanVortexError, aY as PlanVortexErrorOptions, aZ as PlanVortexErrorRange, a_ as PlannerTemplateField, a$ as PlannerTemplateFieldType, b0 as PlannerTemplateName, b1 as ProductError, b2 as PublicationError, b3 as PublicationErrorDetail, b4 as PublicationMetrics, b5 as PublicationStatsPoint, b6 as PublicationType, b7 as PublicationsSummary, b8 as RssConfig, b9 as SocialAuthorizationMethod, ba as SocialCredentials, bb as SocialIdentifier, bc as SocialIdentifierInput, bd as SocialLimitsMap, be as TOKEN_ERROR_CODES, bf as TopPublication, bg as UnknownWebhookChange, bh as UserError, bi as WebhookAlgorithm, bj as WebhookChange, bk as WebhookEvent, bl as WithAccount, bm as WithPublication, bn as account, bo as accountId, bp as errorFamilyForCode, bq as isPlanVortexError, br as isTokenError, bs as messageContact, bt as messageContactId, bu as messageDirection, bv as messageFileIds, bw as messageFiles, bx as publication, by as publicationId } from './index-BX1Kvdqd.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.6.0";
18
+ declare const VERSION = "0.7.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.** Nueve de las once redes son `redirect` y se
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
  *
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 ConnectToken, _ as AiContext, $ as SocialCredentialsInput, a0 as Product, a1 as ProductInput, a2 as ProductCatalog, a3 as ProductCatalogInput, a4 as PublicationInput, a5 as PublicationState, a6 as PublicationStats, a7 as PublicationStatsHistory, a8 as Upload } from './index-B7gbjlNe.js';
2
- export { a9 as AccountError, aa as AccountMetricRow, ab as AccountStateChange, ac as AccountWebhookChangeBase, ad as AccountWithError, ae as AiPlanCostEstimate, af as AiPlanError, ag as AiPlanNotice, ah as AiPlanOptions, ai as AiPlanOptionsInput, aj as AiPlanSource, ak as AiPlanSourceImageInput, al as AiPlanSourceInput, am as AiPlanSourceProduct, an as AiPlanState, ao as ApiErrorBody, ap as AspectRatios, aq as AuthError, ar as ClientPlan, as as CommentAuthor, at as CommentChange, au as ContactChannel, av as ContactError, aw as DashboardAiPlanRef, ax as DashboardPublicationRef, ay as DashboardRange, az as EngagementBase, aA as FileError, aB as FileFormat, aC as FileProperties, aD as FileType, aE as IntegrationError, aF as IntegrationErrorChange, aG as MessageChange, aH as MessageOptions, aI as MessageType, aJ as MessagingError, aK as MetricRow, aL as NO_ERROR_CODE, aM as OpenApiComponents, aN as OpenApiOperations, aO as OpenApiPaths, aP as OpenApiWebhooks, aQ as OpenEnum, aR as OrganizationError, aS as PLANVORTEX_ERROR_RANGES, aT as PlanLimitError, aU as PlanVortexAuthenticationError, aV as PlanVortexConfigError, aW as PlanVortexConnectionError, aX as PlanVortexError, aY as PlanVortexErrorOptions, aZ as PlanVortexErrorRange, a_ as PlannerTemplateField, a$ as PlannerTemplateFieldType, b0 as PlannerTemplateName, b1 as ProductError, b2 as PublicationError, b3 as PublicationErrorDetail, b4 as PublicationMetrics, b5 as PublicationStatsPoint, b6 as PublicationType, b7 as PublicationsSummary, b8 as RssConfig, b9 as SocialAuthorizationMethod, ba as SocialCredentials, bb as SocialIdentifier, bc as SocialIdentifierInput, bd as SocialLimitsMap, be as TOKEN_ERROR_CODES, bf as TopPublication, bg as UnknownWebhookChange, bh as UserError, bi as WebhookAlgorithm, bj as WebhookChange, bk as WebhookEvent, bl as WithAccount, bm as WithPublication, bn as account, bo as accountId, bp as errorFamilyForCode, bq as isPlanVortexError, br as isTokenError, bs as messageContact, bt as messageContactId, bu as messageDirection, bv as messageFileIds, bw as messageFiles, bx as publication, by as publicationId } from './index-B7gbjlNe.js';
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 ConnectToken, _ as AiContext, $ as SocialCredentialsInput, a0 as Product, a1 as ProductInput, a2 as ProductCatalog, a3 as ProductCatalogInput, a4 as PublicationInput, a5 as PublicationState, a6 as PublicationStats, a7 as PublicationStatsHistory, a8 as Upload } from './index-BX1Kvdqd.js';
2
+ export { a9 as AccountError, aa as AccountMetricRow, ab as AccountStateChange, ac as AccountWebhookChangeBase, ad as AccountWithError, ae as AiPlanCostEstimate, af as AiPlanError, ag as AiPlanNotice, ah as AiPlanOptions, ai as AiPlanOptionsInput, aj as AiPlanSource, ak as AiPlanSourceImageInput, al as AiPlanSourceInput, am as AiPlanSourceProduct, an as AiPlanState, ao as ApiErrorBody, ap as AspectRatios, aq as AuthError, ar as ClientPlan, as as CommentAuthor, at as CommentChange, au as ContactChannel, av as ContactError, aw as DashboardAiPlanRef, ax as DashboardPublicationRef, ay as DashboardRange, az as EngagementBase, aA as FileError, aB as FileFormat, aC as FileProperties, aD as FileType, aE as IntegrationError, aF as IntegrationErrorChange, aG as MessageChange, aH as MessageOptions, aI as MessageType, aJ as MessagingError, aK as MetricRow, aL as NO_ERROR_CODE, aM as OpenApiComponents, aN as OpenApiOperations, aO as OpenApiPaths, aP as OpenApiWebhooks, aQ as OpenEnum, aR as OrganizationError, aS as PLANVORTEX_ERROR_RANGES, aT as PlanLimitError, aU as PlanVortexAuthenticationError, aV as PlanVortexConfigError, aW as PlanVortexConnectionError, aX as PlanVortexError, aY as PlanVortexErrorOptions, aZ as PlanVortexErrorRange, a_ as PlannerTemplateField, a$ as PlannerTemplateFieldType, b0 as PlannerTemplateName, b1 as ProductError, b2 as PublicationError, b3 as PublicationErrorDetail, b4 as PublicationMetrics, b5 as PublicationStatsPoint, b6 as PublicationType, b7 as PublicationsSummary, b8 as RssConfig, b9 as SocialAuthorizationMethod, ba as SocialCredentials, bb as SocialIdentifier, bc as SocialIdentifierInput, bd as SocialLimitsMap, be as TOKEN_ERROR_CODES, bf as TopPublication, bg as UnknownWebhookChange, bh as UserError, bi as WebhookAlgorithm, bj as WebhookChange, bk as WebhookEvent, bl as WithAccount, bm as WithPublication, bn as account, bo as accountId, bp as errorFamilyForCode, bq as isPlanVortexError, br as isTokenError, bs as messageContact, bt as messageContactId, bu as messageDirection, bv as messageFileIds, bw as messageFiles, bx as publication, by as publicationId } from './index-BX1Kvdqd.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.6.0";
18
+ declare const VERSION = "0.7.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.** Nueve de las once redes son `redirect` y se
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
  *
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.6.0";
7
+ var VERSION = "0.7.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.** Nueve de las once redes son `redirect` y se
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
  *