@joeygrable94/utm-src-pub-validators 0.0.46 → 0.0.47
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/dist/index.cjs +823 -830
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -16
- package/dist/index.d.ts +16 -16
- package/dist/index.js +822 -829
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as v44 from 'valibot';
|
|
2
2
|
|
|
3
3
|
// src/actions/group-user.crud.ts
|
|
4
4
|
|
|
@@ -161,468 +161,468 @@ var LIMIT_MIN_UTM_TERM = 1;
|
|
|
161
161
|
var LIMIT_MAX_UTM_TERM = 2028;
|
|
162
162
|
var LIMIT_MIN_UTM_ID = 1;
|
|
163
163
|
var LIMIT_MAX_UTM_ID = 2030;
|
|
164
|
-
var IsValidReferenceId =
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
var IsValidReferenceId = v44.pipe(
|
|
165
|
+
v44.number("please provide a valid id"),
|
|
166
|
+
v44.minValue(0, "please provide a valid id")
|
|
167
167
|
);
|
|
168
|
-
var IsValidReferenceDocumentId =
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
168
|
+
var IsValidReferenceDocumentId = v44.pipe(
|
|
169
|
+
v44.string("please provide a valid document id"),
|
|
170
|
+
v44.minLength(1),
|
|
171
|
+
v44.maxLength(255)
|
|
172
172
|
);
|
|
173
|
-
var IsValidMinPage =
|
|
174
|
-
|
|
173
|
+
var IsValidMinPage = v44.fallback(
|
|
174
|
+
v44.optional(v44.pipe(v44.number(), v44.minValue(1)), 1),
|
|
175
175
|
1
|
|
176
176
|
);
|
|
177
|
-
var IsValidCost =
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
177
|
+
var IsValidCost = v44.pipe(
|
|
178
|
+
v44.number("please enter a cost value"),
|
|
179
|
+
v44.minValue(0),
|
|
180
|
+
v44.maxValue(
|
|
181
181
|
1e6,
|
|
182
182
|
"your campaign cost exceeds our $1 million dollar limit, please contact us for enterprise solutions"
|
|
183
183
|
)
|
|
184
184
|
);
|
|
185
|
-
var IsValidOrUndefinedCost =
|
|
186
|
-
var IsValidLabel =
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
185
|
+
var IsValidOrUndefinedCost = v44.undefinedable(IsValidCost);
|
|
186
|
+
var IsValidLabel = v44.pipe(
|
|
187
|
+
v44.string("please provide a label"),
|
|
188
|
+
v44.trim(),
|
|
189
|
+
v44.minLength(
|
|
190
190
|
LIMIT_MIN_LABEL,
|
|
191
191
|
`the label is too short, it must be at least ${LIMIT_MIN_LABEL} characters`
|
|
192
192
|
),
|
|
193
|
-
|
|
193
|
+
v44.maxLength(
|
|
194
194
|
LIMIT_MAX_LABEL,
|
|
195
195
|
`the label is too long, it must be ${LIMIT_MAX_LABEL} characters or less`
|
|
196
196
|
)
|
|
197
197
|
);
|
|
198
|
-
var IsValidOrUndefinedLabel =
|
|
199
|
-
var IsValidValue =
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
198
|
+
var IsValidOrUndefinedLabel = v44.undefinedable(IsValidLabel);
|
|
199
|
+
var IsValidValue = v44.pipe(
|
|
200
|
+
v44.string("please provide a value"),
|
|
201
|
+
v44.trim(),
|
|
202
|
+
v44.minLength(
|
|
203
203
|
LIMIT_MIN_VALUE,
|
|
204
204
|
`the value is too short, it must be at least ${LIMIT_MIN_VALUE} characters`
|
|
205
205
|
),
|
|
206
|
-
|
|
206
|
+
v44.maxLength(
|
|
207
207
|
LIMIT_MAX_VALUE,
|
|
208
208
|
`the value is too long, it must be ${LIMIT_MAX_VALUE} characters or less`
|
|
209
209
|
),
|
|
210
|
-
|
|
210
|
+
v44.regex(REGEX_VALUE, `the value ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
211
211
|
);
|
|
212
|
-
var IsValidOrUndefinedValue =
|
|
213
|
-
var IsValidDescription =
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
212
|
+
var IsValidOrUndefinedValue = v44.undefinedable(IsValidValue);
|
|
213
|
+
var IsValidDescription = v44.nullable(
|
|
214
|
+
v44.pipe(
|
|
215
|
+
v44.string("the description must be a string"),
|
|
216
|
+
v44.trim(),
|
|
217
|
+
v44.maxLength(
|
|
218
218
|
LIMIT_MAX_DESCRIPTION,
|
|
219
219
|
`the description is too long, it must be ${LIMIT_MAX_DESCRIPTION} characters or less`
|
|
220
220
|
)
|
|
221
221
|
)
|
|
222
222
|
);
|
|
223
|
-
var IsValidOrUndefinedDescription =
|
|
224
|
-
var IsValidIsActive =
|
|
225
|
-
var IsValidOrUndefinedIsActive =
|
|
226
|
-
var IsValidIsSecure =
|
|
227
|
-
var IsValidOrUndefinedIsSecure =
|
|
228
|
-
var IsValidName =
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
223
|
+
var IsValidOrUndefinedDescription = v44.undefinedable(IsValidDescription);
|
|
224
|
+
var IsValidIsActive = v44.boolean("isActive must be a boolean");
|
|
225
|
+
var IsValidOrUndefinedIsActive = v44.undefinedable(IsValidIsActive);
|
|
226
|
+
var IsValidIsSecure = v44.boolean("isSecure must be a boolean");
|
|
227
|
+
var IsValidOrUndefinedIsSecure = v44.undefinedable(IsValidIsSecure);
|
|
228
|
+
var IsValidName = v44.pipe(
|
|
229
|
+
v44.string("please provide a name"),
|
|
230
|
+
v44.trim(),
|
|
231
|
+
v44.minLength(
|
|
232
232
|
LIMIT_MIN_NAME,
|
|
233
233
|
`the name is too short, it must be at least ${LIMIT_MIN_NAME} characters`
|
|
234
234
|
),
|
|
235
|
-
|
|
235
|
+
v44.maxLength(
|
|
236
236
|
LIMIT_MAX_NAME,
|
|
237
237
|
`the name is too long, it must be ${LIMIT_MAX_NAME} characters or less`
|
|
238
238
|
)
|
|
239
239
|
);
|
|
240
|
-
var IsValidOrUndefinedName =
|
|
241
|
-
var IsValidGroupUserScopes =
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
240
|
+
var IsValidOrUndefinedName = v44.undefinedable(IsValidName);
|
|
241
|
+
var IsValidGroupUserScopes = v44.pipe(
|
|
242
|
+
v44.array(
|
|
243
|
+
v44.pipe(
|
|
244
|
+
v44.string("please provide a valid scope"),
|
|
245
|
+
v44.picklist(GROUP_ENTITY_SCOPES, "invalid group scope provided")
|
|
246
246
|
),
|
|
247
247
|
"please provide an array of scopes"
|
|
248
248
|
),
|
|
249
|
-
|
|
250
|
-
|
|
249
|
+
v44.minLength(1, "you must provide at least one scope"),
|
|
250
|
+
v44.maxLength(
|
|
251
251
|
GROUP_ENTITY_SCOPES.length,
|
|
252
252
|
"you cannot provide more scopes than available"
|
|
253
253
|
)
|
|
254
254
|
);
|
|
255
|
-
var IsValidApplyValueTo =
|
|
256
|
-
var IsValidOrUndefinedApplyValueTo =
|
|
257
|
-
var IsValidApplyValueAs =
|
|
258
|
-
var IsValidOrUndefinedApplyValueAs =
|
|
259
|
-
var IsValidProductId =
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
255
|
+
var IsValidApplyValueTo = v44.picklist(GroupApplyValueToOptions);
|
|
256
|
+
var IsValidOrUndefinedApplyValueTo = v44.undefinedable(IsValidApplyValueTo);
|
|
257
|
+
var IsValidApplyValueAs = v44.picklist(GroupApplyValueAsOptions);
|
|
258
|
+
var IsValidOrUndefinedApplyValueAs = v44.undefinedable(IsValidApplyValueAs);
|
|
259
|
+
var IsValidProductId = v44.pipe(
|
|
260
|
+
v44.string("please provide a product_id"),
|
|
261
|
+
v44.trim(),
|
|
262
|
+
v44.minLength(
|
|
263
263
|
LIMIT_MIN_PRODUCT_ID,
|
|
264
264
|
`the product_id is too short, it must be at least ${LIMIT_MIN_PRODUCT_ID} characters`
|
|
265
265
|
),
|
|
266
|
-
|
|
266
|
+
v44.maxLength(
|
|
267
267
|
LIMIT_MAX_PRODUCT_ID,
|
|
268
268
|
`the product_id is too long, it must be ${LIMIT_MAX_PRODUCT_ID} characters or less`
|
|
269
269
|
)
|
|
270
270
|
);
|
|
271
|
-
var IsValidOrUndefinedProductId =
|
|
272
|
-
var IsValidPriceId =
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
271
|
+
var IsValidOrUndefinedProductId = v44.undefinedable(IsValidProductId);
|
|
272
|
+
var IsValidPriceId = v44.pipe(
|
|
273
|
+
v44.string("please provide a price_id"),
|
|
274
|
+
v44.trim(),
|
|
275
|
+
v44.minLength(
|
|
276
276
|
LIMIT_MIN_PRICE_ID,
|
|
277
277
|
`the price_id is too short, it must be at least ${LIMIT_MIN_PRICE_ID} characters`
|
|
278
278
|
),
|
|
279
|
-
|
|
279
|
+
v44.maxLength(
|
|
280
280
|
LIMIT_MAX_PRICE_ID,
|
|
281
281
|
`the price_id is too long, it must be ${LIMIT_MAX_PRICE_ID} characters or less`
|
|
282
282
|
)
|
|
283
283
|
);
|
|
284
|
-
var IsValidOrUndefinedPriceId =
|
|
285
|
-
var IsValidUnitAmount =
|
|
286
|
-
|
|
287
|
-
|
|
284
|
+
var IsValidOrUndefinedPriceId = v44.undefinedable(IsValidPriceId);
|
|
285
|
+
var IsValidUnitAmount = v44.pipe(
|
|
286
|
+
v44.number("please provide a unit_amount"),
|
|
287
|
+
v44.minValue(
|
|
288
288
|
LIMIT_MIN_UNIT_AMOUNT,
|
|
289
289
|
`the unit_amount must be a decimal greater than or equal to ${LIMIT_MIN_UNIT_AMOUNT}`
|
|
290
290
|
)
|
|
291
291
|
);
|
|
292
|
-
var IsValidOrUndefinedUnitAmount =
|
|
293
|
-
var IsValidUnitTermInMonths =
|
|
294
|
-
|
|
295
|
-
|
|
292
|
+
var IsValidOrUndefinedUnitAmount = v44.undefinedable(IsValidUnitAmount);
|
|
293
|
+
var IsValidUnitTermInMonths = v44.pipe(
|
|
294
|
+
v44.number("please provide a unit_term_in_months"),
|
|
295
|
+
v44.minValue(
|
|
296
296
|
LIMIT_MIN_UNIT_TERM_IN_MONTHS,
|
|
297
297
|
`the unit_term_in_months must be an integer greater than or equal to ${LIMIT_MIN_UNIT_TERM_IN_MONTHS}`
|
|
298
298
|
),
|
|
299
|
-
|
|
299
|
+
v44.maxValue(
|
|
300
300
|
LIMIT_MAX_UNIT_TERM_IN_MONTHS,
|
|
301
301
|
`the unit_term_in_months must be an integer less than or equal to ${LIMIT_MAX_UNIT_TERM_IN_MONTHS}`
|
|
302
302
|
)
|
|
303
303
|
);
|
|
304
|
-
var IsValidOrUndefinedUnitTermInMonths =
|
|
304
|
+
var IsValidOrUndefinedUnitTermInMonths = v44.undefinedable(
|
|
305
305
|
IsValidUnitTermInMonths
|
|
306
306
|
);
|
|
307
|
-
var IsValidUrlDestination =
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
307
|
+
var IsValidUrlDestination = v44.pipe(
|
|
308
|
+
v44.string("please provide a url destination"),
|
|
309
|
+
v44.trim(),
|
|
310
|
+
v44.minLength(
|
|
311
311
|
LIMIT_MIN_DESTINATION,
|
|
312
312
|
`the url destination is too short, it must be at least ${LIMIT_MIN_DESTINATION} characters`
|
|
313
313
|
),
|
|
314
|
-
|
|
314
|
+
v44.maxLength(
|
|
315
315
|
LIMIT_MAX_DESTINATION,
|
|
316
316
|
`the url destination is too long, it must be ${LIMIT_MAX_DESTINATION} characters or less`
|
|
317
317
|
),
|
|
318
|
-
|
|
318
|
+
v44.url("please provide a valid url")
|
|
319
319
|
);
|
|
320
|
-
var IsValidOrUndefinedUrlDestination =
|
|
321
|
-
var IsValidUrlProtocol =
|
|
322
|
-
|
|
323
|
-
|
|
320
|
+
var IsValidOrUndefinedUrlDestination = v44.undefinedable(IsValidUrlDestination);
|
|
321
|
+
var IsValidUrlProtocol = v44.pipe(
|
|
322
|
+
v44.string(),
|
|
323
|
+
v44.picklist(UrlProtocolOptions, "please provide a valid url protocol")
|
|
324
324
|
);
|
|
325
|
-
var IsValidOrUndefinedUrlProtocol =
|
|
326
|
-
var IsValidUrlDomain =
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
325
|
+
var IsValidOrUndefinedUrlProtocol = v44.undefinedable(IsValidUrlProtocol);
|
|
326
|
+
var IsValidUrlDomain = v44.pipe(
|
|
327
|
+
v44.string("please provide a domain"),
|
|
328
|
+
v44.trim(),
|
|
329
|
+
v44.minLength(
|
|
330
330
|
LIMIT_MIN_DOMAIN,
|
|
331
331
|
`the domain is too short, it must be at least ${LIMIT_MIN_DOMAIN} characters`
|
|
332
332
|
),
|
|
333
|
-
|
|
333
|
+
v44.maxLength(
|
|
334
334
|
LIMIT_MAX_DOMAIN,
|
|
335
335
|
`the domain is too long, it must be ${LIMIT_MAX_DOMAIN} characters or less`
|
|
336
336
|
),
|
|
337
|
-
|
|
337
|
+
v44.regex(REGEX_DOMAIN, ERROR_MESSAGE_REGEX_DOMAIN)
|
|
338
338
|
);
|
|
339
|
-
var IsValidOrUndefinedUrlDomain =
|
|
340
|
-
var IsValidUrlPath =
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
339
|
+
var IsValidOrUndefinedUrlDomain = v44.undefinedable(IsValidUrlDomain);
|
|
340
|
+
var IsValidUrlPath = v44.pipe(
|
|
341
|
+
v44.string("please provide a url path"),
|
|
342
|
+
v44.trim(),
|
|
343
|
+
v44.minLength(
|
|
344
344
|
LIMIT_MIN_PATH,
|
|
345
345
|
`the url path is too short, it must be at least ${LIMIT_MIN_PATH} characters`
|
|
346
346
|
),
|
|
347
|
-
|
|
347
|
+
v44.maxLength(
|
|
348
348
|
LIMIT_MAX_PATH,
|
|
349
349
|
`the url path is too long, it must be ${LIMIT_MAX_PATH} characters or less`
|
|
350
350
|
)
|
|
351
351
|
);
|
|
352
|
-
var IsValidOrUndefinedUrlPath =
|
|
353
|
-
var IsValidUrlQuery =
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
352
|
+
var IsValidOrUndefinedUrlPath = v44.undefinedable(IsValidUrlPath);
|
|
353
|
+
var IsValidUrlQuery = v44.pipe(
|
|
354
|
+
v44.string("please provide a url query"),
|
|
355
|
+
v44.trim(),
|
|
356
|
+
v44.minLength(
|
|
357
357
|
LIMIT_MIN_QUERY,
|
|
358
358
|
`the url query is too short, it must be at least ${LIMIT_MIN_QUERY} characters`
|
|
359
359
|
),
|
|
360
|
-
|
|
360
|
+
v44.maxLength(
|
|
361
361
|
LIMIT_MAX_QUERY,
|
|
362
362
|
`the url query is too long, it must be ${LIMIT_MAX_QUERY} characters or less`
|
|
363
363
|
)
|
|
364
364
|
);
|
|
365
|
-
var IsValidOrUndefinedUrlQuery =
|
|
366
|
-
var IsValidUrlFragment =
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
365
|
+
var IsValidOrUndefinedUrlQuery = v44.undefinedable(IsValidUrlQuery);
|
|
366
|
+
var IsValidUrlFragment = v44.pipe(
|
|
367
|
+
v44.string("please provide a url hash/fragment"),
|
|
368
|
+
v44.trim(),
|
|
369
|
+
v44.minLength(
|
|
370
370
|
LIMIT_MIN_FRAGMENT,
|
|
371
371
|
`the url hash/fragment is too short, it must be at least ${LIMIT_MIN_FRAGMENT} characters`
|
|
372
372
|
),
|
|
373
|
-
|
|
373
|
+
v44.maxLength(
|
|
374
374
|
LIMIT_MAX_FRAGMENT,
|
|
375
375
|
`the url hash/fragment is too long, it must be ${LIMIT_MAX_FRAGMENT} characters or less`
|
|
376
376
|
)
|
|
377
377
|
);
|
|
378
|
-
var IsValidOrUndefinedUrlFragment =
|
|
379
|
-
var IsValidCustomerId =
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
378
|
+
var IsValidOrUndefinedUrlFragment = v44.undefinedable(IsValidUrlFragment);
|
|
379
|
+
var IsValidCustomerId = v44.pipe(
|
|
380
|
+
v44.string("please provide a customer ID"),
|
|
381
|
+
v44.trim(),
|
|
382
|
+
v44.maxLength(
|
|
383
383
|
LIMIT_MAX_STRIPE_ID,
|
|
384
384
|
`the customer ID is too long, it must be ${LIMIT_MAX_STRIPE_ID} characters or less`
|
|
385
385
|
)
|
|
386
386
|
);
|
|
387
|
-
var IsValidOrUndefinedCustomerId =
|
|
388
|
-
var IsValidSubscriptionId =
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
387
|
+
var IsValidOrUndefinedCustomerId = v44.undefinedable(IsValidCustomerId);
|
|
388
|
+
var IsValidSubscriptionId = v44.pipe(
|
|
389
|
+
v44.string("please provide a subscription ID"),
|
|
390
|
+
v44.trim(),
|
|
391
|
+
v44.maxLength(
|
|
392
392
|
LIMIT_MAX_STRIPE_ID,
|
|
393
393
|
`the subscription ID is too long, it must be ${LIMIT_MAX_STRIPE_ID} characters or less`
|
|
394
394
|
)
|
|
395
395
|
);
|
|
396
|
-
var IsValidOrUndefinedSubscriptionId =
|
|
397
|
-
var IsValidSubscriptionStatus =
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
396
|
+
var IsValidOrUndefinedSubscriptionId = v44.undefinedable(IsValidSubscriptionId);
|
|
397
|
+
var IsValidSubscriptionStatus = v44.pipe(
|
|
398
|
+
v44.string("please provide a subscription status"),
|
|
399
|
+
v44.trim(),
|
|
400
|
+
v44.picklist(SubscriptionStatusValues)
|
|
401
401
|
);
|
|
402
|
-
var IsValidOrUndefinedSubscriptionStatus =
|
|
402
|
+
var IsValidOrUndefinedSubscriptionStatus = v44.undefinedable(
|
|
403
403
|
IsValidSubscriptionStatus
|
|
404
404
|
);
|
|
405
|
-
var IsValidCurrentPeriodStart =
|
|
406
|
-
var IsValidOrUndefinedCurrentPeriodStart =
|
|
405
|
+
var IsValidCurrentPeriodStart = v44.nullable(v44.date());
|
|
406
|
+
var IsValidOrUndefinedCurrentPeriodStart = v44.undefinedable(
|
|
407
407
|
IsValidCurrentPeriodStart
|
|
408
408
|
);
|
|
409
|
-
var IsValidCurrentPeriodEnd =
|
|
410
|
-
var IsValidOrUndefinedCurrentPeriodEnd =
|
|
409
|
+
var IsValidCurrentPeriodEnd = v44.nullable(v44.date());
|
|
410
|
+
var IsValidOrUndefinedCurrentPeriodEnd = v44.undefinedable(
|
|
411
411
|
IsValidCurrentPeriodEnd
|
|
412
412
|
);
|
|
413
|
-
var IsValidTrialPeriodEnd =
|
|
414
|
-
var IsValidOrUndefinedTrialPeriodEnd =
|
|
415
|
-
var IsValidUsername =
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
413
|
+
var IsValidTrialPeriodEnd = v44.date();
|
|
414
|
+
var IsValidOrUndefinedTrialPeriodEnd = v44.undefinedable(IsValidTrialPeriodEnd);
|
|
415
|
+
var IsValidUsername = v44.pipe(
|
|
416
|
+
v44.string("please provide a username"),
|
|
417
|
+
v44.trim(),
|
|
418
|
+
v44.minLength(
|
|
419
419
|
LIMIT_MIN_USERNAME,
|
|
420
420
|
`your username is too short, it must be at least ${LIMIT_MIN_USERNAME} characters`
|
|
421
421
|
),
|
|
422
|
-
|
|
422
|
+
v44.maxLength(
|
|
423
423
|
LIMIT_MAX_USERNAME,
|
|
424
424
|
`your username is too long, it must be ${LIMIT_MAX_USERNAME} characters or less`
|
|
425
425
|
),
|
|
426
|
-
|
|
426
|
+
v44.regex(REGEX_VALUE, `your username ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
427
427
|
);
|
|
428
|
-
var IsValidOrUndefinedUsername =
|
|
429
|
-
var IsValidEmail =
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
428
|
+
var IsValidOrUndefinedUsername = v44.undefinedable(IsValidUsername);
|
|
429
|
+
var IsValidEmail = v44.pipe(
|
|
430
|
+
v44.string("please provide an email"),
|
|
431
|
+
v44.trim(),
|
|
432
|
+
v44.minLength(
|
|
433
433
|
LIMIT_MIN_EMAIL,
|
|
434
434
|
`your email is too short, it must be at least ${LIMIT_MIN_EMAIL} characters`
|
|
435
435
|
),
|
|
436
|
-
|
|
436
|
+
v44.maxLength(
|
|
437
437
|
LIMIT_MAX_EMAIL,
|
|
438
438
|
`your email is too long, it must be ${LIMIT_MAX_EMAIL} characters or less`
|
|
439
439
|
),
|
|
440
|
-
|
|
440
|
+
v44.email("please provide a valid email address")
|
|
441
441
|
);
|
|
442
|
-
var IsValidOrUndefinedEmail =
|
|
443
|
-
var IsValidPassword =
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
442
|
+
var IsValidOrUndefinedEmail = v44.undefinedable(IsValidEmail);
|
|
443
|
+
var IsValidPassword = v44.pipe(
|
|
444
|
+
v44.string("a password is required"),
|
|
445
|
+
v44.trim(),
|
|
446
|
+
v44.minLength(
|
|
447
447
|
LIMIT_MIN_PASSWORD,
|
|
448
448
|
`your password is too short, it must be at least ${LIMIT_MIN_PASSWORD} characters`
|
|
449
449
|
),
|
|
450
|
-
|
|
450
|
+
v44.maxLength(
|
|
451
451
|
LIMIT_MAX_PASSWORD,
|
|
452
452
|
`your password is too long, it must be ${LIMIT_MAX_PASSWORD} characters or less`
|
|
453
453
|
)
|
|
454
454
|
);
|
|
455
|
-
var IsValidOrUndefinedPassword =
|
|
456
|
-
var IsValidProvider =
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
455
|
+
var IsValidOrUndefinedPassword = v44.undefinedable(IsValidPassword);
|
|
456
|
+
var IsValidProvider = v44.pipe(
|
|
457
|
+
v44.string("please enter a provider"),
|
|
458
|
+
v44.trim(),
|
|
459
|
+
v44.maxLength(
|
|
460
460
|
LIMIT_MAX_PROVIDER,
|
|
461
461
|
`the provider string is too long, it must be ${LIMIT_MAX_PROVIDER} characters or less`
|
|
462
462
|
)
|
|
463
463
|
);
|
|
464
|
-
var IsValidOrUndefinedProvider =
|
|
465
|
-
var IsValidConfirmed =
|
|
466
|
-
var IsValidOrUndefinedConfirmed =
|
|
467
|
-
var IsValidBlocked =
|
|
468
|
-
var IsValidOrUndefinedBlocked =
|
|
469
|
-
var IsValidUrlUtmSource =
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
464
|
+
var IsValidOrUndefinedProvider = v44.undefinedable(IsValidProvider);
|
|
465
|
+
var IsValidConfirmed = v44.boolean();
|
|
466
|
+
var IsValidOrUndefinedConfirmed = v44.undefinedable(IsValidConfirmed);
|
|
467
|
+
var IsValidBlocked = v44.boolean();
|
|
468
|
+
var IsValidOrUndefinedBlocked = v44.undefinedable(IsValidBlocked);
|
|
469
|
+
var IsValidUrlUtmSource = v44.pipe(
|
|
470
|
+
v44.string(),
|
|
471
|
+
v44.trim(),
|
|
472
|
+
v44.minLength(
|
|
473
473
|
LIMIT_MIN_UTM_SOURCE,
|
|
474
474
|
`the utm_source is too short, it must be at least ${LIMIT_MIN_UTM_SOURCE} characters`
|
|
475
475
|
),
|
|
476
|
-
|
|
476
|
+
v44.maxLength(
|
|
477
477
|
LIMIT_MAX_UTM_SOURCE,
|
|
478
478
|
`the utm_source is too long, it must be ${LIMIT_MAX_UTM_SOURCE} characters or less`
|
|
479
479
|
),
|
|
480
|
-
|
|
480
|
+
v44.regex(REGEX_VALUE, `utm_source ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
481
481
|
);
|
|
482
|
-
var IsValidOrUndefinedUrlUtmSource =
|
|
483
|
-
var IsValidUrlUtmMedium =
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
482
|
+
var IsValidOrUndefinedUrlUtmSource = v44.undefinedable(IsValidUrlUtmSource);
|
|
483
|
+
var IsValidUrlUtmMedium = v44.pipe(
|
|
484
|
+
v44.string(),
|
|
485
|
+
v44.trim(),
|
|
486
|
+
v44.minLength(
|
|
487
487
|
LIMIT_MIN_UTM_MEDIUM,
|
|
488
488
|
`the utm_medium is too short, it must be at least ${LIMIT_MIN_UTM_MEDIUM} characters`
|
|
489
489
|
),
|
|
490
|
-
|
|
490
|
+
v44.maxLength(
|
|
491
491
|
LIMIT_MAX_UTM_MEDIUM,
|
|
492
492
|
`the utm_medium is too long, it must be ${LIMIT_MAX_UTM_MEDIUM} characters or less`
|
|
493
493
|
),
|
|
494
|
-
|
|
494
|
+
v44.regex(REGEX_VALUE, `utm_medium ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
495
495
|
);
|
|
496
|
-
var IsValidOrUndefinedUrlUtmMedium =
|
|
497
|
-
var IsValidUrlUtmCampaign =
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
496
|
+
var IsValidOrUndefinedUrlUtmMedium = v44.undefinedable(IsValidUrlUtmMedium);
|
|
497
|
+
var IsValidUrlUtmCampaign = v44.pipe(
|
|
498
|
+
v44.string(),
|
|
499
|
+
v44.trim(),
|
|
500
|
+
v44.minLength(
|
|
501
501
|
LIMIT_MIN_UTM_CAMPAIGN,
|
|
502
502
|
`the utm_campaign is too short, it must be at least ${LIMIT_MIN_UTM_CAMPAIGN} characters`
|
|
503
503
|
),
|
|
504
|
-
|
|
504
|
+
v44.maxLength(
|
|
505
505
|
LIMIT_MAX_UTM_CAMPAIGN,
|
|
506
506
|
`the utm_campaign is too long, it must be ${LIMIT_MAX_UTM_CAMPAIGN} characters or less`
|
|
507
507
|
),
|
|
508
|
-
|
|
508
|
+
v44.regex(REGEX_VALUE, `utm_campaign ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
509
509
|
);
|
|
510
|
-
var IsValidOrUndefinedUrlUtmCampaign =
|
|
511
|
-
var IsValidUrlUtmCreativeFormat =
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
510
|
+
var IsValidOrUndefinedUrlUtmCampaign = v44.undefinedable(IsValidUrlUtmCampaign);
|
|
511
|
+
var IsValidUrlUtmCreativeFormat = v44.pipe(
|
|
512
|
+
v44.string(),
|
|
513
|
+
v44.trim(),
|
|
514
|
+
v44.minLength(
|
|
515
515
|
LIMIT_MIN_UTM_CREATIVE_FORMAT,
|
|
516
516
|
`the utm_creative_format is too short, it must be at least ${LIMIT_MIN_UTM_CREATIVE_FORMAT} characters`
|
|
517
517
|
),
|
|
518
|
-
|
|
518
|
+
v44.maxLength(
|
|
519
519
|
LIMIT_MAX_UTM_CREATIVE_FORMAT,
|
|
520
520
|
`the utm_creative_format is too long, it must be ${LIMIT_MAX_UTM_CREATIVE_FORMAT} characters or less`
|
|
521
521
|
),
|
|
522
|
-
|
|
522
|
+
v44.regex(REGEX_VALUE, `utm_creative_format ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
523
523
|
);
|
|
524
|
-
var IsValidOrUndefinedUrlUtmCreativeFormat =
|
|
524
|
+
var IsValidOrUndefinedUrlUtmCreativeFormat = v44.undefinedable(
|
|
525
525
|
IsValidUrlUtmCreativeFormat
|
|
526
526
|
);
|
|
527
|
-
var IsValidUrlUtmContent =
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
527
|
+
var IsValidUrlUtmContent = v44.pipe(
|
|
528
|
+
v44.string(),
|
|
529
|
+
v44.trim(),
|
|
530
|
+
v44.minLength(
|
|
531
531
|
LIMIT_MIN_UTM_CONTENT,
|
|
532
532
|
`the utm_content is too short, it must be at least ${LIMIT_MIN_UTM_CONTENT} characters`
|
|
533
533
|
),
|
|
534
|
-
|
|
534
|
+
v44.maxLength(
|
|
535
535
|
LIMIT_MAX_UTM_CONTENT,
|
|
536
536
|
`the utm_content is too long, it must be ${LIMIT_MAX_UTM_CONTENT} characters or less`
|
|
537
537
|
),
|
|
538
|
-
|
|
538
|
+
v44.regex(REGEX_VALUE, `utm_content ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
539
539
|
);
|
|
540
|
-
var IsValidOrUndefinedUrlUtmContent =
|
|
541
|
-
var IsValidUrlUtmTerm =
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
540
|
+
var IsValidOrUndefinedUrlUtmContent = v44.undefinedable(IsValidUrlUtmContent);
|
|
541
|
+
var IsValidUrlUtmTerm = v44.pipe(
|
|
542
|
+
v44.string(),
|
|
543
|
+
v44.trim(),
|
|
544
|
+
v44.minLength(
|
|
545
545
|
LIMIT_MIN_UTM_TERM,
|
|
546
546
|
`the utm_term is too short, it must be at least ${LIMIT_MIN_UTM_TERM} characters`
|
|
547
547
|
),
|
|
548
|
-
|
|
548
|
+
v44.maxLength(
|
|
549
549
|
LIMIT_MAX_UTM_TERM,
|
|
550
550
|
`the utm_term is too long, it must be ${LIMIT_MAX_UTM_TERM} characters or less`
|
|
551
551
|
),
|
|
552
|
-
|
|
552
|
+
v44.regex(REGEX_VALUE, `utm_term ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
553
553
|
);
|
|
554
|
-
var IsValidOrUndefinedUrlUtmTerm =
|
|
555
|
-
var IsValidUrlUtmId =
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
554
|
+
var IsValidOrUndefinedUrlUtmTerm = v44.undefinedable(IsValidUrlUtmTerm);
|
|
555
|
+
var IsValidUrlUtmId = v44.pipe(
|
|
556
|
+
v44.string(),
|
|
557
|
+
v44.trim(),
|
|
558
|
+
v44.minLength(
|
|
559
559
|
LIMIT_MIN_UTM_ID,
|
|
560
560
|
`the utm_id is too short, it must be at least ${LIMIT_MIN_UTM_ID} characters`
|
|
561
561
|
),
|
|
562
|
-
|
|
562
|
+
v44.maxLength(
|
|
563
563
|
LIMIT_MAX_UTM_ID,
|
|
564
564
|
`the utm_id is too long, it must be ${LIMIT_MAX_UTM_ID} characters or less`
|
|
565
565
|
),
|
|
566
|
-
|
|
566
|
+
v44.regex(REGEX_VALUE, `utm_id ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
567
567
|
);
|
|
568
|
-
var IsValidOrUndefinedUrlUtmId =
|
|
568
|
+
var IsValidOrUndefinedUrlUtmId = v44.undefinedable(IsValidUrlUtmId);
|
|
569
569
|
|
|
570
570
|
// src/actions/group-user.crud.ts
|
|
571
|
-
var SQueryListGroupUserDocuments =
|
|
571
|
+
var SQueryListGroupUserDocuments = v44.object({
|
|
572
572
|
documentId: IsValidReferenceDocumentId,
|
|
573
573
|
page: IsValidMinPage,
|
|
574
|
-
size:
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
574
|
+
size: v44.fallback(
|
|
575
|
+
v44.optional(
|
|
576
|
+
v44.pipe(
|
|
577
|
+
v44.number(),
|
|
578
|
+
v44.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
579
|
+
v44.maxValue(GROUP_USER_PAGINATION_MAX_SIZE_LIMIT)
|
|
580
580
|
),
|
|
581
581
|
GROUP_USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
582
582
|
),
|
|
583
583
|
GROUP_USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
584
584
|
)
|
|
585
585
|
});
|
|
586
|
-
var SCreateGroupUserDocument =
|
|
586
|
+
var SCreateGroupUserDocument = v44.object({
|
|
587
587
|
group: IsValidReferenceDocumentId,
|
|
588
588
|
user: IsValidReferenceDocumentId,
|
|
589
589
|
scopes: IsValidGroupUserScopes
|
|
590
590
|
});
|
|
591
|
-
var SCreateGroupUserDocumentRequest =
|
|
591
|
+
var SCreateGroupUserDocumentRequest = v44.object({
|
|
592
592
|
documentId: IsValidReferenceDocumentId,
|
|
593
593
|
data: SCreateGroupUserDocument
|
|
594
594
|
});
|
|
595
|
-
var SReadGroupUserDocumentById =
|
|
595
|
+
var SReadGroupUserDocumentById = v44.object({
|
|
596
596
|
id: IsValidReferenceId
|
|
597
597
|
});
|
|
598
|
-
var SReadGroupUserDocumentByDocumentId =
|
|
598
|
+
var SReadGroupUserDocumentByDocumentId = v44.object({
|
|
599
599
|
documentId: IsValidReferenceDocumentId
|
|
600
600
|
});
|
|
601
|
-
var SUpdateGroupUserDocument =
|
|
601
|
+
var SUpdateGroupUserDocument = v44.object({
|
|
602
602
|
scopes: IsValidGroupUserScopes
|
|
603
603
|
});
|
|
604
|
-
var SUpdateGroupUserDocumentRequest =
|
|
604
|
+
var SUpdateGroupUserDocumentRequest = v44.object({
|
|
605
605
|
documentId: IsValidReferenceDocumentId,
|
|
606
606
|
data: SUpdateGroupUserDocument
|
|
607
607
|
});
|
|
608
|
-
var SDeleteGroupUserDocument =
|
|
608
|
+
var SDeleteGroupUserDocument = v44.object({
|
|
609
609
|
documentId: IsValidReferenceDocumentId
|
|
610
610
|
});
|
|
611
|
-
var SQueryListGroupDocuments =
|
|
611
|
+
var SQueryListGroupDocuments = v44.object({
|
|
612
612
|
page: IsValidMinPage,
|
|
613
|
-
size:
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
613
|
+
size: v44.fallback(
|
|
614
|
+
v44.optional(
|
|
615
|
+
v44.pipe(
|
|
616
|
+
v44.number(),
|
|
617
|
+
v44.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
618
|
+
v44.maxValue(GROUP_PAGINATION_MAX_SIZE_LIMIT)
|
|
619
619
|
),
|
|
620
620
|
GROUP_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
621
621
|
),
|
|
622
622
|
GROUP_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
623
623
|
)
|
|
624
624
|
});
|
|
625
|
-
var SCreateGroupDocument =
|
|
625
|
+
var SCreateGroupDocument = v44.object({
|
|
626
626
|
label: IsValidLabel,
|
|
627
627
|
value: IsValidValue,
|
|
628
628
|
description: IsValidDescription,
|
|
@@ -630,13 +630,13 @@ var SCreateGroupDocument = v47.object({
|
|
|
630
630
|
apply_value_to: IsValidApplyValueTo,
|
|
631
631
|
apply_value_as: IsValidApplyValueAs
|
|
632
632
|
});
|
|
633
|
-
var SReadGroupDocumentById =
|
|
633
|
+
var SReadGroupDocumentById = v44.object({
|
|
634
634
|
id: IsValidReferenceId
|
|
635
635
|
});
|
|
636
|
-
var SReadGroupDocumentByDocumentId =
|
|
636
|
+
var SReadGroupDocumentByDocumentId = v44.object({
|
|
637
637
|
documentId: IsValidReferenceDocumentId
|
|
638
638
|
});
|
|
639
|
-
var SUpdateAsCreatorGroupDocument =
|
|
639
|
+
var SUpdateAsCreatorGroupDocument = v44.object({
|
|
640
640
|
label: IsValidOrUndefinedLabel,
|
|
641
641
|
value: IsValidOrUndefinedValue,
|
|
642
642
|
description: IsValidOrUndefinedDescription,
|
|
@@ -644,53 +644,53 @@ var SUpdateAsCreatorGroupDocument = v47.object({
|
|
|
644
644
|
apply_value_to: IsValidOrUndefinedApplyValueTo,
|
|
645
645
|
apply_value_as: IsValidOrUndefinedApplyValueAs
|
|
646
646
|
});
|
|
647
|
-
var SUpdateAsCreatorGroupDocumentRequest =
|
|
647
|
+
var SUpdateAsCreatorGroupDocumentRequest = v44.object({
|
|
648
648
|
documentId: IsValidReferenceDocumentId,
|
|
649
649
|
data: SUpdateAsCreatorGroupDocument
|
|
650
650
|
});
|
|
651
|
-
var SUpdateAsInvitedGroupDocument =
|
|
651
|
+
var SUpdateAsInvitedGroupDocument = v44.object({
|
|
652
652
|
label: IsValidOrUndefinedLabel,
|
|
653
653
|
description: IsValidOrUndefinedDescription
|
|
654
654
|
});
|
|
655
|
-
var SUpdateAsInvitedGroupDocumentRequest =
|
|
655
|
+
var SUpdateAsInvitedGroupDocumentRequest = v44.object({
|
|
656
656
|
documentId: IsValidReferenceDocumentId,
|
|
657
657
|
data: SUpdateAsInvitedGroupDocument
|
|
658
658
|
});
|
|
659
|
-
var SUpdateGroupDocumentRequest =
|
|
659
|
+
var SUpdateGroupDocumentRequest = v44.union([
|
|
660
660
|
SUpdateAsCreatorGroupDocumentRequest,
|
|
661
661
|
SUpdateAsInvitedGroupDocumentRequest
|
|
662
662
|
]);
|
|
663
|
-
var SDeleteGroupDocument =
|
|
663
|
+
var SDeleteGroupDocument = v44.object({
|
|
664
664
|
documentId: IsValidReferenceDocumentId
|
|
665
665
|
});
|
|
666
|
-
var SReadUserDocumentToken =
|
|
667
|
-
token:
|
|
666
|
+
var SReadUserDocumentToken = v44.object({
|
|
667
|
+
token: v44.string()
|
|
668
668
|
});
|
|
669
|
-
var SLoginUserDocument =
|
|
669
|
+
var SLoginUserDocument = v44.object({
|
|
670
670
|
identifier: IsValidEmail,
|
|
671
671
|
password: IsValidPassword
|
|
672
672
|
});
|
|
673
|
-
var SRegisterUserDocument =
|
|
673
|
+
var SRegisterUserDocument = v44.object({
|
|
674
674
|
username: IsValidUsername,
|
|
675
675
|
email: IsValidEmail,
|
|
676
676
|
password: IsValidPassword
|
|
677
677
|
});
|
|
678
|
-
var SForgotPasswordUserDocument =
|
|
678
|
+
var SForgotPasswordUserDocument = v44.object({
|
|
679
679
|
email: IsValidEmail
|
|
680
680
|
});
|
|
681
|
-
var SResetPasswordUserDocument =
|
|
681
|
+
var SResetPasswordUserDocument = v44.object({
|
|
682
682
|
password: IsValidPassword,
|
|
683
683
|
passwordConfirmation: IsValidPassword,
|
|
684
|
-
code:
|
|
684
|
+
code: v44.string()
|
|
685
685
|
});
|
|
686
|
-
var SChangePassword =
|
|
687
|
-
|
|
686
|
+
var SChangePassword = v44.pipe(
|
|
687
|
+
v44.object({
|
|
688
688
|
currentPassword: IsValidPassword,
|
|
689
689
|
password: IsValidPassword,
|
|
690
690
|
passwordConfirmation: IsValidPassword
|
|
691
691
|
}),
|
|
692
|
-
|
|
693
|
-
|
|
692
|
+
v44.forward(
|
|
693
|
+
v44.partialCheck(
|
|
694
694
|
[["password"], ["passwordConfirmation"]],
|
|
695
695
|
(input) => input.password === input.passwordConfirmation,
|
|
696
696
|
"Your new passwords do not match."
|
|
@@ -698,24 +698,24 @@ var SChangePassword = v47.pipe(
|
|
|
698
698
|
["passwordConfirmation"]
|
|
699
699
|
)
|
|
700
700
|
);
|
|
701
|
-
var SRequestConfirmEmail =
|
|
701
|
+
var SRequestConfirmEmail = v44.object({
|
|
702
702
|
email: IsValidEmail
|
|
703
703
|
});
|
|
704
|
-
var SBaseAssociateRelationPositionBefore =
|
|
704
|
+
var SBaseAssociateRelationPositionBefore = v44.object({
|
|
705
705
|
before: IsValidReferenceDocumentId
|
|
706
706
|
});
|
|
707
|
-
var SBaseAssociateRelationPositionAfter =
|
|
707
|
+
var SBaseAssociateRelationPositionAfter = v44.object({
|
|
708
708
|
after: IsValidReferenceDocumentId
|
|
709
709
|
});
|
|
710
|
-
var SBaseAssociateRelationPositionStart =
|
|
711
|
-
start:
|
|
710
|
+
var SBaseAssociateRelationPositionStart = v44.object({
|
|
711
|
+
start: v44.boolean("start must be a boolean value")
|
|
712
712
|
});
|
|
713
|
-
var SBaseAssociateRelationPositionEnd =
|
|
714
|
-
end:
|
|
713
|
+
var SBaseAssociateRelationPositionEnd = v44.object({
|
|
714
|
+
end: v44.boolean("end must be a boolean value")
|
|
715
715
|
});
|
|
716
|
-
var SBaseAssociateRelationPosition =
|
|
717
|
-
|
|
718
|
-
|
|
716
|
+
var SBaseAssociateRelationPosition = v44.fallback(
|
|
717
|
+
v44.pipe(
|
|
718
|
+
v44.union([
|
|
719
719
|
SBaseAssociateRelationPositionBefore,
|
|
720
720
|
SBaseAssociateRelationPositionAfter,
|
|
721
721
|
SBaseAssociateRelationPositionStart,
|
|
@@ -724,47 +724,47 @@ var SBaseAssociateRelationPosition = v47.fallback(
|
|
|
724
724
|
),
|
|
725
725
|
{ end: true }
|
|
726
726
|
);
|
|
727
|
-
var SBaseAssociateRelation =
|
|
727
|
+
var SBaseAssociateRelation = v44.object({
|
|
728
728
|
documentId: IsValidReferenceDocumentId,
|
|
729
|
-
position:
|
|
729
|
+
position: v44.optional(SBaseAssociateRelationPosition)
|
|
730
730
|
});
|
|
731
|
-
var SConnectManyEntityRelation =
|
|
732
|
-
connect:
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
731
|
+
var SConnectManyEntityRelation = v44.object({
|
|
732
|
+
connect: v44.pipe(
|
|
733
|
+
v44.array(v44.union([IsValidReferenceDocumentId, SBaseAssociateRelation])),
|
|
734
|
+
v44.minLength(1, "At least one document ID is required to connect"),
|
|
735
|
+
v44.maxLength(100, "A maximum of 100 document IDs can be connected per request")
|
|
736
736
|
)
|
|
737
737
|
});
|
|
738
|
-
var SDisconnectManyEntityRelation =
|
|
739
|
-
disconnect:
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
738
|
+
var SDisconnectManyEntityRelation = v44.object({
|
|
739
|
+
disconnect: v44.pipe(
|
|
740
|
+
v44.array(v44.union([IsValidReferenceDocumentId, SBaseAssociateRelation])),
|
|
741
|
+
v44.minLength(1, "At least one document ID is required to disconnect"),
|
|
742
|
+
v44.maxLength(100, "A maximum of 100 document IDs can be disconnected per request")
|
|
743
743
|
)
|
|
744
744
|
});
|
|
745
|
-
var SSetManyEntityRelation =
|
|
746
|
-
set:
|
|
747
|
-
|
|
748
|
-
|
|
745
|
+
var SSetManyEntityRelation = v44.object({
|
|
746
|
+
set: v44.pipe(
|
|
747
|
+
v44.array(v44.union([IsValidReferenceDocumentId, SBaseAssociateRelation])),
|
|
748
|
+
v44.minLength(1, "At least one document ID is required to set a relation")
|
|
749
749
|
)
|
|
750
750
|
});
|
|
751
|
-
var SConnectOneEntityRelation =
|
|
752
|
-
connect:
|
|
751
|
+
var SConnectOneEntityRelation = v44.object({
|
|
752
|
+
connect: v44.union([IsValidReferenceDocumentId, SBaseAssociateRelation])
|
|
753
753
|
});
|
|
754
|
-
var SDisconnectOneEntityRelation =
|
|
755
|
-
disconnect:
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
754
|
+
var SDisconnectOneEntityRelation = v44.object({
|
|
755
|
+
disconnect: v44.pipe(
|
|
756
|
+
v44.array(v44.union([IsValidReferenceDocumentId, SBaseAssociateRelation])),
|
|
757
|
+
v44.minLength(1, "At least one document ID is required to disconnect"),
|
|
758
|
+
v44.maxLength(100, "A maximum of 100 document IDs can be disconnected per request")
|
|
759
759
|
)
|
|
760
760
|
});
|
|
761
|
-
var SSetOneEntityRelation =
|
|
762
|
-
set:
|
|
763
|
-
|
|
764
|
-
|
|
761
|
+
var SSetOneEntityRelation = v44.object({
|
|
762
|
+
set: v44.pipe(
|
|
763
|
+
v44.array(v44.union([IsValidReferenceDocumentId, SBaseAssociateRelation])),
|
|
764
|
+
v44.minLength(1, "At least one document ID is required to set a relation")
|
|
765
765
|
)
|
|
766
766
|
});
|
|
767
|
-
var SBaseGroupDocument =
|
|
767
|
+
var SBaseGroupDocument = v44.object({
|
|
768
768
|
label: IsValidLabel,
|
|
769
769
|
value: IsValidValue,
|
|
770
770
|
description: IsValidDescription,
|
|
@@ -774,112 +774,105 @@ var SBaseGroupDocument = v47.object({
|
|
|
774
774
|
});
|
|
775
775
|
|
|
776
776
|
// src/entities/group/group.document.ts
|
|
777
|
-
var SGroupDocument =
|
|
778
|
-
|
|
779
|
-
SBaseGroupDocument
|
|
780
|
-
// SGroupRelationsDocument
|
|
781
|
-
]);
|
|
782
|
-
var SBaseTrackingLinkDocument = v47.object({
|
|
777
|
+
var SGroupDocument = v44.intersect([SBaseDocument, SBaseGroupDocument]);
|
|
778
|
+
var SBaseTrackingLinkDocument = v44.object({
|
|
783
779
|
is_active: IsValidIsActive,
|
|
784
780
|
destination: IsValidUrlDestination,
|
|
785
781
|
protocol: IsValidUrlProtocol,
|
|
786
782
|
domain: IsValidUrlDomain,
|
|
787
|
-
path:
|
|
788
|
-
query:
|
|
789
|
-
fragment:
|
|
790
|
-
utm_source:
|
|
791
|
-
utm_medium:
|
|
792
|
-
utm_campaign:
|
|
793
|
-
utm_creative_format:
|
|
794
|
-
utm_content:
|
|
795
|
-
utm_term:
|
|
796
|
-
utm_id:
|
|
783
|
+
path: v44.nullable(IsValidUrlPath),
|
|
784
|
+
query: v44.nullable(IsValidUrlQuery),
|
|
785
|
+
fragment: v44.nullable(IsValidUrlFragment),
|
|
786
|
+
utm_source: v44.nullable(IsValidUrlUtmSource),
|
|
787
|
+
utm_medium: v44.nullable(IsValidUrlUtmMedium),
|
|
788
|
+
utm_campaign: v44.nullable(IsValidUrlUtmCampaign),
|
|
789
|
+
utm_creative_format: v44.nullable(IsValidUrlUtmCreativeFormat),
|
|
790
|
+
utm_content: v44.nullable(IsValidUrlUtmContent),
|
|
791
|
+
utm_term: v44.nullable(IsValidUrlUtmTerm),
|
|
792
|
+
utm_id: v44.nullable(IsValidUrlUtmId)
|
|
797
793
|
});
|
|
798
794
|
|
|
799
795
|
// src/entities/tracking-link/tracking-link.document.ts
|
|
800
|
-
var STrackingLinkDocument =
|
|
796
|
+
var STrackingLinkDocument = v44.intersect([
|
|
801
797
|
SBaseDocument,
|
|
802
798
|
SBaseTrackingLinkDocument
|
|
803
|
-
// STrackingLinkRelationsDocument
|
|
804
799
|
]);
|
|
805
|
-
var STrackingLinkRelationsDocument =
|
|
800
|
+
var STrackingLinkRelationsDocument = v44.intersect([
|
|
806
801
|
SBaseRelationGroup,
|
|
807
802
|
SBaseRelationCreator
|
|
808
803
|
]);
|
|
809
|
-
var SBaseUserDocument =
|
|
804
|
+
var SBaseUserDocument = v44.object({
|
|
810
805
|
username: IsValidUsername,
|
|
811
806
|
email: IsValidEmail,
|
|
812
|
-
confirmed:
|
|
813
|
-
blocked:
|
|
814
|
-
provider:
|
|
807
|
+
confirmed: v44.boolean(),
|
|
808
|
+
blocked: v44.boolean(),
|
|
809
|
+
provider: v44.literal("local")
|
|
815
810
|
});
|
|
816
811
|
|
|
817
812
|
// src/entities/user/user.document.ts
|
|
818
|
-
var SUserDocument =
|
|
819
|
-
SBaseDocument,
|
|
820
|
-
SBaseUserDocument
|
|
821
|
-
// SUserRelationsDocument
|
|
822
|
-
]);
|
|
813
|
+
var SUserDocument = v44.intersect([SBaseDocument, SBaseUserDocument]);
|
|
823
814
|
|
|
824
815
|
// src/entities/user/user-draft-pub-created-by.schema.ts
|
|
825
|
-
var SBaseDocumentCreatedBy =
|
|
826
|
-
createdBy:
|
|
827
|
-
updatedBy:
|
|
816
|
+
var SBaseDocumentCreatedBy = v44.object({
|
|
817
|
+
createdBy: v44.optional(SUserDocument),
|
|
818
|
+
updatedBy: v44.optional(SUserDocument)
|
|
828
819
|
});
|
|
829
|
-
var SBaseRoleDocument =
|
|
830
|
-
type:
|
|
831
|
-
name:
|
|
832
|
-
locale:
|
|
833
|
-
description:
|
|
820
|
+
var SBaseRoleDocument = v44.object({
|
|
821
|
+
type: v44.string(),
|
|
822
|
+
name: v44.string(),
|
|
823
|
+
locale: v44.string(),
|
|
824
|
+
description: v44.string()
|
|
834
825
|
});
|
|
835
826
|
|
|
836
827
|
// src/entities/role/role.document.ts
|
|
837
|
-
var SRoleDocument =
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
customer_id: v47.nullable(IsValidCustomerId),
|
|
845
|
-
subscription_id: v47.nullable(IsValidCustomerId),
|
|
828
|
+
var SRoleDocument = v44.intersect([SBaseDocument, SBaseRoleDocument]);
|
|
829
|
+
|
|
830
|
+
// src/entities/role/role.relations.ts
|
|
831
|
+
var SRoleRelationsDocument = SBaseRelationUsers;
|
|
832
|
+
var SBaseUserAccountDocument = v44.object({
|
|
833
|
+
customer_id: v44.nullable(IsValidCustomerId),
|
|
834
|
+
subscription_id: v44.nullable(IsValidCustomerId),
|
|
846
835
|
subscription_status: IsValidSubscriptionStatus,
|
|
847
|
-
current_period_start:
|
|
848
|
-
current_period_end:
|
|
849
|
-
trial_period_end:
|
|
836
|
+
current_period_start: v44.nullable(IsValidCurrentPeriodStart),
|
|
837
|
+
current_period_end: v44.nullable(IsValidCurrentPeriodEnd),
|
|
838
|
+
trial_period_end: v44.nullable(IsValidTrialPeriodEnd)
|
|
850
839
|
});
|
|
851
840
|
|
|
852
841
|
// src/entities/user-account/user-account.document.ts
|
|
853
|
-
var SUserAccountDocument =
|
|
842
|
+
var SUserAccountDocument = v44.intersect([
|
|
854
843
|
SBaseDocument,
|
|
855
844
|
SBaseUserAccountDocument
|
|
856
845
|
]);
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
var
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
846
|
+
|
|
847
|
+
// src/entities/user-account/user-account.relations.ts
|
|
848
|
+
var SUserAccountRelationsDocument = SBaseRelationUser;
|
|
849
|
+
var SUserAccountRelationsReqDocument = SBaseRelationReqUser;
|
|
850
|
+
var SBaseUserLimitationsDocument = v44.object({
|
|
851
|
+
limit_groups: v44.number(),
|
|
852
|
+
limit_group_users: v44.number(),
|
|
853
|
+
limit_websites: v44.number(),
|
|
854
|
+
limit_tracking_links: v44.number(),
|
|
855
|
+
limit_sources: v44.number(),
|
|
856
|
+
limit_mediums: v44.number(),
|
|
857
|
+
limit_campaign_ids: v44.number(),
|
|
858
|
+
limit_campaign_keys: v44.number(),
|
|
859
|
+
limit_campaign_phases: v44.number(),
|
|
860
|
+
limit_campaign_products: v44.number(),
|
|
861
|
+
limit_contents: v44.number(),
|
|
862
|
+
limit_creative_formats: v44.number(),
|
|
863
|
+
limit_creative_format_variants: v44.number(),
|
|
864
|
+
limit_terms: v44.number()
|
|
874
865
|
});
|
|
875
866
|
|
|
876
867
|
// src/entities/user-limitations/user-limitations.document.ts
|
|
877
|
-
var SUserLimitationsDocument =
|
|
868
|
+
var SUserLimitationsDocument = v44.intersect([
|
|
878
869
|
SBaseDocument,
|
|
879
870
|
SBaseUserLimitationsDocument
|
|
880
871
|
]);
|
|
881
|
-
|
|
882
|
-
|
|
872
|
+
|
|
873
|
+
// src/entities/user-limitations/user-limitations.relations.ts
|
|
874
|
+
var SUserLimitationsRelationsDocument = SBaseRelationUser;
|
|
875
|
+
var SBaseCampaignIdDocument = v44.intersect([
|
|
883
876
|
SBaseCostDocument,
|
|
884
877
|
SBaseUtmParamDocument
|
|
885
878
|
]);
|
|
@@ -894,72 +887,72 @@ var SBaseCreativeFormatVariantDocument = SBaseUtmParamDocument;
|
|
|
894
887
|
var SBaseTermDocument = SBaseUtmParamDocument;
|
|
895
888
|
|
|
896
889
|
// src/entities/utm/param.documents.ts
|
|
897
|
-
var SCampaignIdDocument =
|
|
898
|
-
var SCampaignPhaseDocument =
|
|
890
|
+
var SCampaignIdDocument = v44.intersect([SBaseDocument, SBaseCampaignIdDocument]);
|
|
891
|
+
var SCampaignPhaseDocument = v44.intersect([
|
|
899
892
|
SBaseDocument,
|
|
900
893
|
SBaseCampaignPhaseDocument
|
|
901
894
|
]);
|
|
902
|
-
var SCampaignProductDocument =
|
|
895
|
+
var SCampaignProductDocument = v44.intersect([
|
|
903
896
|
SBaseDocument,
|
|
904
897
|
SBaseCampaignProductDocument
|
|
905
898
|
]);
|
|
906
|
-
var SCampaignKeyDocument =
|
|
899
|
+
var SCampaignKeyDocument = v44.intersect([
|
|
907
900
|
SBaseDocument,
|
|
908
901
|
SBaseCampaignKeyDocument
|
|
909
902
|
]);
|
|
910
|
-
var SSourceDocument =
|
|
911
|
-
var SMediumDocument =
|
|
912
|
-
var SContentDocument =
|
|
913
|
-
var SCreativeFormatDocument =
|
|
903
|
+
var SSourceDocument = v44.intersect([SBaseDocument, SBaseSourceDocument]);
|
|
904
|
+
var SMediumDocument = v44.intersect([SBaseDocument, SBaseMediumDocument]);
|
|
905
|
+
var SContentDocument = v44.intersect([SBaseDocument, SBaseContentDocument]);
|
|
906
|
+
var SCreativeFormatDocument = v44.intersect([
|
|
914
907
|
SBaseDocument,
|
|
915
908
|
SBaseCreativeFormatDocument
|
|
916
909
|
]);
|
|
917
|
-
var SCreativeFormatVariantDocument =
|
|
910
|
+
var SCreativeFormatVariantDocument = v44.intersect([
|
|
918
911
|
SBaseDocument,
|
|
919
912
|
SBaseCreativeFormatVariantDocument
|
|
920
913
|
]);
|
|
921
|
-
var STermDocument =
|
|
922
|
-
var SCampaignIdRelationsDocument =
|
|
914
|
+
var STermDocument = v44.intersect([SBaseDocument, SBaseTermDocument]);
|
|
915
|
+
var SCampaignIdRelationsDocument = v44.intersect([
|
|
923
916
|
SBaseRelationGroup,
|
|
924
917
|
SBaseRelationCreator
|
|
925
918
|
]);
|
|
926
|
-
var SCampaignPhaseRelationsDocument =
|
|
919
|
+
var SCampaignPhaseRelationsDocument = v44.intersect([
|
|
927
920
|
SBaseRelationGroup,
|
|
928
921
|
SBaseRelationCreator
|
|
929
922
|
]);
|
|
930
|
-
var SCampaignProductRelationsDocument =
|
|
923
|
+
var SCampaignProductRelationsDocument = v44.intersect([
|
|
931
924
|
SBaseRelationGroup,
|
|
932
925
|
SBaseRelationCreator
|
|
933
926
|
]);
|
|
934
|
-
var SCampaignKeyRelationsDocument =
|
|
927
|
+
var SCampaignKeyRelationsDocument = v44.intersect([
|
|
935
928
|
SBaseRelationGroup,
|
|
936
929
|
SBaseRelationCreator
|
|
937
930
|
]);
|
|
938
|
-
var SSourceRelationsDocument =
|
|
931
|
+
var SSourceRelationsDocument = v44.intersect([
|
|
939
932
|
SBaseRelationGroup,
|
|
940
933
|
SBaseRelationCreator
|
|
941
934
|
]);
|
|
942
|
-
var SMediumRelationsDocument =
|
|
935
|
+
var SMediumRelationsDocument = v44.intersect([
|
|
943
936
|
SBaseRelationGroup,
|
|
944
937
|
SBaseRelationCreator
|
|
945
938
|
]);
|
|
946
|
-
var SContentRelationsDocument =
|
|
939
|
+
var SContentRelationsDocument = v44.intersect([
|
|
947
940
|
SBaseRelationGroup,
|
|
948
941
|
SBaseRelationCreator
|
|
949
942
|
]);
|
|
950
|
-
var SCreativeFormatRelationsDocument =
|
|
943
|
+
var SCreativeFormatRelationsDocument = v44.intersect([
|
|
951
944
|
SBaseRelationGroup,
|
|
952
945
|
SBaseRelationCreator
|
|
953
946
|
]);
|
|
954
|
-
var SCreativeFormatVariantRelationsDocument =
|
|
947
|
+
var SCreativeFormatVariantRelationsDocument = v44.intersect([
|
|
955
948
|
SBaseRelationGroup,
|
|
956
949
|
SBaseRelationCreator
|
|
957
950
|
]);
|
|
958
|
-
var STermRelationsDocument =
|
|
951
|
+
var STermRelationsDocument = v44.intersect([
|
|
959
952
|
SBaseRelationGroup,
|
|
960
953
|
SBaseRelationCreator
|
|
961
954
|
]);
|
|
962
|
-
var SBaseWebsiteDocument =
|
|
955
|
+
var SBaseWebsiteDocument = v44.object({
|
|
963
956
|
domain: IsValidUrlDomain,
|
|
964
957
|
description: IsValidDescription,
|
|
965
958
|
is_secure: IsValidIsSecure,
|
|
@@ -967,71 +960,71 @@ var SBaseWebsiteDocument = v47.object({
|
|
|
967
960
|
});
|
|
968
961
|
|
|
969
962
|
// src/entities/website/website.document.ts
|
|
970
|
-
var SWebsiteDocument =
|
|
971
|
-
var SWebsiteRelationsDocument =
|
|
963
|
+
var SWebsiteDocument = v44.intersect([SBaseDocument, SBaseWebsiteDocument]);
|
|
964
|
+
var SWebsiteRelationsDocument = v44.intersect([
|
|
972
965
|
SBaseRelationGroup,
|
|
973
966
|
SBaseRelationCreator
|
|
974
967
|
]);
|
|
975
968
|
|
|
976
969
|
// src/entities/user/user.relations.ts
|
|
977
|
-
var SUserRelationRole =
|
|
978
|
-
role:
|
|
970
|
+
var SUserRelationRole = v44.object({
|
|
971
|
+
role: v44.optional(SRoleDocument)
|
|
979
972
|
});
|
|
980
|
-
var SUserRelationReqRole =
|
|
973
|
+
var SUserRelationReqRole = v44.object({
|
|
981
974
|
role: SRoleDocument
|
|
982
975
|
});
|
|
983
|
-
var SUserRelationAccount =
|
|
984
|
-
account:
|
|
976
|
+
var SUserRelationAccount = v44.object({
|
|
977
|
+
account: v44.optional(SUserAccountDocument)
|
|
985
978
|
});
|
|
986
|
-
var SUserRelationReqAccount =
|
|
979
|
+
var SUserRelationReqAccount = v44.object({
|
|
987
980
|
account: SUserAccountDocument
|
|
988
981
|
});
|
|
989
|
-
var SUserRelationLimits =
|
|
990
|
-
limits:
|
|
982
|
+
var SUserRelationLimits = v44.object({
|
|
983
|
+
limits: v44.optional(SUserLimitationsDocument)
|
|
991
984
|
});
|
|
992
|
-
var SUserRelationReqLimits =
|
|
985
|
+
var SUserRelationReqLimits = v44.object({
|
|
993
986
|
limits: SUserLimitationsDocument
|
|
994
987
|
});
|
|
995
|
-
var SUserRelationAuthorizedGroups =
|
|
996
|
-
authorized_groups:
|
|
988
|
+
var SUserRelationAuthorizedGroups = v44.object({
|
|
989
|
+
authorized_groups: v44.optional(v44.array(SGroupDocument))
|
|
997
990
|
});
|
|
998
|
-
var SUserRelationCreatedWebsites =
|
|
999
|
-
created_websites:
|
|
991
|
+
var SUserRelationCreatedWebsites = v44.object({
|
|
992
|
+
created_websites: v44.optional(v44.array(SWebsiteDocument))
|
|
1000
993
|
});
|
|
1001
|
-
var SUserRelationTrackingLinks =
|
|
1002
|
-
tracking_links:
|
|
994
|
+
var SUserRelationTrackingLinks = v44.object({
|
|
995
|
+
tracking_links: v44.optional(v44.array(STrackingLinkDocument))
|
|
1003
996
|
});
|
|
1004
|
-
var SUserRelationSources =
|
|
1005
|
-
utm_sources:
|
|
997
|
+
var SUserRelationSources = v44.object({
|
|
998
|
+
utm_sources: v44.optional(v44.array(SSourceDocument))
|
|
1006
999
|
});
|
|
1007
|
-
var SUserRelationMediums =
|
|
1008
|
-
utm_mediums:
|
|
1000
|
+
var SUserRelationMediums = v44.object({
|
|
1001
|
+
utm_mediums: v44.optional(v44.array(SMediumDocument))
|
|
1009
1002
|
});
|
|
1010
|
-
var SUserRelationCampaignIds =
|
|
1011
|
-
utm_ids:
|
|
1003
|
+
var SUserRelationCampaignIds = v44.object({
|
|
1004
|
+
utm_ids: v44.optional(v44.array(SCampaignIdDocument))
|
|
1012
1005
|
});
|
|
1013
|
-
var SUserRelationCampaignPhases =
|
|
1014
|
-
utm_campaign_phases:
|
|
1006
|
+
var SUserRelationCampaignPhases = v44.object({
|
|
1007
|
+
utm_campaign_phases: v44.optional(v44.array(SCampaignPhaseDocument))
|
|
1015
1008
|
});
|
|
1016
|
-
var SUserRelationCampaignProducts =
|
|
1017
|
-
utm_campaign_products:
|
|
1009
|
+
var SUserRelationCampaignProducts = v44.object({
|
|
1010
|
+
utm_campaign_products: v44.optional(v44.array(SCampaignProductDocument))
|
|
1018
1011
|
});
|
|
1019
|
-
var SUserRelationCampaignKeys =
|
|
1020
|
-
utm_campaign_keys:
|
|
1012
|
+
var SUserRelationCampaignKeys = v44.object({
|
|
1013
|
+
utm_campaign_keys: v44.optional(v44.array(SCampaignKeyDocument))
|
|
1021
1014
|
});
|
|
1022
|
-
var SUserRelationContents =
|
|
1023
|
-
utm_contents:
|
|
1015
|
+
var SUserRelationContents = v44.object({
|
|
1016
|
+
utm_contents: v44.optional(v44.array(SContentDocument))
|
|
1024
1017
|
});
|
|
1025
|
-
var SUserRelationCreativeFormats =
|
|
1026
|
-
utm_creative_formats:
|
|
1018
|
+
var SUserRelationCreativeFormats = v44.object({
|
|
1019
|
+
utm_creative_formats: v44.optional(v44.array(SCreativeFormatDocument))
|
|
1027
1020
|
});
|
|
1028
|
-
var SUserRelationCreativeFormatVariants =
|
|
1029
|
-
utm_creative_format_variants:
|
|
1021
|
+
var SUserRelationCreativeFormatVariants = v44.object({
|
|
1022
|
+
utm_creative_format_variants: v44.optional(v44.array(SCreativeFormatVariantDocument))
|
|
1030
1023
|
});
|
|
1031
|
-
var SUserRelationTerms =
|
|
1032
|
-
utm_terms:
|
|
1024
|
+
var SUserRelationTerms = v44.object({
|
|
1025
|
+
utm_terms: v44.optional(v44.array(STermDocument))
|
|
1033
1026
|
});
|
|
1034
|
-
var SUserRelationsDocument =
|
|
1027
|
+
var SUserRelationsDocument = v44.intersect([
|
|
1035
1028
|
SUserRelationRole,
|
|
1036
1029
|
SBaseRelationGroups,
|
|
1037
1030
|
SUserRelationAuthorizedGroups,
|
|
@@ -1050,46 +1043,46 @@ var SUserRelationsDocument = v47.intersect([
|
|
|
1050
1043
|
]);
|
|
1051
1044
|
|
|
1052
1045
|
// src/entities/group/group.relations.ts
|
|
1053
|
-
var SGroupRelationAuthorizedUsers =
|
|
1054
|
-
authorized_users:
|
|
1046
|
+
var SGroupRelationAuthorizedUsers = v44.object({
|
|
1047
|
+
authorized_users: v44.optional(v44.array(SUserDocument))
|
|
1055
1048
|
});
|
|
1056
|
-
var SGroupRelationWebsites =
|
|
1057
|
-
websites:
|
|
1049
|
+
var SGroupRelationWebsites = v44.object({
|
|
1050
|
+
websites: v44.optional(SWebsiteDocument)
|
|
1058
1051
|
});
|
|
1059
|
-
var SGroupRelationTrackingLinks =
|
|
1060
|
-
tracking_links:
|
|
1052
|
+
var SGroupRelationTrackingLinks = v44.object({
|
|
1053
|
+
tracking_links: v44.optional(v44.array(STrackingLinkDocument))
|
|
1061
1054
|
});
|
|
1062
|
-
var SGroupRelationSources =
|
|
1063
|
-
utm_sources:
|
|
1055
|
+
var SGroupRelationSources = v44.object({
|
|
1056
|
+
utm_sources: v44.optional(v44.array(SSourceDocument))
|
|
1064
1057
|
});
|
|
1065
|
-
var SGroupRelationMediums =
|
|
1066
|
-
utm_mediums:
|
|
1058
|
+
var SGroupRelationMediums = v44.object({
|
|
1059
|
+
utm_mediums: v44.optional(v44.array(SMediumDocument))
|
|
1067
1060
|
});
|
|
1068
|
-
var SGroupRelationCampaignIds =
|
|
1069
|
-
utm_ids:
|
|
1061
|
+
var SGroupRelationCampaignIds = v44.object({
|
|
1062
|
+
utm_ids: v44.optional(v44.array(SCampaignIdDocument))
|
|
1070
1063
|
});
|
|
1071
|
-
var SGroupRelationCampaignPhases =
|
|
1072
|
-
utm_campaign_phases:
|
|
1064
|
+
var SGroupRelationCampaignPhases = v44.object({
|
|
1065
|
+
utm_campaign_phases: v44.optional(v44.array(SCampaignPhaseDocument))
|
|
1073
1066
|
});
|
|
1074
|
-
var SGroupRelationCampaignProducts =
|
|
1075
|
-
utm_campaign_products:
|
|
1067
|
+
var SGroupRelationCampaignProducts = v44.object({
|
|
1068
|
+
utm_campaign_products: v44.optional(v44.array(SCampaignProductDocument))
|
|
1076
1069
|
});
|
|
1077
|
-
var SGroupRelationCampaignKeys =
|
|
1078
|
-
utm_campaign_keys:
|
|
1070
|
+
var SGroupRelationCampaignKeys = v44.object({
|
|
1071
|
+
utm_campaign_keys: v44.optional(v44.array(SCampaignKeyDocument))
|
|
1079
1072
|
});
|
|
1080
|
-
var SGroupRelationContents =
|
|
1081
|
-
utm_contents:
|
|
1073
|
+
var SGroupRelationContents = v44.object({
|
|
1074
|
+
utm_contents: v44.optional(v44.array(SBaseContentDocument))
|
|
1082
1075
|
});
|
|
1083
|
-
var SGroupRelationCreativeFormats =
|
|
1084
|
-
utm_creative_formats:
|
|
1076
|
+
var SGroupRelationCreativeFormats = v44.object({
|
|
1077
|
+
utm_creative_formats: v44.optional(v44.array(SCreativeFormatDocument))
|
|
1085
1078
|
});
|
|
1086
|
-
var SGroupRelationCreativeFormatVariants =
|
|
1087
|
-
utm_creative_format_variants:
|
|
1079
|
+
var SGroupRelationCreativeFormatVariants = v44.object({
|
|
1080
|
+
utm_creative_format_variants: v44.optional(v44.array(SCreativeFormatVariantDocument))
|
|
1088
1081
|
});
|
|
1089
|
-
var SGroupRelationTerms =
|
|
1090
|
-
utm_terms:
|
|
1082
|
+
var SGroupRelationTerms = v44.object({
|
|
1083
|
+
utm_terms: v44.optional(v44.array(STermDocument))
|
|
1091
1084
|
});
|
|
1092
|
-
var SGroupRelationsDocument =
|
|
1085
|
+
var SGroupRelationsDocument = v44.intersect([
|
|
1093
1086
|
SBaseRelationCreator,
|
|
1094
1087
|
SGroupRelationAuthorizedUsers,
|
|
1095
1088
|
SGroupRelationTrackingLinks,
|
|
@@ -1107,63 +1100,63 @@ var SGroupRelationsDocument = v47.intersect([
|
|
|
1107
1100
|
]);
|
|
1108
1101
|
|
|
1109
1102
|
// src/entities/base/base.relations.ts
|
|
1110
|
-
var SBaseRelationUser =
|
|
1111
|
-
user:
|
|
1103
|
+
var SBaseRelationUser = v44.object({
|
|
1104
|
+
user: v44.optional(SUserDocument)
|
|
1112
1105
|
});
|
|
1113
|
-
var SBaseRelationReqUser =
|
|
1106
|
+
var SBaseRelationReqUser = v44.object({
|
|
1114
1107
|
user: SUserDocument
|
|
1115
1108
|
});
|
|
1116
|
-
var SBaseRelationUsers =
|
|
1117
|
-
users:
|
|
1109
|
+
var SBaseRelationUsers = v44.object({
|
|
1110
|
+
users: v44.optional(v44.array(SUserDocument))
|
|
1118
1111
|
});
|
|
1119
|
-
var SBaseRelationReqUsers =
|
|
1120
|
-
users:
|
|
1112
|
+
var SBaseRelationReqUsers = v44.object({
|
|
1113
|
+
users: v44.array(SUserDocument)
|
|
1121
1114
|
});
|
|
1122
|
-
var SBaseRelationCreator =
|
|
1123
|
-
creator:
|
|
1115
|
+
var SBaseRelationCreator = v44.object({
|
|
1116
|
+
creator: v44.optional(SUserDocument)
|
|
1124
1117
|
});
|
|
1125
|
-
var SBaseRelationReqCreator =
|
|
1118
|
+
var SBaseRelationReqCreator = v44.object({
|
|
1126
1119
|
creator: SUserDocument
|
|
1127
1120
|
});
|
|
1128
|
-
var SBaseRelationGroup =
|
|
1129
|
-
group:
|
|
1121
|
+
var SBaseRelationGroup = v44.object({
|
|
1122
|
+
group: v44.optional(SGroupDocument)
|
|
1130
1123
|
});
|
|
1131
|
-
var SBaseRelationReqGroup =
|
|
1124
|
+
var SBaseRelationReqGroup = v44.object({
|
|
1132
1125
|
group: SGroupDocument
|
|
1133
1126
|
});
|
|
1134
|
-
var SBaseRelationGroups =
|
|
1135
|
-
groups:
|
|
1127
|
+
var SBaseRelationGroups = v44.object({
|
|
1128
|
+
groups: v44.optional(v44.array(SGroupDocument))
|
|
1136
1129
|
});
|
|
1137
|
-
var SBaseRelationReqGroups =
|
|
1138
|
-
groups:
|
|
1130
|
+
var SBaseRelationReqGroups = v44.object({
|
|
1131
|
+
groups: v44.array(SGroupDocument)
|
|
1139
1132
|
});
|
|
1140
|
-
var SBaseDocument =
|
|
1141
|
-
id:
|
|
1133
|
+
var SBaseDocument = v44.object({
|
|
1134
|
+
id: v44.number(),
|
|
1142
1135
|
documentId: IsValidReferenceDocumentId,
|
|
1143
|
-
publishedAt:
|
|
1144
|
-
createdAt:
|
|
1145
|
-
updatedAt:
|
|
1136
|
+
publishedAt: v44.optional(v44.string()),
|
|
1137
|
+
createdAt: v44.string(),
|
|
1138
|
+
updatedAt: v44.string()
|
|
1146
1139
|
});
|
|
1147
|
-
var SBaseCostDocument =
|
|
1140
|
+
var SBaseCostDocument = v44.object({
|
|
1148
1141
|
cost: IsValidCost
|
|
1149
1142
|
});
|
|
1150
|
-
var SBaseUtmParamDocument =
|
|
1143
|
+
var SBaseUtmParamDocument = v44.object({
|
|
1151
1144
|
label: IsValidLabel,
|
|
1152
1145
|
value: IsValidValue,
|
|
1153
1146
|
description: IsValidDescription,
|
|
1154
1147
|
is_active: IsValidIsActive
|
|
1155
1148
|
});
|
|
1156
|
-
var SBaseGroupUserDocument =
|
|
1149
|
+
var SBaseGroupUserDocument = v44.object({
|
|
1157
1150
|
scopes: IsValidGroupUserScopes
|
|
1158
1151
|
});
|
|
1159
1152
|
|
|
1160
1153
|
// src/entities/group-user/group-user.document.ts
|
|
1161
|
-
var SGroupUserDocument =
|
|
1162
|
-
var SGroupUserRelationsDocument =
|
|
1154
|
+
var SGroupUserDocument = v44.intersect([SBaseDocument, SBaseGroupUserDocument]);
|
|
1155
|
+
var SGroupUserRelationsDocument = v44.intersect([
|
|
1163
1156
|
SBaseRelationUser,
|
|
1164
1157
|
SBaseRelationGroup
|
|
1165
1158
|
]);
|
|
1166
|
-
var SGroupUserRelationsReqDocument =
|
|
1159
|
+
var SGroupUserRelationsReqDocument = v44.intersect([
|
|
1167
1160
|
SBaseRelationReqUser,
|
|
1168
1161
|
SBaseRelationReqGroup
|
|
1169
1162
|
]);
|
|
@@ -1176,103 +1169,103 @@ var SUtmLinkBuilderPartCampaignDateOptions = [
|
|
|
1176
1169
|
"on a specific date",
|
|
1177
1170
|
"no date"
|
|
1178
1171
|
];
|
|
1179
|
-
var SUtmLinkBuilderTableForm =
|
|
1172
|
+
var SUtmLinkBuilderTableForm = v44.object({
|
|
1180
1173
|
creator: IsValidReferenceDocumentId,
|
|
1181
1174
|
client: IsValidReferenceDocumentId,
|
|
1182
|
-
url_destinations:
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1175
|
+
url_destinations: v44.pipe(
|
|
1176
|
+
v44.array(IsValidUrlDestination),
|
|
1177
|
+
v44.minLength(1, "Please provide at least one destination URL."),
|
|
1178
|
+
v44.maxLength(100, "You can provide up to 100 destination URLs.")
|
|
1186
1179
|
),
|
|
1187
|
-
sources:
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1180
|
+
sources: v44.pipe(
|
|
1181
|
+
v44.array(SSourceDocument),
|
|
1182
|
+
v44.minLength(1, "Please select at least one source."),
|
|
1183
|
+
v44.maxLength(10, "You can select up to 10 sources.")
|
|
1191
1184
|
),
|
|
1192
|
-
mediums:
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1185
|
+
mediums: v44.pipe(
|
|
1186
|
+
v44.array(SMediumDocument),
|
|
1187
|
+
v44.minLength(1, "Please select at least one medium."),
|
|
1188
|
+
v44.maxLength(10, "You can select up to 10 mediums.")
|
|
1196
1189
|
),
|
|
1197
|
-
campaign:
|
|
1190
|
+
campaign: v44.object({
|
|
1198
1191
|
campaign_phase: SCampaignPhaseDocument,
|
|
1199
|
-
campaign_product:
|
|
1192
|
+
campaign_product: v44.optional(SCampaignProductDocument),
|
|
1200
1193
|
// campaign_targeting: v.optional(v.array()),
|
|
1201
|
-
campaign_key:
|
|
1202
|
-
campaign_date:
|
|
1203
|
-
format:
|
|
1194
|
+
campaign_key: v44.optional(SCampaignKeyDocument),
|
|
1195
|
+
campaign_date: v44.object({
|
|
1196
|
+
format: v44.picklist(
|
|
1204
1197
|
SUtmLinkBuilderPartCampaignDateOptions,
|
|
1205
1198
|
"Please select a valid campaign date format."
|
|
1206
1199
|
),
|
|
1207
|
-
value:
|
|
1208
|
-
year:
|
|
1209
|
-
quarter:
|
|
1210
|
-
month:
|
|
1211
|
-
day:
|
|
1200
|
+
value: v44.object({
|
|
1201
|
+
year: v44.number("Please provide a valid year."),
|
|
1202
|
+
quarter: v44.optional(v44.number()),
|
|
1203
|
+
month: v44.optional(v44.number()),
|
|
1204
|
+
day: v44.optional(v44.number())
|
|
1212
1205
|
})
|
|
1213
1206
|
})
|
|
1214
1207
|
}),
|
|
1215
|
-
content:
|
|
1216
|
-
creative_formats:
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
creative_format:
|
|
1221
|
-
creative_format_variants:
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1208
|
+
content: v44.optional(SContentDocument),
|
|
1209
|
+
creative_formats: v44.optional(
|
|
1210
|
+
v44.pipe(
|
|
1211
|
+
v44.array(
|
|
1212
|
+
v44.object({
|
|
1213
|
+
creative_format: v44.optional(SCreativeFormatDocument),
|
|
1214
|
+
creative_format_variants: v44.optional(
|
|
1215
|
+
v44.pipe(
|
|
1216
|
+
v44.array(SCreativeFormatVariantDocument),
|
|
1217
|
+
v44.minLength(1, "Please select at least one creative format variations."),
|
|
1218
|
+
v44.maxLength(10, "You can select up to 10 creative format variations.")
|
|
1226
1219
|
)
|
|
1227
1220
|
)
|
|
1228
1221
|
})
|
|
1229
1222
|
),
|
|
1230
|
-
|
|
1231
|
-
|
|
1223
|
+
v44.minLength(1, "Please select at least one creative format."),
|
|
1224
|
+
v44.maxLength(10, "You can select up to 10 creative formats.")
|
|
1232
1225
|
)
|
|
1233
1226
|
),
|
|
1234
|
-
id:
|
|
1227
|
+
id: v44.optional(SCampaignIdDocument)
|
|
1235
1228
|
});
|
|
1236
|
-
var SStripeCheckoutLineItem =
|
|
1229
|
+
var SStripeCheckoutLineItem = v44.object({
|
|
1237
1230
|
price: IsValidPriceId,
|
|
1238
|
-
quantity:
|
|
1231
|
+
quantity: v44.pipe(v44.number(), v44.minValue(1), v44.maxValue(1))
|
|
1239
1232
|
});
|
|
1240
|
-
var SStripeCheckoutCreateSession =
|
|
1241
|
-
line_items:
|
|
1242
|
-
mode:
|
|
1233
|
+
var SStripeCheckoutCreateSession = v44.object({
|
|
1234
|
+
line_items: v44.pipe(v44.array(SStripeCheckoutLineItem), v44.minLength(1), v44.maxLength(10)),
|
|
1235
|
+
mode: v44.picklist(["payment", "subscription"]),
|
|
1243
1236
|
success_url: IsValidOrUndefinedUrlDestination,
|
|
1244
1237
|
cancel_url: IsValidOrUndefinedUrlDestination
|
|
1245
1238
|
});
|
|
1246
|
-
var SQueryListTrackingLinkDocuments =
|
|
1239
|
+
var SQueryListTrackingLinkDocuments = v44.object({
|
|
1247
1240
|
documentId: IsValidReferenceDocumentId,
|
|
1248
1241
|
page: IsValidMinPage,
|
|
1249
|
-
size:
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1242
|
+
size: v44.fallback(
|
|
1243
|
+
v44.optional(
|
|
1244
|
+
v44.pipe(
|
|
1245
|
+
v44.number(),
|
|
1246
|
+
v44.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1247
|
+
v44.maxValue(TRACKING_LINK_PAGINATION_MAX_SIZE_LIMIT)
|
|
1255
1248
|
),
|
|
1256
1249
|
TRACKING_LINK_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1257
1250
|
),
|
|
1258
1251
|
TRACKING_LINK_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1259
1252
|
),
|
|
1260
|
-
is_active:
|
|
1261
|
-
destination:
|
|
1262
|
-
protocol:
|
|
1263
|
-
domain:
|
|
1264
|
-
path:
|
|
1265
|
-
query:
|
|
1266
|
-
fragment:
|
|
1267
|
-
utm_source:
|
|
1268
|
-
utm_medium:
|
|
1269
|
-
utm_campaign:
|
|
1270
|
-
utm_creative_format:
|
|
1271
|
-
utm_content:
|
|
1272
|
-
utm_term:
|
|
1273
|
-
utm_id:
|
|
1274
|
-
});
|
|
1275
|
-
var SCreateTrackingLinkDocument =
|
|
1253
|
+
is_active: v44.fallback(v44.optional(IsValidIsActive), true),
|
|
1254
|
+
destination: v44.optional(IsValidUrlDestination),
|
|
1255
|
+
protocol: v44.optional(IsValidUrlProtocol),
|
|
1256
|
+
domain: v44.optional(IsValidUrlDomain),
|
|
1257
|
+
path: v44.optional(IsValidUrlPath),
|
|
1258
|
+
query: v44.optional(IsValidUrlQuery),
|
|
1259
|
+
fragment: v44.optional(IsValidUrlFragment),
|
|
1260
|
+
utm_source: v44.optional(IsValidUrlUtmSource),
|
|
1261
|
+
utm_medium: v44.optional(IsValidUrlUtmMedium),
|
|
1262
|
+
utm_campaign: v44.optional(IsValidUrlUtmCampaign),
|
|
1263
|
+
utm_creative_format: v44.optional(IsValidUrlUtmCreativeFormat),
|
|
1264
|
+
utm_content: v44.optional(IsValidUrlUtmContent),
|
|
1265
|
+
utm_term: v44.optional(IsValidUrlUtmTerm),
|
|
1266
|
+
utm_id: v44.optional(IsValidUrlUtmId)
|
|
1267
|
+
});
|
|
1268
|
+
var SCreateTrackingLinkDocument = v44.object({
|
|
1276
1269
|
is_active: IsValidIsActive,
|
|
1277
1270
|
destination: IsValidUrlDestination,
|
|
1278
1271
|
protocol: IsValidUrlProtocol,
|
|
@@ -1288,17 +1281,17 @@ var SCreateTrackingLinkDocument = v47.object({
|
|
|
1288
1281
|
utm_term: IsValidUrlUtmTerm,
|
|
1289
1282
|
utm_id: IsValidUrlUtmId
|
|
1290
1283
|
});
|
|
1291
|
-
var SCreateTrackingLinkDocumentRequest =
|
|
1284
|
+
var SCreateTrackingLinkDocumentRequest = v44.object({
|
|
1292
1285
|
documentId: IsValidReferenceDocumentId,
|
|
1293
1286
|
data: SCreateTrackingLinkDocument
|
|
1294
1287
|
});
|
|
1295
|
-
var SReadTrackingLinkDocumentById =
|
|
1288
|
+
var SReadTrackingLinkDocumentById = v44.object({
|
|
1296
1289
|
id: IsValidReferenceId
|
|
1297
1290
|
});
|
|
1298
|
-
var SReadTrackingLinkDocumentByDocumentId =
|
|
1291
|
+
var SReadTrackingLinkDocumentByDocumentId = v44.object({
|
|
1299
1292
|
documentId: IsValidReferenceDocumentId
|
|
1300
1293
|
});
|
|
1301
|
-
var SUpdateAsCreatorTrackingLinkDocument =
|
|
1294
|
+
var SUpdateAsCreatorTrackingLinkDocument = v44.object({
|
|
1302
1295
|
is_active: IsValidOrUndefinedUrlDestination,
|
|
1303
1296
|
destination: IsValidOrUndefinedUrlDestination,
|
|
1304
1297
|
protocol: IsValidOrUndefinedUrlProtocol,
|
|
@@ -1314,11 +1307,11 @@ var SUpdateAsCreatorTrackingLinkDocument = v47.object({
|
|
|
1314
1307
|
utm_term: IsValidOrUndefinedUrlUtmTerm,
|
|
1315
1308
|
utm_id: IsValidOrUndefinedUrlUtmId
|
|
1316
1309
|
});
|
|
1317
|
-
var SUpdateAsCreatorTrackingLinkDocumentRequest =
|
|
1310
|
+
var SUpdateAsCreatorTrackingLinkDocumentRequest = v44.object({
|
|
1318
1311
|
documentId: IsValidReferenceDocumentId,
|
|
1319
1312
|
data: SUpdateAsCreatorTrackingLinkDocument
|
|
1320
1313
|
});
|
|
1321
|
-
var SUpdateAsInvitedTrackingLinkDocument =
|
|
1314
|
+
var SUpdateAsInvitedTrackingLinkDocument = v44.object({
|
|
1322
1315
|
is_active: IsValidOrUndefinedUrlDestination,
|
|
1323
1316
|
destination: IsValidOrUndefinedUrlDestination,
|
|
1324
1317
|
protocol: IsValidOrUndefinedUrlProtocol,
|
|
@@ -1334,26 +1327,26 @@ var SUpdateAsInvitedTrackingLinkDocument = v47.object({
|
|
|
1334
1327
|
utm_term: IsValidOrUndefinedUrlUtmTerm,
|
|
1335
1328
|
utm_id: IsValidOrUndefinedUrlUtmId
|
|
1336
1329
|
});
|
|
1337
|
-
var SUpdateAsInvitedTrackingLinkDocumentRequest =
|
|
1330
|
+
var SUpdateAsInvitedTrackingLinkDocumentRequest = v44.object({
|
|
1338
1331
|
documentId: IsValidReferenceDocumentId,
|
|
1339
1332
|
data: SUpdateAsInvitedTrackingLinkDocument
|
|
1340
1333
|
});
|
|
1341
|
-
var SUpdateTrackingLinkDocumentRequest =
|
|
1334
|
+
var SUpdateTrackingLinkDocumentRequest = v44.union([
|
|
1342
1335
|
SUpdateAsCreatorTrackingLinkDocument,
|
|
1343
1336
|
SUpdateAsInvitedTrackingLinkDocument
|
|
1344
1337
|
]);
|
|
1345
|
-
var SDeleteTrackingLinkDocument =
|
|
1338
|
+
var SDeleteTrackingLinkDocument = v44.object({
|
|
1346
1339
|
documentId: IsValidReferenceDocumentId
|
|
1347
1340
|
});
|
|
1348
|
-
var SQueryListUserAccountDocuments =
|
|
1341
|
+
var SQueryListUserAccountDocuments = v44.object({
|
|
1349
1342
|
documentId: IsValidReferenceDocumentId,
|
|
1350
1343
|
page: IsValidMinPage,
|
|
1351
|
-
size:
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1344
|
+
size: v44.fallback(
|
|
1345
|
+
v44.optional(
|
|
1346
|
+
v44.pipe(
|
|
1347
|
+
v44.number(),
|
|
1348
|
+
v44.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1349
|
+
v44.maxValue(USER_ACCOUNT_PAGINATION_MAX_SIZE_LIMIT)
|
|
1357
1350
|
),
|
|
1358
1351
|
USER_ACCOUNT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1359
1352
|
),
|
|
@@ -1369,7 +1362,7 @@ var SQueryListUserAccountDocuments = v47.object({
|
|
|
1369
1362
|
trial_period_end_after: IsValidOrUndefinedTrialPeriodEnd,
|
|
1370
1363
|
trial_period_end_before: IsValidOrUndefinedTrialPeriodEnd
|
|
1371
1364
|
});
|
|
1372
|
-
var SCreateUserAccountDocument =
|
|
1365
|
+
var SCreateUserAccountDocument = v44.object({
|
|
1373
1366
|
customer_id: IsValidOrUndefinedCustomerId,
|
|
1374
1367
|
subscription_id: IsValidOrUndefinedSubscriptionId,
|
|
1375
1368
|
subscription_status: IsValidSubscriptionStatus,
|
|
@@ -1377,13 +1370,13 @@ var SCreateUserAccountDocument = v47.object({
|
|
|
1377
1370
|
current_period_end: IsValidCurrentPeriodEnd,
|
|
1378
1371
|
trial_period_end: IsValidOrUndefinedTrialPeriodEnd
|
|
1379
1372
|
});
|
|
1380
|
-
var SReadUserAccountDocumentById =
|
|
1373
|
+
var SReadUserAccountDocumentById = v44.object({
|
|
1381
1374
|
id: IsValidReferenceId
|
|
1382
1375
|
});
|
|
1383
|
-
var SReadUserAccountDocumentByDocumentId =
|
|
1376
|
+
var SReadUserAccountDocumentByDocumentId = v44.object({
|
|
1384
1377
|
documentId: IsValidReferenceDocumentId
|
|
1385
1378
|
});
|
|
1386
|
-
var SUpdateUserAccountDocument =
|
|
1379
|
+
var SUpdateUserAccountDocument = v44.object({
|
|
1387
1380
|
customer_id: IsValidOrUndefinedCustomerId,
|
|
1388
1381
|
subscription_id: IsValidOrUndefinedSubscriptionId,
|
|
1389
1382
|
subscription_status: IsValidOrUndefinedSubscriptionStatus,
|
|
@@ -1391,732 +1384,732 @@ var SUpdateUserAccountDocument = v47.object({
|
|
|
1391
1384
|
current_period_end: IsValidOrUndefinedCurrentPeriodEnd,
|
|
1392
1385
|
trial_period_end: IsValidOrUndefinedTrialPeriodEnd
|
|
1393
1386
|
});
|
|
1394
|
-
var SQueryListUserLimitationDocuments =
|
|
1387
|
+
var SQueryListUserLimitationDocuments = v44.object({
|
|
1395
1388
|
documentId: IsValidReferenceDocumentId,
|
|
1396
1389
|
page: IsValidMinPage,
|
|
1397
|
-
size:
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1390
|
+
size: v44.fallback(
|
|
1391
|
+
v44.optional(
|
|
1392
|
+
v44.pipe(
|
|
1393
|
+
v44.number(),
|
|
1394
|
+
v44.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1395
|
+
v44.maxValue(USER_LIMITATION_PAGINATION_MAX_SIZE_LIMIT)
|
|
1403
1396
|
),
|
|
1404
1397
|
USER_LIMITATION_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1405
1398
|
),
|
|
1406
1399
|
USER_LIMITATION_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1407
1400
|
)
|
|
1408
1401
|
});
|
|
1409
|
-
var SCreateUserLimitationsDocument =
|
|
1410
|
-
limit_groups:
|
|
1411
|
-
limit_group_users:
|
|
1412
|
-
limit_websites:
|
|
1413
|
-
limit_tracking_links:
|
|
1414
|
-
limit_sources:
|
|
1415
|
-
limit_mediums:
|
|
1416
|
-
limit_campaign_ids:
|
|
1417
|
-
limit_campaign_keys:
|
|
1418
|
-
limit_campaign_phases:
|
|
1419
|
-
limit_campaign_products:
|
|
1420
|
-
limit_contents:
|
|
1421
|
-
limit_creative_formats:
|
|
1422
|
-
limit_creative_format_variants:
|
|
1423
|
-
limit_terms:
|
|
1424
|
-
});
|
|
1425
|
-
var SReadUserLimitationsDocumentById =
|
|
1402
|
+
var SCreateUserLimitationsDocument = v44.object({
|
|
1403
|
+
limit_groups: v44.number(),
|
|
1404
|
+
limit_group_users: v44.number(),
|
|
1405
|
+
limit_websites: v44.number(),
|
|
1406
|
+
limit_tracking_links: v44.number(),
|
|
1407
|
+
limit_sources: v44.number(),
|
|
1408
|
+
limit_mediums: v44.number(),
|
|
1409
|
+
limit_campaign_ids: v44.number(),
|
|
1410
|
+
limit_campaign_keys: v44.number(),
|
|
1411
|
+
limit_campaign_phases: v44.number(),
|
|
1412
|
+
limit_campaign_products: v44.number(),
|
|
1413
|
+
limit_contents: v44.number(),
|
|
1414
|
+
limit_creative_formats: v44.number(),
|
|
1415
|
+
limit_creative_format_variants: v44.number(),
|
|
1416
|
+
limit_terms: v44.number()
|
|
1417
|
+
});
|
|
1418
|
+
var SReadUserLimitationsDocumentById = v44.object({
|
|
1426
1419
|
id: IsValidReferenceId
|
|
1427
1420
|
});
|
|
1428
|
-
var SReadUserLimitationsDocumentByDocumentId =
|
|
1421
|
+
var SReadUserLimitationsDocumentByDocumentId = v44.object({
|
|
1429
1422
|
documentId: IsValidReferenceDocumentId
|
|
1430
1423
|
});
|
|
1431
|
-
var SUpdateUserLimitationsDocument =
|
|
1432
|
-
limit_groups:
|
|
1433
|
-
limit_group_users:
|
|
1434
|
-
limit_websites:
|
|
1435
|
-
limit_tracking_links:
|
|
1436
|
-
limit_sources:
|
|
1437
|
-
limit_mediums:
|
|
1438
|
-
limit_campaign_ids:
|
|
1439
|
-
limit_campaign_keys:
|
|
1440
|
-
limit_campaign_phases:
|
|
1441
|
-
limit_campaign_products:
|
|
1442
|
-
limit_contents:
|
|
1443
|
-
limit_creative_formats:
|
|
1444
|
-
limit_creative_format_variants:
|
|
1445
|
-
limit_terms:
|
|
1446
|
-
});
|
|
1447
|
-
var SQueryListUserDocuments =
|
|
1424
|
+
var SUpdateUserLimitationsDocument = v44.object({
|
|
1425
|
+
limit_groups: v44.undefinedable(v44.number()),
|
|
1426
|
+
limit_group_users: v44.undefinedable(v44.number()),
|
|
1427
|
+
limit_websites: v44.undefinedable(v44.number()),
|
|
1428
|
+
limit_tracking_links: v44.undefinedable(v44.number()),
|
|
1429
|
+
limit_sources: v44.undefinedable(v44.number()),
|
|
1430
|
+
limit_mediums: v44.undefinedable(v44.number()),
|
|
1431
|
+
limit_campaign_ids: v44.undefinedable(v44.number()),
|
|
1432
|
+
limit_campaign_keys: v44.undefinedable(v44.number()),
|
|
1433
|
+
limit_campaign_phases: v44.undefinedable(v44.number()),
|
|
1434
|
+
limit_campaign_products: v44.undefinedable(v44.number()),
|
|
1435
|
+
limit_contents: v44.undefinedable(v44.number()),
|
|
1436
|
+
limit_creative_formats: v44.undefinedable(v44.number()),
|
|
1437
|
+
limit_creative_format_variants: v44.undefinedable(v44.number()),
|
|
1438
|
+
limit_terms: v44.undefinedable(v44.number())
|
|
1439
|
+
});
|
|
1440
|
+
var SQueryListUserDocuments = v44.object({
|
|
1448
1441
|
page: IsValidMinPage,
|
|
1449
|
-
size:
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1442
|
+
size: v44.fallback(
|
|
1443
|
+
v44.optional(
|
|
1444
|
+
v44.pipe(
|
|
1445
|
+
v44.number(),
|
|
1446
|
+
v44.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1447
|
+
v44.maxValue(USER_PAGINATION_MAX_SIZE_LIMIT)
|
|
1455
1448
|
),
|
|
1456
1449
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1457
1450
|
),
|
|
1458
1451
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1459
1452
|
)
|
|
1460
1453
|
});
|
|
1461
|
-
var SQueryListUserDocumentsByIdentifier =
|
|
1462
|
-
identifier:
|
|
1454
|
+
var SQueryListUserDocumentsByIdentifier = v44.object({
|
|
1455
|
+
identifier: v44.pipe(v44.string(), v44.maxLength(255)),
|
|
1463
1456
|
page: IsValidMinPage,
|
|
1464
|
-
size:
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1457
|
+
size: v44.fallback(
|
|
1458
|
+
v44.optional(
|
|
1459
|
+
v44.pipe(
|
|
1460
|
+
v44.number(),
|
|
1461
|
+
v44.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1462
|
+
v44.maxValue(USER_PAGINATION_MAX_SIZE_LIMIT)
|
|
1470
1463
|
),
|
|
1471
1464
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1472
1465
|
),
|
|
1473
1466
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1474
1467
|
)
|
|
1475
1468
|
});
|
|
1476
|
-
var SReadUserDocumentById =
|
|
1469
|
+
var SReadUserDocumentById = v44.object({
|
|
1477
1470
|
id: IsValidReferenceId
|
|
1478
1471
|
});
|
|
1479
|
-
var SReadUserDocumentByDocumentId =
|
|
1472
|
+
var SReadUserDocumentByDocumentId = v44.object({
|
|
1480
1473
|
documentId: IsValidReferenceDocumentId
|
|
1481
1474
|
});
|
|
1482
|
-
var SQueryListCampaignIdDocuments =
|
|
1475
|
+
var SQueryListCampaignIdDocuments = v44.object({
|
|
1483
1476
|
documentId: IsValidReferenceDocumentId,
|
|
1484
1477
|
page: IsValidMinPage,
|
|
1485
|
-
size:
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1478
|
+
size: v44.fallback(
|
|
1479
|
+
v44.optional(
|
|
1480
|
+
v44.pipe(
|
|
1481
|
+
v44.number(),
|
|
1482
|
+
v44.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1483
|
+
v44.maxValue(CAMPAIGN_ID_PAGINATION_MAX_SIZE_LIMIT)
|
|
1491
1484
|
),
|
|
1492
1485
|
CAMPAIGN_ID_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1493
1486
|
),
|
|
1494
1487
|
CAMPAIGN_ID_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1495
1488
|
)
|
|
1496
1489
|
});
|
|
1497
|
-
var SCreateCampaignIdDocument =
|
|
1490
|
+
var SCreateCampaignIdDocument = v44.object({
|
|
1498
1491
|
cost: IsValidCost,
|
|
1499
1492
|
label: IsValidLabel,
|
|
1500
1493
|
value: IsValidValue,
|
|
1501
1494
|
description: IsValidDescription,
|
|
1502
1495
|
is_active: IsValidIsActive
|
|
1503
1496
|
});
|
|
1504
|
-
var SCreateCampaignIdDocumentRequest =
|
|
1497
|
+
var SCreateCampaignIdDocumentRequest = v44.object({
|
|
1505
1498
|
documentId: IsValidReferenceDocumentId,
|
|
1506
1499
|
data: SCreateCampaignIdDocument
|
|
1507
1500
|
});
|
|
1508
|
-
var SReadCampaignIdDocumentById =
|
|
1501
|
+
var SReadCampaignIdDocumentById = v44.object({
|
|
1509
1502
|
id: IsValidReferenceId
|
|
1510
1503
|
});
|
|
1511
|
-
var SReadCampaignIdDocumentByDocumentId =
|
|
1504
|
+
var SReadCampaignIdDocumentByDocumentId = v44.object({
|
|
1512
1505
|
documentId: IsValidReferenceDocumentId
|
|
1513
1506
|
});
|
|
1514
|
-
var SUpdateAsCreatorCampaignIdDocument =
|
|
1507
|
+
var SUpdateAsCreatorCampaignIdDocument = v44.object({
|
|
1515
1508
|
cost: IsValidOrUndefinedCost,
|
|
1516
1509
|
label: IsValidOrUndefinedLabel,
|
|
1517
1510
|
value: IsValidOrUndefinedValue,
|
|
1518
1511
|
description: IsValidDescription,
|
|
1519
1512
|
is_active: IsValidOrUndefinedIsActive
|
|
1520
1513
|
});
|
|
1521
|
-
var SUpdateAsCreatorCampaignIdDocumentRequest =
|
|
1514
|
+
var SUpdateAsCreatorCampaignIdDocumentRequest = v44.object({
|
|
1522
1515
|
documentId: IsValidReferenceDocumentId,
|
|
1523
1516
|
data: SUpdateAsCreatorCampaignIdDocument
|
|
1524
1517
|
});
|
|
1525
|
-
var SUpdateAsInvitedCampaignIdDocument =
|
|
1518
|
+
var SUpdateAsInvitedCampaignIdDocument = v44.object({
|
|
1526
1519
|
label: IsValidOrUndefinedLabel,
|
|
1527
1520
|
description: IsValidDescription,
|
|
1528
1521
|
is_active: IsValidOrUndefinedIsActive
|
|
1529
1522
|
});
|
|
1530
|
-
var SUpdateAsInvitedCampaignIdDocumentRequest =
|
|
1523
|
+
var SUpdateAsInvitedCampaignIdDocumentRequest = v44.object({
|
|
1531
1524
|
documentId: IsValidReferenceDocumentId,
|
|
1532
1525
|
data: SUpdateAsInvitedCampaignIdDocument
|
|
1533
1526
|
});
|
|
1534
|
-
var SUpdateCampaignIdDocumentRequest =
|
|
1527
|
+
var SUpdateCampaignIdDocumentRequest = v44.union([
|
|
1535
1528
|
SUpdateAsCreatorCampaignIdDocument,
|
|
1536
1529
|
SUpdateAsInvitedCampaignIdDocument
|
|
1537
1530
|
]);
|
|
1538
|
-
var SDeleteCampaignIdDocument =
|
|
1531
|
+
var SDeleteCampaignIdDocument = v44.object({
|
|
1539
1532
|
documentId: IsValidReferenceDocumentId
|
|
1540
1533
|
});
|
|
1541
|
-
var SQueryListCampaignKeyDocuments =
|
|
1534
|
+
var SQueryListCampaignKeyDocuments = v44.object({
|
|
1542
1535
|
documentId: IsValidReferenceDocumentId,
|
|
1543
1536
|
page: IsValidMinPage,
|
|
1544
|
-
size:
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1537
|
+
size: v44.fallback(
|
|
1538
|
+
v44.optional(
|
|
1539
|
+
v44.pipe(
|
|
1540
|
+
v44.number(),
|
|
1541
|
+
v44.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1542
|
+
v44.maxValue(CAMPAIGN_KEY_PAGINATION_MAX_SIZE_LIMIT)
|
|
1550
1543
|
),
|
|
1551
1544
|
CAMPAIGN_KEY_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1552
1545
|
),
|
|
1553
1546
|
CAMPAIGN_KEY_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1554
1547
|
)
|
|
1555
1548
|
});
|
|
1556
|
-
var SCreateCampaignKeyDocument =
|
|
1549
|
+
var SCreateCampaignKeyDocument = v44.object({
|
|
1557
1550
|
label: IsValidLabel,
|
|
1558
1551
|
value: IsValidValue,
|
|
1559
1552
|
description: IsValidDescription,
|
|
1560
1553
|
is_active: IsValidIsActive
|
|
1561
1554
|
});
|
|
1562
|
-
var SCreateCampaignKeyDocumentRequest =
|
|
1555
|
+
var SCreateCampaignKeyDocumentRequest = v44.object({
|
|
1563
1556
|
documentId: IsValidReferenceDocumentId,
|
|
1564
1557
|
data: SCreateCampaignKeyDocument
|
|
1565
1558
|
});
|
|
1566
|
-
var SReadCampaignKeyDocumentById =
|
|
1559
|
+
var SReadCampaignKeyDocumentById = v44.object({
|
|
1567
1560
|
id: IsValidReferenceId
|
|
1568
1561
|
});
|
|
1569
|
-
var SReadCampaignKeyDocumentByDocumentId =
|
|
1562
|
+
var SReadCampaignKeyDocumentByDocumentId = v44.object({
|
|
1570
1563
|
documentId: IsValidReferenceDocumentId
|
|
1571
1564
|
});
|
|
1572
|
-
var SUpdateAsCreatorCampaignKeyDocument =
|
|
1565
|
+
var SUpdateAsCreatorCampaignKeyDocument = v44.object({
|
|
1573
1566
|
label: IsValidOrUndefinedLabel,
|
|
1574
1567
|
value: IsValidOrUndefinedValue,
|
|
1575
1568
|
description: IsValidOrUndefinedDescription,
|
|
1576
1569
|
is_active: IsValidOrUndefinedIsActive
|
|
1577
1570
|
});
|
|
1578
|
-
var SUpdateAsCreatorCampaignKeyDocumentRequest =
|
|
1571
|
+
var SUpdateAsCreatorCampaignKeyDocumentRequest = v44.object({
|
|
1579
1572
|
documentId: IsValidReferenceDocumentId,
|
|
1580
1573
|
data: SUpdateAsCreatorCampaignKeyDocument
|
|
1581
1574
|
});
|
|
1582
|
-
var SUpdateAsInvitedCampaignKeyDocument =
|
|
1575
|
+
var SUpdateAsInvitedCampaignKeyDocument = v44.object({
|
|
1583
1576
|
label: IsValidOrUndefinedLabel,
|
|
1584
1577
|
description: IsValidDescription,
|
|
1585
1578
|
is_active: IsValidOrUndefinedIsActive
|
|
1586
1579
|
});
|
|
1587
|
-
var SUpdateAsInvitedCampaignKeyDocumentRequest =
|
|
1580
|
+
var SUpdateAsInvitedCampaignKeyDocumentRequest = v44.object({
|
|
1588
1581
|
documentId: IsValidReferenceDocumentId,
|
|
1589
1582
|
data: SUpdateAsInvitedCampaignKeyDocument
|
|
1590
1583
|
});
|
|
1591
|
-
var SUpdateCampaignKeyDocumentRequest =
|
|
1584
|
+
var SUpdateCampaignKeyDocumentRequest = v44.union([
|
|
1592
1585
|
SUpdateAsCreatorCampaignKeyDocument,
|
|
1593
1586
|
SUpdateAsInvitedCampaignKeyDocument
|
|
1594
1587
|
]);
|
|
1595
|
-
var SDeleteCampaignKeyDocument =
|
|
1588
|
+
var SDeleteCampaignKeyDocument = v44.object({
|
|
1596
1589
|
documentId: IsValidReferenceDocumentId
|
|
1597
1590
|
});
|
|
1598
|
-
var SQueryListCampaignPhaseDocuments =
|
|
1591
|
+
var SQueryListCampaignPhaseDocuments = v44.object({
|
|
1599
1592
|
documentId: IsValidReferenceDocumentId,
|
|
1600
1593
|
page: IsValidMinPage,
|
|
1601
|
-
size:
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1594
|
+
size: v44.fallback(
|
|
1595
|
+
v44.optional(
|
|
1596
|
+
v44.pipe(
|
|
1597
|
+
v44.number(),
|
|
1598
|
+
v44.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1599
|
+
v44.maxValue(CAMPAIGN_PHASE_PAGINATION_MAX_SIZE_LIMIT)
|
|
1607
1600
|
),
|
|
1608
1601
|
CAMPAIGN_PHASE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1609
1602
|
),
|
|
1610
1603
|
CAMPAIGN_PHASE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1611
1604
|
)
|
|
1612
1605
|
});
|
|
1613
|
-
var SCreateCampaignPhaseDocument =
|
|
1606
|
+
var SCreateCampaignPhaseDocument = v44.object({
|
|
1614
1607
|
label: IsValidLabel,
|
|
1615
1608
|
value: IsValidValue,
|
|
1616
1609
|
description: IsValidDescription,
|
|
1617
1610
|
is_active: IsValidIsActive
|
|
1618
1611
|
});
|
|
1619
|
-
var SCreateCampaignPhaseDocumentRequest =
|
|
1612
|
+
var SCreateCampaignPhaseDocumentRequest = v44.object({
|
|
1620
1613
|
documentId: IsValidReferenceDocumentId,
|
|
1621
1614
|
data: SCreateCampaignPhaseDocument
|
|
1622
1615
|
});
|
|
1623
|
-
var SReadCampaignPhaseDocumentById =
|
|
1616
|
+
var SReadCampaignPhaseDocumentById = v44.object({
|
|
1624
1617
|
id: IsValidReferenceId
|
|
1625
1618
|
});
|
|
1626
|
-
var SReadCampaignPhaseDocumentByDocumentId =
|
|
1619
|
+
var SReadCampaignPhaseDocumentByDocumentId = v44.object({
|
|
1627
1620
|
documentId: IsValidReferenceDocumentId
|
|
1628
1621
|
});
|
|
1629
|
-
var SUpdateAsCreatorCampaignPhaseDocument =
|
|
1622
|
+
var SUpdateAsCreatorCampaignPhaseDocument = v44.object({
|
|
1630
1623
|
label: IsValidOrUndefinedLabel,
|
|
1631
1624
|
value: IsValidOrUndefinedValue,
|
|
1632
1625
|
description: IsValidOrUndefinedDescription,
|
|
1633
1626
|
is_active: IsValidOrUndefinedIsActive
|
|
1634
1627
|
});
|
|
1635
|
-
var SUpdateAsCreatorCampaignPhaseDocumentRequest =
|
|
1628
|
+
var SUpdateAsCreatorCampaignPhaseDocumentRequest = v44.object({
|
|
1636
1629
|
documentId: IsValidReferenceDocumentId,
|
|
1637
1630
|
data: SUpdateAsCreatorCampaignPhaseDocument
|
|
1638
1631
|
});
|
|
1639
|
-
var SUpdateAsInvitedCampaignPhaseDocument =
|
|
1632
|
+
var SUpdateAsInvitedCampaignPhaseDocument = v44.object({
|
|
1640
1633
|
label: IsValidOrUndefinedLabel,
|
|
1641
1634
|
description: IsValidDescription,
|
|
1642
1635
|
is_active: IsValidOrUndefinedIsActive
|
|
1643
1636
|
});
|
|
1644
|
-
var SUpdateAsInvitedCampaignPhaseDocumentRequest =
|
|
1637
|
+
var SUpdateAsInvitedCampaignPhaseDocumentRequest = v44.object({
|
|
1645
1638
|
documentId: IsValidReferenceDocumentId,
|
|
1646
1639
|
data: SUpdateAsInvitedCampaignPhaseDocument
|
|
1647
1640
|
});
|
|
1648
|
-
var SUpdateCampaignPhaseDocumentRequest =
|
|
1641
|
+
var SUpdateCampaignPhaseDocumentRequest = v44.union([
|
|
1649
1642
|
SUpdateAsCreatorCampaignPhaseDocument,
|
|
1650
1643
|
SUpdateAsInvitedCampaignPhaseDocument
|
|
1651
1644
|
]);
|
|
1652
|
-
var SDeleteCampaignPhaseDocument =
|
|
1645
|
+
var SDeleteCampaignPhaseDocument = v44.object({
|
|
1653
1646
|
documentId: IsValidReferenceDocumentId
|
|
1654
1647
|
});
|
|
1655
|
-
var SQueryListCampaignProductDocuments =
|
|
1648
|
+
var SQueryListCampaignProductDocuments = v44.object({
|
|
1656
1649
|
documentId: IsValidReferenceDocumentId,
|
|
1657
1650
|
page: IsValidMinPage,
|
|
1658
|
-
size:
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1651
|
+
size: v44.fallback(
|
|
1652
|
+
v44.optional(
|
|
1653
|
+
v44.pipe(
|
|
1654
|
+
v44.number(),
|
|
1655
|
+
v44.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1656
|
+
v44.maxValue(CAMPAIGN_PRODUCT_PAGINATION_MAX_SIZE_LIMIT)
|
|
1664
1657
|
),
|
|
1665
1658
|
CAMPAIGN_PRODUCT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1666
1659
|
),
|
|
1667
1660
|
CAMPAIGN_PRODUCT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1668
1661
|
)
|
|
1669
1662
|
});
|
|
1670
|
-
var SCreateCampaignProductDocument =
|
|
1663
|
+
var SCreateCampaignProductDocument = v44.object({
|
|
1671
1664
|
label: IsValidLabel,
|
|
1672
1665
|
value: IsValidValue,
|
|
1673
1666
|
description: IsValidDescription,
|
|
1674
1667
|
is_active: IsValidIsActive
|
|
1675
1668
|
});
|
|
1676
|
-
var SCreateCampaignProductDocumentRequest =
|
|
1669
|
+
var SCreateCampaignProductDocumentRequest = v44.object({
|
|
1677
1670
|
documentId: IsValidReferenceDocumentId,
|
|
1678
1671
|
data: SCreateCampaignProductDocument
|
|
1679
1672
|
});
|
|
1680
|
-
var SReadCampaignProductDocumentById =
|
|
1673
|
+
var SReadCampaignProductDocumentById = v44.object({
|
|
1681
1674
|
id: IsValidReferenceId
|
|
1682
1675
|
});
|
|
1683
|
-
var SReadCampaignProductDocumentByDocumentId =
|
|
1676
|
+
var SReadCampaignProductDocumentByDocumentId = v44.object({
|
|
1684
1677
|
documentId: IsValidReferenceDocumentId
|
|
1685
1678
|
});
|
|
1686
|
-
var SUpdateAsCreatorCampaignProductDocument =
|
|
1679
|
+
var SUpdateAsCreatorCampaignProductDocument = v44.object({
|
|
1687
1680
|
label: IsValidOrUndefinedLabel,
|
|
1688
1681
|
value: IsValidOrUndefinedValue,
|
|
1689
1682
|
description: IsValidOrUndefinedDescription,
|
|
1690
1683
|
is_active: IsValidOrUndefinedIsActive
|
|
1691
1684
|
});
|
|
1692
|
-
var SUpdateAsCreatorCampaignProductDocumentRequest =
|
|
1685
|
+
var SUpdateAsCreatorCampaignProductDocumentRequest = v44.object({
|
|
1693
1686
|
documentId: IsValidReferenceDocumentId,
|
|
1694
1687
|
data: SUpdateAsCreatorCampaignProductDocument
|
|
1695
1688
|
});
|
|
1696
|
-
var SUpdateAsInvitedCampaignProductDocument =
|
|
1689
|
+
var SUpdateAsInvitedCampaignProductDocument = v44.object({
|
|
1697
1690
|
label: IsValidOrUndefinedLabel,
|
|
1698
1691
|
description: IsValidDescription,
|
|
1699
1692
|
is_active: IsValidOrUndefinedIsActive
|
|
1700
1693
|
});
|
|
1701
|
-
var SUpdateAsInvitedCampaignProductDocumentRequest =
|
|
1694
|
+
var SUpdateAsInvitedCampaignProductDocumentRequest = v44.object({
|
|
1702
1695
|
documentId: IsValidReferenceDocumentId,
|
|
1703
1696
|
data: SUpdateAsInvitedCampaignProductDocument
|
|
1704
1697
|
});
|
|
1705
|
-
var SUpdateCampaignProductDocumentRequest =
|
|
1698
|
+
var SUpdateCampaignProductDocumentRequest = v44.union([
|
|
1706
1699
|
SUpdateAsCreatorCampaignProductDocument,
|
|
1707
1700
|
SUpdateAsInvitedCampaignProductDocument
|
|
1708
1701
|
]);
|
|
1709
|
-
var SDeleteCampaignProductDocument =
|
|
1702
|
+
var SDeleteCampaignProductDocument = v44.object({
|
|
1710
1703
|
documentId: IsValidReferenceDocumentId
|
|
1711
1704
|
});
|
|
1712
|
-
var SQueryListContentDocuments =
|
|
1705
|
+
var SQueryListContentDocuments = v44.object({
|
|
1713
1706
|
documentId: IsValidReferenceDocumentId,
|
|
1714
1707
|
page: IsValidMinPage,
|
|
1715
|
-
size:
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1708
|
+
size: v44.fallback(
|
|
1709
|
+
v44.optional(
|
|
1710
|
+
v44.pipe(
|
|
1711
|
+
v44.number(),
|
|
1712
|
+
v44.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1713
|
+
v44.maxValue(CONTENT_PAGINATION_MAX_SIZE_LIMIT)
|
|
1721
1714
|
),
|
|
1722
1715
|
CONTENT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1723
1716
|
),
|
|
1724
1717
|
CONTENT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1725
1718
|
)
|
|
1726
1719
|
});
|
|
1727
|
-
var SCreateContentDocument =
|
|
1720
|
+
var SCreateContentDocument = v44.object({
|
|
1728
1721
|
label: IsValidLabel,
|
|
1729
1722
|
value: IsValidValue,
|
|
1730
1723
|
description: IsValidDescription,
|
|
1731
1724
|
is_active: IsValidIsActive
|
|
1732
1725
|
});
|
|
1733
|
-
var SCreateContentDocumentRequest =
|
|
1726
|
+
var SCreateContentDocumentRequest = v44.object({
|
|
1734
1727
|
documentId: IsValidReferenceDocumentId,
|
|
1735
1728
|
data: SCreateContentDocument
|
|
1736
1729
|
});
|
|
1737
|
-
var SReadContentDocumentById =
|
|
1730
|
+
var SReadContentDocumentById = v44.object({
|
|
1738
1731
|
id: IsValidReferenceId
|
|
1739
1732
|
});
|
|
1740
|
-
var SReadContentDocumentByDocumentId =
|
|
1733
|
+
var SReadContentDocumentByDocumentId = v44.object({
|
|
1741
1734
|
documentId: IsValidReferenceDocumentId
|
|
1742
1735
|
});
|
|
1743
|
-
var SUpdateAsCreatorContentDocument =
|
|
1736
|
+
var SUpdateAsCreatorContentDocument = v44.object({
|
|
1744
1737
|
label: IsValidOrUndefinedLabel,
|
|
1745
1738
|
value: IsValidOrUndefinedValue,
|
|
1746
1739
|
description: IsValidOrUndefinedDescription,
|
|
1747
1740
|
is_active: IsValidOrUndefinedIsActive
|
|
1748
1741
|
});
|
|
1749
|
-
var SUpdateAsCreatorContentDocumentRequest =
|
|
1742
|
+
var SUpdateAsCreatorContentDocumentRequest = v44.object({
|
|
1750
1743
|
documentId: IsValidReferenceDocumentId,
|
|
1751
1744
|
data: SUpdateAsCreatorContentDocument
|
|
1752
1745
|
});
|
|
1753
|
-
var SUpdateAsInvitedContentDocument =
|
|
1746
|
+
var SUpdateAsInvitedContentDocument = v44.object({
|
|
1754
1747
|
label: IsValidOrUndefinedLabel,
|
|
1755
1748
|
description: IsValidDescription,
|
|
1756
1749
|
is_active: IsValidOrUndefinedIsActive
|
|
1757
1750
|
});
|
|
1758
|
-
var SUpdateAsInvitedContentDocumentRequest =
|
|
1751
|
+
var SUpdateAsInvitedContentDocumentRequest = v44.object({
|
|
1759
1752
|
documentId: IsValidReferenceDocumentId,
|
|
1760
1753
|
data: SUpdateAsInvitedContentDocument
|
|
1761
1754
|
});
|
|
1762
|
-
var SUpdateContentDocumentRequest =
|
|
1755
|
+
var SUpdateContentDocumentRequest = v44.union([
|
|
1763
1756
|
SUpdateAsCreatorContentDocument,
|
|
1764
1757
|
SUpdateAsInvitedContentDocument
|
|
1765
1758
|
]);
|
|
1766
|
-
var SDeleteContentDocument =
|
|
1759
|
+
var SDeleteContentDocument = v44.object({
|
|
1767
1760
|
documentId: IsValidReferenceDocumentId
|
|
1768
1761
|
});
|
|
1769
|
-
var SQueryListCreativeFormatVariantDocuments =
|
|
1762
|
+
var SQueryListCreativeFormatVariantDocuments = v44.object({
|
|
1770
1763
|
documentId: IsValidReferenceDocumentId,
|
|
1771
1764
|
page: IsValidMinPage,
|
|
1772
|
-
size:
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1765
|
+
size: v44.fallback(
|
|
1766
|
+
v44.optional(
|
|
1767
|
+
v44.pipe(
|
|
1768
|
+
v44.number(),
|
|
1769
|
+
v44.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1770
|
+
v44.maxValue(CREATIVE_FORMAT_VARIANT_PAGINATION_MAX_SIZE_LIMIT)
|
|
1778
1771
|
),
|
|
1779
1772
|
CREATIVE_FORMAT_VARIANT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1780
1773
|
),
|
|
1781
1774
|
CREATIVE_FORMAT_VARIANT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1782
1775
|
)
|
|
1783
1776
|
});
|
|
1784
|
-
var SCreateCreativeFormatVariantDocument =
|
|
1777
|
+
var SCreateCreativeFormatVariantDocument = v44.object({
|
|
1785
1778
|
label: IsValidLabel,
|
|
1786
1779
|
value: IsValidValue,
|
|
1787
1780
|
description: IsValidDescription,
|
|
1788
1781
|
is_active: IsValidIsActive
|
|
1789
1782
|
});
|
|
1790
|
-
var SCreateCreativeFormatVariantDocumentRequest =
|
|
1783
|
+
var SCreateCreativeFormatVariantDocumentRequest = v44.object({
|
|
1791
1784
|
documentId: IsValidReferenceDocumentId,
|
|
1792
1785
|
data: SCreateCreativeFormatVariantDocument
|
|
1793
1786
|
});
|
|
1794
|
-
var SReadCreativeFormatVariantDocumentById =
|
|
1787
|
+
var SReadCreativeFormatVariantDocumentById = v44.object({
|
|
1795
1788
|
id: IsValidReferenceId
|
|
1796
1789
|
});
|
|
1797
|
-
var SReadCreativeFormatVariantDocumentByDocumentId =
|
|
1790
|
+
var SReadCreativeFormatVariantDocumentByDocumentId = v44.object({
|
|
1798
1791
|
documentId: IsValidReferenceDocumentId
|
|
1799
1792
|
});
|
|
1800
|
-
var SUpdateAsCreatorCreativeFormatVariantDocument =
|
|
1793
|
+
var SUpdateAsCreatorCreativeFormatVariantDocument = v44.object({
|
|
1801
1794
|
label: IsValidOrUndefinedLabel,
|
|
1802
1795
|
value: IsValidOrUndefinedValue,
|
|
1803
1796
|
description: IsValidOrUndefinedDescription,
|
|
1804
1797
|
is_active: IsValidOrUndefinedIsActive
|
|
1805
1798
|
});
|
|
1806
|
-
var SUpdateAsCreatorCreativeFormatVariantDocumentRequest =
|
|
1799
|
+
var SUpdateAsCreatorCreativeFormatVariantDocumentRequest = v44.object({
|
|
1807
1800
|
documentId: IsValidReferenceDocumentId,
|
|
1808
1801
|
data: SUpdateAsCreatorCreativeFormatVariantDocument
|
|
1809
1802
|
});
|
|
1810
|
-
var SUpdateAsInvitedCreativeFormatVariantDocument =
|
|
1803
|
+
var SUpdateAsInvitedCreativeFormatVariantDocument = v44.object({
|
|
1811
1804
|
label: IsValidOrUndefinedLabel,
|
|
1812
1805
|
description: IsValidDescription,
|
|
1813
1806
|
is_active: IsValidOrUndefinedIsActive
|
|
1814
1807
|
});
|
|
1815
|
-
var SUpdateAsInvitedCreativeFormatVariantDocumentRequest =
|
|
1808
|
+
var SUpdateAsInvitedCreativeFormatVariantDocumentRequest = v44.object({
|
|
1816
1809
|
documentId: IsValidReferenceDocumentId,
|
|
1817
1810
|
data: SUpdateAsInvitedCreativeFormatVariantDocument
|
|
1818
1811
|
});
|
|
1819
|
-
var SUpdateCreativeFormatVariantDocumentRequest =
|
|
1812
|
+
var SUpdateCreativeFormatVariantDocumentRequest = v44.union([
|
|
1820
1813
|
SUpdateAsCreatorCreativeFormatVariantDocument,
|
|
1821
1814
|
SUpdateAsInvitedCreativeFormatVariantDocument
|
|
1822
1815
|
]);
|
|
1823
|
-
var SDeleteCreativeFormatVariantDocument =
|
|
1816
|
+
var SDeleteCreativeFormatVariantDocument = v44.object({
|
|
1824
1817
|
documentId: IsValidReferenceDocumentId
|
|
1825
1818
|
});
|
|
1826
|
-
var SQueryListCreativeFormatDocuments =
|
|
1819
|
+
var SQueryListCreativeFormatDocuments = v44.object({
|
|
1827
1820
|
documentId: IsValidReferenceDocumentId,
|
|
1828
1821
|
page: IsValidMinPage,
|
|
1829
|
-
size:
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1822
|
+
size: v44.fallback(
|
|
1823
|
+
v44.optional(
|
|
1824
|
+
v44.pipe(
|
|
1825
|
+
v44.number(),
|
|
1826
|
+
v44.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1827
|
+
v44.maxValue(CREATIVE_FORMAT_PAGINATION_MAX_SIZE_LIMIT)
|
|
1835
1828
|
),
|
|
1836
1829
|
CREATIVE_FORMAT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1837
1830
|
),
|
|
1838
1831
|
CREATIVE_FORMAT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1839
1832
|
)
|
|
1840
1833
|
});
|
|
1841
|
-
var SCreateCreativeFormatDocument =
|
|
1834
|
+
var SCreateCreativeFormatDocument = v44.object({
|
|
1842
1835
|
label: IsValidLabel,
|
|
1843
1836
|
value: IsValidValue,
|
|
1844
1837
|
description: IsValidDescription,
|
|
1845
1838
|
is_active: IsValidIsActive
|
|
1846
1839
|
});
|
|
1847
|
-
var SCreateCreativeFormatDocumentRequest =
|
|
1840
|
+
var SCreateCreativeFormatDocumentRequest = v44.object({
|
|
1848
1841
|
documentId: IsValidReferenceDocumentId,
|
|
1849
1842
|
data: SCreateCreativeFormatDocument
|
|
1850
1843
|
});
|
|
1851
|
-
var SReadCreativeFormatDocumentById =
|
|
1844
|
+
var SReadCreativeFormatDocumentById = v44.object({
|
|
1852
1845
|
id: IsValidReferenceId
|
|
1853
1846
|
});
|
|
1854
|
-
var SReadCreativeFormatDocumentByDocumentId =
|
|
1847
|
+
var SReadCreativeFormatDocumentByDocumentId = v44.object({
|
|
1855
1848
|
documentId: IsValidReferenceDocumentId
|
|
1856
1849
|
});
|
|
1857
|
-
var SUpdateAsCreatorCreativeFormatDocument =
|
|
1850
|
+
var SUpdateAsCreatorCreativeFormatDocument = v44.object({
|
|
1858
1851
|
label: IsValidOrUndefinedLabel,
|
|
1859
1852
|
value: IsValidOrUndefinedValue,
|
|
1860
1853
|
description: IsValidOrUndefinedDescription,
|
|
1861
1854
|
is_active: IsValidOrUndefinedIsActive
|
|
1862
1855
|
});
|
|
1863
|
-
var SUpdateAsCreatorCreativeFormatDocumentRequest =
|
|
1856
|
+
var SUpdateAsCreatorCreativeFormatDocumentRequest = v44.object({
|
|
1864
1857
|
documentId: IsValidReferenceDocumentId,
|
|
1865
1858
|
data: SUpdateAsCreatorCreativeFormatDocument
|
|
1866
1859
|
});
|
|
1867
|
-
var SUpdateAsInvitedCreativeFormatDocument =
|
|
1860
|
+
var SUpdateAsInvitedCreativeFormatDocument = v44.object({
|
|
1868
1861
|
label: IsValidOrUndefinedLabel,
|
|
1869
1862
|
description: IsValidDescription,
|
|
1870
1863
|
is_active: IsValidOrUndefinedIsActive
|
|
1871
1864
|
});
|
|
1872
|
-
var SUpdateAsInvitedCreativeFormatDocumentRequest =
|
|
1865
|
+
var SUpdateAsInvitedCreativeFormatDocumentRequest = v44.object({
|
|
1873
1866
|
documentId: IsValidReferenceDocumentId,
|
|
1874
1867
|
data: SUpdateAsInvitedCreativeFormatDocument
|
|
1875
1868
|
});
|
|
1876
|
-
var SUpdateCreativeFormatDocumentRequest =
|
|
1869
|
+
var SUpdateCreativeFormatDocumentRequest = v44.union([
|
|
1877
1870
|
SUpdateAsCreatorCreativeFormatDocument,
|
|
1878
1871
|
SUpdateAsInvitedCreativeFormatDocument
|
|
1879
1872
|
]);
|
|
1880
|
-
var SDeleteCreativeFormatDocument =
|
|
1873
|
+
var SDeleteCreativeFormatDocument = v44.object({
|
|
1881
1874
|
documentId: IsValidReferenceDocumentId
|
|
1882
1875
|
});
|
|
1883
|
-
var SQueryListMediumDocuments =
|
|
1876
|
+
var SQueryListMediumDocuments = v44.object({
|
|
1884
1877
|
documentId: IsValidReferenceDocumentId,
|
|
1885
1878
|
page: IsValidMinPage,
|
|
1886
|
-
size:
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1879
|
+
size: v44.fallback(
|
|
1880
|
+
v44.optional(
|
|
1881
|
+
v44.pipe(
|
|
1882
|
+
v44.number(),
|
|
1883
|
+
v44.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1884
|
+
v44.maxValue(MEDIUM_PAGINATION_MAX_SIZE_LIMIT)
|
|
1892
1885
|
),
|
|
1893
1886
|
MEDIUM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1894
1887
|
),
|
|
1895
1888
|
MEDIUM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1896
1889
|
)
|
|
1897
1890
|
});
|
|
1898
|
-
var SCreateMediumDocument =
|
|
1891
|
+
var SCreateMediumDocument = v44.object({
|
|
1899
1892
|
label: IsValidLabel,
|
|
1900
1893
|
value: IsValidValue,
|
|
1901
1894
|
description: IsValidDescription,
|
|
1902
1895
|
is_active: IsValidIsActive
|
|
1903
1896
|
});
|
|
1904
|
-
var SCreateMediumDocumentRequest =
|
|
1897
|
+
var SCreateMediumDocumentRequest = v44.object({
|
|
1905
1898
|
documentId: IsValidReferenceDocumentId,
|
|
1906
1899
|
data: SCreateMediumDocument
|
|
1907
1900
|
});
|
|
1908
|
-
var SReadMediumDocumentById =
|
|
1901
|
+
var SReadMediumDocumentById = v44.object({
|
|
1909
1902
|
id: IsValidReferenceId
|
|
1910
1903
|
});
|
|
1911
|
-
var SReadMediumDocumentByDocumentId =
|
|
1904
|
+
var SReadMediumDocumentByDocumentId = v44.object({
|
|
1912
1905
|
documentId: IsValidReferenceDocumentId
|
|
1913
1906
|
});
|
|
1914
|
-
var SUpdateAsCreatorMediumDocument =
|
|
1907
|
+
var SUpdateAsCreatorMediumDocument = v44.object({
|
|
1915
1908
|
label: IsValidOrUndefinedLabel,
|
|
1916
1909
|
value: IsValidOrUndefinedValue,
|
|
1917
1910
|
description: IsValidOrUndefinedDescription,
|
|
1918
1911
|
is_active: IsValidOrUndefinedIsActive
|
|
1919
1912
|
});
|
|
1920
|
-
var SUpdateAsCreatorMediumDocumentRequest =
|
|
1913
|
+
var SUpdateAsCreatorMediumDocumentRequest = v44.object({
|
|
1921
1914
|
documentId: IsValidReferenceDocumentId,
|
|
1922
1915
|
data: SUpdateAsCreatorMediumDocument
|
|
1923
1916
|
});
|
|
1924
|
-
var SUpdateAsInvitedMediumDocument =
|
|
1917
|
+
var SUpdateAsInvitedMediumDocument = v44.object({
|
|
1925
1918
|
label: IsValidOrUndefinedLabel,
|
|
1926
1919
|
description: IsValidDescription,
|
|
1927
1920
|
is_active: IsValidOrUndefinedIsActive
|
|
1928
1921
|
});
|
|
1929
|
-
var SUpdateAsInvitedMediumDocumentRequest =
|
|
1922
|
+
var SUpdateAsInvitedMediumDocumentRequest = v44.object({
|
|
1930
1923
|
documentId: IsValidReferenceDocumentId,
|
|
1931
1924
|
data: SUpdateAsInvitedMediumDocument
|
|
1932
1925
|
});
|
|
1933
|
-
var SUpdateMediumDocumentRequest =
|
|
1926
|
+
var SUpdateMediumDocumentRequest = v44.union([
|
|
1934
1927
|
SUpdateAsCreatorMediumDocument,
|
|
1935
1928
|
SUpdateAsInvitedMediumDocument
|
|
1936
1929
|
]);
|
|
1937
|
-
var SDeleteMediumDocument =
|
|
1930
|
+
var SDeleteMediumDocument = v44.object({
|
|
1938
1931
|
documentId: IsValidReferenceDocumentId
|
|
1939
1932
|
});
|
|
1940
|
-
var SQueryListSourceDocuments =
|
|
1933
|
+
var SQueryListSourceDocuments = v44.object({
|
|
1941
1934
|
documentId: IsValidReferenceDocumentId,
|
|
1942
1935
|
page: IsValidMinPage,
|
|
1943
|
-
size:
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1936
|
+
size: v44.fallback(
|
|
1937
|
+
v44.optional(
|
|
1938
|
+
v44.pipe(
|
|
1939
|
+
v44.number(),
|
|
1940
|
+
v44.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1941
|
+
v44.maxValue(SOURCE_PAGINATION_MAX_SIZE_LIMIT)
|
|
1949
1942
|
),
|
|
1950
1943
|
SOURCE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1951
1944
|
),
|
|
1952
1945
|
SOURCE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1953
1946
|
)
|
|
1954
1947
|
});
|
|
1955
|
-
var SCreateSourceDocument =
|
|
1948
|
+
var SCreateSourceDocument = v44.object({
|
|
1956
1949
|
label: IsValidLabel,
|
|
1957
1950
|
value: IsValidValue,
|
|
1958
1951
|
description: IsValidDescription,
|
|
1959
1952
|
is_active: IsValidIsActive
|
|
1960
1953
|
});
|
|
1961
|
-
var SCreateSourceDocumentRequest =
|
|
1954
|
+
var SCreateSourceDocumentRequest = v44.object({
|
|
1962
1955
|
documentId: IsValidReferenceDocumentId,
|
|
1963
1956
|
data: SCreateSourceDocument
|
|
1964
1957
|
});
|
|
1965
|
-
var SReadSourceDocumentById =
|
|
1958
|
+
var SReadSourceDocumentById = v44.object({
|
|
1966
1959
|
id: IsValidReferenceId
|
|
1967
1960
|
});
|
|
1968
|
-
var SReadSourceDocumentByDocumentId =
|
|
1961
|
+
var SReadSourceDocumentByDocumentId = v44.object({
|
|
1969
1962
|
documentId: IsValidReferenceDocumentId
|
|
1970
1963
|
});
|
|
1971
|
-
var SUpdateAsCreatorSourceDocument =
|
|
1964
|
+
var SUpdateAsCreatorSourceDocument = v44.object({
|
|
1972
1965
|
label: IsValidOrUndefinedLabel,
|
|
1973
1966
|
value: IsValidOrUndefinedValue,
|
|
1974
1967
|
description: IsValidOrUndefinedDescription,
|
|
1975
1968
|
is_active: IsValidOrUndefinedIsActive
|
|
1976
1969
|
});
|
|
1977
|
-
var SUpdateAsCreatorSourceDocumentRequest =
|
|
1970
|
+
var SUpdateAsCreatorSourceDocumentRequest = v44.object({
|
|
1978
1971
|
documentId: IsValidReferenceDocumentId,
|
|
1979
1972
|
data: SUpdateAsCreatorSourceDocument
|
|
1980
1973
|
});
|
|
1981
|
-
var SUpdateAsInvitedSourceDocument =
|
|
1974
|
+
var SUpdateAsInvitedSourceDocument = v44.object({
|
|
1982
1975
|
label: IsValidOrUndefinedLabel,
|
|
1983
1976
|
description: IsValidDescription,
|
|
1984
1977
|
is_active: IsValidOrUndefinedIsActive
|
|
1985
1978
|
});
|
|
1986
|
-
var SUpdateAsInvitedSourceDocumentRequest =
|
|
1979
|
+
var SUpdateAsInvitedSourceDocumentRequest = v44.object({
|
|
1987
1980
|
documentId: IsValidReferenceDocumentId,
|
|
1988
1981
|
data: SUpdateAsInvitedSourceDocument
|
|
1989
1982
|
});
|
|
1990
|
-
var SUpdateSourceDocumentRequest =
|
|
1983
|
+
var SUpdateSourceDocumentRequest = v44.union([
|
|
1991
1984
|
SUpdateAsCreatorSourceDocument,
|
|
1992
1985
|
SUpdateAsInvitedSourceDocument
|
|
1993
1986
|
]);
|
|
1994
|
-
var SDeleteSourceDocument =
|
|
1987
|
+
var SDeleteSourceDocument = v44.object({
|
|
1995
1988
|
documentId: IsValidReferenceDocumentId
|
|
1996
1989
|
});
|
|
1997
|
-
var SQueryListTermDocuments =
|
|
1990
|
+
var SQueryListTermDocuments = v44.object({
|
|
1998
1991
|
documentId: IsValidReferenceDocumentId,
|
|
1999
1992
|
page: IsValidMinPage,
|
|
2000
|
-
size:
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
1993
|
+
size: v44.fallback(
|
|
1994
|
+
v44.optional(
|
|
1995
|
+
v44.pipe(
|
|
1996
|
+
v44.number(),
|
|
1997
|
+
v44.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1998
|
+
v44.maxValue(TERM_PAGINATION_MAX_SIZE_LIMIT)
|
|
2006
1999
|
),
|
|
2007
2000
|
TERM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2008
2001
|
),
|
|
2009
2002
|
TERM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2010
2003
|
)
|
|
2011
2004
|
});
|
|
2012
|
-
var SCreateTermDocument =
|
|
2005
|
+
var SCreateTermDocument = v44.object({
|
|
2013
2006
|
label: IsValidLabel,
|
|
2014
2007
|
value: IsValidValue,
|
|
2015
2008
|
description: IsValidDescription,
|
|
2016
2009
|
is_active: IsValidIsActive
|
|
2017
2010
|
});
|
|
2018
|
-
var SCreateTermDocumentRequest =
|
|
2011
|
+
var SCreateTermDocumentRequest = v44.object({
|
|
2019
2012
|
documentId: IsValidReferenceDocumentId,
|
|
2020
2013
|
data: SCreateTermDocument
|
|
2021
2014
|
});
|
|
2022
|
-
var SReadTermDocumentById =
|
|
2015
|
+
var SReadTermDocumentById = v44.object({
|
|
2023
2016
|
id: IsValidReferenceId
|
|
2024
2017
|
});
|
|
2025
|
-
var SReadTermDocumentByDocumentId =
|
|
2018
|
+
var SReadTermDocumentByDocumentId = v44.object({
|
|
2026
2019
|
documentId: IsValidReferenceDocumentId
|
|
2027
2020
|
});
|
|
2028
|
-
var SUpdateAsCreatorTermDocument =
|
|
2021
|
+
var SUpdateAsCreatorTermDocument = v44.object({
|
|
2029
2022
|
label: IsValidOrUndefinedLabel,
|
|
2030
2023
|
value: IsValidOrUndefinedValue,
|
|
2031
2024
|
description: IsValidOrUndefinedDescription,
|
|
2032
2025
|
is_active: IsValidOrUndefinedIsActive
|
|
2033
2026
|
});
|
|
2034
|
-
var SUpdateAsCreatorTermDocumentRequest =
|
|
2027
|
+
var SUpdateAsCreatorTermDocumentRequest = v44.object({
|
|
2035
2028
|
documentId: IsValidReferenceDocumentId,
|
|
2036
2029
|
data: SUpdateAsCreatorTermDocument
|
|
2037
2030
|
});
|
|
2038
|
-
var SUpdateAsInvitedTermDocument =
|
|
2031
|
+
var SUpdateAsInvitedTermDocument = v44.object({
|
|
2039
2032
|
label: IsValidOrUndefinedLabel,
|
|
2040
2033
|
description: IsValidDescription,
|
|
2041
2034
|
is_active: IsValidOrUndefinedIsActive
|
|
2042
2035
|
});
|
|
2043
|
-
var SUpdateAsInvitedTermDocumentRequest =
|
|
2036
|
+
var SUpdateAsInvitedTermDocumentRequest = v44.object({
|
|
2044
2037
|
documentId: IsValidReferenceDocumentId,
|
|
2045
2038
|
data: SUpdateAsInvitedTermDocument
|
|
2046
2039
|
});
|
|
2047
|
-
var SUpdateTermDocumentRequest =
|
|
2040
|
+
var SUpdateTermDocumentRequest = v44.union([
|
|
2048
2041
|
SUpdateAsCreatorTermDocument,
|
|
2049
2042
|
SUpdateAsInvitedTermDocument
|
|
2050
2043
|
]);
|
|
2051
|
-
var SDeleteTermDocument =
|
|
2044
|
+
var SDeleteTermDocument = v44.object({
|
|
2052
2045
|
documentId: IsValidReferenceDocumentId
|
|
2053
2046
|
});
|
|
2054
|
-
var SQueryListWebsiteDocuments =
|
|
2047
|
+
var SQueryListWebsiteDocuments = v44.object({
|
|
2055
2048
|
documentId: IsValidReferenceDocumentId,
|
|
2056
2049
|
page: IsValidMinPage,
|
|
2057
|
-
size:
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2050
|
+
size: v44.fallback(
|
|
2051
|
+
v44.optional(
|
|
2052
|
+
v44.pipe(
|
|
2053
|
+
v44.number(),
|
|
2054
|
+
v44.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
2055
|
+
v44.maxValue(WEBSITE_PAGINATION_MAX_SIZE_LIMIT)
|
|
2063
2056
|
),
|
|
2064
2057
|
WEBSITE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2065
2058
|
),
|
|
2066
2059
|
WEBSITE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2067
2060
|
)
|
|
2068
2061
|
});
|
|
2069
|
-
var SCreateWebsiteDocument =
|
|
2062
|
+
var SCreateWebsiteDocument = v44.object({
|
|
2070
2063
|
domain: IsValidUrlDomain,
|
|
2071
2064
|
description: IsValidOrUndefinedDescription,
|
|
2072
2065
|
is_secure: IsValidIsSecure,
|
|
2073
2066
|
is_active: IsValidIsActive
|
|
2074
2067
|
});
|
|
2075
|
-
var SCreateWebsiteDocumentRequest =
|
|
2068
|
+
var SCreateWebsiteDocumentRequest = v44.object({
|
|
2076
2069
|
documentId: IsValidReferenceDocumentId,
|
|
2077
2070
|
data: SCreateWebsiteDocument
|
|
2078
2071
|
});
|
|
2079
|
-
var SReadWebsiteDocumentById =
|
|
2072
|
+
var SReadWebsiteDocumentById = v44.object({
|
|
2080
2073
|
id: IsValidReferenceId
|
|
2081
2074
|
});
|
|
2082
|
-
var SReadWebsiteDocumentByDocumentId =
|
|
2075
|
+
var SReadWebsiteDocumentByDocumentId = v44.object({
|
|
2083
2076
|
documentId: IsValidReferenceDocumentId
|
|
2084
2077
|
});
|
|
2085
|
-
var SUpdateAsCreatorWebsiteDocument =
|
|
2078
|
+
var SUpdateAsCreatorWebsiteDocument = v44.object({
|
|
2086
2079
|
domain: IsValidOrUndefinedUrlDomain,
|
|
2087
2080
|
description: IsValidOrUndefinedDescription,
|
|
2088
2081
|
is_secure: IsValidIsSecure,
|
|
2089
2082
|
is_active: IsValidIsActive
|
|
2090
2083
|
});
|
|
2091
|
-
var SUpdateAsCreatorWebsiteDocumentRequest =
|
|
2084
|
+
var SUpdateAsCreatorWebsiteDocumentRequest = v44.object({
|
|
2092
2085
|
documentId: IsValidReferenceDocumentId,
|
|
2093
2086
|
data: SUpdateAsCreatorWebsiteDocument
|
|
2094
2087
|
});
|
|
2095
|
-
var SUpdateAsInvitedWebsiteDocument =
|
|
2088
|
+
var SUpdateAsInvitedWebsiteDocument = v44.object({
|
|
2096
2089
|
description: IsValidOrUndefinedDescription
|
|
2097
2090
|
});
|
|
2098
|
-
var SUpdateAsInvitedWebsiteDocumentRequest =
|
|
2091
|
+
var SUpdateAsInvitedWebsiteDocumentRequest = v44.object({
|
|
2099
2092
|
documentId: IsValidReferenceDocumentId,
|
|
2100
2093
|
data: SUpdateAsInvitedWebsiteDocument
|
|
2101
2094
|
});
|
|
2102
|
-
var SUpdateWebsiteDocumentRequest =
|
|
2095
|
+
var SUpdateWebsiteDocumentRequest = v44.union([
|
|
2103
2096
|
SUpdateAsCreatorWebsiteDocument,
|
|
2104
2097
|
SUpdateAsInvitedWebsiteDocument
|
|
2105
2098
|
]);
|
|
2106
|
-
var SDeleteWebsiteDocument =
|
|
2099
|
+
var SDeleteWebsiteDocument = v44.object({
|
|
2107
2100
|
documentId: IsValidReferenceDocumentId
|
|
2108
2101
|
});
|
|
2109
|
-
var SUserDocumentWithRelations =
|
|
2102
|
+
var SUserDocumentWithRelations = v44.intersect([
|
|
2110
2103
|
SBaseDocument,
|
|
2111
2104
|
SBaseUserDocument,
|
|
2112
2105
|
SUserRelationsDocument
|
|
2113
2106
|
]);
|
|
2114
|
-
var SUserDocumentWithAccountRelations =
|
|
2107
|
+
var SUserDocumentWithAccountRelations = v44.intersect([
|
|
2115
2108
|
SBaseDocument,
|
|
2116
2109
|
SBaseUserDocument,
|
|
2117
2110
|
SUserRelationReqAccount
|
|
2118
2111
|
]);
|
|
2119
|
-
var SUserDocumentWithAccountAndRoleRelations =
|
|
2112
|
+
var SUserDocumentWithAccountAndRoleRelations = v44.intersect([
|
|
2120
2113
|
SBaseDocument,
|
|
2121
2114
|
SBaseUserDocument,
|
|
2122
2115
|
SUserRelationReqRole,
|
|
@@ -2124,101 +2117,101 @@ var SUserDocumentWithAccountAndRoleRelations = v47.intersect([
|
|
|
2124
2117
|
]);
|
|
2125
2118
|
|
|
2126
2119
|
// src/relations/auth.populate.ts
|
|
2127
|
-
var SUserAuthorizationSuccessResponse =
|
|
2128
|
-
jwt:
|
|
2120
|
+
var SUserAuthorizationSuccessResponse = v44.object({
|
|
2121
|
+
jwt: v44.string(),
|
|
2129
2122
|
user: SUserDocumentWithAccountAndRoleRelations
|
|
2130
2123
|
});
|
|
2131
|
-
var SGroupUserDocumentWithRelations =
|
|
2124
|
+
var SGroupUserDocumentWithRelations = v44.intersect([
|
|
2132
2125
|
SBaseDocument,
|
|
2133
2126
|
SBaseGroupUserDocument,
|
|
2134
2127
|
SGroupUserRelationsDocument
|
|
2135
2128
|
]);
|
|
2136
|
-
var SGroupUserDocumentReqRelations =
|
|
2129
|
+
var SGroupUserDocumentReqRelations = v44.intersect([
|
|
2137
2130
|
SBaseDocument,
|
|
2138
2131
|
SBaseGroupUserDocument,
|
|
2139
2132
|
SGroupUserRelationsReqDocument
|
|
2140
2133
|
]);
|
|
2141
|
-
var SGroupDocumentWithRelations =
|
|
2134
|
+
var SGroupDocumentWithRelations = v44.intersect([
|
|
2142
2135
|
SBaseDocument,
|
|
2143
2136
|
SBaseGroupDocument,
|
|
2144
2137
|
SGroupRelationsDocument
|
|
2145
2138
|
]);
|
|
2146
|
-
var SRoleDocumentWithRelations =
|
|
2139
|
+
var SRoleDocumentWithRelations = v44.intersect([
|
|
2147
2140
|
SBaseDocument,
|
|
2148
2141
|
SBaseRoleDocument,
|
|
2149
2142
|
SRoleRelationsDocument
|
|
2150
2143
|
]);
|
|
2151
|
-
var STrackingLinkDocumentWithRelations =
|
|
2144
|
+
var STrackingLinkDocumentWithRelations = v44.intersect([
|
|
2152
2145
|
SBaseDocument,
|
|
2153
2146
|
SBaseTrackingLinkDocument,
|
|
2154
2147
|
STrackingLinkRelationsDocument
|
|
2155
2148
|
]);
|
|
2156
|
-
var SUserAccountDocumentWithRelations =
|
|
2149
|
+
var SUserAccountDocumentWithRelations = v44.intersect([
|
|
2157
2150
|
SBaseDocument,
|
|
2158
2151
|
SBaseUserAccountDocument,
|
|
2159
2152
|
SUserAccountRelationsDocument
|
|
2160
2153
|
]);
|
|
2161
|
-
var SUserAccountDocumentReqRelations =
|
|
2154
|
+
var SUserAccountDocumentReqRelations = v44.intersect([
|
|
2162
2155
|
SBaseDocument,
|
|
2163
2156
|
SBaseUserAccountDocument,
|
|
2164
2157
|
SUserAccountRelationsReqDocument
|
|
2165
2158
|
]);
|
|
2166
|
-
var SUserLimitationsDocumentWithRelations =
|
|
2159
|
+
var SUserLimitationsDocumentWithRelations = v44.intersect([
|
|
2167
2160
|
SBaseDocument,
|
|
2168
2161
|
SBaseUserLimitationsDocument,
|
|
2169
2162
|
SUserLimitationsRelationsDocument
|
|
2170
2163
|
]);
|
|
2171
|
-
var SCampaignIdDocumentWithRelations =
|
|
2164
|
+
var SCampaignIdDocumentWithRelations = v44.intersect([
|
|
2172
2165
|
SBaseDocument,
|
|
2173
2166
|
SBaseCampaignIdDocument,
|
|
2174
2167
|
SCampaignIdRelationsDocument
|
|
2175
2168
|
]);
|
|
2176
|
-
var SCampaignKeyDocumentWithRelations =
|
|
2169
|
+
var SCampaignKeyDocumentWithRelations = v44.intersect([
|
|
2177
2170
|
SBaseDocument,
|
|
2178
2171
|
SBaseCampaignKeyDocument,
|
|
2179
2172
|
SCampaignKeyRelationsDocument
|
|
2180
2173
|
]);
|
|
2181
|
-
var SCampaignPhaseDocumentWithRelations =
|
|
2174
|
+
var SCampaignPhaseDocumentWithRelations = v44.intersect([
|
|
2182
2175
|
SBaseDocument,
|
|
2183
2176
|
SBaseCampaignPhaseDocument,
|
|
2184
2177
|
SCampaignPhaseRelationsDocument
|
|
2185
2178
|
]);
|
|
2186
|
-
var SCampaignProductDocumentWithRelations =
|
|
2179
|
+
var SCampaignProductDocumentWithRelations = v44.intersect([
|
|
2187
2180
|
SBaseDocument,
|
|
2188
2181
|
SBaseCampaignProductDocument,
|
|
2189
2182
|
SCampaignProductRelationsDocument
|
|
2190
2183
|
]);
|
|
2191
|
-
var SSourceDocumentWithRelations =
|
|
2184
|
+
var SSourceDocumentWithRelations = v44.intersect([
|
|
2192
2185
|
SBaseDocument,
|
|
2193
2186
|
SBaseSourceDocument,
|
|
2194
2187
|
SSourceRelationsDocument
|
|
2195
2188
|
]);
|
|
2196
|
-
var SMediumDocumentWithRelations =
|
|
2189
|
+
var SMediumDocumentWithRelations = v44.intersect([
|
|
2197
2190
|
SBaseDocument,
|
|
2198
2191
|
SBaseMediumDocument,
|
|
2199
2192
|
SMediumRelationsDocument
|
|
2200
2193
|
]);
|
|
2201
|
-
var SContentDocumentWithRelations =
|
|
2194
|
+
var SContentDocumentWithRelations = v44.intersect([
|
|
2202
2195
|
SBaseDocument,
|
|
2203
2196
|
SBaseContentDocument,
|
|
2204
2197
|
SContentRelationsDocument
|
|
2205
2198
|
]);
|
|
2206
|
-
var SCreativeFormatDocumentWithRelations =
|
|
2199
|
+
var SCreativeFormatDocumentWithRelations = v44.intersect([
|
|
2207
2200
|
SBaseDocument,
|
|
2208
2201
|
SBaseCreativeFormatDocument,
|
|
2209
2202
|
SCreativeFormatRelationsDocument
|
|
2210
2203
|
]);
|
|
2211
|
-
var SCreativeFormatVariantDocumentWithRelations =
|
|
2204
|
+
var SCreativeFormatVariantDocumentWithRelations = v44.intersect([
|
|
2212
2205
|
SBaseDocument,
|
|
2213
2206
|
SBaseCreativeFormatVariantDocument,
|
|
2214
2207
|
SCreativeFormatVariantRelationsDocument
|
|
2215
2208
|
]);
|
|
2216
|
-
var STermDocumentWithRelations =
|
|
2209
|
+
var STermDocumentWithRelations = v44.intersect([
|
|
2217
2210
|
SBaseDocument,
|
|
2218
2211
|
SBaseTermDocument,
|
|
2219
2212
|
STermRelationsDocument
|
|
2220
2213
|
]);
|
|
2221
|
-
var SWebsiteDocumentWithRelations =
|
|
2214
|
+
var SWebsiteDocumentWithRelations = v44.intersect([
|
|
2222
2215
|
SBaseDocument,
|
|
2223
2216
|
SBaseWebsiteDocument,
|
|
2224
2217
|
SWebsiteRelationsDocument
|
|
@@ -2239,10 +2232,10 @@ function datePlusDays(today, days = 30) {
|
|
|
2239
2232
|
function validateAndClean(schema, input) {
|
|
2240
2233
|
var _a, _b;
|
|
2241
2234
|
try {
|
|
2242
|
-
const parsed =
|
|
2235
|
+
const parsed = v44.parse(schema, input);
|
|
2243
2236
|
return { data: parsed, error: null, errors: null };
|
|
2244
2237
|
} catch (err) {
|
|
2245
|
-
if (err instanceof
|
|
2238
|
+
if (err instanceof v44.ValiError) {
|
|
2246
2239
|
const errors = {};
|
|
2247
2240
|
for (const issue of err.issues) {
|
|
2248
2241
|
const field = ((_b = (_a = issue.path) == null ? void 0 : _a[0]) == null ? void 0 : _b.key) || "unknown";
|