@vendasta/forms_microservice 0.16.0 → 0.18.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.
@@ -12,9 +12,17 @@ export declare enum FieldType {
12
12
  FIELD_TYPE_PHONE = 10,
13
13
  FIELD_TYPE_BUSINESS_SEARCH = 11,
14
14
  FIELD_TYPE_TEXT_AREA = 12,
15
- FIELD_TYPE_TAG = 13
15
+ FIELD_TYPE_TAG = 13,
16
+ FIELD_TYPE_SECTION = 14
16
17
  }
17
18
  export declare enum JsonSchemaLibrary {
18
19
  JSON_SCHEMA_LIBRARY_UNDEFINED = 0,
19
20
  JSON_SCHEMA_LIBRARY_JSONFORM = 1
20
21
  }
22
+ export declare enum SectionAction {
23
+ SECTION_ACTION_UNDEFINED = 0,
24
+ SECTION_ACTION_SUBMIT = 1,
25
+ SECTION_ACTION_SUBMIT_CONDITION = 2,
26
+ SECTION_ACTION_NEXT_PAGE = 3,
27
+ SECTION_ACTION_NEXT_APPEND = 4
28
+ }
@@ -1 +1 @@
1
- export { FieldType, JsonSchemaLibrary, } from './api.enum';
1
+ export { FieldType, JsonSchemaLibrary, SectionAction, } from './api.enum';
@@ -1,5 +1,5 @@
1
- import { CreateFormRequest, CreateFormResponse, DeleteFormRequest, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiRequest, GetMultiResponse, ListFormsRequest, ListFormsResponse, ListMappedFieldSchemaRequest, ListMappedFieldSchemaResponse, PreviewFormRequest, PreviewFormResponse, RenderFormRequest, RenderFormResponse, UpdateFormRequest, UpdateFormResponse } from './objects/';
2
- import { CreateFormRequestInterface, DeleteFormRequestInterface, GetEmbedCodeRequestInterface, GetFormRequestInterface, GetMultiFormVersionsListRequestInterface, GetMultiRequestInterface, ListFormsRequestInterface, ListMappedFieldSchemaRequestInterface, PreviewFormRequestInterface, RenderFormRequestInterface, UpdateFormRequestInterface } from './interfaces/';
1
+ import { CreateFormRequest, CreateFormResponse, DeleteFormRequest, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiRequest, GetMultiResponse, ListFormsRequest, ListFormsResponse, ListMappedFieldSchemaRequest, ListMappedFieldSchemaResponse, PreviewFormRequest, PreviewFormResponse, RecoverFormRequest, RecoverFormResponse, RenderFormRequest, RenderFormResponse, UpdateFormRequest, UpdateFormResponse } from './objects/';
2
+ import { CreateFormRequestInterface, DeleteFormRequestInterface, GetEmbedCodeRequestInterface, GetFormRequestInterface, GetMultiFormVersionsListRequestInterface, GetMultiRequestInterface, ListFormsRequestInterface, ListMappedFieldSchemaRequestInterface, PreviewFormRequestInterface, RecoverFormRequestInterface, RenderFormRequestInterface, UpdateFormRequestInterface } from './interfaces/';
3
3
  import { HttpResponse } from '@angular/common/http';
4
4
  import { Observable } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
@@ -19,6 +19,7 @@ export declare class FormsApiService {
19
19
  deleteForm(r: DeleteFormRequest | DeleteFormRequestInterface): Observable<HttpResponse<null>>;
20
20
  previewForm(r: PreviewFormRequest | PreviewFormRequestInterface): Observable<PreviewFormResponse>;
21
21
  listMappedFieldSchema(r: ListMappedFieldSchemaRequest | ListMappedFieldSchemaRequestInterface): Observable<ListMappedFieldSchemaResponse>;
22
+ recoverForm(r: RecoverFormRequest | RecoverFormRequestInterface): Observable<RecoverFormResponse>;
22
23
  static ɵfac: i0.ɵɵFactoryDeclaration<FormsApiService, never>;
23
24
  static ɵprov: i0.ɵɵInjectableDeclaration<FormsApiService>;
24
25
  }
@@ -1,5 +1,9 @@
1
1
  import { PagedRequestOptionsInterface, PagedResponseMetadataInterface } from './paging.interface';
2
2
  import * as e from '../enums';
3
+ export interface ActionParametersInterface {
4
+ submitConditionParams?: SubmitConditionParametersInterface;
5
+ nextParameters?: NextParametersInterface;
6
+ }
3
7
  export interface CreateFormRequestInterface {
4
8
  formConfig?: FormConfigInterface;
5
9
  }
@@ -15,6 +19,10 @@ export interface CreateFormSubmissionRequestInterface {
15
19
  export interface CreateFormSubmissionResponseInterface {
16
20
  redirectUrl?: string;
17
21
  }
22
+ export interface RenderFormResponseDefaultValuesInterface {
23
+ fieldId?: string;
24
+ jsonValue?: string;
25
+ }
18
26
  export interface DeleteFormRequestInterface {
19
27
  formId?: string;
20
28
  version?: string;
@@ -28,6 +36,7 @@ export interface FormConfigFieldInterface {
28
36
  preFillByUrlQueryParameter?: string;
29
37
  placeholder?: string;
30
38
  defaultPhoneIsoCountryCode?: string;
39
+ sectionConfig?: SectionConfigInterface;
31
40
  }
32
41
  export interface FieldOptionInterface {
33
42
  value?: string;
@@ -140,6 +149,9 @@ export interface MappedFieldInterface {
140
149
  systemDefined?: SystemDefinedInterface;
141
150
  readonly?: boolean;
142
151
  }
152
+ export interface NextParametersInterface {
153
+ nextSectionId?: string;
154
+ }
143
155
  export interface RenderFormResponsePreFillByUrlQueryParameterInterface {
144
156
  fieldId?: string;
145
157
  queryParam?: string;
@@ -152,6 +164,13 @@ export interface PreviewFormResponseInterface {
152
164
  jsonSchema?: string;
153
165
  jsonUiSchema?: string;
154
166
  }
167
+ export interface RecoverFormRequestInterface {
168
+ formId?: string;
169
+ }
170
+ export interface RecoverFormResponseInterface {
171
+ formId?: string;
172
+ version?: string;
173
+ }
155
174
  export interface RenderFormRequestInterface {
156
175
  formId?: string;
157
176
  library?: e.JsonSchemaLibrary;
@@ -162,11 +181,17 @@ export interface RenderFormResponseInterface {
162
181
  styles?: StylesInterface;
163
182
  fieldQueryParams?: RenderFormResponsePreFillByUrlQueryParameterInterface[];
164
183
  recaptchaSiteKey?: string;
184
+ defaultValues?: RenderFormResponseDefaultValuesInterface[];
165
185
  }
166
186
  export interface FormConfigFieldSchemaInterface {
167
187
  unmappedField?: UnmappedFieldInterface;
168
188
  mappedField?: MappedFieldInterface;
169
189
  }
190
+ export interface SectionConfigInterface {
191
+ buttonLabel?: string;
192
+ buttonAction?: e.SectionAction;
193
+ actionParameters?: ActionParametersInterface;
194
+ }
170
195
  export interface StringListInterface {
171
196
  values?: string[];
172
197
  }
@@ -181,6 +206,16 @@ export interface StylesInterface {
181
206
  primaryFontColor?: string;
182
207
  primaryColor?: string;
183
208
  onPrimaryColor?: string;
209
+ customCss?: string;
210
+ }
211
+ export interface SubmitConditionParametersInterface {
212
+ fieldId?: string;
213
+ noValue?: boolean;
214
+ anyValue?: boolean;
215
+ isValue?: string;
216
+ isNotValue?: string;
217
+ onConditionFailure?: e.SectionAction;
218
+ onConditionFailureParameters?: ActionParametersInterface;
184
219
  }
185
220
  export interface FormSubmissionSubmittedValueInterface {
186
221
  fieldId?: string;
@@ -1,2 +1,2 @@
1
1
  export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
2
- export { CreateFormRequestInterface, CreateFormResponseInterface, CreateFormSubmissionRequestInterface, CreateFormSubmissionResponseInterface, DeleteFormRequestInterface, FormConfigFieldInterface, FieldOptionInterface, FieldValueInterface, ListFormsRequestFiltersInterface, FormConfigInterface, GetMultiRequestFormConfigIdentifierInterface, ListFormsResponseFormRowInterface, FormSubmissionInterface, GetEmbedCodeRequestInterface, GetEmbedCodeResponseInterface, GetFormRequestInterface, GetFormResponseInterface, GetMultiFormSubmissionRequestInterface, GetMultiFormSubmissionResponseInterface, GetMultiFormVersionsListRequestInterface, GetMultiFormVersionsListResponseInterface, GetMultiRequestInterface, GetMultiResponseInterface, ListFormSubmissionRequestInterface, ListFormSubmissionResponseInterface, ListFormsRequestInterface, ListFormsResponseInterface, ListMappedFieldSchemaRequestInterface, ListMappedFieldSchemaResponseInterface, MappedFieldInterface, RenderFormResponsePreFillByUrlQueryParameterInterface, PreviewFormRequestInterface, PreviewFormResponseInterface, RenderFormRequestInterface, RenderFormResponseInterface, FormConfigFieldSchemaInterface, StringListInterface, StylesInterface, FormSubmissionSubmittedValueInterface, SystemDefinedInterface, UnmappedFieldInterface, UpdateFormRequestInterface, UpdateFormResponseInterface, UserFormSubmissionInterface, ValidationErrorInterface, GetMultiFormVersionsListResponseVersionsInterface, } from './api.interface';
2
+ export { ActionParametersInterface, CreateFormRequestInterface, CreateFormResponseInterface, CreateFormSubmissionRequestInterface, CreateFormSubmissionResponseInterface, RenderFormResponseDefaultValuesInterface, DeleteFormRequestInterface, FormConfigFieldInterface, FieldOptionInterface, FieldValueInterface, ListFormsRequestFiltersInterface, FormConfigInterface, GetMultiRequestFormConfigIdentifierInterface, ListFormsResponseFormRowInterface, FormSubmissionInterface, GetEmbedCodeRequestInterface, GetEmbedCodeResponseInterface, GetFormRequestInterface, GetFormResponseInterface, GetMultiFormSubmissionRequestInterface, GetMultiFormSubmissionResponseInterface, GetMultiFormVersionsListRequestInterface, GetMultiFormVersionsListResponseInterface, GetMultiRequestInterface, GetMultiResponseInterface, ListFormSubmissionRequestInterface, ListFormSubmissionResponseInterface, ListFormsRequestInterface, ListFormsResponseInterface, ListMappedFieldSchemaRequestInterface, ListMappedFieldSchemaResponseInterface, MappedFieldInterface, NextParametersInterface, RenderFormResponsePreFillByUrlQueryParameterInterface, PreviewFormRequestInterface, PreviewFormResponseInterface, RecoverFormRequestInterface, RecoverFormResponseInterface, RenderFormRequestInterface, RenderFormResponseInterface, FormConfigFieldSchemaInterface, SectionConfigInterface, StringListInterface, StylesInterface, SubmitConditionParametersInterface, FormSubmissionSubmittedValueInterface, SystemDefinedInterface, UnmappedFieldInterface, UpdateFormRequestInterface, UpdateFormResponseInterface, UserFormSubmissionInterface, ValidationErrorInterface, GetMultiFormVersionsListResponseVersionsInterface, } from './api.interface';
@@ -2,6 +2,13 @@ import * as i from '../interfaces';
2
2
  import { PagedRequestOptions, PagedResponseMetadata } from './paging';
3
3
  import * as e from '../enums';
4
4
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
5
+ export declare class ActionParameters implements i.ActionParametersInterface {
6
+ submitConditionParams: SubmitConditionParameters;
7
+ nextParameters: NextParameters;
8
+ static fromProto(proto: any): ActionParameters;
9
+ constructor(kwargs?: i.ActionParametersInterface);
10
+ toApiJson(): object;
11
+ }
5
12
  export declare class CreateFormRequest implements i.CreateFormRequestInterface {
6
13
  formConfig: FormConfig;
7
14
  static fromProto(proto: any): CreateFormRequest;
@@ -29,6 +36,13 @@ export declare class CreateFormSubmissionResponse implements i.CreateFormSubmiss
29
36
  constructor(kwargs?: i.CreateFormSubmissionResponseInterface);
30
37
  toApiJson(): object;
31
38
  }
39
+ export declare class RenderFormResponseDefaultValues implements i.RenderFormResponseDefaultValuesInterface {
40
+ fieldId: string;
41
+ jsonValue: string;
42
+ static fromProto(proto: any): RenderFormResponseDefaultValues;
43
+ constructor(kwargs?: i.RenderFormResponseDefaultValuesInterface);
44
+ toApiJson(): object;
45
+ }
32
46
  export declare class DeleteFormRequest implements i.DeleteFormRequestInterface {
33
47
  formId: string;
34
48
  version: string;
@@ -45,6 +59,7 @@ export declare class FormConfigField implements i.FormConfigFieldInterface {
45
59
  preFillByUrlQueryParameter: string;
46
60
  placeholder: string;
47
61
  defaultPhoneIsoCountryCode: string;
62
+ sectionConfig: SectionConfig;
48
63
  static fromProto(proto: any): FormConfigField;
49
64
  constructor(kwargs?: i.FormConfigFieldInterface);
50
65
  toApiJson(): object;
@@ -232,6 +247,12 @@ export declare class MappedField implements i.MappedFieldInterface {
232
247
  constructor(kwargs?: i.MappedFieldInterface);
233
248
  toApiJson(): object;
234
249
  }
250
+ export declare class NextParameters implements i.NextParametersInterface {
251
+ nextSectionId: string;
252
+ static fromProto(proto: any): NextParameters;
253
+ constructor(kwargs?: i.NextParametersInterface);
254
+ toApiJson(): object;
255
+ }
235
256
  export declare class RenderFormResponsePreFillByUrlQueryParameter implements i.RenderFormResponsePreFillByUrlQueryParameterInterface {
236
257
  fieldId: string;
237
258
  queryParam: string;
@@ -253,6 +274,19 @@ export declare class PreviewFormResponse implements i.PreviewFormResponseInterfa
253
274
  constructor(kwargs?: i.PreviewFormResponseInterface);
254
275
  toApiJson(): object;
255
276
  }
277
+ export declare class RecoverFormRequest implements i.RecoverFormRequestInterface {
278
+ formId: string;
279
+ static fromProto(proto: any): RecoverFormRequest;
280
+ constructor(kwargs?: i.RecoverFormRequestInterface);
281
+ toApiJson(): object;
282
+ }
283
+ export declare class RecoverFormResponse implements i.RecoverFormResponseInterface {
284
+ formId: string;
285
+ version: string;
286
+ static fromProto(proto: any): RecoverFormResponse;
287
+ constructor(kwargs?: i.RecoverFormResponseInterface);
288
+ toApiJson(): object;
289
+ }
256
290
  export declare class RenderFormRequest implements i.RenderFormRequestInterface {
257
291
  formId: string;
258
292
  library: e.JsonSchemaLibrary;
@@ -266,6 +300,7 @@ export declare class RenderFormResponse implements i.RenderFormResponseInterface
266
300
  styles: Styles;
267
301
  fieldQueryParams: RenderFormResponsePreFillByUrlQueryParameter[];
268
302
  recaptchaSiteKey: string;
303
+ defaultValues: RenderFormResponseDefaultValues[];
269
304
  static fromProto(proto: any): RenderFormResponse;
270
305
  constructor(kwargs?: i.RenderFormResponseInterface);
271
306
  toApiJson(): object;
@@ -277,6 +312,14 @@ export declare class FormConfigFieldSchema implements i.FormConfigFieldSchemaInt
277
312
  constructor(kwargs?: i.FormConfigFieldSchemaInterface);
278
313
  toApiJson(): object;
279
314
  }
315
+ export declare class SectionConfig implements i.SectionConfigInterface {
316
+ buttonLabel: string;
317
+ buttonAction: e.SectionAction;
318
+ actionParameters: ActionParameters;
319
+ static fromProto(proto: any): SectionConfig;
320
+ constructor(kwargs?: i.SectionConfigInterface);
321
+ toApiJson(): object;
322
+ }
280
323
  export declare class StringList implements i.StringListInterface {
281
324
  values: string[];
282
325
  static fromProto(proto: any): StringList;
@@ -294,10 +337,23 @@ export declare class Styles implements i.StylesInterface {
294
337
  primaryFontColor: string;
295
338
  primaryColor: string;
296
339
  onPrimaryColor: string;
340
+ customCss: string;
297
341
  static fromProto(proto: any): Styles;
298
342
  constructor(kwargs?: i.StylesInterface);
299
343
  toApiJson(): object;
300
344
  }
345
+ export declare class SubmitConditionParameters implements i.SubmitConditionParametersInterface {
346
+ fieldId: string;
347
+ noValue: boolean;
348
+ anyValue: boolean;
349
+ isValue: string;
350
+ isNotValue: string;
351
+ onConditionFailure: e.SectionAction;
352
+ onConditionFailureParameters: ActionParameters;
353
+ static fromProto(proto: any): SubmitConditionParameters;
354
+ constructor(kwargs?: i.SubmitConditionParametersInterface);
355
+ toApiJson(): object;
356
+ }
301
357
  export declare class FormSubmissionSubmittedValue implements i.FormSubmissionSubmittedValueInterface {
302
358
  fieldId: string;
303
359
  fieldValue: FieldValue;
@@ -1,2 +1,2 @@
1
1
  export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
2
- export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DeleteFormRequest, FormConfigField, FieldOption, FieldValue, ListFormsRequestFilters, FormConfig, GetMultiRequestFormConfigIdentifier, ListFormsResponseFormRow, FormSubmission, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormSubmissionRequest, GetMultiFormSubmissionResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiRequest, GetMultiResponse, ListFormSubmissionRequest, ListFormSubmissionResponse, ListFormsRequest, ListFormsResponse, ListMappedFieldSchemaRequest, ListMappedFieldSchemaResponse, MappedField, RenderFormResponsePreFillByUrlQueryParameter, PreviewFormRequest, PreviewFormResponse, RenderFormRequest, RenderFormResponse, FormConfigFieldSchema, StringList, Styles, FormSubmissionSubmittedValue, SystemDefined, UnmappedField, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError, GetMultiFormVersionsListResponseVersions, } from './api';
2
+ export { ActionParameters, CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, RenderFormResponseDefaultValues, DeleteFormRequest, FormConfigField, FieldOption, FieldValue, ListFormsRequestFilters, FormConfig, GetMultiRequestFormConfigIdentifier, ListFormsResponseFormRow, FormSubmission, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormSubmissionRequest, GetMultiFormSubmissionResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiRequest, GetMultiResponse, ListFormSubmissionRequest, ListFormSubmissionResponse, ListFormsRequest, ListFormsResponse, ListMappedFieldSchemaRequest, ListMappedFieldSchemaResponse, MappedField, NextParameters, RenderFormResponsePreFillByUrlQueryParameter, PreviewFormRequest, PreviewFormResponse, RecoverFormRequest, RecoverFormResponse, RenderFormRequest, RenderFormResponse, FormConfigFieldSchema, SectionConfig, StringList, Styles, SubmitConditionParameters, FormSubmissionSubmittedValue, SystemDefined, UnmappedField, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError, GetMultiFormVersionsListResponseVersions, } from './api';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/forms_microservice",
3
- "version": "0.16.0",
3
+ "version": "0.18.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"