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