@wix/auto_sdk_crm_extended-fields 1.0.15 → 1.0.17
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/src/contacts-v4-extended-field-extended-fields.public.d.ts +2 -2
- package/build/cjs/src/contacts-v4-extended-field-extended-fields.public.js.map +1 -1
- package/build/cjs/src/contacts-v4-extended-field-extended-fields.types.d.ts +14 -6
- package/build/cjs/src/contacts-v4-extended-field-extended-fields.types.js.map +1 -1
- package/build/cjs/src/contacts-v4-extended-field-extended-fields.universal.d.ts +17 -9
- package/build/cjs/src/contacts-v4-extended-field-extended-fields.universal.js.map +1 -1
- package/build/es/src/contacts-v4-extended-field-extended-fields.public.d.ts +2 -2
- package/build/es/src/contacts-v4-extended-field-extended-fields.public.js.map +1 -1
- package/build/es/src/contacts-v4-extended-field-extended-fields.types.d.ts +14 -6
- package/build/es/src/contacts-v4-extended-field-extended-fields.types.js.map +1 -1
- package/build/es/src/contacts-v4-extended-field-extended-fields.universal.d.ts +17 -9
- package/build/es/src/contacts-v4-extended-field-extended-fields.universal.js.map +1 -1
- package/build/internal/cjs/src/contacts-v4-extended-field-extended-fields.public.d.ts +2 -2
- package/build/internal/cjs/src/contacts-v4-extended-field-extended-fields.public.js.map +1 -1
- package/build/internal/cjs/src/contacts-v4-extended-field-extended-fields.types.d.ts +14 -6
- package/build/internal/cjs/src/contacts-v4-extended-field-extended-fields.types.js.map +1 -1
- package/build/internal/cjs/src/contacts-v4-extended-field-extended-fields.universal.d.ts +17 -9
- package/build/internal/cjs/src/contacts-v4-extended-field-extended-fields.universal.js.map +1 -1
- package/build/internal/es/src/contacts-v4-extended-field-extended-fields.public.d.ts +2 -2
- package/build/internal/es/src/contacts-v4-extended-field-extended-fields.public.js.map +1 -1
- package/build/internal/es/src/contacts-v4-extended-field-extended-fields.types.d.ts +14 -6
- package/build/internal/es/src/contacts-v4-extended-field-extended-fields.types.js.map +1 -1
- package/build/internal/es/src/contacts-v4-extended-field-extended-fields.universal.d.ts +17 -9
- package/build/internal/es/src/contacts-v4-extended-field-extended-fields.universal.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { ExtendedField, ExtendedFieldCreatedEnvelope, ExtendedFieldDeletedEnvelope, ExtendedFieldUpdatedEnvelope,
|
|
2
|
+
import { ExtendedField, ExtendedFieldCreatedEnvelope, ExtendedFieldDeletedEnvelope, ExtendedFieldUpdatedEnvelope, FieldDataTypeWithLiterals, FieldsQueryBuilder, FindOrCreateExtendedFieldResponse, RenameExtendedField } from './contacts-v4-extended-field-extended-fields.universal.js';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
@@ -25,7 +25,7 @@ interface FindOrCreateExtendedFieldSignature {
|
|
|
25
25
|
* for the specified display name.
|
|
26
26
|
* @returns Extended field that was found or created.
|
|
27
27
|
*/
|
|
28
|
-
(displayName: string, dataType:
|
|
28
|
+
(displayName: string, dataType: FieldDataTypeWithLiterals): Promise<FindOrCreateExtendedFieldResponse>;
|
|
29
29
|
}
|
|
30
30
|
export declare function getExtendedField(httpClient: HttpClient): GetExtendedFieldSignature;
|
|
31
31
|
interface GetExtendedFieldSignature {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-extended-field-extended-fields.public.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field-extended-fields.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA+E;AAC/E,uIAcmE;AAEtD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,SAAgB,yBAAyB,CACvC,UAAsB;IAEtB,OAAO,CAAC,WAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"contacts-v4-extended-field-extended-fields.public.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field-extended-fields.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA+E;AAC/E,uIAcmE;AAEtD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,SAAgB,yBAAyB,CACvC,UAAsB;IAEtB,OAAO,CAAC,WAAmB,EAAE,QAAmC,EAAE,EAAE,CAClE,IAAA,mFAAkC,EAChC,WAAW,EACX,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAVD,8DAUC;AA6BD,SAAgB,gBAAgB,CAC9B,UAAsB;IAEtB,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,IAAA,0EAAyB,EACvB,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,4CASC;AAWD,SAAgB,mBAAmB,CACjC,UAAsB;IAEtB,OAAO,CACL,GAAW,EACX,KAA2D,EAC3D,EAAE,CACF,IAAA,6EAA4B,EAC1B,GAAG,EACH,KAAK;IACL,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,kDAaC;AAYD,SAAgB,mBAAmB,CACjC,UAAsB;IAEtB,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,IAAA,6EAA4B,EAC1B,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,kDASC;AAaD,SAAgB,mBAAmB,CACjC,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,IAAA,6EAA4B;IAC1B,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,kDAQC;AAsBY,QAAA,sBAAsB,GAAG,IAAA,2BAAe,EACnD,wCAAwC,EACxC,IAAI,EACJ,CAAC,KAAmC,EAAE,EAAE,CACtC,IAAA,gEAAuC,EACrC,IAAA,gCAAc,EAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,gDAAoC;QACjD,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;SAC/B;KACF;CACF,CAAC,CACH,CACJ,EAAgC,CAAC;AACrB,QAAA,sBAAsB,GAAG,IAAA,2BAAe,EACnD,wCAAwC,EACxC,IAAI,EACJ,CAAC,KAAmC,EAAE,EAAE,CACtC,IAAA,gEAAuC,EACrC,IAAA,gCAAc,EAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,gDAAoC;QACjD,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,uBAAuB,EAAE;YACjC,EAAE,IAAI,EAAE,uBAAuB,EAAE;YACjC,EAAE,IAAI,EAAE,oBAAoB,EAAE;SAC/B;KACF;CACF,CAAC,CACH,CACJ,EAAgC,CAAC;AACrB,QAAA,sBAAsB,GAAG,IAAA,2BAAe,EACnD,wCAAwC,EACxC,IAAI,EACJ,CAAC,KAAmC,EAAE,EAAE,CACtC,IAAA,gEAAuC,EACrC,IAAA,gCAAc,EAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,gDAAoC;QACjD,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;SAC/B;KACF;CACF,CAAC,CACH,CACJ,EAAgC,CAAC;AAElC,qIA8CmE;AA/BjE,wJAAA,aAAa,OAAA;AACb,oJAAA,SAAS,OAAA;AAyBT,oJAAA,SAAS,OAAA;AAIT,8JAAA,mBAAmB,OAAA"}
|
|
@@ -35,12 +35,12 @@ export interface ExtendedField {
|
|
|
35
35
|
* Type of data the field holds.
|
|
36
36
|
* @readonly
|
|
37
37
|
*/
|
|
38
|
-
dataType?:
|
|
38
|
+
dataType?: FieldDataTypeWithLiterals;
|
|
39
39
|
/**
|
|
40
40
|
* Indicates whether the extended field is a system field or custom field.
|
|
41
41
|
* @readonly
|
|
42
42
|
*/
|
|
43
|
-
fieldType?:
|
|
43
|
+
fieldType?: FieldTypeWithLiterals;
|
|
44
44
|
/**
|
|
45
45
|
* Date and time the field was created.
|
|
46
46
|
* @readonly
|
|
@@ -69,16 +69,20 @@ export declare enum FieldDataType {
|
|
|
69
69
|
/** Accepts strings. Prepends `https://` if no protocol is included. */
|
|
70
70
|
URL = "URL"
|
|
71
71
|
}
|
|
72
|
+
/** @enumType */
|
|
73
|
+
export type FieldDataTypeWithLiterals = FieldDataType | 'TEXT' | 'NUMBER' | 'DATE' | 'URL';
|
|
72
74
|
export declare enum FieldType {
|
|
73
75
|
/** Field is a system field managed by Wix. System fields can't be modified by calling the Update Extended Field method. */
|
|
74
76
|
SYSTEM = "SYSTEM",
|
|
75
77
|
/** Field is a custom field and can be modified by calling the Update Extended Field method. */
|
|
76
78
|
USER_DEFINED = "USER_DEFINED"
|
|
77
79
|
}
|
|
80
|
+
/** @enumType */
|
|
81
|
+
export type FieldTypeWithLiterals = FieldType | 'SYSTEM' | 'USER_DEFINED';
|
|
78
82
|
/** Extended field filter options. */
|
|
79
83
|
export interface ListExtendedFieldsRequest {
|
|
80
84
|
/** Filter for fields of the specified type. */
|
|
81
|
-
fieldType?:
|
|
85
|
+
fieldType?: FieldTypeWithLiterals;
|
|
82
86
|
/**
|
|
83
87
|
* Filter for fields in the specified namespace.
|
|
84
88
|
* Fields created by calling the Find Or Create Extended Field method
|
|
@@ -108,7 +112,7 @@ export interface Sorting {
|
|
|
108
112
|
*
|
|
109
113
|
* Default: `ASC`.
|
|
110
114
|
*/
|
|
111
|
-
order?:
|
|
115
|
+
order?: SortOrderWithLiterals;
|
|
112
116
|
}
|
|
113
117
|
export declare enum SortOrder {
|
|
114
118
|
/** Sort by ascending order. */
|
|
@@ -116,6 +120,8 @@ export declare enum SortOrder {
|
|
|
116
120
|
/** Sort by descending order. */
|
|
117
121
|
DESC = "DESC"
|
|
118
122
|
}
|
|
123
|
+
/** @enumType */
|
|
124
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
119
125
|
export interface Paging {
|
|
120
126
|
/**
|
|
121
127
|
* Number of items to return.
|
|
@@ -168,7 +174,7 @@ export interface FindOrCreateExtendedFieldRequest {
|
|
|
168
174
|
* Ignored if an existing field is an exact match
|
|
169
175
|
* for the specified display name.
|
|
170
176
|
*/
|
|
171
|
-
dataType?:
|
|
177
|
+
dataType?: FieldDataTypeWithLiterals;
|
|
172
178
|
}
|
|
173
179
|
/** Extended field that was found or created. */
|
|
174
180
|
export interface FindOrCreateExtendedFieldResponse {
|
|
@@ -392,7 +398,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
392
398
|
*/
|
|
393
399
|
appId?: string;
|
|
394
400
|
/** @readonly */
|
|
395
|
-
identityType?:
|
|
401
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
396
402
|
}
|
|
397
403
|
/** @oneof */
|
|
398
404
|
export interface IdentificationDataIdOneOf {
|
|
@@ -424,3 +430,5 @@ export declare enum WebhookIdentityType {
|
|
|
424
430
|
WIX_USER = "WIX_USER",
|
|
425
431
|
APP = "APP"
|
|
426
432
|
}
|
|
433
|
+
/** @enumType */
|
|
434
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-extended-field-extended-fields.types.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field-extended-fields.types.ts"],"names":[],"mappings":";;;AA8DA,IAAY,aASX;AATD,WAAY,aAAa;IACvB,uBAAuB;IACvB,8BAAa,CAAA;IACb,sBAAsB;IACtB,kCAAiB,CAAA;IACjB,+CAA+C;IAC/C,8BAAa,CAAA;IACb,uEAAuE;IACvE,4BAAW,CAAA;AACb,CAAC,EATW,aAAa,6BAAb,aAAa,QASxB;
|
|
1
|
+
{"version":3,"file":"contacts-v4-extended-field-extended-fields.types.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field-extended-fields.types.ts"],"names":[],"mappings":";;;AA8DA,IAAY,aASX;AATD,WAAY,aAAa;IACvB,uBAAuB;IACvB,8BAAa,CAAA;IACb,sBAAsB;IACtB,kCAAiB,CAAA;IACjB,+CAA+C;IAC/C,8BAAa,CAAA;IACb,uEAAuE;IACvE,4BAAW,CAAA;AACb,CAAC,EATW,aAAa,6BAAb,aAAa,QASxB;AAUD,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,2HAA2H;IAC3H,8BAAiB,CAAA;IACjB,+FAA+F;IAC/F,0CAA6B,CAAA;AAC/B,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AA0CD,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,+BAA+B;IAC/B,wBAAW,CAAA;IACX,gCAAgC;IAChC,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AA+UD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|
|
@@ -36,12 +36,12 @@ export interface ExtendedField {
|
|
|
36
36
|
* Type of data the field holds.
|
|
37
37
|
* @readonly
|
|
38
38
|
*/
|
|
39
|
-
dataType?:
|
|
39
|
+
dataType?: FieldDataTypeWithLiterals;
|
|
40
40
|
/**
|
|
41
41
|
* Indicates whether the extended field is a system field or custom field.
|
|
42
42
|
* @readonly
|
|
43
43
|
*/
|
|
44
|
-
fieldType?:
|
|
44
|
+
fieldType?: FieldTypeWithLiterals;
|
|
45
45
|
/**
|
|
46
46
|
* Date and time the field was created.
|
|
47
47
|
* @readonly
|
|
@@ -70,16 +70,20 @@ export declare enum FieldDataType {
|
|
|
70
70
|
/** Accepts strings. Prepends `https://` if no protocol is included. */
|
|
71
71
|
URL = "URL"
|
|
72
72
|
}
|
|
73
|
+
/** @enumType */
|
|
74
|
+
export type FieldDataTypeWithLiterals = FieldDataType | 'TEXT' | 'NUMBER' | 'DATE' | 'URL';
|
|
73
75
|
export declare enum FieldType {
|
|
74
76
|
/** Field is a system field managed by Wix. System fields can't be modified by calling the Update Extended Field method. */
|
|
75
77
|
SYSTEM = "SYSTEM",
|
|
76
78
|
/** Field is a custom field and can be modified by calling the Update Extended Field method. */
|
|
77
79
|
USER_DEFINED = "USER_DEFINED"
|
|
78
80
|
}
|
|
81
|
+
/** @enumType */
|
|
82
|
+
export type FieldTypeWithLiterals = FieldType | 'SYSTEM' | 'USER_DEFINED';
|
|
79
83
|
/** Extended field filter options. */
|
|
80
84
|
export interface ListExtendedFieldsRequest {
|
|
81
85
|
/** Filter for fields of the specified type. */
|
|
82
|
-
fieldType?:
|
|
86
|
+
fieldType?: FieldTypeWithLiterals;
|
|
83
87
|
/**
|
|
84
88
|
* Filter for fields in the specified namespace.
|
|
85
89
|
* Fields created by calling the Find Or Create Extended Field method
|
|
@@ -109,7 +113,7 @@ export interface Sorting {
|
|
|
109
113
|
*
|
|
110
114
|
* Default: `ASC`.
|
|
111
115
|
*/
|
|
112
|
-
order?:
|
|
116
|
+
order?: SortOrderWithLiterals;
|
|
113
117
|
}
|
|
114
118
|
export declare enum SortOrder {
|
|
115
119
|
/** Sort by ascending order. */
|
|
@@ -117,6 +121,8 @@ export declare enum SortOrder {
|
|
|
117
121
|
/** Sort by descending order. */
|
|
118
122
|
DESC = "DESC"
|
|
119
123
|
}
|
|
124
|
+
/** @enumType */
|
|
125
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
120
126
|
export interface Paging {
|
|
121
127
|
/**
|
|
122
128
|
* Number of items to return.
|
|
@@ -169,7 +175,7 @@ export interface FindOrCreateExtendedFieldRequest {
|
|
|
169
175
|
* Ignored if an existing field is an exact match
|
|
170
176
|
* for the specified display name.
|
|
171
177
|
*/
|
|
172
|
-
dataType?:
|
|
178
|
+
dataType?: FieldDataTypeWithLiterals;
|
|
173
179
|
}
|
|
174
180
|
/** Extended field that was found or created. */
|
|
175
181
|
export interface FindOrCreateExtendedFieldResponse {
|
|
@@ -391,7 +397,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
391
397
|
*/
|
|
392
398
|
appId?: string;
|
|
393
399
|
/** @readonly */
|
|
394
|
-
identityType?:
|
|
400
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
395
401
|
}
|
|
396
402
|
/** @oneof */
|
|
397
403
|
export interface IdentificationDataIdOneOf {
|
|
@@ -423,6 +429,8 @@ export declare enum WebhookIdentityType {
|
|
|
423
429
|
WIX_USER = "WIX_USER",
|
|
424
430
|
APP = "APP"
|
|
425
431
|
}
|
|
432
|
+
/** @enumType */
|
|
433
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
426
434
|
export interface BaseEventMetadata {
|
|
427
435
|
/**
|
|
428
436
|
* App instance ID.
|
|
@@ -598,7 +606,7 @@ type ExtendedFieldNonNullablePaths = `key` | `displayName` | `dataType` | `field
|
|
|
598
606
|
* @returns Extended field that was found or created.
|
|
599
607
|
* @fqn com.wixpress.contacts.fields.v4.ContactExtendedFieldsServiceV4.FindOrCreateExtendedField
|
|
600
608
|
*/
|
|
601
|
-
export declare function findOrCreateExtendedField(displayName: string, dataType:
|
|
609
|
+
export declare function findOrCreateExtendedField(displayName: string, dataType: FieldDataTypeWithLiterals): Promise<NonNullablePaths<FindOrCreateExtendedFieldResponse, {
|
|
602
610
|
[P in ExtendedFieldNonNullablePaths]: `field.${P}`;
|
|
603
611
|
}[ExtendedFieldNonNullablePaths] | `newField`>>;
|
|
604
612
|
/**
|
|
@@ -673,12 +681,12 @@ export interface RenameExtendedField {
|
|
|
673
681
|
* Type of data the field holds.
|
|
674
682
|
* @readonly
|
|
675
683
|
*/
|
|
676
|
-
dataType?:
|
|
684
|
+
dataType?: FieldDataTypeWithLiterals;
|
|
677
685
|
/**
|
|
678
686
|
* Indicates whether the extended field is a system field or custom field.
|
|
679
687
|
* @readonly
|
|
680
688
|
*/
|
|
681
|
-
fieldType?:
|
|
689
|
+
fieldType?: FieldTypeWithLiterals;
|
|
682
690
|
/**
|
|
683
691
|
* Date and time the field was created.
|
|
684
692
|
* @readonly
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-extended-field-extended-fields.universal.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field-extended-fields.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,2HAA6G;AAC7G,aAAa;AACb,sFAAkF;AAgElF,IAAY,aASX;AATD,WAAY,aAAa;IACvB,uBAAuB;IACvB,8BAAa,CAAA;IACb,sBAAsB;IACtB,kCAAiB,CAAA;IACjB,+CAA+C;IAC/C,8BAAa,CAAA;IACb,uEAAuE;IACvE,4BAAW,CAAA;AACb,CAAC,EATW,aAAa,6BAAb,aAAa,QASxB;
|
|
1
|
+
{"version":3,"file":"contacts-v4-extended-field-extended-fields.universal.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field-extended-fields.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,2HAA6G;AAC7G,aAAa;AACb,sFAAkF;AAgElF,IAAY,aASX;AATD,WAAY,aAAa;IACvB,uBAAuB;IACvB,8BAAa,CAAA;IACb,sBAAsB;IACtB,kCAAiB,CAAA;IACjB,+CAA+C;IAC/C,8BAAa,CAAA;IACb,uEAAuE;IACvE,4BAAW,CA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datedEnvelope,
|
|
2
|
+
import { ExtendedField, ExtendedFieldCreatedEnvelope, ExtendedFieldDeletedEnvelope, ExtendedFieldUpdatedEnvelope, FieldDataTypeWithLiterals, FieldsQueryBuilder, FindOrCreateExtendedFieldResponse, RenameExtendedField } from './contacts-v4-extended-field-extended-fields.universal.js';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
@@ -25,7 +25,7 @@ interface FindOrCreateExtendedFieldSignature {
|
|
|
25
25
|
* for the specified display name.
|
|
26
26
|
* @returns Extended field that was found or created.
|
|
27
27
|
*/
|
|
28
|
-
(displayName: string, dataType:
|
|
28
|
+
(displayName: string, dataType: FieldDataTypeWithLiterals): Promise<FindOrCreateExtendedFieldResponse>;
|
|
29
29
|
}
|
|
30
30
|
export declare function getExtendedField(httpClient: HttpClient): GetExtendedFieldSignature;
|
|
31
31
|
interface GetExtendedFieldSignature {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-extended-field-extended-fields.public.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field-extended-fields.public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAgC,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EASL,mBAAmB,IAAI,4BAA4B,EACnD,yBAAyB,IAAI,kCAAkC,EAC/D,gBAAgB,IAAI,yBAAyB,EAC7C,mBAAmB,IAAI,4BAA4B,EACnD,mBAAmB,IAAI,4BAA4B,GACpD,MAAM,2DAA2D,CAAC;AAEnE,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,MAAM,UAAU,yBAAyB,CACvC,UAAsB;IAEtB,OAAO,CAAC,WAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"contacts-v4-extended-field-extended-fields.public.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field-extended-fields.public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAgC,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EASL,mBAAmB,IAAI,4BAA4B,EACnD,yBAAyB,IAAI,kCAAkC,EAC/D,gBAAgB,IAAI,yBAAyB,EAC7C,mBAAmB,IAAI,4BAA4B,EACnD,mBAAmB,IAAI,4BAA4B,GACpD,MAAM,2DAA2D,CAAC;AAEnE,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,MAAM,UAAU,yBAAyB,CACvC,UAAsB;IAEtB,OAAO,CAAC,WAAmB,EAAE,QAAmC,EAAE,EAAE,CAClE,kCAAkC,CAChC,WAAW,EACX,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AA6BD,MAAM,UAAU,gBAAgB,CAC9B,UAAsB;IAEtB,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,yBAAyB,CACvB,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAWD,MAAM,UAAU,mBAAmB,CACjC,UAAsB;IAEtB,OAAO,CACL,GAAW,EACX,KAA2D,EAC3D,EAAE,CACF,4BAA4B,CAC1B,GAAG,EACH,KAAK;IACL,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAYD,MAAM,UAAU,mBAAmB,CACjC,UAAsB;IAEtB,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,4BAA4B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AAE;SAC/B;KACF;CACF,CAAC,CACH,CACJ,EAAgC,CAAC;AAElC,OAAO,EAeL,aAAa,EACb,SAAS,EAyBT,SAAS,EAIT,mBAAmB,GACpB,MAAM,2DAA2D,CAAC"}
|
|
@@ -35,12 +35,12 @@ export interface ExtendedField {
|
|
|
35
35
|
* Type of data the field holds.
|
|
36
36
|
* @readonly
|
|
37
37
|
*/
|
|
38
|
-
dataType?:
|
|
38
|
+
dataType?: FieldDataTypeWithLiterals;
|
|
39
39
|
/**
|
|
40
40
|
* Indicates whether the extended field is a system field or custom field.
|
|
41
41
|
* @readonly
|
|
42
42
|
*/
|
|
43
|
-
fieldType?:
|
|
43
|
+
fieldType?: FieldTypeWithLiterals;
|
|
44
44
|
/**
|
|
45
45
|
* Date and time the field was created.
|
|
46
46
|
* @readonly
|
|
@@ -69,16 +69,20 @@ export declare enum FieldDataType {
|
|
|
69
69
|
/** Accepts strings. Prepends `https://` if no protocol is included. */
|
|
70
70
|
URL = "URL"
|
|
71
71
|
}
|
|
72
|
+
/** @enumType */
|
|
73
|
+
export type FieldDataTypeWithLiterals = FieldDataType | 'TEXT' | 'NUMBER' | 'DATE' | 'URL';
|
|
72
74
|
export declare enum FieldType {
|
|
73
75
|
/** Field is a system field managed by Wix. System fields can't be modified by calling the Update Extended Field method. */
|
|
74
76
|
SYSTEM = "SYSTEM",
|
|
75
77
|
/** Field is a custom field and can be modified by calling the Update Extended Field method. */
|
|
76
78
|
USER_DEFINED = "USER_DEFINED"
|
|
77
79
|
}
|
|
80
|
+
/** @enumType */
|
|
81
|
+
export type FieldTypeWithLiterals = FieldType | 'SYSTEM' | 'USER_DEFINED';
|
|
78
82
|
/** Extended field filter options. */
|
|
79
83
|
export interface ListExtendedFieldsRequest {
|
|
80
84
|
/** Filter for fields of the specified type. */
|
|
81
|
-
fieldType?:
|
|
85
|
+
fieldType?: FieldTypeWithLiterals;
|
|
82
86
|
/**
|
|
83
87
|
* Filter for fields in the specified namespace.
|
|
84
88
|
* Fields created by calling the Find Or Create Extended Field method
|
|
@@ -108,7 +112,7 @@ export interface Sorting {
|
|
|
108
112
|
*
|
|
109
113
|
* Default: `ASC`.
|
|
110
114
|
*/
|
|
111
|
-
order?:
|
|
115
|
+
order?: SortOrderWithLiterals;
|
|
112
116
|
}
|
|
113
117
|
export declare enum SortOrder {
|
|
114
118
|
/** Sort by ascending order. */
|
|
@@ -116,6 +120,8 @@ export declare enum SortOrder {
|
|
|
116
120
|
/** Sort by descending order. */
|
|
117
121
|
DESC = "DESC"
|
|
118
122
|
}
|
|
123
|
+
/** @enumType */
|
|
124
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
119
125
|
export interface Paging {
|
|
120
126
|
/**
|
|
121
127
|
* Number of items to return.
|
|
@@ -168,7 +174,7 @@ export interface FindOrCreateExtendedFieldRequest {
|
|
|
168
174
|
* Ignored if an existing field is an exact match
|
|
169
175
|
* for the specified display name.
|
|
170
176
|
*/
|
|
171
|
-
dataType?:
|
|
177
|
+
dataType?: FieldDataTypeWithLiterals;
|
|
172
178
|
}
|
|
173
179
|
/** Extended field that was found or created. */
|
|
174
180
|
export interface FindOrCreateExtendedFieldResponse {
|
|
@@ -392,7 +398,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
392
398
|
*/
|
|
393
399
|
appId?: string;
|
|
394
400
|
/** @readonly */
|
|
395
|
-
identityType?:
|
|
401
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
396
402
|
}
|
|
397
403
|
/** @oneof */
|
|
398
404
|
export interface IdentificationDataIdOneOf {
|
|
@@ -424,3 +430,5 @@ export declare enum WebhookIdentityType {
|
|
|
424
430
|
WIX_USER = "WIX_USER",
|
|
425
431
|
APP = "APP"
|
|
426
432
|
}
|
|
433
|
+
/** @enumType */
|
|
434
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-extended-field-extended-fields.types.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field-extended-fields.types.ts"],"names":[],"mappings":"AA8DA,MAAM,CAAN,IAAY,aASX;AATD,WAAY,aAAa;IACvB,uBAAuB;IACvB,8BAAa,CAAA;IACb,sBAAsB;IACtB,kCAAiB,CAAA;IACjB,+CAA+C;IAC/C,8BAAa,CAAA;IACb,uEAAuE;IACvE,4BAAW,CAAA;AACb,CAAC,EATW,aAAa,KAAb,aAAa,QASxB;
|
|
1
|
+
{"version":3,"file":"contacts-v4-extended-field-extended-fields.types.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field-extended-fields.types.ts"],"names":[],"mappings":"AA8DA,MAAM,CAAN,IAAY,aASX;AATD,WAAY,aAAa;IACvB,uBAAuB;IACvB,8BAAa,CAAA;IACb,sBAAsB;IACtB,kCAAiB,CAAA;IACjB,+CAA+C;IAC/C,8BAAa,CAAA;IACb,uEAAuE;IACvE,4BAAW,CAAA;AACb,CAAC,EATW,aAAa,KAAb,aAAa,QASxB;AAUD,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,2HAA2H;IAC3H,8BAAiB,CAAA;IACjB,+FAA+F;IAC/F,0CAA6B,CAAA;AAC/B,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AA0CD,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,+BAA+B;IAC/B,wBAAW,CAAA;IACX,gCAAgC;IAChC,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AA+UD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|
|
@@ -36,12 +36,12 @@ export interface ExtendedField {
|
|
|
36
36
|
* Type of data the field holds.
|
|
37
37
|
* @readonly
|
|
38
38
|
*/
|
|
39
|
-
dataType?:
|
|
39
|
+
dataType?: FieldDataTypeWithLiterals;
|
|
40
40
|
/**
|
|
41
41
|
* Indicates whether the extended field is a system field or custom field.
|
|
42
42
|
* @readonly
|
|
43
43
|
*/
|
|
44
|
-
fieldType?:
|
|
44
|
+
fieldType?: FieldTypeWithLiterals;
|
|
45
45
|
/**
|
|
46
46
|
* Date and time the field was created.
|
|
47
47
|
* @readonly
|
|
@@ -70,16 +70,20 @@ export declare enum FieldDataType {
|
|
|
70
70
|
/** Accepts strings. Prepends `https://` if no protocol is included. */
|
|
71
71
|
URL = "URL"
|
|
72
72
|
}
|
|
73
|
+
/** @enumType */
|
|
74
|
+
export type FieldDataTypeWithLiterals = FieldDataType | 'TEXT' | 'NUMBER' | 'DATE' | 'URL';
|
|
73
75
|
export declare enum FieldType {
|
|
74
76
|
/** Field is a system field managed by Wix. System fields can't be modified by calling the Update Extended Field method. */
|
|
75
77
|
SYSTEM = "SYSTEM",
|
|
76
78
|
/** Field is a custom field and can be modified by calling the Update Extended Field method. */
|
|
77
79
|
USER_DEFINED = "USER_DEFINED"
|
|
78
80
|
}
|
|
81
|
+
/** @enumType */
|
|
82
|
+
export type FieldTypeWithLiterals = FieldType | 'SYSTEM' | 'USER_DEFINED';
|
|
79
83
|
/** Extended field filter options. */
|
|
80
84
|
export interface ListExtendedFieldsRequest {
|
|
81
85
|
/** Filter for fields of the specified type. */
|
|
82
|
-
fieldType?:
|
|
86
|
+
fieldType?: FieldTypeWithLiterals;
|
|
83
87
|
/**
|
|
84
88
|
* Filter for fields in the specified namespace.
|
|
85
89
|
* Fields created by calling the Find Or Create Extended Field method
|
|
@@ -109,7 +113,7 @@ export interface Sorting {
|
|
|
109
113
|
*
|
|
110
114
|
* Default: `ASC`.
|
|
111
115
|
*/
|
|
112
|
-
order?:
|
|
116
|
+
order?: SortOrderWithLiterals;
|
|
113
117
|
}
|
|
114
118
|
export declare enum SortOrder {
|
|
115
119
|
/** Sort by ascending order. */
|
|
@@ -117,6 +121,8 @@ export declare enum SortOrder {
|
|
|
117
121
|
/** Sort by descending order. */
|
|
118
122
|
DESC = "DESC"
|
|
119
123
|
}
|
|
124
|
+
/** @enumType */
|
|
125
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
120
126
|
export interface Paging {
|
|
121
127
|
/**
|
|
122
128
|
* Number of items to return.
|
|
@@ -169,7 +175,7 @@ export interface FindOrCreateExtendedFieldRequest {
|
|
|
169
175
|
* Ignored if an existing field is an exact match
|
|
170
176
|
* for the specified display name.
|
|
171
177
|
*/
|
|
172
|
-
dataType?:
|
|
178
|
+
dataType?: FieldDataTypeWithLiterals;
|
|
173
179
|
}
|
|
174
180
|
/** Extended field that was found or created. */
|
|
175
181
|
export interface FindOrCreateExtendedFieldResponse {
|
|
@@ -391,7 +397,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
391
397
|
*/
|
|
392
398
|
appId?: string;
|
|
393
399
|
/** @readonly */
|
|
394
|
-
identityType?:
|
|
400
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
395
401
|
}
|
|
396
402
|
/** @oneof */
|
|
397
403
|
export interface IdentificationDataIdOneOf {
|
|
@@ -423,6 +429,8 @@ export declare enum WebhookIdentityType {
|
|
|
423
429
|
WIX_USER = "WIX_USER",
|
|
424
430
|
APP = "APP"
|
|
425
431
|
}
|
|
432
|
+
/** @enumType */
|
|
433
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
426
434
|
export interface BaseEventMetadata {
|
|
427
435
|
/**
|
|
428
436
|
* App instance ID.
|
|
@@ -598,7 +606,7 @@ type ExtendedFieldNonNullablePaths = `key` | `displayName` | `dataType` | `field
|
|
|
598
606
|
* @returns Extended field that was found or created.
|
|
599
607
|
* @fqn com.wixpress.contacts.fields.v4.ContactExtendedFieldsServiceV4.FindOrCreateExtendedField
|
|
600
608
|
*/
|
|
601
|
-
export declare function findOrCreateExtendedField(displayName: string, dataType:
|
|
609
|
+
export declare function findOrCreateExtendedField(displayName: string, dataType: FieldDataTypeWithLiterals): Promise<NonNullablePaths<FindOrCreateExtendedFieldResponse, {
|
|
602
610
|
[P in ExtendedFieldNonNullablePaths]: `field.${P}`;
|
|
603
611
|
}[ExtendedFieldNonNullablePaths] | `newField`>>;
|
|
604
612
|
/**
|
|
@@ -673,12 +681,12 @@ export interface RenameExtendedField {
|
|
|
673
681
|
* Type of data the field holds.
|
|
674
682
|
* @readonly
|
|
675
683
|
*/
|
|
676
|
-
dataType?:
|
|
684
|
+
dataType?: FieldDataTypeWithLiterals;
|
|
677
685
|
/**
|
|
678
686
|
* Indicates whether the extended field is a system field or custom field.
|
|
679
687
|
* @readonly
|
|
680
688
|
*/
|
|
681
|
-
fieldType?:
|
|
689
|
+
fieldType?: FieldTypeWithLiterals;
|
|
682
690
|
/**
|
|
683
691
|
* Date and time the field was created.
|
|
684
692
|
* @readonly
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-extended-field-extended-fields.universal.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field-extended-fields.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,oCAAoC,MAAM,sDAAsD,CAAC;AAC7G,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAgElF,MAAM,CAAN,IAAY,aASX;AATD,WAAY,aAAa;IACvB,uBAAuB;IACvB,8BAAa,CAAA;IACb,sBAAsB;IACtB,kCAAiB,CAAA;IACjB,+CAA+C;IAC/C,8BAAa,CAAA;IACb,uEAAuE;IACvE,4BAAW,CAAA;AACb,CAAC,EATW,aAAa,KAAb,aAAa,QASxB;
|
|
1
|
+
{"version":3,"file":"contacts-v4-extended-field-extended-fields.universal.js","sourceRoot":"","sources":["../../../src/contacts-v4-extended-field-extended-fields.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,oCAAoC,MAAM,sDAAsD,CAAC;AAC7G,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAgElF,MAAM,CAAN,IAAY,aASX;AATD,WAAY,aAAa;IACvB,uBAAuB;IACvB,8BAAa,CAAA;IACb,sBAAsB;IACtB,kCAAiB,CAAA;IACjB,+CAA+C;IAC/C,8BAAa,CAAA;IACb,uEAAuE;IACvE,4BAAW,CAAA;AACb,CAAC,EATW,aAAa,KAAb,aAAa,QASxB;AAUD,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,2HAA2H;IAC3H,8BAAiB,CAAA;IACjB,+FAA+F;IAC/F,0CAA6B,CAAA;AAC/B,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AA0CD,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,+BAA+B;IAC/B,wBAAW,CAAA;IACX,gCAAgC;IAChC,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AA6UD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAA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,CAAC,CACzB,CAAC;YAEF,OAAO;gBACL,KAAK,EAAE,eAAe,EAAE,MAAM;gBAC9B,cAAc,EAAE,eAAe,EAAE,cAAc;aAChD,CAAC;QACJ,CAAC;QACD,gBAAgB,EAAE,CAAC,GAAY,EAAE,EAAE;YACjC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,GAAG,EAAE;gBAC9C,sBAAsB,EAAE,EAAE;gBAC1B,wBAAwB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBAC3C,uBAAuB,EAAE,KAAK;aAC/B,CAAC,CAAC;YAEH,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,EAAE;KACxB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { ExtendedField, ExtendedFieldCreatedEnvelope, ExtendedFieldDeletedEnvelope, ExtendedFieldUpdatedEnvelope,
|
|
2
|
+
import { ExtendedField, ExtendedFieldCreatedEnvelope, ExtendedFieldDeletedEnvelope, ExtendedFieldUpdatedEnvelope, FieldDataTypeWithLiterals, FieldsQueryBuilder, FindOrCreateExtendedFieldResponse, RenameExtendedField } from './contacts-v4-extended-field-extended-fields.universal.js';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
@@ -25,7 +25,7 @@ interface FindOrCreateExtendedFieldSignature {
|
|
|
25
25
|
* for the specified display name.
|
|
26
26
|
* @returns Extended field that was found or created.
|
|
27
27
|
*/
|
|
28
|
-
(displayName: string, dataType:
|
|
28
|
+
(displayName: string, dataType: FieldDataTypeWithLiterals): Promise<FindOrCreateExtendedFieldResponse>;
|
|
29
29
|
}
|
|
30
30
|
export declare function getExtendedField(httpClient: HttpClient): GetExtendedFieldSignature;
|
|
31
31
|
interface GetExtendedFieldSignature {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-extended-field-extended-fields.public.js","sourceRoot":"","sources":["../../../../src/contacts-v4-extended-field-extended-fields.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA+E;AAC/E,uIAcmE;AAEtD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,SAAgB,yBAAyB,CACvC,UAAsB;IAEtB,OAAO,CAAC,WAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"contacts-v4-extended-field-extended-fields.public.js","sourceRoot":"","sources":["../../../../src/contacts-v4-extended-field-extended-fields.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA+E;AAC/E,uIAcmE;AAEtD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,SAAgB,yBAAyB,CACvC,UAAsB;IAEtB,OAAO,CAAC,WAAmB,EAAE,QAAmC,EAAE,EAAE,CAClE,IAAA,mFAAkC,EAChC,WAAW,EACX,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAVD,8DAUC;AA6BD,SAAgB,gBAAgB,CAC9B,UAAsB;IAEtB,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,IAAA,0EAAyB,EACvB,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,4CASC;AAWD,SAAgB,mBAAmB,CACjC,UAAsB;IAEtB,OAAO,CACL,GAAW,EACX,KAA2D,EAC3D,EAAE,CACF,IAAA,6EAA4B,EAC1B,GAAG,EACH,KAAK;IACL,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,kDAaC;AAYD,SAAgB,mBAAmB,CACjC,UAAsB;IAEtB,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,IAAA,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,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;SAC/B;KACF;CACF,CAAC,CACH,CACJ,EAAgC,CAAC;AAElC,qIA8CmE;AA/BjE,wJAAA,aAAa,OAAA;AACb,oJAAA,SAAS,OAAA;AAyBT,oJAAA,SAAS,OAAA;AAIT,8JAAA,mBAAmB,OAAA"}
|
|
@@ -35,12 +35,12 @@ export interface ExtendedField {
|
|
|
35
35
|
* Type of data the field holds.
|
|
36
36
|
* @readonly
|
|
37
37
|
*/
|
|
38
|
-
dataType?:
|
|
38
|
+
dataType?: FieldDataTypeWithLiterals;
|
|
39
39
|
/**
|
|
40
40
|
* Indicates whether the extended field is a system field or custom field.
|
|
41
41
|
* @readonly
|
|
42
42
|
*/
|
|
43
|
-
fieldType?:
|
|
43
|
+
fieldType?: FieldTypeWithLiterals;
|
|
44
44
|
/**
|
|
45
45
|
* Date and time the field was created.
|
|
46
46
|
* @readonly
|
|
@@ -69,16 +69,20 @@ export declare enum FieldDataType {
|
|
|
69
69
|
/** Accepts strings. Prepends `https://` if no protocol is included. */
|
|
70
70
|
URL = "URL"
|
|
71
71
|
}
|
|
72
|
+
/** @enumType */
|
|
73
|
+
export type FieldDataTypeWithLiterals = FieldDataType | 'TEXT' | 'NUMBER' | 'DATE' | 'URL';
|
|
72
74
|
export declare enum FieldType {
|
|
73
75
|
/** Field is a system field managed by Wix. System fields can't be modified by calling the Update Extended Field method. */
|
|
74
76
|
SYSTEM = "SYSTEM",
|
|
75
77
|
/** Field is a custom field and can be modified by calling the Update Extended Field method. */
|
|
76
78
|
USER_DEFINED = "USER_DEFINED"
|
|
77
79
|
}
|
|
80
|
+
/** @enumType */
|
|
81
|
+
export type FieldTypeWithLiterals = FieldType | 'SYSTEM' | 'USER_DEFINED';
|
|
78
82
|
/** Extended field filter options. */
|
|
79
83
|
export interface ListExtendedFieldsRequest {
|
|
80
84
|
/** Filter for fields of the specified type. */
|
|
81
|
-
fieldType?:
|
|
85
|
+
fieldType?: FieldTypeWithLiterals;
|
|
82
86
|
/**
|
|
83
87
|
* Filter for fields in the specified namespace.
|
|
84
88
|
* Fields created by calling the Find Or Create Extended Field method
|
|
@@ -108,7 +112,7 @@ export interface Sorting {
|
|
|
108
112
|
*
|
|
109
113
|
* Default: `ASC`.
|
|
110
114
|
*/
|
|
111
|
-
order?:
|
|
115
|
+
order?: SortOrderWithLiterals;
|
|
112
116
|
}
|
|
113
117
|
export declare enum SortOrder {
|
|
114
118
|
/** Sort by ascending order. */
|
|
@@ -116,6 +120,8 @@ export declare enum SortOrder {
|
|
|
116
120
|
/** Sort by descending order. */
|
|
117
121
|
DESC = "DESC"
|
|
118
122
|
}
|
|
123
|
+
/** @enumType */
|
|
124
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
119
125
|
export interface Paging {
|
|
120
126
|
/**
|
|
121
127
|
* Number of items to return.
|
|
@@ -168,7 +174,7 @@ export interface FindOrCreateExtendedFieldRequest {
|
|
|
168
174
|
* Ignored if an existing field is an exact match
|
|
169
175
|
* for the specified display name.
|
|
170
176
|
*/
|
|
171
|
-
dataType?:
|
|
177
|
+
dataType?: FieldDataTypeWithLiterals;
|
|
172
178
|
}
|
|
173
179
|
/** Extended field that was found or created. */
|
|
174
180
|
export interface FindOrCreateExtendedFieldResponse {
|
|
@@ -392,7 +398,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
392
398
|
*/
|
|
393
399
|
appId?: string;
|
|
394
400
|
/** @readonly */
|
|
395
|
-
identityType?:
|
|
401
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
396
402
|
}
|
|
397
403
|
/** @oneof */
|
|
398
404
|
export interface IdentificationDataIdOneOf {
|
|
@@ -424,3 +430,5 @@ export declare enum WebhookIdentityType {
|
|
|
424
430
|
WIX_USER = "WIX_USER",
|
|
425
431
|
APP = "APP"
|
|
426
432
|
}
|
|
433
|
+
/** @enumType */
|
|
434
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-extended-field-extended-fields.types.js","sourceRoot":"","sources":["../../../../src/contacts-v4-extended-field-extended-fields.types.ts"],"names":[],"mappings":";;;AA8DA,IAAY,aASX;AATD,WAAY,aAAa;IACvB,uBAAuB;IACvB,8BAAa,CAAA;IACb,sBAAsB;IACtB,kCAAiB,CAAA;IACjB,+CAA+C;IAC/C,8BAAa,CAAA;IACb,uEAAuE;IACvE,4BAAW,CAAA;AACb,CAAC,EATW,aAAa,6BAAb,aAAa,QASxB;
|
|
1
|
+
{"version":3,"file":"contacts-v4-extended-field-extended-fields.types.js","sourceRoot":"","sources":["../../../../src/contacts-v4-extended-field-extended-fields.types.ts"],"names":[],"mappings":";;;AA8DA,IAAY,aASX;AATD,WAAY,aAAa;IACvB,uBAAuB;IACvB,8BAAa,CAAA;IACb,sBAAsB;IACtB,kCAAiB,CAAA;IACjB,+CAA+C;IAC/C,8BAAa,CAAA;IACb,uEAAuE;IACvE,4BAAW,CAAA;AACb,CAAC,EATW,aAAa,6BAAb,aAAa,QASxB;AAUD,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,2HAA2H;IAC3H,8BAAiB,CAAA;IACjB,+FAA+F;IAC/F,0CAA6B,CAAA;AAC/B,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AA0CD,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,+BAA+B;IAC/B,wBAAW,CAAA;IACX,gCAAgC;IAChC,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AA+UD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|
|
@@ -36,12 +36,12 @@ export interface ExtendedField {
|
|
|
36
36
|
* Type of data the field holds.
|
|
37
37
|
* @readonly
|
|
38
38
|
*/
|
|
39
|
-
dataType?:
|
|
39
|
+
dataType?: FieldDataTypeWithLiterals;
|
|
40
40
|
/**
|
|
41
41
|
* Indicates whether the extended field is a system field or custom field.
|
|
42
42
|
* @readonly
|
|
43
43
|
*/
|
|
44
|
-
fieldType?:
|
|
44
|
+
fieldType?: FieldTypeWithLiterals;
|
|
45
45
|
/**
|
|
46
46
|
* Date and time the field was created.
|
|
47
47
|
* @readonly
|
|
@@ -70,16 +70,20 @@ export declare enum FieldDataType {
|
|
|
70
70
|
/** Accepts strings. Prepends `https://` if no protocol is included. */
|
|
71
71
|
URL = "URL"
|
|
72
72
|
}
|
|
73
|
+
/** @enumType */
|
|
74
|
+
export type FieldDataTypeWithLiterals = FieldDataType | 'TEXT' | 'NUMBER' | 'DATE' | 'URL';
|
|
73
75
|
export declare enum FieldType {
|
|
74
76
|
/** Field is a system field managed by Wix. System fields can't be modified by calling the Update Extended Field method. */
|
|
75
77
|
SYSTEM = "SYSTEM",
|
|
76
78
|
/** Field is a custom field and can be modified by calling the Update Extended Field method. */
|
|
77
79
|
USER_DEFINED = "USER_DEFINED"
|
|
78
80
|
}
|
|
81
|
+
/** @enumType */
|
|
82
|
+
export type FieldTypeWithLiterals = FieldType | 'SYSTEM' | 'USER_DEFINED';
|
|
79
83
|
/** Extended field filter options. */
|
|
80
84
|
export interface ListExtendedFieldsRequest {
|
|
81
85
|
/** Filter for fields of the specified type. */
|
|
82
|
-
fieldType?:
|
|
86
|
+
fieldType?: FieldTypeWithLiterals;
|
|
83
87
|
/**
|
|
84
88
|
* Filter for fields in the specified namespace.
|
|
85
89
|
* Fields created by calling the Find Or Create Extended Field method
|
|
@@ -109,7 +113,7 @@ export interface Sorting {
|
|
|
109
113
|
*
|
|
110
114
|
* Default: `ASC`.
|
|
111
115
|
*/
|
|
112
|
-
order?:
|
|
116
|
+
order?: SortOrderWithLiterals;
|
|
113
117
|
}
|
|
114
118
|
export declare enum SortOrder {
|
|
115
119
|
/** Sort by ascending order. */
|
|
@@ -117,6 +121,8 @@ export declare enum SortOrder {
|
|
|
117
121
|
/** Sort by descending order. */
|
|
118
122
|
DESC = "DESC"
|
|
119
123
|
}
|
|
124
|
+
/** @enumType */
|
|
125
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
120
126
|
export interface Paging {
|
|
121
127
|
/**
|
|
122
128
|
* Number of items to return.
|
|
@@ -169,7 +175,7 @@ export interface FindOrCreateExtendedFieldRequest {
|
|
|
169
175
|
* Ignored if an existing field is an exact match
|
|
170
176
|
* for the specified display name.
|
|
171
177
|
*/
|
|
172
|
-
dataType?:
|
|
178
|
+
dataType?: FieldDataTypeWithLiterals;
|
|
173
179
|
}
|
|
174
180
|
/** Extended field that was found or created. */
|
|
175
181
|
export interface FindOrCreateExtendedFieldResponse {
|
|
@@ -391,7 +397,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
391
397
|
*/
|
|
392
398
|
appId?: string;
|
|
393
399
|
/** @readonly */
|
|
394
|
-
identityType?:
|
|
400
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
395
401
|
}
|
|
396
402
|
/** @oneof */
|
|
397
403
|
export interface IdentificationDataIdOneOf {
|
|
@@ -423,6 +429,8 @@ export declare enum WebhookIdentityType {
|
|
|
423
429
|
WIX_USER = "WIX_USER",
|
|
424
430
|
APP = "APP"
|
|
425
431
|
}
|
|
432
|
+
/** @enumType */
|
|
433
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
426
434
|
export interface BaseEventMetadata {
|
|
427
435
|
/**
|
|
428
436
|
* App instance ID.
|
|
@@ -598,7 +606,7 @@ type ExtendedFieldNonNullablePaths = `key` | `displayName` | `dataType` | `field
|
|
|
598
606
|
* @returns Extended field that was found or created.
|
|
599
607
|
* @fqn com.wixpress.contacts.fields.v4.ContactExtendedFieldsServiceV4.FindOrCreateExtendedField
|
|
600
608
|
*/
|
|
601
|
-
export declare function findOrCreateExtendedField(displayName: string, dataType:
|
|
609
|
+
export declare function findOrCreateExtendedField(displayName: string, dataType: FieldDataTypeWithLiterals): Promise<NonNullablePaths<FindOrCreateExtendedFieldResponse, {
|
|
602
610
|
[P in ExtendedFieldNonNullablePaths]: `field.${P}`;
|
|
603
611
|
}[ExtendedFieldNonNullablePaths] | `newField`>>;
|
|
604
612
|
/**
|
|
@@ -673,12 +681,12 @@ export interface RenameExtendedField {
|
|
|
673
681
|
* Type of data the field holds.
|
|
674
682
|
* @readonly
|
|
675
683
|
*/
|
|
676
|
-
dataType?:
|
|
684
|
+
dataType?: FieldDataTypeWithLiterals;
|
|
677
685
|
/**
|
|
678
686
|
* Indicates whether the extended field is a system field or custom field.
|
|
679
687
|
* @readonly
|
|
680
688
|
*/
|
|
681
|
-
fieldType?:
|
|
689
|
+
fieldType?: FieldTypeWithLiterals;
|
|
682
690
|
/**
|
|
683
691
|
* Date and time the field was created.
|
|
684
692
|
* @readonly
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-extended-field-extended-fields.universal.js","sourceRoot":"","sources":["../../../../src/contacts-v4-extended-field-extended-fields.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,2HAA6G;AAC7G,aAAa;AACb,sFAAkF;AAgElF,IAAY,aASX;AATD,WAAY,aAAa;IACvB,uBAAuB;IACvB,8BAAa,CAAA;IACb,sBAAsB;IACtB,kCAAiB,CAAA;IACjB,+CAA+C;IAC/C,8BAAa,CAAA;IACb,uEAAuE;IACvE,4BAAW,CAAA;AACb,CAAC,EATW,aAAa,6BAAb,aAAa,QASxB;
|
|
1
|
+
{"version":3,"file":"contacts-v4-extended-field-extended-fields.universal.js","sourceRoot":"","sources":["../../../../src/contacts-v4-extended-field-extended-fields.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,2HAA6G;AAC7G,aAAa;AACb,sFAAkF;AAgElF,IAAY,aASX;AATD,WAAY,aAAa;IACvB,uBAAuB;IACvB,8BAAa,CAAA;IACb,sBAAsB;IACtB,kCAAiB,CAAA;IACjB,+CAA+C;IAC/C,8BAAa,CAAA;IACb,uEAAuE;IACvE,4BAAW,CAAA;AACb,CAAC,EATW,aAAa,6BAAb,aAAa,QASxB;AAUD,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,2HAA2H;IAC3H,8BAAiB,CAAA;IACjB,+FAA+F;IAC/F,0CAA6B,CAAA;AAC/B,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AA0CD,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,+BAA+B;IAC/B,wBAAW,CAAA;IACX,gCAAgC;IAChC,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AA6UD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AA6KD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACI,KAAK,UAAU,yBAAyB,CAC7C,WAAmB,EACnB,QAAmC;IAUnC,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC;QACpD,WAAW,EAAE,WAAW;QACxB,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;IAEH,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BAC1B,wBAAwB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBAC3C,uBAAuB,EAAE,KAAK;aAC/B,CAAC,CAAC;YAEH,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,EAAE;KACxB,CAAC,CAAC;AACL,CAAC;AA1DD,kDA0DC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { ExtendedField, ExtendedFieldCreatedEnvelope, ExtendedFieldDeletedEnvelope, ExtendedFieldUpdatedEnvelope,
|
|
2
|
+
import { ExtendedField, ExtendedFieldCreatedEnvelope, ExtendedFieldDeletedEnvelope, ExtendedFieldUpdatedEnvelope, FieldDataTypeWithLiterals, FieldsQueryBuilder, FindOrCreateExtendedFieldResponse, RenameExtendedField } from './contacts-v4-extended-field-extended-fields.universal.js';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
@@ -25,7 +25,7 @@ interface FindOrCreateExtendedFieldSignature {
|
|
|
25
25
|
* for the specified display name.
|
|
26
26
|
* @returns Extended field that was found or created.
|
|
27
27
|
*/
|
|
28
|
-
(displayName: string, dataType:
|
|
28
|
+
(displayName: string, dataType: FieldDataTypeWithLiterals): Promise<FindOrCreateExtendedFieldResponse>;
|
|
29
29
|
}
|
|
30
30
|
export declare function getExtendedField(httpClient: HttpClient): GetExtendedFieldSignature;
|
|
31
31
|
interface GetExtendedFieldSignature {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-extended-field-extended-fields.public.js","sourceRoot":"","sources":["../../../../src/contacts-v4-extended-field-extended-fields.public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAgC,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EASL,mBAAmB,IAAI,4BAA4B,EACnD,yBAAyB,IAAI,kCAAkC,EAC/D,gBAAgB,IAAI,yBAAyB,EAC7C,mBAAmB,IAAI,4BAA4B,EACnD,mBAAmB,IAAI,4BAA4B,GACpD,MAAM,2DAA2D,CAAC;AAEnE,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,MAAM,UAAU,yBAAyB,CACvC,UAAsB;IAEtB,OAAO,CAAC,WAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"contacts-v4-extended-field-extended-fields.public.js","sourceRoot":"","sources":["../../../../src/contacts-v4-extended-field-extended-fields.public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAgC,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EASL,mBAAmB,IAAI,4BAA4B,EACnD,yBAAyB,IAAI,kCAAkC,EAC/D,gBAAgB,IAAI,yBAAyB,EAC7C,mBAAmB,IAAI,4BAA4B,EACnD,mBAAmB,IAAI,4BAA4B,GACpD,MAAM,2DAA2D,CAAC;AAEnE,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,MAAM,UAAU,yBAAyB,CACvC,UAAsB;IAEtB,OAAO,CAAC,WAAmB,EAAE,QAAmC,EAAE,EAAE,CAClE,kCAAkC,CAChC,WAAW,EACX,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AA6BD,MAAM,UAAU,gBAAgB,CAC9B,UAAsB;IA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,EAAE,IAAI,EAAE,oBAAoB,EAAE;SAC/B;KACF;CACF,CAAC,CACH,CACJ,EAAgC,CAAC;AAClC,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAe,CACnD,wCAAwC,EACxC,IAAI,EACJ,CAAC,KAAmC,EAAE,EAAE,CACtC,uCAAuC,CACrC,cAAc,CAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,oCAAoC;QACjD,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;SAC/B;KACF;CACF,CAAC,CACH,CACJ,EAAgC,CAAC;AAElC,OAAO,EAeL,aAAa,EACb,SAAS,EAyBT,SAAS,EAIT,mBAAmB,GACpB,MAAM,2DAA2D,CAAC"}
|
|
@@ -35,12 +35,12 @@ export interface ExtendedField {
|
|
|
35
35
|
* Type of data the field holds.
|
|
36
36
|
* @readonly
|
|
37
37
|
*/
|
|
38
|
-
dataType?:
|
|
38
|
+
dataType?: FieldDataTypeWithLiterals;
|
|
39
39
|
/**
|
|
40
40
|
* Indicates whether the extended field is a system field or custom field.
|
|
41
41
|
* @readonly
|
|
42
42
|
*/
|
|
43
|
-
fieldType?:
|
|
43
|
+
fieldType?: FieldTypeWithLiterals;
|
|
44
44
|
/**
|
|
45
45
|
* Date and time the field was created.
|
|
46
46
|
* @readonly
|
|
@@ -69,16 +69,20 @@ export declare enum FieldDataType {
|
|
|
69
69
|
/** Accepts strings. Prepends `https://` if no protocol is included. */
|
|
70
70
|
URL = "URL"
|
|
71
71
|
}
|
|
72
|
+
/** @enumType */
|
|
73
|
+
export type FieldDataTypeWithLiterals = FieldDataType | 'TEXT' | 'NUMBER' | 'DATE' | 'URL';
|
|
72
74
|
export declare enum FieldType {
|
|
73
75
|
/** Field is a system field managed by Wix. System fields can't be modified by calling the Update Extended Field method. */
|
|
74
76
|
SYSTEM = "SYSTEM",
|
|
75
77
|
/** Field is a custom field and can be modified by calling the Update Extended Field method. */
|
|
76
78
|
USER_DEFINED = "USER_DEFINED"
|
|
77
79
|
}
|
|
80
|
+
/** @enumType */
|
|
81
|
+
export type FieldTypeWithLiterals = FieldType | 'SYSTEM' | 'USER_DEFINED';
|
|
78
82
|
/** Extended field filter options. */
|
|
79
83
|
export interface ListExtendedFieldsRequest {
|
|
80
84
|
/** Filter for fields of the specified type. */
|
|
81
|
-
fieldType?:
|
|
85
|
+
fieldType?: FieldTypeWithLiterals;
|
|
82
86
|
/**
|
|
83
87
|
* Filter for fields in the specified namespace.
|
|
84
88
|
* Fields created by calling the Find Or Create Extended Field method
|
|
@@ -108,7 +112,7 @@ export interface Sorting {
|
|
|
108
112
|
*
|
|
109
113
|
* Default: `ASC`.
|
|
110
114
|
*/
|
|
111
|
-
order?:
|
|
115
|
+
order?: SortOrderWithLiterals;
|
|
112
116
|
}
|
|
113
117
|
export declare enum SortOrder {
|
|
114
118
|
/** Sort by ascending order. */
|
|
@@ -116,6 +120,8 @@ export declare enum SortOrder {
|
|
|
116
120
|
/** Sort by descending order. */
|
|
117
121
|
DESC = "DESC"
|
|
118
122
|
}
|
|
123
|
+
/** @enumType */
|
|
124
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
119
125
|
export interface Paging {
|
|
120
126
|
/**
|
|
121
127
|
* Number of items to return.
|
|
@@ -168,7 +174,7 @@ export interface FindOrCreateExtendedFieldRequest {
|
|
|
168
174
|
* Ignored if an existing field is an exact match
|
|
169
175
|
* for the specified display name.
|
|
170
176
|
*/
|
|
171
|
-
dataType?:
|
|
177
|
+
dataType?: FieldDataTypeWithLiterals;
|
|
172
178
|
}
|
|
173
179
|
/** Extended field that was found or created. */
|
|
174
180
|
export interface FindOrCreateExtendedFieldResponse {
|
|
@@ -392,7 +398,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
392
398
|
*/
|
|
393
399
|
appId?: string;
|
|
394
400
|
/** @readonly */
|
|
395
|
-
identityType?:
|
|
401
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
396
402
|
}
|
|
397
403
|
/** @oneof */
|
|
398
404
|
export interface IdentificationDataIdOneOf {
|
|
@@ -424,3 +430,5 @@ export declare enum WebhookIdentityType {
|
|
|
424
430
|
WIX_USER = "WIX_USER",
|
|
425
431
|
APP = "APP"
|
|
426
432
|
}
|
|
433
|
+
/** @enumType */
|
|
434
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-extended-field-extended-fields.types.js","sourceRoot":"","sources":["../../../../src/contacts-v4-extended-field-extended-fields.types.ts"],"names":[],"mappings":"AA8DA,MAAM,CAAN,IAAY,aASX;AATD,WAAY,aAAa;IACvB,uBAAuB;IACvB,8BAAa,CAAA;IACb,sBAAsB;IACtB,kCAAiB,CAAA;IACjB,+CAA+C;IAC/C,8BAAa,CAAA;IACb,uEAAuE;IACvE,4BAAW,CAAA;AACb,CAAC,EATW,aAAa,KAAb,aAAa,QASxB;
|
|
1
|
+
{"version":3,"file":"contacts-v4-extended-field-extended-fields.types.js","sourceRoot":"","sources":["../../../../src/contacts-v4-extended-field-extended-fields.types.ts"],"names":[],"mappings":"AA8DA,MAAM,CAAN,IAAY,aASX;AATD,WAAY,aAAa;IACvB,uBAAuB;IACvB,8BAAa,CAAA;IACb,sBAAsB;IACtB,kCAAiB,CAAA;IACjB,+CAA+C;IAC/C,8BAAa,CAAA;IACb,uEAAuE;IACvE,4BAAW,CAAA;AACb,CAAC,EATW,aAAa,KAAb,aAAa,QASxB;AAUD,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,2HAA2H;IAC3H,8BAAiB,CAAA;IACjB,+FAA+F;IAC/F,0CAA6B,CAAA;AAC/B,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AA0CD,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,+BAA+B;IAC/B,wBAAW,CAAA;IACX,gCAAgC;IAChC,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AA+UD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|
|
@@ -36,12 +36,12 @@ export interface ExtendedField {
|
|
|
36
36
|
* Type of data the field holds.
|
|
37
37
|
* @readonly
|
|
38
38
|
*/
|
|
39
|
-
dataType?:
|
|
39
|
+
dataType?: FieldDataTypeWithLiterals;
|
|
40
40
|
/**
|
|
41
41
|
* Indicates whether the extended field is a system field or custom field.
|
|
42
42
|
* @readonly
|
|
43
43
|
*/
|
|
44
|
-
fieldType?:
|
|
44
|
+
fieldType?: FieldTypeWithLiterals;
|
|
45
45
|
/**
|
|
46
46
|
* Date and time the field was created.
|
|
47
47
|
* @readonly
|
|
@@ -70,16 +70,20 @@ export declare enum FieldDataType {
|
|
|
70
70
|
/** Accepts strings. Prepends `https://` if no protocol is included. */
|
|
71
71
|
URL = "URL"
|
|
72
72
|
}
|
|
73
|
+
/** @enumType */
|
|
74
|
+
export type FieldDataTypeWithLiterals = FieldDataType | 'TEXT' | 'NUMBER' | 'DATE' | 'URL';
|
|
73
75
|
export declare enum FieldType {
|
|
74
76
|
/** Field is a system field managed by Wix. System fields can't be modified by calling the Update Extended Field method. */
|
|
75
77
|
SYSTEM = "SYSTEM",
|
|
76
78
|
/** Field is a custom field and can be modified by calling the Update Extended Field method. */
|
|
77
79
|
USER_DEFINED = "USER_DEFINED"
|
|
78
80
|
}
|
|
81
|
+
/** @enumType */
|
|
82
|
+
export type FieldTypeWithLiterals = FieldType | 'SYSTEM' | 'USER_DEFINED';
|
|
79
83
|
/** Extended field filter options. */
|
|
80
84
|
export interface ListExtendedFieldsRequest {
|
|
81
85
|
/** Filter for fields of the specified type. */
|
|
82
|
-
fieldType?:
|
|
86
|
+
fieldType?: FieldTypeWithLiterals;
|
|
83
87
|
/**
|
|
84
88
|
* Filter for fields in the specified namespace.
|
|
85
89
|
* Fields created by calling the Find Or Create Extended Field method
|
|
@@ -109,7 +113,7 @@ export interface Sorting {
|
|
|
109
113
|
*
|
|
110
114
|
* Default: `ASC`.
|
|
111
115
|
*/
|
|
112
|
-
order?:
|
|
116
|
+
order?: SortOrderWithLiterals;
|
|
113
117
|
}
|
|
114
118
|
export declare enum SortOrder {
|
|
115
119
|
/** Sort by ascending order. */
|
|
@@ -117,6 +121,8 @@ export declare enum SortOrder {
|
|
|
117
121
|
/** Sort by descending order. */
|
|
118
122
|
DESC = "DESC"
|
|
119
123
|
}
|
|
124
|
+
/** @enumType */
|
|
125
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
120
126
|
export interface Paging {
|
|
121
127
|
/**
|
|
122
128
|
* Number of items to return.
|
|
@@ -169,7 +175,7 @@ export interface FindOrCreateExtendedFieldRequest {
|
|
|
169
175
|
* Ignored if an existing field is an exact match
|
|
170
176
|
* for the specified display name.
|
|
171
177
|
*/
|
|
172
|
-
dataType?:
|
|
178
|
+
dataType?: FieldDataTypeWithLiterals;
|
|
173
179
|
}
|
|
174
180
|
/** Extended field that was found or created. */
|
|
175
181
|
export interface FindOrCreateExtendedFieldResponse {
|
|
@@ -391,7 +397,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
391
397
|
*/
|
|
392
398
|
appId?: string;
|
|
393
399
|
/** @readonly */
|
|
394
|
-
identityType?:
|
|
400
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
395
401
|
}
|
|
396
402
|
/** @oneof */
|
|
397
403
|
export interface IdentificationDataIdOneOf {
|
|
@@ -423,6 +429,8 @@ export declare enum WebhookIdentityType {
|
|
|
423
429
|
WIX_USER = "WIX_USER",
|
|
424
430
|
APP = "APP"
|
|
425
431
|
}
|
|
432
|
+
/** @enumType */
|
|
433
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
426
434
|
export interface BaseEventMetadata {
|
|
427
435
|
/**
|
|
428
436
|
* App instance ID.
|
|
@@ -598,7 +606,7 @@ type ExtendedFieldNonNullablePaths = `key` | `displayName` | `dataType` | `field
|
|
|
598
606
|
* @returns Extended field that was found or created.
|
|
599
607
|
* @fqn com.wixpress.contacts.fields.v4.ContactExtendedFieldsServiceV4.FindOrCreateExtendedField
|
|
600
608
|
*/
|
|
601
|
-
export declare function findOrCreateExtendedField(displayName: string, dataType:
|
|
609
|
+
export declare function findOrCreateExtendedField(displayName: string, dataType: FieldDataTypeWithLiterals): Promise<NonNullablePaths<FindOrCreateExtendedFieldResponse, {
|
|
602
610
|
[P in ExtendedFieldNonNullablePaths]: `field.${P}`;
|
|
603
611
|
}[ExtendedFieldNonNullablePaths] | `newField`>>;
|
|
604
612
|
/**
|
|
@@ -673,12 +681,12 @@ export interface RenameExtendedField {
|
|
|
673
681
|
* Type of data the field holds.
|
|
674
682
|
* @readonly
|
|
675
683
|
*/
|
|
676
|
-
dataType?:
|
|
684
|
+
dataType?: FieldDataTypeWithLiterals;
|
|
677
685
|
/**
|
|
678
686
|
* Indicates whether the extended field is a system field or custom field.
|
|
679
687
|
* @readonly
|
|
680
688
|
*/
|
|
681
|
-
fieldType?:
|
|
689
|
+
fieldType?: FieldTypeWithLiterals;
|
|
682
690
|
/**
|
|
683
691
|
* Date and time the field was created.
|
|
684
692
|
* @readonly
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-v4-extended-field-extended-fields.universal.js","sourceRoot":"","sources":["../../../../src/contacts-v4-extended-field-extended-fields.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,oCAAoC,MAAM,sDAAsD,CAAC;AAC7G,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAgElF,MAAM,CAAN,IAAY,aASX;AATD,WAAY,aAAa;IACvB,uBAAuB;IACvB,8BAAa,CAAA;IACb,sBAAsB;IACtB,kCAAiB,CAAA;IACjB,+CAA+C;IAC/C,8BAAa,CAAA;IACb,uEAAuE;IACvE,4BAAW,CAAA;AACb,CAAC,EATW,aAAa,KAAb,aAAa,QASxB;
|
|
1
|
+
{"version":3,"file":"contacts-v4-extended-field-extended-fields.universal.js","sourceRoot":"","sources":["../../../../src/contacts-v4-extended-field-extended-fields.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,oCAAoC,MAAM,sDAAsD,CAAC;AAC7G,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAgElF,MAAM,CAAN,IAAY,aASX;AATD,WAAY,aAAa;IACvB,uBAAuB;IACvB,8BAAa,CAAA;IACb,sBAAsB;IACtB,kCAAiB,CAAA;IACjB,+CAA+C;IAC/C,8BAAa,CAAA;IACb,uEAAuE;IACvE,4BAAW,CAAA;AACb,CAAC,EATW,aAAa,KAAb,aAAa,QASxB;AAUD,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,2HAA2H;IAC3H,8BAAiB,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C;QACH,CAAC;QACD,kBAAkB,EAAE,CAAC,KAA0C,EAAE,EAAE;YACjE,MAAM,IAAI,GAAG,CAAC,KAAK,EAAE,EAAE,CAA8C,CAAC;YACtE,OAAO,qCAAqC,CAAC;gBAC3C,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC;gBACZ,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;aACjB,CAAC,CAAC;QACL,CAAC;QACD,mBAAmB,EAAE,CAAC,EACpB,IAAI,GACsC,EAAE,EAAE;YAC9C,MAAM,eAAe,GAAG,uCAAuC,CAC7D,cAAc,CAAC,IAAI,EAAE,EAAE,CAAC,CACzB,CAAC;YAEF,OAAO;gBACL,KAAK,EAAE,eAAe,EAAE,MAAM;gBAC9B,cAAc,EAAE,eAAe,EAAE,cAAc;aAChD,CAAC;QACJ,CAAC;QACD,gBAAgB,EAAE,CAAC,GAAY,EAAE,EAAE;YACjC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,GAAG,EAAE;gBAC9C,sBAAsB,EAAE,EAAE;gBAC1B,wBAAwB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBAC3C,uBAAuB,EAAE,KAAK;aAC/B,CAAC,CAAC;YAEH,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,EAAE;KACxB,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_crm_extended-fields",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@wix/sdk-runtime": "^0.3.49",
|
|
32
|
-
"@wix/sdk-types": "^1.13.
|
|
32
|
+
"@wix/sdk-types": "^1.13.28"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "^5.3.2"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": "wix.contacts.v4.extended_field"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "be33820918943686b47beeb75331fd4181e47fcf1a89d2d75c309df7"
|
|
52
52
|
}
|