@23blocks/block-forms 3.1.1 → 3.1.3
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/index.esm.js +9 -9
- package/dist/src/index.d.ts +16 -4
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/lib/forms.block.d.ts +3 -3
- package/dist/src/lib/forms.block.d.ts.map +1 -1
- package/dist/src/lib/mappers/application-form.mapper.d.ts +5 -0
- package/dist/src/lib/mappers/application-form.mapper.d.ts.map +1 -0
- package/dist/src/lib/mappers/index.d.ts +1 -1
- package/dist/src/lib/mappers/index.d.ts.map +1 -1
- package/dist/src/lib/services/application-forms.service.d.ts +11 -0
- package/dist/src/lib/services/application-forms.service.d.ts.map +1 -0
- package/dist/src/lib/services/index.d.ts +1 -1
- package/dist/src/lib/services/index.d.ts.map +1 -1
- package/dist/src/lib/types/{public-form.d.ts → application-form.d.ts} +5 -5
- package/dist/src/lib/types/application-form.d.ts.map +1 -0
- package/dist/src/lib/types/index.d.ts +1 -1
- package/dist/src/lib/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/src/lib/mappers/public-form.mapper.d.ts +0 -5
- package/dist/src/lib/mappers/public-form.mapper.d.ts.map +0 -1
- package/dist/src/lib/services/public-forms.service.d.ts +0 -11
- package/dist/src/lib/services/public-forms.service.d.ts.map +0 -1
- package/dist/src/lib/types/public-form.d.ts.map +0 -1
package/dist/index.esm.js
CHANGED
|
@@ -981,7 +981,7 @@ function createMailTemplatesService(transport, _config) {
|
|
|
981
981
|
};
|
|
982
982
|
}
|
|
983
983
|
|
|
984
|
-
const
|
|
984
|
+
const applicationFormMapper = {
|
|
985
985
|
type: 'public_form',
|
|
986
986
|
map: (resource)=>{
|
|
987
987
|
var _parseString, _resource_attributes_schema;
|
|
@@ -1000,7 +1000,7 @@ const publicFormMapper = {
|
|
|
1000
1000
|
};
|
|
1001
1001
|
}
|
|
1002
1002
|
};
|
|
1003
|
-
const
|
|
1003
|
+
const applicationFormResponseMapper = {
|
|
1004
1004
|
type: 'form_response',
|
|
1005
1005
|
map: (resource)=>{
|
|
1006
1006
|
var _parseString, _resource_attributes_data;
|
|
@@ -1017,11 +1017,11 @@ const publicFormResponseMapper = {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
};
|
|
1019
1019
|
|
|
1020
|
-
function
|
|
1020
|
+
function createApplicationFormsService(transport, _config) {
|
|
1021
1021
|
return {
|
|
1022
1022
|
async get (urlId) {
|
|
1023
1023
|
const response = await transport.get(`/${urlId}/forms/public`);
|
|
1024
|
-
return decodeOne(response,
|
|
1024
|
+
return decodeOne(response, applicationFormMapper);
|
|
1025
1025
|
},
|
|
1026
1026
|
async submit (urlId, data) {
|
|
1027
1027
|
const response = await transport.post(`/${urlId}/forms/public`, {
|
|
@@ -1030,7 +1030,7 @@ function createPublicFormsService(transport, _config) {
|
|
|
1030
1030
|
payload: data.payload
|
|
1031
1031
|
}
|
|
1032
1032
|
});
|
|
1033
|
-
return decodeOne(response,
|
|
1033
|
+
return decodeOne(response, applicationFormResponseMapper);
|
|
1034
1034
|
},
|
|
1035
1035
|
async draft (urlId, data) {
|
|
1036
1036
|
const response = await transport.put(`/${urlId}/forms/public`, {
|
|
@@ -1039,7 +1039,7 @@ function createPublicFormsService(transport, _config) {
|
|
|
1039
1039
|
payload: data.payload
|
|
1040
1040
|
}
|
|
1041
1041
|
});
|
|
1042
|
-
return decodeOne(response,
|
|
1042
|
+
return decodeOne(response, applicationFormResponseMapper);
|
|
1043
1043
|
}
|
|
1044
1044
|
};
|
|
1045
1045
|
}
|
|
@@ -1136,7 +1136,7 @@ function createFormsBlock(transport, config) {
|
|
|
1136
1136
|
surveys: createSurveysService(transport),
|
|
1137
1137
|
referrals: createReferralsService(transport),
|
|
1138
1138
|
mailTemplates: createMailTemplatesService(transport),
|
|
1139
|
-
|
|
1139
|
+
applicationForms: createApplicationFormsService(transport),
|
|
1140
1140
|
crmSync: createCrmSyncService(transport)
|
|
1141
1141
|
};
|
|
1142
1142
|
}
|
|
@@ -1156,9 +1156,9 @@ const formsBlockMetadata = {
|
|
|
1156
1156
|
'Survey',
|
|
1157
1157
|
'Referral',
|
|
1158
1158
|
'MailTemplate',
|
|
1159
|
-
'
|
|
1159
|
+
'ApplicationForm',
|
|
1160
1160
|
'CrmSync'
|
|
1161
1161
|
]
|
|
1162
1162
|
};
|
|
1163
1163
|
|
|
1164
|
-
export { createFormInstancesService, createFormSchemasService, createFormSetsService, createFormsBlock, createFormsService, formInstanceMapper, formMapper, formSchemaMapper, formSetMapper, formsBlockMetadata };
|
|
1164
|
+
export { applicationFormMapper, appointmentMapper, createApplicationFormsService, createAppointmentsService, createCrmSyncService, createFormInstancesService, createFormSchemaVersionsService, createFormSchemasService, createFormSetsService, createFormsBlock, createFormsService, createLandingsService, createMailTemplatesService, createReferralsService, createSubscriptionsService, createSurveysService, formInstanceMapper, formMapper, formSchemaMapper, formSchemaVersionMapper, formSetMapper, formsBlockMetadata, landingMapper, mailTemplateMapper, referralMapper, subscriptionMapper, surveyMapper };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
export { createFormsBlock, formsBlockMetadata } from './lib/forms.block';
|
|
2
2
|
export type { FormsBlock, FormsBlockConfig } from './lib/forms.block';
|
|
3
|
-
export type { Form, CreateFormRequest, UpdateFormRequest, ListFormsParams,
|
|
4
|
-
export type {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
3
|
+
export type { Form, CreateFormRequest, UpdateFormRequest, ListFormsParams, } from './lib/types/form';
|
|
4
|
+
export type { FormSchema, CreateFormSchemaRequest, UpdateFormSchemaRequest, ListFormSchemasParams, } from './lib/types/form-schema';
|
|
5
|
+
export type { FormSchemaVersion, CreateFormSchemaVersionRequest, UpdateFormSchemaVersionRequest, ListFormSchemaVersionsParams, } from './lib/types/form-schema-version';
|
|
6
|
+
export type { FormInstance, CreateFormInstanceRequest, UpdateFormInstanceRequest, SubmitFormInstanceRequest, ListFormInstancesParams, } from './lib/types/form-instance';
|
|
7
|
+
export type { FormSet, FormReference, CreateFormSetRequest, UpdateFormSetRequest, ListFormSetsParams, FormSetMatchRequest, FormSetMatchResult, FormSetAutoAssignRequest, } from './lib/types/form-set';
|
|
8
|
+
export type { Landing, CreateLandingRequest, UpdateLandingRequest, ListLandingsParams, } from './lib/types/landing';
|
|
9
|
+
export type { Subscription, CreateSubscriptionRequest, UpdateSubscriptionRequest, ListSubscriptionsParams, } from './lib/types/subscription';
|
|
10
|
+
export type { Appointment, CreateAppointmentRequest, UpdateAppointmentRequest, ListAppointmentsParams, AppointmentReportRequest, AppointmentReportSummary, } from './lib/types/appointment';
|
|
11
|
+
export type { Survey, SurveyStatus, CreateSurveyRequest, UpdateSurveyRequest, UpdateSurveyStatusRequest, ListSurveysParams, } from './lib/types/survey';
|
|
12
|
+
export type { Referral, CreateReferralRequest, UpdateReferralRequest, ListReferralsParams, } from './lib/types/referral';
|
|
13
|
+
export type { MailTemplate, CreateMailTemplateRequest, UpdateMailTemplateRequest, ListMailTemplatesParams, } from './lib/types/mail-template';
|
|
14
|
+
export type { ApplicationForm, ApplicationFormSubmission, ApplicationFormDraft, ApplicationFormResponse, } from './lib/types/application-form';
|
|
15
|
+
export type { CrmSyncResult, CrmSyncBatchRequest, CrmSyncBatchResult, CrmConnectionStatus, CrmSyncStatus, } from './lib/types/crm-sync';
|
|
16
|
+
export type { FormsService, FormSchemasService, FormSchemaVersionsService, FormInstancesService, FormSetsService, LandingsService, SubscriptionsService, AppointmentsService, SurveysService, ReferralsService, MailTemplatesService, ApplicationFormsService, CrmSyncService, } from './lib/services';
|
|
17
|
+
export { createFormsService, createFormSchemasService, createFormSchemaVersionsService, createFormInstancesService, createFormSetsService, createLandingsService, createSubscriptionsService, createAppointmentsService, createSurveysService, createReferralsService, createMailTemplatesService, createApplicationFormsService, createCrmSyncService, } from './lib/services';
|
|
18
|
+
export { formMapper, formSchemaMapper, formSchemaVersionMapper, formInstanceMapper, formSetMapper, landingMapper, subscriptionMapper, appointmentMapper, surveyMapper, referralMapper, mailTemplateMapper, applicationFormMapper, } from './lib/mappers';
|
|
7
19
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACzE,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACzE,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAOtE,YAAY,EACV,IAAI,EACJ,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAG1B,YAAY,EACV,UAAU,EACV,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AAGjC,YAAY,EACV,iBAAiB,EACjB,8BAA8B,EAC9B,8BAA8B,EAC9B,4BAA4B,GAC7B,MAAM,iCAAiC,CAAC;AAGzC,YAAY,EACV,YAAY,EACZ,yBAAyB,EACzB,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,2BAA2B,CAAC;AAGnC,YAAY,EACV,OAAO,EACP,aAAa,EACb,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,sBAAsB,CAAC;AAG9B,YAAY,EACV,OAAO,EACP,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAG7B,YAAY,EACV,YAA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BAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,eAAe,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Transport, BlockConfig, BlockMetadata } from '@23blocks/contracts';
|
|
2
|
-
import { type FormsService, type FormSchemasService, type FormSchemaVersionsService, type FormInstancesService, type FormSetsService, type LandingsService, type SubscriptionsService, type AppointmentsService, type SurveysService, type ReferralsService, type MailTemplatesService, type
|
|
2
|
+
import { type FormsService, type FormSchemasService, type FormSchemaVersionsService, type FormInstancesService, type FormSetsService, type LandingsService, type SubscriptionsService, type AppointmentsService, type SurveysService, type ReferralsService, type MailTemplatesService, type ApplicationFormsService, type CrmSyncService } from './services';
|
|
3
3
|
export interface FormsBlockConfig extends BlockConfig {
|
|
4
4
|
appId: string;
|
|
5
5
|
tenantId?: string;
|
|
@@ -27,8 +27,8 @@ export interface FormsBlock {
|
|
|
27
27
|
referrals: ReferralsService;
|
|
28
28
|
/** Mail templates */
|
|
29
29
|
mailTemplates: MailTemplatesService;
|
|
30
|
-
/**
|
|
31
|
-
|
|
30
|
+
/** Application forms (magic link access) */
|
|
31
|
+
applicationForms: ApplicationFormsService;
|
|
32
32
|
/** CRM sync operations */
|
|
33
33
|
crmSync: CrmSyncService;
|
|
34
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forms.block.d.ts","sourceRoot":"","sources":["../../../src/lib/forms.block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAcL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACr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AE,cAAc,CAAC;CACzB;AAED,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,gBAAgB,GACvB,UAAU,CAgBZ;AAED,eAAO,MAAM,kBAAkB,EAAE,aAmBhC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ResourceMapper } from '@23blocks/jsonapi-codec';
|
|
2
|
+
import type { ApplicationForm, ApplicationFormResponse } from '../types/application-form';
|
|
3
|
+
export declare const applicationFormMapper: ResourceMapper<ApplicationForm>;
|
|
4
|
+
export declare const applicationFormResponseMapper: ResourceMapper<ApplicationFormResponse>;
|
|
5
|
+
//# sourceMappingURL=application-form.mapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-form.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/application-form.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAG1F,eAAO,MAAM,qBAAqB,EAAE,cAAc,CAAC,eAAe,CAejE,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,cAAc,CAAC,uBAAuB,CAYjF,CAAC"}
|
|
@@ -9,6 +9,6 @@ export * from './appointment.mapper';
|
|
|
9
9
|
export * from './survey.mapper';
|
|
10
10
|
export * from './referral.mapper';
|
|
11
11
|
export * from './mail-template.mapper';
|
|
12
|
-
export * from './
|
|
12
|
+
export * from './application-form.mapper';
|
|
13
13
|
export * from './utils';
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Transport } from '@23blocks/contracts';
|
|
2
|
+
import type { ApplicationForm, ApplicationFormSubmission, ApplicationFormDraft, ApplicationFormResponse } from '../types/application-form';
|
|
3
|
+
export interface ApplicationFormsService {
|
|
4
|
+
get(urlId: string): Promise<ApplicationForm>;
|
|
5
|
+
submit(urlId: string, data: ApplicationFormSubmission): Promise<ApplicationFormResponse>;
|
|
6
|
+
draft(urlId: string, data: ApplicationFormDraft): Promise<ApplicationFormResponse>;
|
|
7
|
+
}
|
|
8
|
+
export declare function createApplicationFormsService(transport: Transport, _config: {
|
|
9
|
+
appId: string;
|
|
10
|
+
}): ApplicationFormsService;
|
|
11
|
+
//# sourceMappingURL=application-forms.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-forms.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/application-forms.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,KAAK,EACV,eAAe,EACf,yBAAyB,EACzB,oBAAoB,EACpB,uBAAuB,EACxB,MAAM,2BAA2B,CAAC;AAGnC,MAAM,WAAW,uBAAuB;IACtC,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAC7C,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACzF,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACpF;AAED,wBAAgB,6BAA6B,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,uBAAuB,CA2BvH"}
|
|
@@ -9,6 +9,6 @@ export * from './appointments.service';
|
|
|
9
9
|
export * from './surveys.service';
|
|
10
10
|
export * from './referrals.service';
|
|
11
11
|
export * from './mail-templates.service';
|
|
12
|
-
export * from './
|
|
12
|
+
export * from './application-forms.service';
|
|
13
13
|
export * from './crm-sync.service';
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IdentityCore, EntityStatus } from '@23blocks/contracts';
|
|
2
|
-
export interface
|
|
2
|
+
export interface ApplicationForm extends IdentityCore {
|
|
3
3
|
formUniqueId: string;
|
|
4
4
|
title?: string;
|
|
5
5
|
description?: string;
|
|
@@ -9,19 +9,19 @@ export interface PublicForm extends IdentityCore {
|
|
|
9
9
|
status: EntityStatus;
|
|
10
10
|
payload?: Record<string, unknown>;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
12
|
+
export interface ApplicationFormSubmission {
|
|
13
13
|
data: Record<string, unknown>;
|
|
14
14
|
payload?: Record<string, unknown>;
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
16
|
+
export interface ApplicationFormDraft {
|
|
17
17
|
data: Record<string, unknown>;
|
|
18
18
|
payload?: Record<string, unknown>;
|
|
19
19
|
}
|
|
20
|
-
export interface
|
|
20
|
+
export interface ApplicationFormResponse extends IdentityCore {
|
|
21
21
|
formUniqueId: string;
|
|
22
22
|
data: Record<string, unknown>;
|
|
23
23
|
status: EntityStatus;
|
|
24
24
|
submittedAt?: Date;
|
|
25
25
|
payload?: Record<string, unknown>;
|
|
26
26
|
}
|
|
27
|
-
//# sourceMappingURL=
|
|
27
|
+
//# sourceMappingURL=application-form.d.ts.map
|
|
@@ -0,0 +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,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;CACnC;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;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"}
|
|
@@ -9,6 +9,6 @@ export * from './appointment';
|
|
|
9
9
|
export * from './survey';
|
|
10
10
|
export * from './referral';
|
|
11
11
|
export * from './mail-template';
|
|
12
|
-
export * from './
|
|
12
|
+
export * from './application-form';
|
|
13
13
|
export * from './crm-sync';
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ResourceMapper } from '@23blocks/jsonapi-codec';
|
|
2
|
-
import type { PublicForm, PublicFormResponse } from '../types/public-form';
|
|
3
|
-
export declare const publicFormMapper: ResourceMapper<PublicForm>;
|
|
4
|
-
export declare const publicFormResponseMapper: ResourceMapper<PublicFormResponse>;
|
|
5
|
-
//# sourceMappingURL=public-form.mapper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"public-form.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/public-form.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG3E,eAAO,MAAM,gBAAgB,EAAE,cAAc,CAAC,UAAU,CAevD,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,cAAc,CAAC,kBAAkB,CAYvE,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Transport } from '@23blocks/contracts';
|
|
2
|
-
import type { PublicForm, PublicFormSubmission, PublicFormDraft, PublicFormResponse } from '../types/public-form';
|
|
3
|
-
export interface PublicFormsService {
|
|
4
|
-
get(urlId: string): Promise<PublicForm>;
|
|
5
|
-
submit(urlId: string, data: PublicFormSubmission): Promise<PublicFormResponse>;
|
|
6
|
-
draft(urlId: string, data: PublicFormDraft): Promise<PublicFormResponse>;
|
|
7
|
-
}
|
|
8
|
-
export declare function createPublicFormsService(transport: Transport, _config: {
|
|
9
|
-
appId: string;
|
|
10
|
-
}): PublicFormsService;
|
|
11
|
-
//# sourceMappingURL=public-forms.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"public-forms.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/public-forms.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,KAAK,EACV,UAAU,EACV,oBAAoB,EACpB,eAAe,EACf,kBAAkB,EACnB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,WAAW,kBAAkB;IACjC,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,OA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