strapi-plugin-hubspot 0.1.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.
@@ -0,0 +1,28 @@
1
+ import type { Core } from "@strapi/strapi";
2
+ /**
3
+ * API key resolution, in order of precedence:
4
+ * 1. saved from the admin UI (plugin core store)
5
+ * 2. plugin config (config/plugins of the host app)
6
+ * 3. environment variable (HUBSPOT_API_KEY)
7
+ *
8
+ * The key is only ever read server-side; `publicSettings` is what the admin UI
9
+ * receives, and it deliberately never carries the key itself.
10
+ */
11
+ export declare const ENV_VAR = "HUBSPOT_API_KEY";
12
+ export interface StoredSettings {
13
+ apiKey?: string;
14
+ }
15
+ export interface PublicSettings {
16
+ configured: boolean;
17
+ /** Where the key comes from, so the UI can explain why it can't be edited. */
18
+ keySource: "settings" | "config" | "env" | null;
19
+ /** Last four characters, enough to recognise a key without exposing it. */
20
+ hint: string;
21
+ }
22
+ export declare function getStoredSettings(strapi: Core.Strapi): Promise<StoredSettings>;
23
+ export declare function setStoredSettings(strapi: Core.Strapi, value: StoredSettings | null): Promise<void>;
24
+ export declare function resolveApiKey(strapi: Core.Strapi): Promise<{
25
+ apiKey: string;
26
+ source: PublicSettings["keySource"];
27
+ }>;
28
+ export declare function publicSettings(strapi: Core.Strapi): Promise<PublicSettings>;
package/package.json ADDED
@@ -0,0 +1,82 @@
1
+ {
2
+ "name": "strapi-plugin-hubspot",
3
+ "version": "0.1.0",
4
+ "description": "HubSpot integration for Strapi — pick CRM properties from a searchable list instead of typing them, and catch bad mappings before they reach the API.",
5
+ "keywords": [
6
+ "strapi",
7
+ "plugin",
8
+ "hubspot",
9
+ "crm",
10
+ "custom-field"
11
+ ],
12
+ "license": "MIT",
13
+ "author": "Paul Lefizelier",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/paullefizelier/strapi-plugin-hubspot.git"
17
+ },
18
+ "homepage": "https://github.com/paullefizelier/strapi-plugin-hubspot#readme",
19
+ "bugs": {
20
+ "url": "https://github.com/paullefizelier/strapi-plugin-hubspot/issues"
21
+ },
22
+ "type": "commonjs",
23
+ "exports": {
24
+ "./package.json": "./package.json",
25
+ "./strapi-admin": {
26
+ "types": "./dist/admin/src/index.d.ts",
27
+ "source": "./admin/src/index.ts",
28
+ "import": "./dist/admin/index.mjs",
29
+ "require": "./dist/admin/index.js",
30
+ "default": "./dist/admin/index.js"
31
+ },
32
+ "./strapi-server": {
33
+ "types": "./dist/server/src/index.d.ts",
34
+ "source": "./server/src/index.ts",
35
+ "import": "./dist/server/index.mjs",
36
+ "require": "./dist/server/index.js",
37
+ "default": "./dist/server/index.js"
38
+ }
39
+ },
40
+ "files": [
41
+ "dist"
42
+ ],
43
+ "scripts": {
44
+ "build": "strapi-plugin build",
45
+ "watch": "strapi-plugin watch",
46
+ "verify": "strapi-plugin verify",
47
+ "prepublishOnly": "npm run build"
48
+ },
49
+ "devDependencies": {
50
+ "@strapi/design-system": "^2.0.0-rc.29",
51
+ "@strapi/icons": "^2.0.0-rc.29",
52
+ "@strapi/sdk-plugin": "^5.3.2",
53
+ "@strapi/strapi": "^5.0.0",
54
+ "@strapi/typescript-utils": "^5.0.0",
55
+ "@strapi/utils": "^5.0.0",
56
+ "@types/react": "^18.3.3",
57
+ "@types/react-dom": "^18.3.0",
58
+ "react": "^18.3.1",
59
+ "react-dom": "^18.3.1",
60
+ "react-router-dom": "^6.26.0",
61
+ "styled-components": "^6.1.11",
62
+ "typescript": "^5.5.4"
63
+ },
64
+ "peerDependencies": {
65
+ "@strapi/design-system": "^2.0.0-rc.29",
66
+ "@strapi/icons": "^2.0.0-rc.29",
67
+ "@strapi/strapi": "^5.0.0",
68
+ "@strapi/utils": "^5.0.0",
69
+ "react": "^17.0.0 || ^18.0.0",
70
+ "react-dom": "^17.0.0 || ^18.0.0",
71
+ "styled-components": "^6.0.0"
72
+ },
73
+ "strapi": {
74
+ "kind": "plugin",
75
+ "name": "hubspot",
76
+ "displayName": "HubSpot",
77
+ "description": "Pick HubSpot CRM properties from a searchable list, and validate mappings on save."
78
+ },
79
+ "engines": {
80
+ "node": ">=18.0.0"
81
+ }
82
+ }