@wix/auto_sdk_forms_submissions 1.0.27 → 1.0.29
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/{internal/cjs/src/forms-v4-submission-submissions.universal.d.ts → cjs/forms-v4-submission-submissions.universal-BScz75Gj.d.ts} +1534 -1205
- package/build/cjs/index.d.ts +327 -1
- package/build/cjs/index.js +2974 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +28 -1
- package/build/cjs/index.typings.js +2605 -15
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1043 -1
- package/build/cjs/meta.js +1277 -15
- package/build/cjs/meta.js.map +1 -1
- package/build/{internal/es/src/forms-v4-submission-submissions.universal.d.ts → es/forms-v4-submission-submissions.universal-BScz75Gj.d.mts} +1534 -1205
- package/build/es/index.d.mts +327 -0
- package/build/es/index.mjs +2815 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +28 -0
- package/build/es/index.typings.mjs +2453 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +1043 -0
- package/build/es/meta.mjs +1228 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/{cjs/src/forms-v4-submission-submissions.universal.d.ts → internal/cjs/forms-v4-submission-submissions.universal-BIIcc2WV.d.ts} +1561 -1170
- package/build/internal/cjs/index.d.ts +349 -1
- package/build/internal/cjs/index.js +2974 -15
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +28 -1
- package/build/internal/cjs/index.typings.js +2605 -15
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1043 -1
- package/build/internal/cjs/meta.js +1277 -15
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/{es/src/forms-v4-submission-submissions.universal.d.ts → internal/es/forms-v4-submission-submissions.universal-BIIcc2WV.d.mts} +1561 -1170
- package/build/internal/es/index.d.mts +349 -0
- package/build/internal/es/index.mjs +2815 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +28 -0
- package/build/internal/es/index.typings.mjs +2453 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +1043 -0
- package/build/internal/es/meta.mjs +1228 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +12 -10
- package/build/cjs/src/forms-v4-submission-submissions.context.d.ts +0 -65
- package/build/cjs/src/forms-v4-submission-submissions.context.js +0 -170
- package/build/cjs/src/forms-v4-submission-submissions.context.js.map +0 -1
- package/build/cjs/src/forms-v4-submission-submissions.http.d.ts +0 -126
- package/build/cjs/src/forms-v4-submission-submissions.http.js +0 -849
- package/build/cjs/src/forms-v4-submission-submissions.http.js.map +0 -1
- package/build/cjs/src/forms-v4-submission-submissions.meta.d.ts +0 -58
- package/build/cjs/src/forms-v4-submission-submissions.meta.js +0 -522
- package/build/cjs/src/forms-v4-submission-submissions.meta.js.map +0 -1
- package/build/cjs/src/forms-v4-submission-submissions.public.d.ts +0 -268
- package/build/cjs/src/forms-v4-submission-submissions.public.js +0 -332
- package/build/cjs/src/forms-v4-submission-submissions.public.js.map +0 -1
- package/build/cjs/src/forms-v4-submission-submissions.types.d.ts +0 -6288
- package/build/cjs/src/forms-v4-submission-submissions.types.js +0 -961
- package/build/cjs/src/forms-v4-submission-submissions.types.js.map +0 -1
- package/build/cjs/src/forms-v4-submission-submissions.universal.js +0 -2217
- package/build/cjs/src/forms-v4-submission-submissions.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/forms-v4-submission-submissions.context.d.ts +0 -65
- package/build/es/src/forms-v4-submission-submissions.context.js +0 -69
- package/build/es/src/forms-v4-submission-submissions.context.js.map +0 -1
- package/build/es/src/forms-v4-submission-submissions.http.d.ts +0 -126
- package/build/es/src/forms-v4-submission-submissions.http.js +0 -820
- package/build/es/src/forms-v4-submission-submissions.http.js.map +0 -1
- package/build/es/src/forms-v4-submission-submissions.meta.d.ts +0 -58
- package/build/es/src/forms-v4-submission-submissions.meta.js +0 -470
- package/build/es/src/forms-v4-submission-submissions.meta.js.map +0 -1
- package/build/es/src/forms-v4-submission-submissions.public.d.ts +0 -268
- package/build/es/src/forms-v4-submission-submissions.public.js +0 -205
- package/build/es/src/forms-v4-submission-submissions.public.js.map +0 -1
- package/build/es/src/forms-v4-submission-submissions.types.d.ts +0 -6288
- package/build/es/src/forms-v4-submission-submissions.types.js +0 -957
- package/build/es/src/forms-v4-submission-submissions.types.js.map +0 -1
- package/build/es/src/forms-v4-submission-submissions.universal.js +0 -2163
- package/build/es/src/forms-v4-submission-submissions.universal.js.map +0 -1
- package/build/internal/cjs/src/forms-v4-submission-submissions.context.d.ts +0 -69
- package/build/internal/cjs/src/forms-v4-submission-submissions.context.js +0 -170
- package/build/internal/cjs/src/forms-v4-submission-submissions.context.js.map +0 -1
- package/build/internal/cjs/src/forms-v4-submission-submissions.http.d.ts +0 -126
- package/build/internal/cjs/src/forms-v4-submission-submissions.http.js +0 -849
- package/build/internal/cjs/src/forms-v4-submission-submissions.http.js.map +0 -1
- package/build/internal/cjs/src/forms-v4-submission-submissions.meta.d.ts +0 -58
- package/build/internal/cjs/src/forms-v4-submission-submissions.meta.js +0 -522
- package/build/internal/cjs/src/forms-v4-submission-submissions.meta.js.map +0 -1
- package/build/internal/cjs/src/forms-v4-submission-submissions.public.d.ts +0 -286
- package/build/internal/cjs/src/forms-v4-submission-submissions.public.js +0 -332
- package/build/internal/cjs/src/forms-v4-submission-submissions.public.js.map +0 -1
- package/build/internal/cjs/src/forms-v4-submission-submissions.types.d.ts +0 -6288
- package/build/internal/cjs/src/forms-v4-submission-submissions.types.js +0 -961
- package/build/internal/cjs/src/forms-v4-submission-submissions.types.js.map +0 -1
- package/build/internal/cjs/src/forms-v4-submission-submissions.universal.js +0 -2217
- package/build/internal/cjs/src/forms-v4-submission-submissions.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/forms-v4-submission-submissions.context.d.ts +0 -69
- package/build/internal/es/src/forms-v4-submission-submissions.context.js +0 -69
- package/build/internal/es/src/forms-v4-submission-submissions.context.js.map +0 -1
- package/build/internal/es/src/forms-v4-submission-submissions.http.d.ts +0 -126
- package/build/internal/es/src/forms-v4-submission-submissions.http.js +0 -820
- package/build/internal/es/src/forms-v4-submission-submissions.http.js.map +0 -1
- package/build/internal/es/src/forms-v4-submission-submissions.meta.d.ts +0 -58
- package/build/internal/es/src/forms-v4-submission-submissions.meta.js +0 -470
- package/build/internal/es/src/forms-v4-submission-submissions.meta.js.map +0 -1
- package/build/internal/es/src/forms-v4-submission-submissions.public.d.ts +0 -286
- package/build/internal/es/src/forms-v4-submission-submissions.public.js +0 -205
- package/build/internal/es/src/forms-v4-submission-submissions.public.js.map +0 -1
- package/build/internal/es/src/forms-v4-submission-submissions.types.d.ts +0 -6288
- package/build/internal/es/src/forms-v4-submission-submissions.types.js +0 -957
- package/build/internal/es/src/forms-v4-submission-submissions.types.js.map +0 -1
- package/build/internal/es/src/forms-v4-submission-submissions.universal.js +0 -2163
- package/build/internal/es/src/forms-v4-submission-submissions.universal.js.map +0 -1
|
@@ -1,2217 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.SchedulingComponentType = exports.ImageFit = exports.InputFieldPaymentComponentType = exports.UploadFileFormat = exports.InputFieldWixFileComponentType = exports.ArrayComponentType = exports.PropertiesTypePropertiesTypeEnum = exports.ArrayItemsItemType = exports.InputFieldBooleanComponentType = exports.InputFieldNumberComponentType = exports.FirstDayOfWeek = exports.NumberOfColumns = exports.NullValue = exports.VerticalAlignment = exports.Direction = exports.InitialExpandedItems = exports.AppType = exports.FontType = exports.DecorationType = exports.BackgroundType = exports.PollLayoutDirection = exports.PollLayoutType = exports.VoteRole = exports.ViewRole = exports.MapType = exports.Position = exports.Source = exports.GIFType = exports.ThumbnailsAlignment = exports.Crop = exports.Orientation = exports.LayoutType = exports.ViewMode = exports.Alignment = exports.Width = exports.LineStyle = exports.TextAlignment = exports.LinkTarget = exports.ButtonDataType = exports.PluginContainerDataAlignment = exports.WidthType = exports.NodeType = exports.InputFieldStringComponentType = exports.InputFieldStringTypeFormatEnumFormat = exports.PriceType = exports.ProductType = exports.ValidationFormat = exports.StringTypeFormatEnumFormat = exports.OptInLevel = exports.SubmissionStatus = void 0;
|
|
27
|
-
exports.updateSubmission = exports.getSubmission = exports.createSubmission = exports.upsertContactFromSubmission = exports.SubmissionErrorType = exports.Status = exports.Mode = exports.SortOrder = exports.ErrorType = exports.IdentityType = exports.WebhookIdentityType = exports.Operator = exports.OverrideEntityTypeEnumOverrideEntityType = exports.ChangeableProperty = exports.SubmitSuccessAction = exports.Target = exports.RequiredIndicatorPlacement = exports.RequiredIndicator = exports.SpamFilterProtectionLevel = exports.Kind = exports.OverrideEntityType = exports.DisplayFieldDisplayFieldType = exports.ContactField = exports.ConfirmationLevel = exports.Tag = exports.PhoneInfoTag = exports.EmailInfoTag = exports.InputType = exports.MultilineAddressComponentType = exports.PaymentComponentType = exports.WixFileComponentType = exports.ComponentType = exports.PropertiesTypeEnum = exports.ItemType = exports.BooleanComponentType = exports.NumberComponentType = exports.StringComponentType = exports.FormatEnumFormat = exports.FieldType = exports.DisplayFieldType = exports.FormFieldV2FieldType = exports.FormFieldContactInfoContactField = exports.SubscriptionInfoOptInLevel = exports.AddressInfoTag = exports.FormFieldContactInfoPhoneInfoTag = exports.FormFieldContactInfoEmailInfoTag = exports.InputFieldInputType = exports.Type = exports.InputFieldMultilineAddressComponentType = exports.Format = void 0;
|
|
28
|
-
exports.validateFormSubmission = exports.bulkUpdateFormSubmissionTagsByFilter = exports.bulkUpdateFormSubmissionTags = exports.updateExtendedFields = exports.getFormattedSubmission = exports.getSubmissionDownloadUrl = exports.bulkMarkSubmissionsAsSeen = exports.getMediaUploadUrl = exports.countDeletedSubmissions = exports.countSubmissions = exports.countSubmissionsByFilter = exports.querySubmissionsByNamespace = exports.searchSubmissionsByNamespace = exports.querySubmission = exports.getDeletedSubmission = exports.listDeletedSubmissions = exports.bulkRemoveSubmissionFromTrashBin = exports.removeSubmissionFromTrashBin = exports.restoreSubmissionFromTrashBin = exports.bulkDeleteSubmission = exports.deleteSubmission = exports.confirmSubmission = void 0;
|
|
29
|
-
const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
30
|
-
const query_builder_1 = require("@wix/sdk-runtime/query-builder");
|
|
31
|
-
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
32
|
-
const ambassadorWixFormsV4Submission = __importStar(require("./forms-v4-submission-submissions.http.js"));
|
|
33
|
-
var SubmissionStatus;
|
|
34
|
-
(function (SubmissionStatus) {
|
|
35
|
-
SubmissionStatus["UNKNOWN_SUBMISSION_STATUS"] = "UNKNOWN_SUBMISSION_STATUS";
|
|
36
|
-
/** A submission is created, but has not yet been recorded in the Wix Forms collection. */
|
|
37
|
-
SubmissionStatus["PENDING"] = "PENDING";
|
|
38
|
-
/** A submission is recorded in the Wix Forms collection. */
|
|
39
|
-
SubmissionStatus["CONFIRMED"] = "CONFIRMED";
|
|
40
|
-
/** A form submission requiring payment is created. */
|
|
41
|
-
SubmissionStatus["PAYMENT_WAITING"] = "PAYMENT_WAITING";
|
|
42
|
-
/** An order of a form submission is canceled. */
|
|
43
|
-
SubmissionStatus["PAYMENT_CANCELED"] = "PAYMENT_CANCELED";
|
|
44
|
-
})(SubmissionStatus || (exports.SubmissionStatus = SubmissionStatus = {}));
|
|
45
|
-
var OptInLevel;
|
|
46
|
-
(function (OptInLevel) {
|
|
47
|
-
/** Single confirmation. */
|
|
48
|
-
OptInLevel["SINGLE_CONFIRMATION"] = "SINGLE_CONFIRMATION";
|
|
49
|
-
/** Double confirmation. */
|
|
50
|
-
OptInLevel["DOUBLE_CONFIRMATION"] = "DOUBLE_CONFIRMATION";
|
|
51
|
-
})(OptInLevel || (exports.OptInLevel = OptInLevel = {}));
|
|
52
|
-
var StringTypeFormatEnumFormat;
|
|
53
|
-
(function (StringTypeFormatEnumFormat) {
|
|
54
|
-
StringTypeFormatEnumFormat["UNDEFINED"] = "UNDEFINED";
|
|
55
|
-
StringTypeFormatEnumFormat["DATE"] = "DATE";
|
|
56
|
-
StringTypeFormatEnumFormat["TIME"] = "TIME";
|
|
57
|
-
StringTypeFormatEnumFormat["DATE_TIME"] = "DATE_TIME";
|
|
58
|
-
StringTypeFormatEnumFormat["EMAIL"] = "EMAIL";
|
|
59
|
-
StringTypeFormatEnumFormat["URL"] = "URL";
|
|
60
|
-
StringTypeFormatEnumFormat["UUID"] = "UUID";
|
|
61
|
-
StringTypeFormatEnumFormat["PHONE"] = "PHONE";
|
|
62
|
-
StringTypeFormatEnumFormat["URI"] = "URI";
|
|
63
|
-
StringTypeFormatEnumFormat["HOSTNAME"] = "HOSTNAME";
|
|
64
|
-
StringTypeFormatEnumFormat["COLOR_HEX"] = "COLOR_HEX";
|
|
65
|
-
StringTypeFormatEnumFormat["CURRENCY"] = "CURRENCY";
|
|
66
|
-
StringTypeFormatEnumFormat["LANGUAGE"] = "LANGUAGE";
|
|
67
|
-
StringTypeFormatEnumFormat["DATE_OPTIONAL_TIME"] = "DATE_OPTIONAL_TIME";
|
|
68
|
-
})(StringTypeFormatEnumFormat || (exports.StringTypeFormatEnumFormat = StringTypeFormatEnumFormat = {}));
|
|
69
|
-
var ValidationFormat;
|
|
70
|
-
(function (ValidationFormat) {
|
|
71
|
-
ValidationFormat["UNDEFINED"] = "UNDEFINED";
|
|
72
|
-
/** File upload validation. */
|
|
73
|
-
ValidationFormat["WIX_FILE"] = "WIX_FILE";
|
|
74
|
-
/** Payment validation. */
|
|
75
|
-
ValidationFormat["PAYMENT"] = "PAYMENT";
|
|
76
|
-
/** Multiline address. */
|
|
77
|
-
ValidationFormat["MULTILINE_ADDRESS"] = "MULTILINE_ADDRESS";
|
|
78
|
-
/** Scheduling validation. */
|
|
79
|
-
ValidationFormat["SCHEDULING"] = "SCHEDULING";
|
|
80
|
-
})(ValidationFormat || (exports.ValidationFormat = ValidationFormat = {}));
|
|
81
|
-
var ProductType;
|
|
82
|
-
(function (ProductType) {
|
|
83
|
-
/** Unknown product type. */
|
|
84
|
-
ProductType["UNKNOWN"] = "UNKNOWN";
|
|
85
|
-
/** Shippable (physical) product. */
|
|
86
|
-
ProductType["SHIPPABLE"] = "SHIPPABLE";
|
|
87
|
-
/** Digital product. */
|
|
88
|
-
ProductType["DIGITAL"] = "DIGITAL";
|
|
89
|
-
})(ProductType || (exports.ProductType = ProductType = {}));
|
|
90
|
-
var PriceType;
|
|
91
|
-
(function (PriceType) {
|
|
92
|
-
/** Unknown price type. */
|
|
93
|
-
PriceType["UNKNOWN"] = "UNKNOWN";
|
|
94
|
-
/** Fixed price. */
|
|
95
|
-
PriceType["FIXED_PRICE"] = "FIXED_PRICE";
|
|
96
|
-
/** Dynamic price from price range. */
|
|
97
|
-
PriceType["DYNAMIC_PRICE"] = "DYNAMIC_PRICE";
|
|
98
|
-
})(PriceType || (exports.PriceType = PriceType = {}));
|
|
99
|
-
var InputFieldStringTypeFormatEnumFormat;
|
|
100
|
-
(function (InputFieldStringTypeFormatEnumFormat) {
|
|
101
|
-
InputFieldStringTypeFormatEnumFormat["UNKNOWN_FORMAT"] = "UNKNOWN_FORMAT";
|
|
102
|
-
InputFieldStringTypeFormatEnumFormat["DATE"] = "DATE";
|
|
103
|
-
InputFieldStringTypeFormatEnumFormat["TIME"] = "TIME";
|
|
104
|
-
InputFieldStringTypeFormatEnumFormat["DATE_TIME"] = "DATE_TIME";
|
|
105
|
-
InputFieldStringTypeFormatEnumFormat["EMAIL"] = "EMAIL";
|
|
106
|
-
InputFieldStringTypeFormatEnumFormat["URL"] = "URL";
|
|
107
|
-
InputFieldStringTypeFormatEnumFormat["UUID"] = "UUID";
|
|
108
|
-
InputFieldStringTypeFormatEnumFormat["PHONE"] = "PHONE";
|
|
109
|
-
InputFieldStringTypeFormatEnumFormat["URI"] = "URI";
|
|
110
|
-
InputFieldStringTypeFormatEnumFormat["HOSTNAME"] = "HOSTNAME";
|
|
111
|
-
InputFieldStringTypeFormatEnumFormat["COLOR_HEX"] = "COLOR_HEX";
|
|
112
|
-
InputFieldStringTypeFormatEnumFormat["CURRENCY"] = "CURRENCY";
|
|
113
|
-
InputFieldStringTypeFormatEnumFormat["LANGUAGE"] = "LANGUAGE";
|
|
114
|
-
InputFieldStringTypeFormatEnumFormat["DATE_OPTIONAL_TIME"] = "DATE_OPTIONAL_TIME";
|
|
115
|
-
})(InputFieldStringTypeFormatEnumFormat || (exports.InputFieldStringTypeFormatEnumFormat = InputFieldStringTypeFormatEnumFormat = {}));
|
|
116
|
-
var InputFieldStringComponentType;
|
|
117
|
-
(function (InputFieldStringComponentType) {
|
|
118
|
-
InputFieldStringComponentType["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
|
|
119
|
-
InputFieldStringComponentType["TEXT_INPUT"] = "TEXT_INPUT";
|
|
120
|
-
InputFieldStringComponentType["RADIO_GROUP"] = "RADIO_GROUP";
|
|
121
|
-
InputFieldStringComponentType["DROPDOWN"] = "DROPDOWN";
|
|
122
|
-
InputFieldStringComponentType["DATE_TIME"] = "DATE_TIME";
|
|
123
|
-
InputFieldStringComponentType["PHONE_INPUT"] = "PHONE_INPUT";
|
|
124
|
-
InputFieldStringComponentType["DATE_INPUT"] = "DATE_INPUT";
|
|
125
|
-
InputFieldStringComponentType["TIME_INPUT"] = "TIME_INPUT";
|
|
126
|
-
InputFieldStringComponentType["DATE_PICKER"] = "DATE_PICKER";
|
|
127
|
-
})(InputFieldStringComponentType || (exports.InputFieldStringComponentType = InputFieldStringComponentType = {}));
|
|
128
|
-
var NodeType;
|
|
129
|
-
(function (NodeType) {
|
|
130
|
-
NodeType["PARAGRAPH"] = "PARAGRAPH";
|
|
131
|
-
NodeType["TEXT"] = "TEXT";
|
|
132
|
-
NodeType["HEADING"] = "HEADING";
|
|
133
|
-
NodeType["BULLETED_LIST"] = "BULLETED_LIST";
|
|
134
|
-
NodeType["ORDERED_LIST"] = "ORDERED_LIST";
|
|
135
|
-
NodeType["LIST_ITEM"] = "LIST_ITEM";
|
|
136
|
-
NodeType["BLOCKQUOTE"] = "BLOCKQUOTE";
|
|
137
|
-
NodeType["CODE_BLOCK"] = "CODE_BLOCK";
|
|
138
|
-
NodeType["VIDEO"] = "VIDEO";
|
|
139
|
-
NodeType["DIVIDER"] = "DIVIDER";
|
|
140
|
-
NodeType["FILE"] = "FILE";
|
|
141
|
-
NodeType["GALLERY"] = "GALLERY";
|
|
142
|
-
NodeType["GIF"] = "GIF";
|
|
143
|
-
NodeType["HTML"] = "HTML";
|
|
144
|
-
NodeType["IMAGE"] = "IMAGE";
|
|
145
|
-
NodeType["LINK_PREVIEW"] = "LINK_PREVIEW";
|
|
146
|
-
/** @deprecated */
|
|
147
|
-
NodeType["MAP"] = "MAP";
|
|
148
|
-
NodeType["POLL"] = "POLL";
|
|
149
|
-
NodeType["APP_EMBED"] = "APP_EMBED";
|
|
150
|
-
NodeType["BUTTON"] = "BUTTON";
|
|
151
|
-
NodeType["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
|
|
152
|
-
NodeType["TABLE"] = "TABLE";
|
|
153
|
-
NodeType["EMBED"] = "EMBED";
|
|
154
|
-
NodeType["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
|
|
155
|
-
NodeType["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
|
|
156
|
-
NodeType["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
|
|
157
|
-
NodeType["TABLE_CELL"] = "TABLE_CELL";
|
|
158
|
-
NodeType["TABLE_ROW"] = "TABLE_ROW";
|
|
159
|
-
NodeType["EXTERNAL"] = "EXTERNAL";
|
|
160
|
-
NodeType["AUDIO"] = "AUDIO";
|
|
161
|
-
NodeType["CAPTION"] = "CAPTION";
|
|
162
|
-
NodeType["LAYOUT"] = "LAYOUT";
|
|
163
|
-
NodeType["LAYOUT_CELL"] = "LAYOUT_CELL";
|
|
164
|
-
})(NodeType || (exports.NodeType = NodeType = {}));
|
|
165
|
-
var WidthType;
|
|
166
|
-
(function (WidthType) {
|
|
167
|
-
/** Width matches the content width */
|
|
168
|
-
WidthType["CONTENT"] = "CONTENT";
|
|
169
|
-
/** Small Width */
|
|
170
|
-
WidthType["SMALL"] = "SMALL";
|
|
171
|
-
/** Width will match the original asset width */
|
|
172
|
-
WidthType["ORIGINAL"] = "ORIGINAL";
|
|
173
|
-
/** coast-to-coast display */
|
|
174
|
-
WidthType["FULL_WIDTH"] = "FULL_WIDTH";
|
|
175
|
-
})(WidthType || (exports.WidthType = WidthType = {}));
|
|
176
|
-
var PluginContainerDataAlignment;
|
|
177
|
-
(function (PluginContainerDataAlignment) {
|
|
178
|
-
/** Center Alignment */
|
|
179
|
-
PluginContainerDataAlignment["CENTER"] = "CENTER";
|
|
180
|
-
/** Left Alignment */
|
|
181
|
-
PluginContainerDataAlignment["LEFT"] = "LEFT";
|
|
182
|
-
/** Right Alignment */
|
|
183
|
-
PluginContainerDataAlignment["RIGHT"] = "RIGHT";
|
|
184
|
-
})(PluginContainerDataAlignment || (exports.PluginContainerDataAlignment = PluginContainerDataAlignment = {}));
|
|
185
|
-
var ButtonDataType;
|
|
186
|
-
(function (ButtonDataType) {
|
|
187
|
-
/** Regular link button */
|
|
188
|
-
ButtonDataType["LINK"] = "LINK";
|
|
189
|
-
/** Triggers custom action that is defined in plugin configuration by the consumer */
|
|
190
|
-
ButtonDataType["ACTION"] = "ACTION";
|
|
191
|
-
})(ButtonDataType || (exports.ButtonDataType = ButtonDataType = {}));
|
|
192
|
-
var LinkTarget;
|
|
193
|
-
(function (LinkTarget) {
|
|
194
|
-
/** Opens the linked document in the same frame as it was clicked (this is default) */
|
|
195
|
-
LinkTarget["SELF"] = "SELF";
|
|
196
|
-
/** Opens the linked document in a new window or tab */
|
|
197
|
-
LinkTarget["BLANK"] = "BLANK";
|
|
198
|
-
/** Opens the linked document in the parent frame */
|
|
199
|
-
LinkTarget["PARENT"] = "PARENT";
|
|
200
|
-
/** Opens the linked document in the full body of the window */
|
|
201
|
-
LinkTarget["TOP"] = "TOP";
|
|
202
|
-
})(LinkTarget || (exports.LinkTarget = LinkTarget = {}));
|
|
203
|
-
var TextAlignment;
|
|
204
|
-
(function (TextAlignment) {
|
|
205
|
-
/** browser default, eqivalent to `initial` */
|
|
206
|
-
TextAlignment["AUTO"] = "AUTO";
|
|
207
|
-
/** Left align */
|
|
208
|
-
TextAlignment["LEFT"] = "LEFT";
|
|
209
|
-
/** Right align */
|
|
210
|
-
TextAlignment["RIGHT"] = "RIGHT";
|
|
211
|
-
/** Center align */
|
|
212
|
-
TextAlignment["CENTER"] = "CENTER";
|
|
213
|
-
/** Text is spaced to line up its left and right edges to the left and right edges of the line box, except for the last line */
|
|
214
|
-
TextAlignment["JUSTIFY"] = "JUSTIFY";
|
|
215
|
-
})(TextAlignment || (exports.TextAlignment = TextAlignment = {}));
|
|
216
|
-
var LineStyle;
|
|
217
|
-
(function (LineStyle) {
|
|
218
|
-
/** Single Line */
|
|
219
|
-
LineStyle["SINGLE"] = "SINGLE";
|
|
220
|
-
/** Double Line */
|
|
221
|
-
LineStyle["DOUBLE"] = "DOUBLE";
|
|
222
|
-
/** Dashed Line */
|
|
223
|
-
LineStyle["DASHED"] = "DASHED";
|
|
224
|
-
/** Dotted Line */
|
|
225
|
-
LineStyle["DOTTED"] = "DOTTED";
|
|
226
|
-
})(LineStyle || (exports.LineStyle = LineStyle = {}));
|
|
227
|
-
var Width;
|
|
228
|
-
(function (Width) {
|
|
229
|
-
/** Large line */
|
|
230
|
-
Width["LARGE"] = "LARGE";
|
|
231
|
-
/** Medium line */
|
|
232
|
-
Width["MEDIUM"] = "MEDIUM";
|
|
233
|
-
/** Small line */
|
|
234
|
-
Width["SMALL"] = "SMALL";
|
|
235
|
-
})(Width || (exports.Width = Width = {}));
|
|
236
|
-
var Alignment;
|
|
237
|
-
(function (Alignment) {
|
|
238
|
-
/** Center alignment */
|
|
239
|
-
Alignment["CENTER"] = "CENTER";
|
|
240
|
-
/** Left alignment */
|
|
241
|
-
Alignment["LEFT"] = "LEFT";
|
|
242
|
-
/** Right alignment */
|
|
243
|
-
Alignment["RIGHT"] = "RIGHT";
|
|
244
|
-
})(Alignment || (exports.Alignment = Alignment = {}));
|
|
245
|
-
var ViewMode;
|
|
246
|
-
(function (ViewMode) {
|
|
247
|
-
/** No PDF view */
|
|
248
|
-
ViewMode["NONE"] = "NONE";
|
|
249
|
-
/** Full PDF view */
|
|
250
|
-
ViewMode["FULL"] = "FULL";
|
|
251
|
-
/** Mini PDF view */
|
|
252
|
-
ViewMode["MINI"] = "MINI";
|
|
253
|
-
})(ViewMode || (exports.ViewMode = ViewMode = {}));
|
|
254
|
-
var LayoutType;
|
|
255
|
-
(function (LayoutType) {
|
|
256
|
-
/** Collage type */
|
|
257
|
-
LayoutType["COLLAGE"] = "COLLAGE";
|
|
258
|
-
/** Masonry type */
|
|
259
|
-
LayoutType["MASONRY"] = "MASONRY";
|
|
260
|
-
/** Grid type */
|
|
261
|
-
LayoutType["GRID"] = "GRID";
|
|
262
|
-
/** Thumbnail type */
|
|
263
|
-
LayoutType["THUMBNAIL"] = "THUMBNAIL";
|
|
264
|
-
/** Slider type */
|
|
265
|
-
LayoutType["SLIDER"] = "SLIDER";
|
|
266
|
-
/** Slideshow type */
|
|
267
|
-
LayoutType["SLIDESHOW"] = "SLIDESHOW";
|
|
268
|
-
/** Panorama type */
|
|
269
|
-
LayoutType["PANORAMA"] = "PANORAMA";
|
|
270
|
-
/** Column type */
|
|
271
|
-
LayoutType["COLUMN"] = "COLUMN";
|
|
272
|
-
/** Magic type */
|
|
273
|
-
LayoutType["MAGIC"] = "MAGIC";
|
|
274
|
-
/** Fullsize images type */
|
|
275
|
-
LayoutType["FULLSIZE"] = "FULLSIZE";
|
|
276
|
-
})(LayoutType || (exports.LayoutType = LayoutType = {}));
|
|
277
|
-
var Orientation;
|
|
278
|
-
(function (Orientation) {
|
|
279
|
-
/** Rows Orientation */
|
|
280
|
-
Orientation["ROWS"] = "ROWS";
|
|
281
|
-
/** Columns Orientation */
|
|
282
|
-
Orientation["COLUMNS"] = "COLUMNS";
|
|
283
|
-
})(Orientation || (exports.Orientation = Orientation = {}));
|
|
284
|
-
var Crop;
|
|
285
|
-
(function (Crop) {
|
|
286
|
-
/** Crop to fill */
|
|
287
|
-
Crop["FILL"] = "FILL";
|
|
288
|
-
/** Crop to fit */
|
|
289
|
-
Crop["FIT"] = "FIT";
|
|
290
|
-
})(Crop || (exports.Crop = Crop = {}));
|
|
291
|
-
var ThumbnailsAlignment;
|
|
292
|
-
(function (ThumbnailsAlignment) {
|
|
293
|
-
/** Top alignment */
|
|
294
|
-
ThumbnailsAlignment["TOP"] = "TOP";
|
|
295
|
-
/** Right alignment */
|
|
296
|
-
ThumbnailsAlignment["RIGHT"] = "RIGHT";
|
|
297
|
-
/** Bottom alignment */
|
|
298
|
-
ThumbnailsAlignment["BOTTOM"] = "BOTTOM";
|
|
299
|
-
/** Left alignment */
|
|
300
|
-
ThumbnailsAlignment["LEFT"] = "LEFT";
|
|
301
|
-
/** No thumbnail */
|
|
302
|
-
ThumbnailsAlignment["NONE"] = "NONE";
|
|
303
|
-
})(ThumbnailsAlignment || (exports.ThumbnailsAlignment = ThumbnailsAlignment = {}));
|
|
304
|
-
var GIFType;
|
|
305
|
-
(function (GIFType) {
|
|
306
|
-
GIFType["NORMAL"] = "NORMAL";
|
|
307
|
-
GIFType["STICKER"] = "STICKER";
|
|
308
|
-
})(GIFType || (exports.GIFType = GIFType = {}));
|
|
309
|
-
var Source;
|
|
310
|
-
(function (Source) {
|
|
311
|
-
Source["HTML"] = "HTML";
|
|
312
|
-
Source["ADSENSE"] = "ADSENSE";
|
|
313
|
-
})(Source || (exports.Source = Source = {}));
|
|
314
|
-
var Position;
|
|
315
|
-
(function (Position) {
|
|
316
|
-
/** Thumbnail positioned at the start (left in LTR layouts, right in RTL layouts) */
|
|
317
|
-
Position["START"] = "START";
|
|
318
|
-
/** Thumbnail positioned at the end (right in LTR layouts, left in RTL layouts) */
|
|
319
|
-
Position["END"] = "END";
|
|
320
|
-
/** Thumbnail positioned at the top */
|
|
321
|
-
Position["TOP"] = "TOP";
|
|
322
|
-
/** Thumbnail hidden and not displayed */
|
|
323
|
-
Position["HIDDEN"] = "HIDDEN";
|
|
324
|
-
})(Position || (exports.Position = Position = {}));
|
|
325
|
-
var MapType;
|
|
326
|
-
(function (MapType) {
|
|
327
|
-
/** Roadmap map type */
|
|
328
|
-
MapType["ROADMAP"] = "ROADMAP";
|
|
329
|
-
/** Satellite map type */
|
|
330
|
-
MapType["SATELITE"] = "SATELITE";
|
|
331
|
-
/** Hybrid map type */
|
|
332
|
-
MapType["HYBRID"] = "HYBRID";
|
|
333
|
-
/** Terrain map type */
|
|
334
|
-
MapType["TERRAIN"] = "TERRAIN";
|
|
335
|
-
})(MapType || (exports.MapType = MapType = {}));
|
|
336
|
-
var ViewRole;
|
|
337
|
-
(function (ViewRole) {
|
|
338
|
-
/** Only Poll creator can view the results */
|
|
339
|
-
ViewRole["CREATOR"] = "CREATOR";
|
|
340
|
-
/** Anyone who voted can see the results */
|
|
341
|
-
ViewRole["VOTERS"] = "VOTERS";
|
|
342
|
-
/** Anyone can see the results, even if one didn't vote */
|
|
343
|
-
ViewRole["EVERYONE"] = "EVERYONE";
|
|
344
|
-
})(ViewRole || (exports.ViewRole = ViewRole = {}));
|
|
345
|
-
var VoteRole;
|
|
346
|
-
(function (VoteRole) {
|
|
347
|
-
/** Logged in member */
|
|
348
|
-
VoteRole["SITE_MEMBERS"] = "SITE_MEMBERS";
|
|
349
|
-
/** Anyone */
|
|
350
|
-
VoteRole["ALL"] = "ALL";
|
|
351
|
-
})(VoteRole || (exports.VoteRole = VoteRole = {}));
|
|
352
|
-
var PollLayoutType;
|
|
353
|
-
(function (PollLayoutType) {
|
|
354
|
-
/** List */
|
|
355
|
-
PollLayoutType["LIST"] = "LIST";
|
|
356
|
-
/** Grid */
|
|
357
|
-
PollLayoutType["GRID"] = "GRID";
|
|
358
|
-
})(PollLayoutType || (exports.PollLayoutType = PollLayoutType = {}));
|
|
359
|
-
var PollLayoutDirection;
|
|
360
|
-
(function (PollLayoutDirection) {
|
|
361
|
-
/** Left-to-right */
|
|
362
|
-
PollLayoutDirection["LTR"] = "LTR";
|
|
363
|
-
/** Right-to-left */
|
|
364
|
-
PollLayoutDirection["RTL"] = "RTL";
|
|
365
|
-
})(PollLayoutDirection || (exports.PollLayoutDirection = PollLayoutDirection = {}));
|
|
366
|
-
var BackgroundType;
|
|
367
|
-
(function (BackgroundType) {
|
|
368
|
-
/** Color background type */
|
|
369
|
-
BackgroundType["COLOR"] = "COLOR";
|
|
370
|
-
/** Image background type */
|
|
371
|
-
BackgroundType["IMAGE"] = "IMAGE";
|
|
372
|
-
/** Gradiant background type */
|
|
373
|
-
BackgroundType["GRADIENT"] = "GRADIENT";
|
|
374
|
-
})(BackgroundType || (exports.BackgroundType = BackgroundType = {}));
|
|
375
|
-
var DecorationType;
|
|
376
|
-
(function (DecorationType) {
|
|
377
|
-
DecorationType["BOLD"] = "BOLD";
|
|
378
|
-
DecorationType["ITALIC"] = "ITALIC";
|
|
379
|
-
DecorationType["UNDERLINE"] = "UNDERLINE";
|
|
380
|
-
DecorationType["SPOILER"] = "SPOILER";
|
|
381
|
-
DecorationType["ANCHOR"] = "ANCHOR";
|
|
382
|
-
DecorationType["MENTION"] = "MENTION";
|
|
383
|
-
DecorationType["LINK"] = "LINK";
|
|
384
|
-
DecorationType["COLOR"] = "COLOR";
|
|
385
|
-
DecorationType["FONT_SIZE"] = "FONT_SIZE";
|
|
386
|
-
DecorationType["EXTERNAL"] = "EXTERNAL";
|
|
387
|
-
})(DecorationType || (exports.DecorationType = DecorationType = {}));
|
|
388
|
-
var FontType;
|
|
389
|
-
(function (FontType) {
|
|
390
|
-
FontType["PX"] = "PX";
|
|
391
|
-
FontType["EM"] = "EM";
|
|
392
|
-
})(FontType || (exports.FontType = FontType = {}));
|
|
393
|
-
var AppType;
|
|
394
|
-
(function (AppType) {
|
|
395
|
-
AppType["PRODUCT"] = "PRODUCT";
|
|
396
|
-
AppType["EVENT"] = "EVENT";
|
|
397
|
-
AppType["BOOKING"] = "BOOKING";
|
|
398
|
-
})(AppType || (exports.AppType = AppType = {}));
|
|
399
|
-
var InitialExpandedItems;
|
|
400
|
-
(function (InitialExpandedItems) {
|
|
401
|
-
/** First item will be expended initally */
|
|
402
|
-
InitialExpandedItems["FIRST"] = "FIRST";
|
|
403
|
-
/** All items will expended initally */
|
|
404
|
-
InitialExpandedItems["ALL"] = "ALL";
|
|
405
|
-
/** All items collapsed initally */
|
|
406
|
-
InitialExpandedItems["NONE"] = "NONE";
|
|
407
|
-
})(InitialExpandedItems || (exports.InitialExpandedItems = InitialExpandedItems = {}));
|
|
408
|
-
var Direction;
|
|
409
|
-
(function (Direction) {
|
|
410
|
-
/** Left-to-right */
|
|
411
|
-
Direction["LTR"] = "LTR";
|
|
412
|
-
/** Right-to-left */
|
|
413
|
-
Direction["RTL"] = "RTL";
|
|
414
|
-
})(Direction || (exports.Direction = Direction = {}));
|
|
415
|
-
var VerticalAlignment;
|
|
416
|
-
(function (VerticalAlignment) {
|
|
417
|
-
/** Top alignment */
|
|
418
|
-
VerticalAlignment["TOP"] = "TOP";
|
|
419
|
-
/** Middle alignment */
|
|
420
|
-
VerticalAlignment["MIDDLE"] = "MIDDLE";
|
|
421
|
-
/** Bottom alignment */
|
|
422
|
-
VerticalAlignment["BOTTOM"] = "BOTTOM";
|
|
423
|
-
})(VerticalAlignment || (exports.VerticalAlignment = VerticalAlignment = {}));
|
|
424
|
-
/**
|
|
425
|
-
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
426
|
-
* `Value` type union.
|
|
427
|
-
*
|
|
428
|
-
* The JSON representation for `NullValue` is JSON `null`.
|
|
429
|
-
*/
|
|
430
|
-
var NullValue;
|
|
431
|
-
(function (NullValue) {
|
|
432
|
-
/** Null value. */
|
|
433
|
-
NullValue["NULL_VALUE"] = "NULL_VALUE";
|
|
434
|
-
})(NullValue || (exports.NullValue = NullValue = {}));
|
|
435
|
-
var NumberOfColumns;
|
|
436
|
-
(function (NumberOfColumns) {
|
|
437
|
-
/** Undefined number of columns. */
|
|
438
|
-
NumberOfColumns["UNKNOWN"] = "UNKNOWN";
|
|
439
|
-
/** Zero columns. */
|
|
440
|
-
NumberOfColumns["ZERO"] = "ZERO";
|
|
441
|
-
/** One column. */
|
|
442
|
-
NumberOfColumns["ONE"] = "ONE";
|
|
443
|
-
/** Two columns. */
|
|
444
|
-
NumberOfColumns["TWO"] = "TWO";
|
|
445
|
-
/** Three columns. */
|
|
446
|
-
NumberOfColumns["THREE"] = "THREE";
|
|
447
|
-
})(NumberOfColumns || (exports.NumberOfColumns = NumberOfColumns = {}));
|
|
448
|
-
var FirstDayOfWeek;
|
|
449
|
-
(function (FirstDayOfWeek) {
|
|
450
|
-
/** First day of the week is Monday. */
|
|
451
|
-
FirstDayOfWeek["MONDAY"] = "MONDAY";
|
|
452
|
-
/** First day of the week is Sunday. */
|
|
453
|
-
FirstDayOfWeek["SUNDAY"] = "SUNDAY";
|
|
454
|
-
})(FirstDayOfWeek || (exports.FirstDayOfWeek = FirstDayOfWeek = {}));
|
|
455
|
-
var InputFieldNumberComponentType;
|
|
456
|
-
(function (InputFieldNumberComponentType) {
|
|
457
|
-
InputFieldNumberComponentType["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
|
|
458
|
-
InputFieldNumberComponentType["NUMBER_INPUT"] = "NUMBER_INPUT";
|
|
459
|
-
InputFieldNumberComponentType["RATING_INPUT"] = "RATING_INPUT";
|
|
460
|
-
})(InputFieldNumberComponentType || (exports.InputFieldNumberComponentType = InputFieldNumberComponentType = {}));
|
|
461
|
-
var InputFieldBooleanComponentType;
|
|
462
|
-
(function (InputFieldBooleanComponentType) {
|
|
463
|
-
InputFieldBooleanComponentType["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
|
|
464
|
-
InputFieldBooleanComponentType["CHECKBOX"] = "CHECKBOX";
|
|
465
|
-
})(InputFieldBooleanComponentType || (exports.InputFieldBooleanComponentType = InputFieldBooleanComponentType = {}));
|
|
466
|
-
var ArrayItemsItemType;
|
|
467
|
-
(function (ArrayItemsItemType) {
|
|
468
|
-
ArrayItemsItemType["UNKNOWN_ITEM_TYPE"] = "UNKNOWN_ITEM_TYPE";
|
|
469
|
-
ArrayItemsItemType["STRING"] = "STRING";
|
|
470
|
-
ArrayItemsItemType["NUMBER"] = "NUMBER";
|
|
471
|
-
ArrayItemsItemType["BOOLEAN"] = "BOOLEAN";
|
|
472
|
-
ArrayItemsItemType["INTEGER"] = "INTEGER";
|
|
473
|
-
ArrayItemsItemType["OBJECT"] = "OBJECT";
|
|
474
|
-
})(ArrayItemsItemType || (exports.ArrayItemsItemType = ArrayItemsItemType = {}));
|
|
475
|
-
var PropertiesTypePropertiesTypeEnum;
|
|
476
|
-
(function (PropertiesTypePropertiesTypeEnum) {
|
|
477
|
-
PropertiesTypePropertiesTypeEnum["UNKNOWN_PROPERTIES_TYPE"] = "UNKNOWN_PROPERTIES_TYPE";
|
|
478
|
-
PropertiesTypePropertiesTypeEnum["STRING"] = "STRING";
|
|
479
|
-
PropertiesTypePropertiesTypeEnum["NUMBER"] = "NUMBER";
|
|
480
|
-
PropertiesTypePropertiesTypeEnum["BOOLEAN"] = "BOOLEAN";
|
|
481
|
-
PropertiesTypePropertiesTypeEnum["INTEGER"] = "INTEGER";
|
|
482
|
-
PropertiesTypePropertiesTypeEnum["ARRAY"] = "ARRAY";
|
|
483
|
-
})(PropertiesTypePropertiesTypeEnum || (exports.PropertiesTypePropertiesTypeEnum = PropertiesTypePropertiesTypeEnum = {}));
|
|
484
|
-
var ArrayComponentType;
|
|
485
|
-
(function (ArrayComponentType) {
|
|
486
|
-
ArrayComponentType["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
|
|
487
|
-
ArrayComponentType["CHECKBOX_GROUP"] = "CHECKBOX_GROUP";
|
|
488
|
-
ArrayComponentType["TAGS"] = "TAGS";
|
|
489
|
-
})(ArrayComponentType || (exports.ArrayComponentType = ArrayComponentType = {}));
|
|
490
|
-
var InputFieldWixFileComponentType;
|
|
491
|
-
(function (InputFieldWixFileComponentType) {
|
|
492
|
-
InputFieldWixFileComponentType["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
|
|
493
|
-
InputFieldWixFileComponentType["FILE_UPLOAD"] = "FILE_UPLOAD";
|
|
494
|
-
InputFieldWixFileComponentType["SIGNATURE"] = "SIGNATURE";
|
|
495
|
-
})(InputFieldWixFileComponentType || (exports.InputFieldWixFileComponentType = InputFieldWixFileComponentType = {}));
|
|
496
|
-
var UploadFileFormat;
|
|
497
|
-
(function (UploadFileFormat) {
|
|
498
|
-
/** Undefined upload file format. */
|
|
499
|
-
UploadFileFormat["UNDEFINED"] = "UNDEFINED";
|
|
500
|
-
/** Video files. */
|
|
501
|
-
UploadFileFormat["VIDEO"] = "VIDEO";
|
|
502
|
-
/** Image files. */
|
|
503
|
-
UploadFileFormat["IMAGE"] = "IMAGE";
|
|
504
|
-
/** Audio files. */
|
|
505
|
-
UploadFileFormat["AUDIO"] = "AUDIO";
|
|
506
|
-
/** Document files. */
|
|
507
|
-
UploadFileFormat["DOCUMENT"] = "DOCUMENT";
|
|
508
|
-
/** Archive files. */
|
|
509
|
-
UploadFileFormat["ARCHIVE"] = "ARCHIVE";
|
|
510
|
-
})(UploadFileFormat || (exports.UploadFileFormat = UploadFileFormat = {}));
|
|
511
|
-
var InputFieldPaymentComponentType;
|
|
512
|
-
(function (InputFieldPaymentComponentType) {
|
|
513
|
-
InputFieldPaymentComponentType["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
|
|
514
|
-
InputFieldPaymentComponentType["CHECKBOX_GROUP"] = "CHECKBOX_GROUP";
|
|
515
|
-
InputFieldPaymentComponentType["DONATION_INPUT"] = "DONATION_INPUT";
|
|
516
|
-
InputFieldPaymentComponentType["PAYMENT_INPUT"] = "PAYMENT_INPUT";
|
|
517
|
-
InputFieldPaymentComponentType["FIXED_PAYMENT"] = "FIXED_PAYMENT";
|
|
518
|
-
})(InputFieldPaymentComponentType || (exports.InputFieldPaymentComponentType = InputFieldPaymentComponentType = {}));
|
|
519
|
-
var ImageFit;
|
|
520
|
-
(function (ImageFit) {
|
|
521
|
-
ImageFit["UNKNOWN_IMAGE_FIT"] = "UNKNOWN_IMAGE_FIT";
|
|
522
|
-
/** Image is scaled to maintain its aspect ratio while filling the element's entire content box. Portions of the image may be clipped if the aspect ratios do not match. */
|
|
523
|
-
ImageFit["COVER"] = "COVER";
|
|
524
|
-
/** Image is resized to fill the element's content box. Aspect ratio may not be preserved. */
|
|
525
|
-
ImageFit["CONTAIN"] = "CONTAIN";
|
|
526
|
-
})(ImageFit || (exports.ImageFit = ImageFit = {}));
|
|
527
|
-
var SchedulingComponentType;
|
|
528
|
-
(function (SchedulingComponentType) {
|
|
529
|
-
SchedulingComponentType["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
|
|
530
|
-
SchedulingComponentType["APPOINTMENT"] = "APPOINTMENT";
|
|
531
|
-
})(SchedulingComponentType || (exports.SchedulingComponentType = SchedulingComponentType = {}));
|
|
532
|
-
var Format;
|
|
533
|
-
(function (Format) {
|
|
534
|
-
Format["UNKNOWN_FORMAT_TYPE"] = "UNKNOWN_FORMAT_TYPE";
|
|
535
|
-
Format["IN_PERSON"] = "IN_PERSON";
|
|
536
|
-
Format["VIDEO_CONFERENCE"] = "VIDEO_CONFERENCE";
|
|
537
|
-
Format["PHONE"] = "PHONE";
|
|
538
|
-
})(Format || (exports.Format = Format = {}));
|
|
539
|
-
var InputFieldMultilineAddressComponentType;
|
|
540
|
-
(function (InputFieldMultilineAddressComponentType) {
|
|
541
|
-
InputFieldMultilineAddressComponentType["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
|
|
542
|
-
InputFieldMultilineAddressComponentType["MULTILINE_ADDRESS"] = "MULTILINE_ADDRESS";
|
|
543
|
-
})(InputFieldMultilineAddressComponentType || (exports.InputFieldMultilineAddressComponentType = InputFieldMultilineAddressComponentType = {}));
|
|
544
|
-
var Type;
|
|
545
|
-
(function (Type) {
|
|
546
|
-
/** Unknown default country config type. */
|
|
547
|
-
Type["UNKNOWN_DEFAULT_COUNTRY"] = "UNKNOWN_DEFAULT_COUNTRY";
|
|
548
|
-
/** Country is determined by customer's IP address. */
|
|
549
|
-
Type["BY_IP"] = "BY_IP";
|
|
550
|
-
/** Pre-selected default country. */
|
|
551
|
-
Type["COUNTRY"] = "COUNTRY";
|
|
552
|
-
})(Type || (exports.Type = Type = {}));
|
|
553
|
-
var InputFieldInputType;
|
|
554
|
-
(function (InputFieldInputType) {
|
|
555
|
-
InputFieldInputType["UNKNOWN_INPUT_TYPE"] = "UNKNOWN_INPUT_TYPE";
|
|
556
|
-
InputFieldInputType["STRING"] = "STRING";
|
|
557
|
-
InputFieldInputType["NUMBER"] = "NUMBER";
|
|
558
|
-
InputFieldInputType["BOOLEAN"] = "BOOLEAN";
|
|
559
|
-
InputFieldInputType["ARRAY"] = "ARRAY";
|
|
560
|
-
InputFieldInputType["OBJECT"] = "OBJECT";
|
|
561
|
-
InputFieldInputType["WIX_FILE"] = "WIX_FILE";
|
|
562
|
-
InputFieldInputType["PAYMENT"] = "PAYMENT";
|
|
563
|
-
InputFieldInputType["MULTILINE_ADDRESS"] = "MULTILINE_ADDRESS";
|
|
564
|
-
InputFieldInputType["SCHEDULING"] = "SCHEDULING";
|
|
565
|
-
})(InputFieldInputType || (exports.InputFieldInputType = InputFieldInputType = {}));
|
|
566
|
-
var FormFieldContactInfoEmailInfoTag;
|
|
567
|
-
(function (FormFieldContactInfoEmailInfoTag) {
|
|
568
|
-
FormFieldContactInfoEmailInfoTag["UNTAGGED"] = "UNTAGGED";
|
|
569
|
-
FormFieldContactInfoEmailInfoTag["MAIN"] = "MAIN";
|
|
570
|
-
})(FormFieldContactInfoEmailInfoTag || (exports.FormFieldContactInfoEmailInfoTag = FormFieldContactInfoEmailInfoTag = {}));
|
|
571
|
-
var FormFieldContactInfoPhoneInfoTag;
|
|
572
|
-
(function (FormFieldContactInfoPhoneInfoTag) {
|
|
573
|
-
FormFieldContactInfoPhoneInfoTag["UNTAGGED"] = "UNTAGGED";
|
|
574
|
-
FormFieldContactInfoPhoneInfoTag["MAIN"] = "MAIN";
|
|
575
|
-
})(FormFieldContactInfoPhoneInfoTag || (exports.FormFieldContactInfoPhoneInfoTag = FormFieldContactInfoPhoneInfoTag = {}));
|
|
576
|
-
var AddressInfoTag;
|
|
577
|
-
(function (AddressInfoTag) {
|
|
578
|
-
AddressInfoTag["UNTAGGED"] = "UNTAGGED";
|
|
579
|
-
AddressInfoTag["HOME"] = "HOME";
|
|
580
|
-
})(AddressInfoTag || (exports.AddressInfoTag = AddressInfoTag = {}));
|
|
581
|
-
var SubscriptionInfoOptInLevel;
|
|
582
|
-
(function (SubscriptionInfoOptInLevel) {
|
|
583
|
-
SubscriptionInfoOptInLevel["UNKNOWN"] = "UNKNOWN";
|
|
584
|
-
SubscriptionInfoOptInLevel["SINGLE_CONFIRMATION"] = "SINGLE_CONFIRMATION";
|
|
585
|
-
SubscriptionInfoOptInLevel["DOUBLE_CONFIRMATION"] = "DOUBLE_CONFIRMATION";
|
|
586
|
-
})(SubscriptionInfoOptInLevel || (exports.SubscriptionInfoOptInLevel = SubscriptionInfoOptInLevel = {}));
|
|
587
|
-
var FormFieldContactInfoContactField;
|
|
588
|
-
(function (FormFieldContactInfoContactField) {
|
|
589
|
-
FormFieldContactInfoContactField["UNDEFINED"] = "UNDEFINED";
|
|
590
|
-
FormFieldContactInfoContactField["FIRST_NAME"] = "FIRST_NAME";
|
|
591
|
-
FormFieldContactInfoContactField["LAST_NAME"] = "LAST_NAME";
|
|
592
|
-
FormFieldContactInfoContactField["COMPANY"] = "COMPANY";
|
|
593
|
-
FormFieldContactInfoContactField["POSITION"] = "POSITION";
|
|
594
|
-
FormFieldContactInfoContactField["EMAIL"] = "EMAIL";
|
|
595
|
-
FormFieldContactInfoContactField["PHONE"] = "PHONE";
|
|
596
|
-
FormFieldContactInfoContactField["ADDRESS"] = "ADDRESS";
|
|
597
|
-
FormFieldContactInfoContactField["BIRTHDATE"] = "BIRTHDATE";
|
|
598
|
-
FormFieldContactInfoContactField["CUSTOM_FIELD"] = "CUSTOM_FIELD";
|
|
599
|
-
FormFieldContactInfoContactField["SUBSCRIPTION"] = "SUBSCRIPTION";
|
|
600
|
-
FormFieldContactInfoContactField["VAT_ID"] = "VAT_ID";
|
|
601
|
-
})(FormFieldContactInfoContactField || (exports.FormFieldContactInfoContactField = FormFieldContactInfoContactField = {}));
|
|
602
|
-
var FormFieldV2FieldType;
|
|
603
|
-
(function (FormFieldV2FieldType) {
|
|
604
|
-
FormFieldV2FieldType["UNKNOWN_FIELD_TYPE"] = "UNKNOWN_FIELD_TYPE";
|
|
605
|
-
FormFieldV2FieldType["INPUT"] = "INPUT";
|
|
606
|
-
FormFieldV2FieldType["DISPLAY"] = "DISPLAY";
|
|
607
|
-
})(FormFieldV2FieldType || (exports.FormFieldV2FieldType = FormFieldV2FieldType = {}));
|
|
608
|
-
var DisplayFieldType;
|
|
609
|
-
(function (DisplayFieldType) {
|
|
610
|
-
DisplayFieldType["UNKNOWN_FIELD_TYPE"] = "UNKNOWN_FIELD_TYPE";
|
|
611
|
-
DisplayFieldType["RICH_CONTENT"] = "RICH_CONTENT";
|
|
612
|
-
DisplayFieldType["PAGE_NAVIGATION"] = "PAGE_NAVIGATION";
|
|
613
|
-
})(DisplayFieldType || (exports.DisplayFieldType = DisplayFieldType = {}));
|
|
614
|
-
var FieldType;
|
|
615
|
-
(function (FieldType) {
|
|
616
|
-
FieldType["UNKNOWN_FIELD_TYPE"] = "UNKNOWN_FIELD_TYPE";
|
|
617
|
-
FieldType["INPUT"] = "INPUT";
|
|
618
|
-
FieldType["DISPLAY"] = "DISPLAY";
|
|
619
|
-
})(FieldType || (exports.FieldType = FieldType = {}));
|
|
620
|
-
var FormatEnumFormat;
|
|
621
|
-
(function (FormatEnumFormat) {
|
|
622
|
-
FormatEnumFormat["UNKNOWN_FORMAT"] = "UNKNOWN_FORMAT";
|
|
623
|
-
FormatEnumFormat["DATE"] = "DATE";
|
|
624
|
-
FormatEnumFormat["TIME"] = "TIME";
|
|
625
|
-
FormatEnumFormat["DATE_TIME"] = "DATE_TIME";
|
|
626
|
-
FormatEnumFormat["EMAIL"] = "EMAIL";
|
|
627
|
-
FormatEnumFormat["URL"] = "URL";
|
|
628
|
-
FormatEnumFormat["UUID"] = "UUID";
|
|
629
|
-
FormatEnumFormat["PHONE"] = "PHONE";
|
|
630
|
-
FormatEnumFormat["URI"] = "URI";
|
|
631
|
-
FormatEnumFormat["HOSTNAME"] = "HOSTNAME";
|
|
632
|
-
FormatEnumFormat["COLOR_HEX"] = "COLOR_HEX";
|
|
633
|
-
FormatEnumFormat["CURRENCY"] = "CURRENCY";
|
|
634
|
-
FormatEnumFormat["LANGUAGE"] = "LANGUAGE";
|
|
635
|
-
FormatEnumFormat["DATE_OPTIONAL_TIME"] = "DATE_OPTIONAL_TIME";
|
|
636
|
-
})(FormatEnumFormat || (exports.FormatEnumFormat = FormatEnumFormat = {}));
|
|
637
|
-
var StringComponentType;
|
|
638
|
-
(function (StringComponentType) {
|
|
639
|
-
StringComponentType["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
|
|
640
|
-
StringComponentType["TEXT_INPUT"] = "TEXT_INPUT";
|
|
641
|
-
StringComponentType["RADIO_GROUP"] = "RADIO_GROUP";
|
|
642
|
-
StringComponentType["DROPDOWN"] = "DROPDOWN";
|
|
643
|
-
StringComponentType["DATE_TIME"] = "DATE_TIME";
|
|
644
|
-
StringComponentType["PHONE_INPUT"] = "PHONE_INPUT";
|
|
645
|
-
StringComponentType["DATE_INPUT"] = "DATE_INPUT";
|
|
646
|
-
StringComponentType["TIME_INPUT"] = "TIME_INPUT";
|
|
647
|
-
StringComponentType["DATE_PICKER"] = "DATE_PICKER";
|
|
648
|
-
})(StringComponentType || (exports.StringComponentType = StringComponentType = {}));
|
|
649
|
-
var NumberComponentType;
|
|
650
|
-
(function (NumberComponentType) {
|
|
651
|
-
NumberComponentType["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
|
|
652
|
-
NumberComponentType["NUMBER_INPUT"] = "NUMBER_INPUT";
|
|
653
|
-
NumberComponentType["RATING_INPUT"] = "RATING_INPUT";
|
|
654
|
-
})(NumberComponentType || (exports.NumberComponentType = NumberComponentType = {}));
|
|
655
|
-
var BooleanComponentType;
|
|
656
|
-
(function (BooleanComponentType) {
|
|
657
|
-
BooleanComponentType["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
|
|
658
|
-
BooleanComponentType["CHECKBOX"] = "CHECKBOX";
|
|
659
|
-
})(BooleanComponentType || (exports.BooleanComponentType = BooleanComponentType = {}));
|
|
660
|
-
var ItemType;
|
|
661
|
-
(function (ItemType) {
|
|
662
|
-
ItemType["UNKNOWN_ITEM_TYPE"] = "UNKNOWN_ITEM_TYPE";
|
|
663
|
-
ItemType["STRING"] = "STRING";
|
|
664
|
-
ItemType["NUMBER"] = "NUMBER";
|
|
665
|
-
ItemType["BOOLEAN"] = "BOOLEAN";
|
|
666
|
-
ItemType["INTEGER"] = "INTEGER";
|
|
667
|
-
ItemType["OBJECT"] = "OBJECT";
|
|
668
|
-
})(ItemType || (exports.ItemType = ItemType = {}));
|
|
669
|
-
var PropertiesTypeEnum;
|
|
670
|
-
(function (PropertiesTypeEnum) {
|
|
671
|
-
PropertiesTypeEnum["UNKNOWN_PROPERTY_TYPE"] = "UNKNOWN_PROPERTY_TYPE";
|
|
672
|
-
PropertiesTypeEnum["STRING"] = "STRING";
|
|
673
|
-
PropertiesTypeEnum["NUMBER"] = "NUMBER";
|
|
674
|
-
PropertiesTypeEnum["BOOLEAN"] = "BOOLEAN";
|
|
675
|
-
PropertiesTypeEnum["INTEGER"] = "INTEGER";
|
|
676
|
-
PropertiesTypeEnum["ARRAY"] = "ARRAY";
|
|
677
|
-
})(PropertiesTypeEnum || (exports.PropertiesTypeEnum = PropertiesTypeEnum = {}));
|
|
678
|
-
var ComponentType;
|
|
679
|
-
(function (ComponentType) {
|
|
680
|
-
ComponentType["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
|
|
681
|
-
ComponentType["CHECKBOX_GROUP"] = "CHECKBOX_GROUP";
|
|
682
|
-
ComponentType["TAGS"] = "TAGS";
|
|
683
|
-
})(ComponentType || (exports.ComponentType = ComponentType = {}));
|
|
684
|
-
var WixFileComponentType;
|
|
685
|
-
(function (WixFileComponentType) {
|
|
686
|
-
WixFileComponentType["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
|
|
687
|
-
WixFileComponentType["FILE_UPLOAD"] = "FILE_UPLOAD";
|
|
688
|
-
WixFileComponentType["SIGNATURE"] = "SIGNATURE";
|
|
689
|
-
})(WixFileComponentType || (exports.WixFileComponentType = WixFileComponentType = {}));
|
|
690
|
-
var PaymentComponentType;
|
|
691
|
-
(function (PaymentComponentType) {
|
|
692
|
-
PaymentComponentType["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
|
|
693
|
-
PaymentComponentType["CHECKBOX_GROUP"] = "CHECKBOX_GROUP";
|
|
694
|
-
PaymentComponentType["DONATION_INPUT"] = "DONATION_INPUT";
|
|
695
|
-
PaymentComponentType["PAYMENT_INPUT"] = "PAYMENT_INPUT";
|
|
696
|
-
PaymentComponentType["FIXED_PAYMENT"] = "FIXED_PAYMENT";
|
|
697
|
-
})(PaymentComponentType || (exports.PaymentComponentType = PaymentComponentType = {}));
|
|
698
|
-
var MultilineAddressComponentType;
|
|
699
|
-
(function (MultilineAddressComponentType) {
|
|
700
|
-
MultilineAddressComponentType["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
|
|
701
|
-
MultilineAddressComponentType["MULTILINE_ADDRESS"] = "MULTILINE_ADDRESS";
|
|
702
|
-
})(MultilineAddressComponentType || (exports.MultilineAddressComponentType = MultilineAddressComponentType = {}));
|
|
703
|
-
var InputType;
|
|
704
|
-
(function (InputType) {
|
|
705
|
-
InputType["UNKNOWN_INPUT_TYPE"] = "UNKNOWN_INPUT_TYPE";
|
|
706
|
-
InputType["STRING"] = "STRING";
|
|
707
|
-
InputType["NUMBER"] = "NUMBER";
|
|
708
|
-
InputType["BOOLEAN"] = "BOOLEAN";
|
|
709
|
-
InputType["ARRAY"] = "ARRAY";
|
|
710
|
-
InputType["OBJECT"] = "OBJECT";
|
|
711
|
-
InputType["WIX_FILE"] = "WIX_FILE";
|
|
712
|
-
InputType["PAYMENT"] = "PAYMENT";
|
|
713
|
-
InputType["MULTILINE_ADDRESS"] = "MULTILINE_ADDRESS";
|
|
714
|
-
})(InputType || (exports.InputType = InputType = {}));
|
|
715
|
-
var EmailInfoTag;
|
|
716
|
-
(function (EmailInfoTag) {
|
|
717
|
-
EmailInfoTag["UNTAGGED"] = "UNTAGGED";
|
|
718
|
-
EmailInfoTag["MAIN"] = "MAIN";
|
|
719
|
-
})(EmailInfoTag || (exports.EmailInfoTag = EmailInfoTag = {}));
|
|
720
|
-
var PhoneInfoTag;
|
|
721
|
-
(function (PhoneInfoTag) {
|
|
722
|
-
PhoneInfoTag["UNTAGGED"] = "UNTAGGED";
|
|
723
|
-
PhoneInfoTag["MAIN"] = "MAIN";
|
|
724
|
-
})(PhoneInfoTag || (exports.PhoneInfoTag = PhoneInfoTag = {}));
|
|
725
|
-
var Tag;
|
|
726
|
-
(function (Tag) {
|
|
727
|
-
Tag["UNTAGGED"] = "UNTAGGED";
|
|
728
|
-
Tag["HOME"] = "HOME";
|
|
729
|
-
})(Tag || (exports.Tag = Tag = {}));
|
|
730
|
-
var ConfirmationLevel;
|
|
731
|
-
(function (ConfirmationLevel) {
|
|
732
|
-
ConfirmationLevel["UNKNOWN_CONFIRMATION_LEVEL"] = "UNKNOWN_CONFIRMATION_LEVEL";
|
|
733
|
-
ConfirmationLevel["SINGLE_CONFIRMATION"] = "SINGLE_CONFIRMATION";
|
|
734
|
-
ConfirmationLevel["DOUBLE_CONFIRMATION"] = "DOUBLE_CONFIRMATION";
|
|
735
|
-
})(ConfirmationLevel || (exports.ConfirmationLevel = ConfirmationLevel = {}));
|
|
736
|
-
var ContactField;
|
|
737
|
-
(function (ContactField) {
|
|
738
|
-
ContactField["UNKNOWN_CONTACT_FIELD"] = "UNKNOWN_CONTACT_FIELD";
|
|
739
|
-
ContactField["FIRST_NAME"] = "FIRST_NAME";
|
|
740
|
-
ContactField["LAST_NAME"] = "LAST_NAME";
|
|
741
|
-
ContactField["COMPANY"] = "COMPANY";
|
|
742
|
-
ContactField["POSITION"] = "POSITION";
|
|
743
|
-
ContactField["EMAIL"] = "EMAIL";
|
|
744
|
-
ContactField["PHONE"] = "PHONE";
|
|
745
|
-
ContactField["ADDRESS"] = "ADDRESS";
|
|
746
|
-
ContactField["BIRTHDATE"] = "BIRTHDATE";
|
|
747
|
-
ContactField["CUSTOM_FIELD"] = "CUSTOM_FIELD";
|
|
748
|
-
ContactField["SUBSCRIPTION"] = "SUBSCRIPTION";
|
|
749
|
-
ContactField["VAT_ID"] = "VAT_ID";
|
|
750
|
-
})(ContactField || (exports.ContactField = ContactField = {}));
|
|
751
|
-
var DisplayFieldDisplayFieldType;
|
|
752
|
-
(function (DisplayFieldDisplayFieldType) {
|
|
753
|
-
DisplayFieldDisplayFieldType["UNKNOWN_FIELD_TYPE"] = "UNKNOWN_FIELD_TYPE";
|
|
754
|
-
DisplayFieldDisplayFieldType["RICH_CONTENT"] = "RICH_CONTENT";
|
|
755
|
-
DisplayFieldDisplayFieldType["PAGE_NAVIGATION"] = "PAGE_NAVIGATION";
|
|
756
|
-
DisplayFieldDisplayFieldType["LOGIN_BAR"] = "LOGIN_BAR";
|
|
757
|
-
})(DisplayFieldDisplayFieldType || (exports.DisplayFieldDisplayFieldType = DisplayFieldDisplayFieldType = {}));
|
|
758
|
-
var OverrideEntityType;
|
|
759
|
-
(function (OverrideEntityType) {
|
|
760
|
-
OverrideEntityType["UNKNOWN"] = "UNKNOWN";
|
|
761
|
-
OverrideEntityType["FIELD"] = "FIELD";
|
|
762
|
-
})(OverrideEntityType || (exports.OverrideEntityType = OverrideEntityType = {}));
|
|
763
|
-
var Kind;
|
|
764
|
-
(function (Kind) {
|
|
765
|
-
/** Return forms specific to tenant, excluding template based forms. */
|
|
766
|
-
Kind["REGULAR"] = "REGULAR";
|
|
767
|
-
/** Return forms based on common templates, with applied user overrides if they exist. */
|
|
768
|
-
Kind["EXTENSION"] = "EXTENSION";
|
|
769
|
-
})(Kind || (exports.Kind = Kind = {}));
|
|
770
|
-
var SpamFilterProtectionLevel;
|
|
771
|
-
(function (SpamFilterProtectionLevel) {
|
|
772
|
-
/** Unknown spam filter protection level. */
|
|
773
|
-
SpamFilterProtectionLevel["UNKNOWN"] = "UNKNOWN";
|
|
774
|
-
/** Spam filter is not used. Form is open for spam submissions. */
|
|
775
|
-
SpamFilterProtectionLevel["NONE"] = "NONE";
|
|
776
|
-
/** Spam filter operates in basic mode. Form is open to high risk of spam submissions. */
|
|
777
|
-
SpamFilterProtectionLevel["BASIC"] = "BASIC";
|
|
778
|
-
/** Spam filter operates in advanced mode. Form is open to low risk of spam submissions. */
|
|
779
|
-
SpamFilterProtectionLevel["ADVANCED"] = "ADVANCED";
|
|
780
|
-
})(SpamFilterProtectionLevel || (exports.SpamFilterProtectionLevel = SpamFilterProtectionLevel = {}));
|
|
781
|
-
var RequiredIndicator;
|
|
782
|
-
(function (RequiredIndicator) {
|
|
783
|
-
/** Unknown required indicator. */
|
|
784
|
-
RequiredIndicator["UNKNOWN_INDICATOR"] = "UNKNOWN_INDICATOR";
|
|
785
|
-
/** Asterisk (*). */
|
|
786
|
-
RequiredIndicator["ASTERISK"] = "ASTERISK";
|
|
787
|
-
/** Text (default: "Required"). */
|
|
788
|
-
RequiredIndicator["TEXT"] = "TEXT";
|
|
789
|
-
/** None. */
|
|
790
|
-
RequiredIndicator["NONE"] = "NONE";
|
|
791
|
-
})(RequiredIndicator || (exports.RequiredIndicator = RequiredIndicator = {}));
|
|
792
|
-
var RequiredIndicatorPlacement;
|
|
793
|
-
(function (RequiredIndicatorPlacement) {
|
|
794
|
-
/** Unknown required indicator placement. */
|
|
795
|
-
RequiredIndicatorPlacement["UNKNOWN_PLACEMENT"] = "UNKNOWN_PLACEMENT";
|
|
796
|
-
/** After field title. */
|
|
797
|
-
RequiredIndicatorPlacement["AFTER_FIELD_TITLE"] = "AFTER_FIELD_TITLE";
|
|
798
|
-
/** Before field title. */
|
|
799
|
-
RequiredIndicatorPlacement["BEFORE_FIELD_TITLE"] = "BEFORE_FIELD_TITLE";
|
|
800
|
-
})(RequiredIndicatorPlacement || (exports.RequiredIndicatorPlacement = RequiredIndicatorPlacement = {}));
|
|
801
|
-
var Target;
|
|
802
|
-
(function (Target) {
|
|
803
|
-
/** Unknown target. */
|
|
804
|
-
Target["UNKNOWN_TARGET"] = "UNKNOWN_TARGET";
|
|
805
|
-
/** Open in the same browser tab. */
|
|
806
|
-
Target["SELF"] = "SELF";
|
|
807
|
-
/** Open in a new browser tab. */
|
|
808
|
-
Target["BLANK"] = "BLANK";
|
|
809
|
-
})(Target || (exports.Target = Target = {}));
|
|
810
|
-
var SubmitSuccessAction;
|
|
811
|
-
(function (SubmitSuccessAction) {
|
|
812
|
-
/** Unknown submit success action. */
|
|
813
|
-
SubmitSuccessAction["UNKNOWN_SUBMIT_SUCCESS_ACTION"] = "UNKNOWN_SUBMIT_SUCCESS_ACTION";
|
|
814
|
-
/** No action will be taken after submission. */
|
|
815
|
-
SubmitSuccessAction["NO_ACTION"] = "NO_ACTION";
|
|
816
|
-
/** A thank you message will be shown after submission. */
|
|
817
|
-
SubmitSuccessAction["THANK_YOU_MESSAGE"] = "THANK_YOU_MESSAGE";
|
|
818
|
-
/** The user will be redirected to a URL after submission. */
|
|
819
|
-
SubmitSuccessAction["REDIRECT"] = "REDIRECT";
|
|
820
|
-
})(SubmitSuccessAction || (exports.SubmitSuccessAction = SubmitSuccessAction = {}));
|
|
821
|
-
/** Enum for different types of changeable properties. */
|
|
822
|
-
var ChangeableProperty;
|
|
823
|
-
(function (ChangeableProperty) {
|
|
824
|
-
/** Unknown property type. */
|
|
825
|
-
ChangeableProperty["UNKNOWN_CHANGEABLE_PROPERTY"] = "UNKNOWN_CHANGEABLE_PROPERTY";
|
|
826
|
-
/** Required property type. */
|
|
827
|
-
ChangeableProperty["REQUIRED"] = "REQUIRED";
|
|
828
|
-
/** Hidden property type. */
|
|
829
|
-
ChangeableProperty["HIDDEN"] = "HIDDEN";
|
|
830
|
-
/** Allowed values property type. */
|
|
831
|
-
ChangeableProperty["ALLOWED_VALUES"] = "ALLOWED_VALUES";
|
|
832
|
-
})(ChangeableProperty || (exports.ChangeableProperty = ChangeableProperty = {}));
|
|
833
|
-
var OverrideEntityTypeEnumOverrideEntityType;
|
|
834
|
-
(function (OverrideEntityTypeEnumOverrideEntityType) {
|
|
835
|
-
OverrideEntityTypeEnumOverrideEntityType["UNKNOWN_OVERRIDE_ENTITY_TYPE"] = "UNKNOWN_OVERRIDE_ENTITY_TYPE";
|
|
836
|
-
OverrideEntityTypeEnumOverrideEntityType["FIELD"] = "FIELD";
|
|
837
|
-
})(OverrideEntityTypeEnumOverrideEntityType || (exports.OverrideEntityTypeEnumOverrideEntityType = OverrideEntityTypeEnumOverrideEntityType = {}));
|
|
838
|
-
var Operator;
|
|
839
|
-
(function (Operator) {
|
|
840
|
-
Operator["UNKNOWN_OPERATOR"] = "UNKNOWN_OPERATOR";
|
|
841
|
-
Operator["EQUAL"] = "EQUAL";
|
|
842
|
-
Operator["NOT_EQUAL"] = "NOT_EQUAL";
|
|
843
|
-
Operator["EMPTY"] = "EMPTY";
|
|
844
|
-
Operator["NOT_EMPTY"] = "NOT_EMPTY";
|
|
845
|
-
Operator["CONTAINS"] = "CONTAINS";
|
|
846
|
-
Operator["NOT_CONTAINS"] = "NOT_CONTAINS";
|
|
847
|
-
Operator["LESS_THAN"] = "LESS_THAN";
|
|
848
|
-
Operator["LESS_THAN_OR_EQUALS"] = "LESS_THAN_OR_EQUALS";
|
|
849
|
-
Operator["GREATER_THAN"] = "GREATER_THAN";
|
|
850
|
-
Operator["GREATER_THAN_OR_EQUALS"] = "GREATER_THAN_OR_EQUALS";
|
|
851
|
-
Operator["BEFORE"] = "BEFORE";
|
|
852
|
-
Operator["BEFORE_OR_EQUAL"] = "BEFORE_OR_EQUAL";
|
|
853
|
-
Operator["AFTER"] = "AFTER";
|
|
854
|
-
Operator["AFTER_OR_EQUAL"] = "AFTER_OR_EQUAL";
|
|
855
|
-
Operator["BETWEEN"] = "BETWEEN";
|
|
856
|
-
Operator["ANY"] = "ANY";
|
|
857
|
-
Operator["ARRAY_EQUAL"] = "ARRAY_EQUAL";
|
|
858
|
-
Operator["ARRAY_NOT_EQUAL"] = "ARRAY_NOT_EQUAL";
|
|
859
|
-
Operator["CHECKED"] = "CHECKED";
|
|
860
|
-
Operator["NOT_CHECKED"] = "NOT_CHECKED";
|
|
861
|
-
Operator["IN"] = "IN";
|
|
862
|
-
Operator["NOT_IN"] = "NOT_IN";
|
|
863
|
-
Operator["IS_DATE_OLDER_THAN"] = "IS_DATE_OLDER_THAN";
|
|
864
|
-
Operator["IS_DATE_OLDER_THAN_OR_EQUAL"] = "IS_DATE_OLDER_THAN_OR_EQUAL";
|
|
865
|
-
Operator["IS_DATE_NEWER_THAN"] = "IS_DATE_NEWER_THAN";
|
|
866
|
-
Operator["IS_DATE_NEWER_THAN_OR_EQUAL"] = "IS_DATE_NEWER_THAN_OR_EQUAL";
|
|
867
|
-
})(Operator || (exports.Operator = Operator = {}));
|
|
868
|
-
var WebhookIdentityType;
|
|
869
|
-
(function (WebhookIdentityType) {
|
|
870
|
-
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
871
|
-
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
872
|
-
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
873
|
-
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
874
|
-
WebhookIdentityType["APP"] = "APP";
|
|
875
|
-
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
|
|
876
|
-
var IdentityType;
|
|
877
|
-
(function (IdentityType) {
|
|
878
|
-
IdentityType["UNKNOWN"] = "UNKNOWN";
|
|
879
|
-
/** Existing or new contact */
|
|
880
|
-
IdentityType["CONTACT"] = "CONTACT";
|
|
881
|
-
/** Member is logged in, matching logic skipped */
|
|
882
|
-
IdentityType["MEMBER"] = "MEMBER";
|
|
883
|
-
/** Matching contact is a member, Merge logic won't be applied */
|
|
884
|
-
IdentityType["NOT_AUTHENTICATED_MEMBER"] = "NOT_AUTHENTICATED_MEMBER";
|
|
885
|
-
})(IdentityType || (exports.IdentityType = IdentityType = {}));
|
|
886
|
-
var ErrorType;
|
|
887
|
-
(function (ErrorType) {
|
|
888
|
-
/** Error is unknown or not suitable for any of options bellow */
|
|
889
|
-
ErrorType["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
890
|
-
/** Type of submitted value is incorrect */
|
|
891
|
-
ErrorType["TYPE_ERROR"] = "TYPE_ERROR";
|
|
892
|
-
/** Value is required to be provided */
|
|
893
|
-
ErrorType["REQUIRED_VALUE_ERROR"] = "REQUIRED_VALUE_ERROR";
|
|
894
|
-
/** Value contains additional properties not expected in schema */
|
|
895
|
-
ErrorType["UNKNOWN_VALUE_ERROR"] = "UNKNOWN_VALUE_ERROR";
|
|
896
|
-
/** Text value exceeds max length */
|
|
897
|
-
ErrorType["MAX_LENGTH_ERROR"] = "MAX_LENGTH_ERROR";
|
|
898
|
-
/** Text value not reaches min length */
|
|
899
|
-
ErrorType["MIN_LENGTH_ERROR"] = "MIN_LENGTH_ERROR";
|
|
900
|
-
/** Text value not applicable for expected pattern */
|
|
901
|
-
ErrorType["PATTERN_ERROR"] = "PATTERN_ERROR";
|
|
902
|
-
/** Text value not applicable for expected format */
|
|
903
|
-
ErrorType["FORMAT_ERROR"] = "FORMAT_ERROR";
|
|
904
|
-
/** Number value is too big */
|
|
905
|
-
ErrorType["MAX_VALUE_ERROR"] = "MAX_VALUE_ERROR";
|
|
906
|
-
/** Number value is too small */
|
|
907
|
-
ErrorType["MIN_VALUE_ERROR"] = "MIN_VALUE_ERROR";
|
|
908
|
-
/** Number value is not multiple of expected number */
|
|
909
|
-
ErrorType["MULTIPLE_OF_VALUE_ERROR"] = "MULTIPLE_OF_VALUE_ERROR";
|
|
910
|
-
/** Array value has too much items */
|
|
911
|
-
ErrorType["MIN_ITEMS_ERROR"] = "MIN_ITEMS_ERROR";
|
|
912
|
-
/** Array value has not enough items */
|
|
913
|
-
ErrorType["MAX_ITEMS_ERROR"] = "MAX_ITEMS_ERROR";
|
|
914
|
-
/** Value is not in list of allowed values */
|
|
915
|
-
ErrorType["NOT_ALLOWED_VALUE_ERROR"] = "NOT_ALLOWED_VALUE_ERROR";
|
|
916
|
-
/** Form fields are incompatible */
|
|
917
|
-
ErrorType["FIELDS_COMPATIBILITY_ERROR"] = "FIELDS_COMPATIBILITY_ERROR";
|
|
918
|
-
/** Submitted form is disabled */
|
|
919
|
-
ErrorType["DISABLED_FORM_ERROR"] = "DISABLED_FORM_ERROR";
|
|
920
|
-
/** Too much forms */
|
|
921
|
-
ErrorType["FORMS_COUNT_RESTRICTIONS_ERROR"] = "FORMS_COUNT_RESTRICTIONS_ERROR";
|
|
922
|
-
/** Too much fields on form */
|
|
923
|
-
ErrorType["FIELDS_COUNT_RESTRICTIONS_ERROR"] = "FIELDS_COUNT_RESTRICTIONS_ERROR";
|
|
924
|
-
/** Too much steps on forms */
|
|
925
|
-
ErrorType["STEPS_COUNT_RESTRICTIONS_ERROR"] = "STEPS_COUNT_RESTRICTIONS_ERROR";
|
|
926
|
-
/** Too much rules on forms */
|
|
927
|
-
ErrorType["RULES_COUNT_RESTRICTIONS_ERROR"] = "RULES_COUNT_RESTRICTIONS_ERROR";
|
|
928
|
-
/** File upload is not allowed */
|
|
929
|
-
ErrorType["FILE_UPLOAD_RESTRICTIONS_ERROR"] = "FILE_UPLOAD_RESTRICTIONS_ERROR";
|
|
930
|
-
/** Country code is not correct or missing from the phone number */
|
|
931
|
-
ErrorType["INVALID_PHONE_COUNTRY_CODE_ERROR"] = "INVALID_PHONE_COUNTRY_CODE_ERROR";
|
|
932
|
-
/** Invalid staff member ID on appointment */
|
|
933
|
-
ErrorType["INVALID_STAFF_ID_ERROR"] = "INVALID_STAFF_ID_ERROR";
|
|
934
|
-
/** Invalid business location ID on appointment */
|
|
935
|
-
ErrorType["INVALID_LOCATION_ID_ERROR"] = "INVALID_LOCATION_ID_ERROR";
|
|
936
|
-
})(ErrorType || (exports.ErrorType = ErrorType = {}));
|
|
937
|
-
var SortOrder;
|
|
938
|
-
(function (SortOrder) {
|
|
939
|
-
SortOrder["ASC"] = "ASC";
|
|
940
|
-
SortOrder["DESC"] = "DESC";
|
|
941
|
-
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
942
|
-
var Mode;
|
|
943
|
-
(function (Mode) {
|
|
944
|
-
/** Any of the search terms must be present */
|
|
945
|
-
Mode["OR"] = "OR";
|
|
946
|
-
/** All search terms must be present */
|
|
947
|
-
Mode["AND"] = "AND";
|
|
948
|
-
})(Mode || (exports.Mode = Mode = {}));
|
|
949
|
-
var Status;
|
|
950
|
-
(function (Status) {
|
|
951
|
-
Status["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
952
|
-
Status["READY"] = "READY";
|
|
953
|
-
Status["PENDING"] = "PENDING";
|
|
954
|
-
Status["FAILED"] = "FAILED";
|
|
955
|
-
})(Status || (exports.Status = Status = {}));
|
|
956
|
-
var SubmissionErrorType;
|
|
957
|
-
(function (SubmissionErrorType) {
|
|
958
|
-
/** Error is unknown or unsuitable for any of the options below. */
|
|
959
|
-
SubmissionErrorType["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
960
|
-
/** Type of submitted value is incorrect. */
|
|
961
|
-
SubmissionErrorType["TYPE_ERROR"] = "TYPE_ERROR";
|
|
962
|
-
/** Value is required to be provided. */
|
|
963
|
-
SubmissionErrorType["REQUIRED_VALUE_ERROR"] = "REQUIRED_VALUE_ERROR";
|
|
964
|
-
/** Value contains additional properties not expected in schema. */
|
|
965
|
-
SubmissionErrorType["UNKNOWN_VALUE_ERROR"] = "UNKNOWN_VALUE_ERROR";
|
|
966
|
-
/** Text value exceeds max length. */
|
|
967
|
-
SubmissionErrorType["MAX_LENGTH_ERROR"] = "MAX_LENGTH_ERROR";
|
|
968
|
-
/** Text value does not reach min length. */
|
|
969
|
-
SubmissionErrorType["MIN_LENGTH_ERROR"] = "MIN_LENGTH_ERROR";
|
|
970
|
-
/** Text value is not applicable for expected pattern. */
|
|
971
|
-
SubmissionErrorType["PATTERN_ERROR"] = "PATTERN_ERROR";
|
|
972
|
-
/** Text value is not applicable for expected format. */
|
|
973
|
-
SubmissionErrorType["FORMAT_ERROR"] = "FORMAT_ERROR";
|
|
974
|
-
/** Number value is too big. */
|
|
975
|
-
SubmissionErrorType["MAX_VALUE_ERROR"] = "MAX_VALUE_ERROR";
|
|
976
|
-
/** Number value is too small. */
|
|
977
|
-
SubmissionErrorType["MIN_VALUE_ERROR"] = "MIN_VALUE_ERROR";
|
|
978
|
-
/** Number value is not a multiple of expected number. */
|
|
979
|
-
SubmissionErrorType["MULTIPLE_OF_VALUE_ERROR"] = "MULTIPLE_OF_VALUE_ERROR";
|
|
980
|
-
/** Array value has too many items. */
|
|
981
|
-
SubmissionErrorType["MIN_ITEMS_ERROR"] = "MIN_ITEMS_ERROR";
|
|
982
|
-
/** Array value has not enough items. */
|
|
983
|
-
SubmissionErrorType["MAX_ITEMS_ERROR"] = "MAX_ITEMS_ERROR";
|
|
984
|
-
/** Value is not in the list of allowed values. */
|
|
985
|
-
SubmissionErrorType["NOT_ALLOWED_VALUE_ERROR"] = "NOT_ALLOWED_VALUE_ERROR";
|
|
986
|
-
/** Submitted form is disabled. */
|
|
987
|
-
SubmissionErrorType["DISABLED_FORM_ERROR"] = "DISABLED_FORM_ERROR";
|
|
988
|
-
})(SubmissionErrorType || (exports.SubmissionErrorType = SubmissionErrorType = {}));
|
|
989
|
-
/**
|
|
990
|
-
* Upserts contact from submission.
|
|
991
|
-
* @param submissionId - Submission from which contact needs to be upserted.
|
|
992
|
-
* @public
|
|
993
|
-
* @documentationMaturity preview
|
|
994
|
-
* @requiredField submissionId
|
|
995
|
-
* @permissionId WIX_FORMS.SUBMISSION_CONTACT_UPSERT
|
|
996
|
-
* @permissionScope Manage form submissions.
|
|
997
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
998
|
-
* @applicableIdentity APP
|
|
999
|
-
* @fqn wix.forms.v4.FormSubmissionContactUpsertService.UpsertContactFromSubmission
|
|
1000
|
-
*/
|
|
1001
|
-
async function upsertContactFromSubmission(submissionId, options) {
|
|
1002
|
-
// @ts-ignore
|
|
1003
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1004
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
1005
|
-
submissionId: submissionId,
|
|
1006
|
-
contactId: options?.contactId,
|
|
1007
|
-
emailVerified: options?.emailVerified,
|
|
1008
|
-
});
|
|
1009
|
-
const reqOpts = ambassadorWixFormsV4Submission.upsertContactFromSubmission(payload);
|
|
1010
|
-
sideEffects?.onSiteCall?.();
|
|
1011
|
-
try {
|
|
1012
|
-
const result = await httpClient.request(reqOpts);
|
|
1013
|
-
sideEffects?.onSuccess?.(result);
|
|
1014
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1015
|
-
}
|
|
1016
|
-
catch (err) {
|
|
1017
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1018
|
-
spreadPathsToArguments: {},
|
|
1019
|
-
explicitPathsToArguments: {
|
|
1020
|
-
submissionId: '$[0]',
|
|
1021
|
-
contactId: '$[1].contactId',
|
|
1022
|
-
emailVerified: '$[1].emailVerified',
|
|
1023
|
-
},
|
|
1024
|
-
singleArgumentUnchanged: false,
|
|
1025
|
-
}, ['submissionId', 'options']);
|
|
1026
|
-
sideEffects?.onError?.(err);
|
|
1027
|
-
throw transformedError;
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
exports.upsertContactFromSubmission = upsertContactFromSubmission;
|
|
1031
|
-
/**
|
|
1032
|
-
* Creates a submission.
|
|
1033
|
-
*
|
|
1034
|
-
*
|
|
1035
|
-
* The `createSubmission()` function is an alternative way to the [`WixFormsV2`](https://www.wix.com/velo/reference/$w/wixformsv2/submit) element for submitting a form. In this case, clicking the submit button is unnecessary, the submission is automatically created when calling this function.
|
|
1036
|
-
* @param submission - Submission to create.
|
|
1037
|
-
* @public
|
|
1038
|
-
* @requiredField submission
|
|
1039
|
-
* @requiredField submission.formId
|
|
1040
|
-
* @param options - Optional fields.
|
|
1041
|
-
* @permissionId WIX_FORMS.SUBMISSION_CREATE
|
|
1042
|
-
* @permissionScope Manage Submissions
|
|
1043
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
1044
|
-
* @permissionScope Manage form submissions.
|
|
1045
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
1046
|
-
* @permissionScope Manage Challenges
|
|
1047
|
-
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
1048
|
-
* @applicableIdentity APP
|
|
1049
|
-
* @applicableIdentity VISITOR
|
|
1050
|
-
* @returns The created submission.
|
|
1051
|
-
* @fqn wix.forms.v4.FormSubmissionService.CreateSubmission
|
|
1052
|
-
*/
|
|
1053
|
-
async function createSubmission(submission, options) {
|
|
1054
|
-
// @ts-ignore
|
|
1055
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1056
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
1057
|
-
submission: submission,
|
|
1058
|
-
captchaToken: options?.captchaToken,
|
|
1059
|
-
});
|
|
1060
|
-
const reqOpts = ambassadorWixFormsV4Submission.createSubmission(payload);
|
|
1061
|
-
sideEffects?.onSiteCall?.();
|
|
1062
|
-
try {
|
|
1063
|
-
const result = await httpClient.request(reqOpts);
|
|
1064
|
-
sideEffects?.onSuccess?.(result);
|
|
1065
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data)?.submission;
|
|
1066
|
-
}
|
|
1067
|
-
catch (err) {
|
|
1068
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1069
|
-
spreadPathsToArguments: {},
|
|
1070
|
-
explicitPathsToArguments: {
|
|
1071
|
-
submission: '$[0]',
|
|
1072
|
-
captchaToken: '$[1].captchaToken',
|
|
1073
|
-
},
|
|
1074
|
-
singleArgumentUnchanged: false,
|
|
1075
|
-
}, ['submission', 'options']);
|
|
1076
|
-
sideEffects?.onError?.(err);
|
|
1077
|
-
throw transformedError;
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
exports.createSubmission = createSubmission;
|
|
1081
|
-
/**
|
|
1082
|
-
* Retrieves a submission by ID.
|
|
1083
|
-
* @param submissionId - ID of the submission to retrieve.
|
|
1084
|
-
* @public
|
|
1085
|
-
* @requiredField submissionId
|
|
1086
|
-
* @permissionId WIX_FORMS.SUBMISSION_READ_ANY
|
|
1087
|
-
* @permissionScope Manage Submissions
|
|
1088
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
1089
|
-
* @permissionScope Manage Orders
|
|
1090
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
|
|
1091
|
-
* @permissionScope Manage form submissions.
|
|
1092
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
1093
|
-
* @permissionScope Read Orders
|
|
1094
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-ORDERS
|
|
1095
|
-
* @permissionScope Read Submissions
|
|
1096
|
-
* @permissionScopeId SCOPE.DC-FORMS.READ-SUBMISSIONS
|
|
1097
|
-
* @applicableIdentity APP
|
|
1098
|
-
* @returns The retrieved submission.
|
|
1099
|
-
* @fqn wix.forms.v4.FormSubmissionService.GetSubmission
|
|
1100
|
-
*/
|
|
1101
|
-
async function getSubmission(submissionId) {
|
|
1102
|
-
// @ts-ignore
|
|
1103
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1104
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
1105
|
-
submissionId: submissionId,
|
|
1106
|
-
});
|
|
1107
|
-
const reqOpts = ambassadorWixFormsV4Submission.getSubmission(payload);
|
|
1108
|
-
sideEffects?.onSiteCall?.();
|
|
1109
|
-
try {
|
|
1110
|
-
const result = await httpClient.request(reqOpts);
|
|
1111
|
-
sideEffects?.onSuccess?.(result);
|
|
1112
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data)?.submission;
|
|
1113
|
-
}
|
|
1114
|
-
catch (err) {
|
|
1115
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1116
|
-
spreadPathsToArguments: {},
|
|
1117
|
-
explicitPathsToArguments: { submissionId: '$[0]' },
|
|
1118
|
-
singleArgumentUnchanged: false,
|
|
1119
|
-
}, ['submissionId']);
|
|
1120
|
-
sideEffects?.onError?.(err);
|
|
1121
|
-
throw transformedError;
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
|
-
exports.getSubmission = getSubmission;
|
|
1125
|
-
/**
|
|
1126
|
-
* Updates a submission.
|
|
1127
|
-
*
|
|
1128
|
-
*
|
|
1129
|
-
* 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.
|
|
1130
|
-
* @param _id - Submission ID.
|
|
1131
|
-
* @public
|
|
1132
|
-
* @requiredField _id
|
|
1133
|
-
* @requiredField submission
|
|
1134
|
-
* @requiredField submission.formId
|
|
1135
|
-
* @requiredField submission.revision
|
|
1136
|
-
* @param submission - Submission to update.
|
|
1137
|
-
* @permissionId WIX_FORMS.SUBMISSION_UPDATE_ANY
|
|
1138
|
-
* @permissionScope Manage Submissions
|
|
1139
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
1140
|
-
* @permissionScope Manage form submissions.
|
|
1141
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
1142
|
-
* @applicableIdentity APP
|
|
1143
|
-
* @returns The updated submission.
|
|
1144
|
-
* @fqn wix.forms.v4.FormSubmissionService.UpdateSubmission
|
|
1145
|
-
*/
|
|
1146
|
-
async function updateSubmission(_id, submission) {
|
|
1147
|
-
// @ts-ignore
|
|
1148
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1149
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
1150
|
-
submission: { ...submission, id: _id },
|
|
1151
|
-
});
|
|
1152
|
-
const reqOpts = ambassadorWixFormsV4Submission.updateSubmission(payload);
|
|
1153
|
-
sideEffects?.onSiteCall?.();
|
|
1154
|
-
try {
|
|
1155
|
-
const result = await httpClient.request(reqOpts);
|
|
1156
|
-
sideEffects?.onSuccess?.(result);
|
|
1157
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data)?.submission;
|
|
1158
|
-
}
|
|
1159
|
-
catch (err) {
|
|
1160
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1161
|
-
spreadPathsToArguments: { submission: '$[1]' },
|
|
1162
|
-
explicitPathsToArguments: { 'submission.id': '$[0]' },
|
|
1163
|
-
singleArgumentUnchanged: false,
|
|
1164
|
-
}, ['_id', 'submission']);
|
|
1165
|
-
sideEffects?.onError?.(err);
|
|
1166
|
-
throw transformedError;
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
exports.updateSubmission = updateSubmission;
|
|
1170
|
-
/**
|
|
1171
|
-
* Confirms a submission.
|
|
1172
|
-
*
|
|
1173
|
-
*
|
|
1174
|
-
* You can only confirm a submission that has a `PENDING` status.
|
|
1175
|
-
* When using forms from the [Wix Pricing Plans](https://www.wix.com/app-market/paid-plans?referral=collection&appIndex=42&referralTag=made-by-wix&referralSectionName=made-by-wix) app, the default submission status is `PENDING`.
|
|
1176
|
-
* When using forms from the [Wix Forms]() app, the default form submission status is `CONFIRMED`. You can change the default status for individual submissions using the `updateSubmission()` method.
|
|
1177
|
-
* @param submissionId - Submission ID to confirm.
|
|
1178
|
-
* @public
|
|
1179
|
-
* @requiredField submissionId
|
|
1180
|
-
* @permissionId WIX_FORMS.SUBMISSION_UPDATE_ANY
|
|
1181
|
-
* @permissionScope Manage Submissions
|
|
1182
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
1183
|
-
* @permissionScope Manage form submissions.
|
|
1184
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
1185
|
-
* @applicableIdentity APP
|
|
1186
|
-
* @fqn wix.forms.v4.FormSubmissionService.ConfirmSubmission
|
|
1187
|
-
*/
|
|
1188
|
-
async function confirmSubmission(submissionId) {
|
|
1189
|
-
// @ts-ignore
|
|
1190
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1191
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
1192
|
-
submissionId: submissionId,
|
|
1193
|
-
});
|
|
1194
|
-
const reqOpts = ambassadorWixFormsV4Submission.confirmSubmission(payload);
|
|
1195
|
-
sideEffects?.onSiteCall?.();
|
|
1196
|
-
try {
|
|
1197
|
-
const result = await httpClient.request(reqOpts);
|
|
1198
|
-
sideEffects?.onSuccess?.(result);
|
|
1199
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1200
|
-
}
|
|
1201
|
-
catch (err) {
|
|
1202
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1203
|
-
spreadPathsToArguments: {},
|
|
1204
|
-
explicitPathsToArguments: { submissionId: '$[0]' },
|
|
1205
|
-
singleArgumentUnchanged: false,
|
|
1206
|
-
}, ['submissionId']);
|
|
1207
|
-
sideEffects?.onError?.(err);
|
|
1208
|
-
throw transformedError;
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
|
-
exports.confirmSubmission = confirmSubmission;
|
|
1212
|
-
/**
|
|
1213
|
-
* Deletes a submission.
|
|
1214
|
-
*
|
|
1215
|
-
*
|
|
1216
|
-
* This function moves the form submission into the trash bin. To delete the submission permanently, change the default `permanent` field value to `true.`
|
|
1217
|
-
* @param submissionId - ID of the submission to delete.
|
|
1218
|
-
* @public
|
|
1219
|
-
* @requiredField submissionId
|
|
1220
|
-
* @param options - Optional fields.
|
|
1221
|
-
* @permissionId WIX_FORMS.SUBMISSION_DELETE
|
|
1222
|
-
* @permissionScope Manage Submissions
|
|
1223
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
1224
|
-
* @permissionScope Manage form submissions.
|
|
1225
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
1226
|
-
* @applicableIdentity APP
|
|
1227
|
-
* @fqn wix.forms.v4.FormSubmissionService.DeleteSubmission
|
|
1228
|
-
*/
|
|
1229
|
-
async function deleteSubmission(submissionId, options) {
|
|
1230
|
-
// @ts-ignore
|
|
1231
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1232
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
1233
|
-
submissionId: submissionId,
|
|
1234
|
-
permanent: options?.permanent,
|
|
1235
|
-
preserveFiles: options?.preserveFiles,
|
|
1236
|
-
});
|
|
1237
|
-
const reqOpts = ambassadorWixFormsV4Submission.deleteSubmission(payload);
|
|
1238
|
-
sideEffects?.onSiteCall?.();
|
|
1239
|
-
try {
|
|
1240
|
-
const result = await httpClient.request(reqOpts);
|
|
1241
|
-
sideEffects?.onSuccess?.(result);
|
|
1242
|
-
}
|
|
1243
|
-
catch (err) {
|
|
1244
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1245
|
-
spreadPathsToArguments: {},
|
|
1246
|
-
explicitPathsToArguments: {
|
|
1247
|
-
submissionId: '$[0]',
|
|
1248
|
-
permanent: '$[1].permanent',
|
|
1249
|
-
preserveFiles: '$[1].preserveFiles',
|
|
1250
|
-
},
|
|
1251
|
-
singleArgumentUnchanged: false,
|
|
1252
|
-
}, ['submissionId', 'options']);
|
|
1253
|
-
sideEffects?.onError?.(err);
|
|
1254
|
-
throw transformedError;
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
exports.deleteSubmission = deleteSubmission;
|
|
1258
|
-
/**
|
|
1259
|
-
* Deletes submissions by IDS for specific form.
|
|
1260
|
-
* @param formId - Form ID.
|
|
1261
|
-
* @public
|
|
1262
|
-
* @documentationMaturity preview
|
|
1263
|
-
* @requiredField formId
|
|
1264
|
-
* @permissionId WIX_FORMS.SUBMISSION_DELETE
|
|
1265
|
-
* @permissionScope Manage Submissions
|
|
1266
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
1267
|
-
* @permissionScope Manage form submissions.
|
|
1268
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
1269
|
-
* @applicableIdentity APP
|
|
1270
|
-
* @fqn wix.forms.v4.FormSubmissionService.BulkDeleteSubmission
|
|
1271
|
-
*/
|
|
1272
|
-
async function bulkDeleteSubmission(formId, options) {
|
|
1273
|
-
// @ts-ignore
|
|
1274
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1275
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
1276
|
-
formId: formId,
|
|
1277
|
-
submissionIds: options?.submissionIds,
|
|
1278
|
-
permanent: options?.permanent,
|
|
1279
|
-
preserveFiles: options?.preserveFiles,
|
|
1280
|
-
});
|
|
1281
|
-
const reqOpts = ambassadorWixFormsV4Submission.bulkDeleteSubmission(payload);
|
|
1282
|
-
sideEffects?.onSiteCall?.();
|
|
1283
|
-
try {
|
|
1284
|
-
const result = await httpClient.request(reqOpts);
|
|
1285
|
-
sideEffects?.onSuccess?.(result);
|
|
1286
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1287
|
-
}
|
|
1288
|
-
catch (err) {
|
|
1289
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1290
|
-
spreadPathsToArguments: {},
|
|
1291
|
-
explicitPathsToArguments: {
|
|
1292
|
-
formId: '$[0]',
|
|
1293
|
-
submissionIds: '$[1].submissionIds',
|
|
1294
|
-
permanent: '$[1].permanent',
|
|
1295
|
-
preserveFiles: '$[1].preserveFiles',
|
|
1296
|
-
},
|
|
1297
|
-
singleArgumentUnchanged: false,
|
|
1298
|
-
}, ['formId', 'options']);
|
|
1299
|
-
sideEffects?.onError?.(err);
|
|
1300
|
-
throw transformedError;
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
exports.bulkDeleteSubmission = bulkDeleteSubmission;
|
|
1304
|
-
/**
|
|
1305
|
-
* Restores deleted submission
|
|
1306
|
-
* @param submissionId - ID of the submission to restore.
|
|
1307
|
-
* @public
|
|
1308
|
-
* @documentationMaturity preview
|
|
1309
|
-
* @requiredField submissionId
|
|
1310
|
-
* @permissionId WIX_FORMS.SUBMISSION_UPDATE_ANY
|
|
1311
|
-
* @permissionScope Manage Submissions
|
|
1312
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
1313
|
-
* @permissionScope Manage form submissions.
|
|
1314
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
1315
|
-
* @applicableIdentity APP
|
|
1316
|
-
* @fqn wix.forms.v4.FormSubmissionService.RestoreSubmissionFromTrashBin
|
|
1317
|
-
*/
|
|
1318
|
-
async function restoreSubmissionFromTrashBin(submissionId) {
|
|
1319
|
-
// @ts-ignore
|
|
1320
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1321
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
1322
|
-
submissionId: submissionId,
|
|
1323
|
-
});
|
|
1324
|
-
const reqOpts = ambassadorWixFormsV4Submission.restoreSubmissionFromTrashBin(payload);
|
|
1325
|
-
sideEffects?.onSiteCall?.();
|
|
1326
|
-
try {
|
|
1327
|
-
const result = await httpClient.request(reqOpts);
|
|
1328
|
-
sideEffects?.onSuccess?.(result);
|
|
1329
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1330
|
-
}
|
|
1331
|
-
catch (err) {
|
|
1332
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1333
|
-
spreadPathsToArguments: {},
|
|
1334
|
-
explicitPathsToArguments: { submissionId: '$[0]' },
|
|
1335
|
-
singleArgumentUnchanged: false,
|
|
1336
|
-
}, ['submissionId']);
|
|
1337
|
-
sideEffects?.onError?.(err);
|
|
1338
|
-
throw transformedError;
|
|
1339
|
-
}
|
|
1340
|
-
}
|
|
1341
|
-
exports.restoreSubmissionFromTrashBin = restoreSubmissionFromTrashBin;
|
|
1342
|
-
/**
|
|
1343
|
-
* Remove deleted submission
|
|
1344
|
-
* @param submissionId - ID of the submission to restore.
|
|
1345
|
-
* @public
|
|
1346
|
-
* @documentationMaturity preview
|
|
1347
|
-
* @requiredField submissionId
|
|
1348
|
-
* @permissionId WIX_FORMS.SUBMISSION_DELETE
|
|
1349
|
-
* @permissionScope Manage Submissions
|
|
1350
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
1351
|
-
* @permissionScope Manage form submissions.
|
|
1352
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
1353
|
-
* @applicableIdentity APP
|
|
1354
|
-
* @fqn wix.forms.v4.FormSubmissionService.RemoveSubmissionFromTrashBin
|
|
1355
|
-
*/
|
|
1356
|
-
async function removeSubmissionFromTrashBin(submissionId) {
|
|
1357
|
-
// @ts-ignore
|
|
1358
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1359
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
1360
|
-
submissionId: submissionId,
|
|
1361
|
-
});
|
|
1362
|
-
const reqOpts = ambassadorWixFormsV4Submission.removeSubmissionFromTrashBin(payload);
|
|
1363
|
-
sideEffects?.onSiteCall?.();
|
|
1364
|
-
try {
|
|
1365
|
-
const result = await httpClient.request(reqOpts);
|
|
1366
|
-
sideEffects?.onSuccess?.(result);
|
|
1367
|
-
}
|
|
1368
|
-
catch (err) {
|
|
1369
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1370
|
-
spreadPathsToArguments: {},
|
|
1371
|
-
explicitPathsToArguments: { submissionId: '$[0]' },
|
|
1372
|
-
singleArgumentUnchanged: false,
|
|
1373
|
-
}, ['submissionId']);
|
|
1374
|
-
sideEffects?.onError?.(err);
|
|
1375
|
-
throw transformedError;
|
|
1376
|
-
}
|
|
1377
|
-
}
|
|
1378
|
-
exports.removeSubmissionFromTrashBin = removeSubmissionFromTrashBin;
|
|
1379
|
-
/**
|
|
1380
|
-
* Remove multiple deleted submissions
|
|
1381
|
-
* @param formId - Form ID.
|
|
1382
|
-
* @public
|
|
1383
|
-
* @documentationMaturity preview
|
|
1384
|
-
* @requiredField formId
|
|
1385
|
-
* @permissionId WIX_FORMS.SUBMISSION_DELETE
|
|
1386
|
-
* @permissionScope Manage Submissions
|
|
1387
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
1388
|
-
* @permissionScope Manage form submissions.
|
|
1389
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
1390
|
-
* @applicableIdentity APP
|
|
1391
|
-
* @fqn wix.forms.v4.FormSubmissionService.BulkRemoveSubmissionFromTrashBin
|
|
1392
|
-
*/
|
|
1393
|
-
async function bulkRemoveSubmissionFromTrashBin(formId, options) {
|
|
1394
|
-
// @ts-ignore
|
|
1395
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1396
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
1397
|
-
formId: formId,
|
|
1398
|
-
submissionIds: options?.submissionIds,
|
|
1399
|
-
});
|
|
1400
|
-
const reqOpts = ambassadorWixFormsV4Submission.bulkRemoveSubmissionFromTrashBin(payload);
|
|
1401
|
-
sideEffects?.onSiteCall?.();
|
|
1402
|
-
try {
|
|
1403
|
-
const result = await httpClient.request(reqOpts);
|
|
1404
|
-
sideEffects?.onSuccess?.(result);
|
|
1405
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1406
|
-
}
|
|
1407
|
-
catch (err) {
|
|
1408
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1409
|
-
spreadPathsToArguments: {},
|
|
1410
|
-
explicitPathsToArguments: {
|
|
1411
|
-
formId: '$[0]',
|
|
1412
|
-
submissionIds: '$[1].submissionIds',
|
|
1413
|
-
},
|
|
1414
|
-
singleArgumentUnchanged: false,
|
|
1415
|
-
}, ['formId', 'options']);
|
|
1416
|
-
sideEffects?.onError?.(err);
|
|
1417
|
-
throw transformedError;
|
|
1418
|
-
}
|
|
1419
|
-
}
|
|
1420
|
-
exports.bulkRemoveSubmissionFromTrashBin = bulkRemoveSubmissionFromTrashBin;
|
|
1421
|
-
/**
|
|
1422
|
-
* List deleted submissions
|
|
1423
|
-
* @param formId - Form ID.
|
|
1424
|
-
* @public
|
|
1425
|
-
* @documentationMaturity preview
|
|
1426
|
-
* @requiredField formId
|
|
1427
|
-
* @permissionId WIX_FORMS.SUBMISSION_READ_ANY
|
|
1428
|
-
* @permissionScope Manage Submissions
|
|
1429
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
1430
|
-
* @permissionScope Manage Orders
|
|
1431
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
|
|
1432
|
-
* @permissionScope Manage form submissions.
|
|
1433
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
1434
|
-
* @permissionScope Read Orders
|
|
1435
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-ORDERS
|
|
1436
|
-
* @permissionScope Read Submissions
|
|
1437
|
-
* @permissionScopeId SCOPE.DC-FORMS.READ-SUBMISSIONS
|
|
1438
|
-
* @applicableIdentity APP
|
|
1439
|
-
* @fqn wix.forms.v4.FormSubmissionService.ListDeletedSubmissions
|
|
1440
|
-
*/
|
|
1441
|
-
async function listDeletedSubmissions(formId, options) {
|
|
1442
|
-
// @ts-ignore
|
|
1443
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1444
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
1445
|
-
formId: formId,
|
|
1446
|
-
submissionIds: options?.submissionIds,
|
|
1447
|
-
paging: options?.paging,
|
|
1448
|
-
statuses: options?.statuses,
|
|
1449
|
-
});
|
|
1450
|
-
const reqOpts = ambassadorWixFormsV4Submission.listDeletedSubmissions(payload);
|
|
1451
|
-
sideEffects?.onSiteCall?.();
|
|
1452
|
-
try {
|
|
1453
|
-
const result = await httpClient.request(reqOpts);
|
|
1454
|
-
sideEffects?.onSuccess?.(result);
|
|
1455
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1456
|
-
}
|
|
1457
|
-
catch (err) {
|
|
1458
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1459
|
-
spreadPathsToArguments: {},
|
|
1460
|
-
explicitPathsToArguments: {
|
|
1461
|
-
formId: '$[0]',
|
|
1462
|
-
submissionIds: '$[1].submissionIds',
|
|
1463
|
-
paging: '$[1].paging',
|
|
1464
|
-
statuses: '$[1].statuses',
|
|
1465
|
-
},
|
|
1466
|
-
singleArgumentUnchanged: false,
|
|
1467
|
-
}, ['formId', 'options']);
|
|
1468
|
-
sideEffects?.onError?.(err);
|
|
1469
|
-
throw transformedError;
|
|
1470
|
-
}
|
|
1471
|
-
}
|
|
1472
|
-
exports.listDeletedSubmissions = listDeletedSubmissions;
|
|
1473
|
-
/**
|
|
1474
|
-
* Get deleted submission
|
|
1475
|
-
* @param submissionId - Submission id.
|
|
1476
|
-
* @public
|
|
1477
|
-
* @documentationMaturity preview
|
|
1478
|
-
* @requiredField submissionId
|
|
1479
|
-
* @permissionId WIX_FORMS.SUBMISSION_READ_ANY
|
|
1480
|
-
* @permissionScope Manage Submissions
|
|
1481
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
1482
|
-
* @permissionScope Manage Orders
|
|
1483
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
|
|
1484
|
-
* @permissionScope Manage form submissions.
|
|
1485
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
1486
|
-
* @permissionScope Read Orders
|
|
1487
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-ORDERS
|
|
1488
|
-
* @permissionScope Read Submissions
|
|
1489
|
-
* @permissionScopeId SCOPE.DC-FORMS.READ-SUBMISSIONS
|
|
1490
|
-
* @applicableIdentity APP
|
|
1491
|
-
* @fqn wix.forms.v4.FormSubmissionService.GetDeletedSubmission
|
|
1492
|
-
*/
|
|
1493
|
-
async function getDeletedSubmission(submissionId) {
|
|
1494
|
-
// @ts-ignore
|
|
1495
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1496
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
1497
|
-
submissionId: submissionId,
|
|
1498
|
-
});
|
|
1499
|
-
const reqOpts = ambassadorWixFormsV4Submission.getDeletedSubmission(payload);
|
|
1500
|
-
sideEffects?.onSiteCall?.();
|
|
1501
|
-
try {
|
|
1502
|
-
const result = await httpClient.request(reqOpts);
|
|
1503
|
-
sideEffects?.onSuccess?.(result);
|
|
1504
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1505
|
-
}
|
|
1506
|
-
catch (err) {
|
|
1507
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1508
|
-
spreadPathsToArguments: {},
|
|
1509
|
-
explicitPathsToArguments: { submissionId: '$[0]' },
|
|
1510
|
-
singleArgumentUnchanged: false,
|
|
1511
|
-
}, ['submissionId']);
|
|
1512
|
-
sideEffects?.onError?.(err);
|
|
1513
|
-
throw transformedError;
|
|
1514
|
-
}
|
|
1515
|
-
}
|
|
1516
|
-
exports.getDeletedSubmission = getDeletedSubmission;
|
|
1517
|
-
/**
|
|
1518
|
-
* Deprecated on '2023-08-08'. Use QuerySubmissionsByNamespace.
|
|
1519
|
-
* @param query - Query options.
|
|
1520
|
-
* @public
|
|
1521
|
-
* @documentationMaturity preview
|
|
1522
|
-
* @requiredField query
|
|
1523
|
-
* @permissionId WIX_FORMS.SUBMISSION_READ_ANY
|
|
1524
|
-
* @permissionScope Manage Submissions
|
|
1525
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
1526
|
-
* @permissionScope Manage Orders
|
|
1527
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
|
|
1528
|
-
* @permissionScope Manage form submissions.
|
|
1529
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
1530
|
-
* @permissionScope Read Orders
|
|
1531
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-ORDERS
|
|
1532
|
-
* @permissionScope Read Submissions
|
|
1533
|
-
* @permissionScopeId SCOPE.DC-FORMS.READ-SUBMISSIONS
|
|
1534
|
-
* @applicableIdentity APP
|
|
1535
|
-
* @fqn wix.forms.v4.FormSubmissionService.QuerySubmission
|
|
1536
|
-
* @deprecated
|
|
1537
|
-
* @replacedBy com.wixpress.forms.v4.FormSubmissionService.QuerySubmissionsByNamespace
|
|
1538
|
-
* @targetRemovalDate 2025-04-01
|
|
1539
|
-
*/
|
|
1540
|
-
async function querySubmission(query, options) {
|
|
1541
|
-
// @ts-ignore
|
|
1542
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1543
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
1544
|
-
query: query,
|
|
1545
|
-
onlyYourOwn: options?.onlyYourOwn,
|
|
1546
|
-
});
|
|
1547
|
-
const reqOpts = ambassadorWixFormsV4Submission.querySubmission(payload);
|
|
1548
|
-
sideEffects?.onSiteCall?.();
|
|
1549
|
-
try {
|
|
1550
|
-
const result = await httpClient.request(reqOpts);
|
|
1551
|
-
sideEffects?.onSuccess?.(result);
|
|
1552
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1553
|
-
}
|
|
1554
|
-
catch (err) {
|
|
1555
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1556
|
-
spreadPathsToArguments: {},
|
|
1557
|
-
explicitPathsToArguments: {
|
|
1558
|
-
query: '$[0]',
|
|
1559
|
-
onlyYourOwn: '$[1].onlyYourOwn',
|
|
1560
|
-
},
|
|
1561
|
-
singleArgumentUnchanged: false,
|
|
1562
|
-
}, ['query', 'options']);
|
|
1563
|
-
sideEffects?.onError?.(err);
|
|
1564
|
-
throw transformedError;
|
|
1565
|
-
}
|
|
1566
|
-
}
|
|
1567
|
-
exports.querySubmission = querySubmission;
|
|
1568
|
-
/**
|
|
1569
|
-
* > **Note:** The Form Submission API only works with the Wix Forms app. Call [GetAppInstance](https://dev.wix.com/docs/rest/api-reference/app-management/apps/app-instance/get-app-instance) to confirm that the app named `wix_forms` is installed on the site.
|
|
1570
|
-
* <br>
|
|
1571
|
-
*
|
|
1572
|
-
* Returns a list of up to 100 submissions, given the provided paging, filtering, and sorting.
|
|
1573
|
-
*
|
|
1574
|
-
* You can only query submissions from a specified namespace. Use the query filter on the `namespace` field, otherwise you will receive an error.
|
|
1575
|
-
*
|
|
1576
|
-
* For field support for filters and sorting, see [Form Submissions: Supported Filters and Sorting](https://dev.wix.com/docs/rest/crm/forms/form-submissions/filter-and-sort).option
|
|
1577
|
-
*
|
|
1578
|
-
* 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).
|
|
1579
|
-
* @param search - Query options.
|
|
1580
|
-
* @public
|
|
1581
|
-
* @documentationMaturity preview
|
|
1582
|
-
* @requiredField search
|
|
1583
|
-
* @permissionId WIX_FORMS.SUBMISSION_READ_ANY
|
|
1584
|
-
* @permissionScope Manage Submissions
|
|
1585
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
1586
|
-
* @permissionScope Manage Orders
|
|
1587
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
|
|
1588
|
-
* @permissionScope Manage form submissions.
|
|
1589
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
1590
|
-
* @permissionScope Read Orders
|
|
1591
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-ORDERS
|
|
1592
|
-
* @permissionScope Read Submissions
|
|
1593
|
-
* @permissionScopeId SCOPE.DC-FORMS.READ-SUBMISSIONS
|
|
1594
|
-
* @applicableIdentity APP
|
|
1595
|
-
* @fqn wix.forms.v4.FormSubmissionService.SearchSubmissionsByNamespace
|
|
1596
|
-
*/
|
|
1597
|
-
async function searchSubmissionsByNamespace(search) {
|
|
1598
|
-
// @ts-ignore
|
|
1599
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1600
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({ search: search });
|
|
1601
|
-
const reqOpts = ambassadorWixFormsV4Submission.searchSubmissionsByNamespace(payload);
|
|
1602
|
-
sideEffects?.onSiteCall?.();
|
|
1603
|
-
try {
|
|
1604
|
-
const result = await httpClient.request(reqOpts);
|
|
1605
|
-
sideEffects?.onSuccess?.(result);
|
|
1606
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1607
|
-
}
|
|
1608
|
-
catch (err) {
|
|
1609
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1610
|
-
spreadPathsToArguments: {},
|
|
1611
|
-
explicitPathsToArguments: { search: '$[0]' },
|
|
1612
|
-
singleArgumentUnchanged: false,
|
|
1613
|
-
}, ['search']);
|
|
1614
|
-
sideEffects?.onError?.(err);
|
|
1615
|
-
throw transformedError;
|
|
1616
|
-
}
|
|
1617
|
-
}
|
|
1618
|
-
exports.searchSubmissionsByNamespace = searchSubmissionsByNamespace;
|
|
1619
|
-
/**
|
|
1620
|
-
* Creates a query to retrieve a list of submissions.
|
|
1621
|
-
*
|
|
1622
|
-
*
|
|
1623
|
-
* The `querySubmissionsByNamespace()` method builds a query to retrieve a list of submissions from the specified namespace and returns a [`SubmissionsQueryBuilder`](#submissionsquerybuilder) object.
|
|
1624
|
-
* >**Note:** You can only query submissions from a specified namespace. Use the query filter on the `namespace` field, otherwise you will receive an error.
|
|
1625
|
-
*
|
|
1626
|
-
* The returned object contains the query definition, which is typically used to run the query using the [`find()`](#submissionsquerybuilder/find) method.
|
|
1627
|
-
*
|
|
1628
|
-
* You can refine the query by chaining `SubmissionsQueryBuilder` methods onto the query. `SubmissionsQueryBuilder` methods enable you to sort, filter, and control the results that `querySubmissionsByNamespace()` returns.
|
|
1629
|
-
*
|
|
1630
|
-
* The following `SubmissionsQueryBuilder` methods are supported for `querySubmissionsByNamespace()`. For a full description of the Submissions object, see the object returned for the [`items`](#submissionsqueryresult/items) property in [`SubmissionsQueryResult`](#submissionsqueryresult).
|
|
1631
|
-
* @public
|
|
1632
|
-
* @param options - Query options.
|
|
1633
|
-
* @permissionScope Manage Submissions
|
|
1634
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
1635
|
-
* @permissionScope Manage Orders
|
|
1636
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
|
|
1637
|
-
* @permissionScope Manage form submissions.
|
|
1638
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
1639
|
-
* @permissionScope Read Orders
|
|
1640
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-ORDERS
|
|
1641
|
-
* @permissionScope Read Submissions
|
|
1642
|
-
* @permissionScopeId SCOPE.DC-FORMS.READ-SUBMISSIONS
|
|
1643
|
-
* @permissionId WIX_FORMS.SUBMISSION_READ_ANY
|
|
1644
|
-
* @applicableIdentity APP
|
|
1645
|
-
* @fqn wix.forms.v4.FormSubmissionService.QuerySubmissionsByNamespace
|
|
1646
|
-
*/
|
|
1647
|
-
function querySubmissionsByNamespace(options) {
|
|
1648
|
-
// @ts-ignore
|
|
1649
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1650
|
-
return (0, query_builder_1.queryBuilder)({
|
|
1651
|
-
func: async (payload) => {
|
|
1652
|
-
const reqOpts = ambassadorWixFormsV4Submission.querySubmissionsByNamespace({
|
|
1653
|
-
...payload,
|
|
1654
|
-
...(options ?? {}),
|
|
1655
|
-
});
|
|
1656
|
-
sideEffects?.onSiteCall?.();
|
|
1657
|
-
try {
|
|
1658
|
-
const result = await httpClient.request(reqOpts);
|
|
1659
|
-
sideEffects?.onSuccess?.(result);
|
|
1660
|
-
return result;
|
|
1661
|
-
}
|
|
1662
|
-
catch (err) {
|
|
1663
|
-
sideEffects?.onError?.(err);
|
|
1664
|
-
throw err;
|
|
1665
|
-
}
|
|
1666
|
-
},
|
|
1667
|
-
requestTransformer: (query) => {
|
|
1668
|
-
const args = [query, options];
|
|
1669
|
-
return (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
1670
|
-
...args?.[1],
|
|
1671
|
-
query: args?.[0],
|
|
1672
|
-
});
|
|
1673
|
-
},
|
|
1674
|
-
responseTransformer: ({ data, }) => {
|
|
1675
|
-
const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(data);
|
|
1676
|
-
return {
|
|
1677
|
-
items: transformedData?.submissions,
|
|
1678
|
-
pagingMetadata: transformedData?.metadata,
|
|
1679
|
-
};
|
|
1680
|
-
},
|
|
1681
|
-
errorTransformer: (err) => {
|
|
1682
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1683
|
-
spreadPathsToArguments: {},
|
|
1684
|
-
explicitPathsToArguments: { query: '$[0]' },
|
|
1685
|
-
singleArgumentUnchanged: false,
|
|
1686
|
-
});
|
|
1687
|
-
throw transformedError;
|
|
1688
|
-
},
|
|
1689
|
-
pagingMethod: 'CURSOR',
|
|
1690
|
-
transformationPaths: {},
|
|
1691
|
-
});
|
|
1692
|
-
}
|
|
1693
|
-
exports.querySubmissionsByNamespace = querySubmissionsByNamespace;
|
|
1694
|
-
/**
|
|
1695
|
-
* > **Note:** The Form Submission API only works with the Wix Forms app. Call [GetAppInstance](https://dev.wix.com/docs/rest/api-reference/app-management/apps/app-instance/get-app-instance) to confirm that the app named `wix_forms` is installed on the site.
|
|
1696
|
-
* <br>
|
|
1697
|
-
* Counts the number of submissions belonging to forms that were filtered and contain a provided expression.
|
|
1698
|
-
* @param filter - A filter object. Must filter by namespace.
|
|
1699
|
-
* @public
|
|
1700
|
-
* @documentationMaturity preview
|
|
1701
|
-
* @requiredField filter
|
|
1702
|
-
* @permissionId WIX_FORMS.SUBMISSION_READ_ANY
|
|
1703
|
-
* @permissionScope Manage Submissions
|
|
1704
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
1705
|
-
* @permissionScope Manage Orders
|
|
1706
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
|
|
1707
|
-
* @permissionScope Manage form submissions.
|
|
1708
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
1709
|
-
* @permissionScope Read Orders
|
|
1710
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-ORDERS
|
|
1711
|
-
* @permissionScope Read Submissions
|
|
1712
|
-
* @permissionScopeId SCOPE.DC-FORMS.READ-SUBMISSIONS
|
|
1713
|
-
* @applicableIdentity APP
|
|
1714
|
-
* @fqn wix.forms.v4.FormSubmissionService.CountSubmissionsByFilter
|
|
1715
|
-
*/
|
|
1716
|
-
async function countSubmissionsByFilter(filter, options) {
|
|
1717
|
-
// @ts-ignore
|
|
1718
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1719
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
1720
|
-
filter: filter,
|
|
1721
|
-
search: options?.search,
|
|
1722
|
-
});
|
|
1723
|
-
const reqOpts = ambassadorWixFormsV4Submission.countSubmissionsByFilter(payload);
|
|
1724
|
-
sideEffects?.onSiteCall?.();
|
|
1725
|
-
try {
|
|
1726
|
-
const result = await httpClient.request(reqOpts);
|
|
1727
|
-
sideEffects?.onSuccess?.(result);
|
|
1728
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1729
|
-
}
|
|
1730
|
-
catch (err) {
|
|
1731
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1732
|
-
spreadPathsToArguments: {},
|
|
1733
|
-
explicitPathsToArguments: { filter: '$[0]', search: '$[1].search' },
|
|
1734
|
-
singleArgumentUnchanged: false,
|
|
1735
|
-
}, ['filter', 'options']);
|
|
1736
|
-
sideEffects?.onError?.(err);
|
|
1737
|
-
throw transformedError;
|
|
1738
|
-
}
|
|
1739
|
-
}
|
|
1740
|
-
exports.countSubmissionsByFilter = countSubmissionsByFilter;
|
|
1741
|
-
/**
|
|
1742
|
-
* Counts the number of submissions belonging to the specified forms.
|
|
1743
|
-
*
|
|
1744
|
-
*
|
|
1745
|
-
* The `countSubmissions()` function is useful for analytics and tracking purposes. For example, if you have a contact form on your website, you can use this function to track how many submissions it receives daily, weekly, or monthly.
|
|
1746
|
-
* @public
|
|
1747
|
-
* @requiredField formIds
|
|
1748
|
-
* @requiredField namespace
|
|
1749
|
-
* @param namespace - The app which the form submissions belong to. For example, the namespace for the Wix Forms app is `wix.form_app.form`. Call `getSubmission()` to retrieve the namespace.
|
|
1750
|
-
* @param formIds - Form IDs which submissions should be counted.
|
|
1751
|
-
* @permissionId WIX_FORMS.SUBMISSION_READ_ANY
|
|
1752
|
-
* @permissionScope Manage Submissions
|
|
1753
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
1754
|
-
* @permissionScope Manage Orders
|
|
1755
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
|
|
1756
|
-
* @permissionScope Manage form submissions.
|
|
1757
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
1758
|
-
* @permissionScope Read Orders
|
|
1759
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-ORDERS
|
|
1760
|
-
* @permissionScope Read Submissions
|
|
1761
|
-
* @permissionScopeId SCOPE.DC-FORMS.READ-SUBMISSIONS
|
|
1762
|
-
* @applicableIdentity APP
|
|
1763
|
-
* @fqn wix.forms.v4.FormSubmissionService.CountSubmissions
|
|
1764
|
-
*/
|
|
1765
|
-
async function countSubmissions(formIds, namespace, options) {
|
|
1766
|
-
// @ts-ignore
|
|
1767
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
1768
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
1769
|
-
formIds: formIds,
|
|
1770
|
-
namespace: namespace,
|
|
1771
|
-
statuses: options?.statuses,
|
|
1772
|
-
});
|
|
1773
|
-
const reqOpts = ambassadorWixFormsV4Submission.countSubmissions(payload);
|
|
1774
|
-
sideEffects?.onSiteCall?.();
|
|
1775
|
-
try {
|
|
1776
|
-
const result = await httpClient.request(reqOpts);
|
|
1777
|
-
sideEffects?.onSuccess?.(result);
|
|
1778
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1779
|
-
}
|
|
1780
|
-
catch (err) {
|
|
1781
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1782
|
-
spreadPathsToArguments: {},
|
|
1783
|
-
explicitPathsToArguments: {
|
|
1784
|
-
formIds: '$[0]',
|
|
1785
|
-
namespace: '$[1]',
|
|
1786
|
-
statuses: '$[2].statuses',
|
|
1787
|
-
},
|
|
1788
|
-
singleArgumentUnchanged: false,
|
|
1789
|
-
}, ['formIds', 'namespace', 'options']);
|
|
1790
|
-
sideEffects?.onError?.(err);
|
|
1791
|
-
throw transformedError;
|
|
1792
|
-
}
|
|
1793
|
-
}
|
|
1794
|
-
exports.countSubmissions = countSubmissions;
|
|
1795
|
-
/**
|
|
1796
|
-
* > **Note:**
|
|
1797
|
-
* > The Submissions API is only available in the Wix Studio editor.
|
|
1798
|
-
*
|
|
1799
|
-
* Counts the number of submissions belonging to the specified forms.
|
|
1800
|
-
* @param formIds - Form IDs.
|
|
1801
|
-
* @param namespace - Identifies the app which the form submissions belong to. For example, the namespace for the Wix Forms App is `"wix.form_app.form"`. The namespace of a submission can be retrieved using the Get Submission endpoint.
|
|
1802
|
-
* @public
|
|
1803
|
-
* @documentationMaturity preview
|
|
1804
|
-
* @requiredField formIds
|
|
1805
|
-
* @requiredField namespace
|
|
1806
|
-
* @permissionId WIX_FORMS.SUBMISSION_READ_ANY
|
|
1807
|
-
* @permissionScope Manage Submissions
|
|
1808
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
1809
|
-
* @permissionScope Manage Orders
|
|
1810
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
|
|
1811
|
-
* @permissionScope Manage form submissions.
|
|
1812
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
1813
|
-
* @permissionScope Read Orders
|
|
1814
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-ORDERS
|
|
1815
|
-
* @permissionScope Read Submissions
|
|
1816
|
-
* @permissionScopeId SCOPE.DC-FORMS.READ-SUBMISSIONS
|
|
1817
|
-
* @applicableIdentity APP
|
|
1818
|
-
* @fqn wix.forms.v4.FormSubmissionService.CountDeletedSubmissions
|
|
1819
|
-
*/
|
|
1820
|
-
async function countDeletedSubmissions(formIds, namespace, options) {
|
|
1821
|
-
// @ts-ignore
|
|
1822
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
1823
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
1824
|
-
formIds: formIds,
|
|
1825
|
-
namespace: namespace,
|
|
1826
|
-
statuses: options?.statuses,
|
|
1827
|
-
});
|
|
1828
|
-
const reqOpts = ambassadorWixFormsV4Submission.countDeletedSubmissions(payload);
|
|
1829
|
-
sideEffects?.onSiteCall?.();
|
|
1830
|
-
try {
|
|
1831
|
-
const result = await httpClient.request(reqOpts);
|
|
1832
|
-
sideEffects?.onSuccess?.(result);
|
|
1833
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1834
|
-
}
|
|
1835
|
-
catch (err) {
|
|
1836
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1837
|
-
spreadPathsToArguments: {},
|
|
1838
|
-
explicitPathsToArguments: {
|
|
1839
|
-
formIds: '$[0]',
|
|
1840
|
-
namespace: '$[1]',
|
|
1841
|
-
statuses: '$[2].statuses',
|
|
1842
|
-
},
|
|
1843
|
-
singleArgumentUnchanged: false,
|
|
1844
|
-
}, ['formIds', 'namespace', 'options']);
|
|
1845
|
-
sideEffects?.onError?.(err);
|
|
1846
|
-
throw transformedError;
|
|
1847
|
-
}
|
|
1848
|
-
}
|
|
1849
|
-
exports.countDeletedSubmissions = countDeletedSubmissions;
|
|
1850
|
-
/**
|
|
1851
|
-
* Retrieves a URL generated by the [Media Manager](https://www.wix.com/velo/reference/wix-media-v2/files/generatefileuploadurl) to use when creating a submission that includes a field for uploading files.
|
|
1852
|
-
* > **Note:** You need at least a [Standard Premium](https://support.wix.com/en/article/choosing-a-premium-plan) plan for your site to upload files.
|
|
1853
|
-
*
|
|
1854
|
-
*
|
|
1855
|
-
* To learn how external clients can use the generated upload URL to upload a file to the Media Manager, see [Upload API](https://www.wix.com/velo/reference/wix-media-v2/files/upload-api).
|
|
1856
|
-
* @param formId - Form ID.
|
|
1857
|
-
* @param filename - Name of file to upload.
|
|
1858
|
-
* @param mimeType - [Mime type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#) of file to upload.
|
|
1859
|
-
*
|
|
1860
|
-
* For example, `'image/png'`
|
|
1861
|
-
* @public
|
|
1862
|
-
* @requiredField filename
|
|
1863
|
-
* @requiredField formId
|
|
1864
|
-
* @requiredField mimeType
|
|
1865
|
-
* @permissionId WIX_FORMS.SUBMISSION_CREATE
|
|
1866
|
-
* @permissionScope Manage Submissions
|
|
1867
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
1868
|
-
* @permissionScope Manage form submissions.
|
|
1869
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
1870
|
-
* @permissionScope Manage Challenges
|
|
1871
|
-
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
1872
|
-
* @applicableIdentity APP
|
|
1873
|
-
* @applicableIdentity VISITOR
|
|
1874
|
-
* @fqn wix.forms.v4.FormSubmissionService.GetMediaUploadURL
|
|
1875
|
-
*/
|
|
1876
|
-
async function getMediaUploadUrl(formId, filename, mimeType) {
|
|
1877
|
-
// @ts-ignore
|
|
1878
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
1879
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
1880
|
-
formId: formId,
|
|
1881
|
-
filename: filename,
|
|
1882
|
-
mimeType: mimeType,
|
|
1883
|
-
});
|
|
1884
|
-
const reqOpts = ambassadorWixFormsV4Submission.getMediaUploadUrl(payload);
|
|
1885
|
-
sideEffects?.onSiteCall?.();
|
|
1886
|
-
try {
|
|
1887
|
-
const result = await httpClient.request(reqOpts);
|
|
1888
|
-
sideEffects?.onSuccess?.(result);
|
|
1889
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1890
|
-
}
|
|
1891
|
-
catch (err) {
|
|
1892
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1893
|
-
spreadPathsToArguments: {},
|
|
1894
|
-
explicitPathsToArguments: {
|
|
1895
|
-
formId: '$[0]',
|
|
1896
|
-
filename: '$[1]',
|
|
1897
|
-
mimeType: '$[2]',
|
|
1898
|
-
},
|
|
1899
|
-
singleArgumentUnchanged: false,
|
|
1900
|
-
}, ['formId', 'filename', 'mimeType']);
|
|
1901
|
-
sideEffects?.onError?.(err);
|
|
1902
|
-
throw transformedError;
|
|
1903
|
-
}
|
|
1904
|
-
}
|
|
1905
|
-
exports.getMediaUploadUrl = getMediaUploadUrl;
|
|
1906
|
-
/**
|
|
1907
|
-
* Marks form submissions as "seen".
|
|
1908
|
-
*
|
|
1909
|
-
*
|
|
1910
|
-
* This function marks the submissions as if they were seen by the site owner. Only site collaborators with the **[Manage Submission](https://support.wix.com/en/article/roles-permissions-accessing-roles-permissions)** permissions can mark submissions.
|
|
1911
|
-
* @public
|
|
1912
|
-
* @requiredField formId
|
|
1913
|
-
* @requiredField ids
|
|
1914
|
-
* @param ids - IDs of submissions to mark as seen.
|
|
1915
|
-
* @param formId - ID of the form which the submissions belong to.
|
|
1916
|
-
* @permissionId WIX_FORMS.SUBMISSION_READ_ANY
|
|
1917
|
-
* @permissionScope Manage Submissions
|
|
1918
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
1919
|
-
* @permissionScope Manage Orders
|
|
1920
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
|
|
1921
|
-
* @permissionScope Manage form submissions.
|
|
1922
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
1923
|
-
* @permissionScope Read Orders
|
|
1924
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-ORDERS
|
|
1925
|
-
* @permissionScope Read Submissions
|
|
1926
|
-
* @permissionScopeId SCOPE.DC-FORMS.READ-SUBMISSIONS
|
|
1927
|
-
* @applicableIdentity APP
|
|
1928
|
-
* @fqn wix.forms.v4.FormSubmissionService.BulkMarkSubmissionsAsSeen
|
|
1929
|
-
*/
|
|
1930
|
-
async function bulkMarkSubmissionsAsSeen(ids, formId) {
|
|
1931
|
-
// @ts-ignore
|
|
1932
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1933
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
1934
|
-
ids: ids,
|
|
1935
|
-
formId: formId,
|
|
1936
|
-
});
|
|
1937
|
-
const reqOpts = ambassadorWixFormsV4Submission.bulkMarkSubmissionsAsSeen(payload);
|
|
1938
|
-
sideEffects?.onSiteCall?.();
|
|
1939
|
-
try {
|
|
1940
|
-
const result = await httpClient.request(reqOpts);
|
|
1941
|
-
sideEffects?.onSuccess?.(result);
|
|
1942
|
-
}
|
|
1943
|
-
catch (err) {
|
|
1944
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1945
|
-
spreadPathsToArguments: {},
|
|
1946
|
-
explicitPathsToArguments: { ids: '$[0]', formId: '$[1]' },
|
|
1947
|
-
singleArgumentUnchanged: false,
|
|
1948
|
-
}, ['ids', 'formId']);
|
|
1949
|
-
sideEffects?.onError?.(err);
|
|
1950
|
-
throw transformedError;
|
|
1951
|
-
}
|
|
1952
|
-
}
|
|
1953
|
-
exports.bulkMarkSubmissionsAsSeen = bulkMarkSubmissionsAsSeen;
|
|
1954
|
-
/**
|
|
1955
|
-
* Gets submission as document which may include the document download url if the document is ready.
|
|
1956
|
-
* @param submissionId - Submission ID.
|
|
1957
|
-
* @public
|
|
1958
|
-
* @documentationMaturity preview
|
|
1959
|
-
* @requiredField submissionId
|
|
1960
|
-
* @permissionId WIX_FORMS.SUBMISSION_UPDATE_ANY
|
|
1961
|
-
* @permissionScope Manage Submissions
|
|
1962
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
1963
|
-
* @permissionScope Manage form submissions.
|
|
1964
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
1965
|
-
* @applicableIdentity APP
|
|
1966
|
-
* @fqn wix.forms.v4.FormSubmissionService.GetSubmissionDownloadUrl
|
|
1967
|
-
*/
|
|
1968
|
-
async function getSubmissionDownloadUrl(submissionId) {
|
|
1969
|
-
// @ts-ignore
|
|
1970
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1971
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
1972
|
-
submissionId: submissionId,
|
|
1973
|
-
});
|
|
1974
|
-
const reqOpts = ambassadorWixFormsV4Submission.getSubmissionDownloadUrl(payload);
|
|
1975
|
-
sideEffects?.onSiteCall?.();
|
|
1976
|
-
try {
|
|
1977
|
-
const result = await httpClient.request(reqOpts);
|
|
1978
|
-
sideEffects?.onSuccess?.(result);
|
|
1979
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1980
|
-
}
|
|
1981
|
-
catch (err) {
|
|
1982
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1983
|
-
spreadPathsToArguments: {},
|
|
1984
|
-
explicitPathsToArguments: { submissionId: '$[0]' },
|
|
1985
|
-
singleArgumentUnchanged: false,
|
|
1986
|
-
}, ['submissionId']);
|
|
1987
|
-
sideEffects?.onError?.(err);
|
|
1988
|
-
throw transformedError;
|
|
1989
|
-
}
|
|
1990
|
-
}
|
|
1991
|
-
exports.getSubmissionDownloadUrl = getSubmissionDownloadUrl;
|
|
1992
|
-
/**
|
|
1993
|
-
* Retrieves a submission formatted by language
|
|
1994
|
-
* @param submissionId - Submission ID.
|
|
1995
|
-
* @public
|
|
1996
|
-
* @documentationMaturity preview
|
|
1997
|
-
* @requiredField submissionId
|
|
1998
|
-
* @permissionId WIX_FORMS.SUBMISSION_READ_ANY
|
|
1999
|
-
* @permissionScope Manage Submissions
|
|
2000
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
2001
|
-
* @permissionScope Manage Orders
|
|
2002
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
|
|
2003
|
-
* @permissionScope Manage form submissions.
|
|
2004
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
2005
|
-
* @permissionScope Read Orders
|
|
2006
|
-
* @permissionScopeId SCOPE.DC-PAIDPLANS.READ-ORDERS
|
|
2007
|
-
* @permissionScope Read Submissions
|
|
2008
|
-
* @permissionScopeId SCOPE.DC-FORMS.READ-SUBMISSIONS
|
|
2009
|
-
* @applicableIdentity APP
|
|
2010
|
-
* @fqn wix.forms.v4.FormSubmissionService.GetFormattedSubmission
|
|
2011
|
-
*/
|
|
2012
|
-
async function getFormattedSubmission(submissionId) {
|
|
2013
|
-
// @ts-ignore
|
|
2014
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
2015
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
2016
|
-
submissionId: submissionId,
|
|
2017
|
-
});
|
|
2018
|
-
const reqOpts = ambassadorWixFormsV4Submission.getFormattedSubmission(payload);
|
|
2019
|
-
sideEffects?.onSiteCall?.();
|
|
2020
|
-
try {
|
|
2021
|
-
const result = await httpClient.request(reqOpts);
|
|
2022
|
-
sideEffects?.onSuccess?.(result);
|
|
2023
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2024
|
-
}
|
|
2025
|
-
catch (err) {
|
|
2026
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
2027
|
-
spreadPathsToArguments: {},
|
|
2028
|
-
explicitPathsToArguments: { submissionId: '$[0]' },
|
|
2029
|
-
singleArgumentUnchanged: false,
|
|
2030
|
-
}, ['submissionId']);
|
|
2031
|
-
sideEffects?.onError?.(err);
|
|
2032
|
-
throw transformedError;
|
|
2033
|
-
}
|
|
2034
|
-
}
|
|
2035
|
-
exports.getFormattedSubmission = getFormattedSubmission;
|
|
2036
|
-
/**
|
|
2037
|
-
* Update Extended Fields of the Form
|
|
2038
|
-
* @param _id - ID of the entity to update.
|
|
2039
|
-
* @param namespace - Identifier for the app whose extended fields are being updated.
|
|
2040
|
-
* @public
|
|
2041
|
-
* @documentationMaturity preview
|
|
2042
|
-
* @requiredField _id
|
|
2043
|
-
* @requiredField namespace
|
|
2044
|
-
* @requiredField options
|
|
2045
|
-
* @requiredField options.namespaceData
|
|
2046
|
-
* @permissionId WIX_FORMS.SUBMISSION_UPDATE_ANY
|
|
2047
|
-
* @permissionScope Manage Submissions
|
|
2048
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
2049
|
-
* @permissionScope Manage form submissions.
|
|
2050
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
2051
|
-
* @applicableIdentity APP
|
|
2052
|
-
* @fqn wix.forms.v4.FormSubmissionService.UpdateExtendedFields
|
|
2053
|
-
*/
|
|
2054
|
-
async function updateExtendedFields(_id, namespace, options) {
|
|
2055
|
-
// @ts-ignore
|
|
2056
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
2057
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
2058
|
-
id: _id,
|
|
2059
|
-
namespace: namespace,
|
|
2060
|
-
namespaceData: options?.namespaceData,
|
|
2061
|
-
});
|
|
2062
|
-
const reqOpts = ambassadorWixFormsV4Submission.updateExtendedFields(payload);
|
|
2063
|
-
sideEffects?.onSiteCall?.();
|
|
2064
|
-
try {
|
|
2065
|
-
const result = await httpClient.request(reqOpts);
|
|
2066
|
-
sideEffects?.onSuccess?.(result);
|
|
2067
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2068
|
-
}
|
|
2069
|
-
catch (err) {
|
|
2070
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
2071
|
-
spreadPathsToArguments: {},
|
|
2072
|
-
explicitPathsToArguments: {
|
|
2073
|
-
id: '$[0]',
|
|
2074
|
-
namespace: '$[1]',
|
|
2075
|
-
namespaceData: '$[2].namespaceData',
|
|
2076
|
-
},
|
|
2077
|
-
singleArgumentUnchanged: false,
|
|
2078
|
-
}, ['_id', 'namespace', 'options']);
|
|
2079
|
-
sideEffects?.onError?.(err);
|
|
2080
|
-
throw transformedError;
|
|
2081
|
-
}
|
|
2082
|
-
}
|
|
2083
|
-
exports.updateExtendedFields = updateExtendedFields;
|
|
2084
|
-
/**
|
|
2085
|
-
* Bulk update tags on form submissions.
|
|
2086
|
-
* @param submissionIds - Submission IDs to update tags for.
|
|
2087
|
-
* @internal
|
|
2088
|
-
* @documentationMaturity preview
|
|
2089
|
-
* @requiredField submissionIds
|
|
2090
|
-
* @permissionId WIX_FORMS.SUBMISSION_UPDATE_ANY
|
|
2091
|
-
* @permissionScope Manage Submissions
|
|
2092
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
2093
|
-
* @permissionScope Manage form submissions.
|
|
2094
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
2095
|
-
* @applicableIdentity APP
|
|
2096
|
-
* @fqn wix.forms.v4.FormSubmissionService.BulkUpdateFormSubmissionTags
|
|
2097
|
-
*/
|
|
2098
|
-
async function bulkUpdateFormSubmissionTags(submissionIds, options) {
|
|
2099
|
-
// @ts-ignore
|
|
2100
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2101
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
2102
|
-
submissionIds: submissionIds,
|
|
2103
|
-
assignTags: options?.assignTags,
|
|
2104
|
-
unassignTags: options?.unassignTags,
|
|
2105
|
-
});
|
|
2106
|
-
const reqOpts = ambassadorWixFormsV4Submission.bulkUpdateFormSubmissionTags(payload);
|
|
2107
|
-
sideEffects?.onSiteCall?.();
|
|
2108
|
-
try {
|
|
2109
|
-
const result = await httpClient.request(reqOpts);
|
|
2110
|
-
sideEffects?.onSuccess?.(result);
|
|
2111
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2112
|
-
}
|
|
2113
|
-
catch (err) {
|
|
2114
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
2115
|
-
spreadPathsToArguments: {},
|
|
2116
|
-
explicitPathsToArguments: {
|
|
2117
|
-
submissionIds: '$[0]',
|
|
2118
|
-
assignTags: '$[1].assignTags',
|
|
2119
|
-
unassignTags: '$[1].unassignTags',
|
|
2120
|
-
},
|
|
2121
|
-
singleArgumentUnchanged: false,
|
|
2122
|
-
}, ['submissionIds', 'options']);
|
|
2123
|
-
sideEffects?.onError?.(err);
|
|
2124
|
-
throw transformedError;
|
|
2125
|
-
}
|
|
2126
|
-
}
|
|
2127
|
-
exports.bulkUpdateFormSubmissionTags = bulkUpdateFormSubmissionTags;
|
|
2128
|
-
/**
|
|
2129
|
-
* Bulk update tags on form submissions by filter.
|
|
2130
|
-
* @param filter - Filter to select the submission to update
|
|
2131
|
-
* @internal
|
|
2132
|
-
* @documentationMaturity preview
|
|
2133
|
-
* @requiredField filter
|
|
2134
|
-
* @permissionId WIX_FORMS.SUBMISSION_UPDATE_ANY
|
|
2135
|
-
* @permissionScope Manage Submissions
|
|
2136
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
2137
|
-
* @permissionScope Manage form submissions.
|
|
2138
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
2139
|
-
* @applicableIdentity APP
|
|
2140
|
-
* @fqn wix.forms.v4.FormSubmissionService.BulkUpdateFormSubmissionTagsByFilter
|
|
2141
|
-
*/
|
|
2142
|
-
async function bulkUpdateFormSubmissionTagsByFilter(filter, options) {
|
|
2143
|
-
// @ts-ignore
|
|
2144
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2145
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
2146
|
-
filter: filter,
|
|
2147
|
-
assignTags: options?.assignTags,
|
|
2148
|
-
unassignTags: options?.unassignTags,
|
|
2149
|
-
});
|
|
2150
|
-
const reqOpts = ambassadorWixFormsV4Submission.bulkUpdateFormSubmissionTagsByFilter(payload);
|
|
2151
|
-
sideEffects?.onSiteCall?.();
|
|
2152
|
-
try {
|
|
2153
|
-
const result = await httpClient.request(reqOpts);
|
|
2154
|
-
sideEffects?.onSuccess?.(result);
|
|
2155
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2156
|
-
}
|
|
2157
|
-
catch (err) {
|
|
2158
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
2159
|
-
spreadPathsToArguments: {},
|
|
2160
|
-
explicitPathsToArguments: {
|
|
2161
|
-
filter: '$[0]',
|
|
2162
|
-
assignTags: '$[1].assignTags',
|
|
2163
|
-
unassignTags: '$[1].unassignTags',
|
|
2164
|
-
},
|
|
2165
|
-
singleArgumentUnchanged: false,
|
|
2166
|
-
}, ['filter', 'options']);
|
|
2167
|
-
sideEffects?.onError?.(err);
|
|
2168
|
-
throw transformedError;
|
|
2169
|
-
}
|
|
2170
|
-
}
|
|
2171
|
-
exports.bulkUpdateFormSubmissionTagsByFilter = bulkUpdateFormSubmissionTagsByFilter;
|
|
2172
|
-
/**
|
|
2173
|
-
* Called to validate submission before creation.
|
|
2174
|
-
* @param submission - Submission to validate.
|
|
2175
|
-
* @public
|
|
2176
|
-
* @documentationMaturity preview
|
|
2177
|
-
* @requiredField submission
|
|
2178
|
-
* @permissionId WIX_FORMS.SUBMISSION_CREATE
|
|
2179
|
-
* @permissionScope Manage Submissions
|
|
2180
|
-
* @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
|
|
2181
|
-
* @permissionScope Manage form submissions.
|
|
2182
|
-
* @permissionScopeId SCOPE.FORMS.MANAGE-SUBMISSIONS
|
|
2183
|
-
* @permissionScope Manage Challenges
|
|
2184
|
-
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
2185
|
-
* @applicableIdentity APP
|
|
2186
|
-
* @applicableIdentity VISITOR
|
|
2187
|
-
* @fqn wix.forms.v4.FormSubmissionService.ValidateFormSubmission
|
|
2188
|
-
*/
|
|
2189
|
-
async function validateFormSubmission(submission, options) {
|
|
2190
|
-
// @ts-ignore
|
|
2191
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2192
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
2193
|
-
submission: submission,
|
|
2194
|
-
additionalMetadata: options?.additionalMetadata,
|
|
2195
|
-
});
|
|
2196
|
-
const reqOpts = ambassadorWixFormsV4Submission.validateFormSubmission(payload);
|
|
2197
|
-
sideEffects?.onSiteCall?.();
|
|
2198
|
-
try {
|
|
2199
|
-
const result = await httpClient.request(reqOpts);
|
|
2200
|
-
sideEffects?.onSuccess?.(result);
|
|
2201
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2202
|
-
}
|
|
2203
|
-
catch (err) {
|
|
2204
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
2205
|
-
spreadPathsToArguments: {},
|
|
2206
|
-
explicitPathsToArguments: {
|
|
2207
|
-
submission: '$[0]',
|
|
2208
|
-
additionalMetadata: '$[1].additionalMetadata',
|
|
2209
|
-
},
|
|
2210
|
-
singleArgumentUnchanged: false,
|
|
2211
|
-
}, ['submission', 'options']);
|
|
2212
|
-
sideEffects?.onError?.(err);
|
|
2213
|
-
throw transformedError;
|
|
2214
|
-
}
|
|
2215
|
-
}
|
|
2216
|
-
exports.validateFormSubmission = validateFormSubmission;
|
|
2217
|
-
//# sourceMappingURL=forms-v4-submission-submissions.universal.js.map
|