@vendasta/forms_microservice 0.23.0 → 0.25.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.
- package/esm2020/lib/_internal/enums/api.enum.mjs +24 -1
- package/esm2020/lib/_internal/enums/index.mjs +2 -2
- package/esm2020/lib/_internal/form-submission.api.service.mjs +7 -2
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +108 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-forms_microservice.mjs +136 -1
- package/fesm2015/vendasta-forms_microservice.mjs.map +1 -1
- package/fesm2020/vendasta-forms_microservice.mjs +136 -1
- package/fesm2020/vendasta-forms_microservice.mjs.map +1 -1
- package/lib/_internal/enums/api.enum.d.ts +21 -1
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/form-submission.api.service.d.ts +3 -2
- package/lib/_internal/interfaces/api.interface.d.ts +16 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +28 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -13,7 +13,8 @@ export declare enum FieldType {
|
|
|
13
13
|
FIELD_TYPE_BUSINESS_SEARCH = 11,
|
|
14
14
|
FIELD_TYPE_TEXT_AREA = 12,
|
|
15
15
|
FIELD_TYPE_TAG = 13,
|
|
16
|
-
FIELD_TYPE_SECTION = 14
|
|
16
|
+
FIELD_TYPE_SECTION = 14,
|
|
17
|
+
FIELD_TYPE_FILE = 15
|
|
17
18
|
}
|
|
18
19
|
export declare enum FormCreationStatus {
|
|
19
20
|
FORM_CREATION_STATUS_UNSPECIFIED = 0,
|
|
@@ -25,6 +26,25 @@ export declare enum JsonSchemaLibrary {
|
|
|
25
26
|
JSON_SCHEMA_LIBRARY_UNDEFINED = 0,
|
|
26
27
|
JSON_SCHEMA_LIBRARY_JSONFORM = 1
|
|
27
28
|
}
|
|
29
|
+
export declare enum FormSubmissionProcessResultErrorType {
|
|
30
|
+
PROCESS_RESULT_ERROR_TYPE_UNSPECIFIED = 0,
|
|
31
|
+
PROCESS_RESULT_ERROR_TYPE_NOT_FOUND = 1,
|
|
32
|
+
PROCESS_RESULT_ERROR_TYPE_ALREADY_EXISTS = 2,
|
|
33
|
+
PROCESS_RESULT_ERROR_TYPE_INVALID_ARGUMENT = 3
|
|
34
|
+
}
|
|
35
|
+
export declare enum FormSubmissionProcessResultStatus {
|
|
36
|
+
PROCESS_RESULT_STATUS_UNSPECIFIED = 0,
|
|
37
|
+
PROCESS_RESULT_STATUS_IN_PROGRESS = 1,
|
|
38
|
+
PROCESS_RESULT_STATUS_COMPLETED = 2,
|
|
39
|
+
PROCESS_RESULT_STATUS_COMPLETED_WITH_WARNINGS = 3,
|
|
40
|
+
PROCESS_RESULT_STATUS_FAILED = 4
|
|
41
|
+
}
|
|
42
|
+
export declare enum ReprocessStatus {
|
|
43
|
+
REPROCESS_STATUS_UNSPECIFIED = 0,
|
|
44
|
+
STARTED = 1,
|
|
45
|
+
ALREADY_RUNNING = 2,
|
|
46
|
+
NO_MAPPABLE_FIELDS = 3
|
|
47
|
+
}
|
|
28
48
|
export declare enum SectionAction {
|
|
29
49
|
SECTION_ACTION_UNDEFINED = 0,
|
|
30
50
|
SECTION_ACTION_SUBMIT = 1,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { DateDefault, FilterGroupOperator, FilterOperator, FilterType, } from './galaxy-filters.enum';
|
|
2
|
-
export { FieldType, FormCreationStatus, JsonSchemaLibrary, SectionAction, } from './api.enum';
|
|
2
|
+
export { FieldType, FormCreationStatus, JsonSchemaLibrary, FormSubmissionProcessResultErrorType, FormSubmissionProcessResultStatus, ReprocessStatus, SectionAction, } from './api.enum';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CreateFormSubmissionRequest, CreateFormSubmissionResponse, GetMultiFormSubmissionRequest, GetMultiFormSubmissionResponse, ListFormSubmissionRequest, ListFormSubmissionResponse } from './objects/';
|
|
2
|
-
import { CreateFormSubmissionRequestInterface, GetMultiFormSubmissionRequestInterface, ListFormSubmissionRequestInterface } from './interfaces/';
|
|
1
|
+
import { CreateFormSubmissionRequest, CreateFormSubmissionResponse, GetMultiFormSubmissionRequest, GetMultiFormSubmissionResponse, ListFormSubmissionRequest, ListFormSubmissionResponse, ReprocessSubmissionRequest, ReprocessSubmissionResponse } from './objects/';
|
|
2
|
+
import { CreateFormSubmissionRequestInterface, GetMultiFormSubmissionRequestInterface, ListFormSubmissionRequestInterface, ReprocessSubmissionRequestInterface } from './interfaces/';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FormSubmissionApiService {
|
|
@@ -10,6 +10,7 @@ export declare class FormSubmissionApiService {
|
|
|
10
10
|
createFormSubmission(r: CreateFormSubmissionRequest | CreateFormSubmissionRequestInterface): Observable<CreateFormSubmissionResponse>;
|
|
11
11
|
listFormSubmission(r: ListFormSubmissionRequest | ListFormSubmissionRequestInterface): Observable<ListFormSubmissionResponse>;
|
|
12
12
|
getMultiFormSubmission(r: GetMultiFormSubmissionRequest | GetMultiFormSubmissionRequestInterface): Observable<GetMultiFormSubmissionResponse>;
|
|
13
|
+
reprocessSubmission(r: ReprocessSubmissionRequest | ReprocessSubmissionRequestInterface): Observable<ReprocessSubmissionResponse>;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmissionApiService, never>;
|
|
14
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<FormSubmissionApiService>;
|
|
15
16
|
}
|
|
@@ -93,6 +93,7 @@ export interface FormSubmissionInterface {
|
|
|
93
93
|
formVersion?: string;
|
|
94
94
|
values?: FormSubmissionSubmittedValueInterface[];
|
|
95
95
|
created?: Date;
|
|
96
|
+
processResult?: FormSubmissionProcessResultInterface;
|
|
96
97
|
}
|
|
97
98
|
export interface GenerateCustomCSSRequestInterface {
|
|
98
99
|
namespace?: string;
|
|
@@ -198,6 +199,11 @@ export interface PreviewFormResponseInterface {
|
|
|
198
199
|
jsonSchema?: string;
|
|
199
200
|
jsonUiSchema?: string;
|
|
200
201
|
}
|
|
202
|
+
export interface FormSubmissionProcessResultInterface {
|
|
203
|
+
status?: e.FormSubmissionProcessResultStatus;
|
|
204
|
+
entityIds?: string[];
|
|
205
|
+
errors?: FormSubmissionResultErrorInterface[];
|
|
206
|
+
}
|
|
201
207
|
export interface RecoverFormRequestInterface {
|
|
202
208
|
formId?: string;
|
|
203
209
|
}
|
|
@@ -217,6 +223,16 @@ export interface RenderFormResponseInterface {
|
|
|
217
223
|
recaptchaSiteKey?: string;
|
|
218
224
|
defaultValues?: RenderFormResponseDefaultValuesInterface[];
|
|
219
225
|
}
|
|
226
|
+
export interface ReprocessSubmissionRequestInterface {
|
|
227
|
+
formSubmissionId?: string;
|
|
228
|
+
}
|
|
229
|
+
export interface ReprocessSubmissionResponseInterface {
|
|
230
|
+
status?: e.ReprocessStatus;
|
|
231
|
+
}
|
|
232
|
+
export interface FormSubmissionResultErrorInterface {
|
|
233
|
+
stepId?: string;
|
|
234
|
+
errorType?: e.FormSubmissionProcessResultErrorType;
|
|
235
|
+
}
|
|
220
236
|
export interface FormConfigFieldSchemaInterface {
|
|
221
237
|
unmappedField?: UnmappedFieldInterface;
|
|
222
238
|
mappedField?: MappedFieldInterface;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
|
|
2
2
|
export { FilterInterface, FilterGroupInterface, PhoneInterface, FilterValueInterface, } from './galaxy-filters.interface';
|
|
3
|
-
export { ActionParametersInterface, CreateFormFromTemplateRequestInterface, CreateFormFromTemplateResponseInterface, CreateFormRequestInterface, CreateFormResponseInterface, CreateFormSubmissionRequestInterface, CreateFormSubmissionResponseInterface, RenderFormResponseDefaultValuesInterface, DeleteFormRequestInterface, FormConfigFieldInterface, FieldOptionInterface, FieldValueInterface, ListFormsRequestFiltersInterface, FormConfigInterface, GetMultiRequestFormConfigIdentifierInterface, ListFormsResponseFormRowInterface, FormSubmissionInterface, GenerateCustomCSSRequestInterface, GenerateCustomCSSResponseInterface, GetCreateFormFromTemplateStatusRequestInterface, GetCreateFormFromTemplateStatusResponseInterface, 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';
|
|
3
|
+
export { ActionParametersInterface, CreateFormFromTemplateRequestInterface, CreateFormFromTemplateResponseInterface, CreateFormRequestInterface, CreateFormResponseInterface, CreateFormSubmissionRequestInterface, CreateFormSubmissionResponseInterface, RenderFormResponseDefaultValuesInterface, DeleteFormRequestInterface, FormConfigFieldInterface, FieldOptionInterface, FieldValueInterface, ListFormsRequestFiltersInterface, FormConfigInterface, GetMultiRequestFormConfigIdentifierInterface, ListFormsResponseFormRowInterface, FormSubmissionInterface, GenerateCustomCSSRequestInterface, GenerateCustomCSSResponseInterface, GetCreateFormFromTemplateStatusRequestInterface, GetCreateFormFromTemplateStatusResponseInterface, GetEmbedCodeRequestInterface, GetEmbedCodeResponseInterface, GetFormRequestInterface, GetFormResponseInterface, GetMultiFormSubmissionRequestInterface, GetMultiFormSubmissionResponseInterface, GetMultiFormVersionsListRequestInterface, GetMultiFormVersionsListResponseInterface, GetMultiRequestInterface, GetMultiResponseInterface, ListFormSubmissionRequestInterface, ListFormSubmissionResponseInterface, ListFormsRequestInterface, ListFormsResponseInterface, ListMappedFieldSchemaRequestInterface, ListMappedFieldSchemaResponseInterface, MappedFieldInterface, NextParametersInterface, RenderFormResponsePreFillByUrlQueryParameterInterface, PreviewFormRequestInterface, PreviewFormResponseInterface, FormSubmissionProcessResultInterface, RecoverFormRequestInterface, RecoverFormResponseInterface, RenderFormRequestInterface, RenderFormResponseInterface, ReprocessSubmissionRequestInterface, ReprocessSubmissionResponseInterface, FormSubmissionResultErrorInterface, FormConfigFieldSchemaInterface, SectionConfigInterface, StringListInterface, StylesInterface, SubmitConditionParametersInterface, FormSubmissionSubmittedValueInterface, SystemDefinedInterface, FormConfigTemplateSetupSettingsInterface, UnmappedFieldInterface, UpdateFormRequestInterface, UpdateFormResponseInterface, UserFormSubmissionInterface, ValidationErrorInterface, GetMultiFormVersionsListResponseVersionsInterface, } from './api.interface';
|
|
@@ -143,6 +143,7 @@ export declare class FormSubmission implements i.FormSubmissionInterface {
|
|
|
143
143
|
formVersion: string;
|
|
144
144
|
values: FormSubmissionSubmittedValue[];
|
|
145
145
|
created: Date;
|
|
146
|
+
processResult: FormSubmissionProcessResult;
|
|
146
147
|
static fromProto(proto: any): FormSubmission;
|
|
147
148
|
constructor(kwargs?: i.FormSubmissionInterface);
|
|
148
149
|
toApiJson(): object;
|
|
@@ -326,6 +327,14 @@ export declare class PreviewFormResponse implements i.PreviewFormResponseInterfa
|
|
|
326
327
|
constructor(kwargs?: i.PreviewFormResponseInterface);
|
|
327
328
|
toApiJson(): object;
|
|
328
329
|
}
|
|
330
|
+
export declare class FormSubmissionProcessResult implements i.FormSubmissionProcessResultInterface {
|
|
331
|
+
status: e.FormSubmissionProcessResultStatus;
|
|
332
|
+
entityIds: string[];
|
|
333
|
+
errors: FormSubmissionResultError[];
|
|
334
|
+
static fromProto(proto: any): FormSubmissionProcessResult;
|
|
335
|
+
constructor(kwargs?: i.FormSubmissionProcessResultInterface);
|
|
336
|
+
toApiJson(): object;
|
|
337
|
+
}
|
|
329
338
|
export declare class RecoverFormRequest implements i.RecoverFormRequestInterface {
|
|
330
339
|
formId: string;
|
|
331
340
|
static fromProto(proto: any): RecoverFormRequest;
|
|
@@ -357,6 +366,25 @@ export declare class RenderFormResponse implements i.RenderFormResponseInterface
|
|
|
357
366
|
constructor(kwargs?: i.RenderFormResponseInterface);
|
|
358
367
|
toApiJson(): object;
|
|
359
368
|
}
|
|
369
|
+
export declare class ReprocessSubmissionRequest implements i.ReprocessSubmissionRequestInterface {
|
|
370
|
+
formSubmissionId: string;
|
|
371
|
+
static fromProto(proto: any): ReprocessSubmissionRequest;
|
|
372
|
+
constructor(kwargs?: i.ReprocessSubmissionRequestInterface);
|
|
373
|
+
toApiJson(): object;
|
|
374
|
+
}
|
|
375
|
+
export declare class ReprocessSubmissionResponse implements i.ReprocessSubmissionResponseInterface {
|
|
376
|
+
status: e.ReprocessStatus;
|
|
377
|
+
static fromProto(proto: any): ReprocessSubmissionResponse;
|
|
378
|
+
constructor(kwargs?: i.ReprocessSubmissionResponseInterface);
|
|
379
|
+
toApiJson(): object;
|
|
380
|
+
}
|
|
381
|
+
export declare class FormSubmissionResultError implements i.FormSubmissionResultErrorInterface {
|
|
382
|
+
stepId: string;
|
|
383
|
+
errorType: e.FormSubmissionProcessResultErrorType;
|
|
384
|
+
static fromProto(proto: any): FormSubmissionResultError;
|
|
385
|
+
constructor(kwargs?: i.FormSubmissionResultErrorInterface);
|
|
386
|
+
toApiJson(): object;
|
|
387
|
+
}
|
|
360
388
|
export declare class FormConfigFieldSchema implements i.FormConfigFieldSchemaInterface {
|
|
361
389
|
unmappedField: UnmappedField;
|
|
362
390
|
mappedField: MappedField;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
|
|
2
2
|
export { Filter, FilterGroup, Phone, FilterValue, } from './galaxy-filters';
|
|
3
|
-
export { ActionParameters, CreateFormFromTemplateRequest, CreateFormFromTemplateResponse, CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, RenderFormResponseDefaultValues, DeleteFormRequest, FormConfigField, FieldOption, FieldValue, ListFormsRequestFilters, FormConfig, GetMultiRequestFormConfigIdentifier, ListFormsResponseFormRow, FormSubmission, GenerateCustomCSSRequest, GenerateCustomCSSResponse, GetCreateFormFromTemplateStatusRequest, GetCreateFormFromTemplateStatusResponse, 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';
|
|
3
|
+
export { ActionParameters, CreateFormFromTemplateRequest, CreateFormFromTemplateResponse, CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, RenderFormResponseDefaultValues, DeleteFormRequest, FormConfigField, FieldOption, FieldValue, ListFormsRequestFilters, FormConfig, GetMultiRequestFormConfigIdentifier, ListFormsResponseFormRow, FormSubmission, GenerateCustomCSSRequest, GenerateCustomCSSResponse, GetCreateFormFromTemplateStatusRequest, GetCreateFormFromTemplateStatusResponse, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormSubmissionRequest, GetMultiFormSubmissionResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiRequest, GetMultiResponse, ListFormSubmissionRequest, ListFormSubmissionResponse, ListFormsRequest, ListFormsResponse, ListMappedFieldSchemaRequest, ListMappedFieldSchemaResponse, MappedField, NextParameters, RenderFormResponsePreFillByUrlQueryParameter, PreviewFormRequest, PreviewFormResponse, FormSubmissionProcessResult, RecoverFormRequest, RecoverFormResponse, RenderFormRequest, RenderFormResponse, ReprocessSubmissionRequest, ReprocessSubmissionResponse, FormSubmissionResultError, FormConfigFieldSchema, SectionConfig, StringList, Styles, SubmitConditionParameters, FormSubmissionSubmittedValue, SystemDefined, FormConfigTemplateSetupSettings, UnmappedField, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError, GetMultiFormVersionsListResponseVersions, } from './api';
|