zitejs 0.9.124 → 0.9.125
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/cjs/integrations/rules.d.ts +1 -0
- package/dist/cjs/integrations/rules.js +1 -0
- package/dist/cjs/integrations/rules.test.js +1 -0
- package/dist/esm/integrations/rules.d.ts +1 -0
- package/dist/esm/integrations/rules.js +1 -0
- package/dist/esm/integrations/rules.test.js +1 -0
- package/package.json +1 -1
|
@@ -39,6 +39,7 @@ declare const FIELDS_BY_TYPE: {
|
|
|
39
39
|
typeform: readonly string[];
|
|
40
40
|
apollo: readonly string[];
|
|
41
41
|
attio: readonly string[];
|
|
42
|
+
granola: readonly string[];
|
|
42
43
|
};
|
|
43
44
|
/** A service type `integrations.get` serves: one used through its npm package with a token. */
|
|
44
45
|
export type CredentialServiceType = keyof typeof FIELDS_BY_TYPE;
|
|
@@ -48,6 +48,7 @@ const FIELDS_BY_TYPE = {
|
|
|
48
48
|
typeform: extras(),
|
|
49
49
|
apollo: extras(),
|
|
50
50
|
attio: extras(),
|
|
51
|
+
granola: extras(),
|
|
51
52
|
};
|
|
52
53
|
/** Per service type: `accessToken`, then its extra labels sorted (Salesforce `instanceUrl`). */
|
|
53
54
|
exports.CREDENTIAL_FIELDS = FIELDS_BY_TYPE;
|
|
@@ -17,6 +17,7 @@ const index_js_1 = require("../index.js");
|
|
|
17
17
|
"realmId",
|
|
18
18
|
]);
|
|
19
19
|
(0, vitest_1.expect)(index_js_1.CREDENTIAL_FIELDS.jira).toEqual(["accessToken", "cloudId", "siteUrl"]);
|
|
20
|
+
(0, vitest_1.expect)(index_js_1.CREDENTIAL_FIELDS.granola).toEqual(["accessToken"]);
|
|
20
21
|
});
|
|
21
22
|
(0, vitest_1.it)("has no type the runtime never serves", () => {
|
|
22
23
|
for (const type of index_js_1.NON_CREDENTIAL_SERVICE_TYPES) {
|
|
@@ -39,6 +39,7 @@ declare const FIELDS_BY_TYPE: {
|
|
|
39
39
|
typeform: readonly string[];
|
|
40
40
|
apollo: readonly string[];
|
|
41
41
|
attio: readonly string[];
|
|
42
|
+
granola: readonly string[];
|
|
42
43
|
};
|
|
43
44
|
/** A service type `integrations.get` serves: one used through its npm package with a token. */
|
|
44
45
|
export type CredentialServiceType = keyof typeof FIELDS_BY_TYPE;
|
|
@@ -45,6 +45,7 @@ const FIELDS_BY_TYPE = {
|
|
|
45
45
|
typeform: extras(),
|
|
46
46
|
apollo: extras(),
|
|
47
47
|
attio: extras(),
|
|
48
|
+
granola: extras(),
|
|
48
49
|
};
|
|
49
50
|
/** Per service type: `accessToken`, then its extra labels sorted (Salesforce `instanceUrl`). */
|
|
50
51
|
export const CREDENTIAL_FIELDS = FIELDS_BY_TYPE;
|
|
@@ -15,6 +15,7 @@ describe("CREDENTIAL_FIELDS", () => {
|
|
|
15
15
|
"realmId",
|
|
16
16
|
]);
|
|
17
17
|
expect(CREDENTIAL_FIELDS.jira).toEqual(["accessToken", "cloudId", "siteUrl"]);
|
|
18
|
+
expect(CREDENTIAL_FIELDS.granola).toEqual(["accessToken"]);
|
|
18
19
|
});
|
|
19
20
|
it("has no type the runtime never serves", () => {
|
|
20
21
|
for (const type of NON_CREDENTIAL_SERVICE_TYPES) {
|