@vendasta/forms_microservice 0.21.0 → 0.22.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 +8 -1
- package/esm2020/lib/_internal/enums/index.mjs +2 -2
- package/esm2020/lib/_internal/form-template.api.service.mjs +45 -0
- package/esm2020/lib/_internal/index.mjs +2 -1
- 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 +96 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-forms_microservice.mjs +141 -1
- package/fesm2015/vendasta-forms_microservice.mjs.map +1 -1
- package/fesm2020/vendasta-forms_microservice.mjs +141 -1
- package/fesm2020/vendasta-forms_microservice.mjs.map +1 -1
- package/lib/_internal/enums/api.enum.d.ts +6 -0
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/form-template.api.service.d.ts +14 -0
- package/lib/_internal/index.d.ts +1 -0
- 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
|
@@ -15,6 +15,12 @@ export declare enum FieldType {
|
|
|
15
15
|
FIELD_TYPE_TAG = 13,
|
|
16
16
|
FIELD_TYPE_SECTION = 14
|
|
17
17
|
}
|
|
18
|
+
export declare enum FormCreationStatus {
|
|
19
|
+
FORM_CREATION_STATUS_UNSPECIFIED = 0,
|
|
20
|
+
FORM_CREATION_STATUS_IN_PROGRESS = 1,
|
|
21
|
+
FORM_CREATION_STATUS_COMPLETED = 2,
|
|
22
|
+
FORM_CREATION_STATUS_FAILED = 3
|
|
23
|
+
}
|
|
18
24
|
export declare enum JsonSchemaLibrary {
|
|
19
25
|
JSON_SCHEMA_LIBRARY_UNDEFINED = 0,
|
|
20
26
|
JSON_SCHEMA_LIBRARY_JSONFORM = 1
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { DateDefault, FilterGroupOperator, FilterOperator, FilterType, } from './galaxy-filters.enum';
|
|
2
|
-
export { FieldType, JsonSchemaLibrary, SectionAction, } from './api.enum';
|
|
2
|
+
export { FieldType, FormCreationStatus, JsonSchemaLibrary, SectionAction, } from './api.enum';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CreateFormFromTemplateRequest, CreateFormFromTemplateResponse, GetCreateFormFromTemplateStatusRequest, GetCreateFormFromTemplateStatusResponse } from './objects/';
|
|
2
|
+
import { CreateFormFromTemplateRequestInterface, GetCreateFormFromTemplateStatusRequestInterface } from './interfaces/';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FormTemplateApiService {
|
|
6
|
+
private readonly hostService;
|
|
7
|
+
private readonly http;
|
|
8
|
+
private _host;
|
|
9
|
+
private apiOptions;
|
|
10
|
+
createFormFromTemplate(r: CreateFormFromTemplateRequest | CreateFormFromTemplateRequestInterface): Observable<CreateFormFromTemplateResponse>;
|
|
11
|
+
getCreateFormFromTemplateStatus(r: GetCreateFormFromTemplateStatusRequest | GetCreateFormFromTemplateStatusRequestInterface): Observable<GetCreateFormFromTemplateStatusResponse>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormTemplateApiService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormTemplateApiService>;
|
|
14
|
+
}
|
package/lib/_internal/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export * from './enums';
|
|
|
2
2
|
export * from './objects';
|
|
3
3
|
export * from './interfaces';
|
|
4
4
|
export { FormSubmissionApiService } from './form-submission.api.service';
|
|
5
|
+
export { FormTemplateApiService } from './form-template.api.service';
|
|
5
6
|
export { FormsApiService } from './forms.api.service';
|
|
@@ -5,6 +5,13 @@ export interface ActionParametersInterface {
|
|
|
5
5
|
submitConditionParams?: SubmitConditionParametersInterface;
|
|
6
6
|
nextParameters?: NextParametersInterface;
|
|
7
7
|
}
|
|
8
|
+
export interface CreateFormFromTemplateRequestInterface {
|
|
9
|
+
namespace?: string;
|
|
10
|
+
templateId?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface CreateFormFromTemplateResponseInterface {
|
|
13
|
+
workflowId?: string;
|
|
14
|
+
}
|
|
8
15
|
export interface CreateFormRequestInterface {
|
|
9
16
|
formConfig?: FormConfigInterface;
|
|
10
17
|
}
|
|
@@ -97,6 +104,15 @@ export interface GenerateCustomCSSRequestInterface {
|
|
|
97
104
|
export interface GenerateCustomCSSResponseInterface {
|
|
98
105
|
generatedCss?: StylesInterface;
|
|
99
106
|
}
|
|
107
|
+
export interface GetCreateFormFromTemplateStatusRequestInterface {
|
|
108
|
+
namespace?: string;
|
|
109
|
+
workflowId?: string;
|
|
110
|
+
}
|
|
111
|
+
export interface GetCreateFormFromTemplateStatusResponseInterface {
|
|
112
|
+
status?: e.FormCreationStatus;
|
|
113
|
+
formId?: string;
|
|
114
|
+
errorMessage?: string;
|
|
115
|
+
}
|
|
100
116
|
export interface GetEmbedCodeRequestInterface {
|
|
101
117
|
formId?: string;
|
|
102
118
|
}
|
|
@@ -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, 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';
|
|
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';
|
|
@@ -10,6 +10,19 @@ export declare class ActionParameters implements i.ActionParametersInterface {
|
|
|
10
10
|
constructor(kwargs?: i.ActionParametersInterface);
|
|
11
11
|
toApiJson(): object;
|
|
12
12
|
}
|
|
13
|
+
export declare class CreateFormFromTemplateRequest implements i.CreateFormFromTemplateRequestInterface {
|
|
14
|
+
namespace: string;
|
|
15
|
+
templateId: string;
|
|
16
|
+
static fromProto(proto: any): CreateFormFromTemplateRequest;
|
|
17
|
+
constructor(kwargs?: i.CreateFormFromTemplateRequestInterface);
|
|
18
|
+
toApiJson(): object;
|
|
19
|
+
}
|
|
20
|
+
export declare class CreateFormFromTemplateResponse implements i.CreateFormFromTemplateResponseInterface {
|
|
21
|
+
workflowId: string;
|
|
22
|
+
static fromProto(proto: any): CreateFormFromTemplateResponse;
|
|
23
|
+
constructor(kwargs?: i.CreateFormFromTemplateResponseInterface);
|
|
24
|
+
toApiJson(): object;
|
|
25
|
+
}
|
|
13
26
|
export declare class CreateFormRequest implements i.CreateFormRequestInterface {
|
|
14
27
|
formConfig: FormConfig;
|
|
15
28
|
static fromProto(proto: any): CreateFormRequest;
|
|
@@ -150,6 +163,21 @@ export declare class GenerateCustomCSSResponse implements i.GenerateCustomCSSRes
|
|
|
150
163
|
constructor(kwargs?: i.GenerateCustomCSSResponseInterface);
|
|
151
164
|
toApiJson(): object;
|
|
152
165
|
}
|
|
166
|
+
export declare class GetCreateFormFromTemplateStatusRequest implements i.GetCreateFormFromTemplateStatusRequestInterface {
|
|
167
|
+
namespace: string;
|
|
168
|
+
workflowId: string;
|
|
169
|
+
static fromProto(proto: any): GetCreateFormFromTemplateStatusRequest;
|
|
170
|
+
constructor(kwargs?: i.GetCreateFormFromTemplateStatusRequestInterface);
|
|
171
|
+
toApiJson(): object;
|
|
172
|
+
}
|
|
173
|
+
export declare class GetCreateFormFromTemplateStatusResponse implements i.GetCreateFormFromTemplateStatusResponseInterface {
|
|
174
|
+
status: e.FormCreationStatus;
|
|
175
|
+
formId: string;
|
|
176
|
+
errorMessage: string;
|
|
177
|
+
static fromProto(proto: any): GetCreateFormFromTemplateStatusResponse;
|
|
178
|
+
constructor(kwargs?: i.GetCreateFormFromTemplateStatusResponseInterface);
|
|
179
|
+
toApiJson(): object;
|
|
180
|
+
}
|
|
153
181
|
export declare class GetEmbedCodeRequest implements i.GetEmbedCodeRequestInterface {
|
|
154
182
|
formId: string;
|
|
155
183
|
static fromProto(proto: any): GetEmbedCodeRequest;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
|
|
2
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';
|
|
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';
|