@marvalt/digivalt-core 0.1.7 → 0.2.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +32 -4
  3. package/bin/init.cjs +42 -7
  4. package/dist/config.cjs +520 -0
  5. package/dist/config.cjs.map +1 -0
  6. package/dist/config.d.ts +307 -0
  7. package/dist/config.esm.js +502 -0
  8. package/dist/config.esm.js.map +1 -0
  9. package/dist/generators.cjs +2481 -0
  10. package/dist/generators.cjs.map +1 -0
  11. package/dist/generators.d.ts +19 -0
  12. package/dist/generators.esm.js +2475 -0
  13. package/dist/generators.esm.js.map +1 -0
  14. package/dist/index.cjs +18 -7955
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.ts +18 -1196
  17. package/dist/index.esm.js +13 -7929
  18. package/dist/index.esm.js.map +1 -1
  19. package/dist/runtime/env.d.ts +4 -0
  20. package/dist/runtime/lazy.d.ts +1 -0
  21. package/dist/services/cf-wp-webhook.d.ts +2 -0
  22. package/dist/services/gravityForms.d.ts +3 -0
  23. package/dist/services/mautic.d.ts +5 -1
  24. package/dist/services/suitecrm.d.ts +2 -0
  25. package/dist/services.cjs +1339 -0
  26. package/dist/services.cjs.map +1 -0
  27. package/dist/services.d.ts +432 -0
  28. package/dist/services.esm.js +1322 -0
  29. package/dist/services.esm.js.map +1 -0
  30. package/dist/static/index.d.ts +4 -0
  31. package/dist/static.cjs +997 -0
  32. package/dist/static.cjs.map +1 -0
  33. package/dist/static.d.ts +410 -0
  34. package/dist/static.esm.js +962 -0
  35. package/dist/static.esm.js.map +1 -0
  36. package/dist/types.cjs +3 -0
  37. package/dist/types.cjs.map +1 -0
  38. package/dist/types.d.ts +134 -0
  39. package/dist/types.esm.js +2 -0
  40. package/dist/types.esm.js.map +1 -0
  41. package/package.json +30 -2
  42. package/template/DIGIVALT_SETUP.md +62 -0
  43. package/template/scripts/deploy-secrets.js +55 -23
  44. package/template/scripts/generate.ts +3 -17
@@ -0,0 +1,4 @@
1
+ export declare const getEnv: (key: string) => string | undefined;
2
+ export declare const isDevEnvironment: () => boolean;
3
+ export declare const isBrowserEnvironment: () => boolean;
4
+ export declare const isLocalDevelopmentEnabled: () => boolean;
@@ -0,0 +1 @@
1
+ export declare const createLazyProxy: <T extends object>(factory: () => T) => T;
@@ -75,5 +75,7 @@ declare class CfWpWebhookService {
75
75
  fully_configured: boolean;
76
76
  };
77
77
  }
78
+ export declare const getCfWpWebhookService: () => CfWpWebhookService;
79
+ export declare const resetCfWpWebhookService: () => void;
78
80
  export declare const cfWpWebhookService: CfWpWebhookService;
79
81
  export default cfWpWebhookService;
@@ -4,6 +4,9 @@
4
4
  */
5
5
  import { GravityFormsClient } from '@marvalt/wadapter';
6
6
  export type { GravityForm, GravityFormField, GravityFormSubmission, GravityFormSubmissionResult, GravityFormsConfig, } from '@marvalt/wadapter';
7
+ export declare const createGravityFormsClient: () => GravityFormsClient;
8
+ export declare const getGravityFormsClient: () => GravityFormsClient;
9
+ export declare const resetGravityFormsClient: () => void;
7
10
  export declare const gravityFormsClient: GravityFormsClient;
8
11
  export interface GravityFormEntry {
9
12
  [fieldId: string]: any;
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Mautic Integration Service (via @marvalt/madapter)
3
3
  */
4
+ import { MauticClient } from '@marvalt/madapter';
4
5
  export interface MauticContact {
5
6
  id?: number;
6
7
  email: string;
@@ -79,4 +80,7 @@ export interface MauticFormConfig {
79
80
  formType?: string;
80
81
  isPublished?: boolean;
81
82
  }
82
- export declare const mauticService: any;
83
+ export declare const createMauticService: () => MauticClient;
84
+ export declare const getMauticService: () => MauticClient;
85
+ export declare const resetMauticService: () => void;
86
+ export declare const mauticService: MauticClient;
@@ -94,5 +94,7 @@ declare class SuiteCRMService {
94
94
  testConnection(): Promise<boolean>;
95
95
  createLeadSimple(leadData: SuiteCRMLead): Promise<SuiteCRMAPIResponse>;
96
96
  }
97
+ export declare const getSuiteCRMService: () => SuiteCRMService;
98
+ export declare const resetSuiteCRMService: () => void;
97
99
  export declare const suitecrmService: SuiteCRMService;
98
100
  export {};