@vendasta/forms_microservice 0.19.0 → 0.21.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,60 @@
1
+ export declare enum DateDefault {
2
+ DATE_DEFAULT_INVALID = 0,
3
+ DATE_DEFAULT_TODAY = 1,
4
+ DATE_DEFAULT_YESTERDAY = 2,
5
+ DATE_DEFAULT_TOMORROW = 3,
6
+ DATE_DEFAULT_THIS_WEEK = 4,
7
+ DATE_DEFAULT_LAST_WEEK = 5,
8
+ DATE_DEFAULT_NEXT_WEEK = 6,
9
+ DATE_DEFAULT_THIS_MONTH = 7,
10
+ DATE_DEFAULT_LAST_MONTH = 8,
11
+ DATE_DEFAULT_NEXT_MONTH = 9,
12
+ DATE_DEFAULT_THIS_QUARTER = 10,
13
+ DATE_DEFAULT_LAST_QUARTER = 11,
14
+ DATE_DEFAULT_NEXT_QUARTER = 12,
15
+ DATE_DEFAULT_THIS_YEAR = 13,
16
+ DATE_DEFAULT_LAST_YEAR = 14,
17
+ DATE_DEFAULT_NEXT_YEAR = 15
18
+ }
19
+ export declare enum FilterGroupOperator {
20
+ FILTER_GROUP_OPERATOR_INVALID = 0,
21
+ FILTER_GROUP_OPERATOR_AND = 1,
22
+ FILTER_GROUP_OPERATOR_OR = 2
23
+ }
24
+ export declare enum FilterOperator {
25
+ FILTER_OPERATOR_INVALID = 0,
26
+ FILTER_OPERATOR_IS_EMPTY = 1,
27
+ FILTER_OPERATOR_IS_NOT_EMPTY = 2,
28
+ FILTER_OPERATOR_IS = 3,
29
+ FILTER_OPERATOR_IS_NOT = 4,
30
+ FILTER_OPERATOR_IS_ANY = 5,
31
+ FILTER_OPERATOR_IS_NOT_ANY = 6,
32
+ FILTER_OPERATOR_IS_ALL = 7,
33
+ FILTER_OPERATOR_IS_NOT_ALL = 8,
34
+ FILTER_OPERATOR_CONTAINS = 9,
35
+ FILTER_OPERATOR_DOES_NOT_CONTAIN = 10,
36
+ FILTER_OPERATOR_IS_EQUAL_TO = 11,
37
+ FILTER_OPERATOR_IS_NOT_EQUAL_TO = 12,
38
+ FILTER_OPERATOR_IS_GREATER_THAN = 13,
39
+ FILTER_OPERATOR_IS_GREATER_THAN_OR_EQUAL_TO = 14,
40
+ FILTER_OPERATOR_IS_LESS_THAN = 15,
41
+ FILTER_OPERATOR_IS_LESS_THAN_OR_EQUAL_TO = 16,
42
+ FILTER_OPERATOR_IS_BEFORE = 17,
43
+ FILTER_OPERATOR_IS_BEFORE_OR_ON = 18,
44
+ FILTER_OPERATOR_IS_AFTER = 19,
45
+ FILTER_OPERATOR_IS_AFTER_OR_ON = 20,
46
+ FILTER_OPERATOR_IS_BETWEEN = 21,
47
+ FILTER_OPERATOR_IS_NOT_BETWEEN = 22,
48
+ FILTER_OPERATOR_IS_VALID = 23,
49
+ FILTER_OPERATOR_IS_NOT_VALID = 24
50
+ }
51
+ export declare enum FilterType {
52
+ FILTER_TYPE_INVALID = 0,
53
+ FILTER_TYPE_STRING = 1,
54
+ FILTER_TYPE_INTEGER = 2,
55
+ FILTER_TYPE_DATE = 3,
56
+ FILTER_TYPE_FLOAT = 4,
57
+ FILTER_TYPE_BOOLEAN = 5,
58
+ FILTER_TYPE_TAG = 6,
59
+ FILTER_TYPE_PHONE = 8
60
+ }
@@ -1 +1,2 @@
1
+ export { DateDefault, FilterGroupOperator, FilterOperator, FilterType, } from './galaxy-filters.enum';
1
2
  export { FieldType, JsonSchemaLibrary, SectionAction, } from './api.enum';
@@ -1,3 +1,4 @@
1
+ import { FilterGroupInterface } from './galaxy-filters.interface';
1
2
  import { PagedRequestOptionsInterface, PagedResponseMetadataInterface } from './paging.interface';
2
3
  import * as e from '../enums';
3
4
  export interface ActionParametersInterface {
@@ -68,6 +69,9 @@ export interface FormConfigInterface {
68
69
  recaptchaSecretKey?: string;
69
70
  submitButtonLabel?: string;
70
71
  createInboxConversation?: boolean;
72
+ tags?: string[];
73
+ description?: string;
74
+ templateSetupSettings?: FormConfigTemplateSetupSettingsInterface;
71
75
  }
72
76
  export interface GetMultiRequestFormConfigIdentifierInterface {
73
77
  formId?: string;
@@ -134,6 +138,8 @@ export interface ListFormSubmissionResponseInterface {
134
138
  export interface ListFormsRequestInterface {
135
139
  filters?: ListFormsRequestFiltersInterface;
136
140
  pagingOptions?: PagedRequestOptionsInterface;
141
+ filtersV2?: FilterGroupInterface;
142
+ searchTerm?: string;
137
143
  }
138
144
  export interface ListFormsResponseInterface {
139
145
  formRows?: ListFormsResponseFormRowInterface[];
@@ -239,6 +245,9 @@ export interface SystemDefinedInterface {
239
245
  includedByDefault?: boolean;
240
246
  hidden?: boolean;
241
247
  }
248
+ export interface FormConfigTemplateSetupSettingsInterface {
249
+ automationIds?: string[];
250
+ }
242
251
  export interface UnmappedFieldInterface {
243
252
  id?: string;
244
253
  type?: e.FieldType;
@@ -0,0 +1,25 @@
1
+ import * as e from '../enums';
2
+ export interface FilterInterface {
3
+ fieldId?: string;
4
+ operator?: e.FilterOperator;
5
+ values?: FilterValueInterface[];
6
+ floatTolerance?: number;
7
+ }
8
+ export interface FilterGroupInterface {
9
+ operator?: e.FilterGroupOperator;
10
+ filters?: FilterInterface[];
11
+ }
12
+ export interface PhoneInterface {
13
+ isoCountryCode?: string;
14
+ nationalNumber?: string;
15
+ extension?: string;
16
+ }
17
+ export interface FilterValueInterface {
18
+ boolean?: boolean;
19
+ integer?: number;
20
+ float?: number;
21
+ string?: string;
22
+ date?: Date;
23
+ dateDefault?: e.DateDefault;
24
+ phone?: PhoneInterface;
25
+ }
@@ -1,2 +1,3 @@
1
1
  export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
2
- export { ActionParametersInterface, CreateFormRequestInterface, CreateFormResponseInterface, CreateFormSubmissionRequestInterface, CreateFormSubmissionResponseInterface, RenderFormResponseDefaultValuesInterface, DeleteFormRequestInterface, FormConfigFieldInterface, FieldOptionInterface, FieldValueInterface, ListFormsRequestFiltersInterface, FormConfigInterface, GetMultiRequestFormConfigIdentifierInterface, ListFormsResponseFormRowInterface, FormSubmissionInterface, GenerateCustomCSSRequestInterface, GenerateCustomCSSResponseInterface, 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
+ export { FilterInterface, FilterGroupInterface, PhoneInterface, FilterValueInterface, } from './galaxy-filters.interface';
3
+ export { ActionParametersInterface, CreateFormRequestInterface, CreateFormResponseInterface, CreateFormSubmissionRequestInterface, CreateFormSubmissionResponseInterface, RenderFormResponseDefaultValuesInterface, DeleteFormRequestInterface, FormConfigFieldInterface, FieldOptionInterface, FieldValueInterface, ListFormsRequestFiltersInterface, FormConfigInterface, GetMultiRequestFormConfigIdentifierInterface, ListFormsResponseFormRowInterface, FormSubmissionInterface, GenerateCustomCSSRequestInterface, GenerateCustomCSSResponseInterface, 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, FormConfigTemplateSetupSettingsInterface, UnmappedFieldInterface, UpdateFormRequestInterface, UpdateFormResponseInterface, UserFormSubmissionInterface, ValidationErrorInterface, GetMultiFormVersionsListResponseVersionsInterface, } from './api.interface';
@@ -1,4 +1,5 @@
1
1
  import * as i from '../interfaces';
2
+ import { FilterGroup } from './galaxy-filters';
2
3
  import { PagedRequestOptions, PagedResponseMetadata } from './paging';
3
4
  import * as e from '../enums';
4
5
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
@@ -103,6 +104,9 @@ export declare class FormConfig implements i.FormConfigInterface {
103
104
  recaptchaSecretKey: string;
104
105
  submitButtonLabel: string;
105
106
  createInboxConversation: boolean;
107
+ tags: string[];
108
+ description: string;
109
+ templateSetupSettings: FormConfigTemplateSetupSettings;
106
110
  static fromProto(proto: any): FormConfig;
107
111
  constructor(kwargs?: i.FormConfigInterface);
108
112
  toApiJson(): object;
@@ -223,6 +227,8 @@ export declare class ListFormSubmissionResponse implements i.ListFormSubmissionR
223
227
  export declare class ListFormsRequest implements i.ListFormsRequestInterface {
224
228
  filters: ListFormsRequestFilters;
225
229
  pagingOptions: PagedRequestOptions;
230
+ filtersV2: FilterGroup;
231
+ searchTerm: string;
226
232
  static fromProto(proto: any): ListFormsRequest;
227
233
  constructor(kwargs?: i.ListFormsRequestInterface);
228
234
  toApiJson(): object;
@@ -388,6 +394,12 @@ export declare class SystemDefined implements i.SystemDefinedInterface {
388
394
  constructor(kwargs?: i.SystemDefinedInterface);
389
395
  toApiJson(): object;
390
396
  }
397
+ export declare class FormConfigTemplateSetupSettings implements i.FormConfigTemplateSetupSettingsInterface {
398
+ automationIds: string[];
399
+ static fromProto(proto: any): FormConfigTemplateSetupSettings;
400
+ constructor(kwargs?: i.FormConfigTemplateSetupSettingsInterface);
401
+ toApiJson(): object;
402
+ }
391
403
  export declare class UnmappedField implements i.UnmappedFieldInterface {
392
404
  id: string;
393
405
  type: e.FieldType;
@@ -0,0 +1,39 @@
1
+ import * as i from '../interfaces';
2
+ import * as e from '../enums';
3
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
4
+ export declare class Filter implements i.FilterInterface {
5
+ fieldId: string;
6
+ operator: e.FilterOperator;
7
+ values: FilterValue[];
8
+ floatTolerance: number;
9
+ static fromProto(proto: any): Filter;
10
+ constructor(kwargs?: i.FilterInterface);
11
+ toApiJson(): object;
12
+ }
13
+ export declare class FilterGroup implements i.FilterGroupInterface {
14
+ operator: e.FilterGroupOperator;
15
+ filters: Filter[];
16
+ static fromProto(proto: any): FilterGroup;
17
+ constructor(kwargs?: i.FilterGroupInterface);
18
+ toApiJson(): object;
19
+ }
20
+ export declare class Phone implements i.PhoneInterface {
21
+ isoCountryCode: string;
22
+ nationalNumber: string;
23
+ extension: string;
24
+ static fromProto(proto: any): Phone;
25
+ constructor(kwargs?: i.PhoneInterface);
26
+ toApiJson(): object;
27
+ }
28
+ export declare class FilterValue implements i.FilterValueInterface {
29
+ boolean: boolean;
30
+ integer: number;
31
+ float: number;
32
+ string: string;
33
+ date: Date;
34
+ dateDefault: e.DateDefault;
35
+ phone: Phone;
36
+ static fromProto(proto: any): FilterValue;
37
+ constructor(kwargs?: i.FilterValueInterface);
38
+ toApiJson(): object;
39
+ }
@@ -1,2 +1,3 @@
1
1
  export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
2
- export { ActionParameters, CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, RenderFormResponseDefaultValues, DeleteFormRequest, FormConfigField, FieldOption, FieldValue, ListFormsRequestFilters, FormConfig, GetMultiRequestFormConfigIdentifier, ListFormsResponseFormRow, FormSubmission, GenerateCustomCSSRequest, GenerateCustomCSSResponse, 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';
2
+ export { Filter, FilterGroup, Phone, FilterValue, } from './galaxy-filters';
3
+ export { ActionParameters, CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, RenderFormResponseDefaultValues, DeleteFormRequest, FormConfigField, FieldOption, FieldValue, ListFormsRequestFilters, FormConfig, GetMultiRequestFormConfigIdentifier, ListFormsResponseFormRow, FormSubmission, GenerateCustomCSSRequest, GenerateCustomCSSResponse, 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, FormConfigTemplateSetupSettings, 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.19.0",
3
+ "version": "0.21.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"