@vendasta/forms_microservice 0.21.0 → 0.23.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 +99 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-forms_microservice.mjs +144 -1
- package/fesm2015/vendasta-forms_microservice.mjs.map +1 -1
- package/fesm2020/vendasta-forms_microservice.mjs +144 -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 +17 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +29 -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
|
}
|
|
@@ -93,10 +100,20 @@ export interface GenerateCustomCSSRequestInterface {
|
|
|
93
100
|
prompt?: string;
|
|
94
101
|
imageUrls?: string[];
|
|
95
102
|
htmlTemplate?: string;
|
|
103
|
+
formId?: string;
|
|
96
104
|
}
|
|
97
105
|
export interface GenerateCustomCSSResponseInterface {
|
|
98
106
|
generatedCss?: StylesInterface;
|
|
99
107
|
}
|
|
108
|
+
export interface GetCreateFormFromTemplateStatusRequestInterface {
|
|
109
|
+
namespace?: string;
|
|
110
|
+
workflowId?: string;
|
|
111
|
+
}
|
|
112
|
+
export interface GetCreateFormFromTemplateStatusResponseInterface {
|
|
113
|
+
status?: e.FormCreationStatus;
|
|
114
|
+
formId?: string;
|
|
115
|
+
errorMessage?: string;
|
|
116
|
+
}
|
|
100
117
|
export interface GetEmbedCodeRequestInterface {
|
|
101
118
|
formId?: string;
|
|
102
119
|
}
|
|
@@ -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;
|
|
@@ -140,6 +153,7 @@ export declare class GenerateCustomCSSRequest implements i.GenerateCustomCSSRequ
|
|
|
140
153
|
prompt: string;
|
|
141
154
|
imageUrls: string[];
|
|
142
155
|
htmlTemplate: string;
|
|
156
|
+
formId: string;
|
|
143
157
|
static fromProto(proto: any): GenerateCustomCSSRequest;
|
|
144
158
|
constructor(kwargs?: i.GenerateCustomCSSRequestInterface);
|
|
145
159
|
toApiJson(): object;
|
|
@@ -150,6 +164,21 @@ export declare class GenerateCustomCSSResponse implements i.GenerateCustomCSSRes
|
|
|
150
164
|
constructor(kwargs?: i.GenerateCustomCSSResponseInterface);
|
|
151
165
|
toApiJson(): object;
|
|
152
166
|
}
|
|
167
|
+
export declare class GetCreateFormFromTemplateStatusRequest implements i.GetCreateFormFromTemplateStatusRequestInterface {
|
|
168
|
+
namespace: string;
|
|
169
|
+
workflowId: string;
|
|
170
|
+
static fromProto(proto: any): GetCreateFormFromTemplateStatusRequest;
|
|
171
|
+
constructor(kwargs?: i.GetCreateFormFromTemplateStatusRequestInterface);
|
|
172
|
+
toApiJson(): object;
|
|
173
|
+
}
|
|
174
|
+
export declare class GetCreateFormFromTemplateStatusResponse implements i.GetCreateFormFromTemplateStatusResponseInterface {
|
|
175
|
+
status: e.FormCreationStatus;
|
|
176
|
+
formId: string;
|
|
177
|
+
errorMessage: string;
|
|
178
|
+
static fromProto(proto: any): GetCreateFormFromTemplateStatusResponse;
|
|
179
|
+
constructor(kwargs?: i.GetCreateFormFromTemplateStatusResponseInterface);
|
|
180
|
+
toApiJson(): object;
|
|
181
|
+
}
|
|
153
182
|
export declare class GetEmbedCodeRequest implements i.GetEmbedCodeRequestInterface {
|
|
154
183
|
formId: string;
|
|
155
184
|
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';
|