@vendasta/forms_microservice 0.0.15 → 0.0.18

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.
@@ -5,7 +5,8 @@ export declare enum FieldType {
5
5
  FIELD_TYPE_DATE = 3,
6
6
  FIELD_TYPE_DROPDOWN = 4,
7
7
  FIELD_TYPE_CURRENCY = 5,
8
- FIELD_TYPE_BOOLEAN = 6
8
+ FIELD_TYPE_BOOLEAN = 6,
9
+ FIELD_TYPE_RADIO = 7
9
10
  }
10
11
  export declare enum JsonSchemaLibrary {
11
12
  JSON_SCHEMA_LIBRARY_UNDEFINED = 0,
@@ -1,6 +1,6 @@
1
- import { CreateFormSubmissionRequest, ListFormSubmissionRequest, ListFormSubmissionResponse } from './objects/';
1
+ import { CreateFormSubmissionRequest, CreateFormSubmissionResponse, ListFormSubmissionRequest, ListFormSubmissionResponse } from './objects/';
2
2
  import { CreateFormSubmissionRequestInterface, ListFormSubmissionRequestInterface } from './interfaces/';
3
- import { HttpClient, HttpResponse } from '@angular/common/http';
3
+ import { HttpClient } from '@angular/common/http';
4
4
  import { HostService } from '../_generated/host.service';
5
5
  import { Observable } from 'rxjs';
6
6
  import * as i0 from "@angular/core";
@@ -10,7 +10,7 @@ export declare class FormSubmissionApiService {
10
10
  private _host;
11
11
  constructor(http: HttpClient, hostService: HostService);
12
12
  private apiOptions;
13
- createFormSubmission(r: CreateFormSubmissionRequest | CreateFormSubmissionRequestInterface): Observable<HttpResponse<null>>;
13
+ createFormSubmission(r: CreateFormSubmissionRequest | CreateFormSubmissionRequestInterface): Observable<CreateFormSubmissionResponse>;
14
14
  listFormSubmission(r: ListFormSubmissionRequest | ListFormSubmissionRequestInterface): Observable<ListFormSubmissionResponse>;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmissionApiService, never>;
16
16
  static ɵprov: i0.ɵɵInjectableDeclaration<FormSubmissionApiService>;
@@ -10,14 +10,13 @@ export interface CreateFormResponseInterface {
10
10
  export interface CreateFormSubmissionRequestInterface {
11
11
  submission?: FormSubmissionInterface;
12
12
  }
13
+ export interface CreateFormSubmissionResponseInterface {
14
+ redirectUrl?: string;
15
+ }
13
16
  export interface DeleteFormRequestInterface {
14
17
  formId?: string;
15
18
  version?: string;
16
19
  }
17
- export interface FormConfigFieldUnmappedFieldDropdownOptionInterface {
18
- value?: string;
19
- label?: string;
20
- }
21
20
  export interface FormConfigFieldInterface {
22
21
  schema?: FormConfigFieldSchemaInterface;
23
22
  label?: string;
@@ -29,9 +28,6 @@ export interface FieldValueInterface {
29
28
  invalid?: boolean;
30
29
  integer?: number;
31
30
  string?: string;
32
- date?: string;
33
- dropdown?: string;
34
- currency?: number;
35
31
  boolean?: boolean;
36
32
  }
37
33
  export interface ListFormsRequestFiltersInterface {
@@ -108,6 +104,10 @@ export interface ListFormsResponseInterface {
108
104
  formRows?: ListFormsResponseFormRowInterface[];
109
105
  pagingMetadata?: PagedResponseMetadataInterface;
110
106
  }
107
+ export interface FormConfigFieldUnmappedFieldOptionInterface {
108
+ value?: string;
109
+ label?: string;
110
+ }
111
111
  export interface PreviewFormRequestInterface {
112
112
  formConfig?: FormConfigInterface;
113
113
  library?: e.JsonSchemaLibrary;
@@ -145,7 +145,7 @@ export interface ListFormSubmissionResponseFormSubmissionSubmittedValueInterface
145
145
  export interface FormConfigFieldUnmappedFieldInterface {
146
146
  id?: string;
147
147
  type?: e.FieldType;
148
- dropdownOptions?: FormConfigFieldUnmappedFieldDropdownOptionInterface[];
148
+ options?: FormConfigFieldUnmappedFieldOptionInterface[];
149
149
  currencyCode?: string;
150
150
  }
151
151
  export interface UpdateFormRequestInterface {
@@ -1,2 +1,2 @@
1
1
  export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
2
- export { CreateFormRequestInterface, CreateFormResponseInterface, CreateFormSubmissionRequestInterface, DeleteFormRequestInterface, FormConfigFieldUnmappedFieldDropdownOptionInterface, FormConfigFieldInterface, FieldValueInterface, ListFormsRequestFiltersInterface, FormConfigInterface, GetMultiRequestFormConfigIdentifierInterface, ListFormsResponseFormRowInterface, FormSubmissionInterface, ListFormSubmissionResponseFormSubmissionInterface, GetEmbedCodeRequestInterface, GetEmbedCodeResponseInterface, GetFormRequestInterface, GetFormResponseInterface, GetMultiFormVersionsListRequestInterface, GetMultiFormVersionsListResponseInterface, GetMultiRequestInterface, GetMultiResponseInterface, ListFormSubmissionRequestInterface, ListFormSubmissionResponseInterface, ListFormsRequestInterface, ListFormsResponseInterface, PreviewFormRequestInterface, PreviewFormResponseInterface, RenderFormRequestInterface, RenderFormResponseInterface, FormConfigFieldSchemaInterface, StylesInterface, ListFormSubmissionResponseFormSubmissionSubmittedValueInterface, FormConfigFieldUnmappedFieldInterface, UpdateFormRequestInterface, UpdateFormResponseInterface, GetMultiFormVersionsListResponseVersionsInterface, } from './api.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, FormConfigFieldUnmappedFieldOptionInterface, PreviewFormRequestInterface, PreviewFormResponseInterface, RenderFormRequestInterface, RenderFormResponseInterface, FormConfigFieldSchemaInterface, StylesInterface, ListFormSubmissionResponseFormSubmissionSubmittedValueInterface, FormConfigFieldUnmappedFieldInterface, UpdateFormRequestInterface, UpdateFormResponseInterface, GetMultiFormVersionsListResponseVersionsInterface, } from './api.interface';
@@ -21,6 +21,12 @@ export declare class CreateFormSubmissionRequest implements i.CreateFormSubmissi
21
21
  constructor(kwargs?: i.CreateFormSubmissionRequestInterface);
22
22
  toApiJson(): object;
23
23
  }
24
+ export declare class CreateFormSubmissionResponse implements i.CreateFormSubmissionResponseInterface {
25
+ redirectUrl: string;
26
+ static fromProto(proto: any): CreateFormSubmissionResponse;
27
+ constructor(kwargs?: i.CreateFormSubmissionResponseInterface);
28
+ toApiJson(): object;
29
+ }
24
30
  export declare class DeleteFormRequest implements i.DeleteFormRequestInterface {
25
31
  formId: string;
26
32
  version: string;
@@ -28,13 +34,6 @@ export declare class DeleteFormRequest implements i.DeleteFormRequestInterface {
28
34
  constructor(kwargs?: i.DeleteFormRequestInterface);
29
35
  toApiJson(): object;
30
36
  }
31
- export declare class FormConfigFieldUnmappedFieldDropdownOption implements i.FormConfigFieldUnmappedFieldDropdownOptionInterface {
32
- value: string;
33
- label: string;
34
- static fromProto(proto: any): FormConfigFieldUnmappedFieldDropdownOption;
35
- constructor(kwargs?: i.FormConfigFieldUnmappedFieldDropdownOptionInterface);
36
- toApiJson(): object;
37
- }
38
37
  export declare class FormConfigField implements i.FormConfigFieldInterface {
39
38
  schema: FormConfigFieldSchema;
40
39
  label: string;
@@ -49,9 +48,6 @@ export declare class FieldValue implements i.FieldValueInterface {
49
48
  invalid: boolean;
50
49
  integer: number;
51
50
  string: string;
52
- date: string;
53
- dropdown: string;
54
- currency: number;
55
51
  boolean: boolean;
56
52
  static fromProto(proto: any): FieldValue;
57
53
  constructor(kwargs?: i.FieldValueInterface);
@@ -185,6 +181,13 @@ export declare class ListFormsResponse implements i.ListFormsResponseInterface {
185
181
  constructor(kwargs?: i.ListFormsResponseInterface);
186
182
  toApiJson(): object;
187
183
  }
184
+ export declare class FormConfigFieldUnmappedFieldOption implements i.FormConfigFieldUnmappedFieldOptionInterface {
185
+ value: string;
186
+ label: string;
187
+ static fromProto(proto: any): FormConfigFieldUnmappedFieldOption;
188
+ constructor(kwargs?: i.FormConfigFieldUnmappedFieldOptionInterface);
189
+ toApiJson(): object;
190
+ }
188
191
  export declare class PreviewFormRequest implements i.PreviewFormRequestInterface {
189
192
  formConfig: FormConfig;
190
193
  library: e.JsonSchemaLibrary;
@@ -243,7 +246,7 @@ export declare class ListFormSubmissionResponseFormSubmissionSubmittedValue impl
243
246
  export declare class FormConfigFieldUnmappedField implements i.FormConfigFieldUnmappedFieldInterface {
244
247
  id: string;
245
248
  type: e.FieldType;
246
- dropdownOptions: FormConfigFieldUnmappedFieldDropdownOption[];
249
+ options: FormConfigFieldUnmappedFieldOption[];
247
250
  currencyCode: string;
248
251
  static fromProto(proto: any): FormConfigFieldUnmappedField;
249
252
  constructor(kwargs?: i.FormConfigFieldUnmappedFieldInterface);
@@ -1,2 +1,2 @@
1
1
  export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
2
- export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, DeleteFormRequest, FormConfigFieldUnmappedFieldDropdownOption, FormConfigField, FieldValue, ListFormsRequestFilters, FormConfig, GetMultiRequestFormConfigIdentifier, ListFormsResponseFormRow, FormSubmission, ListFormSubmissionResponseFormSubmission, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiRequest, GetMultiResponse, ListFormSubmissionRequest, ListFormSubmissionResponse, ListFormsRequest, ListFormsResponse, PreviewFormRequest, PreviewFormResponse, RenderFormRequest, RenderFormResponse, FormConfigFieldSchema, Styles, ListFormSubmissionResponseFormSubmissionSubmittedValue, FormConfigFieldUnmappedField, UpdateFormRequest, UpdateFormResponse, GetMultiFormVersionsListResponseVersions, } from './api';
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, FormConfigFieldUnmappedFieldOption, PreviewFormRequest, PreviewFormResponse, RenderFormRequest, RenderFormResponse, FormConfigFieldSchema, Styles, ListFormSubmissionResponseFormSubmissionSubmittedValue, FormConfigFieldUnmappedField, UpdateFormRequest, UpdateFormResponse, GetMultiFormVersionsListResponseVersions, } from './api';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/forms_microservice",
3
- "version": "0.0.15",
3
+ "version": "0.0.18",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.0.0",
6
6
  "@angular/core": "^14.0.0"