planvortex 0.9.0 → 0.10.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 +1 -1
- package/dist/{chunk-IIAKKH3S.js → chunk-RK2OR6IV.js} +4 -4
- package/dist/chunk-RK2OR6IV.js.map +1 -0
- package/dist/{index-Cgvnq4LI.d.cts → index-DWBSCYR7.d.cts} +48 -26
- package/dist/{index-Cgvnq4LI.d.ts → index-DWBSCYR7.d.ts} +48 -26
- package/dist/index.cjs +11 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -4
- package/dist/index.d.ts +11 -4
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/webhooks/index.cjs +2 -2
- 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-IIAKKH3S.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 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-
|
|
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-
|
|
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-DWBSCYR7.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-DWBSCYR7.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.10.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.** Once de las trece 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
|
*
|
|
@@ -266,6 +266,13 @@ declare class AccountsResource extends Resource {
|
|
|
266
266
|
* **Es el paso que ocupa plaza del plan**: con el cupo lleno contesta 706, así que se llama una
|
|
267
267
|
* a una y se mira el hueco antes (`organizations.limits`). Y es también el que enciende los
|
|
268
268
|
* webhooks de la red, en cualquier plan que no sea el gratuito.
|
|
269
|
+
*
|
|
270
|
+
* **En Slack es además lo que mete la app dentro del canal**, y ahí hay un caso que no da
|
|
271
|
+
* error aquí y sí en la primera publicación: en un canal **público** la app entra sola, y en
|
|
272
|
+
* uno **privado** no puede —Slack no tiene API para eso— y hace falta que una persona escriba
|
|
273
|
+
* `/invite @PlanVortex` dentro del canal. Esta llamada devuelve bien igual y la cuenta queda
|
|
274
|
+
* conectada; lo que falla es publicar, con el error 980. Avísalo **antes** de que elijan el
|
|
275
|
+
* canal, no después.
|
|
269
276
|
*/
|
|
270
277
|
enable(idOrganization: string, idAccount: string, options?: RequestOptions): Promise<EnableResult>;
|
|
271
278
|
/** Las cuentas de una organización. */
|
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 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-
|
|
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-
|
|
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-DWBSCYR7.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-DWBSCYR7.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.10.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.** Once de las trece 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
|
*
|
|
@@ -266,6 +266,13 @@ declare class AccountsResource extends Resource {
|
|
|
266
266
|
* **Es el paso que ocupa plaza del plan**: con el cupo lleno contesta 706, así que se llama una
|
|
267
267
|
* a una y se mira el hueco antes (`organizations.limits`). Y es también el que enciende los
|
|
268
268
|
* webhooks de la red, en cualquier plan que no sea el gratuito.
|
|
269
|
+
*
|
|
270
|
+
* **En Slack es además lo que mete la app dentro del canal**, y ahí hay un caso que no da
|
|
271
|
+
* error aquí y sí en la primera publicación: en un canal **público** la app entra sola, y en
|
|
272
|
+
* uno **privado** no puede —Slack no tiene API para eso— y hace falta que una persona escriba
|
|
273
|
+
* `/invite @PlanVortex` dentro del canal. Esta llamada devuelve bien igual y la cuenta queda
|
|
274
|
+
* conectada; lo que falla es publicar, con el error 980. Avísalo **antes** de que elijan el
|
|
275
|
+
* canal, no después.
|
|
269
276
|
*/
|
|
270
277
|
enable(idOrganization: string, idAccount: string, options?: RequestOptions): Promise<EnableResult>;
|
|
271
278
|
/** Las cuentas de una organización. */
|
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-RK2OR6IV.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-RK2OR6IV.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.10.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.** Once de las trece 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
|
*
|
|
@@ -542,6 +542,13 @@ var AccountsResource = class extends Resource {
|
|
|
542
542
|
* **Es el paso que ocupa plaza del plan**: con el cupo lleno contesta 706, así que se llama una
|
|
543
543
|
* a una y se mira el hueco antes (`organizations.limits`). Y es también el que enciende los
|
|
544
544
|
* webhooks de la red, en cualquier plan que no sea el gratuito.
|
|
545
|
+
*
|
|
546
|
+
* **En Slack es además lo que mete la app dentro del canal**, y ahí hay un caso que no da
|
|
547
|
+
* error aquí y sí en la primera publicación: en un canal **público** la app entra sola, y en
|
|
548
|
+
* uno **privado** no puede —Slack no tiene API para eso— y hace falta que una persona escriba
|
|
549
|
+
* `/invite @PlanVortex` dentro del canal. Esta llamada devuelve bien igual y la cuenta queda
|
|
550
|
+
* conectada; lo que falla es publicar, con el error 980. Avísalo **antes** de que elijan el
|
|
551
|
+
* canal, no después.
|
|
545
552
|
*/
|
|
546
553
|
async enable(idOrganization, idAccount, options = {}) {
|
|
547
554
|
const body = await this.httpPost(
|