zitejs 0.9.130 → 0.9.131

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.
@@ -47,7 +47,7 @@ export type CredentialServiceType = keyof typeof FIELDS_BY_TYPE;
47
47
  export declare const CREDENTIAL_FIELDS: Readonly<Record<CredentialServiceType, readonly string[]>>;
48
48
  /**
49
49
  * Extras the platform omits when the account doesn't have them: a Jira site
50
- * connected before its URL was stored, a Trello key the deployment never set.
50
+ * connected before its URL was stored.
51
51
  */
52
52
  export declare const OPTIONAL_CREDENTIAL_FIELDS: Readonly<Partial<Record<CredentialServiceType, readonly string[]>>>;
53
53
  /**
@@ -54,11 +54,10 @@ const FIELDS_BY_TYPE = {
54
54
  exports.CREDENTIAL_FIELDS = FIELDS_BY_TYPE;
55
55
  /**
56
56
  * Extras the platform omits when the account doesn't have them: a Jira site
57
- * connected before its URL was stored, a Trello key the deployment never set.
57
+ * connected before its URL was stored.
58
58
  */
59
59
  exports.OPTIONAL_CREDENTIAL_FIELDS = {
60
60
  jira: ["siteUrl"],
61
- trello: ["clientApiKey"],
62
61
  };
63
62
  /**
64
63
  * Types the runtime never serves: those with a generated client (Airtable, email,
@@ -506,6 +506,8 @@ const duplicateIdentifierErrorsIn = (source) => {
506
506
  (0, vitest_1.it)('marks an extra the platform may omit as optional', () => {
507
507
  const generated = (0, lib_js_1.generateIntegrationsIndex)([{ name: 'tickets', serviceType: 'jira', perUser: false }], { reexportAirtable: false });
508
508
  (0, vitest_1.expect)(generated).toContain("'tickets': Connected<{ cloudId: string; siteUrl?: string }>;");
509
+ // The runner supplies Trello's key for every account, or refuses get.
510
+ (0, vitest_1.expect)((0, lib_js_1.generateIntegrationsIndex)([{ name: 'boards', serviceType: 'trello', perUser: false }], { reexportAirtable: false })).toContain("'boards': Connected<{ clientApiKey: string }>;");
509
511
  (0, vitest_1.expect)(typeErrorsIn(generated, `import { integrations } from 'zitejs/integrations';
510
512
  const jira = await integrations.get('tickets');
511
513
  const cloudId: string = jira.cloudId;
@@ -47,7 +47,7 @@ export type CredentialServiceType = keyof typeof FIELDS_BY_TYPE;
47
47
  export declare const CREDENTIAL_FIELDS: Readonly<Record<CredentialServiceType, readonly string[]>>;
48
48
  /**
49
49
  * Extras the platform omits when the account doesn't have them: a Jira site
50
- * connected before its URL was stored, a Trello key the deployment never set.
50
+ * connected before its URL was stored.
51
51
  */
52
52
  export declare const OPTIONAL_CREDENTIAL_FIELDS: Readonly<Partial<Record<CredentialServiceType, readonly string[]>>>;
53
53
  /**
@@ -51,11 +51,10 @@ const FIELDS_BY_TYPE = {
51
51
  export const CREDENTIAL_FIELDS = FIELDS_BY_TYPE;
52
52
  /**
53
53
  * Extras the platform omits when the account doesn't have them: a Jira site
54
- * connected before its URL was stored, a Trello key the deployment never set.
54
+ * connected before its URL was stored.
55
55
  */
56
56
  export const OPTIONAL_CREDENTIAL_FIELDS = {
57
57
  jira: ["siteUrl"],
58
- trello: ["clientApiKey"],
59
58
  };
60
59
  /**
61
60
  * Types the runtime never serves: those with a generated client (Airtable, email,
@@ -501,6 +501,8 @@ describe('generateIntegrationsIndex', () => {
501
501
  it('marks an extra the platform may omit as optional', () => {
502
502
  const generated = generateIntegrationsIndex([{ name: 'tickets', serviceType: 'jira', perUser: false }], { reexportAirtable: false });
503
503
  expect(generated).toContain("'tickets': Connected<{ cloudId: string; siteUrl?: string }>;");
504
+ // The runner supplies Trello's key for every account, or refuses get.
505
+ expect(generateIntegrationsIndex([{ name: 'boards', serviceType: 'trello', perUser: false }], { reexportAirtable: false })).toContain("'boards': Connected<{ clientApiKey: string }>;");
504
506
  expect(typeErrorsIn(generated, `import { integrations } from 'zitejs/integrations';
505
507
  const jira = await integrations.get('tickets');
506
508
  const cloudId: string = jira.cloudId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zitejs",
3
- "version": "0.9.130",
3
+ "version": "0.9.131",
4
4
  "description": "The Zite framework — build apps on Zite Database",
5
5
  "type": "module",
6
6
  "sideEffects": false,