@23blocks/block-forms 3.3.0 → 5.0.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 (71) hide show
  1. package/CHANGELOG.md +352 -0
  2. package/README.md +107 -138
  3. package/dist/index.esm.js +509 -172
  4. package/dist/src/lib/forms.block.d.ts +1 -5
  5. package/dist/src/lib/forms.block.d.ts.map +1 -1
  6. package/dist/src/lib/mappers/application-form.mapper.d.ts.map +1 -1
  7. package/dist/src/lib/mappers/appointment.mapper.d.ts.map +1 -1
  8. package/dist/src/lib/mappers/form-instance.mapper.d.ts.map +1 -1
  9. package/dist/src/lib/mappers/form-schema.mapper.d.ts.map +1 -1
  10. package/dist/src/lib/mappers/form-set.mapper.d.ts.map +1 -1
  11. package/dist/src/lib/mappers/form.mapper.d.ts.map +1 -1
  12. package/dist/src/lib/mappers/landing.mapper.d.ts.map +1 -1
  13. package/dist/src/lib/mappers/mail-template.mapper.d.ts.map +1 -1
  14. package/dist/src/lib/mappers/referral.mapper.d.ts.map +1 -1
  15. package/dist/src/lib/mappers/subscription.mapper.d.ts.map +1 -1
  16. package/dist/src/lib/mappers/survey.mapper.d.ts.map +1 -1
  17. package/dist/src/lib/mappers/utils.d.ts +2 -2
  18. package/dist/src/lib/mappers/utils.d.ts.map +1 -1
  19. package/dist/src/lib/services/application-forms.service.d.ts +1 -40
  20. package/dist/src/lib/services/application-forms.service.d.ts.map +1 -1
  21. package/dist/src/lib/services/appointments.service.d.ts +1 -54
  22. package/dist/src/lib/services/appointments.service.d.ts.map +1 -1
  23. package/dist/src/lib/services/crm-sync.service.d.ts +3 -35
  24. package/dist/src/lib/services/crm-sync.service.d.ts.map +1 -1
  25. package/dist/src/lib/services/form-instances.service.d.ts +1 -56
  26. package/dist/src/lib/services/form-instances.service.d.ts.map +1 -1
  27. package/dist/src/lib/services/form-schema-versions.service.d.ts +1 -45
  28. package/dist/src/lib/services/form-schema-versions.service.d.ts.map +1 -1
  29. package/dist/src/lib/services/form-schemas.service.d.ts +1 -32
  30. package/dist/src/lib/services/form-schemas.service.d.ts.map +1 -1
  31. package/dist/src/lib/services/form-sets.service.d.ts +1 -37
  32. package/dist/src/lib/services/form-sets.service.d.ts.map +1 -1
  33. package/dist/src/lib/services/forms.service.d.ts +1 -27
  34. package/dist/src/lib/services/forms.service.d.ts.map +1 -1
  35. package/dist/src/lib/services/landings.service.d.ts +1 -32
  36. package/dist/src/lib/services/landings.service.d.ts.map +1 -1
  37. package/dist/src/lib/services/mail-templates.service.d.ts +1 -32
  38. package/dist/src/lib/services/mail-templates.service.d.ts.map +1 -1
  39. package/dist/src/lib/services/referrals.service.d.ts +1 -32
  40. package/dist/src/lib/services/referrals.service.d.ts.map +1 -1
  41. package/dist/src/lib/services/subscriptions.service.d.ts +1 -32
  42. package/dist/src/lib/services/subscriptions.service.d.ts.map +1 -1
  43. package/dist/src/lib/services/surveys.service.d.ts +1 -59
  44. package/dist/src/lib/services/surveys.service.d.ts.map +1 -1
  45. package/dist/src/lib/types/application-form.d.ts +0 -21
  46. package/dist/src/lib/types/application-form.d.ts.map +1 -1
  47. package/dist/src/lib/types/appointment.d.ts +68 -18
  48. package/dist/src/lib/types/appointment.d.ts.map +1 -1
  49. package/dist/src/lib/types/crm-sync.d.ts +5 -4
  50. package/dist/src/lib/types/crm-sync.d.ts.map +1 -1
  51. package/dist/src/lib/types/form-instance.d.ts +22 -20
  52. package/dist/src/lib/types/form-instance.d.ts.map +1 -1
  53. package/dist/src/lib/types/form-schema-version.d.ts +6 -6
  54. package/dist/src/lib/types/form-schema-version.d.ts.map +1 -1
  55. package/dist/src/lib/types/form-schema.d.ts +6 -11
  56. package/dist/src/lib/types/form-schema.d.ts.map +1 -1
  57. package/dist/src/lib/types/form-set.d.ts +45 -19
  58. package/dist/src/lib/types/form-set.d.ts.map +1 -1
  59. package/dist/src/lib/types/form.d.ts +60 -2
  60. package/dist/src/lib/types/form.d.ts.map +1 -1
  61. package/dist/src/lib/types/landing.d.ts +45 -11
  62. package/dist/src/lib/types/landing.d.ts.map +1 -1
  63. package/dist/src/lib/types/mail-template.d.ts +45 -21
  64. package/dist/src/lib/types/mail-template.d.ts.map +1 -1
  65. package/dist/src/lib/types/referral.d.ts +61 -21
  66. package/dist/src/lib/types/referral.d.ts.map +1 -1
  67. package/dist/src/lib/types/subscription.d.ts +39 -8
  68. package/dist/src/lib/types/subscription.d.ts.map +1 -1
  69. package/dist/src/lib/types/survey.d.ts +42 -6
  70. package/dist/src/lib/types/survey.d.ts.map +1 -1
  71. package/package.json +3 -1
@@ -1,39 +1,13 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
2
  import type { Form, CreateFormRequest, UpdateFormRequest, ListFormsParams } from '../types/form.js';
3
3
  export interface FormsService {
4
- /**
5
- * List all forms
6
- * @param params - Optional filtering by status, form type, search term, and pagination
7
- * @returns Paginated result containing Form items and metadata
8
- */
9
4
  list(params?: ListFormsParams): Promise<PageResult<Form>>;
10
- /**
11
- * Get a specific form
12
- * @param uniqueId - The unique identifier of the form
13
- * @returns The matching Form record
14
- */
15
5
  get(uniqueId: string): Promise<Form>;
16
- /**
17
- * Create a new form
18
- * @param data - Form details including code, name, description, and form type
19
- * @returns The newly created Form record
20
- */
21
6
  create(data: CreateFormRequest): Promise<Form>;
22
- /**
23
- * Update an existing form
24
- * @param uniqueId - The unique identifier of the form to update
25
- * @param data - Fields to update such as name, description, type, or status
26
- * @returns The updated Form record
27
- */
28
7
  update(uniqueId: string, data: UpdateFormRequest): Promise<Form>;
29
- /**
30
- * Delete a form
31
- * @param uniqueId - The unique identifier of the form to delete
32
- * @returns Resolves when the form has been deleted
33
- */
34
8
  delete(uniqueId: string): Promise<void>;
35
9
  }
36
10
  export declare function createFormsService(transport: Transport, _config: {
37
- appId: string;
11
+ apiKey: string;
38
12
  }): FormsService;
39
13
  //# sourceMappingURL=forms.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"forms.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/forms.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,IAAI,EACJ,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAG1B,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,IAAI,CAAC,MAAM,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IAE1D;;;;OAIG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAErC;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/C;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjE;;;;OAIG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzC;AAED,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,CAmDjG"}
1
+ {"version":3,"file":"forms.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/forms.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,IAAI,EACJ,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAG1B,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,MAAM,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IAC1D,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACjE,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzC;AAED,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,CA0FlG"}
@@ -1,44 +1,13 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
2
  import type { Landing, CreateLandingRequest, UpdateLandingRequest, ListLandingsParams } from '../types/landing.js';
3
3
  export interface LandingsService {
4
- /**
5
- * List all landing page submissions for a form
6
- * @param formUniqueId - The unique identifier of the parent form
7
- * @param params - Optional filtering by status and pagination
8
- * @returns Paginated result containing Landing items and metadata
9
- */
10
4
  list(formUniqueId: string, params?: ListLandingsParams): Promise<PageResult<Landing>>;
11
- /**
12
- * Get a specific landing page submission
13
- * @param formUniqueId - The unique identifier of the parent form
14
- * @param uniqueId - The unique identifier of the landing submission
15
- * @returns The matching Landing record
16
- */
17
5
  get(formUniqueId: string, uniqueId: string): Promise<Landing>;
18
- /**
19
- * Submit a new landing page form
20
- * @param formUniqueId - The unique identifier of the parent form
21
- * @param data - Submission details including contact information and form data
22
- * @returns The newly created Landing record
23
- */
24
6
  submit(formUniqueId: string, data: CreateLandingRequest): Promise<Landing>;
25
- /**
26
- * Update a landing page submission
27
- * @param formUniqueId - The unique identifier of the parent form
28
- * @param uniqueId - The unique identifier of the landing submission to update
29
- * @param data - Fields to update such as contact info, data, or status
30
- * @returns The updated Landing record
31
- */
32
7
  update(formUniqueId: string, uniqueId: string, data: UpdateLandingRequest): Promise<Landing>;
33
- /**
34
- * Delete a landing page submission
35
- * @param formUniqueId - The unique identifier of the parent form
36
- * @param uniqueId - The unique identifier of the landing submission to delete
37
- * @returns Resolves when the submission has been deleted
38
- */
39
8
  delete(formUniqueId: string, uniqueId: string): Promise<void>;
40
9
  }
41
10
  export declare function createLandingsService(transport: Transport, _config: {
42
- appId: string;
11
+ apiKey: string;
43
12
  }): LandingsService;
44
13
  //# sourceMappingURL=landings.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"landings.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/landings.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,OAAO,EACP,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAG7B,MAAM,WAAW,eAAe;IAC9B;;;;;OAKG;IACH,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;IAEtF;;;;;OAKG;IACH,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE9D;;;;;OAKG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE3E;;;;;;OAMG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE7F;;;;;OAKG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/D;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,eAAe,CAqDvG"}
1
+ {"version":3,"file":"landings.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/landings.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,OAAO,EACP,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAG7B,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;IACtF,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9D,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3E,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7F,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/D;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,eAAe,CA2ExG"}
@@ -1,45 +1,14 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
2
  import type { MailTemplate, CreateMailTemplateRequest, UpdateMailTemplateRequest, ListMailTemplatesParams, MailTemplateStats } from '../types/mail-template.js';
3
3
  export interface MailTemplatesService {
4
- /**
5
- * List all mail templates
6
- * @param params - Optional filtering by status, provider, and pagination
7
- * @returns Paginated result containing MailTemplate items and metadata
8
- */
9
4
  list(params?: ListMailTemplatesParams): Promise<PageResult<MailTemplate>>;
10
- /**
11
- * Get a specific mail template
12
- * @param uniqueId - The unique identifier of the mail template
13
- * @returns The matching MailTemplate record
14
- */
15
5
  get(uniqueId: string): Promise<MailTemplate>;
16
- /**
17
- * Create a new mail template
18
- * @param data - Template details including name, subject, content, and sender configuration
19
- * @returns The newly created MailTemplate record
20
- */
21
6
  create(data: CreateMailTemplateRequest): Promise<MailTemplate>;
22
- /**
23
- * Update an existing mail template
24
- * @param uniqueId - The unique identifier of the template to update
25
- * @param data - Fields to update such as subject, content, or sender configuration
26
- * @returns The updated MailTemplate record
27
- */
28
7
  update(uniqueId: string, data: UpdateMailTemplateRequest): Promise<MailTemplate>;
29
- /**
30
- * Delete a mail template
31
- * @param uniqueId - The unique identifier of the template to delete
32
- * @returns Resolves when the template has been deleted
33
- */
34
8
  delete(uniqueId: string): Promise<void>;
35
- /**
36
- * Get usage statistics for a mail template
37
- * @param uniqueId - The unique identifier of the mail template
38
- * @returns Statistics object with send/open/click metrics for the template
39
- */
40
9
  getStats(uniqueId: string): Promise<MailTemplateStats>;
41
10
  }
42
11
  export declare function createMailTemplatesService(transport: Transport, _config: {
43
- appId: string;
12
+ apiKey: string;
44
13
  }): MailTemplatesService;
45
14
  //# sourceMappingURL=mail-templates.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mail-templates.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/mail-templates.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,YAAY,EACZ,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,2BAA2B,CAAC;AAGnC,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,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AAY,CAAC,CAAC;IAC/D,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IACjF,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACxD;AAED,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,oBAAoB,CAiFlH"}
@@ -1,44 +1,13 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
2
  import type { Referral, CreateReferralRequest, UpdateReferralRequest, ListReferralsParams } from '../types/referral.js';
3
3
  export interface ReferralsService {
4
- /**
5
- * List all referrals for a form
6
- * @param formUniqueId - The unique identifier of the parent form
7
- * @param params - Optional filtering by status, referrer, and pagination
8
- * @returns Paginated result containing Referral items and metadata
9
- */
10
4
  list(formUniqueId: string, params?: ListReferralsParams): Promise<PageResult<Referral>>;
11
- /**
12
- * Get a specific referral
13
- * @param formUniqueId - The unique identifier of the parent form
14
- * @param uniqueId - The unique identifier of the referral
15
- * @returns The matching Referral record
16
- */
17
5
  get(formUniqueId: string, uniqueId: string): Promise<Referral>;
18
- /**
19
- * Create a new referral
20
- * @param formUniqueId - The unique identifier of the parent form
21
- * @param data - Referral details including referrer and referee contact information
22
- * @returns The newly created Referral record
23
- */
24
6
  create(formUniqueId: string, data: CreateReferralRequest): Promise<Referral>;
25
- /**
26
- * Update an existing referral
27
- * @param formUniqueId - The unique identifier of the parent form
28
- * @param uniqueId - The unique identifier of the referral to update
29
- * @param data - Fields to update such as referee info, data, or status
30
- * @returns The updated Referral record
31
- */
32
7
  update(formUniqueId: string, uniqueId: string, data: UpdateReferralRequest): Promise<Referral>;
33
- /**
34
- * Delete a referral
35
- * @param formUniqueId - The unique identifier of the parent form
36
- * @param uniqueId - The unique identifier of the referral to delete
37
- * @returns Resolves when the referral has been deleted
38
- */
39
8
  delete(formUniqueId: string, uniqueId: string): Promise<void>;
40
9
  }
41
10
  export declare function createReferralsService(transport: Transport, _config: {
42
- appId: string;
11
+ apiKey: string;
43
12
  }): ReferralsService;
44
13
  //# sourceMappingURL=referrals.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"referrals.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/referrals.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,QAAQ,EACR,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;IAExF;;;;;OAKG;IACH,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAE/D;;;;;OAKG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAE7E;;;;;;OAMG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAE/F;;;;;OAKG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/D;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,gBAAgB,CAqDzG"}
1
+ {"version":3,"file":"referrals.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/referrals.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,QAAQ,EACR,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxF,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC/D,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC7E,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC/F,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/D;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,gBAAgB,CA+E1G"}
@@ -1,44 +1,13 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
2
  import type { Subscription, CreateSubscriptionRequest, UpdateSubscriptionRequest, ListSubscriptionsParams } from '../types/subscription.js';
3
3
  export interface SubscriptionsService {
4
- /**
5
- * List all subscriptions for a form
6
- * @param formUniqueId - The unique identifier of the parent form
7
- * @param params - Optional filtering by status and pagination
8
- * @returns Paginated result containing Subscription items and metadata
9
- */
10
4
  list(formUniqueId: string, params?: ListSubscriptionsParams): Promise<PageResult<Subscription>>;
11
- /**
12
- * Get a specific subscription
13
- * @param formUniqueId - The unique identifier of the parent form
14
- * @param uniqueId - The unique identifier of the subscription
15
- * @returns The matching Subscription record
16
- */
17
5
  get(formUniqueId: string, uniqueId: string): Promise<Subscription>;
18
- /**
19
- * Submit a new subscription
20
- * @param formUniqueId - The unique identifier of the parent form
21
- * @param data - Subscription details including email, name, phone, and form data
22
- * @returns The newly created Subscription record
23
- */
24
6
  submit(formUniqueId: string, data: CreateSubscriptionRequest): Promise<Subscription>;
25
- /**
26
- * Update an existing subscription
27
- * @param formUniqueId - The unique identifier of the parent form
28
- * @param uniqueId - The unique identifier of the subscription to update
29
- * @param data - Fields to update such as contact info, data, or status
30
- * @returns The updated Subscription record
31
- */
32
7
  update(formUniqueId: string, uniqueId: string, data: UpdateSubscriptionRequest): Promise<Subscription>;
33
- /**
34
- * Delete a subscription
35
- * @param formUniqueId - The unique identifier of the parent form
36
- * @param uniqueId - The unique identifier of the subscription to delete
37
- * @returns Resolves when the subscription has been deleted
38
- */
39
8
  delete(formUniqueId: string, uniqueId: string): Promise<void>;
40
9
  }
41
10
  export declare function createSubscriptionsService(transport: Transport, _config: {
42
- appId: string;
11
+ apiKey: string;
43
12
  }): SubscriptionsService;
44
13
  //# sourceMappingURL=subscriptions.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptions.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/subscriptions.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,YAAY,EACZ,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAGlC,MAAM,WAAW,oBAAoB;IACnC;;;;;OAKG;IACH,I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CAAC;IACnE,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IACrF,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IACvG,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/D;AAED,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,oBAAoB,CAuElH"}
@@ -1,75 +1,17 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
2
  import type { Survey, SurveyStatus, CreateSurveyRequest, UpdateSurveyRequest, UpdateSurveyStatusRequest, ListSurveysParams } from '../types/survey.js';
3
3
  export interface SurveysService {
4
- /**
5
- * List all survey instances for a form
6
- * @param formUniqueId - The unique identifier of the parent form
7
- * @param params - Optional filtering by status, user, and pagination
8
- * @returns Paginated result containing Survey items and metadata
9
- */
10
4
  list(formUniqueId: string, params?: ListSurveysParams): Promise<PageResult<Survey>>;
11
- /**
12
- * List survey instances filtered by a specific status
13
- * @param formUniqueId - The unique identifier of the parent form
14
- * @param status - The survey status to filter by
15
- * @param params - Optional additional filtering by user and pagination
16
- * @returns Paginated result containing Survey items matching the status
17
- */
18
5
  listByStatus(formUniqueId: string, status: SurveyStatus, params?: ListSurveysParams): Promise<PageResult<Survey>>;
19
- /**
20
- * Get a specific survey instance
21
- * @param formUniqueId - The unique identifier of the parent form
22
- * @param uniqueId - The unique identifier of the survey instance
23
- * @returns The matching Survey record
24
- */
25
6
  get(formUniqueId: string, uniqueId: string): Promise<Survey>;
26
- /**
27
- * Create a new survey instance
28
- * @param formUniqueId - The unique identifier of the parent form
29
- * @param data - Survey details including user/contact info and initial data
30
- * @returns The newly created Survey record
31
- */
32
7
  create(formUniqueId: string, data: CreateSurveyRequest): Promise<Survey>;
33
- /**
34
- * Update a survey instance
35
- * @param formUniqueId - The unique identifier of the parent form
36
- * @param uniqueId - The unique identifier of the survey to update
37
- * @param data - Fields to update such as contact info, data, or status
38
- * @returns The updated Survey record
39
- */
40
8
  update(formUniqueId: string, uniqueId: string, data: UpdateSurveyRequest): Promise<Survey>;
41
- /**
42
- * Delete a survey instance
43
- * @param formUniqueId - The unique identifier of the parent form
44
- * @param uniqueId - The unique identifier of the survey to delete
45
- * @returns Resolves when the survey has been deleted
46
- */
47
9
  delete(formUniqueId: string, uniqueId: string): Promise<void>;
48
- /**
49
- * Update only the status of a survey instance
50
- * @param formUniqueId - The unique identifier of the parent form
51
- * @param uniqueId - The unique identifier of the survey
52
- * @param data - The new status value
53
- * @returns The updated Survey record with the new status
54
- */
55
10
  updateStatus(formUniqueId: string, uniqueId: string, data: UpdateSurveyStatusRequest): Promise<Survey>;
56
- /**
57
- * Resend magic link for a survey instance
58
- * @param formUniqueId - The unique identifier of the parent form
59
- * @param uniqueId - The unique identifier of the survey
60
- * @returns Resolves when the magic link email has been sent
61
- */
62
11
  resendMagicLink(formUniqueId: string, uniqueId: string): Promise<void>;
63
- /**
64
- * List all surveys assigned to a specific user
65
- * @param userUniqueId - The unique identifier of the user
66
- * @param params - Optional filtering by status and pagination
67
- * @returns Paginated result of Survey records for the given user
68
- * @note Uses POST to query across all forms for a user
69
- */
70
12
  listByUser(userUniqueId: string, params?: ListSurveysParams): Promise<PageResult<Survey>>;
71
13
  }
72
14
  export declare function createSurveysService(transport: Transport, _config: {
73
- appId: string;
15
+ apiKey: string;
74
16
  }): SurveysService;
75
17
  //# sourceMappingURL=surveys.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"surveys.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/surveys.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UA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O,CAAC,IAAI,CAAC,CAAC;IAC9D,YAAY,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACvG,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvE,UAAU,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;CAC3F;AAED,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,cAAc,CAgHtG"}
@@ -16,24 +16,17 @@ export interface ApplicationForm extends IdentityCore {
16
16
  settings?: Record<string, unknown>;
17
17
  status: EntityStatus;
18
18
  payload?: Record<string, unknown>;
19
- /** Current verification status - 'pending' requires OTP, 'verified' means full access */
20
19
  verificationStatus?: VerificationStatus;
21
- /** Name of the user assigned to fill the form (visible even when pending) */
22
20
  assignedToName?: string;
23
- /** Masked email address for display (e.g., "j***e@e***e.com") */
24
21
  maskedEmail?: string;
25
- /** Whether an OTP has already been sent */
26
22
  otpSent?: boolean;
27
- /** Form name for display during verification */
28
23
  formName?: string;
29
24
  }
30
25
  export interface ApplicationFormSubmission {
31
26
  data: Record<string, unknown>;
32
- payload?: Record<string, unknown>;
33
27
  }
34
28
  export interface ApplicationFormDraft {
35
29
  data: Record<string, unknown>;
36
- payload?: Record<string, unknown>;
37
30
  }
38
31
  export interface ApplicationFormResponse extends IdentityCore {
39
32
  formUniqueId: string;
@@ -42,34 +35,20 @@ export interface ApplicationFormResponse extends IdentityCore {
42
35
  submittedAt?: Date;
43
36
  payload?: Record<string, unknown>;
44
37
  }
45
- /**
46
- * Response from sending an OTP code
47
- */
48
38
  export interface SendOtpResponse {
49
39
  message: string;
50
40
  maskedEmail: string;
51
41
  expiresIn: number;
52
42
  sentCount: number;
53
43
  }
54
- /**
55
- * Request to verify an OTP code
56
- */
57
44
  export interface VerifyOtpRequest {
58
45
  code: string;
59
46
  }
60
- /**
61
- * OTP error codes returned by the API
62
- */
63
47
  export type OtpErrorCode = 'OTP_NOT_REQUIRED' | 'ALREADY_VERIFIED' | 'RATE_LIMITED' | 'CODE_REQUIRED' | 'INVALID_CODE' | 'CODE_EXPIRED' | 'ATTEMPTS_EXCEEDED' | 'OTP_REQUIRED';
64
- /**
65
- * Extended error information for OTP operations
66
- */
67
48
  export interface OtpError {
68
49
  code: OtpErrorCode;
69
50
  message: string;
70
- /** Seconds to wait before retrying (for RATE_LIMITED errors) */
71
51
  retryAfter?: number;
72
- /** Remaining verification attempts (for INVALID_CODE errors) */
73
52
  attemptsRemaining?: number;
74
53
  }
75
54
  //# sourceMappingURL=application-form.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"application-form.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/application-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,UAAU,CAAC;AAExD;;;GAGG;AACH,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO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,cAAc,CAAC;AAEnB;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B"}
1
+ {"version":3,"file":"application-form.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/application-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,UAAU,CAAC;AAExD;;;GAGG;AACH,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAGlC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,uBAAwB,SAAQ,YAAY;IAC3D,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,MAAM,EAAE,YAAY,CAAC;IACrB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAMD,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,YAAY,GACpB,kBAAkB,GAClB,kBAAkB,GAClB,cAAc,GACd,eAAe,GACf,cAAc,GACd,cAAc,GACd,mBAAmB,GACnB,cAAc,CAAC;AAEnB,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B"}
@@ -4,14 +4,30 @@ export interface Appointment extends IdentityCore {
4
4
  userUniqueId?: string;
5
5
  email?: string;
6
6
  firstName?: string;
7
+ middleName?: string;
7
8
  lastName?: string;
8
- phone?: string;
9
- scheduledAt: Date;
9
+ phoneNumber?: string;
10
+ selectedOption?: string;
11
+ formFields?: Record<string, unknown>;
12
+ startAt: Date;
13
+ endAt?: Date;
10
14
  duration?: number;
11
- timezone?: string;
12
- location?: string;
15
+ locationUniqueId?: string;
16
+ locationName?: string;
17
+ locationAddress?: string;
18
+ assignedToUniqueId?: string;
19
+ assignedToName?: string;
20
+ assignedToEmail?: string;
21
+ assignedToPhone?: string;
13
22
  notes?: string;
14
- data: Record<string, unknown>;
23
+ source?: string;
24
+ sourceAlias?: string;
25
+ sourceId?: string;
26
+ sourceType?: string;
27
+ visitorUniqueId?: string;
28
+ visitorType?: string;
29
+ touchId?: string;
30
+ touchReferenceId?: string;
15
31
  status: EntityStatus;
16
32
  confirmedAt?: Date;
17
33
  cancelledAt?: Date;
@@ -21,29 +37,59 @@ export interface CreateAppointmentRequest {
21
37
  formUniqueId?: string;
22
38
  email?: string;
23
39
  firstName?: string;
40
+ middleName?: string;
24
41
  lastName?: string;
25
- phone?: string;
26
- scheduledAt: string | Date;
42
+ phoneNumber?: string;
43
+ selectedOption?: string;
44
+ formFields?: Record<string, unknown>;
45
+ startAt: string | Date;
46
+ endAt?: string | Date;
27
47
  duration?: number;
28
- timezone?: string;
29
- location?: string;
48
+ locationUniqueId?: string;
49
+ locationName?: string;
50
+ locationAddress?: string;
51
+ assignedToUniqueId?: string;
52
+ assignedToName?: string;
53
+ assignedToEmail?: string;
54
+ assignedToPhone?: string;
30
55
  notes?: string;
31
- data?: Record<string, unknown>;
32
- payload?: Record<string, unknown>;
56
+ source?: string;
57
+ sourceAlias?: string;
58
+ sourceId?: string;
59
+ sourceType?: string;
60
+ visitorUniqueId?: string;
61
+ visitorType?: string;
62
+ touchId?: string;
63
+ touchReferenceId?: string;
33
64
  }
34
65
  export interface UpdateAppointmentRequest {
35
66
  email?: string;
36
67
  firstName?: string;
68
+ middleName?: string;
37
69
  lastName?: string;
38
- phone?: string;
39
- scheduledAt?: string | Date;
70
+ phoneNumber?: string;
71
+ selectedOption?: string;
72
+ formFields?: Record<string, unknown>;
73
+ startAt?: string | Date;
74
+ endAt?: string | Date;
40
75
  duration?: number;
41
- timezone?: string;
42
- location?: string;
76
+ locationUniqueId?: string;
77
+ locationName?: string;
78
+ locationAddress?: string;
79
+ assignedToUniqueId?: string;
80
+ assignedToName?: string;
81
+ assignedToEmail?: string;
82
+ assignedToPhone?: string;
43
83
  notes?: string;
44
- data?: Record<string, unknown>;
84
+ source?: string;
85
+ sourceAlias?: string;
86
+ sourceId?: string;
87
+ sourceType?: string;
88
+ visitorUniqueId?: string;
89
+ visitorType?: string;
90
+ touchId?: string;
91
+ touchReferenceId?: string;
45
92
  status?: EntityStatus;
46
- payload?: Record<string, unknown>;
47
93
  }
48
94
  export interface ListAppointmentsParams {
49
95
  page?: number;
@@ -56,10 +102,14 @@ export interface ListAppointmentsParams {
56
102
  }
57
103
  export interface AppointmentReportRequest {
58
104
  formUniqueId?: string;
105
+ userUniqueId?: string;
106
+ source?: string;
107
+ datePart?: string;
59
108
  fromDate?: string | Date;
60
109
  toDate?: string | Date;
61
110
  status?: EntityStatus;
62
- groupBy?: string;
111
+ page?: number;
112
+ records?: number;
63
113
  }
64
114
  export interface AppointmentReportSummary {
65
115
  total: number;
@@ -1 +1 @@
1
- {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/appointment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEtE,MAAM,WAAW,WAAY,SAAQ,YAAY;IAC/C,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,MAAM,EAAE,YAAY,CAAC;IACrB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,IAAI,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AAC;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC"}
@@ -5,10 +5,11 @@ export interface CrmSyncResult {
5
5
  errors?: string[];
6
6
  }
7
7
  export interface CrmSyncBatchRequest {
8
- /** Type of records to sync */
9
- recordType: 'landing' | 'subscription' | 'appointment';
10
- /** Record unique IDs to sync */
11
- uniqueIds: string[];
8
+ limit?: number;
9
+ syncLandings?: boolean;
10
+ syncSubscriptions?: boolean;
11
+ syncAppointments?: boolean;
12
+ appointmentsAsType?: string;
12
13
  }
13
14
  export interface CrmSyncBatchResult {
14
15
  total: number;
@@ -1 +1 @@
1
- {"version":3,"file":"crm-sync.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/crm-sync.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,8BAA8B;IAC9B,UAAU,EAAE,SAAS,GAAG,cAAc,GAAG,aAAa,CAAC;IACvD,gCAAgC;IAChC,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,KAAK,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,OAAO,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,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