@pexip-engage-public/plugin 1.1.17 → 1.1.19

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.
Files changed (88) hide show
  1. package/CHANGELOG.md +18 -2
  2. package/dist/configuration/PluginConfiguration.schema.d.ts +149 -149
  3. package/dist/configuration/PluginConfiguration.schema.d.ts.map +1 -1
  4. package/dist/configuration/PluginConfiguration.schema.js +55 -55
  5. package/dist/configuration/PluginConfiguration.schema.js.map +1 -1
  6. package/dist/configuration/migration.js +16 -16
  7. package/dist/configuration/migration.js.map +1 -1
  8. package/dist/configuration-parser/hash-parser.d.ts +1 -1
  9. package/dist/configuration-parser/hash-parser.d.ts.map +1 -1
  10. package/dist/configuration-parser/hash-parser.js +3 -3
  11. package/dist/configuration-parser/hash-parser.js.map +1 -1
  12. package/dist/configuration-parser/html-parser.d.ts +1 -1
  13. package/dist/configuration-parser/html-parser.d.ts.map +1 -1
  14. package/dist/configuration-parser/html-parser.js +3 -3
  15. package/dist/configuration-parser/html-parser.js.map +1 -1
  16. package/dist/configuration-parser/index.d.ts +6 -6
  17. package/dist/configuration-parser/index.js +2 -2
  18. package/dist/configuration-parser/index.js.map +1 -1
  19. package/dist/configuration-parser/js-parser.d.ts +1 -1
  20. package/dist/configuration-parser/js-parser.d.ts.map +1 -1
  21. package/dist/configuration-parser/js-parser.js +87 -87
  22. package/dist/configuration-parser/js-parser.js.map +1 -1
  23. package/dist/configuration-parser/migrate-legacy-configuration.js +3 -3
  24. package/dist/configuration-parser/migrate-legacy-configuration.js.map +1 -1
  25. package/dist/configuration-parser-legacy/LegacyParser.d.ts.map +1 -1
  26. package/dist/configuration-parser-legacy/LegacyParser.js +62 -62
  27. package/dist/configuration-parser-legacy/LegacyParser.js.map +1 -1
  28. package/dist/configuration-parser-legacy/LegacyParser.utils.js +23 -23
  29. package/dist/configuration-parser-legacy/LegacyParser.utils.js.map +1 -1
  30. package/dist/configuration-parser-legacy/ModernParser.js +8 -8
  31. package/dist/configuration-parser-legacy/ModernParser.js.map +1 -1
  32. package/dist/configuration-parser-legacy/Parser.js +1 -1
  33. package/dist/configuration-parser-legacy/Parser.js.map +1 -1
  34. package/dist/configuration-parser-legacy/tests/LegacyDomParser.test.js +20 -20
  35. package/dist/configuration-parser-legacy/tests/LegacyDomParser.test.js.map +1 -1
  36. package/dist/configuration-parser-legacy/tests/LegacyLocationHashParser.test.js +26 -26
  37. package/dist/configuration-parser-legacy/tests/LegacyLocationHashParser.test.js.map +1 -1
  38. package/dist/configuration-parser-legacy/tests/LegacyParser.test.js +4 -4
  39. package/dist/configuration-parser-legacy/tests/LegacyParser.test.js.map +1 -1
  40. package/dist/constants.d.ts +1 -1
  41. package/dist/constants.js +1 -1
  42. package/dist/encoding.d.ts +1 -1
  43. package/dist/encoding.d.ts.map +1 -1
  44. package/dist/encoding.js +5 -5
  45. package/dist/encoding.js.map +1 -1
  46. package/dist/events/event-types.d.ts +1 -1
  47. package/dist/events/event-types.d.ts.map +1 -1
  48. package/dist/instance/PluginInstance.d.ts +10 -10
  49. package/dist/instance/PluginInstance.d.ts.map +1 -1
  50. package/dist/instance/PluginInstance.js +29 -29
  51. package/dist/instance/PluginInstance.js.map +1 -1
  52. package/dist/instance/index.d.ts.map +1 -1
  53. package/dist/instance/index.js +3 -3
  54. package/dist/instance/index.js.map +1 -1
  55. package/dist/logger.d.ts +3 -3
  56. package/dist/logger.d.ts.map +1 -1
  57. package/dist/logger.js +9 -9
  58. package/dist/logger.js.map +1 -1
  59. package/dist/state/PluginState.schema.d.ts +451 -451
  60. package/dist/state/PluginState.schema.d.ts.map +1 -1
  61. package/dist/state/PluginState.schema.js +48 -48
  62. package/dist/state/PluginState.schema.js.map +1 -1
  63. package/dist/state/schemas.d.ts +13 -13
  64. package/dist/state/schemas.js +9 -9
  65. package/dist/state/schemas.js.map +1 -1
  66. package/package.json +6 -6
  67. package/src/configuration/PluginConfiguration.schema.ts +59 -60
  68. package/src/configuration/migration.ts +16 -16
  69. package/src/configuration-parser/hash-parser.ts +3 -3
  70. package/src/configuration-parser/html-parser.ts +3 -3
  71. package/src/configuration-parser/index.ts +2 -2
  72. package/src/configuration-parser/js-parser.ts +94 -94
  73. package/src/configuration-parser/migrate-legacy-configuration.ts +4 -4
  74. package/src/configuration-parser-legacy/LegacyParser.ts +63 -62
  75. package/src/configuration-parser-legacy/LegacyParser.utils.ts +24 -24
  76. package/src/configuration-parser-legacy/ModernParser.ts +8 -8
  77. package/src/configuration-parser-legacy/Parser.ts +1 -1
  78. package/src/configuration-parser-legacy/tests/LegacyDomParser.test.ts +20 -20
  79. package/src/configuration-parser-legacy/tests/LegacyLocationHashParser.test.ts +29 -29
  80. package/src/configuration-parser-legacy/tests/LegacyParser.test.ts +4 -4
  81. package/src/constants.ts +1 -1
  82. package/src/encoding.ts +6 -6
  83. package/src/events/event-types.ts +1 -2
  84. package/src/instance/PluginInstance.ts +30 -31
  85. package/src/instance/index.ts +3 -3
  86. package/src/logger.ts +9 -9
  87. package/src/state/PluginState.schema.ts +53 -53
  88. package/src/state/schemas.ts +9 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @pexip-engage-public/plugin
2
2
 
3
+ ## 1.1.19
4
+
5
+ ### Patch Changes
6
+
7
+ - 3ffd2cb: fix(deps): update all non-major dependencies
8
+ - Updated dependencies [3ffd2cb]
9
+ - @pexip-engage-public/graphql@1.1.3
10
+ - @pexip-engage/utils@0.1.45
11
+
12
+ ## 1.1.18
13
+
14
+ ### Patch Changes
15
+
16
+ - fe57fbf: chore: biome@2.0.0
17
+ - Updated dependencies [fe57fbf]
18
+ - @pexip-engage-public/graphql@1.1.2
19
+ - @pexip-engage/utils@0.1.44
20
+
3
21
  ## 1.1.17
4
22
 
5
23
  ### Patch Changes
@@ -400,7 +418,6 @@
400
418
  - c128fc3: chore: revert iframe-resizer bump due to license spam
401
419
  - 1c31100: ENGAGE-108: Remove `Q` requirement
402
420
  ENGAGE-109: Allow timetable step to be last
403
-
404
421
  - Add ability to override `recaptcha` requirement
405
422
 
406
423
  ## 1.0.56
@@ -776,7 +793,6 @@
776
793
  ***
777
794
 
778
795
  fix(deps): update all non-major dependencies
779
-
780
796
  - @pexip-engage-public/graphql@1.0.9
781
797
 
782
798
  ## 1.0.13
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
1
  import type { MeetingType } from "@pexip-engage-public/graphql";
2
+ import { 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.
@@ -25,72 +25,50 @@ import type { MeetingType } from "@pexip-engage-public/graphql";
25
25
  */
26
26
  export declare const FlowSchema: z.ZodDefault<z.ZodString>;
27
27
  export declare const PluginConfigurationSchema: z.ZodDefault<z.ZodObject<{
28
- version: z.ZodOptional<z.ZodEnum<["1.0.0"]>>;
29
- flow: z.ZodDefault<z.ZodString>;
30
- intent: z.ZodDefault<z.ZodEnum<["schedule", "reschedule", "invite", "edit", "cancel", "complete", "decline"]>>;
31
- /**
32
- * An RFC 5646-compatible language tag.
33
- *
34
- * This will cause the plugin to be displayed in the specified language, unless the language is unavailable.
35
- *
36
- * In that case, a best-effort fallback will be performed with increasingly more generic variants of the specified language or finally 'en' if no variants of the specified language are available.
37
- */
38
- language: z.ZodEffects<z.ZodOptional<z.ZodString>, "da" | "de" | "el" | "en" | "es" | "fr" | "nl" | "no" | "en-US" | "en-GB" | "cimode" | undefined, string | undefined>;
39
- /** @deprecated Only use me during application init! */
40
- employees: z.ZodDefault<z.ZodObject<{
41
- ids: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>, string[], string | string[] | null | undefined>;
42
- type: z.ZodDefault<z.ZodEnum<["id", "externalId"]>>;
43
- }, "strip", z.ZodTypeAny, {
44
- type: "id" | "externalId";
45
- ids: string[];
46
- }, {
47
- type?: "id" | "externalId" | undefined;
48
- ids?: string | string[] | null | undefined;
49
- }>>;
50
28
  application: z.ZodDefault<z.ZodObject<{
29
+ /**
30
+ * Used to enable/disable customer location search.
31
+ * @default error
32
+ */
33
+ customerLocationSearch: z.ZodDefault<z.ZodEnum<["always", "error"]>>;
51
34
  /**
52
35
  * Used to enable/disable the office search step.
53
36
  * @defualt "optional"
54
37
  * @type { "required" | "optional" }
55
38
  */
56
39
  officeSearch: z.ZodDefault<z.ZodEnum<["required", "optional"]>>;
40
+ recaptcha: z.ZodDefault<z.ZodEnum<["disable", "enable"]>>;
57
41
  /**
58
42
  * Used to set scroll top value when navigating steps
59
43
  * @default -90
60
44
  * @type { "disabled" | number }
61
45
  */
62
46
  scroll: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["disabled"]>, z.ZodNumber]>>;
63
- /**
64
- * Used to enable/disable customer location search.
65
- * @default error
66
- */
67
- customerLocationSearch: z.ZodDefault<z.ZodEnum<["always", "error"]>>;
47
+ theme: z.ZodOptional<z.ZodString>;
68
48
  /**
69
49
  * Used to enable timezone selection when the meeting type is video or phone.
70
50
  * @default "enable"
71
51
  * @type {"enable" | "disable"}
72
52
  */
73
53
  timeZoneSelection: z.ZodDefault<z.ZodEnum<["enable", "disable"]>>;
74
- theme: z.ZodOptional<z.ZodString>;
75
- recaptcha: z.ZodDefault<z.ZodEnum<["disable", "enable"]>>;
76
54
  }, "strip", z.ZodTypeAny, {
55
+ customerLocationSearch: "always" | "error";
77
56
  officeSearch: "required" | "optional";
57
+ recaptcha: "disable" | "enable";
78
58
  scroll: number | "disabled";
79
- customerLocationSearch: "always" | "error";
80
- timeZoneSelection: "enable" | "disable";
81
- recaptcha: "enable" | "disable";
59
+ timeZoneSelection: "disable" | "enable";
82
60
  theme?: string | undefined;
83
61
  }, {
62
+ customerLocationSearch?: "always" | "error" | undefined;
84
63
  officeSearch?: "required" | "optional" | undefined;
64
+ recaptcha?: "disable" | "enable" | undefined;
85
65
  scroll?: number | "disabled" | undefined;
86
- customerLocationSearch?: "always" | "error" | undefined;
87
- timeZoneSelection?: "enable" | "disable" | undefined;
88
66
  theme?: string | undefined;
89
- recaptcha?: "enable" | "disable" | undefined;
67
+ timeZoneSelection?: "disable" | "enable" | undefined;
90
68
  }>>;
91
69
  browser: z.ZodDefault<z.ZodObject<{
92
- timeZone: z.ZodOptional<z.ZodString>;
93
70
  href: z.ZodOptional<z.ZodString>;
71
+ timeZone: z.ZodOptional<z.ZodString>;
94
72
  }, "strip", z.ZodTypeAny, {
95
73
  timeZone?: string | undefined;
96
74
  href?: string | undefined;
@@ -99,6 +77,7 @@ export declare const PluginConfigurationSchema: z.ZodDefault<z.ZodObject<{
99
77
  href?: string | undefined;
100
78
  }>>;
101
79
  customer: z.ZodOptional<z.ZodObject<{
80
+ additionalCustomers: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodString>>, "many">>>, string[] | undefined, (string | null | undefined)[] | null | undefined>;
102
81
  company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
82
  customerNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
83
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -122,10 +101,10 @@ export declare const PluginConfigurationSchema: z.ZodDefault<z.ZodObject<{
122
101
  longitude: number;
123
102
  }>>>;
124
103
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
- timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
104
  state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
127
105
  street1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
128
106
  street2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
108
  }, "strip", z.ZodTypeAny, {
130
109
  city?: string | null | undefined;
131
110
  countryCode?: string | null | undefined;
@@ -134,10 +113,10 @@ export declare const PluginConfigurationSchema: z.ZodDefault<z.ZodObject<{
134
113
  longitude: number;
135
114
  } | null | undefined;
136
115
  postalCode?: string | null | undefined;
137
- timeZone?: string | null | undefined;
138
116
  state?: string | null | undefined;
139
117
  street1?: string | null | undefined;
140
118
  street2?: string | null | undefined;
119
+ timeZone?: string | null | undefined;
141
120
  }, {
142
121
  city?: string | null | undefined;
143
122
  countryCode?: string | null | undefined;
@@ -146,17 +125,17 @@ export declare const PluginConfigurationSchema: z.ZodDefault<z.ZodObject<{
146
125
  longitude: number;
147
126
  } | null | undefined;
148
127
  postalCode?: string | null | undefined;
149
- timeZone?: string | null | undefined;
150
128
  state?: string | null | undefined;
151
129
  street1?: string | null | undefined;
152
130
  street2?: string | null | undefined;
131
+ timeZone?: string | null | undefined;
153
132
  }>>>;
154
133
  phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
155
134
  timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
- additionalCustomers: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodString>>, "many">>>, string[] | undefined, (string | null | undefined)[] | null | undefined>;
157
135
  }, "strip", z.ZodTypeAny, {
158
136
  id?: string | null | undefined;
159
137
  externalId?: string | null | undefined;
138
+ additionalCustomers?: string[] | undefined;
160
139
  company?: string | null | undefined;
161
140
  customerNumber?: string | null | undefined;
162
141
  email?: string | null | undefined;
@@ -173,16 +152,16 @@ export declare const PluginConfigurationSchema: z.ZodDefault<z.ZodObject<{
173
152
  longitude: number;
174
153
  } | null | undefined;
175
154
  postalCode?: string | null | undefined;
176
- timeZone?: string | null | undefined;
177
155
  state?: string | null | undefined;
178
156
  street1?: string | null | undefined;
179
157
  street2?: string | null | undefined;
158
+ timeZone?: string | null | undefined;
180
159
  } | null | undefined;
181
160
  phoneNumber?: string | null | undefined;
182
- additionalCustomers?: string[] | undefined;
183
161
  }, {
184
162
  id?: string | null | undefined;
185
163
  externalId?: string | null | undefined;
164
+ additionalCustomers?: (string | null | undefined)[] | null | undefined;
186
165
  company?: string | null | undefined;
187
166
  customerNumber?: string | null | undefined;
188
167
  email?: string | null | undefined;
@@ -199,14 +178,36 @@ export declare const PluginConfigurationSchema: z.ZodDefault<z.ZodObject<{
199
178
  longitude: number;
200
179
  } | null | undefined;
201
180
  postalCode?: string | null | undefined;
202
- timeZone?: string | null | undefined;
203
181
  state?: string | null | undefined;
204
182
  street1?: string | null | undefined;
205
183
  street2?: string | null | undefined;
184
+ timeZone?: string | null | undefined;
206
185
  } | null | undefined;
207
186
  phoneNumber?: string | null | undefined;
208
- additionalCustomers?: (string | null | undefined)[] | null | undefined;
209
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
+ }>>;
199
+ flow: z.ZodDefault<z.ZodString>;
200
+ /** @deprecated Only use me during application init! */
201
+ initialFormattedAddress: z.ZodOptional<z.ZodString>;
202
+ intent: z.ZodDefault<z.ZodEnum<["schedule", "reschedule", "invite", "edit", "cancel", "complete", "decline"]>>;
203
+ /**
204
+ * An RFC 5646-compatible language tag.
205
+ *
206
+ * This will cause the plugin to be displayed in the specified language, unless the language is unavailable.
207
+ *
208
+ * In that case, a best-effort fallback will be performed with increasingly more generic variants of the specified language or finally 'en' if no variants of the specified language are available.
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>;
210
211
  /** Lead Segment. This allows a subject to be preselected matching the lead segment code/id.*/
211
212
  /** @deprecated Only use me during application init! */
212
213
  leadSegment: z.ZodDefault<z.ZodObject<{
@@ -230,10 +231,48 @@ export declare const PluginConfigurationSchema: z.ZodDefault<z.ZodObject<{
230
231
  id?: string | undefined;
231
232
  type?: "id" | "externalId" | undefined;
232
233
  }>>;
233
- /** @deprecated Only use me during application init! */
234
- initialFormattedAddress: z.ZodOptional<z.ZodString>;
234
+ /**
235
+ * This parameter is used for prefilling the location search step, so that offices are already scoped to this location.
236
+ *
237
+ * When location is passed, both geolocation & formatted_address are required.
238
+ */
239
+ location: z.ZodDefault<z.ZodObject<{
240
+ formattedAddress: z.ZodOptional<z.ZodString>;
241
+ geolocation: z.ZodOptional<z.ZodObject<{
242
+ latitude: z.ZodNumber;
243
+ longitude: z.ZodNumber;
244
+ }, "strip", z.ZodTypeAny, {
245
+ latitude: number;
246
+ longitude: number;
247
+ }, {
248
+ latitude: number;
249
+ longitude: number;
250
+ }>>;
251
+ placeId: z.ZodOptional<z.ZodString>;
252
+ source: z.ZodDefault<z.ZodEnum<["config", "listing", "user"]>>;
253
+ }, "strip", z.ZodTypeAny, {
254
+ source: "config" | "listing" | "user";
255
+ geolocation?: {
256
+ latitude: number;
257
+ longitude: number;
258
+ } | undefined;
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
+ }>>;
235
270
  /** @deprecated Only use me during application init! */
236
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
+ */
275
+ messageForCustomer: z.ZodOptional<z.ZodString>;
237
276
  oauth: z.ZodDefault<z.ZodObject<{
238
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. */
239
278
  resourceCode: z.ZodOptional<z.ZodString>;
@@ -253,6 +292,7 @@ export declare const PluginConfigurationSchema: z.ZodDefault<z.ZodObject<{
253
292
  type?: "id" | "externalId" | undefined;
254
293
  ids?: string | string[] | null | undefined;
255
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[]>>>;
256
296
  /**
257
297
  * The country that should be used for searching locations. Should be a two letter ISO 3166-1 country code.
258
298
  *
@@ -260,12 +300,12 @@ export declare const PluginConfigurationSchema: z.ZodDefault<z.ZodObject<{
260
300
  */
261
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>;
262
302
  session: z.ZodDefault<z.ZodObject<{
263
- /** Used to enable/disable tracking of events in the plugin for insights about conversion. @default "default" */
264
- status: z.ZodDefault<z.ZodEnum<["default", "disabled"]>>;
265
303
  /** Pass your own custom session ID. */
266
304
  id: z.ZodOptional<z.ZodString>;
267
305
  /** Pass source tags seperated with a semi-colon. */
268
306
  sourceTags: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>, string[] | undefined, string | string[] | undefined>;
307
+ /** Used to enable/disable tracking of events in the plugin for insights about conversion. @default "default" */
308
+ status: z.ZodDefault<z.ZodEnum<["default", "disabled"]>>;
269
309
  }, "strip", z.ZodTypeAny, {
270
310
  status: "disabled" | "default";
271
311
  id?: string | undefined;
@@ -276,7 +316,7 @@ export declare const PluginConfigurationSchema: z.ZodDefault<z.ZodObject<{
276
316
  sourceTags?: string | string[] | undefined;
277
317
  }>>;
278
318
  /** @deprecated Only use me during application init! */
279
- subjects: z.ZodDefault<z.ZodObject<{
319
+ subjectGroups: z.ZodDefault<z.ZodObject<{
280
320
  ids: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>, string[], string | string[] | null | undefined>;
281
321
  type: z.ZodDefault<z.ZodEnum<["id", "externalId"]>>;
282
322
  }, "strip", z.ZodTypeAny, {
@@ -286,8 +326,18 @@ export declare const PluginConfigurationSchema: z.ZodDefault<z.ZodObject<{
286
326
  type?: "id" | "externalId" | undefined;
287
327
  ids?: string | string[] | null | undefined;
288
328
  }>>;
329
+ subjectQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
330
+ externalId: z.ZodString;
331
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
332
+ }, "strip", z.ZodTypeAny, {
333
+ externalId: string;
334
+ value: string | string[];
335
+ }, {
336
+ externalId: string;
337
+ value: string | string[];
338
+ }>, "many">>;
289
339
  /** @deprecated Only use me during application init! */
290
- subjectGroups: z.ZodDefault<z.ZodObject<{
340
+ subjects: z.ZodDefault<z.ZodObject<{
291
341
  ids: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>, string[], string | string[] | null | undefined>;
292
342
  type: z.ZodDefault<z.ZodEnum<["id", "externalId"]>>;
293
343
  }, "strip", z.ZodTypeAny, {
@@ -298,12 +348,6 @@ export declare const PluginConfigurationSchema: z.ZodDefault<z.ZodObject<{
298
348
  ids?: string | string[] | null | undefined;
299
349
  }>>;
300
350
  timetable: z.ZodDefault<z.ZodObject<{
301
- /**
302
- * Used to decide wether to show month of week timetable view
303
- * @experimental
304
- * @default "week"
305
- */
306
- view: z.ZodDefault<z.ZodEnum<["week", "month"]>>;
307
351
  /**
308
352
  * Used to enable meeting type switcher on timetable step
309
353
  * @experimental
@@ -311,64 +355,20 @@ export declare const PluginConfigurationSchema: z.ZodDefault<z.ZodObject<{
311
355
  * @type {"enable" | "disable"}
312
356
  */
313
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"]>>;
314
364
  }, "strip", z.ZodTypeAny, {
365
+ meetingTypeSelector: "disable" | "enable";
315
366
  view: "week" | "month";
316
- meetingTypeSelector: "enable" | "disable";
317
367
  }, {
368
+ meetingTypeSelector?: "disable" | "enable" | undefined;
318
369
  view?: "week" | "month" | undefined;
319
- meetingTypeSelector?: "enable" | "disable" | undefined;
320
370
  }>>;
321
- 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[]>>>;
322
- subjectQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
323
- externalId: z.ZodString;
324
- value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
325
- }, "strip", z.ZodTypeAny, {
326
- externalId: string;
327
- value: string | string[];
328
- }, {
329
- externalId: string;
330
- value: string | string[];
331
- }>, "many">>;
332
- /**
333
- * This parameter is used for prefilling the location search step, so that offices are already scoped to this location.
334
- *
335
- * When location is passed, both geolocation & formatted_address are required.
336
- */
337
- location: z.ZodDefault<z.ZodObject<{
338
- source: z.ZodDefault<z.ZodEnum<["config", "listing", "user"]>>;
339
- geolocation: z.ZodOptional<z.ZodObject<{
340
- latitude: z.ZodNumber;
341
- longitude: z.ZodNumber;
342
- }, "strip", z.ZodTypeAny, {
343
- latitude: number;
344
- longitude: number;
345
- }, {
346
- latitude: number;
347
- longitude: number;
348
- }>>;
349
- formattedAddress: z.ZodOptional<z.ZodString>;
350
- placeId: z.ZodOptional<z.ZodString>;
351
- }, "strip", z.ZodTypeAny, {
352
- source: "config" | "listing" | "user";
353
- geolocation?: {
354
- latitude: number;
355
- longitude: number;
356
- } | undefined;
357
- formattedAddress?: string | undefined;
358
- placeId?: string | undefined;
359
- }, {
360
- geolocation?: {
361
- latitude: number;
362
- longitude: number;
363
- } | undefined;
364
- source?: "config" | "listing" | "user" | undefined;
365
- formattedAddress?: string | undefined;
366
- placeId?: string | undefined;
367
- }>>;
368
- /**
369
- * This parameter is used for passing a message to the customer. It is displayed in plugin and e-mails.
370
- */
371
- messageForCustomer: z.ZodOptional<z.ZodString>;
371
+ version: z.ZodOptional<z.ZodEnum<["1.0.0"]>>;
372
372
  }, "strip", z.ZodTypeAny, {
373
373
  location: {
374
374
  source: "config" | "listing" | "user";
@@ -383,24 +383,24 @@ export declare const PluginConfigurationSchema: z.ZodDefault<z.ZodObject<{
383
383
  type: "id" | "externalId";
384
384
  id?: string | undefined;
385
385
  };
386
- flow: string;
387
- intent: "schedule" | "reschedule" | "invite" | "edit" | "cancel" | "complete" | "decline";
388
- employees: {
389
- type: "id" | "externalId";
390
- ids: string[];
391
- };
392
386
  application: {
387
+ customerLocationSearch: "always" | "error";
393
388
  officeSearch: "required" | "optional";
389
+ recaptcha: "disable" | "enable";
394
390
  scroll: number | "disabled";
395
- customerLocationSearch: "always" | "error";
396
- timeZoneSelection: "enable" | "disable";
397
- recaptcha: "enable" | "disable";
391
+ timeZoneSelection: "disable" | "enable";
398
392
  theme?: string | undefined;
399
393
  };
400
394
  browser: {
401
395
  timeZone?: string | undefined;
402
396
  href?: string | undefined;
403
397
  };
398
+ employees: {
399
+ type: "id" | "externalId";
400
+ ids: string[];
401
+ };
402
+ flow: string;
403
+ intent: "schedule" | "reschedule" | "invite" | "edit" | "cancel" | "complete" | "decline";
404
404
  leadSegment: {
405
405
  type: "id" | "code";
406
406
  id?: string | undefined;
@@ -419,23 +419,23 @@ export declare const PluginConfigurationSchema: z.ZodDefault<z.ZodObject<{
419
419
  id?: string | undefined;
420
420
  sourceTags?: string[] | undefined;
421
421
  };
422
- subjects: {
422
+ subjectGroups: {
423
423
  type: "id" | "externalId";
424
424
  ids: string[];
425
425
  };
426
- subjectGroups: {
426
+ subjects: {
427
427
  type: "id" | "externalId";
428
428
  ids: string[];
429
429
  };
430
430
  timetable: {
431
+ meetingTypeSelector: "disable" | "enable";
431
432
  view: "week" | "month";
432
- meetingTypeSelector: "enable" | "disable";
433
433
  };
434
434
  language?: "da" | "de" | "el" | "en" | "es" | "fr" | "nl" | "no" | "en-US" | "en-GB" | "cimode" | undefined;
435
- version?: "1.0.0" | undefined;
436
435
  customer?: {
437
436
  id?: string | null | undefined;
438
437
  externalId?: string | null | undefined;
438
+ additionalCustomers?: string[] | undefined;
439
439
  company?: string | null | undefined;
440
440
  customerNumber?: string | null | undefined;
441
441
  email?: string | null | undefined;
@@ -452,21 +452,21 @@ export declare const PluginConfigurationSchema: z.ZodDefault<z.ZodObject<{
452
452
  longitude: number;
453
453
  } | null | undefined;
454
454
  postalCode?: string | null | undefined;
455
- timeZone?: string | null | undefined;
456
455
  state?: string | null | undefined;
457
456
  street1?: string | null | undefined;
458
457
  street2?: string | null | undefined;
458
+ timeZone?: string | null | undefined;
459
459
  } | null | undefined;
460
460
  phoneNumber?: string | null | undefined;
461
- additionalCustomers?: string[] | undefined;
462
461
  } | undefined;
463
462
  initialFormattedAddress?: string | undefined;
463
+ messageForCustomer?: string | undefined;
464
464
  questions?: Record<string, string | string[]> | undefined;
465
465
  subjectQuestions?: {
466
466
  externalId: string;
467
467
  value: string | string[];
468
468
  }[] | undefined;
469
- messageForCustomer?: string | undefined;
469
+ version?: "1.0.0" | undefined;
470
470
  }, {
471
471
  language?: string | undefined;
472
472
  location?: {
@@ -474,28 +474,21 @@ export declare const PluginConfigurationSchema: z.ZodDefault<z.ZodObject<{
474
474
  latitude: number;
475
475
  longitude: number;
476
476
  } | undefined;
477
- source?: "config" | "listing" | "user" | undefined;
478
477
  formattedAddress?: string | undefined;
479
478
  placeId?: string | undefined;
479
+ source?: "config" | "listing" | "user" | undefined;
480
480
  } | undefined;
481
481
  listing?: {
482
482
  id?: string | undefined;
483
483
  type?: "id" | "externalId" | undefined;
484
484
  } | undefined;
485
- version?: "1.0.0" | undefined;
486
- flow?: string | undefined;
487
- intent?: "schedule" | "reschedule" | "invite" | "edit" | "cancel" | "complete" | "decline" | undefined;
488
- employees?: {
489
- type?: "id" | "externalId" | undefined;
490
- ids?: string | string[] | null | undefined;
491
- } | undefined;
492
485
  application?: {
486
+ customerLocationSearch?: "always" | "error" | undefined;
493
487
  officeSearch?: "required" | "optional" | undefined;
488
+ recaptcha?: "disable" | "enable" | undefined;
494
489
  scroll?: number | "disabled" | undefined;
495
- customerLocationSearch?: "always" | "error" | undefined;
496
- timeZoneSelection?: "enable" | "disable" | undefined;
497
490
  theme?: string | undefined;
498
- recaptcha?: "enable" | "disable" | undefined;
491
+ timeZoneSelection?: "disable" | "enable" | undefined;
499
492
  } | undefined;
500
493
  browser?: {
501
494
  timeZone?: string | undefined;
@@ -504,6 +497,7 @@ export declare const PluginConfigurationSchema: z.ZodDefault<z.ZodObject<{
504
497
  customer?: {
505
498
  id?: string | null | undefined;
506
499
  externalId?: string | null | undefined;
500
+ additionalCustomers?: (string | null | undefined)[] | null | undefined;
507
501
  company?: string | null | undefined;
508
502
  customerNumber?: string | null | undefined;
509
503
  email?: string | null | undefined;
@@ -520,20 +514,26 @@ export declare const PluginConfigurationSchema: z.ZodDefault<z.ZodObject<{
520
514
  longitude: number;
521
515
  } | null | undefined;
522
516
  postalCode?: string | null | undefined;
523
- timeZone?: string | null | undefined;
524
517
  state?: string | null | undefined;
525
518
  street1?: string | null | undefined;
526
519
  street2?: string | null | undefined;
520
+ timeZone?: string | null | undefined;
527
521
  } | null | undefined;
528
522
  phoneNumber?: string | null | undefined;
529
- additionalCustomers?: (string | null | undefined)[] | null | undefined;
530
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
531
  leadSegment?: {
532
532
  id?: string | undefined;
533
533
  type?: "id" | "code" | undefined;
534
534
  } | undefined;
535
- initialFormattedAddress?: string | undefined;
536
535
  meetingTypes?: string | string[] | null | undefined;
536
+ messageForCustomer?: string | undefined;
537
537
  oauth?: {
538
538
  resourceCode?: string | undefined;
539
539
  } | undefined;
@@ -541,29 +541,29 @@ export declare const PluginConfigurationSchema: z.ZodDefault<z.ZodObject<{
541
541
  type?: "id" | "externalId" | undefined;
542
542
  ids?: string | string[] | null | undefined;
543
543
  } | undefined;
544
+ questions?: Record<string, string | string[]> | undefined;
544
545
  searchCountries?: string | string[] | null | undefined;
545
546
  session?: {
546
547
  id?: string | undefined;
547
548
  status?: "disabled" | "default" | undefined;
548
549
  sourceTags?: string | string[] | undefined;
549
550
  } | undefined;
550
- subjects?: {
551
+ subjectGroups?: {
551
552
  type?: "id" | "externalId" | undefined;
552
553
  ids?: string | string[] | null | undefined;
553
554
  } | undefined;
554
- subjectGroups?: {
555
+ subjectQuestions?: {
556
+ externalId: string;
557
+ value: string | string[];
558
+ }[] | undefined;
559
+ subjects?: {
555
560
  type?: "id" | "externalId" | undefined;
556
561
  ids?: string | string[] | null | undefined;
557
562
  } | undefined;
558
563
  timetable?: {
564
+ meetingTypeSelector?: "disable" | "enable" | undefined;
559
565
  view?: "week" | "month" | undefined;
560
- meetingTypeSelector?: "enable" | "disable" | undefined;
561
566
  } | undefined;
562
- questions?: Record<string, string | string[]> | undefined;
563
- subjectQuestions?: {
564
- externalId: string;
565
- value: string | string[];
566
- }[] | undefined;
567
- messageForCustomer?: string | undefined;
567
+ version?: "1.0.0" | undefined;
568
568
  }>>;
569
569
  //# sourceMappingURL=PluginConfiguration.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PluginConfiguration.schema.d.ts","sourceRoot":"","sources":["../../src/configuration/PluginConfiguration.schema.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