@vendasta/forms_microservice 0.7.0 → 0.8.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.
@@ -28,6 +28,10 @@ export interface FormConfigFieldInterface {
28
28
  preFillByUrlQueryParameter?: string;
29
29
  placeholder?: string;
30
30
  }
31
+ export interface FieldOptionInterface {
32
+ value?: string;
33
+ label?: string;
34
+ }
31
35
  export interface FieldValueInterface {
32
36
  invalid?: boolean;
33
37
  integer?: number;
@@ -113,16 +117,22 @@ export interface ListFormsResponseInterface {
113
117
  formRows?: ListFormsResponseFormRowInterface[];
114
118
  pagingMetadata?: PagedResponseMetadataInterface;
115
119
  }
116
- export interface FormConfigFieldMappedFieldInterface {
120
+ export interface ListMappedFieldSchemaRequestInterface {
121
+ namespace?: string;
122
+ crmObjectType?: string;
123
+ crmObjectSubtype?: string;
124
+ pagingOptions?: PagedRequestOptionsInterface;
125
+ }
126
+ export interface ListMappedFieldSchemaResponseInterface {
127
+ fieldSchemas?: MappedFieldInterface[];
128
+ pagingMetadata?: PagedResponseMetadataInterface;
129
+ }
130
+ export interface MappedFieldInterface {
117
131
  id?: string;
118
132
  type?: e.FieldType;
119
- options?: FormConfigFieldOptionInterface[];
133
+ options?: FieldOptionInterface[];
120
134
  mappedTo?: string;
121
- systemDefined?: FormConfigFieldSystemDefinedInterface;
122
- }
123
- export interface FormConfigFieldOptionInterface {
124
- value?: string;
125
- label?: string;
135
+ systemDefined?: SystemDefinedInterface;
126
136
  }
127
137
  export interface RenderFormResponsePreFillByUrlQueryParameterInterface {
128
138
  fieldId?: string;
@@ -148,8 +158,8 @@ export interface RenderFormResponseInterface {
148
158
  recaptchaSiteKey?: string;
149
159
  }
150
160
  export interface FormConfigFieldSchemaInterface {
151
- unmappedField?: FormConfigFieldUnmappedFieldInterface;
152
- mappedField?: FormConfigFieldMappedFieldInterface;
161
+ unmappedField?: UnmappedFieldInterface;
162
+ mappedField?: MappedFieldInterface;
153
163
  }
154
164
  export interface StylesInterface {
155
165
  width?: string;
@@ -169,13 +179,13 @@ export interface FormSubmissionSubmittedValueInterface {
169
179
  fieldType?: e.FieldType;
170
180
  mappedToResource?: string;
171
181
  }
172
- export interface FormConfigFieldSystemDefinedInterface {
182
+ export interface SystemDefinedInterface {
173
183
  required?: boolean;
174
184
  }
175
- export interface FormConfigFieldUnmappedFieldInterface {
185
+ export interface UnmappedFieldInterface {
176
186
  id?: string;
177
187
  type?: e.FieldType;
178
- options?: FormConfigFieldOptionInterface[];
188
+ options?: FieldOptionInterface[];
179
189
  currencyCode?: string;
180
190
  }
181
191
  export interface UpdateFormRequestInterface {
@@ -1,2 +1,2 @@
1
1
  export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
2
- export { CreateFormRequestInterface, CreateFormResponseInterface, CreateFormSubmissionRequestInterface, CreateFormSubmissionResponseInterface, DeleteFormRequestInterface, FormConfigFieldInterface, FieldValueInterface, ListFormsRequestFiltersInterface, FormConfigInterface, GetMultiRequestFormConfigIdentifierInterface, ListFormsResponseFormRowInterface, FormSubmissionInterface, GetEmbedCodeRequestInterface, GetEmbedCodeResponseInterface, GetFormRequestInterface, GetFormResponseInterface, GetMultiFormSubmissionRequestInterface, GetMultiFormSubmissionResponseInterface, GetMultiFormVersionsListRequestInterface, GetMultiFormVersionsListResponseInterface, GetMultiRequestInterface, GetMultiResponseInterface, ListFormSubmissionRequestInterface, ListFormSubmissionResponseInterface, ListFormsRequestInterface, ListFormsResponseInterface, FormConfigFieldMappedFieldInterface, FormConfigFieldOptionInterface, RenderFormResponsePreFillByUrlQueryParameterInterface, PreviewFormRequestInterface, PreviewFormResponseInterface, RenderFormRequestInterface, RenderFormResponseInterface, FormConfigFieldSchemaInterface, StylesInterface, FormSubmissionSubmittedValueInterface, FormConfigFieldSystemDefinedInterface, FormConfigFieldUnmappedFieldInterface, UpdateFormRequestInterface, UpdateFormResponseInterface, UserFormSubmissionInterface, ValidationErrorInterface, GetMultiFormVersionsListResponseVersionsInterface, } from './api.interface';
2
+ export { CreateFormRequestInterface, CreateFormResponseInterface, CreateFormSubmissionRequestInterface, CreateFormSubmissionResponseInterface, 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, RenderFormResponsePreFillByUrlQueryParameterInterface, PreviewFormRequestInterface, PreviewFormResponseInterface, RenderFormRequestInterface, RenderFormResponseInterface, FormConfigFieldSchemaInterface, StylesInterface, FormSubmissionSubmittedValueInterface, SystemDefinedInterface, UnmappedFieldInterface, UpdateFormRequestInterface, UpdateFormResponseInterface, UserFormSubmissionInterface, ValidationErrorInterface, GetMultiFormVersionsListResponseVersionsInterface, } from './api.interface';
@@ -48,6 +48,13 @@ export declare class FormConfigField implements i.FormConfigFieldInterface {
48
48
  constructor(kwargs?: i.FormConfigFieldInterface);
49
49
  toApiJson(): object;
50
50
  }
51
+ export declare class FieldOption implements i.FieldOptionInterface {
52
+ value: string;
53
+ label: string;
54
+ static fromProto(proto: any): FieldOption;
55
+ constructor(kwargs?: i.FieldOptionInterface);
56
+ toApiJson(): object;
57
+ }
51
58
  export declare class FieldValue implements i.FieldValueInterface {
52
59
  invalid: boolean;
53
60
  integer: number;
@@ -193,21 +200,30 @@ export declare class ListFormsResponse implements i.ListFormsResponseInterface {
193
200
  constructor(kwargs?: i.ListFormsResponseInterface);
194
201
  toApiJson(): object;
195
202
  }
196
- export declare class FormConfigFieldMappedField implements i.FormConfigFieldMappedFieldInterface {
203
+ export declare class ListMappedFieldSchemaRequest implements i.ListMappedFieldSchemaRequestInterface {
204
+ namespace: string;
205
+ crmObjectType: string;
206
+ crmObjectSubtype: string;
207
+ pagingOptions: PagedRequestOptions;
208
+ static fromProto(proto: any): ListMappedFieldSchemaRequest;
209
+ constructor(kwargs?: i.ListMappedFieldSchemaRequestInterface);
210
+ toApiJson(): object;
211
+ }
212
+ export declare class ListMappedFieldSchemaResponse implements i.ListMappedFieldSchemaResponseInterface {
213
+ fieldSchemas: MappedField[];
214
+ pagingMetadata: PagedResponseMetadata;
215
+ static fromProto(proto: any): ListMappedFieldSchemaResponse;
216
+ constructor(kwargs?: i.ListMappedFieldSchemaResponseInterface);
217
+ toApiJson(): object;
218
+ }
219
+ export declare class MappedField implements i.MappedFieldInterface {
197
220
  id: string;
198
221
  type: e.FieldType;
199
- options: FormConfigFieldOption[];
222
+ options: FieldOption[];
200
223
  mappedTo: string;
201
- systemDefined: FormConfigFieldSystemDefined;
202
- static fromProto(proto: any): FormConfigFieldMappedField;
203
- constructor(kwargs?: i.FormConfigFieldMappedFieldInterface);
204
- toApiJson(): object;
205
- }
206
- export declare class FormConfigFieldOption implements i.FormConfigFieldOptionInterface {
207
- value: string;
208
- label: string;
209
- static fromProto(proto: any): FormConfigFieldOption;
210
- constructor(kwargs?: i.FormConfigFieldOptionInterface);
224
+ systemDefined: SystemDefined;
225
+ static fromProto(proto: any): MappedField;
226
+ constructor(kwargs?: i.MappedFieldInterface);
211
227
  toApiJson(): object;
212
228
  }
213
229
  export declare class RenderFormResponsePreFillByUrlQueryParameter implements i.RenderFormResponsePreFillByUrlQueryParameterInterface {
@@ -249,8 +265,8 @@ export declare class RenderFormResponse implements i.RenderFormResponseInterface
249
265
  toApiJson(): object;
250
266
  }
251
267
  export declare class FormConfigFieldSchema implements i.FormConfigFieldSchemaInterface {
252
- unmappedField: FormConfigFieldUnmappedField;
253
- mappedField: FormConfigFieldMappedField;
268
+ unmappedField: UnmappedField;
269
+ mappedField: MappedField;
254
270
  static fromProto(proto: any): FormConfigFieldSchema;
255
271
  constructor(kwargs?: i.FormConfigFieldSchemaInterface);
256
272
  toApiJson(): object;
@@ -279,19 +295,19 @@ export declare class FormSubmissionSubmittedValue implements i.FormSubmissionSub
279
295
  constructor(kwargs?: i.FormSubmissionSubmittedValueInterface);
280
296
  toApiJson(): object;
281
297
  }
282
- export declare class FormConfigFieldSystemDefined implements i.FormConfigFieldSystemDefinedInterface {
298
+ export declare class SystemDefined implements i.SystemDefinedInterface {
283
299
  required: boolean;
284
- static fromProto(proto: any): FormConfigFieldSystemDefined;
285
- constructor(kwargs?: i.FormConfigFieldSystemDefinedInterface);
300
+ static fromProto(proto: any): SystemDefined;
301
+ constructor(kwargs?: i.SystemDefinedInterface);
286
302
  toApiJson(): object;
287
303
  }
288
- export declare class FormConfigFieldUnmappedField implements i.FormConfigFieldUnmappedFieldInterface {
304
+ export declare class UnmappedField implements i.UnmappedFieldInterface {
289
305
  id: string;
290
306
  type: e.FieldType;
291
- options: FormConfigFieldOption[];
307
+ options: FieldOption[];
292
308
  currencyCode: string;
293
- static fromProto(proto: any): FormConfigFieldUnmappedField;
294
- constructor(kwargs?: i.FormConfigFieldUnmappedFieldInterface);
309
+ static fromProto(proto: any): UnmappedField;
310
+ constructor(kwargs?: i.UnmappedFieldInterface);
295
311
  toApiJson(): object;
296
312
  }
297
313
  export declare class UpdateFormRequest implements i.UpdateFormRequestInterface {
@@ -1,2 +1,2 @@
1
1
  export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
2
- export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DeleteFormRequest, FormConfigField, FieldValue, ListFormsRequestFilters, FormConfig, GetMultiRequestFormConfigIdentifier, ListFormsResponseFormRow, FormSubmission, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormSubmissionRequest, GetMultiFormSubmissionResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiRequest, GetMultiResponse, ListFormSubmissionRequest, ListFormSubmissionResponse, ListFormsRequest, ListFormsResponse, FormConfigFieldMappedField, FormConfigFieldOption, RenderFormResponsePreFillByUrlQueryParameter, PreviewFormRequest, PreviewFormResponse, RenderFormRequest, RenderFormResponse, FormConfigFieldSchema, Styles, FormSubmissionSubmittedValue, FormConfigFieldSystemDefined, FormConfigFieldUnmappedField, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError, GetMultiFormVersionsListResponseVersions, } from './api';
2
+ export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, 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, RenderFormResponsePreFillByUrlQueryParameter, PreviewFormRequest, PreviewFormResponse, RenderFormRequest, RenderFormResponse, FormConfigFieldSchema, Styles, FormSubmissionSubmittedValue, SystemDefined, 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.7.0",
3
+ "version": "0.8.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"