@wix/forms 1.0.103 → 1.0.104
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/package.json +2 -2
- package/type-bundles/context.bundle.d.ts +17 -105
- package/type-bundles/index.bundle.d.ts +42 -122
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/forms",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.104",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"fqdn": ""
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
"falconPackageHash": "
|
|
49
|
+
"falconPackageHash": "a64c68c2024cd5f42fe7fcc741f2b0643410b4696f3d0ca7d0585f14"
|
|
50
50
|
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
type RESTFunctionDescriptor
|
|
2
|
-
interface HttpClient
|
|
3
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory
|
|
1
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2
|
+
interface HttpClient {
|
|
3
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
4
4
|
fetchWithAuth: typeof fetch;
|
|
5
5
|
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
6
6
|
}
|
|
7
|
-
type RequestOptionsFactory
|
|
8
|
-
type HttpResponse
|
|
7
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
8
|
+
type HttpResponse<T = any> = {
|
|
9
9
|
data: T;
|
|
10
10
|
status: number;
|
|
11
11
|
statusText: string;
|
|
12
12
|
headers: any;
|
|
13
13
|
request?: any;
|
|
14
14
|
};
|
|
15
|
-
type RequestOptions
|
|
15
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
16
16
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
17
17
|
url: string;
|
|
18
18
|
data?: Data;
|
|
19
19
|
params?: URLSearchParams;
|
|
20
|
-
} & APIMetadata
|
|
21
|
-
type APIMetadata
|
|
20
|
+
} & APIMetadata;
|
|
21
|
+
type APIMetadata = {
|
|
22
22
|
methodFqn?: string;
|
|
23
23
|
entityFqdn?: string;
|
|
24
24
|
packageName?: string;
|
|
25
25
|
};
|
|
26
|
-
type BuildRESTFunction
|
|
27
|
-
type EventDefinition
|
|
26
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
27
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
28
28
|
__type: 'event-definition';
|
|
29
29
|
type: Type;
|
|
30
30
|
isDomainEvent?: boolean;
|
|
31
31
|
transformations?: (envelope: unknown) => Payload;
|
|
32
32
|
__payload: Payload;
|
|
33
33
|
};
|
|
34
|
-
declare function EventDefinition
|
|
35
|
-
type EventHandler
|
|
36
|
-
type BuildEventDefinition
|
|
34
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
35
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
36
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
37
37
|
|
|
38
38
|
declare global {
|
|
39
39
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -42,9 +42,9 @@ declare global {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
declare function createRESTModule$2<T extends RESTFunctionDescriptor
|
|
45
|
+
declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
46
46
|
|
|
47
|
-
declare function createEventModule$2<T extends EventDefinition
|
|
47
|
+
declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
48
48
|
|
|
49
49
|
declare const createForm: ReturnType<typeof createRESTModule$2<typeof publicCreateForm>>;
|
|
50
50
|
declare const bulkCreateForm: ReturnType<typeof createRESTModule$2<typeof publicBulkCreateForm>>;
|
|
@@ -89,53 +89,9 @@ declare namespace context$2 {
|
|
|
89
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
90
|
}
|
|
91
91
|
|
|
92
|
-
|
|
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;
|
|
92
|
+
declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
137
93
|
|
|
138
|
-
declare function createEventModule$1<T extends EventDefinition
|
|
94
|
+
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
139
95
|
|
|
140
96
|
declare const checkForSpam: ReturnType<typeof createRESTModule$1<typeof publicCheckForSpam>>;
|
|
141
97
|
declare const createFormSpamSubmissionReport: ReturnType<typeof createRESTModule$1<typeof publicCreateFormSpamSubmissionReport>>;
|
|
@@ -170,50 +126,6 @@ declare namespace context$1 {
|
|
|
170
126
|
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
127
|
}
|
|
172
128
|
|
|
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
129
|
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
218
130
|
|
|
219
131
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
@@ -3586,38 +3586,38 @@ interface UpdateExtendedFieldsOptions {
|
|
|
3586
3586
|
namespaceData: Record<string, any> | null;
|
|
3587
3587
|
}
|
|
3588
3588
|
|
|
3589
|
-
interface HttpClient
|
|
3590
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory
|
|
3589
|
+
interface HttpClient {
|
|
3590
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
3591
3591
|
fetchWithAuth: typeof fetch;
|
|
3592
3592
|
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
3593
3593
|
}
|
|
3594
|
-
type RequestOptionsFactory
|
|
3595
|
-
type HttpResponse
|
|
3594
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
3595
|
+
type HttpResponse<T = any> = {
|
|
3596
3596
|
data: T;
|
|
3597
3597
|
status: number;
|
|
3598
3598
|
statusText: string;
|
|
3599
3599
|
headers: any;
|
|
3600
3600
|
request?: any;
|
|
3601
3601
|
};
|
|
3602
|
-
type RequestOptions
|
|
3602
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
3603
3603
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3604
3604
|
url: string;
|
|
3605
3605
|
data?: Data;
|
|
3606
3606
|
params?: URLSearchParams;
|
|
3607
|
-
} & APIMetadata
|
|
3608
|
-
type APIMetadata
|
|
3607
|
+
} & APIMetadata;
|
|
3608
|
+
type APIMetadata = {
|
|
3609
3609
|
methodFqn?: string;
|
|
3610
3610
|
entityFqdn?: string;
|
|
3611
3611
|
packageName?: string;
|
|
3612
3612
|
};
|
|
3613
|
-
type EventDefinition
|
|
3613
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
3614
3614
|
__type: 'event-definition';
|
|
3615
3615
|
type: Type;
|
|
3616
3616
|
isDomainEvent?: boolean;
|
|
3617
3617
|
transformations?: (envelope: unknown) => Payload;
|
|
3618
3618
|
__payload: Payload;
|
|
3619
3619
|
};
|
|
3620
|
-
declare function EventDefinition
|
|
3620
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
3621
3621
|
|
|
3622
3622
|
declare global {
|
|
3623
3623
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -3629,25 +3629,25 @@ declare global {
|
|
|
3629
3629
|
declare const __metadata$2: {
|
|
3630
3630
|
PACKAGE_NAME: string;
|
|
3631
3631
|
};
|
|
3632
|
-
declare function createForm(httpClient: HttpClient
|
|
3633
|
-
declare function bulkCreateForm(httpClient: HttpClient
|
|
3634
|
-
declare function cloneForm(httpClient: HttpClient
|
|
3635
|
-
declare function getForm(httpClient: HttpClient
|
|
3636
|
-
declare function updateForm(httpClient: HttpClient
|
|
3637
|
-
declare function removeFormFromTrashBin(httpClient: HttpClient
|
|
3638
|
-
declare function deleteForm(httpClient: HttpClient
|
|
3639
|
-
declare function restoreFromTrashBin(httpClient: HttpClient
|
|
3640
|
-
declare function queryForms(httpClient: HttpClient
|
|
3641
|
-
declare function countForms(httpClient: HttpClient
|
|
3642
|
-
declare function listForms(httpClient: HttpClient
|
|
3643
|
-
declare function getDeletedForm(httpClient: HttpClient
|
|
3644
|
-
declare function queryDeletedForms(httpClient: HttpClient
|
|
3645
|
-
declare function listDeletedForms(httpClient: HttpClient
|
|
3646
|
-
declare function bulkRemoveDeletedField(httpClient: HttpClient
|
|
3647
|
-
declare function updateExtendedFields(httpClient: HttpClient
|
|
3648
|
-
declare const onFormCreated: EventDefinition
|
|
3649
|
-
declare const onFormUpdated: EventDefinition
|
|
3650
|
-
declare const onFormSubmissionKeysPermanentlyDeleted: EventDefinition
|
|
3632
|
+
declare function createForm(httpClient: HttpClient): (form: Form) => Promise<Form>;
|
|
3633
|
+
declare function bulkCreateForm(httpClient: HttpClient): (options?: BulkCreateFormOptions) => Promise<BulkCreateFormResponse>;
|
|
3634
|
+
declare function cloneForm(httpClient: HttpClient): (formId: string) => Promise<CloneFormResponse>;
|
|
3635
|
+
declare function getForm(httpClient: HttpClient): (formId: string, options?: GetFormOptions) => Promise<Form>;
|
|
3636
|
+
declare function updateForm(httpClient: HttpClient): (_id: string | null, form: UpdateForm) => Promise<Form>;
|
|
3637
|
+
declare function removeFormFromTrashBin(httpClient: HttpClient): (formId: string) => Promise<void>;
|
|
3638
|
+
declare function deleteForm(httpClient: HttpClient): (formId: string, options?: DeleteFormOptions) => Promise<void>;
|
|
3639
|
+
declare function restoreFromTrashBin(httpClient: HttpClient): (formId: string) => Promise<RestoreFromTrashBinResponse>;
|
|
3640
|
+
declare function queryForms(httpClient: HttpClient): (options?: QueryFormsOptions) => FormsQueryBuilder;
|
|
3641
|
+
declare function countForms(httpClient: HttpClient): (namespace: string, options?: CountFormsOptions) => Promise<CountFormsResponse>;
|
|
3642
|
+
declare function listForms(httpClient: HttpClient): (namespace: string, options?: ListFormsOptions) => Promise<ListFormsResponse>;
|
|
3643
|
+
declare function getDeletedForm(httpClient: HttpClient): (formId: string) => Promise<GetDeletedFormResponse>;
|
|
3644
|
+
declare function queryDeletedForms(httpClient: HttpClient): (query: CursorQuery$2) => Promise<QueryDeletedFormsResponse>;
|
|
3645
|
+
declare function listDeletedForms(httpClient: HttpClient): (namespace: string, options?: ListDeletedFormsOptions) => Promise<ListDeletedFormsResponse>;
|
|
3646
|
+
declare function bulkRemoveDeletedField(httpClient: HttpClient): (formId: string, options?: BulkRemoveDeletedFieldOptions) => Promise<BulkRemoveDeletedFieldResponse>;
|
|
3647
|
+
declare function updateExtendedFields(httpClient: HttpClient): (_id: string, namespace: string, options: UpdateExtendedFieldsOptions) => Promise<UpdateExtendedFieldsResponse>;
|
|
3648
|
+
declare const onFormCreated: EventDefinition<FormCreatedEnvelope, "wix.forms.v4.form_created">;
|
|
3649
|
+
declare const onFormUpdated: EventDefinition<FormUpdatedEnvelope, "wix.forms.v4.form_updated">;
|
|
3650
|
+
declare const onFormSubmissionKeysPermanentlyDeleted: EventDefinition<FormSubmissionKeysPermanentlyDeletedEnvelope, "wix.forms.v4.form_submission_keys_permanently_deleted">;
|
|
3651
3651
|
|
|
3652
3652
|
type index_d$2_AddressInfo = AddressInfo;
|
|
3653
3653
|
type index_d$2_AddressLine2 = AddressLine2;
|
|
@@ -4755,63 +4755,23 @@ interface FormSpamSubmissionReportsQueryBuilder {
|
|
|
4755
4755
|
find: () => Promise<FormSpamSubmissionReportsQueryResult>;
|
|
4756
4756
|
}
|
|
4757
4757
|
|
|
4758
|
-
interface HttpClient$1 {
|
|
4759
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
4760
|
-
fetchWithAuth: typeof fetch;
|
|
4761
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
4762
|
-
}
|
|
4763
|
-
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
4764
|
-
type HttpResponse$1<T = any> = {
|
|
4765
|
-
data: T;
|
|
4766
|
-
status: number;
|
|
4767
|
-
statusText: string;
|
|
4768
|
-
headers: any;
|
|
4769
|
-
request?: any;
|
|
4770
|
-
};
|
|
4771
|
-
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
4772
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
4773
|
-
url: string;
|
|
4774
|
-
data?: Data;
|
|
4775
|
-
params?: URLSearchParams;
|
|
4776
|
-
} & APIMetadata$1;
|
|
4777
|
-
type APIMetadata$1 = {
|
|
4778
|
-
methodFqn?: string;
|
|
4779
|
-
entityFqdn?: string;
|
|
4780
|
-
packageName?: string;
|
|
4781
|
-
};
|
|
4782
|
-
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
4783
|
-
__type: 'event-definition';
|
|
4784
|
-
type: Type;
|
|
4785
|
-
isDomainEvent?: boolean;
|
|
4786
|
-
transformations?: (envelope: unknown) => Payload;
|
|
4787
|
-
__payload: Payload;
|
|
4788
|
-
};
|
|
4789
|
-
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
4790
|
-
|
|
4791
|
-
declare global {
|
|
4792
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
4793
|
-
interface SymbolConstructor {
|
|
4794
|
-
readonly observable: symbol;
|
|
4795
|
-
}
|
|
4796
|
-
}
|
|
4797
|
-
|
|
4798
4758
|
declare const __metadata$1: {
|
|
4799
4759
|
PACKAGE_NAME: string;
|
|
4800
4760
|
};
|
|
4801
|
-
declare function checkForSpam(httpClient: HttpClient
|
|
4802
|
-
declare function createFormSpamSubmissionReport(httpClient: HttpClient
|
|
4803
|
-
declare function getFormSpamSubmissionReport(httpClient: HttpClient
|
|
4804
|
-
declare function deleteFormSpamSubmissionReport(httpClient: HttpClient
|
|
4805
|
-
declare function bulkDeleteFormSpamSubmissionReport(httpClient: HttpClient
|
|
4806
|
-
declare function bulkDeleteFormSpamSubmissionReportByFilter(httpClient: HttpClient
|
|
4807
|
-
declare function reportNotSpamSubmission(httpClient: HttpClient
|
|
4808
|
-
declare function bulkReportNotSpamSubmission(httpClient: HttpClient
|
|
4809
|
-
declare function reportSpamSubmission(httpClient: HttpClient
|
|
4810
|
-
declare function bulkReportSpamSubmission(httpClient: HttpClient
|
|
4811
|
-
declare function queryFormSpamSubmissionReportsByNamespace(httpClient: HttpClient
|
|
4812
|
-
declare function countFormSpamSubmissionReports(httpClient: HttpClient
|
|
4813
|
-
declare const onFormSpamSubmissionReportCreated: EventDefinition
|
|
4814
|
-
declare const onFormSpamSubmissionReportDeleted: EventDefinition
|
|
4761
|
+
declare function checkForSpam(httpClient: HttpClient): (submission: FormSubmission$1) => Promise<CheckForSpamResponse>;
|
|
4762
|
+
declare function createFormSpamSubmissionReport(httpClient: HttpClient): (formSpamSubmissionReport: FormSpamSubmissionReport) => Promise<FormSpamSubmissionReport>;
|
|
4763
|
+
declare function getFormSpamSubmissionReport(httpClient: HttpClient): (formSpamSubmissionReportId: string) => Promise<FormSpamSubmissionReport>;
|
|
4764
|
+
declare function deleteFormSpamSubmissionReport(httpClient: HttpClient): (formSpamSubmissionReportId: string) => Promise<void>;
|
|
4765
|
+
declare function bulkDeleteFormSpamSubmissionReport(httpClient: HttpClient): (formId: string, options?: BulkDeleteFormSpamSubmissionReportOptions) => Promise<BulkDeleteFormSpamSubmissionReportResponse>;
|
|
4766
|
+
declare function bulkDeleteFormSpamSubmissionReportByFilter(httpClient: HttpClient): (filter: Record<string, any> | null) => Promise<BulkDeleteFormSpamSubmissionReportByFilterResponse>;
|
|
4767
|
+
declare function reportNotSpamSubmission(httpClient: HttpClient): (formSpamSubmissionReportId: string) => Promise<ReportNotSpamSubmissionResponse>;
|
|
4768
|
+
declare function bulkReportNotSpamSubmission(httpClient: HttpClient): (formId: string, options?: BulkReportNotSpamSubmissionOptions) => Promise<BulkReportNotSpamSubmissionResponse>;
|
|
4769
|
+
declare function reportSpamSubmission(httpClient: HttpClient): (submissionId: string, reportReason: ReportReason) => Promise<ReportSpamSubmissionResponse>;
|
|
4770
|
+
declare function bulkReportSpamSubmission(httpClient: HttpClient): (formId: string, options?: BulkReportSpamSubmissionOptions) => Promise<BulkReportSpamSubmissionResponse>;
|
|
4771
|
+
declare function queryFormSpamSubmissionReportsByNamespace(httpClient: HttpClient): () => FormSpamSubmissionReportsQueryBuilder;
|
|
4772
|
+
declare function countFormSpamSubmissionReports(httpClient: HttpClient): (formIds: string[], namespace: string) => Promise<CountFormSpamSubmissionReportsResponse>;
|
|
4773
|
+
declare const onFormSpamSubmissionReportCreated: EventDefinition<FormSpamSubmissionReportCreatedEnvelope, "wix.forms.v4.form_spam_submission_report_created">;
|
|
4774
|
+
declare const onFormSpamSubmissionReportDeleted: EventDefinition<FormSpamSubmissionReportDeletedEnvelope, "wix.forms.v4.form_spam_submission_report_deleted">;
|
|
4815
4775
|
|
|
4816
4776
|
type index_d$1_BulkDeleteFormSpamSubmissionReportByFilterRequest = BulkDeleteFormSpamSubmissionReportByFilterRequest;
|
|
4817
4777
|
type index_d$1_BulkDeleteFormSpamSubmissionReportByFilterResponse = BulkDeleteFormSpamSubmissionReportByFilterResponse;
|
|
@@ -5906,46 +5866,6 @@ interface UpsertContactFromSubmissionOptions {
|
|
|
5906
5866
|
emailVerified?: boolean;
|
|
5907
5867
|
}
|
|
5908
5868
|
|
|
5909
|
-
interface HttpClient {
|
|
5910
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
5911
|
-
fetchWithAuth: typeof fetch;
|
|
5912
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
5913
|
-
}
|
|
5914
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
5915
|
-
type HttpResponse<T = any> = {
|
|
5916
|
-
data: T;
|
|
5917
|
-
status: number;
|
|
5918
|
-
statusText: string;
|
|
5919
|
-
headers: any;
|
|
5920
|
-
request?: any;
|
|
5921
|
-
};
|
|
5922
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
5923
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
5924
|
-
url: string;
|
|
5925
|
-
data?: Data;
|
|
5926
|
-
params?: URLSearchParams;
|
|
5927
|
-
} & APIMetadata;
|
|
5928
|
-
type APIMetadata = {
|
|
5929
|
-
methodFqn?: string;
|
|
5930
|
-
entityFqdn?: string;
|
|
5931
|
-
packageName?: string;
|
|
5932
|
-
};
|
|
5933
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
5934
|
-
__type: 'event-definition';
|
|
5935
|
-
type: Type;
|
|
5936
|
-
isDomainEvent?: boolean;
|
|
5937
|
-
transformations?: (envelope: unknown) => Payload;
|
|
5938
|
-
__payload: Payload;
|
|
5939
|
-
};
|
|
5940
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
5941
|
-
|
|
5942
|
-
declare global {
|
|
5943
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
5944
|
-
interface SymbolConstructor {
|
|
5945
|
-
readonly observable: symbol;
|
|
5946
|
-
}
|
|
5947
|
-
}
|
|
5948
|
-
|
|
5949
5869
|
declare const __metadata: {
|
|
5950
5870
|
PACKAGE_NAME: string;
|
|
5951
5871
|
};
|