@wix/forms 1.0.101 → 1.0.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/context.d.ts +3 -0
- package/build/cjs/context.js +30 -0
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.d.ts +3 -0
- package/build/cjs/index.js +30 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/meta.d.ts +3 -0
- package/build/cjs/meta.js +30 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/context.d.ts +3 -0
- package/build/es/context.js +4 -0
- package/build/es/context.js.map +1 -0
- package/build/es/index.d.ts +3 -0
- package/build/es/index.js +4 -0
- package/build/es/index.js.map +1 -0
- package/build/es/meta.d.ts +3 -0
- package/build/es/meta.js +4 -0
- package/build/es/meta.js.map +1 -0
- package/package.json +12 -8
- package/type-bundles/context.bundle.d.ts +282 -0
- package/type-bundles/index.bundle.d.ts +6140 -0
- package/type-bundles/meta.bundle.d.ts +8458 -0
- package/type-bundles/service-plugins-context.bundle.d.ts +7 -8
- package/type-bundles/service-plugins.bundle.d.ts +5 -0
|
@@ -0,0 +1,30 @@
|
|
|
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.submissions = exports.formSpamSubmissionReports = exports.forms = void 0;
|
|
27
|
+
exports.forms = __importStar(require("@wix/forms_forms/context"));
|
|
28
|
+
exports.formSpamSubmissionReports = __importStar(require("@wix/forms_form-spam-submission-reports/context"));
|
|
29
|
+
exports.submissions = __importStar(require("@wix/forms_submissions/context"));
|
|
30
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kEAAkD;AAClD,6GAA6F;AAC7F,8EAA8D"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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.submissions = exports.formSpamSubmissionReports = exports.forms = void 0;
|
|
27
|
+
exports.forms = __importStar(require("@wix/forms_forms"));
|
|
28
|
+
exports.formSpamSubmissionReports = __importStar(require("@wix/forms_form-spam-submission-reports"));
|
|
29
|
+
exports.submissions = __importStar(require("@wix/forms_submissions"));
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA0C;AAC1C,qGAAqF;AACrF,sEAAsD"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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.submissions = exports.formSpamSubmissionReports = exports.forms = void 0;
|
|
27
|
+
exports.forms = __importStar(require("@wix/forms_forms/meta"));
|
|
28
|
+
exports.formSpamSubmissionReports = __importStar(require("@wix/forms_form-spam-submission-reports/meta"));
|
|
29
|
+
exports.submissions = __importStar(require("@wix/forms_submissions/meta"));
|
|
30
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAA+C;AAC/C,0GAA0F;AAC1F,2EAA2D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAClD,OAAO,KAAK,yBAAyB,MAAM,iDAAiD,CAAC;AAC7F,OAAO,KAAK,WAAW,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,yBAAyB,MAAM,yCAAyC,CAAC;AACrF,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC"}
|
package/build/es/meta.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAC;AAC/C,OAAO,KAAK,yBAAyB,MAAM,8CAA8C,CAAC;AAC1F,OAAO,KAAK,WAAW,MAAM,6BAA6B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/forms",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.103",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -19,11 +19,10 @@
|
|
|
19
19
|
"service-plugins"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@wix/forms_form-
|
|
23
|
-
"@wix/
|
|
24
|
-
"@wix/
|
|
25
|
-
"@wix/
|
|
26
|
-
"@wix/sdk-types": "^1.9.1"
|
|
22
|
+
"@wix/forms_form-spam-submission-reports": "1.0.1",
|
|
23
|
+
"@wix/forms_form-submissions": "1.0.4",
|
|
24
|
+
"@wix/forms_forms": "1.0.1",
|
|
25
|
+
"@wix/forms_submissions": "1.0.36"
|
|
27
26
|
},
|
|
28
27
|
"devDependencies": {
|
|
29
28
|
"glob": "^10.4.1",
|
|
@@ -38,9 +37,14 @@
|
|
|
38
37
|
},
|
|
39
38
|
"wix": {
|
|
40
39
|
"artifact": {
|
|
40
|
+
"groupId": "com.wixpress.public-sdk-autogen",
|
|
41
41
|
"artifactId": "forms-public-sdk-autogen",
|
|
42
|
-
"
|
|
42
|
+
"isRootPublicSdk": true
|
|
43
|
+
},
|
|
44
|
+
"sdkDependency": {
|
|
45
|
+
"fqdnNamespace": "",
|
|
46
|
+
"fqdn": ""
|
|
43
47
|
}
|
|
44
48
|
},
|
|
45
|
-
"falconPackageHash": "
|
|
49
|
+
"falconPackageHash": "6bed9ceedbddaaac8d5520619c8a5905d31c7244a203dfec1775eca5"
|
|
46
50
|
}
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
type RESTFunctionDescriptor$2<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$2) => T;
|
|
2
|
+
interface HttpClient$2 {
|
|
3
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
4
|
+
fetchWithAuth: typeof fetch;
|
|
5
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
6
|
+
}
|
|
7
|
+
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
8
|
+
type HttpResponse$2<T = any> = {
|
|
9
|
+
data: T;
|
|
10
|
+
status: number;
|
|
11
|
+
statusText: string;
|
|
12
|
+
headers: any;
|
|
13
|
+
request?: any;
|
|
14
|
+
};
|
|
15
|
+
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
16
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
17
|
+
url: string;
|
|
18
|
+
data?: Data;
|
|
19
|
+
params?: URLSearchParams;
|
|
20
|
+
} & APIMetadata$2;
|
|
21
|
+
type APIMetadata$2 = {
|
|
22
|
+
methodFqn?: string;
|
|
23
|
+
entityFqdn?: string;
|
|
24
|
+
packageName?: string;
|
|
25
|
+
};
|
|
26
|
+
type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
|
|
27
|
+
type EventDefinition$2<Payload = unknown, Type extends string = string> = {
|
|
28
|
+
__type: 'event-definition';
|
|
29
|
+
type: Type;
|
|
30
|
+
isDomainEvent?: boolean;
|
|
31
|
+
transformations?: (envelope: unknown) => Payload;
|
|
32
|
+
__payload: Payload;
|
|
33
|
+
};
|
|
34
|
+
declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
|
|
35
|
+
type EventHandler$2<T extends EventDefinition$2> = (payload: T['__payload']) => void | Promise<void>;
|
|
36
|
+
type BuildEventDefinition$2<T extends EventDefinition$2<any, string>> = (handler: EventHandler$2<T>) => void;
|
|
37
|
+
|
|
38
|
+
declare global {
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
40
|
+
interface SymbolConstructor {
|
|
41
|
+
readonly observable: symbol;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare function createRESTModule$2<T extends RESTFunctionDescriptor$2>(descriptor: T, elevated?: boolean): BuildRESTFunction$2<T> & T;
|
|
46
|
+
|
|
47
|
+
declare function createEventModule$2<T extends EventDefinition$2<any, string>>(eventDefinition: T): BuildEventDefinition$2<T> & T;
|
|
48
|
+
|
|
49
|
+
declare const createForm: ReturnType<typeof createRESTModule$2<typeof publicCreateForm>>;
|
|
50
|
+
declare const bulkCreateForm: ReturnType<typeof createRESTModule$2<typeof publicBulkCreateForm>>;
|
|
51
|
+
declare const cloneForm: ReturnType<typeof createRESTModule$2<typeof publicCloneForm>>;
|
|
52
|
+
declare const getForm: ReturnType<typeof createRESTModule$2<typeof publicGetForm>>;
|
|
53
|
+
declare const updateForm: ReturnType<typeof createRESTModule$2<typeof publicUpdateForm>>;
|
|
54
|
+
declare const removeFormFromTrashBin: ReturnType<typeof createRESTModule$2<typeof publicRemoveFormFromTrashBin>>;
|
|
55
|
+
declare const deleteForm: ReturnType<typeof createRESTModule$2<typeof publicDeleteForm>>;
|
|
56
|
+
declare const restoreFromTrashBin: ReturnType<typeof createRESTModule$2<typeof publicRestoreFromTrashBin>>;
|
|
57
|
+
declare const queryForms: ReturnType<typeof createRESTModule$2<typeof publicQueryForms>>;
|
|
58
|
+
declare const countForms: ReturnType<typeof createRESTModule$2<typeof publicCountForms>>;
|
|
59
|
+
declare const listForms: ReturnType<typeof createRESTModule$2<typeof publicListForms>>;
|
|
60
|
+
declare const getDeletedForm: ReturnType<typeof createRESTModule$2<typeof publicGetDeletedForm>>;
|
|
61
|
+
declare const queryDeletedForms: ReturnType<typeof createRESTModule$2<typeof publicQueryDeletedForms>>;
|
|
62
|
+
declare const listDeletedForms: ReturnType<typeof createRESTModule$2<typeof publicListDeletedForms>>;
|
|
63
|
+
declare const bulkRemoveDeletedField: ReturnType<typeof createRESTModule$2<typeof publicBulkRemoveDeletedField>>;
|
|
64
|
+
declare const updateExtendedFields: ReturnType<typeof createRESTModule$2<typeof publicUpdateExtendedFields>>;
|
|
65
|
+
declare const onFormCreated: ReturnType<typeof createEventModule$2<typeof publicOnFormCreated>>;
|
|
66
|
+
declare const onFormUpdated: ReturnType<typeof createEventModule$2<typeof publicOnFormUpdated>>;
|
|
67
|
+
declare const onFormSubmissionKeysPermanentlyDeleted: ReturnType<typeof createEventModule$2<typeof publicOnFormSubmissionKeysPermanentlyDeleted>>;
|
|
68
|
+
|
|
69
|
+
declare const context$2_bulkCreateForm: typeof bulkCreateForm;
|
|
70
|
+
declare const context$2_bulkRemoveDeletedField: typeof bulkRemoveDeletedField;
|
|
71
|
+
declare const context$2_cloneForm: typeof cloneForm;
|
|
72
|
+
declare const context$2_countForms: typeof countForms;
|
|
73
|
+
declare const context$2_createForm: typeof createForm;
|
|
74
|
+
declare const context$2_deleteForm: typeof deleteForm;
|
|
75
|
+
declare const context$2_getDeletedForm: typeof getDeletedForm;
|
|
76
|
+
declare const context$2_getForm: typeof getForm;
|
|
77
|
+
declare const context$2_listDeletedForms: typeof listDeletedForms;
|
|
78
|
+
declare const context$2_listForms: typeof listForms;
|
|
79
|
+
declare const context$2_onFormCreated: typeof onFormCreated;
|
|
80
|
+
declare const context$2_onFormSubmissionKeysPermanentlyDeleted: typeof onFormSubmissionKeysPermanentlyDeleted;
|
|
81
|
+
declare const context$2_onFormUpdated: typeof onFormUpdated;
|
|
82
|
+
declare const context$2_queryDeletedForms: typeof queryDeletedForms;
|
|
83
|
+
declare const context$2_queryForms: typeof queryForms;
|
|
84
|
+
declare const context$2_removeFormFromTrashBin: typeof removeFormFromTrashBin;
|
|
85
|
+
declare const context$2_restoreFromTrashBin: typeof restoreFromTrashBin;
|
|
86
|
+
declare const context$2_updateExtendedFields: typeof updateExtendedFields;
|
|
87
|
+
declare const context$2_updateForm: typeof updateForm;
|
|
88
|
+
declare namespace context$2 {
|
|
89
|
+
export { context$2_bulkCreateForm as bulkCreateForm, context$2_bulkRemoveDeletedField as bulkRemoveDeletedField, context$2_cloneForm as cloneForm, context$2_countForms as countForms, context$2_createForm as createForm, context$2_deleteForm as deleteForm, context$2_getDeletedForm as getDeletedForm, context$2_getForm as getForm, context$2_listDeletedForms as listDeletedForms, context$2_listForms as listForms, context$2_onFormCreated as onFormCreated, context$2_onFormSubmissionKeysPermanentlyDeleted as onFormSubmissionKeysPermanentlyDeleted, context$2_onFormUpdated as onFormUpdated, context$2_queryDeletedForms as queryDeletedForms, context$2_queryForms as queryForms, context$2_removeFormFromTrashBin as removeFormFromTrashBin, context$2_restoreFromTrashBin as restoreFromTrashBin, context$2_updateExtendedFields as updateExtendedFields, context$2_updateForm as updateForm };
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
|
|
93
|
+
interface HttpClient$1 {
|
|
94
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
95
|
+
fetchWithAuth: typeof fetch;
|
|
96
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
97
|
+
}
|
|
98
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
99
|
+
type HttpResponse$1<T = any> = {
|
|
100
|
+
data: T;
|
|
101
|
+
status: number;
|
|
102
|
+
statusText: string;
|
|
103
|
+
headers: any;
|
|
104
|
+
request?: any;
|
|
105
|
+
};
|
|
106
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
107
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
108
|
+
url: string;
|
|
109
|
+
data?: Data;
|
|
110
|
+
params?: URLSearchParams;
|
|
111
|
+
} & APIMetadata$1;
|
|
112
|
+
type APIMetadata$1 = {
|
|
113
|
+
methodFqn?: string;
|
|
114
|
+
entityFqdn?: string;
|
|
115
|
+
packageName?: string;
|
|
116
|
+
};
|
|
117
|
+
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
118
|
+
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
119
|
+
__type: 'event-definition';
|
|
120
|
+
type: Type;
|
|
121
|
+
isDomainEvent?: boolean;
|
|
122
|
+
transformations?: (envelope: unknown) => Payload;
|
|
123
|
+
__payload: Payload;
|
|
124
|
+
};
|
|
125
|
+
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
126
|
+
type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
|
|
127
|
+
type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
|
|
128
|
+
|
|
129
|
+
declare global {
|
|
130
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
131
|
+
interface SymbolConstructor {
|
|
132
|
+
readonly observable: symbol;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
declare function createRESTModule$1<T extends RESTFunctionDescriptor$1>(descriptor: T, elevated?: boolean): BuildRESTFunction$1<T> & T;
|
|
137
|
+
|
|
138
|
+
declare function createEventModule$1<T extends EventDefinition$1<any, string>>(eventDefinition: T): BuildEventDefinition$1<T> & T;
|
|
139
|
+
|
|
140
|
+
declare const checkForSpam: ReturnType<typeof createRESTModule$1<typeof publicCheckForSpam>>;
|
|
141
|
+
declare const createFormSpamSubmissionReport: ReturnType<typeof createRESTModule$1<typeof publicCreateFormSpamSubmissionReport>>;
|
|
142
|
+
declare const getFormSpamSubmissionReport: ReturnType<typeof createRESTModule$1<typeof publicGetFormSpamSubmissionReport>>;
|
|
143
|
+
declare const deleteFormSpamSubmissionReport: ReturnType<typeof createRESTModule$1<typeof publicDeleteFormSpamSubmissionReport>>;
|
|
144
|
+
declare const bulkDeleteFormSpamSubmissionReport: ReturnType<typeof createRESTModule$1<typeof publicBulkDeleteFormSpamSubmissionReport>>;
|
|
145
|
+
declare const bulkDeleteFormSpamSubmissionReportByFilter: ReturnType<typeof createRESTModule$1<typeof publicBulkDeleteFormSpamSubmissionReportByFilter>>;
|
|
146
|
+
declare const reportNotSpamSubmission: ReturnType<typeof createRESTModule$1<typeof publicReportNotSpamSubmission>>;
|
|
147
|
+
declare const bulkReportNotSpamSubmission: ReturnType<typeof createRESTModule$1<typeof publicBulkReportNotSpamSubmission>>;
|
|
148
|
+
declare const reportSpamSubmission: ReturnType<typeof createRESTModule$1<typeof publicReportSpamSubmission>>;
|
|
149
|
+
declare const bulkReportSpamSubmission: ReturnType<typeof createRESTModule$1<typeof publicBulkReportSpamSubmission>>;
|
|
150
|
+
declare const queryFormSpamSubmissionReportsByNamespace: ReturnType<typeof createRESTModule$1<typeof publicQueryFormSpamSubmissionReportsByNamespace>>;
|
|
151
|
+
declare const countFormSpamSubmissionReports: ReturnType<typeof createRESTModule$1<typeof publicCountFormSpamSubmissionReports>>;
|
|
152
|
+
declare const onFormSpamSubmissionReportCreated: ReturnType<typeof createEventModule$1<typeof publicOnFormSpamSubmissionReportCreated>>;
|
|
153
|
+
declare const onFormSpamSubmissionReportDeleted: ReturnType<typeof createEventModule$1<typeof publicOnFormSpamSubmissionReportDeleted>>;
|
|
154
|
+
|
|
155
|
+
declare const context$1_bulkDeleteFormSpamSubmissionReport: typeof bulkDeleteFormSpamSubmissionReport;
|
|
156
|
+
declare const context$1_bulkDeleteFormSpamSubmissionReportByFilter: typeof bulkDeleteFormSpamSubmissionReportByFilter;
|
|
157
|
+
declare const context$1_bulkReportNotSpamSubmission: typeof bulkReportNotSpamSubmission;
|
|
158
|
+
declare const context$1_bulkReportSpamSubmission: typeof bulkReportSpamSubmission;
|
|
159
|
+
declare const context$1_checkForSpam: typeof checkForSpam;
|
|
160
|
+
declare const context$1_countFormSpamSubmissionReports: typeof countFormSpamSubmissionReports;
|
|
161
|
+
declare const context$1_createFormSpamSubmissionReport: typeof createFormSpamSubmissionReport;
|
|
162
|
+
declare const context$1_deleteFormSpamSubmissionReport: typeof deleteFormSpamSubmissionReport;
|
|
163
|
+
declare const context$1_getFormSpamSubmissionReport: typeof getFormSpamSubmissionReport;
|
|
164
|
+
declare const context$1_onFormSpamSubmissionReportCreated: typeof onFormSpamSubmissionReportCreated;
|
|
165
|
+
declare const context$1_onFormSpamSubmissionReportDeleted: typeof onFormSpamSubmissionReportDeleted;
|
|
166
|
+
declare const context$1_queryFormSpamSubmissionReportsByNamespace: typeof queryFormSpamSubmissionReportsByNamespace;
|
|
167
|
+
declare const context$1_reportNotSpamSubmission: typeof reportNotSpamSubmission;
|
|
168
|
+
declare const context$1_reportSpamSubmission: typeof reportSpamSubmission;
|
|
169
|
+
declare namespace context$1 {
|
|
170
|
+
export { context$1_bulkDeleteFormSpamSubmissionReport as bulkDeleteFormSpamSubmissionReport, context$1_bulkDeleteFormSpamSubmissionReportByFilter as bulkDeleteFormSpamSubmissionReportByFilter, context$1_bulkReportNotSpamSubmission as bulkReportNotSpamSubmission, context$1_bulkReportSpamSubmission as bulkReportSpamSubmission, context$1_checkForSpam as checkForSpam, context$1_countFormSpamSubmissionReports as countFormSpamSubmissionReports, context$1_createFormSpamSubmissionReport as createFormSpamSubmissionReport, context$1_deleteFormSpamSubmissionReport as deleteFormSpamSubmissionReport, context$1_getFormSpamSubmissionReport as getFormSpamSubmissionReport, context$1_onFormSpamSubmissionReportCreated as onFormSpamSubmissionReportCreated, context$1_onFormSpamSubmissionReportDeleted as onFormSpamSubmissionReportDeleted, context$1_queryFormSpamSubmissionReportsByNamespace as queryFormSpamSubmissionReportsByNamespace, context$1_reportNotSpamSubmission as reportNotSpamSubmission, context$1_reportSpamSubmission as reportSpamSubmission };
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
174
|
+
interface HttpClient {
|
|
175
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
176
|
+
fetchWithAuth: typeof fetch;
|
|
177
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
178
|
+
}
|
|
179
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
180
|
+
type HttpResponse<T = any> = {
|
|
181
|
+
data: T;
|
|
182
|
+
status: number;
|
|
183
|
+
statusText: string;
|
|
184
|
+
headers: any;
|
|
185
|
+
request?: any;
|
|
186
|
+
};
|
|
187
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
188
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
189
|
+
url: string;
|
|
190
|
+
data?: Data;
|
|
191
|
+
params?: URLSearchParams;
|
|
192
|
+
} & APIMetadata;
|
|
193
|
+
type APIMetadata = {
|
|
194
|
+
methodFqn?: string;
|
|
195
|
+
entityFqdn?: string;
|
|
196
|
+
packageName?: string;
|
|
197
|
+
};
|
|
198
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
199
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
200
|
+
__type: 'event-definition';
|
|
201
|
+
type: Type;
|
|
202
|
+
isDomainEvent?: boolean;
|
|
203
|
+
transformations?: (envelope: unknown) => Payload;
|
|
204
|
+
__payload: Payload;
|
|
205
|
+
};
|
|
206
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
207
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
208
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
209
|
+
|
|
210
|
+
declare global {
|
|
211
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
212
|
+
interface SymbolConstructor {
|
|
213
|
+
readonly observable: symbol;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
218
|
+
|
|
219
|
+
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
220
|
+
|
|
221
|
+
declare const createSubmission: ReturnType<typeof createRESTModule<typeof publicCreateSubmission>>;
|
|
222
|
+
declare const bulkCreateSubmissionBySubmitter: ReturnType<typeof createRESTModule<typeof publicBulkCreateSubmissionBySubmitter>>;
|
|
223
|
+
declare const getSubmission: ReturnType<typeof createRESTModule<typeof publicGetSubmission>>;
|
|
224
|
+
declare const updateSubmission: ReturnType<typeof createRESTModule<typeof publicUpdateSubmission>>;
|
|
225
|
+
declare const confirmSubmission: ReturnType<typeof createRESTModule<typeof publicConfirmSubmission>>;
|
|
226
|
+
declare const deleteSubmission: ReturnType<typeof createRESTModule<typeof publicDeleteSubmission>>;
|
|
227
|
+
declare const bulkDeleteSubmission: ReturnType<typeof createRESTModule<typeof publicBulkDeleteSubmission>>;
|
|
228
|
+
declare const restoreSubmissionFromTrashBin: ReturnType<typeof createRESTModule<typeof publicRestoreSubmissionFromTrashBin>>;
|
|
229
|
+
declare const removeSubmissionFromTrashBin: ReturnType<typeof createRESTModule<typeof publicRemoveSubmissionFromTrashBin>>;
|
|
230
|
+
declare const bulkRemoveSubmissionFromTrashBin: ReturnType<typeof createRESTModule<typeof publicBulkRemoveSubmissionFromTrashBin>>;
|
|
231
|
+
declare const listDeletedSubmissions: ReturnType<typeof createRESTModule<typeof publicListDeletedSubmissions>>;
|
|
232
|
+
declare const getDeletedSubmission: ReturnType<typeof createRESTModule<typeof publicGetDeletedSubmission>>;
|
|
233
|
+
declare const querySubmission: ReturnType<typeof createRESTModule<typeof publicQuerySubmission>>;
|
|
234
|
+
declare const searchSubmissionsByNamespace: ReturnType<typeof createRESTModule<typeof publicSearchSubmissionsByNamespace>>;
|
|
235
|
+
declare const querySubmissionsByNamespace: ReturnType<typeof createRESTModule<typeof publicQuerySubmissionsByNamespace>>;
|
|
236
|
+
declare const countSubmissionsByFilter: ReturnType<typeof createRESTModule<typeof publicCountSubmissionsByFilter>>;
|
|
237
|
+
declare const countSubmissions: ReturnType<typeof createRESTModule<typeof publicCountSubmissions>>;
|
|
238
|
+
declare const countDeletedSubmissions: ReturnType<typeof createRESTModule<typeof publicCountDeletedSubmissions>>;
|
|
239
|
+
declare const getMediaUploadUrl: ReturnType<typeof createRESTModule<typeof publicGetMediaUploadUrl>>;
|
|
240
|
+
declare const bulkMarkSubmissionsAsSeen: ReturnType<typeof createRESTModule<typeof publicBulkMarkSubmissionsAsSeen>>;
|
|
241
|
+
declare const upsertContactFromSubmission: ReturnType<typeof createRESTModule<typeof publicUpsertContactFromSubmission>>;
|
|
242
|
+
declare const onSubmissionCreated: ReturnType<typeof createEventModule<typeof publicOnSubmissionCreated>>;
|
|
243
|
+
declare const onSubmissionUpdated: ReturnType<typeof createEventModule<typeof publicOnSubmissionUpdated>>;
|
|
244
|
+
declare const onSubmissionStatusUpdated: ReturnType<typeof createEventModule<typeof publicOnSubmissionStatusUpdated>>;
|
|
245
|
+
declare const onSubmissionDeleted: ReturnType<typeof createEventModule<typeof publicOnSubmissionDeleted>>;
|
|
246
|
+
declare const onSubmissionRemovedSubmissionFromTrash: ReturnType<typeof createEventModule<typeof publicOnSubmissionRemovedSubmissionFromTrash>>;
|
|
247
|
+
declare const onSubmissionContactMapped: ReturnType<typeof createEventModule<typeof publicOnSubmissionContactMapped>>;
|
|
248
|
+
declare const onSubmissionContactMappingSkipped: ReturnType<typeof createEventModule<typeof publicOnSubmissionContactMappingSkipped>>;
|
|
249
|
+
|
|
250
|
+
declare const context_bulkCreateSubmissionBySubmitter: typeof bulkCreateSubmissionBySubmitter;
|
|
251
|
+
declare const context_bulkDeleteSubmission: typeof bulkDeleteSubmission;
|
|
252
|
+
declare const context_bulkMarkSubmissionsAsSeen: typeof bulkMarkSubmissionsAsSeen;
|
|
253
|
+
declare const context_bulkRemoveSubmissionFromTrashBin: typeof bulkRemoveSubmissionFromTrashBin;
|
|
254
|
+
declare const context_confirmSubmission: typeof confirmSubmission;
|
|
255
|
+
declare const context_countDeletedSubmissions: typeof countDeletedSubmissions;
|
|
256
|
+
declare const context_countSubmissions: typeof countSubmissions;
|
|
257
|
+
declare const context_countSubmissionsByFilter: typeof countSubmissionsByFilter;
|
|
258
|
+
declare const context_createSubmission: typeof createSubmission;
|
|
259
|
+
declare const context_deleteSubmission: typeof deleteSubmission;
|
|
260
|
+
declare const context_getDeletedSubmission: typeof getDeletedSubmission;
|
|
261
|
+
declare const context_getMediaUploadUrl: typeof getMediaUploadUrl;
|
|
262
|
+
declare const context_getSubmission: typeof getSubmission;
|
|
263
|
+
declare const context_listDeletedSubmissions: typeof listDeletedSubmissions;
|
|
264
|
+
declare const context_onSubmissionContactMapped: typeof onSubmissionContactMapped;
|
|
265
|
+
declare const context_onSubmissionContactMappingSkipped: typeof onSubmissionContactMappingSkipped;
|
|
266
|
+
declare const context_onSubmissionCreated: typeof onSubmissionCreated;
|
|
267
|
+
declare const context_onSubmissionDeleted: typeof onSubmissionDeleted;
|
|
268
|
+
declare const context_onSubmissionRemovedSubmissionFromTrash: typeof onSubmissionRemovedSubmissionFromTrash;
|
|
269
|
+
declare const context_onSubmissionStatusUpdated: typeof onSubmissionStatusUpdated;
|
|
270
|
+
declare const context_onSubmissionUpdated: typeof onSubmissionUpdated;
|
|
271
|
+
declare const context_querySubmission: typeof querySubmission;
|
|
272
|
+
declare const context_querySubmissionsByNamespace: typeof querySubmissionsByNamespace;
|
|
273
|
+
declare const context_removeSubmissionFromTrashBin: typeof removeSubmissionFromTrashBin;
|
|
274
|
+
declare const context_restoreSubmissionFromTrashBin: typeof restoreSubmissionFromTrashBin;
|
|
275
|
+
declare const context_searchSubmissionsByNamespace: typeof searchSubmissionsByNamespace;
|
|
276
|
+
declare const context_updateSubmission: typeof updateSubmission;
|
|
277
|
+
declare const context_upsertContactFromSubmission: typeof upsertContactFromSubmission;
|
|
278
|
+
declare namespace context {
|
|
279
|
+
export { context_bulkCreateSubmissionBySubmitter as bulkCreateSubmissionBySubmitter, context_bulkDeleteSubmission as bulkDeleteSubmission, context_bulkMarkSubmissionsAsSeen as bulkMarkSubmissionsAsSeen, context_bulkRemoveSubmissionFromTrashBin as bulkRemoveSubmissionFromTrashBin, context_confirmSubmission as confirmSubmission, context_countDeletedSubmissions as countDeletedSubmissions, context_countSubmissions as countSubmissions, context_countSubmissionsByFilter as countSubmissionsByFilter, context_createSubmission as createSubmission, context_deleteSubmission as deleteSubmission, context_getDeletedSubmission as getDeletedSubmission, context_getMediaUploadUrl as getMediaUploadUrl, context_getSubmission as getSubmission, context_listDeletedSubmissions as listDeletedSubmissions, context_onSubmissionContactMapped as onSubmissionContactMapped, context_onSubmissionContactMappingSkipped as onSubmissionContactMappingSkipped, context_onSubmissionCreated as onSubmissionCreated, context_onSubmissionDeleted as onSubmissionDeleted, context_onSubmissionRemovedSubmissionFromTrash as onSubmissionRemovedSubmissionFromTrash, context_onSubmissionStatusUpdated as onSubmissionStatusUpdated, context_onSubmissionUpdated as onSubmissionUpdated, context_querySubmission as querySubmission, context_querySubmissionsByNamespace as querySubmissionsByNamespace, context_removeSubmissionFromTrashBin as removeSubmissionFromTrashBin, context_restoreSubmissionFromTrashBin as restoreSubmissionFromTrashBin, context_searchSubmissionsByNamespace as searchSubmissionsByNamespace, context_updateSubmission as updateSubmission, context_upsertContactFromSubmission as upsertContactFromSubmission };
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export { context$1 as formSpamSubmissionReports, context$2 as forms, context as submissions };
|