@pexip-engage-public/plugin 1.1.40 → 1.2.1
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/CHANGELOG.md +25 -0
- package/dist/configuration/PluginConfiguration.schema.d.ts +122 -510
- package/dist/configuration/PluginConfiguration.schema.d.ts.map +1 -1
- package/dist/configuration/PluginConfiguration.schema.js +14 -14
- package/dist/configuration/PluginConfiguration.schema.js.map +1 -1
- package/dist/events/event-types.d.ts +1 -0
- package/dist/events/event-types.d.ts.map +1 -1
- package/dist/instance/PluginInstance.d.ts +5 -5
- package/dist/state/PluginState.schema.d.ts +167 -996
- package/dist/state/PluginState.schema.d.ts.map +1 -1
- package/dist/state/PluginState.schema.js +7 -7
- package/dist/state/PluginState.schema.js.map +1 -1
- package/dist/state/schemas.d.ts +56 -139
- package/dist/state/schemas.d.ts.map +1 -1
- package/dist/state/schemas.js +3 -3
- package/dist/state/schemas.js.map +1 -1
- package/package.json +6 -6
- package/src/configuration/PluginConfiguration.schema.ts +14 -14
- package/src/events/event-types.ts +1 -0
- package/src/state/PluginState.schema.ts +7 -6
- package/src/state/schemas.ts +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MeetingType } from "@pexip-engage-public/graphql";
|
|
2
|
-
import
|
|
2
|
+
import * as z from "zod";
|
|
3
3
|
/**
|
|
4
4
|
* A sequence of characters that indicates the order of steps to be shown. The following characters are supported:
|
|
5
5
|
* - `S`: Subject. The step that allows the customer to pick a subject.
|
|
@@ -24,546 +24,158 @@ import { z } from "zod";
|
|
|
24
24
|
* @default "SMOTQC"
|
|
25
25
|
*/
|
|
26
26
|
export declare const FlowSchema: z.ZodDefault<z.ZodString>;
|
|
27
|
-
export declare const PluginConfigurationSchema: z.
|
|
28
|
-
application: z.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
* @type { "disabled" | number }
|
|
45
|
-
*/
|
|
46
|
-
scroll: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["disabled"]>, z.ZodNumber]>>;
|
|
27
|
+
export declare const PluginConfigurationSchema: z.ZodPrefault<z.ZodObject<{
|
|
28
|
+
application: z.ZodPrefault<z.ZodObject<{
|
|
29
|
+
customerLocationSearch: z.ZodDefault<z.ZodEnum<{
|
|
30
|
+
always: "always";
|
|
31
|
+
error: "error";
|
|
32
|
+
}>>;
|
|
33
|
+
officeSearch: z.ZodDefault<z.ZodEnum<{
|
|
34
|
+
optional: "optional";
|
|
35
|
+
required: "required";
|
|
36
|
+
}>>;
|
|
37
|
+
recaptcha: z.ZodDefault<z.ZodEnum<{
|
|
38
|
+
disable: "disable";
|
|
39
|
+
enable: "enable";
|
|
40
|
+
}>>;
|
|
41
|
+
scroll: z.ZodDefault<z.ZodUnion<readonly [z.ZodEnum<{
|
|
42
|
+
disabled: "disabled";
|
|
43
|
+
}>, z.ZodCoercedNumber<unknown>]>>;
|
|
47
44
|
theme: z.ZodOptional<z.ZodString>;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}, "strip", z.ZodTypeAny, {
|
|
55
|
-
customerLocationSearch: "always" | "error";
|
|
56
|
-
officeSearch: "required" | "optional";
|
|
57
|
-
recaptcha: "disable" | "enable";
|
|
58
|
-
scroll: number | "disabled";
|
|
59
|
-
timeZoneSelection: "disable" | "enable";
|
|
60
|
-
theme?: string | undefined;
|
|
61
|
-
}, {
|
|
62
|
-
customerLocationSearch?: "always" | "error" | undefined;
|
|
63
|
-
officeSearch?: "required" | "optional" | undefined;
|
|
64
|
-
recaptcha?: "disable" | "enable" | undefined;
|
|
65
|
-
scroll?: number | "disabled" | undefined;
|
|
66
|
-
theme?: string | undefined;
|
|
67
|
-
timeZoneSelection?: "disable" | "enable" | undefined;
|
|
68
|
-
}>>;
|
|
69
|
-
browser: z.ZodDefault<z.ZodObject<{
|
|
45
|
+
timeZoneSelection: z.ZodDefault<z.ZodEnum<{
|
|
46
|
+
disable: "disable";
|
|
47
|
+
enable: "enable";
|
|
48
|
+
}>>;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
browser: z.ZodPrefault<z.ZodObject<{
|
|
70
51
|
href: z.ZodOptional<z.ZodString>;
|
|
71
52
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
72
|
-
},
|
|
73
|
-
timeZone?: string | undefined;
|
|
74
|
-
href?: string | undefined;
|
|
75
|
-
}, {
|
|
76
|
-
timeZone?: string | undefined;
|
|
77
|
-
href?: string | undefined;
|
|
78
|
-
}>>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
79
54
|
customer: z.ZodOptional<z.ZodObject<{
|
|
80
|
-
additionalCustomers: z.
|
|
55
|
+
additionalCustomers: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodEmail>>>>>, z.ZodTransform<string[] | undefined, (string | null | undefined)[] | null | undefined>>;
|
|
81
56
|
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
57
|
customerNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
-
email: z.ZodOptional<z.ZodNullable<z.
|
|
84
|
-
existing: z.
|
|
58
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
|
|
59
|
+
existing: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>, z.ZodTransform<"on" | undefined, string | boolean | null | undefined>>;
|
|
85
60
|
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
61
|
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
87
|
-
id: z.ZodOptional<z.ZodNullable<z.
|
|
62
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodCoercedString<unknown>>>;
|
|
88
63
|
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
64
|
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
65
|
location: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
91
66
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
67
|
countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
68
|
geolocation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
94
|
-
latitude: z.
|
|
95
|
-
longitude: z.
|
|
96
|
-
},
|
|
97
|
-
latitude: number;
|
|
98
|
-
longitude: number;
|
|
99
|
-
}, {
|
|
100
|
-
latitude: number;
|
|
101
|
-
longitude: number;
|
|
102
|
-
}>>>;
|
|
69
|
+
latitude: z.ZodCoercedNumber<unknown>;
|
|
70
|
+
longitude: z.ZodCoercedNumber<unknown>;
|
|
71
|
+
}, z.core.$strip>>>;
|
|
103
72
|
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
73
|
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
74
|
street1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
75
|
street2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
107
76
|
timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
-
},
|
|
109
|
-
city?: string | null | undefined;
|
|
110
|
-
countryCode?: string | null | undefined;
|
|
111
|
-
geolocation?: {
|
|
112
|
-
latitude: number;
|
|
113
|
-
longitude: number;
|
|
114
|
-
} | null | undefined;
|
|
115
|
-
postalCode?: string | null | undefined;
|
|
116
|
-
state?: string | null | undefined;
|
|
117
|
-
street1?: string | null | undefined;
|
|
118
|
-
street2?: string | null | undefined;
|
|
119
|
-
timeZone?: string | null | undefined;
|
|
120
|
-
}, {
|
|
121
|
-
city?: string | null | undefined;
|
|
122
|
-
countryCode?: string | null | undefined;
|
|
123
|
-
geolocation?: {
|
|
124
|
-
latitude: number;
|
|
125
|
-
longitude: number;
|
|
126
|
-
} | null | undefined;
|
|
127
|
-
postalCode?: string | null | undefined;
|
|
128
|
-
state?: string | null | undefined;
|
|
129
|
-
street1?: string | null | undefined;
|
|
130
|
-
street2?: string | null | undefined;
|
|
131
|
-
timeZone?: string | null | undefined;
|
|
132
|
-
}>>>;
|
|
77
|
+
}, z.core.$strip>>>;
|
|
133
78
|
phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
134
79
|
timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
135
|
-
},
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
firstName?: string | null | undefined;
|
|
144
|
-
language?: string | null | undefined;
|
|
145
|
-
lastName?: string | null | undefined;
|
|
146
|
-
timeZone?: string | null | undefined;
|
|
147
|
-
location?: {
|
|
148
|
-
city?: string | null | undefined;
|
|
149
|
-
countryCode?: string | null | undefined;
|
|
150
|
-
geolocation?: {
|
|
151
|
-
latitude: number;
|
|
152
|
-
longitude: number;
|
|
153
|
-
} | null | undefined;
|
|
154
|
-
postalCode?: string | null | undefined;
|
|
155
|
-
state?: string | null | undefined;
|
|
156
|
-
street1?: string | null | undefined;
|
|
157
|
-
street2?: string | null | undefined;
|
|
158
|
-
timeZone?: string | null | undefined;
|
|
159
|
-
} | null | undefined;
|
|
160
|
-
phoneNumber?: string | null | undefined;
|
|
161
|
-
}, {
|
|
162
|
-
id?: string | null | undefined;
|
|
163
|
-
externalId?: string | null | undefined;
|
|
164
|
-
additionalCustomers?: (string | null | undefined)[] | null | undefined;
|
|
165
|
-
company?: string | null | undefined;
|
|
166
|
-
customerNumber?: string | null | undefined;
|
|
167
|
-
email?: string | null | undefined;
|
|
168
|
-
existing?: string | boolean | null | undefined;
|
|
169
|
-
firstName?: string | null | undefined;
|
|
170
|
-
language?: string | null | undefined;
|
|
171
|
-
lastName?: string | null | undefined;
|
|
172
|
-
timeZone?: string | null | undefined;
|
|
173
|
-
location?: {
|
|
174
|
-
city?: string | null | undefined;
|
|
175
|
-
countryCode?: string | null | undefined;
|
|
176
|
-
geolocation?: {
|
|
177
|
-
latitude: number;
|
|
178
|
-
longitude: number;
|
|
179
|
-
} | null | undefined;
|
|
180
|
-
postalCode?: string | null | undefined;
|
|
181
|
-
state?: string | null | undefined;
|
|
182
|
-
street1?: string | null | undefined;
|
|
183
|
-
street2?: string | null | undefined;
|
|
184
|
-
timeZone?: string | null | undefined;
|
|
185
|
-
} | null | undefined;
|
|
186
|
-
phoneNumber?: string | null | undefined;
|
|
187
|
-
}>>;
|
|
188
|
-
/** @deprecated Only use me during application init! */
|
|
189
|
-
employees: z.ZodDefault<z.ZodObject<{
|
|
190
|
-
ids: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>, string[], string | string[] | null | undefined>;
|
|
191
|
-
type: z.ZodDefault<z.ZodEnum<["id", "externalId"]>>;
|
|
192
|
-
}, "strip", z.ZodTypeAny, {
|
|
193
|
-
type: "id" | "externalId";
|
|
194
|
-
ids: string[];
|
|
195
|
-
}, {
|
|
196
|
-
type?: "id" | "externalId" | undefined;
|
|
197
|
-
ids?: string | string[] | null | undefined;
|
|
198
|
-
}>>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
employees: z.ZodPrefault<z.ZodObject<{
|
|
82
|
+
ids: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodCoercedString<unknown>, z.ZodArray<z.ZodCoercedString<unknown>>]>>>, z.ZodTransform<string[], string | string[] | null | undefined>>;
|
|
83
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
84
|
+
id: "id";
|
|
85
|
+
externalId: "externalId";
|
|
86
|
+
}>>;
|
|
87
|
+
}, z.core.$strip>>;
|
|
199
88
|
flow: z.ZodDefault<z.ZodString>;
|
|
200
|
-
/** @deprecated Only use me during application init! */
|
|
201
89
|
initialFormattedAddress: z.ZodOptional<z.ZodString>;
|
|
202
|
-
intent: z.ZodDefault<z.ZodEnum<
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
language: z.ZodEffects<z.ZodOptional<z.ZodString>, "da" | "de" | "el" | "en" | "es" | "fr" | "nl" | "no" | "en-US" | "en-GB" | "cimode" | undefined, string | undefined>;
|
|
211
|
-
/** Lead Segment. This allows a subject to be preselected matching the lead segment code/id.*/
|
|
212
|
-
/** @deprecated Only use me during application init! */
|
|
213
|
-
leadSegment: z.ZodDefault<z.ZodObject<{
|
|
214
|
-
id: z.ZodOptional<z.ZodString>;
|
|
215
|
-
type: z.ZodDefault<z.ZodEnum<["id", "code"]>>;
|
|
216
|
-
}, "strip", z.ZodTypeAny, {
|
|
217
|
-
type: "id" | "code";
|
|
218
|
-
id?: string | undefined;
|
|
219
|
-
}, {
|
|
220
|
-
id?: string | undefined;
|
|
221
|
-
type?: "id" | "code" | undefined;
|
|
90
|
+
intent: z.ZodDefault<z.ZodEnum<{
|
|
91
|
+
schedule: "schedule";
|
|
92
|
+
reschedule: "reschedule";
|
|
93
|
+
invite: "invite";
|
|
94
|
+
edit: "edit";
|
|
95
|
+
cancel: "cancel";
|
|
96
|
+
complete: "complete";
|
|
97
|
+
decline: "decline";
|
|
222
98
|
}>>;
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
id: z.ZodOptional<z.
|
|
226
|
-
type: z.ZodDefault<z.ZodEnum<
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
},
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
location: z.ZodDefault<z.ZodObject<{
|
|
99
|
+
language: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<"da" | "de" | "el" | "en" | "es" | "fr" | "nl" | "no" | "en-US" | "en-GB" | "cimode" | undefined, string | undefined>>;
|
|
100
|
+
leadSegment: z.ZodPrefault<z.ZodObject<{
|
|
101
|
+
id: z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
102
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
103
|
+
id: "id";
|
|
104
|
+
code: "code";
|
|
105
|
+
}>>;
|
|
106
|
+
}, z.core.$strip>>;
|
|
107
|
+
listing: z.ZodPrefault<z.ZodObject<{
|
|
108
|
+
id: z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
109
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
110
|
+
id: "id";
|
|
111
|
+
externalId: "externalId";
|
|
112
|
+
}>>;
|
|
113
|
+
}, z.core.$strip>>;
|
|
114
|
+
location: z.ZodPrefault<z.ZodObject<{
|
|
240
115
|
formattedAddress: z.ZodOptional<z.ZodString>;
|
|
241
116
|
geolocation: z.ZodOptional<z.ZodObject<{
|
|
242
|
-
latitude: z.
|
|
243
|
-
longitude: z.
|
|
244
|
-
},
|
|
245
|
-
latitude: number;
|
|
246
|
-
longitude: number;
|
|
247
|
-
}, {
|
|
248
|
-
latitude: number;
|
|
249
|
-
longitude: number;
|
|
250
|
-
}>>;
|
|
117
|
+
latitude: z.ZodCoercedNumber<unknown>;
|
|
118
|
+
longitude: z.ZodCoercedNumber<unknown>;
|
|
119
|
+
}, z.core.$strip>>;
|
|
251
120
|
placeId: z.ZodOptional<z.ZodString>;
|
|
252
|
-
source: z.ZodDefault<z.ZodEnum<
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
formattedAddress?: string | undefined;
|
|
260
|
-
placeId?: string | undefined;
|
|
261
|
-
}, {
|
|
262
|
-
geolocation?: {
|
|
263
|
-
latitude: number;
|
|
264
|
-
longitude: number;
|
|
265
|
-
} | undefined;
|
|
266
|
-
formattedAddress?: string | undefined;
|
|
267
|
-
placeId?: string | undefined;
|
|
268
|
-
source?: "config" | "listing" | "user" | undefined;
|
|
269
|
-
}>>;
|
|
270
|
-
/** @deprecated Only use me during application init! */
|
|
271
|
-
meetingTypes: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>, string[], string | string[] | null | undefined>, MeetingType[], string | string[] | null | undefined>;
|
|
272
|
-
/**
|
|
273
|
-
* This parameter is used for passing a message to the customer. It is displayed in plugin and e-mails.
|
|
274
|
-
*/
|
|
121
|
+
source: z.ZodDefault<z.ZodEnum<{
|
|
122
|
+
config: "config";
|
|
123
|
+
listing: "listing";
|
|
124
|
+
user: "user";
|
|
125
|
+
}>>;
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
|
+
meetingTypes: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodCoercedString<unknown>, z.ZodArray<z.ZodCoercedString<unknown>>]>>>, z.ZodTransform<string[], string | string[] | null | undefined>>, z.ZodTransform<MeetingType[], string[]>>;
|
|
275
128
|
messageForCustomer: z.ZodOptional<z.ZodString>;
|
|
276
|
-
oauth: z.
|
|
277
|
-
/** A resource_code of an existing appointment. This will allow you to complete or change an appointment. This parameter is mostly used by redirects from external sources (e.g. e-mails) and should usually not be provided manually. */
|
|
129
|
+
oauth: z.ZodPrefault<z.ZodObject<{
|
|
278
130
|
resourceCode: z.ZodOptional<z.ZodString>;
|
|
279
|
-
},
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
ids: string[];
|
|
291
|
-
}, {
|
|
292
|
-
type?: "id" | "externalId" | undefined;
|
|
293
|
-
ids?: string | string[] | null | undefined;
|
|
294
|
-
}>>;
|
|
295
|
-
questions: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>, Record<string, string | string[]>, Record<string, string | string[]>>>;
|
|
296
|
-
/**
|
|
297
|
-
* The country that should be used for searching locations. Should be a two letter ISO 3166-1 country code.
|
|
298
|
-
*
|
|
299
|
-
* You can provide a maximum of 5 comma-separated countries.
|
|
300
|
-
*/
|
|
301
|
-
searchCountries: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>, string[], string | string[] | null | undefined>, string[], string | string[] | null | undefined>;
|
|
302
|
-
session: z.ZodDefault<z.ZodObject<{
|
|
303
|
-
/** Pass your own custom session ID. */
|
|
131
|
+
}, z.core.$strip>>;
|
|
132
|
+
offices: z.ZodPrefault<z.ZodObject<{
|
|
133
|
+
ids: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodCoercedString<unknown>, z.ZodArray<z.ZodCoercedString<unknown>>]>>>, z.ZodTransform<string[], string | string[] | null | undefined>>;
|
|
134
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
135
|
+
id: "id";
|
|
136
|
+
externalId: "externalId";
|
|
137
|
+
}>>;
|
|
138
|
+
}, z.core.$strip>>;
|
|
139
|
+
questions: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>, z.ZodTransform<Record<string, string | string[]>, Record<string, string | string[]>>>>;
|
|
140
|
+
searchCountries: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>, z.ZodTransform<string[], string | string[] | null | undefined>>;
|
|
141
|
+
session: z.ZodPrefault<z.ZodObject<{
|
|
304
142
|
id: z.ZodOptional<z.ZodString>;
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
}>>;
|
|
318
|
-
/** @deprecated Only use me during application init! */
|
|
319
|
-
subjectGroups: z.ZodDefault<z.ZodObject<{
|
|
320
|
-
ids: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>, string[], string | string[] | null | undefined>;
|
|
321
|
-
type: z.ZodDefault<z.ZodEnum<["id", "externalId"]>>;
|
|
322
|
-
}, "strip", z.ZodTypeAny, {
|
|
323
|
-
type: "id" | "externalId";
|
|
324
|
-
ids: string[];
|
|
325
|
-
}, {
|
|
326
|
-
type?: "id" | "externalId" | undefined;
|
|
327
|
-
ids?: string | string[] | null | undefined;
|
|
328
|
-
}>>;
|
|
143
|
+
sourceTags: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>, z.ZodTransform<string[] | undefined, string | string[] | undefined>>;
|
|
144
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
145
|
+
default: "default";
|
|
146
|
+
disabled: "disabled";
|
|
147
|
+
}>>;
|
|
148
|
+
}, z.core.$strip>>;
|
|
149
|
+
subjectGroups: z.ZodPrefault<z.ZodObject<{
|
|
150
|
+
ids: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodCoercedString<unknown>, z.ZodArray<z.ZodCoercedString<unknown>>]>>>, z.ZodTransform<string[], string | string[] | null | undefined>>;
|
|
151
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
152
|
+
id: "id";
|
|
153
|
+
externalId: "externalId";
|
|
154
|
+
}>>;
|
|
155
|
+
}, z.core.$strip>>;
|
|
329
156
|
subjectQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
330
157
|
externalId: z.ZodString;
|
|
331
|
-
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
332
|
-
},
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
}>>;
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
* Used to enable meeting type switcher on timetable step
|
|
353
|
-
* @experimental
|
|
354
|
-
* @default "disable"
|
|
355
|
-
* @type {"enable" | "disable"}
|
|
356
|
-
*/
|
|
357
|
-
meetingTypeSelector: z.ZodDefault<z.ZodEnum<["enable", "disable"]>>;
|
|
358
|
-
/**
|
|
359
|
-
* Used to decide wether to show month of week timetable view
|
|
360
|
-
* @experimental
|
|
361
|
-
* @default "week"
|
|
362
|
-
*/
|
|
363
|
-
view: z.ZodDefault<z.ZodEnum<["week", "month"]>>;
|
|
364
|
-
}, "strip", z.ZodTypeAny, {
|
|
365
|
-
meetingTypeSelector: "disable" | "enable";
|
|
366
|
-
view: "week" | "month";
|
|
367
|
-
}, {
|
|
368
|
-
meetingTypeSelector?: "disable" | "enable" | undefined;
|
|
369
|
-
view?: "week" | "month" | undefined;
|
|
158
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
159
|
+
}, z.core.$strip>>>;
|
|
160
|
+
subjects: z.ZodPrefault<z.ZodObject<{
|
|
161
|
+
ids: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodCoercedString<unknown>, z.ZodArray<z.ZodCoercedString<unknown>>]>>>, z.ZodTransform<string[], string | string[] | null | undefined>>;
|
|
162
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
163
|
+
id: "id";
|
|
164
|
+
externalId: "externalId";
|
|
165
|
+
}>>;
|
|
166
|
+
}, z.core.$strip>>;
|
|
167
|
+
timetable: z.ZodPrefault<z.ZodObject<{
|
|
168
|
+
meetingTypeSelector: z.ZodDefault<z.ZodEnum<{
|
|
169
|
+
disable: "disable";
|
|
170
|
+
enable: "enable";
|
|
171
|
+
}>>;
|
|
172
|
+
view: z.ZodDefault<z.ZodEnum<{
|
|
173
|
+
week: "week";
|
|
174
|
+
month: "month";
|
|
175
|
+
}>>;
|
|
176
|
+
}, z.core.$strip>>;
|
|
177
|
+
version: z.ZodOptional<z.ZodEnum<{
|
|
178
|
+
"1.0.0": "1.0.0";
|
|
370
179
|
}>>;
|
|
371
|
-
|
|
372
|
-
}, "strip", z.ZodTypeAny, {
|
|
373
|
-
location: {
|
|
374
|
-
source: "config" | "listing" | "user";
|
|
375
|
-
geolocation?: {
|
|
376
|
-
latitude: number;
|
|
377
|
-
longitude: number;
|
|
378
|
-
} | undefined;
|
|
379
|
-
formattedAddress?: string | undefined;
|
|
380
|
-
placeId?: string | undefined;
|
|
381
|
-
};
|
|
382
|
-
listing: {
|
|
383
|
-
type: "id" | "externalId";
|
|
384
|
-
id?: string | undefined;
|
|
385
|
-
};
|
|
386
|
-
application: {
|
|
387
|
-
customerLocationSearch: "always" | "error";
|
|
388
|
-
officeSearch: "required" | "optional";
|
|
389
|
-
recaptcha: "disable" | "enable";
|
|
390
|
-
scroll: number | "disabled";
|
|
391
|
-
timeZoneSelection: "disable" | "enable";
|
|
392
|
-
theme?: string | undefined;
|
|
393
|
-
};
|
|
394
|
-
browser: {
|
|
395
|
-
timeZone?: string | undefined;
|
|
396
|
-
href?: string | undefined;
|
|
397
|
-
};
|
|
398
|
-
employees: {
|
|
399
|
-
type: "id" | "externalId";
|
|
400
|
-
ids: string[];
|
|
401
|
-
};
|
|
402
|
-
flow: string;
|
|
403
|
-
intent: "schedule" | "reschedule" | "invite" | "edit" | "cancel" | "complete" | "decline";
|
|
404
|
-
leadSegment: {
|
|
405
|
-
type: "id" | "code";
|
|
406
|
-
id?: string | undefined;
|
|
407
|
-
};
|
|
408
|
-
meetingTypes: MeetingType[];
|
|
409
|
-
oauth: {
|
|
410
|
-
resourceCode?: string | undefined;
|
|
411
|
-
};
|
|
412
|
-
offices: {
|
|
413
|
-
type: "id" | "externalId";
|
|
414
|
-
ids: string[];
|
|
415
|
-
};
|
|
416
|
-
searchCountries: string[];
|
|
417
|
-
session: {
|
|
418
|
-
status: "disabled" | "default";
|
|
419
|
-
id?: string | undefined;
|
|
420
|
-
sourceTags?: string[] | undefined;
|
|
421
|
-
};
|
|
422
|
-
subjectGroups: {
|
|
423
|
-
type: "id" | "externalId";
|
|
424
|
-
ids: string[];
|
|
425
|
-
};
|
|
426
|
-
subjects: {
|
|
427
|
-
type: "id" | "externalId";
|
|
428
|
-
ids: string[];
|
|
429
|
-
};
|
|
430
|
-
timetable: {
|
|
431
|
-
meetingTypeSelector: "disable" | "enable";
|
|
432
|
-
view: "week" | "month";
|
|
433
|
-
};
|
|
434
|
-
language?: "da" | "de" | "el" | "en" | "es" | "fr" | "nl" | "no" | "en-US" | "en-GB" | "cimode" | undefined;
|
|
435
|
-
customer?: {
|
|
436
|
-
id?: string | null | undefined;
|
|
437
|
-
externalId?: string | null | undefined;
|
|
438
|
-
additionalCustomers?: string[] | undefined;
|
|
439
|
-
company?: string | null | undefined;
|
|
440
|
-
customerNumber?: string | null | undefined;
|
|
441
|
-
email?: string | null | undefined;
|
|
442
|
-
existing?: "on" | undefined;
|
|
443
|
-
firstName?: string | null | undefined;
|
|
444
|
-
language?: string | null | undefined;
|
|
445
|
-
lastName?: string | null | undefined;
|
|
446
|
-
timeZone?: string | null | undefined;
|
|
447
|
-
location?: {
|
|
448
|
-
city?: string | null | undefined;
|
|
449
|
-
countryCode?: string | null | undefined;
|
|
450
|
-
geolocation?: {
|
|
451
|
-
latitude: number;
|
|
452
|
-
longitude: number;
|
|
453
|
-
} | null | undefined;
|
|
454
|
-
postalCode?: string | null | undefined;
|
|
455
|
-
state?: string | null | undefined;
|
|
456
|
-
street1?: string | null | undefined;
|
|
457
|
-
street2?: string | null | undefined;
|
|
458
|
-
timeZone?: string | null | undefined;
|
|
459
|
-
} | null | undefined;
|
|
460
|
-
phoneNumber?: string | null | undefined;
|
|
461
|
-
} | undefined;
|
|
462
|
-
initialFormattedAddress?: string | undefined;
|
|
463
|
-
messageForCustomer?: string | undefined;
|
|
464
|
-
questions?: Record<string, string | string[]> | undefined;
|
|
465
|
-
subjectQuestions?: {
|
|
466
|
-
externalId: string;
|
|
467
|
-
value: string | string[];
|
|
468
|
-
}[] | undefined;
|
|
469
|
-
version?: "1.0.0" | undefined;
|
|
470
|
-
}, {
|
|
471
|
-
language?: string | undefined;
|
|
472
|
-
location?: {
|
|
473
|
-
geolocation?: {
|
|
474
|
-
latitude: number;
|
|
475
|
-
longitude: number;
|
|
476
|
-
} | undefined;
|
|
477
|
-
formattedAddress?: string | undefined;
|
|
478
|
-
placeId?: string | undefined;
|
|
479
|
-
source?: "config" | "listing" | "user" | undefined;
|
|
480
|
-
} | undefined;
|
|
481
|
-
listing?: {
|
|
482
|
-
id?: string | undefined;
|
|
483
|
-
type?: "id" | "externalId" | undefined;
|
|
484
|
-
} | undefined;
|
|
485
|
-
application?: {
|
|
486
|
-
customerLocationSearch?: "always" | "error" | undefined;
|
|
487
|
-
officeSearch?: "required" | "optional" | undefined;
|
|
488
|
-
recaptcha?: "disable" | "enable" | undefined;
|
|
489
|
-
scroll?: number | "disabled" | undefined;
|
|
490
|
-
theme?: string | undefined;
|
|
491
|
-
timeZoneSelection?: "disable" | "enable" | undefined;
|
|
492
|
-
} | undefined;
|
|
493
|
-
browser?: {
|
|
494
|
-
timeZone?: string | undefined;
|
|
495
|
-
href?: string | undefined;
|
|
496
|
-
} | undefined;
|
|
497
|
-
customer?: {
|
|
498
|
-
id?: string | null | undefined;
|
|
499
|
-
externalId?: string | null | undefined;
|
|
500
|
-
additionalCustomers?: (string | null | undefined)[] | null | undefined;
|
|
501
|
-
company?: string | null | undefined;
|
|
502
|
-
customerNumber?: string | null | undefined;
|
|
503
|
-
email?: string | null | undefined;
|
|
504
|
-
existing?: string | boolean | null | undefined;
|
|
505
|
-
firstName?: string | null | undefined;
|
|
506
|
-
language?: string | null | undefined;
|
|
507
|
-
lastName?: string | null | undefined;
|
|
508
|
-
timeZone?: string | null | undefined;
|
|
509
|
-
location?: {
|
|
510
|
-
city?: string | null | undefined;
|
|
511
|
-
countryCode?: string | null | undefined;
|
|
512
|
-
geolocation?: {
|
|
513
|
-
latitude: number;
|
|
514
|
-
longitude: number;
|
|
515
|
-
} | null | undefined;
|
|
516
|
-
postalCode?: string | null | undefined;
|
|
517
|
-
state?: string | null | undefined;
|
|
518
|
-
street1?: string | null | undefined;
|
|
519
|
-
street2?: string | null | undefined;
|
|
520
|
-
timeZone?: string | null | undefined;
|
|
521
|
-
} | null | undefined;
|
|
522
|
-
phoneNumber?: string | null | undefined;
|
|
523
|
-
} | undefined;
|
|
524
|
-
employees?: {
|
|
525
|
-
type?: "id" | "externalId" | undefined;
|
|
526
|
-
ids?: string | string[] | null | undefined;
|
|
527
|
-
} | undefined;
|
|
528
|
-
flow?: string | undefined;
|
|
529
|
-
initialFormattedAddress?: string | undefined;
|
|
530
|
-
intent?: "schedule" | "reschedule" | "invite" | "edit" | "cancel" | "complete" | "decline" | undefined;
|
|
531
|
-
leadSegment?: {
|
|
532
|
-
id?: string | undefined;
|
|
533
|
-
type?: "id" | "code" | undefined;
|
|
534
|
-
} | undefined;
|
|
535
|
-
meetingTypes?: string | string[] | null | undefined;
|
|
536
|
-
messageForCustomer?: string | undefined;
|
|
537
|
-
oauth?: {
|
|
538
|
-
resourceCode?: string | undefined;
|
|
539
|
-
} | undefined;
|
|
540
|
-
offices?: {
|
|
541
|
-
type?: "id" | "externalId" | undefined;
|
|
542
|
-
ids?: string | string[] | null | undefined;
|
|
543
|
-
} | undefined;
|
|
544
|
-
questions?: Record<string, string | string[]> | undefined;
|
|
545
|
-
searchCountries?: string | string[] | null | undefined;
|
|
546
|
-
session?: {
|
|
547
|
-
id?: string | undefined;
|
|
548
|
-
status?: "disabled" | "default" | undefined;
|
|
549
|
-
sourceTags?: string | string[] | undefined;
|
|
550
|
-
} | undefined;
|
|
551
|
-
subjectGroups?: {
|
|
552
|
-
type?: "id" | "externalId" | undefined;
|
|
553
|
-
ids?: string | string[] | null | undefined;
|
|
554
|
-
} | undefined;
|
|
555
|
-
subjectQuestions?: {
|
|
556
|
-
externalId: string;
|
|
557
|
-
value: string | string[];
|
|
558
|
-
}[] | undefined;
|
|
559
|
-
subjects?: {
|
|
560
|
-
type?: "id" | "externalId" | undefined;
|
|
561
|
-
ids?: string | string[] | null | undefined;
|
|
562
|
-
} | undefined;
|
|
563
|
-
timetable?: {
|
|
564
|
-
meetingTypeSelector?: "disable" | "enable" | undefined;
|
|
565
|
-
view?: "week" | "month" | undefined;
|
|
566
|
-
} | undefined;
|
|
567
|
-
version?: "1.0.0" | undefined;
|
|
568
|
-
}>>;
|
|
180
|
+
}, z.core.$strip>>;
|
|
569
181
|
//# sourceMappingURL=PluginConfiguration.schema.d.ts.map
|