@wix/forms 1.0.62 → 1.0.64
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/index.js +5 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +5 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +5 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/src/forms-v4-submission.http.js +126 -162
- package/build/cjs/src/forms-v4-submission.http.js.map +1 -1
- package/build/cjs/src/forms-v4-submission.meta.d.ts +1 -1
- package/build/cjs/src/forms-v4-submission.meta.js +5 -1
- package/build/cjs/src/forms-v4-submission.meta.js.map +1 -1
- package/build/cjs/src/forms-v4-submission.public.d.ts +11 -22
- package/build/cjs/src/forms-v4-submission.types.d.ts +37 -25
- package/build/cjs/src/forms-v4-submission.types.js +56 -56
- package/build/cjs/src/forms-v4-submission.types.js.map +1 -1
- package/build/cjs/src/forms-v4-submission.universal.d.ts +38 -27
- package/build/cjs/src/forms-v4-submission.universal.js +168 -117
- package/build/cjs/src/forms-v4-submission.universal.js.map +1 -1
- package/build/es/src/forms-v4-submission.http.js +126 -162
- package/build/es/src/forms-v4-submission.http.js.map +1 -1
- package/build/es/src/forms-v4-submission.meta.d.ts +1 -1
- package/build/es/src/forms-v4-submission.public.d.ts +11 -22
- package/build/es/src/forms-v4-submission.types.d.ts +37 -25
- package/build/es/src/forms-v4-submission.types.js.map +1 -1
- package/build/es/src/forms-v4-submission.universal.d.ts +38 -27
- package/build/es/src/forms-v4-submission.universal.js +107 -60
- package/build/es/src/forms-v4-submission.universal.js.map +1 -1
- package/package.json +7 -3
|
@@ -120,7 +120,7 @@ export interface OrderDetails {
|
|
|
120
120
|
* ID of the order related to submission (applicable if form has payments added).
|
|
121
121
|
* @readonly
|
|
122
122
|
*/
|
|
123
|
-
|
|
123
|
+
orderId?: string | null;
|
|
124
124
|
/**
|
|
125
125
|
* Order number.
|
|
126
126
|
* @readonly
|
|
@@ -130,12 +130,17 @@ export interface OrderDetails {
|
|
|
130
130
|
* Currency.
|
|
131
131
|
* @readonly
|
|
132
132
|
*/
|
|
133
|
-
currency?: string;
|
|
133
|
+
currency?: string | null;
|
|
134
134
|
/**
|
|
135
135
|
* Item subtotal.
|
|
136
136
|
* @readonly
|
|
137
137
|
*/
|
|
138
138
|
itemSubtotal?: string;
|
|
139
|
+
/**
|
|
140
|
+
* ID of the checkout related to submission (applicable if form has payments added).
|
|
141
|
+
* @readonly
|
|
142
|
+
*/
|
|
143
|
+
checkoutId?: string;
|
|
139
144
|
}
|
|
140
145
|
export interface CreateCheckoutFromSubmissionRequest extends CreateCheckoutFromSubmissionRequestFormSchemaIdentifierOneOf {
|
|
141
146
|
/** Submission's form. */
|
|
@@ -2793,26 +2798,35 @@ export interface CreateSubmissionRequest {
|
|
|
2793
2798
|
export interface CreateSubmissionResponse {
|
|
2794
2799
|
/** The created submission. */
|
|
2795
2800
|
submission?: FormSubmission;
|
|
2796
|
-
/** Checkout ID (applicable for form involving payments). */
|
|
2797
|
-
checkoutId?: string | null;
|
|
2798
2801
|
}
|
|
2799
2802
|
export interface CreateSubmissionBySubmitterRequest {
|
|
2800
2803
|
/** Submission to create. */
|
|
2801
2804
|
submission?: FormSubmission;
|
|
2805
|
+
/** A flag indicating whether this operation is a repeated creation, such as restoring a previously manually reported as spam entity. */
|
|
2806
|
+
repeatedCreation?: boolean;
|
|
2802
2807
|
}
|
|
2803
2808
|
export interface CreateSubmissionBySubmitterResponse {
|
|
2804
2809
|
/** The created submission. */
|
|
2805
2810
|
submission?: FormSubmission;
|
|
2806
|
-
/** Checkout ID (applicable for form involving payments). */
|
|
2807
|
-
checkoutId?: string | null;
|
|
2808
2811
|
}
|
|
2809
2812
|
export interface BulkCreateSubmissionBySubmitterRequest {
|
|
2810
2813
|
/** Form id. Restricts submissions creation for a single form. */
|
|
2811
2814
|
formId?: string;
|
|
2812
|
-
/**
|
|
2815
|
+
/**
|
|
2816
|
+
* Submissions to create.
|
|
2817
|
+
* Deprecated
|
|
2818
|
+
*/
|
|
2813
2819
|
submissions?: FormSubmission[];
|
|
2814
2820
|
/** When set, items will be returned on successful create. */
|
|
2815
2821
|
returnEntity?: boolean;
|
|
2822
|
+
/** Submissions data to create. */
|
|
2823
|
+
submissionsV2?: BulkCreateSubmissionBySubmitterData[];
|
|
2824
|
+
}
|
|
2825
|
+
export interface BulkCreateSubmissionBySubmitterData {
|
|
2826
|
+
/** Submissions to create. */
|
|
2827
|
+
submission?: FormSubmission;
|
|
2828
|
+
/** A flag indicating whether this operation is a repeated creation, such as restoring a previously manually reported as spam entity. */
|
|
2829
|
+
repeatedCreation?: boolean;
|
|
2816
2830
|
}
|
|
2817
2831
|
export interface BulkCreateSubmissionBySubmitterResponse {
|
|
2818
2832
|
/** Created submissions with metadata */
|
|
@@ -2825,8 +2839,6 @@ export interface BulkSubmissionResult {
|
|
|
2825
2839
|
itemMetadata?: ItemMetadata;
|
|
2826
2840
|
/** The created submission. */
|
|
2827
2841
|
item?: FormSubmission;
|
|
2828
|
-
/** Checkout ID (applicable for form involving payments). */
|
|
2829
|
-
checkoutId?: string | null;
|
|
2830
2842
|
}
|
|
2831
2843
|
export interface ItemMetadata {
|
|
2832
2844
|
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
@@ -2862,6 +2874,14 @@ export interface GetSubmissionResponse {
|
|
|
2862
2874
|
/** The retrieved submission. */
|
|
2863
2875
|
submission?: FormSubmission;
|
|
2864
2876
|
}
|
|
2877
|
+
export interface GetSubmissionByCheckoutIdRequest {
|
|
2878
|
+
/** Checkout ID of the submission to retrieve. */
|
|
2879
|
+
checkoutId?: string;
|
|
2880
|
+
}
|
|
2881
|
+
export interface GetSubmissionByCheckoutIdResponse {
|
|
2882
|
+
/** The retrieved submission. */
|
|
2883
|
+
submission?: FormSubmission;
|
|
2884
|
+
}
|
|
2865
2885
|
export interface UpdateSubmissionRequest {
|
|
2866
2886
|
/** Submission to update. */
|
|
2867
2887
|
submission: FormSubmission;
|
|
@@ -3162,9 +3182,8 @@ export interface CreateSubmissionResponseNonNullableFields {
|
|
|
3162
3182
|
status: SubmissionStatus;
|
|
3163
3183
|
seen: boolean;
|
|
3164
3184
|
orderDetails?: {
|
|
3165
|
-
_id: string;
|
|
3166
|
-
currency: string;
|
|
3167
3185
|
itemSubtotal: string;
|
|
3186
|
+
checkoutId: string;
|
|
3168
3187
|
};
|
|
3169
3188
|
};
|
|
3170
3189
|
}
|
|
@@ -3175,9 +3194,8 @@ export interface GetSubmissionResponseNonNullableFields {
|
|
|
3175
3194
|
status: SubmissionStatus;
|
|
3176
3195
|
seen: boolean;
|
|
3177
3196
|
orderDetails?: {
|
|
3178
|
-
_id: string;
|
|
3179
|
-
currency: string;
|
|
3180
3197
|
itemSubtotal: string;
|
|
3198
|
+
checkoutId: string;
|
|
3181
3199
|
};
|
|
3182
3200
|
};
|
|
3183
3201
|
}
|
|
@@ -3188,9 +3206,8 @@ export interface UpdateSubmissionResponseNonNullableFields {
|
|
|
3188
3206
|
status: SubmissionStatus;
|
|
3189
3207
|
seen: boolean;
|
|
3190
3208
|
orderDetails?: {
|
|
3191
|
-
_id: string;
|
|
3192
|
-
currency: string;
|
|
3193
3209
|
itemSubtotal: string;
|
|
3210
|
+
checkoutId: string;
|
|
3194
3211
|
};
|
|
3195
3212
|
};
|
|
3196
3213
|
}
|
|
@@ -3201,9 +3218,8 @@ export interface ConfirmSubmissionResponseNonNullableFields {
|
|
|
3201
3218
|
status: SubmissionStatus;
|
|
3202
3219
|
seen: boolean;
|
|
3203
3220
|
orderDetails?: {
|
|
3204
|
-
_id: string;
|
|
3205
|
-
currency: string;
|
|
3206
3221
|
itemSubtotal: string;
|
|
3222
|
+
checkoutId: string;
|
|
3207
3223
|
};
|
|
3208
3224
|
};
|
|
3209
3225
|
}
|
|
@@ -3231,9 +3247,8 @@ export interface RestoreSubmissionFromTrashBinResponseNonNullableFields {
|
|
|
3231
3247
|
status: SubmissionStatus;
|
|
3232
3248
|
seen: boolean;
|
|
3233
3249
|
orderDetails?: {
|
|
3234
|
-
_id: string;
|
|
3235
|
-
currency: string;
|
|
3236
3250
|
itemSubtotal: string;
|
|
3251
|
+
checkoutId: string;
|
|
3237
3252
|
};
|
|
3238
3253
|
};
|
|
3239
3254
|
}
|
|
@@ -3261,9 +3276,8 @@ export interface ListDeletedSubmissionsResponseNonNullableFields {
|
|
|
3261
3276
|
status: SubmissionStatus;
|
|
3262
3277
|
seen: boolean;
|
|
3263
3278
|
orderDetails?: {
|
|
3264
|
-
_id: string;
|
|
3265
|
-
currency: string;
|
|
3266
3279
|
itemSubtotal: string;
|
|
3280
|
+
checkoutId: string;
|
|
3267
3281
|
};
|
|
3268
3282
|
}[];
|
|
3269
3283
|
}
|
|
@@ -3274,9 +3288,8 @@ export interface GetDeletedSubmissionResponseNonNullableFields {
|
|
|
3274
3288
|
status: SubmissionStatus;
|
|
3275
3289
|
seen: boolean;
|
|
3276
3290
|
orderDetails?: {
|
|
3277
|
-
_id: string;
|
|
3278
|
-
currency: string;
|
|
3279
3291
|
itemSubtotal: string;
|
|
3292
|
+
checkoutId: string;
|
|
3280
3293
|
};
|
|
3281
3294
|
};
|
|
3282
3295
|
}
|
|
@@ -3287,9 +3300,8 @@ export interface QuerySubmissionsByNamespaceResponseNonNullableFields {
|
|
|
3287
3300
|
status: SubmissionStatus;
|
|
3288
3301
|
seen: boolean;
|
|
3289
3302
|
orderDetails?: {
|
|
3290
|
-
_id: string;
|
|
3291
|
-
currency: string;
|
|
3292
3303
|
itemSubtotal: string;
|
|
3304
|
+
checkoutId: string;
|
|
3293
3305
|
};
|
|
3294
3306
|
}[];
|
|
3295
3307
|
}
|
|
@@ -3341,9 +3353,8 @@ export interface CreateSubmissionOptions {
|
|
|
3341
3353
|
* @permissionScope Read Orders
|
|
3342
3354
|
* @permissionScope Read Submissions
|
|
3343
3355
|
* @applicableIdentity APP
|
|
3344
|
-
* @returns The retrieved submission.
|
|
3345
3356
|
*/
|
|
3346
|
-
export declare function getSubmission(submissionId: string): Promise<
|
|
3357
|
+
export declare function getSubmission(submissionId: string): Promise<GetSubmissionResponse & GetSubmissionResponseNonNullableFields>;
|
|
3347
3358
|
/**
|
|
3348
3359
|
* Updates a submission.
|
|
3349
3360
|
* > **Note**:
|