@wix/forms 1.0.100 → 1.0.102
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 -9
- package/type-bundles/context.bundle.d.ts +4734 -0
- package/type-bundles/index.bundle.d.ts +6059 -0
- package/type-bundles/meta.bundle.d.ts +8458 -0
- package/type-bundles/service-plugins-context.bundle.d.ts +12 -0
- package/type-bundles/service-plugins.bundle.d.ts +12 -0
|
@@ -64,6 +64,11 @@ interface FormSubmission {
|
|
|
64
64
|
* <b>Note</b>: This object is only applicable when submittng a form in the Wix Payments app.
|
|
65
65
|
*/
|
|
66
66
|
orderDetails?: OrderDetails;
|
|
67
|
+
/**
|
|
68
|
+
* Contact ID. Member who created the submission, or a mapped contact.
|
|
69
|
+
* @readonly
|
|
70
|
+
*/
|
|
71
|
+
contactId?: string | null;
|
|
67
72
|
}
|
|
68
73
|
declare enum SubmissionStatus {
|
|
69
74
|
UNDEFINED = "UNDEFINED",
|
|
@@ -298,6 +303,13 @@ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
|
298
303
|
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
299
304
|
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
300
305
|
|
|
306
|
+
declare global {
|
|
307
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
308
|
+
interface SymbolConstructor {
|
|
309
|
+
readonly observable: symbol;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
301
313
|
interface ValidateSubmissionEnvelope {
|
|
302
314
|
request: ValidateSubmissionRequest;
|
|
303
315
|
metadata: Context;
|
|
@@ -64,6 +64,11 @@ interface FormSubmission {
|
|
|
64
64
|
* <b>Note</b>: This object is only applicable when submittng a form in the Wix Payments app.
|
|
65
65
|
*/
|
|
66
66
|
orderDetails?: OrderDetails;
|
|
67
|
+
/**
|
|
68
|
+
* Contact ID. Member who created the submission, or a mapped contact.
|
|
69
|
+
* @readonly
|
|
70
|
+
*/
|
|
71
|
+
contactId?: string | null;
|
|
67
72
|
}
|
|
68
73
|
declare enum SubmissionStatus {
|
|
69
74
|
UNDEFINED = "UNDEFINED",
|
|
@@ -297,6 +302,13 @@ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
|
297
302
|
};
|
|
298
303
|
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
299
304
|
|
|
305
|
+
declare global {
|
|
306
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
307
|
+
interface SymbolConstructor {
|
|
308
|
+
readonly observable: symbol;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
300
312
|
interface ValidateSubmissionEnvelope {
|
|
301
313
|
request: ValidateSubmissionRequest;
|
|
302
314
|
metadata: Context;
|