@wix/forms 1.0.148 → 1.0.150
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.js +1 -0
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.js +1 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/meta.js +1 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/service-plugins-context.js +1 -0
- package/build/cjs/service-plugins-context.js.map +1 -0
- package/build/cjs/service-plugins.js +1 -0
- package/build/cjs/service-plugins.js.map +1 -0
- package/package.json +6 -6
- package/type-bundles/context.bundle.d.ts +1296 -89
- package/type-bundles/index.bundle.d.ts +1296 -89
- package/type-bundles/meta.bundle.d.ts +12 -0
- package/type-bundles/service-plugins-context.bundle.d.ts +47 -10
- package/type-bundles/service-plugins.bundle.d.ts +47 -10
|
@@ -1965,6 +1965,11 @@ interface PhoneInput$1 {
|
|
|
1965
1965
|
showLabel?: boolean | null;
|
|
1966
1966
|
/** Default value of the country code */
|
|
1967
1967
|
defaultCountryCode?: string | null;
|
|
1968
|
+
/**
|
|
1969
|
+
* Flag identifying to show country flag or not
|
|
1970
|
+
* Default: false
|
|
1971
|
+
*/
|
|
1972
|
+
showCountryFlag?: boolean;
|
|
1968
1973
|
}
|
|
1969
1974
|
interface DateInput$1 {
|
|
1970
1975
|
/** Label of the field. Displayed text for the date/time input. */
|
|
@@ -3767,6 +3772,7 @@ interface DateTimeInputNonNullableFields$1 {
|
|
|
3767
3772
|
}
|
|
3768
3773
|
interface PhoneInputNonNullableFields$1 {
|
|
3769
3774
|
description?: RichContentNonNullableFields$1;
|
|
3775
|
+
showCountryFlag: boolean;
|
|
3770
3776
|
}
|
|
3771
3777
|
interface DateInputNonNullableFields$1 {
|
|
3772
3778
|
description?: RichContentNonNullableFields$1;
|
|
@@ -6099,6 +6105,11 @@ interface PhoneInput {
|
|
|
6099
6105
|
showLabel?: boolean | null;
|
|
6100
6106
|
/** Default value of the country code */
|
|
6101
6107
|
defaultCountryCode?: string | null;
|
|
6108
|
+
/**
|
|
6109
|
+
* Flag identifying to show country flag or not
|
|
6110
|
+
* Default: false
|
|
6111
|
+
*/
|
|
6112
|
+
showCountryFlag?: boolean;
|
|
6102
6113
|
}
|
|
6103
6114
|
interface DateInput {
|
|
6104
6115
|
/** Label of the field. Displayed text for the date/time input. */
|
|
@@ -7878,6 +7889,7 @@ interface DateTimeInputNonNullableFields {
|
|
|
7878
7889
|
}
|
|
7879
7890
|
interface PhoneInputNonNullableFields {
|
|
7880
7891
|
description?: RichContentNonNullableFields;
|
|
7892
|
+
showCountryFlag: boolean;
|
|
7881
7893
|
}
|
|
7882
7894
|
interface DateInputNonNullableFields {
|
|
7883
7895
|
description?: RichContentNonNullableFields;
|
|
@@ -229,7 +229,11 @@ interface AlternativeUri {
|
|
|
229
229
|
absoluteUri?: string;
|
|
230
230
|
}
|
|
231
231
|
interface FormsSubmissionsExtensionNamespaceConfig {
|
|
232
|
-
/**
|
|
232
|
+
/**
|
|
233
|
+
* The app which the form submissions belong to. For example, the namespace for the Wix Forms app is `wix.form_app.form`.
|
|
234
|
+
*
|
|
235
|
+
* Call `Get Submission` to retrieve the namespace.
|
|
236
|
+
*/
|
|
233
237
|
namespace?: string;
|
|
234
238
|
/**
|
|
235
239
|
* The ID of the specific form that will trigger the defined methods when a submission is made.
|
|
@@ -295,27 +299,26 @@ interface IdentificationDataIdOneOf {
|
|
|
295
299
|
appId?: string;
|
|
296
300
|
}
|
|
297
301
|
|
|
298
|
-
type ServicePluginMethodInput = {
|
|
302
|
+
type ServicePluginMethodInput$1 = {
|
|
299
303
|
request: any;
|
|
300
304
|
metadata: any;
|
|
301
305
|
};
|
|
302
|
-
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
303
|
-
type ServicePluginMethodMetadata = {
|
|
306
|
+
type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
|
|
307
|
+
type ServicePluginMethodMetadata$1 = {
|
|
304
308
|
name: string;
|
|
305
309
|
primaryHttpMappingPath: string;
|
|
306
310
|
transformations: {
|
|
307
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
311
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
|
|
308
312
|
toREST: (...args: unknown[]) => unknown;
|
|
309
313
|
};
|
|
310
314
|
};
|
|
311
|
-
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
315
|
+
type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
|
|
312
316
|
__type: 'service-plugin-definition';
|
|
313
317
|
componentType: string;
|
|
314
|
-
methods: ServicePluginMethodMetadata[];
|
|
318
|
+
methods: ServicePluginMethodMetadata$1[];
|
|
315
319
|
__contract: Contract;
|
|
316
320
|
};
|
|
317
|
-
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
318
|
-
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
321
|
+
declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
|
|
319
322
|
|
|
320
323
|
declare global {
|
|
321
324
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -324,11 +327,16 @@ declare global {
|
|
|
324
327
|
}
|
|
325
328
|
}
|
|
326
329
|
|
|
330
|
+
declare global {
|
|
331
|
+
interface ContextualClient {
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
327
335
|
interface ValidateSubmissionEnvelope {
|
|
328
336
|
request: ValidateSubmissionRequest;
|
|
329
337
|
metadata: Context;
|
|
330
338
|
}
|
|
331
|
-
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
339
|
+
declare const provideHandlers$1: ServicePluginDefinition$1<{
|
|
332
340
|
/**
|
|
333
341
|
*
|
|
334
342
|
* > **Note:** The Form Submission service plugin only works with the Wix Forms app.
|
|
@@ -339,6 +347,35 @@ declare const provideHandlers$1: ServicePluginDefinition<{
|
|
|
339
347
|
validateSubmission(payload: ValidateSubmissionEnvelope): ValidateSubmissionResponse | Promise<ValidateSubmissionResponse>;
|
|
340
348
|
}>;
|
|
341
349
|
|
|
350
|
+
type ServicePluginMethodInput = {
|
|
351
|
+
request: any;
|
|
352
|
+
metadata: any;
|
|
353
|
+
};
|
|
354
|
+
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
355
|
+
type ServicePluginMethodMetadata = {
|
|
356
|
+
name: string;
|
|
357
|
+
primaryHttpMappingPath: string;
|
|
358
|
+
transformations: {
|
|
359
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
360
|
+
toREST: (...args: unknown[]) => unknown;
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
364
|
+
__type: 'service-plugin-definition';
|
|
365
|
+
componentType: string;
|
|
366
|
+
methods: ServicePluginMethodMetadata[];
|
|
367
|
+
__contract: Contract;
|
|
368
|
+
};
|
|
369
|
+
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
370
|
+
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
371
|
+
|
|
372
|
+
declare global {
|
|
373
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
374
|
+
interface SymbolConstructor {
|
|
375
|
+
readonly observable: symbol;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
342
379
|
declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
343
380
|
|
|
344
381
|
type _publicProvideHandlersType = typeof provideHandlers$1;
|
|
@@ -229,7 +229,11 @@ interface AlternativeUri {
|
|
|
229
229
|
absoluteUri?: string;
|
|
230
230
|
}
|
|
231
231
|
interface FormsSubmissionsExtensionNamespaceConfig {
|
|
232
|
-
/**
|
|
232
|
+
/**
|
|
233
|
+
* The app which the form submissions belong to. For example, the namespace for the Wix Forms app is `wix.form_app.form`.
|
|
234
|
+
*
|
|
235
|
+
* Call `Get Submission` to retrieve the namespace.
|
|
236
|
+
*/
|
|
233
237
|
namespace?: string;
|
|
234
238
|
/**
|
|
235
239
|
* The ID of the specific form that will trigger the defined methods when a submission is made.
|
|
@@ -295,27 +299,26 @@ interface IdentificationDataIdOneOf {
|
|
|
295
299
|
appId?: string;
|
|
296
300
|
}
|
|
297
301
|
|
|
298
|
-
type ServicePluginMethodInput = {
|
|
302
|
+
type ServicePluginMethodInput$1 = {
|
|
299
303
|
request: any;
|
|
300
304
|
metadata: any;
|
|
301
305
|
};
|
|
302
|
-
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
303
|
-
type ServicePluginMethodMetadata = {
|
|
306
|
+
type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
|
|
307
|
+
type ServicePluginMethodMetadata$1 = {
|
|
304
308
|
name: string;
|
|
305
309
|
primaryHttpMappingPath: string;
|
|
306
310
|
transformations: {
|
|
307
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
311
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
|
|
308
312
|
toREST: (...args: unknown[]) => unknown;
|
|
309
313
|
};
|
|
310
314
|
};
|
|
311
|
-
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
315
|
+
type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
|
|
312
316
|
__type: 'service-plugin-definition';
|
|
313
317
|
componentType: string;
|
|
314
|
-
methods: ServicePluginMethodMetadata[];
|
|
318
|
+
methods: ServicePluginMethodMetadata$1[];
|
|
315
319
|
__contract: Contract;
|
|
316
320
|
};
|
|
317
|
-
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
318
|
-
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
321
|
+
declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
|
|
319
322
|
|
|
320
323
|
declare global {
|
|
321
324
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -324,11 +327,16 @@ declare global {
|
|
|
324
327
|
}
|
|
325
328
|
}
|
|
326
329
|
|
|
330
|
+
declare global {
|
|
331
|
+
interface ContextualClient {
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
327
335
|
interface ValidateSubmissionEnvelope {
|
|
328
336
|
request: ValidateSubmissionRequest;
|
|
329
337
|
metadata: Context;
|
|
330
338
|
}
|
|
331
|
-
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
339
|
+
declare const provideHandlers$1: ServicePluginDefinition$1<{
|
|
332
340
|
/**
|
|
333
341
|
*
|
|
334
342
|
* > **Note:** The Form Submission service plugin only works with the Wix Forms app.
|
|
@@ -339,6 +347,35 @@ declare const provideHandlers$1: ServicePluginDefinition<{
|
|
|
339
347
|
validateSubmission(payload: ValidateSubmissionEnvelope): ValidateSubmissionResponse | Promise<ValidateSubmissionResponse>;
|
|
340
348
|
}>;
|
|
341
349
|
|
|
350
|
+
type ServicePluginMethodInput = {
|
|
351
|
+
request: any;
|
|
352
|
+
metadata: any;
|
|
353
|
+
};
|
|
354
|
+
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
355
|
+
type ServicePluginMethodMetadata = {
|
|
356
|
+
name: string;
|
|
357
|
+
primaryHttpMappingPath: string;
|
|
358
|
+
transformations: {
|
|
359
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
360
|
+
toREST: (...args: unknown[]) => unknown;
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
364
|
+
__type: 'service-plugin-definition';
|
|
365
|
+
componentType: string;
|
|
366
|
+
methods: ServicePluginMethodMetadata[];
|
|
367
|
+
__contract: Contract;
|
|
368
|
+
};
|
|
369
|
+
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
370
|
+
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
371
|
+
|
|
372
|
+
declare global {
|
|
373
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
374
|
+
interface SymbolConstructor {
|
|
375
|
+
readonly observable: symbol;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
342
379
|
declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
343
380
|
|
|
344
381
|
type _publicProvideHandlersType = typeof provideHandlers$1;
|