@vendasta/forms_microservice 0.1.1 → 0.3.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.
@@ -9,7 +9,7 @@ export interface CreateFormResponseInterface {
9
9
  errors?: ValidationErrorInterface[];
10
10
  }
11
11
  export interface CreateFormSubmissionRequestInterface {
12
- submission?: FormSubmissionInterface;
12
+ submission?: UserFormSubmissionInterface;
13
13
  recaptchaToken?: string;
14
14
  }
15
15
  export interface CreateFormSubmissionResponseInterface {
@@ -62,14 +62,9 @@ export interface ListFormsResponseFormRowInterface {
62
62
  numberOfSubmissions?: number;
63
63
  }
64
64
  export interface FormSubmissionInterface {
65
- formId?: string;
66
- version?: string;
67
- values?: string;
68
- }
69
- export interface ListFormSubmissionResponseFormSubmissionInterface {
70
65
  formSubmissionId?: string;
71
66
  formVersion?: string;
72
- values?: ListFormSubmissionResponseFormSubmissionSubmittedValueInterface[];
67
+ values?: FormSubmissionSubmittedValueInterface[];
73
68
  created?: Date;
74
69
  }
75
70
  export interface GetEmbedCodeRequestInterface {
@@ -84,6 +79,12 @@ export interface GetFormRequestInterface {
84
79
  export interface GetFormResponseInterface {
85
80
  formConfig?: FormConfigInterface;
86
81
  }
82
+ export interface GetMultiFormSubmissionRequestInterface {
83
+ formSubmissionIds?: string[];
84
+ }
85
+ export interface GetMultiFormSubmissionResponseInterface {
86
+ submissions?: FormSubmissionInterface[];
87
+ }
87
88
  export interface GetMultiFormVersionsListRequestInterface {
88
89
  formIds?: string[];
89
90
  }
@@ -101,7 +102,7 @@ export interface ListFormSubmissionRequestInterface {
101
102
  pagingOptions?: PagedRequestOptionsInterface;
102
103
  }
103
104
  export interface ListFormSubmissionResponseInterface {
104
- submissions?: ListFormSubmissionResponseFormSubmissionInterface[];
105
+ submissions?: FormSubmissionInterface[];
105
106
  pagingMetadata?: PagedResponseMetadataInterface;
106
107
  }
107
108
  export interface ListFormsRequestInterface {
@@ -161,9 +162,11 @@ export interface StylesInterface {
161
162
  primaryColor?: string;
162
163
  onPrimaryColor?: string;
163
164
  }
164
- export interface ListFormSubmissionResponseFormSubmissionSubmittedValueInterface {
165
+ export interface FormSubmissionSubmittedValueInterface {
165
166
  fieldId?: string;
166
167
  fieldValue?: FieldValueInterface;
168
+ fieldType?: e.FieldType;
169
+ mappedToResource?: string;
167
170
  }
168
171
  export interface FormConfigFieldUnmappedFieldInterface {
169
172
  id?: string;
@@ -178,6 +181,11 @@ export interface UpdateFormResponseInterface {
178
181
  version?: string;
179
182
  errors?: ValidationErrorInterface[];
180
183
  }
184
+ export interface UserFormSubmissionInterface {
185
+ formId?: string;
186
+ version?: string;
187
+ values?: string;
188
+ }
181
189
  export interface ValidationErrorInterface {
182
190
  ruleId?: string;
183
191
  message?: string;
@@ -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, ListFormSubmissionResponseFormSubmissionInterface, GetEmbedCodeRequestInterface, GetEmbedCodeResponseInterface, GetFormRequestInterface, GetFormResponseInterface, GetMultiFormVersionsListRequestInterface, GetMultiFormVersionsListResponseInterface, GetMultiRequestInterface, GetMultiResponseInterface, ListFormSubmissionRequestInterface, ListFormSubmissionResponseInterface, ListFormsRequestInterface, ListFormsResponseInterface, FormConfigFieldMappedFieldInterface, FormConfigFieldOptionInterface, RenderFormResponsePreFillByUrlQueryParameterInterface, PreviewFormRequestInterface, PreviewFormResponseInterface, RenderFormRequestInterface, RenderFormResponseInterface, FormConfigFieldSchemaInterface, StylesInterface, ListFormSubmissionResponseFormSubmissionSubmittedValueInterface, FormConfigFieldUnmappedFieldInterface, UpdateFormRequestInterface, UpdateFormResponseInterface, ValidationErrorInterface, GetMultiFormVersionsListResponseVersionsInterface, } from './api.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, FormConfigFieldUnmappedFieldInterface, UpdateFormRequestInterface, UpdateFormResponseInterface, UserFormSubmissionInterface, ValidationErrorInterface, GetMultiFormVersionsListResponseVersionsInterface, } from './api.interface';
@@ -17,7 +17,7 @@ export declare class CreateFormResponse implements i.CreateFormResponseInterface
17
17
  toApiJson(): object;
18
18
  }
19
19
  export declare class CreateFormSubmissionRequest implements i.CreateFormSubmissionRequestInterface {
20
- submission: FormSubmission;
20
+ submission: UserFormSubmission;
21
21
  recaptchaToken: string;
22
22
  static fromProto(proto: any): CreateFormSubmissionRequest;
23
23
  constructor(kwargs?: i.CreateFormSubmissionRequestInterface);
@@ -97,20 +97,12 @@ export declare class ListFormsResponseFormRow implements i.ListFormsResponseForm
97
97
  toApiJson(): object;
98
98
  }
99
99
  export declare class FormSubmission implements i.FormSubmissionInterface {
100
- formId: string;
101
- version: string;
102
- values: string;
103
- static fromProto(proto: any): FormSubmission;
104
- constructor(kwargs?: i.FormSubmissionInterface);
105
- toApiJson(): object;
106
- }
107
- export declare class ListFormSubmissionResponseFormSubmission implements i.ListFormSubmissionResponseFormSubmissionInterface {
108
100
  formSubmissionId: string;
109
101
  formVersion: string;
110
- values: ListFormSubmissionResponseFormSubmissionSubmittedValue[];
102
+ values: FormSubmissionSubmittedValue[];
111
103
  created: Date;
112
- static fromProto(proto: any): ListFormSubmissionResponseFormSubmission;
113
- constructor(kwargs?: i.ListFormSubmissionResponseFormSubmissionInterface);
104
+ static fromProto(proto: any): FormSubmission;
105
+ constructor(kwargs?: i.FormSubmissionInterface);
114
106
  toApiJson(): object;
115
107
  }
116
108
  export declare class GetEmbedCodeRequest implements i.GetEmbedCodeRequestInterface {
@@ -137,6 +129,18 @@ export declare class GetFormResponse implements i.GetFormResponseInterface {
137
129
  constructor(kwargs?: i.GetFormResponseInterface);
138
130
  toApiJson(): object;
139
131
  }
132
+ export declare class GetMultiFormSubmissionRequest implements i.GetMultiFormSubmissionRequestInterface {
133
+ formSubmissionIds: string[];
134
+ static fromProto(proto: any): GetMultiFormSubmissionRequest;
135
+ constructor(kwargs?: i.GetMultiFormSubmissionRequestInterface);
136
+ toApiJson(): object;
137
+ }
138
+ export declare class GetMultiFormSubmissionResponse implements i.GetMultiFormSubmissionResponseInterface {
139
+ submissions: FormSubmission[];
140
+ static fromProto(proto: any): GetMultiFormSubmissionResponse;
141
+ constructor(kwargs?: i.GetMultiFormSubmissionResponseInterface);
142
+ toApiJson(): object;
143
+ }
140
144
  export declare class GetMultiFormVersionsListRequest implements i.GetMultiFormVersionsListRequestInterface {
141
145
  formIds: string[];
142
146
  static fromProto(proto: any): GetMultiFormVersionsListRequest;
@@ -169,7 +173,7 @@ export declare class ListFormSubmissionRequest implements i.ListFormSubmissionRe
169
173
  toApiJson(): object;
170
174
  }
171
175
  export declare class ListFormSubmissionResponse implements i.ListFormSubmissionResponseInterface {
172
- submissions: ListFormSubmissionResponseFormSubmission[];
176
+ submissions: FormSubmission[];
173
177
  pagingMetadata: PagedResponseMetadata;
174
178
  static fromProto(proto: any): ListFormSubmissionResponse;
175
179
  constructor(kwargs?: i.ListFormSubmissionResponseInterface);
@@ -265,11 +269,13 @@ export declare class Styles implements i.StylesInterface {
265
269
  constructor(kwargs?: i.StylesInterface);
266
270
  toApiJson(): object;
267
271
  }
268
- export declare class ListFormSubmissionResponseFormSubmissionSubmittedValue implements i.ListFormSubmissionResponseFormSubmissionSubmittedValueInterface {
272
+ export declare class FormSubmissionSubmittedValue implements i.FormSubmissionSubmittedValueInterface {
269
273
  fieldId: string;
270
274
  fieldValue: FieldValue;
271
- static fromProto(proto: any): ListFormSubmissionResponseFormSubmissionSubmittedValue;
272
- constructor(kwargs?: i.ListFormSubmissionResponseFormSubmissionSubmittedValueInterface);
275
+ fieldType: e.FieldType;
276
+ mappedToResource: string;
277
+ static fromProto(proto: any): FormSubmissionSubmittedValue;
278
+ constructor(kwargs?: i.FormSubmissionSubmittedValueInterface);
273
279
  toApiJson(): object;
274
280
  }
275
281
  export declare class FormConfigFieldUnmappedField implements i.FormConfigFieldUnmappedFieldInterface {
@@ -294,6 +300,14 @@ export declare class UpdateFormResponse implements i.UpdateFormResponseInterface
294
300
  constructor(kwargs?: i.UpdateFormResponseInterface);
295
301
  toApiJson(): object;
296
302
  }
303
+ export declare class UserFormSubmission implements i.UserFormSubmissionInterface {
304
+ formId: string;
305
+ version: string;
306
+ values: string;
307
+ static fromProto(proto: any): UserFormSubmission;
308
+ constructor(kwargs?: i.UserFormSubmissionInterface);
309
+ toApiJson(): object;
310
+ }
297
311
  export declare class ValidationError implements i.ValidationErrorInterface {
298
312
  ruleId: string;
299
313
  message: string;
@@ -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, ListFormSubmissionResponseFormSubmission, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiRequest, GetMultiResponse, ListFormSubmissionRequest, ListFormSubmissionResponse, ListFormsRequest, ListFormsResponse, FormConfigFieldMappedField, FormConfigFieldOption, RenderFormResponsePreFillByUrlQueryParameter, PreviewFormRequest, PreviewFormResponse, RenderFormRequest, RenderFormResponse, FormConfigFieldSchema, Styles, ListFormSubmissionResponseFormSubmissionSubmittedValue, FormConfigFieldUnmappedField, UpdateFormRequest, UpdateFormResponse, ValidationError, GetMultiFormVersionsListResponseVersions, } from './api';
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, FormConfigFieldUnmappedField, 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.1.1",
3
+ "version": "0.3.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"