@pexip-engage-public/plugin 1.1.40 → 1.2.0

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.
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { type IntentSchema } from "./schemas.js";
3
3
  export type PluginIntent = z.infer<typeof IntentSchema>;
4
4
  export interface PluginState extends z.infer<typeof PluginStateSchema> {
@@ -8,1080 +8,251 @@ export interface PluginStateInput extends z.input<typeof PluginStateSchema> {
8
8
  export declare const PluginStateSchema: z.ZodObject<{
9
9
  appointmentId: z.ZodOptional<z.ZodString>;
10
10
  callbackRequestId: z.ZodOptional<z.ZodString>;
11
- /** This object is the validated version `PluginConfiguration.current.ts` */
12
- config: z.ZodDefault<z.ZodObject<{
13
- application: z.ZodDefault<z.ZodObject<{
14
- customerLocationSearch: z.ZodDefault<z.ZodEnum<["always", "error"]>>;
15
- officeSearch: z.ZodDefault<z.ZodEnum<["required", "optional"]>>;
16
- recaptcha: z.ZodDefault<z.ZodEnum<["disable", "enable"]>>;
17
- scroll: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["disabled"]>, z.ZodNumber]>>;
11
+ config: z.ZodPrefault<z.ZodObject<{
12
+ application: z.ZodPrefault<z.ZodObject<{
13
+ customerLocationSearch: z.ZodDefault<z.ZodEnum<{
14
+ always: "always";
15
+ error: "error";
16
+ }>>;
17
+ officeSearch: z.ZodDefault<z.ZodEnum<{
18
+ optional: "optional";
19
+ required: "required";
20
+ }>>;
21
+ recaptcha: z.ZodDefault<z.ZodEnum<{
22
+ disable: "disable";
23
+ enable: "enable";
24
+ }>>;
25
+ scroll: z.ZodDefault<z.ZodUnion<readonly [z.ZodEnum<{
26
+ disabled: "disabled";
27
+ }>, z.ZodCoercedNumber<unknown>]>>;
18
28
  theme: z.ZodOptional<z.ZodString>;
19
- timeZoneSelection: z.ZodDefault<z.ZodEnum<["enable", "disable"]>>;
20
- }, "strip", z.ZodTypeAny, {
21
- customerLocationSearch: "always" | "error";
22
- officeSearch: "required" | "optional";
23
- recaptcha: "disable" | "enable";
24
- scroll: number | "disabled";
25
- timeZoneSelection: "disable" | "enable";
26
- theme?: string | undefined;
27
- }, {
28
- customerLocationSearch?: "always" | "error" | undefined;
29
- officeSearch?: "required" | "optional" | undefined;
30
- recaptcha?: "disable" | "enable" | undefined;
31
- scroll?: number | "disabled" | undefined;
32
- theme?: string | undefined;
33
- timeZoneSelection?: "disable" | "enable" | undefined;
34
- }>>;
35
- browser: z.ZodDefault<z.ZodObject<{
29
+ timeZoneSelection: z.ZodDefault<z.ZodEnum<{
30
+ disable: "disable";
31
+ enable: "enable";
32
+ }>>;
33
+ }, z.core.$strip>>;
34
+ browser: z.ZodPrefault<z.ZodObject<{
36
35
  href: z.ZodOptional<z.ZodString>;
37
36
  timeZone: z.ZodOptional<z.ZodString>;
38
- }, "strip", z.ZodTypeAny, {
39
- timeZone?: string | undefined;
40
- href?: string | undefined;
41
- }, {
42
- timeZone?: string | undefined;
43
- href?: string | undefined;
44
- }>>;
37
+ }, z.core.$strip>>;
45
38
  customer: z.ZodOptional<z.ZodObject<{
46
- additionalCustomers: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodString>>, "many">>>, string[] | undefined, (string | null | undefined)[] | null | undefined>;
39
+ additionalCustomers: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodEmail>>>>>, z.ZodTransform<string[] | undefined, (string | null | undefined)[] | null | undefined>>;
47
40
  company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
41
  customerNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
- existing: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>, "on" | undefined, string | boolean | null | undefined>;
42
+ email: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
43
+ existing: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>, z.ZodTransform<"on" | undefined, string | boolean | null | undefined>>;
51
44
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
45
  firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
- id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ id: z.ZodOptional<z.ZodNullable<z.ZodCoercedString<unknown>>>;
54
47
  language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
48
  lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
49
  location: z.ZodOptional<z.ZodNullable<z.ZodObject<{
57
50
  city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
51
  countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
52
  geolocation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
60
- latitude: z.ZodNumber;
61
- longitude: z.ZodNumber;
62
- }, "strip", z.ZodTypeAny, {
63
- latitude: number;
64
- longitude: number;
65
- }, {
66
- latitude: number;
67
- longitude: number;
68
- }>>>;
53
+ latitude: z.ZodCoercedNumber<unknown>;
54
+ longitude: z.ZodCoercedNumber<unknown>;
55
+ }, z.core.$strip>>>;
69
56
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
57
  state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
58
  street1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
59
  street2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
60
  timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
- }, "strip", z.ZodTypeAny, {
75
- city?: string | null | undefined;
76
- countryCode?: string | null | undefined;
77
- geolocation?: {
78
- latitude: number;
79
- longitude: number;
80
- } | null | undefined;
81
- postalCode?: string | null | undefined;
82
- state?: string | null | undefined;
83
- street1?: string | null | undefined;
84
- street2?: string | null | undefined;
85
- timeZone?: string | null | undefined;
86
- }, {
87
- city?: string | null | undefined;
88
- countryCode?: string | null | undefined;
89
- geolocation?: {
90
- latitude: number;
91
- longitude: number;
92
- } | null | undefined;
93
- postalCode?: string | null | undefined;
94
- state?: string | null | undefined;
95
- street1?: string | null | undefined;
96
- street2?: string | null | undefined;
97
- timeZone?: string | null | undefined;
98
- }>>>;
61
+ }, z.core.$strip>>>;
99
62
  phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
63
  timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
- }, "strip", z.ZodTypeAny, {
102
- id?: string | null | undefined;
103
- externalId?: string | null | undefined;
104
- additionalCustomers?: string[] | undefined;
105
- company?: string | null | undefined;
106
- customerNumber?: string | null | undefined;
107
- email?: string | null | undefined;
108
- existing?: "on" | undefined;
109
- firstName?: string | null | undefined;
110
- language?: string | null | undefined;
111
- lastName?: string | null | undefined;
112
- timeZone?: string | null | undefined;
113
- location?: {
114
- city?: string | null | undefined;
115
- countryCode?: string | null | undefined;
116
- geolocation?: {
117
- latitude: number;
118
- longitude: number;
119
- } | null | undefined;
120
- postalCode?: string | null | undefined;
121
- state?: string | null | undefined;
122
- street1?: string | null | undefined;
123
- street2?: string | null | undefined;
124
- timeZone?: string | null | undefined;
125
- } | null | undefined;
126
- phoneNumber?: string | null | undefined;
127
- }, {
128
- id?: string | null | undefined;
129
- externalId?: string | null | undefined;
130
- additionalCustomers?: (string | null | undefined)[] | null | undefined;
131
- company?: string | null | undefined;
132
- customerNumber?: string | null | undefined;
133
- email?: string | null | undefined;
134
- existing?: string | boolean | null | undefined;
135
- firstName?: string | null | undefined;
136
- language?: string | null | undefined;
137
- lastName?: string | null | undefined;
138
- timeZone?: string | null | undefined;
139
- location?: {
140
- city?: string | null | undefined;
141
- countryCode?: string | null | undefined;
142
- geolocation?: {
143
- latitude: number;
144
- longitude: number;
145
- } | null | undefined;
146
- postalCode?: string | null | undefined;
147
- state?: string | null | undefined;
148
- street1?: string | null | undefined;
149
- street2?: string | null | undefined;
150
- timeZone?: string | null | undefined;
151
- } | null | undefined;
152
- phoneNumber?: string | null | undefined;
153
- }>>;
154
- employees: z.ZodDefault<z.ZodObject<{
155
- ids: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>, string[], string | string[] | null | undefined>;
156
- type: z.ZodDefault<z.ZodEnum<["id", "externalId"]>>;
157
- }, "strip", z.ZodTypeAny, {
158
- type: "id" | "externalId";
159
- ids: string[];
160
- }, {
161
- type?: "id" | "externalId" | undefined;
162
- ids?: string | string[] | null | undefined;
163
- }>>;
64
+ }, z.core.$strip>>;
65
+ employees: z.ZodPrefault<z.ZodObject<{
66
+ 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>>;
67
+ type: z.ZodDefault<z.ZodEnum<{
68
+ id: "id";
69
+ externalId: "externalId";
70
+ }>>;
71
+ }, z.core.$strip>>;
164
72
  flow: z.ZodDefault<z.ZodString>;
165
73
  initialFormattedAddress: z.ZodOptional<z.ZodString>;
166
- intent: z.ZodDefault<z.ZodEnum<["schedule", "reschedule", "invite", "edit", "cancel", "complete", "decline"]>>;
167
- language: z.ZodEffects<z.ZodOptional<z.ZodString>, "da" | "de" | "el" | "en" | "es" | "fr" | "nl" | "no" | "en-US" | "en-GB" | "cimode" | undefined, string | undefined>;
168
- leadSegment: z.ZodDefault<z.ZodObject<{
169
- id: z.ZodOptional<z.ZodString>;
170
- type: z.ZodDefault<z.ZodEnum<["id", "code"]>>;
171
- }, "strip", z.ZodTypeAny, {
172
- type: "id" | "code";
173
- id?: string | undefined;
174
- }, {
175
- id?: string | undefined;
176
- type?: "id" | "code" | undefined;
74
+ intent: z.ZodDefault<z.ZodEnum<{
75
+ schedule: "schedule";
76
+ reschedule: "reschedule";
77
+ invite: "invite";
78
+ edit: "edit";
79
+ cancel: "cancel";
80
+ complete: "complete";
81
+ decline: "decline";
177
82
  }>>;
178
- listing: z.ZodDefault<z.ZodObject<{
179
- id: z.ZodOptional<z.ZodString>;
180
- type: z.ZodDefault<z.ZodEnum<["id", "externalId"]>>;
181
- }, "strip", z.ZodTypeAny, {
182
- type: "id" | "externalId";
183
- id?: string | undefined;
184
- }, {
185
- id?: string | undefined;
186
- type?: "id" | "externalId" | undefined;
187
- }>>;
188
- location: z.ZodDefault<z.ZodObject<{
83
+ 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>>;
84
+ leadSegment: z.ZodPrefault<z.ZodObject<{
85
+ id: z.ZodOptional<z.ZodCoercedString<unknown>>;
86
+ type: z.ZodDefault<z.ZodEnum<{
87
+ id: "id";
88
+ code: "code";
89
+ }>>;
90
+ }, z.core.$strip>>;
91
+ listing: z.ZodPrefault<z.ZodObject<{
92
+ id: z.ZodOptional<z.ZodCoercedString<unknown>>;
93
+ type: z.ZodDefault<z.ZodEnum<{
94
+ id: "id";
95
+ externalId: "externalId";
96
+ }>>;
97
+ }, z.core.$strip>>;
98
+ location: z.ZodPrefault<z.ZodObject<{
189
99
  formattedAddress: z.ZodOptional<z.ZodString>;
190
100
  geolocation: z.ZodOptional<z.ZodObject<{
191
- latitude: z.ZodNumber;
192
- longitude: z.ZodNumber;
193
- }, "strip", z.ZodTypeAny, {
194
- latitude: number;
195
- longitude: number;
196
- }, {
197
- latitude: number;
198
- longitude: number;
199
- }>>;
101
+ latitude: z.ZodCoercedNumber<unknown>;
102
+ longitude: z.ZodCoercedNumber<unknown>;
103
+ }, z.core.$strip>>;
200
104
  placeId: z.ZodOptional<z.ZodString>;
201
- source: z.ZodDefault<z.ZodEnum<["config", "listing", "user"]>>;
202
- }, "strip", z.ZodTypeAny, {
203
- source: "config" | "listing" | "user";
204
- geolocation?: {
205
- latitude: number;
206
- longitude: number;
207
- } | undefined;
208
- formattedAddress?: string | undefined;
209
- placeId?: string | undefined;
210
- }, {
211
- geolocation?: {
212
- latitude: number;
213
- longitude: number;
214
- } | undefined;
215
- formattedAddress?: string | undefined;
216
- placeId?: string | undefined;
217
- source?: "config" | "listing" | "user" | undefined;
218
- }>>;
219
- meetingTypes: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>, string[], string | string[] | null | undefined>, import("@pexip-engage-public/graphql").MeetingType[], string | string[] | null | undefined>;
105
+ source: z.ZodDefault<z.ZodEnum<{
106
+ config: "config";
107
+ listing: "listing";
108
+ user: "user";
109
+ }>>;
110
+ }, z.core.$strip>>;
111
+ 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<import("@pexip-engage-public/graphql").MeetingType[], string[]>>;
220
112
  messageForCustomer: z.ZodOptional<z.ZodString>;
221
- oauth: z.ZodDefault<z.ZodObject<{
113
+ oauth: z.ZodPrefault<z.ZodObject<{
222
114
  resourceCode: z.ZodOptional<z.ZodString>;
223
- }, "strip", z.ZodTypeAny, {
224
- resourceCode?: string | undefined;
225
- }, {
226
- resourceCode?: string | undefined;
227
- }>>;
228
- offices: z.ZodDefault<z.ZodObject<{
229
- ids: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>, string[], string | string[] | null | undefined>;
230
- type: z.ZodDefault<z.ZodEnum<["id", "externalId"]>>;
231
- }, "strip", z.ZodTypeAny, {
232
- type: "id" | "externalId";
233
- ids: string[];
234
- }, {
235
- type?: "id" | "externalId" | undefined;
236
- ids?: string | string[] | null | undefined;
237
- }>>;
238
- 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[]>>>;
239
- 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>;
240
- session: z.ZodDefault<z.ZodObject<{
115
+ }, z.core.$strip>>;
116
+ offices: z.ZodPrefault<z.ZodObject<{
117
+ 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>>;
118
+ type: z.ZodDefault<z.ZodEnum<{
119
+ id: "id";
120
+ externalId: "externalId";
121
+ }>>;
122
+ }, z.core.$strip>>;
123
+ 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[]>>>>;
124
+ searchCountries: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>, z.ZodTransform<string[], string | string[] | null | undefined>>;
125
+ session: z.ZodPrefault<z.ZodObject<{
241
126
  id: z.ZodOptional<z.ZodString>;
242
- sourceTags: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>, string[] | undefined, string | string[] | undefined>;
243
- status: z.ZodDefault<z.ZodEnum<["default", "disabled"]>>;
244
- }, "strip", z.ZodTypeAny, {
245
- status: "disabled" | "default";
246
- id?: string | undefined;
247
- sourceTags?: string[] | undefined;
248
- }, {
249
- id?: string | undefined;
250
- status?: "disabled" | "default" | undefined;
251
- sourceTags?: string | string[] | undefined;
252
- }>>;
253
- subjectGroups: z.ZodDefault<z.ZodObject<{
254
- ids: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>, string[], string | string[] | null | undefined>;
255
- type: z.ZodDefault<z.ZodEnum<["id", "externalId"]>>;
256
- }, "strip", z.ZodTypeAny, {
257
- type: "id" | "externalId";
258
- ids: string[];
259
- }, {
260
- type?: "id" | "externalId" | undefined;
261
- ids?: string | string[] | null | undefined;
262
- }>>;
127
+ sourceTags: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>, z.ZodTransform<string[] | undefined, string | string[] | undefined>>;
128
+ status: z.ZodDefault<z.ZodEnum<{
129
+ default: "default";
130
+ disabled: "disabled";
131
+ }>>;
132
+ }, z.core.$strip>>;
133
+ subjectGroups: z.ZodPrefault<z.ZodObject<{
134
+ 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>>;
135
+ type: z.ZodDefault<z.ZodEnum<{
136
+ id: "id";
137
+ externalId: "externalId";
138
+ }>>;
139
+ }, z.core.$strip>>;
263
140
  subjectQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
264
141
  externalId: z.ZodString;
265
- value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
266
- }, "strip", z.ZodTypeAny, {
267
- externalId: string;
268
- value: string | string[];
269
- }, {
270
- externalId: string;
271
- value: string | string[];
272
- }>, "many">>;
273
- subjects: z.ZodDefault<z.ZodObject<{
274
- ids: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>, string[], string | string[] | null | undefined>;
275
- type: z.ZodDefault<z.ZodEnum<["id", "externalId"]>>;
276
- }, "strip", z.ZodTypeAny, {
277
- type: "id" | "externalId";
278
- ids: string[];
279
- }, {
280
- type?: "id" | "externalId" | undefined;
281
- ids?: string | string[] | null | undefined;
282
- }>>;
283
- timetable: z.ZodDefault<z.ZodObject<{
284
- meetingTypeSelector: z.ZodDefault<z.ZodEnum<["enable", "disable"]>>;
285
- view: z.ZodDefault<z.ZodEnum<["week", "month"]>>;
286
- }, "strip", z.ZodTypeAny, {
287
- meetingTypeSelector: "disable" | "enable";
288
- view: "week" | "month";
289
- }, {
290
- meetingTypeSelector?: "disable" | "enable" | undefined;
291
- view?: "week" | "month" | undefined;
142
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
143
+ }, z.core.$strip>>>;
144
+ subjects: z.ZodPrefault<z.ZodObject<{
145
+ 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>>;
146
+ type: z.ZodDefault<z.ZodEnum<{
147
+ id: "id";
148
+ externalId: "externalId";
149
+ }>>;
150
+ }, z.core.$strip>>;
151
+ timetable: z.ZodPrefault<z.ZodObject<{
152
+ meetingTypeSelector: z.ZodDefault<z.ZodEnum<{
153
+ disable: "disable";
154
+ enable: "enable";
155
+ }>>;
156
+ view: z.ZodDefault<z.ZodEnum<{
157
+ week: "week";
158
+ month: "month";
159
+ }>>;
160
+ }, z.core.$strip>>;
161
+ version: z.ZodOptional<z.ZodEnum<{
162
+ "1.0.0": "1.0.0";
292
163
  }>>;
293
- version: z.ZodOptional<z.ZodEnum<["1.0.0"]>>;
294
- }, "strip", z.ZodTypeAny, {
295
- location: {
296
- source: "config" | "listing" | "user";
297
- geolocation?: {
298
- latitude: number;
299
- longitude: number;
300
- } | undefined;
301
- formattedAddress?: string | undefined;
302
- placeId?: string | undefined;
303
- };
304
- listing: {
305
- type: "id" | "externalId";
306
- id?: string | undefined;
307
- };
308
- application: {
309
- customerLocationSearch: "always" | "error";
310
- officeSearch: "required" | "optional";
311
- recaptcha: "disable" | "enable";
312
- scroll: number | "disabled";
313
- timeZoneSelection: "disable" | "enable";
314
- theme?: string | undefined;
315
- };
316
- browser: {
317
- timeZone?: string | undefined;
318
- href?: string | undefined;
319
- };
320
- employees: {
321
- type: "id" | "externalId";
322
- ids: string[];
323
- };
324
- flow: string;
325
- intent: "schedule" | "reschedule" | "invite" | "edit" | "cancel" | "complete" | "decline";
326
- leadSegment: {
327
- type: "id" | "code";
328
- id?: string | undefined;
329
- };
330
- meetingTypes: import("@pexip-engage-public/graphql").MeetingType[];
331
- oauth: {
332
- resourceCode?: string | undefined;
333
- };
334
- offices: {
335
- type: "id" | "externalId";
336
- ids: string[];
337
- };
338
- searchCountries: string[];
339
- session: {
340
- status: "disabled" | "default";
341
- id?: string | undefined;
342
- sourceTags?: string[] | undefined;
343
- };
344
- subjectGroups: {
345
- type: "id" | "externalId";
346
- ids: string[];
347
- };
348
- subjects: {
349
- type: "id" | "externalId";
350
- ids: string[];
351
- };
352
- timetable: {
353
- meetingTypeSelector: "disable" | "enable";
354
- view: "week" | "month";
355
- };
356
- language?: "da" | "de" | "el" | "en" | "es" | "fr" | "nl" | "no" | "en-US" | "en-GB" | "cimode" | undefined;
357
- customer?: {
358
- id?: string | null | undefined;
359
- externalId?: string | null | undefined;
360
- additionalCustomers?: string[] | undefined;
361
- company?: string | null | undefined;
362
- customerNumber?: string | null | undefined;
363
- email?: string | null | undefined;
364
- existing?: "on" | undefined;
365
- firstName?: string | null | undefined;
366
- language?: string | null | undefined;
367
- lastName?: string | null | undefined;
368
- timeZone?: string | null | undefined;
369
- location?: {
370
- city?: string | null | undefined;
371
- countryCode?: string | null | undefined;
372
- geolocation?: {
373
- latitude: number;
374
- longitude: number;
375
- } | null | undefined;
376
- postalCode?: string | null | undefined;
377
- state?: string | null | undefined;
378
- street1?: string | null | undefined;
379
- street2?: string | null | undefined;
380
- timeZone?: string | null | undefined;
381
- } | null | undefined;
382
- phoneNumber?: string | null | undefined;
383
- } | undefined;
384
- initialFormattedAddress?: string | undefined;
385
- messageForCustomer?: string | undefined;
386
- questions?: Record<string, string | string[]> | undefined;
387
- subjectQuestions?: {
388
- externalId: string;
389
- value: string | string[];
390
- }[] | undefined;
391
- version?: "1.0.0" | undefined;
392
- }, {
393
- language?: string | undefined;
394
- location?: {
395
- geolocation?: {
396
- latitude: number;
397
- longitude: number;
398
- } | undefined;
399
- formattedAddress?: string | undefined;
400
- placeId?: string | undefined;
401
- source?: "config" | "listing" | "user" | undefined;
402
- } | undefined;
403
- listing?: {
404
- id?: string | undefined;
405
- type?: "id" | "externalId" | undefined;
406
- } | undefined;
407
- application?: {
408
- customerLocationSearch?: "always" | "error" | undefined;
409
- officeSearch?: "required" | "optional" | undefined;
410
- recaptcha?: "disable" | "enable" | undefined;
411
- scroll?: number | "disabled" | undefined;
412
- theme?: string | undefined;
413
- timeZoneSelection?: "disable" | "enable" | undefined;
414
- } | undefined;
415
- browser?: {
416
- timeZone?: string | undefined;
417
- href?: string | undefined;
418
- } | undefined;
419
- customer?: {
420
- id?: string | null | undefined;
421
- externalId?: string | null | undefined;
422
- additionalCustomers?: (string | null | undefined)[] | null | undefined;
423
- company?: string | null | undefined;
424
- customerNumber?: string | null | undefined;
425
- email?: string | null | undefined;
426
- existing?: string | boolean | null | undefined;
427
- firstName?: string | null | undefined;
428
- language?: string | null | undefined;
429
- lastName?: string | null | undefined;
430
- timeZone?: string | null | undefined;
431
- location?: {
432
- city?: string | null | undefined;
433
- countryCode?: string | null | undefined;
434
- geolocation?: {
435
- latitude: number;
436
- longitude: number;
437
- } | null | undefined;
438
- postalCode?: string | null | undefined;
439
- state?: string | null | undefined;
440
- street1?: string | null | undefined;
441
- street2?: string | null | undefined;
442
- timeZone?: string | null | undefined;
443
- } | null | undefined;
444
- phoneNumber?: string | null | undefined;
445
- } | undefined;
446
- employees?: {
447
- type?: "id" | "externalId" | undefined;
448
- ids?: string | string[] | null | undefined;
449
- } | undefined;
450
- flow?: string | undefined;
451
- initialFormattedAddress?: string | undefined;
452
- intent?: "schedule" | "reschedule" | "invite" | "edit" | "cancel" | "complete" | "decline" | undefined;
453
- leadSegment?: {
454
- id?: string | undefined;
455
- type?: "id" | "code" | undefined;
456
- } | undefined;
457
- meetingTypes?: string | string[] | null | undefined;
458
- messageForCustomer?: string | undefined;
459
- oauth?: {
460
- resourceCode?: string | undefined;
461
- } | undefined;
462
- offices?: {
463
- type?: "id" | "externalId" | undefined;
464
- ids?: string | string[] | null | undefined;
465
- } | undefined;
466
- questions?: Record<string, string | string[]> | undefined;
467
- searchCountries?: string | string[] | null | undefined;
468
- session?: {
469
- id?: string | undefined;
470
- status?: "disabled" | "default" | undefined;
471
- sourceTags?: string | string[] | undefined;
472
- } | undefined;
473
- subjectGroups?: {
474
- type?: "id" | "externalId" | undefined;
475
- ids?: string | string[] | null | undefined;
476
- } | undefined;
477
- subjectQuestions?: {
478
- externalId: string;
479
- value: string | string[];
480
- }[] | undefined;
481
- subjects?: {
482
- type?: "id" | "externalId" | undefined;
483
- ids?: string | string[] | null | undefined;
484
- } | undefined;
485
- timetable?: {
486
- meetingTypeSelector?: "disable" | "enable" | undefined;
487
- view?: "week" | "month" | undefined;
488
- } | undefined;
489
- version?: "1.0.0" | undefined;
490
- }>>;
164
+ }, z.core.$strip>>;
491
165
  customer: z.ZodOptional<z.ZodObject<{
492
- additionalCustomers: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodString>>, "many">>>, string[] | undefined, (string | null | undefined)[] | null | undefined>;
166
+ additionalCustomers: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodEmail>>>>>, z.ZodTransform<string[] | undefined, (string | null | undefined)[] | null | undefined>>;
493
167
  company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
494
168
  customerNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
495
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
496
- existing: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>, "on" | undefined, string | boolean | null | undefined>;
169
+ email: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
170
+ existing: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>, z.ZodTransform<"on" | undefined, string | boolean | null | undefined>>;
497
171
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
498
172
  firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
499
- id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
173
+ id: z.ZodOptional<z.ZodNullable<z.ZodCoercedString<unknown>>>;
500
174
  language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
501
175
  lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
502
176
  location: z.ZodOptional<z.ZodNullable<z.ZodObject<{
503
177
  city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
504
178
  countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
505
179
  geolocation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
506
- latitude: z.ZodNumber;
507
- longitude: z.ZodNumber;
508
- }, "strip", z.ZodTypeAny, {
509
- latitude: number;
510
- longitude: number;
511
- }, {
512
- latitude: number;
513
- longitude: number;
514
- }>>>;
180
+ latitude: z.ZodCoercedNumber<unknown>;
181
+ longitude: z.ZodCoercedNumber<unknown>;
182
+ }, z.core.$strip>>>;
515
183
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
516
184
  state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
517
185
  street1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
518
186
  street2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
519
187
  timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
520
- }, "strip", z.ZodTypeAny, {
521
- city?: string | null | undefined;
522
- countryCode?: string | null | undefined;
523
- geolocation?: {
524
- latitude: number;
525
- longitude: number;
526
- } | null | undefined;
527
- postalCode?: string | null | undefined;
528
- state?: string | null | undefined;
529
- street1?: string | null | undefined;
530
- street2?: string | null | undefined;
531
- timeZone?: string | null | undefined;
532
- }, {
533
- city?: string | null | undefined;
534
- countryCode?: string | null | undefined;
535
- geolocation?: {
536
- latitude: number;
537
- longitude: number;
538
- } | null | undefined;
539
- postalCode?: string | null | undefined;
540
- state?: string | null | undefined;
541
- street1?: string | null | undefined;
542
- street2?: string | null | undefined;
543
- timeZone?: string | null | undefined;
544
- }>>>;
188
+ }, z.core.$strip>>>;
545
189
  phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
546
190
  timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
547
- }, "strip", z.ZodTypeAny, {
548
- id?: string | null | undefined;
549
- externalId?: string | null | undefined;
550
- additionalCustomers?: string[] | undefined;
551
- company?: string | null | undefined;
552
- customerNumber?: string | null | undefined;
553
- email?: string | null | undefined;
554
- existing?: "on" | undefined;
555
- firstName?: string | null | undefined;
556
- language?: string | null | undefined;
557
- lastName?: string | null | undefined;
558
- timeZone?: string | null | undefined;
559
- location?: {
560
- city?: string | null | undefined;
561
- countryCode?: string | null | undefined;
562
- geolocation?: {
563
- latitude: number;
564
- longitude: number;
565
- } | null | undefined;
566
- postalCode?: string | null | undefined;
567
- state?: string | null | undefined;
568
- street1?: string | null | undefined;
569
- street2?: string | null | undefined;
570
- timeZone?: string | null | undefined;
571
- } | null | undefined;
572
- phoneNumber?: string | null | undefined;
573
- }, {
574
- id?: string | null | undefined;
575
- externalId?: string | null | undefined;
576
- additionalCustomers?: (string | null | undefined)[] | null | undefined;
577
- company?: string | null | undefined;
578
- customerNumber?: string | null | undefined;
579
- email?: string | null | undefined;
580
- existing?: string | boolean | null | undefined;
581
- firstName?: string | null | undefined;
582
- language?: string | null | undefined;
583
- lastName?: string | null | undefined;
584
- timeZone?: string | null | undefined;
585
- location?: {
586
- city?: string | null | undefined;
587
- countryCode?: string | null | undefined;
588
- geolocation?: {
589
- latitude: number;
590
- longitude: number;
591
- } | null | undefined;
592
- postalCode?: string | null | undefined;
593
- state?: string | null | undefined;
594
- street1?: string | null | undefined;
595
- street2?: string | null | undefined;
596
- timeZone?: string | null | undefined;
597
- } | null | undefined;
598
- phoneNumber?: string | null | undefined;
599
- }>>;
191
+ }, z.core.$strip>>;
600
192
  employeeId: z.ZodOptional<z.ZodString>;
601
- employees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
602
- errors: z.ZodDefault<z.ZodObject<{
603
- /**
604
- * Each step can have errors, in case of the timetable this currently only happens when
605
- * a slot is booked by another customer between selecting the slot, and confirming the appointment
606
- * (request).
607
- */
193
+ employees: z.ZodOptional<z.ZodArray<z.ZodString>>;
194
+ errors: z.ZodPrefault<z.ZodObject<{
608
195
  timetable: z.ZodOptional<z.ZodLiteral<true>>;
609
- }, "strip", z.ZodTypeAny, {
610
- timetable?: true | undefined;
611
- }, {
612
- timetable?: true | undefined;
613
- }>>;
196
+ }, z.core.$strip>>;
614
197
  fileUploads: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
615
198
  answerId: z.ZodString;
616
199
  fileName: z.ZodString;
617
200
  uploadUrl: z.ZodNullable<z.ZodString>;
618
- }, "strip", z.ZodTypeAny, {
619
- answerId: string;
620
- fileName: string;
621
- uploadUrl: string | null;
622
- }, {
623
- answerId: string;
624
- fileName: string;
625
- uploadUrl: string | null;
626
- }>>>;
201
+ }, z.core.$strip>>>;
627
202
  flow: z.ZodDefault<z.ZodString>;
628
203
  leadSegmentId: z.ZodOptional<z.ZodString>;
629
204
  listingId: z.ZodOptional<z.ZodString>;
630
- /** The selected geolocation of the user */
631
- location: z.ZodDefault<z.ZodObject<{
205
+ location: z.ZodPrefault<z.ZodObject<{
632
206
  formattedAddress: z.ZodOptional<z.ZodString>;
633
207
  geolocation: z.ZodOptional<z.ZodObject<{
634
- latitude: z.ZodNumber;
635
- longitude: z.ZodNumber;
636
- }, "strip", z.ZodTypeAny, {
637
- latitude: number;
638
- longitude: number;
639
- }, {
640
- latitude: number;
641
- longitude: number;
642
- }>>;
208
+ latitude: z.ZodCoercedNumber<unknown>;
209
+ longitude: z.ZodCoercedNumber<unknown>;
210
+ }, z.core.$strip>>;
643
211
  placeId: z.ZodOptional<z.ZodString>;
644
- source: z.ZodDefault<z.ZodEnum<["config", "listing", "user"]>>;
645
- }, "strip", z.ZodTypeAny, {
646
- source: "config" | "listing" | "user";
647
- geolocation?: {
648
- latitude: number;
649
- longitude: number;
650
- } | undefined;
651
- formattedAddress?: string | undefined;
652
- placeId?: string | undefined;
653
- }, {
654
- geolocation?: {
655
- latitude: number;
656
- longitude: number;
657
- } | undefined;
658
- formattedAddress?: string | undefined;
659
- placeId?: string | undefined;
660
- source?: "config" | "listing" | "user" | undefined;
212
+ source: z.ZodDefault<z.ZodEnum<{
213
+ config: "config";
214
+ listing: "listing";
215
+ user: "user";
216
+ }>>;
217
+ }, z.core.$strip>>;
218
+ meetingType: z.ZodOptional<z.ZodEnum<{
219
+ VIDEO: "VIDEO";
220
+ PHONE: "PHONE";
221
+ ON_LOCATION: "ON_LOCATION";
222
+ OFFICE: "OFFICE";
661
223
  }>>;
662
- meetingType: z.ZodOptional<z.ZodEnum<["VIDEO", "PHONE", "ON_LOCATION", "OFFICE"]>>;
663
- meetingTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["VIDEO", "PHONE", "ON_LOCATION", "OFFICE"]>, "many">>;
224
+ meetingTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
225
+ VIDEO: "VIDEO";
226
+ PHONE: "PHONE";
227
+ ON_LOCATION: "ON_LOCATION";
228
+ OFFICE: "OFFICE";
229
+ }>>>;
664
230
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
665
231
  officeId: z.ZodOptional<z.ZodString>;
666
- offices: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
667
- 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[]>>>;
232
+ offices: z.ZodOptional<z.ZodArray<z.ZodString>>;
233
+ 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[]>>>>;
668
234
  schedulable: z.ZodDefault<z.ZodBoolean>;
669
- /** Marking certain steps as (automatically) skipped or not. */
670
- skipped: z.ZodDefault<z.ZodObject<{
235
+ skipped: z.ZodPrefault<z.ZodObject<{
671
236
  employee: z.ZodOptional<z.ZodLiteral<true>>;
672
237
  meetingType: z.ZodOptional<z.ZodLiteral<true>>;
673
238
  office: z.ZodOptional<z.ZodLiteral<true>>;
674
239
  questions: z.ZodOptional<z.ZodLiteral<true>>;
675
240
  subject: z.ZodOptional<z.ZodLiteral<true>>;
676
- }, "strip", z.ZodTypeAny, {
677
- questions?: true | undefined;
678
- office?: true | undefined;
679
- meetingType?: true | undefined;
680
- employee?: true | undefined;
681
- subject?: true | undefined;
682
- }, {
683
- questions?: true | undefined;
684
- office?: true | undefined;
685
- meetingType?: true | undefined;
686
- employee?: true | undefined;
687
- subject?: true | undefined;
688
- }>>;
689
- subjectGroups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
241
+ }, z.core.$strip>>;
242
+ subjectGroups: z.ZodOptional<z.ZodArray<z.ZodString>>;
690
243
  subjectId: z.ZodOptional<z.ZodString>;
691
- subjects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
692
- timetable: z.ZodDefault<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
244
+ subjects: z.ZodOptional<z.ZodArray<z.ZodString>>;
245
+ timetable: z.ZodPrefault<z.ZodIntersection<z.ZodUnion<readonly [z.ZodObject<{
693
246
  end: z.ZodUndefined;
694
247
  intent: z.ZodOptional<z.ZodLiteral<"callback">>;
695
248
  start: z.ZodUndefined;
696
- }, "strip", z.ZodTypeAny, {
697
- intent?: "callback" | undefined;
698
- end?: undefined;
699
- start?: undefined;
700
- }, {
701
- intent?: "callback" | undefined;
702
- end?: undefined;
703
- start?: undefined;
704
- }>, z.ZodObject<{
249
+ }, z.core.$strip>, z.ZodObject<{
705
250
  end: z.ZodOptional<z.ZodString>;
706
251
  intent: z.ZodOptional<z.ZodLiteral<"schedule">>;
707
252
  start: z.ZodOptional<z.ZodString>;
708
- }, "strip", z.ZodTypeAny, {
709
- intent?: "schedule" | undefined;
710
- end?: string | undefined;
711
- start?: string | undefined;
712
- }, {
713
- intent?: "schedule" | undefined;
714
- end?: string | undefined;
715
- start?: string | undefined;
716
- }>]>, z.ZodObject<{
717
- /** used timezone when selecting a timeslot */
253
+ }, z.core.$strip>]>, z.ZodObject<{
718
254
  timeZone: z.ZodOptional<z.ZodString>;
719
- }, "strip", z.ZodTypeAny, {
720
- timeZone?: string | undefined;
721
- }, {
722
- timeZone?: string | undefined;
723
- }>>>;
724
- /** Warnings that should be logged to the console */
255
+ }, z.core.$strip>>>;
725
256
  warning: z.ZodOptional<z.ZodString>;
726
- }, "strip", z.ZodTypeAny, {
727
- location: {
728
- source: "config" | "listing" | "user";
729
- geolocation?: {
730
- latitude: number;
731
- longitude: number;
732
- } | undefined;
733
- formattedAddress?: string | undefined;
734
- placeId?: string | undefined;
735
- };
736
- config: {
737
- location: {
738
- source: "config" | "listing" | "user";
739
- geolocation?: {
740
- latitude: number;
741
- longitude: number;
742
- } | undefined;
743
- formattedAddress?: string | undefined;
744
- placeId?: string | undefined;
745
- };
746
- listing: {
747
- type: "id" | "externalId";
748
- id?: string | undefined;
749
- };
750
- application: {
751
- customerLocationSearch: "always" | "error";
752
- officeSearch: "required" | "optional";
753
- recaptcha: "disable" | "enable";
754
- scroll: number | "disabled";
755
- timeZoneSelection: "disable" | "enable";
756
- theme?: string | undefined;
757
- };
758
- browser: {
759
- timeZone?: string | undefined;
760
- href?: string | undefined;
761
- };
762
- employees: {
763
- type: "id" | "externalId";
764
- ids: string[];
765
- };
766
- flow: string;
767
- intent: "schedule" | "reschedule" | "invite" | "edit" | "cancel" | "complete" | "decline";
768
- leadSegment: {
769
- type: "id" | "code";
770
- id?: string | undefined;
771
- };
772
- meetingTypes: import("@pexip-engage-public/graphql").MeetingType[];
773
- oauth: {
774
- resourceCode?: string | undefined;
775
- };
776
- offices: {
777
- type: "id" | "externalId";
778
- ids: string[];
779
- };
780
- searchCountries: string[];
781
- session: {
782
- status: "disabled" | "default";
783
- id?: string | undefined;
784
- sourceTags?: string[] | undefined;
785
- };
786
- subjectGroups: {
787
- type: "id" | "externalId";
788
- ids: string[];
789
- };
790
- subjects: {
791
- type: "id" | "externalId";
792
- ids: string[];
793
- };
794
- timetable: {
795
- meetingTypeSelector: "disable" | "enable";
796
- view: "week" | "month";
797
- };
798
- language?: "da" | "de" | "el" | "en" | "es" | "fr" | "nl" | "no" | "en-US" | "en-GB" | "cimode" | undefined;
799
- customer?: {
800
- id?: string | null | undefined;
801
- externalId?: string | null | undefined;
802
- additionalCustomers?: string[] | undefined;
803
- company?: string | null | undefined;
804
- customerNumber?: string | null | undefined;
805
- email?: string | null | undefined;
806
- existing?: "on" | undefined;
807
- firstName?: string | null | undefined;
808
- language?: string | null | undefined;
809
- lastName?: string | null | undefined;
810
- timeZone?: string | null | undefined;
811
- location?: {
812
- city?: string | null | undefined;
813
- countryCode?: string | null | undefined;
814
- geolocation?: {
815
- latitude: number;
816
- longitude: number;
817
- } | null | undefined;
818
- postalCode?: string | null | undefined;
819
- state?: string | null | undefined;
820
- street1?: string | null | undefined;
821
- street2?: string | null | undefined;
822
- timeZone?: string | null | undefined;
823
- } | null | undefined;
824
- phoneNumber?: string | null | undefined;
825
- } | undefined;
826
- initialFormattedAddress?: string | undefined;
827
- messageForCustomer?: string | undefined;
828
- questions?: Record<string, string | string[]> | undefined;
829
- subjectQuestions?: {
830
- externalId: string;
831
- value: string | string[];
832
- }[] | undefined;
833
- version?: "1.0.0" | undefined;
834
- };
835
- flow: string;
836
- timetable: ({
837
- intent?: "callback" | undefined;
838
- end?: undefined;
839
- start?: undefined;
840
- } | {
841
- intent?: "schedule" | undefined;
842
- end?: string | undefined;
843
- start?: string | undefined;
844
- }) & {
845
- timeZone?: string | undefined;
846
- };
847
- errors: {
848
- timetable?: true | undefined;
849
- };
850
- schedulable: boolean;
851
- skipped: {
852
- questions?: true | undefined;
853
- office?: true | undefined;
854
- meetingType?: true | undefined;
855
- employee?: true | undefined;
856
- subject?: true | undefined;
857
- };
858
- customer?: {
859
- id?: string | null | undefined;
860
- externalId?: string | null | undefined;
861
- additionalCustomers?: string[] | undefined;
862
- company?: string | null | undefined;
863
- customerNumber?: string | null | undefined;
864
- email?: string | null | undefined;
865
- existing?: "on" | undefined;
866
- firstName?: string | null | undefined;
867
- language?: string | null | undefined;
868
- lastName?: string | null | undefined;
869
- timeZone?: string | null | undefined;
870
- location?: {
871
- city?: string | null | undefined;
872
- countryCode?: string | null | undefined;
873
- geolocation?: {
874
- latitude: number;
875
- longitude: number;
876
- } | null | undefined;
877
- postalCode?: string | null | undefined;
878
- state?: string | null | undefined;
879
- street1?: string | null | undefined;
880
- street2?: string | null | undefined;
881
- timeZone?: string | null | undefined;
882
- } | null | undefined;
883
- phoneNumber?: string | null | undefined;
884
- } | undefined;
885
- employees?: string[] | undefined;
886
- meetingTypes?: ("VIDEO" | "PHONE" | "ON_LOCATION" | "OFFICE")[] | undefined;
887
- offices?: string[] | undefined;
888
- questions?: Record<string, string | string[]> | undefined;
889
- subjectGroups?: string[] | undefined;
890
- subjects?: string[] | undefined;
891
- metadata?: Record<string, unknown> | undefined;
892
- appointmentId?: string | undefined;
893
- callbackRequestId?: string | undefined;
894
- employeeId?: string | undefined;
895
- fileUploads?: Record<string, {
896
- answerId: string;
897
- fileName: string;
898
- uploadUrl: string | null;
899
- }> | undefined;
900
- leadSegmentId?: string | undefined;
901
- listingId?: string | undefined;
902
- meetingType?: "VIDEO" | "PHONE" | "ON_LOCATION" | "OFFICE" | undefined;
903
- officeId?: string | undefined;
904
- subjectId?: string | undefined;
905
- warning?: string | undefined;
906
- }, {
907
- location?: {
908
- geolocation?: {
909
- latitude: number;
910
- longitude: number;
911
- } | undefined;
912
- formattedAddress?: string | undefined;
913
- placeId?: string | undefined;
914
- source?: "config" | "listing" | "user" | undefined;
915
- } | undefined;
916
- config?: {
917
- language?: string | undefined;
918
- location?: {
919
- geolocation?: {
920
- latitude: number;
921
- longitude: number;
922
- } | undefined;
923
- formattedAddress?: string | undefined;
924
- placeId?: string | undefined;
925
- source?: "config" | "listing" | "user" | undefined;
926
- } | undefined;
927
- listing?: {
928
- id?: string | undefined;
929
- type?: "id" | "externalId" | undefined;
930
- } | undefined;
931
- application?: {
932
- customerLocationSearch?: "always" | "error" | undefined;
933
- officeSearch?: "required" | "optional" | undefined;
934
- recaptcha?: "disable" | "enable" | undefined;
935
- scroll?: number | "disabled" | undefined;
936
- theme?: string | undefined;
937
- timeZoneSelection?: "disable" | "enable" | undefined;
938
- } | undefined;
939
- browser?: {
940
- timeZone?: string | undefined;
941
- href?: string | undefined;
942
- } | undefined;
943
- customer?: {
944
- id?: string | null | undefined;
945
- externalId?: string | null | undefined;
946
- additionalCustomers?: (string | null | undefined)[] | null | undefined;
947
- company?: string | null | undefined;
948
- customerNumber?: string | null | undefined;
949
- email?: string | null | undefined;
950
- existing?: string | boolean | null | undefined;
951
- firstName?: string | null | undefined;
952
- language?: string | null | undefined;
953
- lastName?: string | null | undefined;
954
- timeZone?: string | null | undefined;
955
- location?: {
956
- city?: string | null | undefined;
957
- countryCode?: string | null | undefined;
958
- geolocation?: {
959
- latitude: number;
960
- longitude: number;
961
- } | null | undefined;
962
- postalCode?: string | null | undefined;
963
- state?: string | null | undefined;
964
- street1?: string | null | undefined;
965
- street2?: string | null | undefined;
966
- timeZone?: string | null | undefined;
967
- } | null | undefined;
968
- phoneNumber?: string | null | undefined;
969
- } | undefined;
970
- employees?: {
971
- type?: "id" | "externalId" | undefined;
972
- ids?: string | string[] | null | undefined;
973
- } | undefined;
974
- flow?: string | undefined;
975
- initialFormattedAddress?: string | undefined;
976
- intent?: "schedule" | "reschedule" | "invite" | "edit" | "cancel" | "complete" | "decline" | undefined;
977
- leadSegment?: {
978
- id?: string | undefined;
979
- type?: "id" | "code" | undefined;
980
- } | undefined;
981
- meetingTypes?: string | string[] | null | undefined;
982
- messageForCustomer?: string | undefined;
983
- oauth?: {
984
- resourceCode?: string | undefined;
985
- } | undefined;
986
- offices?: {
987
- type?: "id" | "externalId" | undefined;
988
- ids?: string | string[] | null | undefined;
989
- } | undefined;
990
- questions?: Record<string, string | string[]> | undefined;
991
- searchCountries?: string | string[] | null | undefined;
992
- session?: {
993
- id?: string | undefined;
994
- status?: "disabled" | "default" | undefined;
995
- sourceTags?: string | string[] | undefined;
996
- } | undefined;
997
- subjectGroups?: {
998
- type?: "id" | "externalId" | undefined;
999
- ids?: string | string[] | null | undefined;
1000
- } | undefined;
1001
- subjectQuestions?: {
1002
- externalId: string;
1003
- value: string | string[];
1004
- }[] | undefined;
1005
- subjects?: {
1006
- type?: "id" | "externalId" | undefined;
1007
- ids?: string | string[] | null | undefined;
1008
- } | undefined;
1009
- timetable?: {
1010
- meetingTypeSelector?: "disable" | "enable" | undefined;
1011
- view?: "week" | "month" | undefined;
1012
- } | undefined;
1013
- version?: "1.0.0" | undefined;
1014
- } | undefined;
1015
- customer?: {
1016
- id?: string | null | undefined;
1017
- externalId?: string | null | undefined;
1018
- additionalCustomers?: (string | null | undefined)[] | null | undefined;
1019
- company?: string | null | undefined;
1020
- customerNumber?: string | null | undefined;
1021
- email?: string | null | undefined;
1022
- existing?: string | boolean | null | undefined;
1023
- firstName?: string | null | undefined;
1024
- language?: string | null | undefined;
1025
- lastName?: string | null | undefined;
1026
- timeZone?: string | null | undefined;
1027
- location?: {
1028
- city?: string | null | undefined;
1029
- countryCode?: string | null | undefined;
1030
- geolocation?: {
1031
- latitude: number;
1032
- longitude: number;
1033
- } | null | undefined;
1034
- postalCode?: string | null | undefined;
1035
- state?: string | null | undefined;
1036
- street1?: string | null | undefined;
1037
- street2?: string | null | undefined;
1038
- timeZone?: string | null | undefined;
1039
- } | null | undefined;
1040
- phoneNumber?: string | null | undefined;
1041
- } | undefined;
1042
- employees?: string[] | undefined;
1043
- flow?: string | undefined;
1044
- meetingTypes?: ("VIDEO" | "PHONE" | "ON_LOCATION" | "OFFICE")[] | undefined;
1045
- offices?: string[] | undefined;
1046
- questions?: Record<string, string | string[]> | undefined;
1047
- subjectGroups?: string[] | undefined;
1048
- subjects?: string[] | undefined;
1049
- timetable?: (({
1050
- intent?: "callback" | undefined;
1051
- end?: undefined;
1052
- start?: undefined;
1053
- } | {
1054
- intent?: "schedule" | undefined;
1055
- end?: string | undefined;
1056
- start?: string | undefined;
1057
- }) & {
1058
- timeZone?: string | undefined;
1059
- }) | undefined;
1060
- metadata?: Record<string, unknown> | undefined;
1061
- appointmentId?: string | undefined;
1062
- callbackRequestId?: string | undefined;
1063
- employeeId?: string | undefined;
1064
- errors?: {
1065
- timetable?: true | undefined;
1066
- } | undefined;
1067
- fileUploads?: Record<string, {
1068
- answerId: string;
1069
- fileName: string;
1070
- uploadUrl: string | null;
1071
- }> | undefined;
1072
- leadSegmentId?: string | undefined;
1073
- listingId?: string | undefined;
1074
- meetingType?: "VIDEO" | "PHONE" | "ON_LOCATION" | "OFFICE" | undefined;
1075
- officeId?: string | undefined;
1076
- schedulable?: boolean | undefined;
1077
- skipped?: {
1078
- questions?: true | undefined;
1079
- office?: true | undefined;
1080
- meetingType?: true | undefined;
1081
- employee?: true | undefined;
1082
- subject?: true | undefined;
1083
- } | undefined;
1084
- subjectId?: string | undefined;
1085
- warning?: string | undefined;
1086
- }>;
257
+ }, z.core.$strip>;
1087
258
  //# sourceMappingURL=PluginState.schema.d.ts.map