@vendasta/forms_microservice 0.17.0 → 0.19.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/forms.api.service.mjs +12 -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 +118 -1
- package/fesm2015/vendasta-forms_microservice.mjs.map +1 -1
- package/fesm2020/vendasta-forms_microservice.mjs +118 -1
- package/fesm2020/vendasta-forms_microservice.mjs.map +1 -1
- package/lib/_internal/forms.api.service.d.ts +4 -2
- package/lib/_internal/interfaces/api.interface.d.ts +19 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +31 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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, GenerateCustomCSSRequest, GenerateCustomCSSResponse, 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, GenerateCustomCSSRequestInterface, 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,8 @@ 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>;
|
|
23
|
+
generateCustomCss(r: GenerateCustomCSSRequest | GenerateCustomCSSRequestInterface): Observable<GenerateCustomCSSResponse>;
|
|
22
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormsApiService, never>;
|
|
23
25
|
static ɵprov: i0.ɵɵInjectableDeclaration<FormsApiService>;
|
|
24
26
|
}
|
|
@@ -83,6 +83,16 @@ export interface FormSubmissionInterface {
|
|
|
83
83
|
values?: FormSubmissionSubmittedValueInterface[];
|
|
84
84
|
created?: Date;
|
|
85
85
|
}
|
|
86
|
+
export interface GenerateCustomCSSRequestInterface {
|
|
87
|
+
namespace?: string;
|
|
88
|
+
currentCss?: StylesInterface;
|
|
89
|
+
prompt?: string;
|
|
90
|
+
imageUrls?: string[];
|
|
91
|
+
htmlTemplate?: string;
|
|
92
|
+
}
|
|
93
|
+
export interface GenerateCustomCSSResponseInterface {
|
|
94
|
+
generatedCss?: StylesInterface;
|
|
95
|
+
}
|
|
86
96
|
export interface GetEmbedCodeRequestInterface {
|
|
87
97
|
formId?: string;
|
|
88
98
|
}
|
|
@@ -135,6 +145,7 @@ export interface ListMappedFieldSchemaRequestInterface {
|
|
|
135
145
|
crmObjectSubtype?: string;
|
|
136
146
|
pagingOptions?: PagedRequestOptionsInterface;
|
|
137
147
|
mappedToResource?: string;
|
|
148
|
+
locale?: string;
|
|
138
149
|
}
|
|
139
150
|
export interface ListMappedFieldSchemaResponseInterface {
|
|
140
151
|
fieldSchemas?: MappedFieldInterface[];
|
|
@@ -164,6 +175,13 @@ export interface PreviewFormResponseInterface {
|
|
|
164
175
|
jsonSchema?: string;
|
|
165
176
|
jsonUiSchema?: string;
|
|
166
177
|
}
|
|
178
|
+
export interface RecoverFormRequestInterface {
|
|
179
|
+
formId?: string;
|
|
180
|
+
}
|
|
181
|
+
export interface RecoverFormResponseInterface {
|
|
182
|
+
formId?: string;
|
|
183
|
+
version?: string;
|
|
184
|
+
}
|
|
167
185
|
export interface RenderFormRequestInterface {
|
|
168
186
|
formId?: string;
|
|
169
187
|
library?: e.JsonSchemaLibrary;
|
|
@@ -199,6 +217,7 @@ export interface StylesInterface {
|
|
|
199
217
|
primaryFontColor?: string;
|
|
200
218
|
primaryColor?: string;
|
|
201
219
|
onPrimaryColor?: string;
|
|
220
|
+
customCss?: string;
|
|
202
221
|
}
|
|
203
222
|
export interface SubmitConditionParametersInterface {
|
|
204
223
|
fieldId?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
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, GetEmbedCodeRequestInterface, GetEmbedCodeResponseInterface, GetFormRequestInterface, GetFormResponseInterface, GetMultiFormSubmissionRequestInterface, GetMultiFormSubmissionResponseInterface, GetMultiFormVersionsListRequestInterface, GetMultiFormVersionsListResponseInterface, GetMultiRequestInterface, GetMultiResponseInterface, ListFormSubmissionRequestInterface, ListFormSubmissionResponseInterface, ListFormsRequestInterface, ListFormsResponseInterface, ListMappedFieldSchemaRequestInterface, ListMappedFieldSchemaResponseInterface, MappedFieldInterface, NextParametersInterface, RenderFormResponsePreFillByUrlQueryParameterInterface, PreviewFormRequestInterface, PreviewFormResponseInterface, RenderFormRequestInterface, RenderFormResponseInterface, FormConfigFieldSchemaInterface, SectionConfigInterface, StringListInterface, StylesInterface, SubmitConditionParametersInterface, 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, 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';
|
|
@@ -130,6 +130,22 @@ export declare class FormSubmission implements i.FormSubmissionInterface {
|
|
|
130
130
|
constructor(kwargs?: i.FormSubmissionInterface);
|
|
131
131
|
toApiJson(): object;
|
|
132
132
|
}
|
|
133
|
+
export declare class GenerateCustomCSSRequest implements i.GenerateCustomCSSRequestInterface {
|
|
134
|
+
namespace: string;
|
|
135
|
+
currentCss: Styles;
|
|
136
|
+
prompt: string;
|
|
137
|
+
imageUrls: string[];
|
|
138
|
+
htmlTemplate: string;
|
|
139
|
+
static fromProto(proto: any): GenerateCustomCSSRequest;
|
|
140
|
+
constructor(kwargs?: i.GenerateCustomCSSRequestInterface);
|
|
141
|
+
toApiJson(): object;
|
|
142
|
+
}
|
|
143
|
+
export declare class GenerateCustomCSSResponse implements i.GenerateCustomCSSResponseInterface {
|
|
144
|
+
generatedCss: Styles;
|
|
145
|
+
static fromProto(proto: any): GenerateCustomCSSResponse;
|
|
146
|
+
constructor(kwargs?: i.GenerateCustomCSSResponseInterface);
|
|
147
|
+
toApiJson(): object;
|
|
148
|
+
}
|
|
133
149
|
export declare class GetEmbedCodeRequest implements i.GetEmbedCodeRequestInterface {
|
|
134
150
|
formId: string;
|
|
135
151
|
static fromProto(proto: any): GetEmbedCodeRequest;
|
|
@@ -224,6 +240,7 @@ export declare class ListMappedFieldSchemaRequest implements i.ListMappedFieldSc
|
|
|
224
240
|
crmObjectSubtype: string;
|
|
225
241
|
pagingOptions: PagedRequestOptions;
|
|
226
242
|
mappedToResource: string;
|
|
243
|
+
locale: string;
|
|
227
244
|
static fromProto(proto: any): ListMappedFieldSchemaRequest;
|
|
228
245
|
constructor(kwargs?: i.ListMappedFieldSchemaRequestInterface);
|
|
229
246
|
toApiJson(): object;
|
|
@@ -274,6 +291,19 @@ export declare class PreviewFormResponse implements i.PreviewFormResponseInterfa
|
|
|
274
291
|
constructor(kwargs?: i.PreviewFormResponseInterface);
|
|
275
292
|
toApiJson(): object;
|
|
276
293
|
}
|
|
294
|
+
export declare class RecoverFormRequest implements i.RecoverFormRequestInterface {
|
|
295
|
+
formId: string;
|
|
296
|
+
static fromProto(proto: any): RecoverFormRequest;
|
|
297
|
+
constructor(kwargs?: i.RecoverFormRequestInterface);
|
|
298
|
+
toApiJson(): object;
|
|
299
|
+
}
|
|
300
|
+
export declare class RecoverFormResponse implements i.RecoverFormResponseInterface {
|
|
301
|
+
formId: string;
|
|
302
|
+
version: string;
|
|
303
|
+
static fromProto(proto: any): RecoverFormResponse;
|
|
304
|
+
constructor(kwargs?: i.RecoverFormResponseInterface);
|
|
305
|
+
toApiJson(): object;
|
|
306
|
+
}
|
|
277
307
|
export declare class RenderFormRequest implements i.RenderFormRequestInterface {
|
|
278
308
|
formId: string;
|
|
279
309
|
library: e.JsonSchemaLibrary;
|
|
@@ -324,6 +354,7 @@ export declare class Styles implements i.StylesInterface {
|
|
|
324
354
|
primaryFontColor: string;
|
|
325
355
|
primaryColor: string;
|
|
326
356
|
onPrimaryColor: string;
|
|
357
|
+
customCss: string;
|
|
327
358
|
static fromProto(proto: any): Styles;
|
|
328
359
|
constructor(kwargs?: i.StylesInterface);
|
|
329
360
|
toApiJson(): object;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
|
|
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, RenderFormRequest, RenderFormResponse, FormConfigFieldSchema, SectionConfig, StringList, Styles, SubmitConditionParameters, 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, 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';
|