@ninetailed/experience.js-utils-contentful 4.2.3-beta.0 → 4.2.4
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/index.cjs +9 -18
- package/index.js +9 -18
- package/lib/AudienceMapper.d.ts +17 -17
- package/lib/ExperienceMapper.d.ts +16 -16
- package/package.json +6 -5
- package/types/AudienceEntry.d.ts +96 -124
- package/types/BaselineWithExperiencesEntry.d.ts +695 -695
- package/types/Entry.d.ts +1746 -1611
- package/types/ExperienceEntry.d.ts +9217 -7888
- package/types/ExperimentEntry.d.ts +4892 -4892
- package/types/fixtures/experienceEntryWithoutLinkType.d.ts +213 -0
package/types/AudienceEntry.d.ts
CHANGED
|
@@ -1,28 +1,19 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const AudienceEntryFields: z.ZodObject<
|
|
3
|
-
/**
|
|
4
|
-
* The name of the audience (Short Text)
|
|
5
|
-
*/
|
|
2
|
+
export declare const AudienceEntryFields: z.ZodObject<{
|
|
6
3
|
nt_name: z.ZodString;
|
|
7
|
-
/**
|
|
8
|
-
* The description of the audience (Short Text)
|
|
9
|
-
*/
|
|
10
4
|
nt_description: z.ZodOptional<z.ZodString>;
|
|
11
|
-
/**
|
|
12
|
-
* The internal id of the audience (Short Text)
|
|
13
|
-
*/
|
|
14
5
|
nt_audience_id: z.ZodString;
|
|
15
|
-
}
|
|
16
|
-
nt_description?: string | undefined;
|
|
6
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
17
7
|
nt_name: string;
|
|
18
8
|
nt_audience_id: string;
|
|
19
|
-
}, {
|
|
20
9
|
nt_description?: string | undefined;
|
|
10
|
+
}, {
|
|
21
11
|
nt_name: string;
|
|
22
12
|
nt_audience_id: string;
|
|
13
|
+
nt_description?: string | undefined;
|
|
23
14
|
}>;
|
|
24
15
|
export type AudienceEntryFields = z.infer<typeof AudienceEntryFields>;
|
|
25
|
-
export declare const AudienceEntry: z.ZodObject<
|
|
16
|
+
export declare const AudienceEntry: z.ZodObject<{
|
|
26
17
|
sys: z.ZodObject<{
|
|
27
18
|
type: z.ZodOptional<z.ZodString>;
|
|
28
19
|
id: z.ZodString;
|
|
@@ -31,93 +22,88 @@ export declare const AudienceEntry: z.ZodObject<z.extendShape<{
|
|
|
31
22
|
locale: z.ZodOptional<z.ZodString>;
|
|
32
23
|
revision: z.ZodOptional<z.ZodNumber>;
|
|
33
24
|
space: z.ZodOptional<z.ZodObject<{
|
|
34
|
-
sys: z.ZodObject<
|
|
35
|
-
type: z.ZodString
|
|
36
|
-
linkType: z.ZodString
|
|
25
|
+
sys: z.ZodObject<{
|
|
26
|
+
type: z.ZodOptional<z.ZodString>;
|
|
27
|
+
linkType: z.ZodOptional<z.ZodString>;
|
|
37
28
|
id: z.ZodString;
|
|
38
|
-
}, {
|
|
39
|
-
linkType: z.ZodString;
|
|
40
|
-
}>, "strip", z.ZodTypeAny, {
|
|
41
|
-
type: string;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
30
|
id: string;
|
|
43
|
-
|
|
31
|
+
type?: string | undefined;
|
|
32
|
+
linkType?: string | undefined;
|
|
44
33
|
}, {
|
|
45
|
-
type: string;
|
|
46
34
|
id: string;
|
|
47
|
-
|
|
35
|
+
type?: string | undefined;
|
|
36
|
+
linkType?: string | undefined;
|
|
48
37
|
}>;
|
|
49
38
|
}, "strip", z.ZodTypeAny, {
|
|
50
39
|
sys: {
|
|
51
|
-
type: string;
|
|
52
40
|
id: string;
|
|
53
|
-
|
|
41
|
+
type?: string | undefined;
|
|
42
|
+
linkType?: string | undefined;
|
|
54
43
|
};
|
|
55
44
|
}, {
|
|
56
45
|
sys: {
|
|
57
|
-
type: string;
|
|
58
46
|
id: string;
|
|
59
|
-
|
|
47
|
+
type?: string | undefined;
|
|
48
|
+
linkType?: string | undefined;
|
|
60
49
|
};
|
|
61
50
|
}>>;
|
|
62
51
|
environment: z.ZodOptional<z.ZodObject<{
|
|
63
|
-
sys: z.ZodObject<
|
|
64
|
-
type: z.ZodString
|
|
65
|
-
linkType: z.ZodString
|
|
52
|
+
sys: z.ZodObject<{
|
|
53
|
+
type: z.ZodOptional<z.ZodString>;
|
|
54
|
+
linkType: z.ZodOptional<z.ZodString>;
|
|
66
55
|
id: z.ZodString;
|
|
67
|
-
}, {
|
|
68
|
-
linkType: z.ZodString;
|
|
69
|
-
}>, "strip", z.ZodTypeAny, {
|
|
70
|
-
type: string;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
57
|
id: string;
|
|
72
|
-
|
|
58
|
+
type?: string | undefined;
|
|
59
|
+
linkType?: string | undefined;
|
|
73
60
|
}, {
|
|
74
|
-
type: string;
|
|
75
61
|
id: string;
|
|
76
|
-
|
|
62
|
+
type?: string | undefined;
|
|
63
|
+
linkType?: string | undefined;
|
|
77
64
|
}>;
|
|
78
65
|
}, "strip", z.ZodTypeAny, {
|
|
79
66
|
sys: {
|
|
80
|
-
type: string;
|
|
81
67
|
id: string;
|
|
82
|
-
|
|
68
|
+
type?: string | undefined;
|
|
69
|
+
linkType?: string | undefined;
|
|
83
70
|
};
|
|
84
71
|
}, {
|
|
85
72
|
sys: {
|
|
86
|
-
type: string;
|
|
87
73
|
id: string;
|
|
88
|
-
|
|
74
|
+
type?: string | undefined;
|
|
75
|
+
linkType?: string | undefined;
|
|
89
76
|
};
|
|
90
77
|
}>>;
|
|
91
78
|
contentType: z.ZodOptional<z.ZodObject<{
|
|
92
|
-
sys: z.ZodObject<
|
|
93
|
-
type: z.ZodString
|
|
94
|
-
linkType: z.ZodString
|
|
79
|
+
sys: z.ZodObject<{
|
|
80
|
+
type: z.ZodOptional<z.ZodString>;
|
|
81
|
+
linkType: z.ZodOptional<z.ZodString>;
|
|
95
82
|
id: z.ZodString;
|
|
96
|
-
}, {
|
|
97
|
-
linkType: z.ZodString;
|
|
98
|
-
}>, "strip", z.ZodTypeAny, {
|
|
99
|
-
type: string;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
84
|
id: string;
|
|
101
|
-
|
|
85
|
+
type?: string | undefined;
|
|
86
|
+
linkType?: string | undefined;
|
|
102
87
|
}, {
|
|
103
|
-
type: string;
|
|
104
88
|
id: string;
|
|
105
|
-
|
|
89
|
+
type?: string | undefined;
|
|
90
|
+
linkType?: string | undefined;
|
|
106
91
|
}>;
|
|
107
92
|
}, "strip", z.ZodTypeAny, {
|
|
108
93
|
sys: {
|
|
109
|
-
type: string;
|
|
110
94
|
id: string;
|
|
111
|
-
|
|
95
|
+
type?: string | undefined;
|
|
96
|
+
linkType?: string | undefined;
|
|
112
97
|
};
|
|
113
98
|
}, {
|
|
114
99
|
sys: {
|
|
115
|
-
type: string;
|
|
116
100
|
id: string;
|
|
117
|
-
|
|
101
|
+
type?: string | undefined;
|
|
102
|
+
linkType?: string | undefined;
|
|
118
103
|
};
|
|
119
104
|
}>>;
|
|
120
105
|
}, "strip", z.ZodTypeAny, {
|
|
106
|
+
id: string;
|
|
121
107
|
type?: string | undefined;
|
|
122
108
|
createdAt?: string | undefined;
|
|
123
109
|
updatedAt?: string | undefined;
|
|
@@ -125,27 +111,27 @@ export declare const AudienceEntry: z.ZodObject<z.extendShape<{
|
|
|
125
111
|
revision?: number | undefined;
|
|
126
112
|
space?: {
|
|
127
113
|
sys: {
|
|
128
|
-
type: string;
|
|
129
114
|
id: string;
|
|
130
|
-
|
|
115
|
+
type?: string | undefined;
|
|
116
|
+
linkType?: string | undefined;
|
|
131
117
|
};
|
|
132
118
|
} | undefined;
|
|
133
119
|
environment?: {
|
|
134
120
|
sys: {
|
|
135
|
-
type: string;
|
|
136
121
|
id: string;
|
|
137
|
-
|
|
122
|
+
type?: string | undefined;
|
|
123
|
+
linkType?: string | undefined;
|
|
138
124
|
};
|
|
139
125
|
} | undefined;
|
|
140
126
|
contentType?: {
|
|
141
127
|
sys: {
|
|
142
|
-
type: string;
|
|
143
128
|
id: string;
|
|
144
|
-
|
|
129
|
+
type?: string | undefined;
|
|
130
|
+
linkType?: string | undefined;
|
|
145
131
|
};
|
|
146
132
|
} | undefined;
|
|
147
|
-
id: string;
|
|
148
133
|
}, {
|
|
134
|
+
id: string;
|
|
149
135
|
type?: string | undefined;
|
|
150
136
|
createdAt?: string | undefined;
|
|
151
137
|
updatedAt?: string | undefined;
|
|
@@ -153,109 +139,87 @@ export declare const AudienceEntry: z.ZodObject<z.extendShape<{
|
|
|
153
139
|
revision?: number | undefined;
|
|
154
140
|
space?: {
|
|
155
141
|
sys: {
|
|
156
|
-
type: string;
|
|
157
142
|
id: string;
|
|
158
|
-
|
|
143
|
+
type?: string | undefined;
|
|
144
|
+
linkType?: string | undefined;
|
|
159
145
|
};
|
|
160
146
|
} | undefined;
|
|
161
147
|
environment?: {
|
|
162
148
|
sys: {
|
|
163
|
-
type: string;
|
|
164
149
|
id: string;
|
|
165
|
-
|
|
150
|
+
type?: string | undefined;
|
|
151
|
+
linkType?: string | undefined;
|
|
166
152
|
};
|
|
167
153
|
} | undefined;
|
|
168
154
|
contentType?: {
|
|
169
155
|
sys: {
|
|
170
|
-
type: string;
|
|
171
156
|
id: string;
|
|
172
|
-
|
|
157
|
+
type?: string | undefined;
|
|
158
|
+
linkType?: string | undefined;
|
|
173
159
|
};
|
|
174
160
|
} | undefined;
|
|
175
|
-
id: string;
|
|
176
161
|
}>;
|
|
177
|
-
fields: z.ZodObject<{}, "passthrough", z.ZodTypeAny, {}, {}>;
|
|
178
162
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
179
163
|
tags: z.ZodArray<z.ZodObject<{
|
|
180
|
-
sys: z.ZodObject<
|
|
181
|
-
type: z.ZodString
|
|
182
|
-
linkType: z.ZodString;
|
|
164
|
+
sys: z.ZodObject<{
|
|
165
|
+
type: z.ZodOptional<z.ZodString>;
|
|
183
166
|
id: z.ZodString;
|
|
184
|
-
}, {
|
|
185
167
|
linkType: z.ZodString;
|
|
186
|
-
}
|
|
187
|
-
type: string;
|
|
168
|
+
}, "strip", z.ZodTypeAny, {
|
|
188
169
|
id: string;
|
|
189
170
|
linkType: string;
|
|
171
|
+
type?: string | undefined;
|
|
190
172
|
}, {
|
|
191
|
-
type: string;
|
|
192
173
|
id: string;
|
|
193
174
|
linkType: string;
|
|
175
|
+
type?: string | undefined;
|
|
194
176
|
}>;
|
|
195
177
|
}, "strip", z.ZodTypeAny, {
|
|
196
178
|
sys: {
|
|
197
|
-
type: string;
|
|
198
179
|
id: string;
|
|
199
180
|
linkType: string;
|
|
181
|
+
type?: string | undefined;
|
|
200
182
|
};
|
|
201
183
|
}, {
|
|
202
184
|
sys: {
|
|
203
|
-
type: string;
|
|
204
185
|
id: string;
|
|
205
186
|
linkType: string;
|
|
187
|
+
type?: string | undefined;
|
|
206
188
|
};
|
|
207
189
|
}>, "many">;
|
|
208
190
|
}, "strip", z.ZodTypeAny, {
|
|
209
191
|
tags: {
|
|
210
192
|
sys: {
|
|
211
|
-
type: string;
|
|
212
193
|
id: string;
|
|
213
194
|
linkType: string;
|
|
195
|
+
type?: string | undefined;
|
|
214
196
|
};
|
|
215
197
|
}[];
|
|
216
198
|
}, {
|
|
217
199
|
tags: {
|
|
218
200
|
sys: {
|
|
219
|
-
type: string;
|
|
220
201
|
id: string;
|
|
221
202
|
linkType: string;
|
|
203
|
+
type?: string | undefined;
|
|
222
204
|
};
|
|
223
205
|
}[];
|
|
224
206
|
}>>;
|
|
225
|
-
|
|
226
|
-
fields: z.ZodObject<z.extendShape<{}, {
|
|
227
|
-
/**
|
|
228
|
-
* The name of the audience (Short Text)
|
|
229
|
-
*/
|
|
207
|
+
fields: z.ZodObject<{
|
|
230
208
|
nt_name: z.ZodString;
|
|
231
|
-
/**
|
|
232
|
-
* The description of the audience (Short Text)
|
|
233
|
-
*/
|
|
234
209
|
nt_description: z.ZodOptional<z.ZodString>;
|
|
235
|
-
/**
|
|
236
|
-
* The internal id of the audience (Short Text)
|
|
237
|
-
*/
|
|
238
210
|
nt_audience_id: z.ZodString;
|
|
239
|
-
}
|
|
240
|
-
nt_description?: string | undefined;
|
|
211
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
241
212
|
nt_name: string;
|
|
242
213
|
nt_audience_id: string;
|
|
243
|
-
}, {
|
|
244
214
|
nt_description?: string | undefined;
|
|
215
|
+
}, {
|
|
245
216
|
nt_name: string;
|
|
246
217
|
nt_audience_id: string;
|
|
218
|
+
nt_description?: string | undefined;
|
|
247
219
|
}>;
|
|
248
|
-
}
|
|
249
|
-
metadata?: {
|
|
250
|
-
tags: {
|
|
251
|
-
sys: {
|
|
252
|
-
type: string;
|
|
253
|
-
id: string;
|
|
254
|
-
linkType: string;
|
|
255
|
-
};
|
|
256
|
-
}[];
|
|
257
|
-
} | undefined;
|
|
220
|
+
}, "strip", z.ZodTypeAny, {
|
|
258
221
|
sys: {
|
|
222
|
+
id: string;
|
|
259
223
|
type?: string | undefined;
|
|
260
224
|
createdAt?: string | undefined;
|
|
261
225
|
updatedAt?: string | undefined;
|
|
@@ -263,43 +227,43 @@ export declare const AudienceEntry: z.ZodObject<z.extendShape<{
|
|
|
263
227
|
revision?: number | undefined;
|
|
264
228
|
space?: {
|
|
265
229
|
sys: {
|
|
266
|
-
type: string;
|
|
267
230
|
id: string;
|
|
268
|
-
|
|
231
|
+
type?: string | undefined;
|
|
232
|
+
linkType?: string | undefined;
|
|
269
233
|
};
|
|
270
234
|
} | undefined;
|
|
271
235
|
environment?: {
|
|
272
236
|
sys: {
|
|
273
|
-
type: string;
|
|
274
237
|
id: string;
|
|
275
|
-
|
|
238
|
+
type?: string | undefined;
|
|
239
|
+
linkType?: string | undefined;
|
|
276
240
|
};
|
|
277
241
|
} | undefined;
|
|
278
242
|
contentType?: {
|
|
279
243
|
sys: {
|
|
280
|
-
type: string;
|
|
281
244
|
id: string;
|
|
282
|
-
|
|
245
|
+
type?: string | undefined;
|
|
246
|
+
linkType?: string | undefined;
|
|
283
247
|
};
|
|
284
248
|
} | undefined;
|
|
285
|
-
id: string;
|
|
286
249
|
};
|
|
287
250
|
fields: {
|
|
288
|
-
nt_description?: string | undefined;
|
|
289
251
|
nt_name: string;
|
|
290
252
|
nt_audience_id: string;
|
|
253
|
+
nt_description?: string | undefined;
|
|
291
254
|
};
|
|
292
|
-
}, {
|
|
293
255
|
metadata?: {
|
|
294
256
|
tags: {
|
|
295
257
|
sys: {
|
|
296
|
-
type: string;
|
|
297
258
|
id: string;
|
|
298
259
|
linkType: string;
|
|
260
|
+
type?: string | undefined;
|
|
299
261
|
};
|
|
300
262
|
}[];
|
|
301
263
|
} | undefined;
|
|
264
|
+
}, {
|
|
302
265
|
sys: {
|
|
266
|
+
id: string;
|
|
303
267
|
type?: string | undefined;
|
|
304
268
|
createdAt?: string | undefined;
|
|
305
269
|
updatedAt?: string | undefined;
|
|
@@ -307,32 +271,40 @@ export declare const AudienceEntry: z.ZodObject<z.extendShape<{
|
|
|
307
271
|
revision?: number | undefined;
|
|
308
272
|
space?: {
|
|
309
273
|
sys: {
|
|
310
|
-
type: string;
|
|
311
274
|
id: string;
|
|
312
|
-
|
|
275
|
+
type?: string | undefined;
|
|
276
|
+
linkType?: string | undefined;
|
|
313
277
|
};
|
|
314
278
|
} | undefined;
|
|
315
279
|
environment?: {
|
|
316
280
|
sys: {
|
|
317
|
-
type: string;
|
|
318
281
|
id: string;
|
|
319
|
-
|
|
282
|
+
type?: string | undefined;
|
|
283
|
+
linkType?: string | undefined;
|
|
320
284
|
};
|
|
321
285
|
} | undefined;
|
|
322
286
|
contentType?: {
|
|
323
287
|
sys: {
|
|
324
|
-
type: string;
|
|
325
288
|
id: string;
|
|
326
|
-
|
|
289
|
+
type?: string | undefined;
|
|
290
|
+
linkType?: string | undefined;
|
|
327
291
|
};
|
|
328
292
|
} | undefined;
|
|
329
|
-
id: string;
|
|
330
293
|
};
|
|
331
294
|
fields: {
|
|
332
|
-
nt_description?: string | undefined;
|
|
333
295
|
nt_name: string;
|
|
334
296
|
nt_audience_id: string;
|
|
297
|
+
nt_description?: string | undefined;
|
|
335
298
|
};
|
|
299
|
+
metadata?: {
|
|
300
|
+
tags: {
|
|
301
|
+
sys: {
|
|
302
|
+
id: string;
|
|
303
|
+
linkType: string;
|
|
304
|
+
type?: string | undefined;
|
|
305
|
+
};
|
|
306
|
+
}[];
|
|
307
|
+
} | undefined;
|
|
336
308
|
}>;
|
|
337
309
|
export type AudienceEntryLike = z.input<typeof AudienceEntry>;
|
|
338
310
|
export type AudienceEntry = z.infer<typeof AudienceEntry>;
|