@wix/forms 1.0.7 → 1.0.9
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/build/cjs/src/forms-v4-submission.http.d.ts +28 -9
- package/build/cjs/src/forms-v4-submission.http.js +28 -9
- package/build/cjs/src/forms-v4-submission.http.js.map +1 -1
- package/build/cjs/src/forms-v4-submission.types.d.ts +22 -18
- package/build/cjs/src/forms-v4-submission.universal.d.ts +57 -36
- package/build/cjs/src/forms-v4-submission.universal.js +26 -13
- package/build/cjs/src/forms-v4-submission.universal.js.map +1 -1
- package/build/es/src/forms-v4-submission.http.d.ts +28 -9
- package/build/es/src/forms-v4-submission.http.js +28 -9
- package/build/es/src/forms-v4-submission.http.js.map +1 -1
- package/build/es/src/forms-v4-submission.types.d.ts +22 -18
- package/build/es/src/forms-v4-submission.universal.d.ts +57 -36
- package/build/es/src/forms-v4-submission.universal.js +26 -13
- package/build/es/src/forms-v4-submission.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -2,22 +2,41 @@ import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
|
2
2
|
import { BulkMarkSubmissionsAsSeenRequest, BulkMarkSubmissionsAsSeenResponse, ConfirmSubmissionRequest, ConfirmSubmissionResponse, CountSubmissionsRequest, CountSubmissionsResponse, CreateSubmissionRequest, CreateSubmissionResponse, DeleteSubmissionRequest, DeleteSubmissionResponse, GetMediaUploadURLRequest, GetMediaUploadURLResponse, GetSubmissionRequest, GetSubmissionResponse, QuerySubmissionRequest, QuerySubmissionResponse, UpdateSubmissionRequest, UpdateSubmissionResponse } from './forms-v4-submission.types';
|
|
3
3
|
/** Creates a new submission. */
|
|
4
4
|
export declare function createSubmission(payload: CreateSubmissionRequest): RequestOptionsFactory<CreateSubmissionResponse>;
|
|
5
|
-
/**
|
|
5
|
+
/** Retrieves a submission by ID. */
|
|
6
6
|
export declare function getSubmission(payload: GetSubmissionRequest): RequestOptionsFactory<GetSubmissionResponse>;
|
|
7
7
|
/**
|
|
8
|
-
* Updates a submission
|
|
9
|
-
*
|
|
8
|
+
* Updates a submission.
|
|
9
|
+
*
|
|
10
|
+
* Each time the submission is updated, `revision` increments by 1. The existing `revision` must be included when updating the submission. This ensures you're working with the latest submission information, and prevents unintended overwrites.
|
|
10
11
|
*/
|
|
11
12
|
export declare function updateSubmission(payload: UpdateSubmissionRequest): RequestOptionsFactory<UpdateSubmissionResponse>;
|
|
12
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Confirms a submission and changes the submission status to `CONFIRMED`.
|
|
15
|
+
*
|
|
16
|
+
*
|
|
17
|
+
* You can only confirm a submission that has a `PENDING` status.
|
|
18
|
+
* Currently, the default status when a submission is created is `CONFIRMED`. You can override the default status when using the [Create Submission](#) endpoints. change the status of a submission using the [`Update Submission`](#) endpoints. The ability to set the default status to `PENDING` will be availbe using the upcoming Form Submissions SPI.
|
|
19
|
+
*/
|
|
13
20
|
export declare function confirmSubmission(payload: ConfirmSubmissionRequest): RequestOptionsFactory<ConfirmSubmissionResponse>;
|
|
14
|
-
/** Deletes a submission. */
|
|
21
|
+
/** Deletes a submission by ID. */
|
|
15
22
|
export declare function deleteSubmission(payload: DeleteSubmissionRequest): RequestOptionsFactory<DeleteSubmissionResponse>;
|
|
16
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Returns a list of up to 100 submissions, given the provided paging, filtering, and sorting.
|
|
25
|
+
*
|
|
26
|
+
*
|
|
27
|
+
* You can only query submissions from a specified namespace. Use the query filter on the `namespace` field, otherwise you will receive an error.
|
|
28
|
+
*
|
|
29
|
+
* For field support for filters and sorting, see [Form Submissions: Supported Filters and Sorting](https://dev.wix.com/docs/rest/api-reference/form-submissions/sort-and-filter).option
|
|
30
|
+
*
|
|
31
|
+
* To learn about working with _Query_ endpoints, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language), [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination), and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
32
|
+
*/
|
|
17
33
|
export declare function querySubmission(payload: QuerySubmissionRequest): RequestOptionsFactory<QuerySubmissionResponse>;
|
|
18
|
-
/** Counts
|
|
34
|
+
/** Counts ths submissions beloning to the specified forms. */
|
|
19
35
|
export declare function countSubmissions(payload: CountSubmissionsRequest): RequestOptionsFactory<CountSubmissionsResponse>;
|
|
20
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves a URL, generated by [Media Manager](https://dev.wix.com/api/rest/media/media-manager/files/generate-file-upload-url), to allow clients to upload a file to a form for submission.
|
|
38
|
+
* Returns url to upload media file.
|
|
39
|
+
*/
|
|
21
40
|
export declare function getMediaUploadUrl(payload: GetMediaUploadURLRequest): RequestOptionsFactory<GetMediaUploadURLResponse>;
|
|
22
|
-
/** Marks submissions as seen. */
|
|
41
|
+
/** Marks form submissions as seen. */
|
|
23
42
|
export declare function bulkMarkSubmissionsAsSeen(payload: BulkMarkSubmissionsAsSeenRequest): RequestOptionsFactory<BulkMarkSubmissionsAsSeenResponse>;
|
|
@@ -110,7 +110,7 @@ function createSubmission(payload) {
|
|
|
110
110
|
return __createSubmission;
|
|
111
111
|
}
|
|
112
112
|
exports.createSubmission = createSubmission;
|
|
113
|
-
/**
|
|
113
|
+
/** Retrieves a submission by ID. */
|
|
114
114
|
function getSubmission(payload) {
|
|
115
115
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_getSubmissionRequest, {});
|
|
116
116
|
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_getSubmissionResponse, {
|
|
@@ -137,8 +137,9 @@ function getSubmission(payload) {
|
|
|
137
137
|
}
|
|
138
138
|
exports.getSubmission = getSubmission;
|
|
139
139
|
/**
|
|
140
|
-
* Updates a submission
|
|
141
|
-
*
|
|
140
|
+
* Updates a submission.
|
|
141
|
+
*
|
|
142
|
+
* Each time the submission is updated, `revision` increments by 1. The existing `revision` must be included when updating the submission. This ensures you're working with the latest submission information, and prevents unintended overwrites.
|
|
142
143
|
*/
|
|
143
144
|
function updateSubmission(payload) {
|
|
144
145
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_updateSubmissionRequest, { _formSubmission });
|
|
@@ -165,7 +166,13 @@ function updateSubmission(payload) {
|
|
|
165
166
|
return __updateSubmission;
|
|
166
167
|
}
|
|
167
168
|
exports.updateSubmission = updateSubmission;
|
|
168
|
-
/**
|
|
169
|
+
/**
|
|
170
|
+
* Confirms a submission and changes the submission status to `CONFIRMED`.
|
|
171
|
+
*
|
|
172
|
+
*
|
|
173
|
+
* You can only confirm a submission that has a `PENDING` status.
|
|
174
|
+
* Currently, the default status when a submission is created is `CONFIRMED`. You can override the default status when using the [Create Submission](#) endpoints. change the status of a submission using the [`Update Submission`](#) endpoints. The ability to set the default status to `PENDING` will be availbe using the upcoming Form Submissions SPI.
|
|
175
|
+
*/
|
|
169
176
|
function confirmSubmission(payload) {
|
|
170
177
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_confirmSubmissionRequest, {});
|
|
171
178
|
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_confirmSubmissionResponse, {
|
|
@@ -191,7 +198,7 @@ function confirmSubmission(payload) {
|
|
|
191
198
|
return __confirmSubmission;
|
|
192
199
|
}
|
|
193
200
|
exports.confirmSubmission = confirmSubmission;
|
|
194
|
-
/** Deletes a submission. */
|
|
201
|
+
/** Deletes a submission by ID. */
|
|
195
202
|
function deleteSubmission(payload) {
|
|
196
203
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_deleteSubmissionRequest, {});
|
|
197
204
|
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_deleteSubmissionResponse, {});
|
|
@@ -215,7 +222,16 @@ function deleteSubmission(payload) {
|
|
|
215
222
|
return __deleteSubmission;
|
|
216
223
|
}
|
|
217
224
|
exports.deleteSubmission = deleteSubmission;
|
|
218
|
-
/**
|
|
225
|
+
/**
|
|
226
|
+
* Returns a list of up to 100 submissions, given the provided paging, filtering, and sorting.
|
|
227
|
+
*
|
|
228
|
+
*
|
|
229
|
+
* You can only query submissions from a specified namespace. Use the query filter on the `namespace` field, otherwise you will receive an error.
|
|
230
|
+
*
|
|
231
|
+
* For field support for filters and sorting, see [Form Submissions: Supported Filters and Sorting](https://dev.wix.com/docs/rest/api-reference/form-submissions/sort-and-filter).option
|
|
232
|
+
*
|
|
233
|
+
* To learn about working with _Query_ endpoints, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language), [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination), and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
234
|
+
*/
|
|
219
235
|
function querySubmission(payload) {
|
|
220
236
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_querySubmissionRequest, {});
|
|
221
237
|
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_querySubmissionResponse, {
|
|
@@ -241,7 +257,7 @@ function querySubmission(payload) {
|
|
|
241
257
|
return __querySubmission;
|
|
242
258
|
}
|
|
243
259
|
exports.querySubmission = querySubmission;
|
|
244
|
-
/** Counts
|
|
260
|
+
/** Counts ths submissions beloning to the specified forms. */
|
|
245
261
|
function countSubmissions(payload) {
|
|
246
262
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_countSubmissionsRequest, {});
|
|
247
263
|
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_countSubmissionsResponse, {});
|
|
@@ -265,7 +281,10 @@ function countSubmissions(payload) {
|
|
|
265
281
|
return __countSubmissions;
|
|
266
282
|
}
|
|
267
283
|
exports.countSubmissions = countSubmissions;
|
|
268
|
-
/**
|
|
284
|
+
/**
|
|
285
|
+
* Retrieves a URL, generated by [Media Manager](https://dev.wix.com/api/rest/media/media-manager/files/generate-file-upload-url), to allow clients to upload a file to a form for submission.
|
|
286
|
+
* Returns url to upload media file.
|
|
287
|
+
*/
|
|
269
288
|
function getMediaUploadUrl(payload) {
|
|
270
289
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_getMediaUploadURLRequest, {});
|
|
271
290
|
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_getMediaUploadURLResponse, {});
|
|
@@ -289,7 +308,7 @@ function getMediaUploadUrl(payload) {
|
|
|
289
308
|
return __getMediaUploadUrl;
|
|
290
309
|
}
|
|
291
310
|
exports.getMediaUploadUrl = getMediaUploadUrl;
|
|
292
|
-
/** Marks submissions as seen. */
|
|
311
|
+
/** Marks form submissions as seen. */
|
|
293
312
|
function bulkMarkSubmissionsAsSeen(payload) {
|
|
294
313
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_bulkMarkSubmissionsAsSeenRequest, {});
|
|
295
314
|
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_bulkMarkSubmissionsAsSeenResponse, {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forms-v4-submission.http.js","sourceRoot":"","sources":["../../../src/forms-v4-submission.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;AAwBhD,MAAM,iCAAiC,GAAG,EAAE,CAAC;AAC7C,MAAM,kCAAkC,GAAG,EAAE,CAAC;AAC9C,MAAM,yBAAyB,GAAG,EAAE,CAAC;AACrC,MAAM,0BAA0B,GAAG,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAC;AACrE,MAAM,wBAAwB,GAAG,EAAE,CAAC;AACpC,MAAM,yBAAyB,GAAG,EAAE,CAAC;AACrC,MAAM,wBAAwB,GAAG,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAC;AACnE,MAAM,yBAAyB,GAAG,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAC;AACpE,MAAM,wBAAwB,GAAG,EAAE,CAAC;AACpC,MAAM,yBAAyB,GAAG,EAAE,CAAC;AACrC,MAAM,eAAe,GAAG;IACtB,WAAW,EAAE,2BA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AAM,QAAQ,GAAG;YACf,UAAU,EAAE,yBAAyB;YACrC,MAAM,EAAE,MAAa;YACrB,SAAS,EAAE,8DAA8D;YACzE,GAAG,EAAE,yCAAyC,CAAC;gBAC7C,SAAS,EAAE,mCAAmC;gBAC9C,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,2BAA2B,CAAC,OAAO,GAAG,OAAO,CAAC;IAE9C,OAAO,2BAA2B,CAAC;AACrC,CAAC;AAjCD,8DAiCC"}
|
|
@@ -35,7 +35,7 @@ export interface FormSubmission {
|
|
|
35
35
|
* @readonly
|
|
36
36
|
*/
|
|
37
37
|
submitter?: Submitter;
|
|
38
|
-
/** Whether the submission was read by a
|
|
38
|
+
/** Whether the submission was read by a site contributor with Manage Permissions. */
|
|
39
39
|
seen?: boolean;
|
|
40
40
|
}
|
|
41
41
|
export declare enum SubmissionStatus {
|
|
@@ -77,7 +77,7 @@ export interface Submitter extends SubmitterSubmitterOneOf {
|
|
|
77
77
|
serviceId?: string | null;
|
|
78
78
|
/** User ID. */
|
|
79
79
|
userId?: string | null;
|
|
80
|
-
/**
|
|
80
|
+
/** App ID. */
|
|
81
81
|
externalAppId?: string | null;
|
|
82
82
|
}
|
|
83
83
|
/** @oneof */
|
|
@@ -90,7 +90,7 @@ export interface SubmitterSubmitterOneOf {
|
|
|
90
90
|
serviceId?: string | null;
|
|
91
91
|
/** User ID. */
|
|
92
92
|
userId?: string | null;
|
|
93
|
-
/**
|
|
93
|
+
/** App ID. */
|
|
94
94
|
externalAppId?: string | null;
|
|
95
95
|
}
|
|
96
96
|
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
@@ -218,7 +218,7 @@ export interface SubmissionContactMapped {
|
|
|
218
218
|
export interface CreateSubmissionRequest {
|
|
219
219
|
/** Submission to be created. */
|
|
220
220
|
submission: FormSubmission;
|
|
221
|
-
/** Captcha token */
|
|
221
|
+
/** Captcha token. */
|
|
222
222
|
captchaToken?: string | null;
|
|
223
223
|
}
|
|
224
224
|
export interface CreateSubmissionResponse {
|
|
@@ -242,7 +242,7 @@ export interface CreateSubmissionBySubmitterResponse {
|
|
|
242
242
|
submission?: FormSubmission;
|
|
243
243
|
}
|
|
244
244
|
export interface GetSubmissionRequest {
|
|
245
|
-
/**
|
|
245
|
+
/** ID of the submission to retrieve. */
|
|
246
246
|
submissionId: string;
|
|
247
247
|
}
|
|
248
248
|
export interface GetSubmissionResponse {
|
|
@@ -250,7 +250,7 @@ export interface GetSubmissionResponse {
|
|
|
250
250
|
submission?: FormSubmission;
|
|
251
251
|
}
|
|
252
252
|
export interface UpdateSubmissionRequest {
|
|
253
|
-
/** Submission to be updated
|
|
253
|
+
/** Submission to be updated. */
|
|
254
254
|
submission: FormSubmission;
|
|
255
255
|
}
|
|
256
256
|
export interface UpdateSubmissionResponse {
|
|
@@ -258,23 +258,23 @@ export interface UpdateSubmissionResponse {
|
|
|
258
258
|
submission?: FormSubmission;
|
|
259
259
|
}
|
|
260
260
|
export interface ConfirmSubmissionRequest {
|
|
261
|
-
/** Submission
|
|
261
|
+
/** Submission IDs. */
|
|
262
262
|
submissionId: string;
|
|
263
263
|
}
|
|
264
264
|
export interface ConfirmSubmissionResponse {
|
|
265
|
-
/**
|
|
265
|
+
/** Submission that was confirmed. */
|
|
266
266
|
submission?: FormSubmission;
|
|
267
267
|
}
|
|
268
268
|
export interface DeleteSubmissionRequest {
|
|
269
|
-
/**
|
|
269
|
+
/** ID of the submission to be deleted. */
|
|
270
270
|
submissionId: string;
|
|
271
271
|
}
|
|
272
272
|
export interface DeleteSubmissionResponse {
|
|
273
273
|
}
|
|
274
274
|
export interface QuerySubmissionRequest {
|
|
275
|
-
/**
|
|
275
|
+
/** Query options. */
|
|
276
276
|
query: CursorQuery;
|
|
277
|
-
/**
|
|
277
|
+
/** Whether to return only your own submissions. If `false`, returns all submissions based on query filters. */
|
|
278
278
|
onlyYourOwn?: boolean;
|
|
279
279
|
}
|
|
280
280
|
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
@@ -353,23 +353,27 @@ export interface CountSubmissionsRequest {
|
|
|
353
353
|
namespace: string;
|
|
354
354
|
}
|
|
355
355
|
export interface CountSubmissionsResponse {
|
|
356
|
-
/** Forms
|
|
356
|
+
/** Forms submission count. */
|
|
357
357
|
formsSubmissionsCount?: FormSubmissionsCount[];
|
|
358
358
|
}
|
|
359
359
|
export interface FormSubmissionsCount {
|
|
360
360
|
/** Form ID. */
|
|
361
361
|
formId?: string;
|
|
362
|
-
/** Total
|
|
362
|
+
/** Total number of submissions. */
|
|
363
363
|
totalCount?: number;
|
|
364
|
-
/**
|
|
364
|
+
/** Number of submissions that haven't been seen. */
|
|
365
365
|
unseenCount?: number;
|
|
366
366
|
}
|
|
367
367
|
export interface GetMediaUploadURLRequest {
|
|
368
|
-
/** Form
|
|
368
|
+
/** Form ID. */
|
|
369
369
|
formId: string;
|
|
370
370
|
/** Name of file to upload. */
|
|
371
371
|
filename: string;
|
|
372
|
-
/**
|
|
372
|
+
/**
|
|
373
|
+
* [Mime type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#) of file to upload.
|
|
374
|
+
*
|
|
375
|
+
* For example, `'image/png'`
|
|
376
|
+
*/
|
|
373
377
|
mimeType: string;
|
|
374
378
|
}
|
|
375
379
|
export interface GetMediaUploadURLResponse {
|
|
@@ -377,9 +381,9 @@ export interface GetMediaUploadURLResponse {
|
|
|
377
381
|
uploadUrl?: string;
|
|
378
382
|
}
|
|
379
383
|
export interface BulkMarkSubmissionsAsSeenRequest {
|
|
380
|
-
/** Submission
|
|
384
|
+
/** Submission IDs to mark as seen. */
|
|
381
385
|
ids: string[];
|
|
382
|
-
/**
|
|
386
|
+
/** ID of the form to which the submissions belongs. */
|
|
383
387
|
formId: string;
|
|
384
388
|
}
|
|
385
389
|
export interface BulkMarkSubmissionsAsSeenResponse {
|
|
@@ -41,7 +41,7 @@ export interface FormSubmission {
|
|
|
41
41
|
* @readonly
|
|
42
42
|
*/
|
|
43
43
|
submitter?: Submitter;
|
|
44
|
-
/** Whether the submission was read by a
|
|
44
|
+
/** Whether the submission was read by a site contributor with Manage Permissions. */
|
|
45
45
|
seen?: boolean;
|
|
46
46
|
}
|
|
47
47
|
export declare enum SubmissionStatus {
|
|
@@ -83,7 +83,7 @@ export interface Submitter extends SubmitterSubmitterOneOf {
|
|
|
83
83
|
serviceId?: string | null;
|
|
84
84
|
/** User ID. */
|
|
85
85
|
userId?: string | null;
|
|
86
|
-
/**
|
|
86
|
+
/** App ID. */
|
|
87
87
|
externalAppId?: string | null;
|
|
88
88
|
}
|
|
89
89
|
/** @oneof */
|
|
@@ -96,7 +96,7 @@ export interface SubmitterSubmitterOneOf {
|
|
|
96
96
|
serviceId?: string | null;
|
|
97
97
|
/** User ID. */
|
|
98
98
|
userId?: string | null;
|
|
99
|
-
/**
|
|
99
|
+
/** App ID. */
|
|
100
100
|
externalAppId?: string | null;
|
|
101
101
|
}
|
|
102
102
|
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
@@ -224,7 +224,7 @@ export interface SubmissionContactMapped {
|
|
|
224
224
|
export interface CreateSubmissionRequest {
|
|
225
225
|
/** Submission to be created. */
|
|
226
226
|
submission: FormSubmission;
|
|
227
|
-
/** Captcha token */
|
|
227
|
+
/** Captcha token. */
|
|
228
228
|
captchaToken?: string | null;
|
|
229
229
|
}
|
|
230
230
|
export interface CreateSubmissionResponse {
|
|
@@ -248,7 +248,7 @@ export interface CreateSubmissionBySubmitterResponse {
|
|
|
248
248
|
submission?: FormSubmission;
|
|
249
249
|
}
|
|
250
250
|
export interface GetSubmissionRequest {
|
|
251
|
-
/**
|
|
251
|
+
/** ID of the submission to retrieve. */
|
|
252
252
|
submissionId: string;
|
|
253
253
|
}
|
|
254
254
|
export interface GetSubmissionResponse {
|
|
@@ -256,7 +256,7 @@ export interface GetSubmissionResponse {
|
|
|
256
256
|
submission?: FormSubmission;
|
|
257
257
|
}
|
|
258
258
|
export interface UpdateSubmissionRequest {
|
|
259
|
-
/** Submission to be updated
|
|
259
|
+
/** Submission to be updated. */
|
|
260
260
|
submission: FormSubmission;
|
|
261
261
|
}
|
|
262
262
|
export interface UpdateSubmissionResponse {
|
|
@@ -264,23 +264,23 @@ export interface UpdateSubmissionResponse {
|
|
|
264
264
|
submission?: FormSubmission;
|
|
265
265
|
}
|
|
266
266
|
export interface ConfirmSubmissionRequest {
|
|
267
|
-
/** Submission
|
|
267
|
+
/** Submission IDs. */
|
|
268
268
|
submissionId: string;
|
|
269
269
|
}
|
|
270
270
|
export interface ConfirmSubmissionResponse {
|
|
271
|
-
/**
|
|
271
|
+
/** Submission that was confirmed. */
|
|
272
272
|
submission?: FormSubmission;
|
|
273
273
|
}
|
|
274
274
|
export interface DeleteSubmissionRequest {
|
|
275
|
-
/**
|
|
275
|
+
/** ID of the submission to be deleted. */
|
|
276
276
|
submissionId: string;
|
|
277
277
|
}
|
|
278
278
|
export interface DeleteSubmissionResponse {
|
|
279
279
|
}
|
|
280
280
|
export interface QuerySubmissionRequest {
|
|
281
|
-
/**
|
|
281
|
+
/** Query options. */
|
|
282
282
|
query: CursorQuery;
|
|
283
|
-
/**
|
|
283
|
+
/** Whether to return only your own submissions. If `false`, returns all submissions based on query filters. */
|
|
284
284
|
onlyYourOwn?: boolean;
|
|
285
285
|
}
|
|
286
286
|
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
@@ -359,23 +359,27 @@ export interface CountSubmissionsRequest {
|
|
|
359
359
|
namespace: string;
|
|
360
360
|
}
|
|
361
361
|
export interface CountSubmissionsResponse {
|
|
362
|
-
/** Forms
|
|
362
|
+
/** Forms submission count. */
|
|
363
363
|
formsSubmissionsCount?: FormSubmissionsCount[];
|
|
364
364
|
}
|
|
365
365
|
export interface FormSubmissionsCount {
|
|
366
366
|
/** Form ID. */
|
|
367
367
|
formId?: string;
|
|
368
|
-
/** Total
|
|
368
|
+
/** Total number of submissions. */
|
|
369
369
|
totalCount?: number;
|
|
370
|
-
/**
|
|
370
|
+
/** Number of submissions that haven't been seen. */
|
|
371
371
|
unseenCount?: number;
|
|
372
372
|
}
|
|
373
373
|
export interface GetMediaUploadURLRequest {
|
|
374
|
-
/** Form
|
|
374
|
+
/** Form ID. */
|
|
375
375
|
formId: string;
|
|
376
376
|
/** Name of file to upload. */
|
|
377
377
|
filename: string;
|
|
378
|
-
/**
|
|
378
|
+
/**
|
|
379
|
+
* [Mime type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#) of file to upload.
|
|
380
|
+
*
|
|
381
|
+
* For example, `'image/png'`
|
|
382
|
+
*/
|
|
379
383
|
mimeType: string;
|
|
380
384
|
}
|
|
381
385
|
export interface GetMediaUploadURLResponse {
|
|
@@ -383,9 +387,9 @@ export interface GetMediaUploadURLResponse {
|
|
|
383
387
|
uploadUrl?: string;
|
|
384
388
|
}
|
|
385
389
|
export interface BulkMarkSubmissionsAsSeenRequest {
|
|
386
|
-
/** Submission
|
|
390
|
+
/** Submission IDs to mark as seen. */
|
|
387
391
|
ids: string[];
|
|
388
|
-
/**
|
|
392
|
+
/** ID of the form to which the submissions belongs. */
|
|
389
393
|
formId: string;
|
|
390
394
|
}
|
|
391
395
|
export interface BulkMarkSubmissionsAsSeenResponse {
|
|
@@ -431,12 +435,12 @@ export interface Reschedule {
|
|
|
431
435
|
*/
|
|
432
436
|
export declare function createSubmission(submission: FormSubmission, options?: CreateSubmissionOptions): Promise<CreateSubmissionResponse>;
|
|
433
437
|
export interface CreateSubmissionOptions {
|
|
434
|
-
/** Captcha token */
|
|
438
|
+
/** Captcha token. */
|
|
435
439
|
captchaToken?: string | null;
|
|
436
440
|
}
|
|
437
441
|
/**
|
|
438
|
-
*
|
|
439
|
-
* @param submissionId -
|
|
442
|
+
* Retrieves a submission by ID.
|
|
443
|
+
* @param submissionId - ID of the submission to retrieve.
|
|
440
444
|
* @public
|
|
441
445
|
* @documentationMaturity preview
|
|
442
446
|
* @requiredField submissionId
|
|
@@ -444,8 +448,9 @@ export interface CreateSubmissionOptions {
|
|
|
444
448
|
*/
|
|
445
449
|
export declare function getSubmission(submissionId: string): Promise<FormSubmission>;
|
|
446
450
|
/**
|
|
447
|
-
* Updates a submission
|
|
448
|
-
*
|
|
451
|
+
* Updates a submission.
|
|
452
|
+
*
|
|
453
|
+
* Each time the submission is updated, `revision` increments by 1. The existing `revision` must be included when updating the submission. This ensures you're working with the latest submission information, and prevents unintended overwrites.
|
|
449
454
|
* @param _id - Form submission ID.
|
|
450
455
|
* @public
|
|
451
456
|
* @documentationMaturity preview
|
|
@@ -493,33 +498,44 @@ export interface UpdateSubmission {
|
|
|
493
498
|
* @readonly
|
|
494
499
|
*/
|
|
495
500
|
submitter?: Submitter;
|
|
496
|
-
/** Whether the submission was read by a
|
|
501
|
+
/** Whether the submission was read by a site contributor with Manage Permissions. */
|
|
497
502
|
seen?: boolean;
|
|
498
503
|
}
|
|
499
504
|
/**
|
|
500
|
-
*
|
|
501
|
-
*
|
|
505
|
+
* Confirms a submission and changes the submission status to `CONFIRMED`.
|
|
506
|
+
*
|
|
507
|
+
*
|
|
508
|
+
* You can only confirm a submission that has a `PENDING` status.
|
|
509
|
+
* Currently, the default status when a submission is created is `CONFIRMED`. You can override the default status when using the [Create Submission](#) endpoints. change the status of a submission using the [`Update Submission`](#) endpoints. The ability to set the default status to `PENDING` will be availbe using the upcoming Form Submissions SPI.
|
|
510
|
+
* @param submissionId - Submission IDs.
|
|
502
511
|
* @public
|
|
503
512
|
* @documentationMaturity preview
|
|
504
513
|
* @requiredField submissionId
|
|
505
514
|
*/
|
|
506
515
|
export declare function confirmSubmission(submissionId: string): Promise<ConfirmSubmissionResponse>;
|
|
507
516
|
/**
|
|
508
|
-
* Deletes a submission.
|
|
509
|
-
* @param submissionId -
|
|
517
|
+
* Deletes a submission by ID.
|
|
518
|
+
* @param submissionId - ID of the submission to be deleted.
|
|
510
519
|
* @public
|
|
511
520
|
* @documentationMaturity preview
|
|
512
521
|
* @requiredField submissionId
|
|
513
522
|
*/
|
|
514
523
|
export declare function deleteSubmission(submissionId: string): Promise<void>;
|
|
515
524
|
/**
|
|
516
|
-
*
|
|
525
|
+
* Returns a list of up to 100 submissions, given the provided paging, filtering, and sorting.
|
|
526
|
+
*
|
|
527
|
+
*
|
|
528
|
+
* You can only query submissions from a specified namespace. Use the query filter on the `namespace` field, otherwise you will receive an error.
|
|
529
|
+
*
|
|
530
|
+
* For field support for filters and sorting, see [Form Submissions: Supported Filters and Sorting](https://dev.wix.com/docs/rest/api-reference/form-submissions/sort-and-filter).option
|
|
531
|
+
*
|
|
532
|
+
* To learn about working with _Query_ endpoints, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language), [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination), and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
517
533
|
* @public
|
|
518
534
|
* @documentationMaturity preview
|
|
519
535
|
*/
|
|
520
536
|
export declare function querySubmission(options?: QuerySubmissionOptions): SubmissionsQueryBuilder;
|
|
521
537
|
export interface QuerySubmissionOptions {
|
|
522
|
-
/**
|
|
538
|
+
/** Whether to return only your own submissions. If `false`, returns all submissions based on query filters. */
|
|
523
539
|
onlyYourOwn?: boolean | undefined;
|
|
524
540
|
}
|
|
525
541
|
interface QueryCursorResult {
|
|
@@ -583,7 +599,7 @@ export interface SubmissionsQueryBuilder {
|
|
|
583
599
|
find: () => Promise<SubmissionsQueryResult>;
|
|
584
600
|
}
|
|
585
601
|
/**
|
|
586
|
-
* Counts
|
|
602
|
+
* Counts ths submissions beloning to the specified forms.
|
|
587
603
|
* @param formIds - Form IDs.
|
|
588
604
|
* @public
|
|
589
605
|
* @documentationMaturity preview
|
|
@@ -597,8 +613,9 @@ export interface CountSubmissionsOptions {
|
|
|
597
613
|
namespace: string;
|
|
598
614
|
}
|
|
599
615
|
/**
|
|
616
|
+
* Retrieves a URL, generated by [Media Manager](https://dev.wix.com/api/rest/media/media-manager/files/generate-file-upload-url), to allow clients to upload a file to a form for submission.
|
|
600
617
|
* Returns url to upload media file.
|
|
601
|
-
* @param formId - Form
|
|
618
|
+
* @param formId - Form ID.
|
|
602
619
|
* @public
|
|
603
620
|
* @documentationMaturity preview
|
|
604
621
|
* @requiredField formId
|
|
@@ -612,12 +629,16 @@ export declare function getMediaUploadUrl(formId: string, options: GetMediaUploa
|
|
|
612
629
|
export interface GetMediaUploadUrlOptions {
|
|
613
630
|
/** Name of file to upload. */
|
|
614
631
|
filename: string;
|
|
615
|
-
/**
|
|
632
|
+
/**
|
|
633
|
+
* [Mime type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#) of file to upload.
|
|
634
|
+
*
|
|
635
|
+
* For example, `'image/png'`
|
|
636
|
+
*/
|
|
616
637
|
mimeType: string;
|
|
617
638
|
}
|
|
618
639
|
/**
|
|
619
|
-
* Marks submissions as seen.
|
|
620
|
-
* @param ids - Submission
|
|
640
|
+
* Marks form submissions as seen.
|
|
641
|
+
* @param ids - Submission IDs to mark as seen.
|
|
621
642
|
* @public
|
|
622
643
|
* @documentationMaturity preview
|
|
623
644
|
* @requiredField ids
|
|
@@ -626,7 +647,7 @@ export interface GetMediaUploadUrlOptions {
|
|
|
626
647
|
*/
|
|
627
648
|
export declare function bulkMarkSubmissionsAsSeen(ids: string[], options: BulkMarkSubmissionsAsSeenOptions): Promise<void>;
|
|
628
649
|
export interface BulkMarkSubmissionsAsSeenOptions {
|
|
629
|
-
/**
|
|
650
|
+
/** ID of the form to which the submissions belongs. */
|
|
630
651
|
formId: string;
|
|
631
652
|
}
|
|
632
653
|
export {};
|
|
@@ -146,8 +146,8 @@ function createSubmission(submission, options) {
|
|
|
146
146
|
}
|
|
147
147
|
exports.createSubmission = createSubmission;
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
150
|
-
* @param submissionId -
|
|
149
|
+
* Retrieves a submission by ID.
|
|
150
|
+
* @param submissionId - ID of the submission to retrieve.
|
|
151
151
|
* @public
|
|
152
152
|
* @documentationMaturity preview
|
|
153
153
|
* @requiredField submissionId
|
|
@@ -198,8 +198,9 @@ function getSubmission(submissionId) {
|
|
|
198
198
|
}
|
|
199
199
|
exports.getSubmission = getSubmission;
|
|
200
200
|
/**
|
|
201
|
-
* Updates a submission
|
|
202
|
-
*
|
|
201
|
+
* Updates a submission.
|
|
202
|
+
*
|
|
203
|
+
* Each time the submission is updated, `revision` increments by 1. The existing `revision` must be included when updating the submission. This ensures you're working with the latest submission information, and prevents unintended overwrites.
|
|
203
204
|
* @param _id - Form submission ID.
|
|
204
205
|
* @public
|
|
205
206
|
* @documentationMaturity preview
|
|
@@ -255,8 +256,12 @@ function updateSubmission(_id, submission) {
|
|
|
255
256
|
}
|
|
256
257
|
exports.updateSubmission = updateSubmission;
|
|
257
258
|
/**
|
|
258
|
-
*
|
|
259
|
-
*
|
|
259
|
+
* Confirms a submission and changes the submission status to `CONFIRMED`.
|
|
260
|
+
*
|
|
261
|
+
*
|
|
262
|
+
* You can only confirm a submission that has a `PENDING` status.
|
|
263
|
+
* Currently, the default status when a submission is created is `CONFIRMED`. You can override the default status when using the [Create Submission](#) endpoints. change the status of a submission using the [`Update Submission`](#) endpoints. The ability to set the default status to `PENDING` will be availbe using the upcoming Form Submissions SPI.
|
|
264
|
+
* @param submissionId - Submission IDs.
|
|
260
265
|
* @public
|
|
261
266
|
* @documentationMaturity preview
|
|
262
267
|
* @requiredField submissionId
|
|
@@ -306,8 +311,8 @@ function confirmSubmission(submissionId) {
|
|
|
306
311
|
}
|
|
307
312
|
exports.confirmSubmission = confirmSubmission;
|
|
308
313
|
/**
|
|
309
|
-
* Deletes a submission.
|
|
310
|
-
* @param submissionId -
|
|
314
|
+
* Deletes a submission by ID.
|
|
315
|
+
* @param submissionId - ID of the submission to be deleted.
|
|
311
316
|
* @public
|
|
312
317
|
* @documentationMaturity preview
|
|
313
318
|
* @requiredField submissionId
|
|
@@ -357,7 +362,14 @@ function deleteSubmission(submissionId) {
|
|
|
357
362
|
}
|
|
358
363
|
exports.deleteSubmission = deleteSubmission;
|
|
359
364
|
/**
|
|
360
|
-
*
|
|
365
|
+
* Returns a list of up to 100 submissions, given the provided paging, filtering, and sorting.
|
|
366
|
+
*
|
|
367
|
+
*
|
|
368
|
+
* You can only query submissions from a specified namespace. Use the query filter on the `namespace` field, otherwise you will receive an error.
|
|
369
|
+
*
|
|
370
|
+
* For field support for filters and sorting, see [Form Submissions: Supported Filters and Sorting](https://dev.wix.com/docs/rest/api-reference/form-submissions/sort-and-filter).option
|
|
371
|
+
*
|
|
372
|
+
* To learn about working with _Query_ endpoints, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language), [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination), and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
361
373
|
* @public
|
|
362
374
|
* @documentationMaturity preview
|
|
363
375
|
*/
|
|
@@ -414,7 +426,7 @@ function querySubmission(options) {
|
|
|
414
426
|
}
|
|
415
427
|
exports.querySubmission = querySubmission;
|
|
416
428
|
/**
|
|
417
|
-
* Counts
|
|
429
|
+
* Counts ths submissions beloning to the specified forms.
|
|
418
430
|
* @param formIds - Form IDs.
|
|
419
431
|
* @public
|
|
420
432
|
* @documentationMaturity preview
|
|
@@ -471,8 +483,9 @@ function countSubmissions(formIds, options) {
|
|
|
471
483
|
}
|
|
472
484
|
exports.countSubmissions = countSubmissions;
|
|
473
485
|
/**
|
|
486
|
+
* Retrieves a URL, generated by [Media Manager](https://dev.wix.com/api/rest/media/media-manager/files/generate-file-upload-url), to allow clients to upload a file to a form for submission.
|
|
474
487
|
* Returns url to upload media file.
|
|
475
|
-
* @param formId - Form
|
|
488
|
+
* @param formId - Form ID.
|
|
476
489
|
* @public
|
|
477
490
|
* @documentationMaturity preview
|
|
478
491
|
* @requiredField formId
|
|
@@ -532,8 +545,8 @@ function getMediaUploadUrl(formId, options) {
|
|
|
532
545
|
}
|
|
533
546
|
exports.getMediaUploadUrl = getMediaUploadUrl;
|
|
534
547
|
/**
|
|
535
|
-
* Marks submissions as seen.
|
|
536
|
-
* @param ids - Submission
|
|
548
|
+
* Marks form submissions as seen.
|
|
549
|
+
* @param ids - Submission IDs to mark as seen.
|
|
537
550
|
* @public
|
|
538
551
|
* @documentationMaturity preview
|
|
539
552
|
* @requiredField ids
|