@vendasta/forms_microservice 0.0.1 → 0.0.4

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.
@@ -1,3 +1,4 @@
1
+ import { PagedRequestOptionsInterface, PagedResponseMetadataInterface } from './paging.interface';
1
2
  export interface CreateFormRequestInterface {
2
3
  formConfig?: FormConfigInterface;
3
4
  }
@@ -5,6 +6,12 @@ export interface CreateFormResponseInterface {
5
6
  formId?: string;
6
7
  version?: string;
7
8
  }
9
+ export interface CreateFormSubmissionRequestInterface {
10
+ submission?: FormSubmissionInterface;
11
+ }
12
+ export interface ListFormsRequestFiltersInterface {
13
+ partnerId?: string;
14
+ }
8
15
  export interface FormConfigInterface {
9
16
  formId?: string;
10
17
  version?: string;
@@ -13,6 +20,17 @@ export interface FormConfigInterface {
13
20
  uiSchema?: string;
14
21
  formType?: string;
15
22
  namespace?: string;
23
+ name?: string;
24
+ created?: Date;
25
+ updated?: Date;
26
+ }
27
+ export interface ListFormsResponseFormRowInterface {
28
+ form?: FormConfigInterface;
29
+ }
30
+ export interface FormSubmissionInterface {
31
+ formId?: string;
32
+ version?: string;
33
+ values?: string;
16
34
  }
17
35
  export interface GetEmbedCodeRequestInterface {
18
36
  formId?: string;
@@ -26,6 +44,14 @@ export interface GetFormRequestInterface {
26
44
  export interface GetFormResponseInterface {
27
45
  formConfig?: FormConfigInterface;
28
46
  }
47
+ export interface ListFormsRequestInterface {
48
+ filters?: ListFormsRequestFiltersInterface;
49
+ pagingOptions?: PagedRequestOptionsInterface;
50
+ }
51
+ export interface ListFormsResponseInterface {
52
+ formRows?: ListFormsResponseFormRowInterface[];
53
+ pagingMetadata?: PagedResponseMetadataInterface;
54
+ }
29
55
  export interface StylesInterface {
30
56
  width?: string;
31
57
  backgroundColor?: string;
@@ -42,3 +68,13 @@ export interface UpdateFormRequestInterface {
42
68
  export interface UpdateFormResponseInterface {
43
69
  version?: string;
44
70
  }
71
+ export interface ValidateFormRequestInterface {
72
+ form?: FormConfigInterface;
73
+ }
74
+ export interface ValidateFormResponseInterface {
75
+ errors?: ValidateFormResponseValidationErrorInterface[];
76
+ }
77
+ export interface ValidateFormResponseValidationErrorInterface {
78
+ message?: string;
79
+ path?: string;
80
+ }
@@ -1 +1,2 @@
1
- export { CreateFormRequestInterface, CreateFormResponseInterface, FormConfigInterface, GetEmbedCodeRequestInterface, GetEmbedCodeResponseInterface, GetFormRequestInterface, GetFormResponseInterface, StylesInterface, UpdateFormRequestInterface, UpdateFormResponseInterface, } from './api.interface';
1
+ export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
2
+ export { CreateFormRequestInterface, CreateFormResponseInterface, CreateFormSubmissionRequestInterface, ListFormsRequestFiltersInterface, FormConfigInterface, ListFormsResponseFormRowInterface, FormSubmissionInterface, GetEmbedCodeRequestInterface, GetEmbedCodeResponseInterface, GetFormRequestInterface, GetFormResponseInterface, ListFormsRequestInterface, ListFormsResponseInterface, StylesInterface, UpdateFormRequestInterface, UpdateFormResponseInterface, ValidateFormRequestInterface, ValidateFormResponseInterface, ValidateFormResponseValidationErrorInterface, } from './api.interface';
@@ -0,0 +1,9 @@
1
+ export interface PagedRequestOptionsInterface {
2
+ cursor?: string;
3
+ pageSize?: number;
4
+ }
5
+ export interface PagedResponseMetadataInterface {
6
+ nextCursor?: string;
7
+ hasMore?: boolean;
8
+ totalResults?: number;
9
+ }
@@ -1,4 +1,5 @@
1
1
  import * as i from '../interfaces';
2
+ import { PagedRequestOptions, PagedResponseMetadata } from './paging';
2
3
  export declare class CreateFormRequest implements i.CreateFormRequestInterface {
3
4
  formConfig: FormConfig;
4
5
  static fromProto(proto: any): CreateFormRequest;
@@ -12,6 +13,18 @@ export declare class CreateFormResponse implements i.CreateFormResponseInterface
12
13
  constructor(kwargs?: i.CreateFormResponseInterface);
13
14
  toApiJson(): object;
14
15
  }
16
+ export declare class CreateFormSubmissionRequest implements i.CreateFormSubmissionRequestInterface {
17
+ submission: FormSubmission;
18
+ static fromProto(proto: any): CreateFormSubmissionRequest;
19
+ constructor(kwargs?: i.CreateFormSubmissionRequestInterface);
20
+ toApiJson(): object;
21
+ }
22
+ export declare class ListFormsRequestFilters implements i.ListFormsRequestFiltersInterface {
23
+ partnerId: string;
24
+ static fromProto(proto: any): ListFormsRequestFilters;
25
+ constructor(kwargs?: i.ListFormsRequestFiltersInterface);
26
+ toApiJson(): object;
27
+ }
15
28
  export declare class FormConfig implements i.FormConfigInterface {
16
29
  formId: string;
17
30
  version: string;
@@ -20,10 +33,27 @@ export declare class FormConfig implements i.FormConfigInterface {
20
33
  uiSchema: string;
21
34
  formType: string;
22
35
  namespace: string;
36
+ name: string;
37
+ created: Date;
38
+ updated: Date;
23
39
  static fromProto(proto: any): FormConfig;
24
40
  constructor(kwargs?: i.FormConfigInterface);
25
41
  toApiJson(): object;
26
42
  }
43
+ export declare class ListFormsResponseFormRow implements i.ListFormsResponseFormRowInterface {
44
+ form: FormConfig;
45
+ static fromProto(proto: any): ListFormsResponseFormRow;
46
+ constructor(kwargs?: i.ListFormsResponseFormRowInterface);
47
+ toApiJson(): object;
48
+ }
49
+ export declare class FormSubmission implements i.FormSubmissionInterface {
50
+ formId: string;
51
+ version: string;
52
+ values: string;
53
+ static fromProto(proto: any): FormSubmission;
54
+ constructor(kwargs?: i.FormSubmissionInterface);
55
+ toApiJson(): object;
56
+ }
27
57
  export declare class GetEmbedCodeRequest implements i.GetEmbedCodeRequestInterface {
28
58
  formId: string;
29
59
  static fromProto(proto: any): GetEmbedCodeRequest;
@@ -48,6 +78,20 @@ export declare class GetFormResponse implements i.GetFormResponseInterface {
48
78
  constructor(kwargs?: i.GetFormResponseInterface);
49
79
  toApiJson(): object;
50
80
  }
81
+ export declare class ListFormsRequest implements i.ListFormsRequestInterface {
82
+ filters: ListFormsRequestFilters;
83
+ pagingOptions: PagedRequestOptions;
84
+ static fromProto(proto: any): ListFormsRequest;
85
+ constructor(kwargs?: i.ListFormsRequestInterface);
86
+ toApiJson(): object;
87
+ }
88
+ export declare class ListFormsResponse implements i.ListFormsResponseInterface {
89
+ formRows: ListFormsResponseFormRow[];
90
+ pagingMetadata: PagedResponseMetadata;
91
+ static fromProto(proto: any): ListFormsResponse;
92
+ constructor(kwargs?: i.ListFormsResponseInterface);
93
+ toApiJson(): object;
94
+ }
51
95
  export declare class Styles implements i.StylesInterface {
52
96
  width: string;
53
97
  backgroundColor: string;
@@ -73,3 +117,22 @@ export declare class UpdateFormResponse implements i.UpdateFormResponseInterface
73
117
  constructor(kwargs?: i.UpdateFormResponseInterface);
74
118
  toApiJson(): object;
75
119
  }
120
+ export declare class ValidateFormRequest implements i.ValidateFormRequestInterface {
121
+ form: FormConfig;
122
+ static fromProto(proto: any): ValidateFormRequest;
123
+ constructor(kwargs?: i.ValidateFormRequestInterface);
124
+ toApiJson(): object;
125
+ }
126
+ export declare class ValidateFormResponse implements i.ValidateFormResponseInterface {
127
+ errors: ValidateFormResponseValidationError[];
128
+ static fromProto(proto: any): ValidateFormResponse;
129
+ constructor(kwargs?: i.ValidateFormResponseInterface);
130
+ toApiJson(): object;
131
+ }
132
+ export declare class ValidateFormResponseValidationError implements i.ValidateFormResponseValidationErrorInterface {
133
+ message: string;
134
+ path: string;
135
+ static fromProto(proto: any): ValidateFormResponseValidationError;
136
+ constructor(kwargs?: i.ValidateFormResponseValidationErrorInterface);
137
+ toApiJson(): object;
138
+ }
@@ -1 +1,2 @@
1
- export { CreateFormRequest, CreateFormResponse, FormConfig, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, Styles, UpdateFormRequest, UpdateFormResponse, } from './api';
1
+ export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
2
+ export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, ListFormsRequestFilters, FormConfig, ListFormsResponseFormRow, FormSubmission, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, ListFormsRequest, ListFormsResponse, Styles, UpdateFormRequest, UpdateFormResponse, ValidateFormRequest, ValidateFormResponse, ValidateFormResponseValidationError, } from './api';
@@ -0,0 +1,16 @@
1
+ import * as i from '../interfaces';
2
+ export declare class PagedRequestOptions implements i.PagedRequestOptionsInterface {
3
+ cursor: string;
4
+ pageSize: number;
5
+ static fromProto(proto: any): PagedRequestOptions;
6
+ constructor(kwargs?: i.PagedRequestOptionsInterface);
7
+ toApiJson(): object;
8
+ }
9
+ export declare class PagedResponseMetadata implements i.PagedResponseMetadataInterface {
10
+ nextCursor: string;
11
+ hasMore: boolean;
12
+ totalResults: number;
13
+ static fromProto(proto: any): PagedResponseMetadata;
14
+ constructor(kwargs?: i.PagedResponseMetadataInterface);
15
+ toApiJson(): object;
16
+ }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@vendasta/forms_microservice",
3
- "version": "0.0.1",
3
+ "version": "0.0.4",
4
4
  "peerDependencies": {
5
- "@angular/common": "^13.0.0",
6
- "@angular/core": "^13.0.0"
5
+ "@angular/common": "^14.0.2",
6
+ "@angular/core": "^14.0.2"
7
7
  },
8
8
  "author": "Vendasta R&D",
9
9
  "description": "SDK to interact with the forms service",