@joeygrable94/utm-src-pub-validators 0.0.73 → 0.0.75
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 -944
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -6
- package/dist/index.d.ts +12 -6
- package/dist/index.js +947 -943
- 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,149 +714,153 @@ 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 = [
|
|
737
|
+
"no date",
|
|
737
738
|
"annually",
|
|
738
739
|
"quarterly",
|
|
739
740
|
"monthly",
|
|
740
|
-
"on a specific date"
|
|
741
|
-
"no date"
|
|
741
|
+
"on a specific 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.")
|
|
784
788
|
),
|
|
785
|
-
sources:
|
|
786
|
-
|
|
787
|
-
|
|
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.")
|
|
789
793
|
),
|
|
790
|
-
mediums:
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
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.")
|
|
794
798
|
),
|
|
795
|
-
campaigns:
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
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.")
|
|
799
803
|
),
|
|
800
|
-
contents:
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
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.")
|
|
804
808
|
),
|
|
805
|
-
creative_formats:
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
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.")
|
|
810
814
|
)
|
|
811
815
|
),
|
|
812
|
-
terms:
|
|
813
|
-
|
|
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.")
|
|
816
820
|
)
|
|
817
821
|
});
|
|
818
|
-
var SStripeCheckoutLineItem =
|
|
822
|
+
var SStripeCheckoutLineItem = v12__namespace.object({
|
|
819
823
|
price: IsValidPriceId,
|
|
820
|
-
quantity:
|
|
824
|
+
quantity: v12__namespace.pipe(v12__namespace.number(), v12__namespace.minValue(1), v12__namespace.maxValue(1))
|
|
821
825
|
});
|
|
822
|
-
var SStripeCheckoutCreateSession =
|
|
823
|
-
line_items:
|
|
824
|
-
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"]),
|
|
825
829
|
success_url: IsValidOrUndefinedUrlDestination,
|
|
826
830
|
cancel_url: IsValidOrUndefinedUrlDestination
|
|
827
831
|
});
|
|
828
|
-
var SQueryListTrackingLinkDocuments =
|
|
832
|
+
var SQueryListTrackingLinkDocuments = v12__namespace.object({
|
|
829
833
|
documentId: IsValidReferenceDocumentId,
|
|
830
834
|
page: IsValidMinPage,
|
|
831
|
-
size:
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
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)
|
|
837
841
|
),
|
|
838
842
|
TRACKING_LINK_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
839
843
|
),
|
|
840
844
|
TRACKING_LINK_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
841
845
|
),
|
|
842
|
-
is_active:
|
|
843
|
-
destination:
|
|
844
|
-
protocol:
|
|
845
|
-
domain:
|
|
846
|
-
path:
|
|
847
|
-
query:
|
|
848
|
-
fragment:
|
|
849
|
-
utm_source:
|
|
850
|
-
utm_medium:
|
|
851
|
-
utm_campaign:
|
|
852
|
-
utm_creative_format:
|
|
853
|
-
utm_content:
|
|
854
|
-
utm_term:
|
|
855
|
-
utm_id:
|
|
856
|
-
group:
|
|
857
|
-
creator:
|
|
858
|
-
});
|
|
859
|
-
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({
|
|
860
864
|
group: IsValidReferenceDocumentId,
|
|
861
865
|
is_active: IsValidIsActive,
|
|
862
866
|
destination: IsValidUrlDestination,
|
|
@@ -873,30 +877,30 @@ var SCreateTrackingLinkDocument = v9__namespace.object({
|
|
|
873
877
|
utm_term: IsValidUrlUtmTerm,
|
|
874
878
|
utm_id: IsValidUrlUtmId
|
|
875
879
|
});
|
|
876
|
-
var SCreateMultipleTrackingLinkDocuments =
|
|
877
|
-
tracking_links:
|
|
878
|
-
|
|
879
|
-
|
|
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")
|
|
880
884
|
)
|
|
881
885
|
});
|
|
882
|
-
var SCreatePreviewTrackingLinkDocument =
|
|
886
|
+
var SCreatePreviewTrackingLinkDocument = v12__namespace.object({
|
|
883
887
|
...SCreateTrackingLinkDocument.entries,
|
|
884
|
-
is_duplicate:
|
|
885
|
-
is_saved:
|
|
888
|
+
is_duplicate: v12__namespace.boolean(),
|
|
889
|
+
is_saved: v12__namespace.boolean()
|
|
886
890
|
});
|
|
887
|
-
var SCreatePreviewMultipleTrackingLinkDocuments =
|
|
888
|
-
tracking_links:
|
|
889
|
-
|
|
890
|
-
|
|
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")
|
|
891
895
|
)
|
|
892
896
|
});
|
|
893
|
-
var SReadTrackingLinkDocumentById =
|
|
897
|
+
var SReadTrackingLinkDocumentById = v12__namespace.object({
|
|
894
898
|
id: IsValidReferenceId
|
|
895
899
|
});
|
|
896
|
-
var SReadTrackingLinkDocumentByDocumentId =
|
|
900
|
+
var SReadTrackingLinkDocumentByDocumentId = v12__namespace.object({
|
|
897
901
|
documentId: IsValidReferenceDocumentId
|
|
898
902
|
});
|
|
899
|
-
var SUpdateAsCreatorTrackingLinkDocument =
|
|
903
|
+
var SUpdateAsCreatorTrackingLinkDocument = v12__namespace.object({
|
|
900
904
|
is_active: IsValidOrUndefinedIsActive,
|
|
901
905
|
destination: IsValidOrUndefinedUrlDestination,
|
|
902
906
|
protocol: IsValidOrUndefinedUrlProtocol,
|
|
@@ -912,11 +916,11 @@ var SUpdateAsCreatorTrackingLinkDocument = v9__namespace.object({
|
|
|
912
916
|
utm_term: IsValidOrUndefinedUrlUtmTerm,
|
|
913
917
|
utm_id: IsValidOrUndefinedUrlUtmId
|
|
914
918
|
});
|
|
915
|
-
var SUpdateAsCreatorTrackingLinkDocumentRequest =
|
|
919
|
+
var SUpdateAsCreatorTrackingLinkDocumentRequest = v12__namespace.object({
|
|
916
920
|
documentId: IsValidReferenceDocumentId,
|
|
917
921
|
data: SUpdateAsCreatorTrackingLinkDocument
|
|
918
922
|
});
|
|
919
|
-
var SUpdateAsInvitedTrackingLinkDocument =
|
|
923
|
+
var SUpdateAsInvitedTrackingLinkDocument = v12__namespace.object({
|
|
920
924
|
is_active: IsValidOrUndefinedIsActive,
|
|
921
925
|
destination: IsValidOrUndefinedUrlDestination,
|
|
922
926
|
protocol: IsValidOrUndefinedUrlProtocol,
|
|
@@ -932,26 +936,26 @@ var SUpdateAsInvitedTrackingLinkDocument = v9__namespace.object({
|
|
|
932
936
|
utm_term: IsValidOrUndefinedUrlUtmTerm,
|
|
933
937
|
utm_id: IsValidOrUndefinedUrlUtmId
|
|
934
938
|
});
|
|
935
|
-
var SUpdateAsInvitedTrackingLinkDocumentRequest =
|
|
939
|
+
var SUpdateAsInvitedTrackingLinkDocumentRequest = v12__namespace.object({
|
|
936
940
|
documentId: IsValidReferenceDocumentId,
|
|
937
941
|
data: SUpdateAsInvitedTrackingLinkDocument
|
|
938
942
|
});
|
|
939
|
-
var SUpdateTrackingLinkDocumentRequest =
|
|
943
|
+
var SUpdateTrackingLinkDocumentRequest = v12__namespace.union([
|
|
940
944
|
SUpdateAsCreatorTrackingLinkDocument,
|
|
941
945
|
SUpdateAsInvitedTrackingLinkDocument
|
|
942
946
|
]);
|
|
943
|
-
var SDeleteTrackingLinkDocument =
|
|
947
|
+
var SDeleteTrackingLinkDocument = v12__namespace.object({
|
|
944
948
|
documentId: IsValidReferenceDocumentId
|
|
945
949
|
});
|
|
946
|
-
var SQueryListUserAccountDocuments =
|
|
950
|
+
var SQueryListUserAccountDocuments = v12__namespace.object({
|
|
947
951
|
documentId: IsValidReferenceDocumentId,
|
|
948
952
|
page: IsValidMinPage,
|
|
949
|
-
size:
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
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)
|
|
955
959
|
),
|
|
956
960
|
USER_ACCOUNT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
957
961
|
),
|
|
@@ -967,7 +971,7 @@ var SQueryListUserAccountDocuments = v9__namespace.object({
|
|
|
967
971
|
trial_period_end_after: IsValidOrUndefinedTrialPeriodEnd,
|
|
968
972
|
trial_period_end_before: IsValidOrUndefinedTrialPeriodEnd
|
|
969
973
|
});
|
|
970
|
-
var SCreateUserAccountDocument =
|
|
974
|
+
var SCreateUserAccountDocument = v12__namespace.object({
|
|
971
975
|
customer_id: IsValidOrUndefinedCustomerId,
|
|
972
976
|
subscription_id: IsValidOrUndefinedSubscriptionId,
|
|
973
977
|
subscription_status: IsValidSubscriptionStatus,
|
|
@@ -975,13 +979,13 @@ var SCreateUserAccountDocument = v9__namespace.object({
|
|
|
975
979
|
current_period_end: IsValidCurrentPeriodEnd,
|
|
976
980
|
trial_period_end: IsValidOrUndefinedTrialPeriodEnd
|
|
977
981
|
});
|
|
978
|
-
var SReadUserAccountDocumentById =
|
|
982
|
+
var SReadUserAccountDocumentById = v12__namespace.object({
|
|
979
983
|
id: IsValidReferenceId
|
|
980
984
|
});
|
|
981
|
-
var SReadUserAccountDocumentByDocumentId =
|
|
985
|
+
var SReadUserAccountDocumentByDocumentId = v12__namespace.object({
|
|
982
986
|
documentId: IsValidReferenceDocumentId
|
|
983
987
|
});
|
|
984
|
-
var SUpdateUserAccountDocument =
|
|
988
|
+
var SUpdateUserAccountDocument = v12__namespace.object({
|
|
985
989
|
customer_id: IsValidOrUndefinedCustomerId,
|
|
986
990
|
subscription_id: IsValidOrUndefinedSubscriptionId,
|
|
987
991
|
subscription_status: IsValidOrUndefinedSubscriptionStatus,
|
|
@@ -989,22 +993,22 @@ var SUpdateUserAccountDocument = v9__namespace.object({
|
|
|
989
993
|
current_period_end: IsValidOrUndefinedCurrentPeriodEnd,
|
|
990
994
|
trial_period_end: IsValidOrUndefinedTrialPeriodEnd
|
|
991
995
|
});
|
|
992
|
-
var SQueryListUserLimitationDocuments =
|
|
996
|
+
var SQueryListUserLimitationDocuments = v12__namespace.object({
|
|
993
997
|
documentId: IsValidReferenceDocumentId,
|
|
994
998
|
page: IsValidMinPage,
|
|
995
|
-
size:
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
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)
|
|
1001
1005
|
),
|
|
1002
1006
|
USER_LIMITATION_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1003
1007
|
),
|
|
1004
1008
|
USER_LIMITATION_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1005
1009
|
)
|
|
1006
1010
|
});
|
|
1007
|
-
var SCreateUserLimitationsDocument =
|
|
1011
|
+
var SCreateUserLimitationsDocument = v12__namespace.object({
|
|
1008
1012
|
limit_groups: IsValidUserLimitationNumberFallback,
|
|
1009
1013
|
limit_group_users: IsValidUserLimitationNumberFallback,
|
|
1010
1014
|
limit_websites: IsValidUserLimitationNumberFallback,
|
|
@@ -1021,13 +1025,13 @@ var SCreateUserLimitationsDocument = v9__namespace.object({
|
|
|
1021
1025
|
limit_creative_format_variants: IsValidUserLimitationNumberFallback,
|
|
1022
1026
|
limit_terms: IsValidUserLimitationNumberFallback
|
|
1023
1027
|
});
|
|
1024
|
-
var SReadUserLimitationsDocumentById =
|
|
1028
|
+
var SReadUserLimitationsDocumentById = v12__namespace.object({
|
|
1025
1029
|
id: IsValidReferenceId
|
|
1026
1030
|
});
|
|
1027
|
-
var SReadUserLimitationsDocumentByDocumentId =
|
|
1031
|
+
var SReadUserLimitationsDocumentByDocumentId = v12__namespace.object({
|
|
1028
1032
|
documentId: IsValidReferenceDocumentId
|
|
1029
1033
|
});
|
|
1030
|
-
var SUpdateUserLimitationsDocument =
|
|
1034
|
+
var SUpdateUserLimitationsDocument = v12__namespace.object({
|
|
1031
1035
|
limit_groups: IsValidOrUndefinedUserLimitationNumber,
|
|
1032
1036
|
limit_group_users: IsValidOrUndefinedUserLimitationNumber,
|
|
1033
1037
|
limit_websites: IsValidOrUndefinedUserLimitationNumber,
|
|
@@ -1044,69 +1048,69 @@ var SUpdateUserLimitationsDocument = v9__namespace.object({
|
|
|
1044
1048
|
limit_creative_format_variants: IsValidOrUndefinedUserLimitationNumber,
|
|
1045
1049
|
limit_terms: IsValidOrUndefinedUserLimitationNumber
|
|
1046
1050
|
});
|
|
1047
|
-
var SQueryListUserDocuments =
|
|
1051
|
+
var SQueryListUserDocuments = v12__namespace.object({
|
|
1048
1052
|
page: IsValidMinPage,
|
|
1049
|
-
size:
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
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)
|
|
1055
1059
|
),
|
|
1056
1060
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1057
1061
|
),
|
|
1058
1062
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1059
1063
|
),
|
|
1060
|
-
email:
|
|
1061
|
-
username:
|
|
1062
|
-
confirmed:
|
|
1063
|
-
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)
|
|
1064
1068
|
});
|
|
1065
|
-
var SQueryListUserDocumentsByIdentifier =
|
|
1066
|
-
identifier:
|
|
1069
|
+
var SQueryListUserDocumentsByIdentifier = v12__namespace.object({
|
|
1070
|
+
identifier: v12__namespace.pipe(v12__namespace.string(), v12__namespace.maxLength(255)),
|
|
1067
1071
|
page: IsValidMinPage,
|
|
1068
|
-
size:
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
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)
|
|
1074
1078
|
),
|
|
1075
1079
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1076
1080
|
),
|
|
1077
1081
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1078
1082
|
)
|
|
1079
1083
|
});
|
|
1080
|
-
var SReadUserDocumentById =
|
|
1084
|
+
var SReadUserDocumentById = v12__namespace.object({
|
|
1081
1085
|
id: IsValidReferenceId
|
|
1082
1086
|
});
|
|
1083
|
-
var SReadUserDocumentByDocumentId =
|
|
1087
|
+
var SReadUserDocumentByDocumentId = v12__namespace.object({
|
|
1084
1088
|
documentId: IsValidReferenceDocumentId
|
|
1085
1089
|
});
|
|
1086
|
-
var SQueryListCampaignIdDocuments =
|
|
1090
|
+
var SQueryListCampaignIdDocuments = v12__namespace.object({
|
|
1087
1091
|
documentId: IsValidReferenceDocumentId,
|
|
1088
1092
|
page: IsValidMinPage,
|
|
1089
|
-
size:
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
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)
|
|
1095
1099
|
),
|
|
1096
1100
|
CAMPAIGN_ID_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1097
1101
|
),
|
|
1098
1102
|
CAMPAIGN_ID_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1099
1103
|
),
|
|
1100
|
-
cost:
|
|
1101
|
-
min_cost:
|
|
1102
|
-
max_cost:
|
|
1103
|
-
label:
|
|
1104
|
-
value:
|
|
1105
|
-
is_active:
|
|
1106
|
-
group:
|
|
1107
|
-
creator:
|
|
1108
|
-
});
|
|
1109
|
-
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({
|
|
1110
1114
|
group: IsValidReferenceDocumentId,
|
|
1111
1115
|
cost: IsValidCost,
|
|
1112
1116
|
label: IsValidLabel,
|
|
@@ -1114,793 +1118,793 @@ var SCreateCampaignIdDocument = v9__namespace.object({
|
|
|
1114
1118
|
description: IsValidDescription,
|
|
1115
1119
|
is_active: IsValidIsActive
|
|
1116
1120
|
});
|
|
1117
|
-
var SCreateMultipleCampaignIdDocuments =
|
|
1118
|
-
campaign_ids:
|
|
1119
|
-
|
|
1120
|
-
|
|
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")
|
|
1121
1125
|
)
|
|
1122
1126
|
});
|
|
1123
|
-
var SReadCampaignIdDocumentById =
|
|
1127
|
+
var SReadCampaignIdDocumentById = v12__namespace.object({
|
|
1124
1128
|
id: IsValidReferenceId
|
|
1125
1129
|
});
|
|
1126
|
-
var SReadCampaignIdDocumentByDocumentId =
|
|
1130
|
+
var SReadCampaignIdDocumentByDocumentId = v12__namespace.object({
|
|
1127
1131
|
documentId: IsValidReferenceDocumentId
|
|
1128
1132
|
});
|
|
1129
|
-
var SUpdateAsCreatorCampaignIdDocument =
|
|
1133
|
+
var SUpdateAsCreatorCampaignIdDocument = v12__namespace.object({
|
|
1130
1134
|
cost: IsValidOrUndefinedCost,
|
|
1131
1135
|
label: IsValidOrUndefinedLabel,
|
|
1132
1136
|
value: IsValidOrUndefinedValue,
|
|
1133
1137
|
description: IsValidDescription,
|
|
1134
1138
|
is_active: IsValidOrUndefinedIsActive
|
|
1135
1139
|
});
|
|
1136
|
-
var SUpdateAsCreatorCampaignIdDocumentRequest =
|
|
1140
|
+
var SUpdateAsCreatorCampaignIdDocumentRequest = v12__namespace.object({
|
|
1137
1141
|
documentId: IsValidReferenceDocumentId,
|
|
1138
1142
|
data: SUpdateAsCreatorCampaignIdDocument
|
|
1139
1143
|
});
|
|
1140
|
-
var SUpdateAsInvitedCampaignIdDocument =
|
|
1144
|
+
var SUpdateAsInvitedCampaignIdDocument = v12__namespace.object({
|
|
1141
1145
|
label: IsValidOrUndefinedLabel,
|
|
1142
1146
|
description: IsValidDescription,
|
|
1143
1147
|
is_active: IsValidOrUndefinedIsActive
|
|
1144
1148
|
});
|
|
1145
|
-
var SUpdateAsInvitedCampaignIdDocumentRequest =
|
|
1149
|
+
var SUpdateAsInvitedCampaignIdDocumentRequest = v12__namespace.object({
|
|
1146
1150
|
documentId: IsValidReferenceDocumentId,
|
|
1147
1151
|
data: SUpdateAsInvitedCampaignIdDocument
|
|
1148
1152
|
});
|
|
1149
|
-
var SUpdateCampaignIdDocumentRequest =
|
|
1153
|
+
var SUpdateCampaignIdDocumentRequest = v12__namespace.union([
|
|
1150
1154
|
SUpdateAsCreatorCampaignIdDocument,
|
|
1151
1155
|
SUpdateAsInvitedCampaignIdDocument
|
|
1152
1156
|
]);
|
|
1153
|
-
var SDeleteCampaignIdDocument =
|
|
1157
|
+
var SDeleteCampaignIdDocument = v12__namespace.object({
|
|
1154
1158
|
documentId: IsValidReferenceDocumentId
|
|
1155
1159
|
});
|
|
1156
|
-
var SQueryListCampaignKeyDocuments =
|
|
1160
|
+
var SQueryListCampaignKeyDocuments = v12__namespace.object({
|
|
1157
1161
|
documentId: IsValidReferenceDocumentId,
|
|
1158
1162
|
page: IsValidMinPage,
|
|
1159
|
-
size:
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
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)
|
|
1165
1169
|
),
|
|
1166
1170
|
CAMPAIGN_KEY_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1167
1171
|
),
|
|
1168
1172
|
CAMPAIGN_KEY_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1169
1173
|
),
|
|
1170
|
-
label:
|
|
1171
|
-
value:
|
|
1172
|
-
is_active:
|
|
1173
|
-
group:
|
|
1174
|
-
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)
|
|
1175
1179
|
});
|
|
1176
|
-
var SCreateCampaignKeyDocument =
|
|
1180
|
+
var SCreateCampaignKeyDocument = v12__namespace.object({
|
|
1177
1181
|
group: IsValidReferenceDocumentId,
|
|
1178
1182
|
label: IsValidLabel,
|
|
1179
1183
|
value: IsValidValue,
|
|
1180
1184
|
description: IsValidDescription,
|
|
1181
1185
|
is_active: IsValidIsActive
|
|
1182
1186
|
});
|
|
1183
|
-
var SCreateMultipleCampaignKeyDocuments =
|
|
1184
|
-
campaign_keys:
|
|
1185
|
-
|
|
1186
|
-
|
|
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")
|
|
1187
1191
|
)
|
|
1188
1192
|
});
|
|
1189
|
-
var SReadCampaignKeyDocumentById =
|
|
1193
|
+
var SReadCampaignKeyDocumentById = v12__namespace.object({
|
|
1190
1194
|
id: IsValidReferenceId
|
|
1191
1195
|
});
|
|
1192
|
-
var SReadCampaignKeyDocumentByDocumentId =
|
|
1196
|
+
var SReadCampaignKeyDocumentByDocumentId = v12__namespace.object({
|
|
1193
1197
|
documentId: IsValidReferenceDocumentId
|
|
1194
1198
|
});
|
|
1195
|
-
var SUpdateAsCreatorCampaignKeyDocument =
|
|
1199
|
+
var SUpdateAsCreatorCampaignKeyDocument = v12__namespace.object({
|
|
1196
1200
|
label: IsValidOrUndefinedLabel,
|
|
1197
1201
|
value: IsValidOrUndefinedValue,
|
|
1198
1202
|
description: IsValidOrUndefinedDescription,
|
|
1199
1203
|
is_active: IsValidOrUndefinedIsActive
|
|
1200
1204
|
});
|
|
1201
|
-
var SUpdateAsCreatorCampaignKeyDocumentRequest =
|
|
1205
|
+
var SUpdateAsCreatorCampaignKeyDocumentRequest = v12__namespace.object({
|
|
1202
1206
|
documentId: IsValidReferenceDocumentId,
|
|
1203
1207
|
data: SUpdateAsCreatorCampaignKeyDocument
|
|
1204
1208
|
});
|
|
1205
|
-
var SUpdateAsInvitedCampaignKeyDocument =
|
|
1209
|
+
var SUpdateAsInvitedCampaignKeyDocument = v12__namespace.object({
|
|
1206
1210
|
label: IsValidOrUndefinedLabel,
|
|
1207
1211
|
description: IsValidDescription,
|
|
1208
1212
|
is_active: IsValidOrUndefinedIsActive
|
|
1209
1213
|
});
|
|
1210
|
-
var SUpdateAsInvitedCampaignKeyDocumentRequest =
|
|
1214
|
+
var SUpdateAsInvitedCampaignKeyDocumentRequest = v12__namespace.object({
|
|
1211
1215
|
documentId: IsValidReferenceDocumentId,
|
|
1212
1216
|
data: SUpdateAsInvitedCampaignKeyDocument
|
|
1213
1217
|
});
|
|
1214
|
-
var SUpdateCampaignKeyDocumentRequest =
|
|
1218
|
+
var SUpdateCampaignKeyDocumentRequest = v12__namespace.union([
|
|
1215
1219
|
SUpdateAsCreatorCampaignKeyDocument,
|
|
1216
1220
|
SUpdateAsInvitedCampaignKeyDocument
|
|
1217
1221
|
]);
|
|
1218
|
-
var SDeleteCampaignKeyDocument =
|
|
1222
|
+
var SDeleteCampaignKeyDocument = v12__namespace.object({
|
|
1219
1223
|
documentId: IsValidReferenceDocumentId
|
|
1220
1224
|
});
|
|
1221
|
-
var SQueryListCampaignPhaseDocuments =
|
|
1225
|
+
var SQueryListCampaignPhaseDocuments = v12__namespace.object({
|
|
1222
1226
|
documentId: IsValidReferenceDocumentId,
|
|
1223
1227
|
page: IsValidMinPage,
|
|
1224
|
-
size:
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
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)
|
|
1230
1234
|
),
|
|
1231
1235
|
CAMPAIGN_PHASE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1232
1236
|
),
|
|
1233
1237
|
CAMPAIGN_PHASE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1234
1238
|
),
|
|
1235
|
-
label:
|
|
1236
|
-
value:
|
|
1237
|
-
is_active:
|
|
1238
|
-
group:
|
|
1239
|
-
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)
|
|
1240
1244
|
});
|
|
1241
|
-
var SCreateCampaignPhaseDocument =
|
|
1245
|
+
var SCreateCampaignPhaseDocument = v12__namespace.object({
|
|
1242
1246
|
group: IsValidReferenceDocumentId,
|
|
1243
1247
|
label: IsValidLabel,
|
|
1244
1248
|
value: IsValidValue,
|
|
1245
1249
|
description: IsValidDescription,
|
|
1246
1250
|
is_active: IsValidIsActive
|
|
1247
1251
|
});
|
|
1248
|
-
var SCreateMultipleCampaignPhaseDocuments =
|
|
1249
|
-
campaign_phases:
|
|
1250
|
-
|
|
1251
|
-
|
|
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")
|
|
1252
1256
|
)
|
|
1253
1257
|
});
|
|
1254
|
-
var SReadCampaignPhaseDocumentById =
|
|
1258
|
+
var SReadCampaignPhaseDocumentById = v12__namespace.object({
|
|
1255
1259
|
id: IsValidReferenceId
|
|
1256
1260
|
});
|
|
1257
|
-
var SReadCampaignPhaseDocumentByDocumentId =
|
|
1261
|
+
var SReadCampaignPhaseDocumentByDocumentId = v12__namespace.object({
|
|
1258
1262
|
documentId: IsValidReferenceDocumentId
|
|
1259
1263
|
});
|
|
1260
|
-
var SUpdateAsCreatorCampaignPhaseDocument =
|
|
1264
|
+
var SUpdateAsCreatorCampaignPhaseDocument = v12__namespace.object({
|
|
1261
1265
|
label: IsValidOrUndefinedLabel,
|
|
1262
1266
|
value: IsValidOrUndefinedValue,
|
|
1263
1267
|
description: IsValidOrUndefinedDescription,
|
|
1264
1268
|
is_active: IsValidOrUndefinedIsActive
|
|
1265
1269
|
});
|
|
1266
|
-
var SUpdateAsCreatorCampaignPhaseDocumentRequest =
|
|
1270
|
+
var SUpdateAsCreatorCampaignPhaseDocumentRequest = v12__namespace.object({
|
|
1267
1271
|
documentId: IsValidReferenceDocumentId,
|
|
1268
1272
|
data: SUpdateAsCreatorCampaignPhaseDocument
|
|
1269
1273
|
});
|
|
1270
|
-
var SUpdateAsInvitedCampaignPhaseDocument =
|
|
1274
|
+
var SUpdateAsInvitedCampaignPhaseDocument = v12__namespace.object({
|
|
1271
1275
|
label: IsValidOrUndefinedLabel,
|
|
1272
1276
|
description: IsValidDescription,
|
|
1273
1277
|
is_active: IsValidOrUndefinedIsActive
|
|
1274
1278
|
});
|
|
1275
|
-
var SUpdateAsInvitedCampaignPhaseDocumentRequest =
|
|
1279
|
+
var SUpdateAsInvitedCampaignPhaseDocumentRequest = v12__namespace.object({
|
|
1276
1280
|
documentId: IsValidReferenceDocumentId,
|
|
1277
1281
|
data: SUpdateAsInvitedCampaignPhaseDocument
|
|
1278
1282
|
});
|
|
1279
|
-
var SUpdateCampaignPhaseDocumentRequest =
|
|
1283
|
+
var SUpdateCampaignPhaseDocumentRequest = v12__namespace.union([
|
|
1280
1284
|
SUpdateAsCreatorCampaignPhaseDocument,
|
|
1281
1285
|
SUpdateAsInvitedCampaignPhaseDocument
|
|
1282
1286
|
]);
|
|
1283
|
-
var SDeleteCampaignPhaseDocument =
|
|
1287
|
+
var SDeleteCampaignPhaseDocument = v12__namespace.object({
|
|
1284
1288
|
documentId: IsValidReferenceDocumentId
|
|
1285
1289
|
});
|
|
1286
|
-
var SQueryListCampaignProductDocuments =
|
|
1290
|
+
var SQueryListCampaignProductDocuments = v12__namespace.object({
|
|
1287
1291
|
documentId: IsValidReferenceDocumentId,
|
|
1288
1292
|
page: IsValidMinPage,
|
|
1289
|
-
size:
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
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)
|
|
1295
1299
|
),
|
|
1296
1300
|
CAMPAIGN_PRODUCT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1297
1301
|
),
|
|
1298
1302
|
CAMPAIGN_PRODUCT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1299
1303
|
),
|
|
1300
|
-
label:
|
|
1301
|
-
value:
|
|
1302
|
-
is_active:
|
|
1303
|
-
group:
|
|
1304
|
-
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)
|
|
1305
1309
|
});
|
|
1306
|
-
var SCreateCampaignProductDocument =
|
|
1310
|
+
var SCreateCampaignProductDocument = v12__namespace.object({
|
|
1307
1311
|
group: IsValidReferenceDocumentId,
|
|
1308
1312
|
label: IsValidLabel,
|
|
1309
1313
|
value: IsValidValue,
|
|
1310
1314
|
description: IsValidDescription,
|
|
1311
1315
|
is_active: IsValidIsActive
|
|
1312
1316
|
});
|
|
1313
|
-
var SCreateMultipleCampaignProductDocuments =
|
|
1314
|
-
campaign_products:
|
|
1315
|
-
|
|
1316
|
-
|
|
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")
|
|
1317
1321
|
)
|
|
1318
1322
|
});
|
|
1319
|
-
var SReadCampaignProductDocumentById =
|
|
1323
|
+
var SReadCampaignProductDocumentById = v12__namespace.object({
|
|
1320
1324
|
id: IsValidReferenceId
|
|
1321
1325
|
});
|
|
1322
|
-
var SReadCampaignProductDocumentByDocumentId =
|
|
1326
|
+
var SReadCampaignProductDocumentByDocumentId = v12__namespace.object({
|
|
1323
1327
|
documentId: IsValidReferenceDocumentId
|
|
1324
1328
|
});
|
|
1325
|
-
var SUpdateAsCreatorCampaignProductDocument =
|
|
1329
|
+
var SUpdateAsCreatorCampaignProductDocument = v12__namespace.object({
|
|
1326
1330
|
label: IsValidOrUndefinedLabel,
|
|
1327
1331
|
value: IsValidOrUndefinedValue,
|
|
1328
1332
|
description: IsValidOrUndefinedDescription,
|
|
1329
1333
|
is_active: IsValidOrUndefinedIsActive
|
|
1330
1334
|
});
|
|
1331
|
-
var SUpdateAsCreatorCampaignProductDocumentRequest =
|
|
1335
|
+
var SUpdateAsCreatorCampaignProductDocumentRequest = v12__namespace.object({
|
|
1332
1336
|
documentId: IsValidReferenceDocumentId,
|
|
1333
1337
|
data: SUpdateAsCreatorCampaignProductDocument
|
|
1334
1338
|
});
|
|
1335
|
-
var SUpdateAsInvitedCampaignProductDocument =
|
|
1339
|
+
var SUpdateAsInvitedCampaignProductDocument = v12__namespace.object({
|
|
1336
1340
|
label: IsValidOrUndefinedLabel,
|
|
1337
1341
|
description: IsValidDescription,
|
|
1338
1342
|
is_active: IsValidOrUndefinedIsActive
|
|
1339
1343
|
});
|
|
1340
|
-
var SUpdateAsInvitedCampaignProductDocumentRequest =
|
|
1344
|
+
var SUpdateAsInvitedCampaignProductDocumentRequest = v12__namespace.object({
|
|
1341
1345
|
documentId: IsValidReferenceDocumentId,
|
|
1342
1346
|
data: SUpdateAsInvitedCampaignProductDocument
|
|
1343
1347
|
});
|
|
1344
|
-
var SUpdateCampaignProductDocumentRequest =
|
|
1348
|
+
var SUpdateCampaignProductDocumentRequest = v12__namespace.union([
|
|
1345
1349
|
SUpdateAsCreatorCampaignProductDocument,
|
|
1346
1350
|
SUpdateAsInvitedCampaignProductDocument
|
|
1347
1351
|
]);
|
|
1348
|
-
var SDeleteCampaignProductDocument =
|
|
1352
|
+
var SDeleteCampaignProductDocument = v12__namespace.object({
|
|
1349
1353
|
documentId: IsValidReferenceDocumentId
|
|
1350
1354
|
});
|
|
1351
|
-
var SQueryListCampaignTargetDocuments =
|
|
1355
|
+
var SQueryListCampaignTargetDocuments = v12__namespace.object({
|
|
1352
1356
|
documentId: IsValidReferenceDocumentId,
|
|
1353
1357
|
page: IsValidMinPage,
|
|
1354
|
-
size:
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
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)
|
|
1360
1364
|
),
|
|
1361
1365
|
CAMPAIGN_PRODUCT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1362
1366
|
),
|
|
1363
1367
|
CAMPAIGN_PRODUCT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1364
1368
|
),
|
|
1365
|
-
label:
|
|
1366
|
-
value:
|
|
1367
|
-
is_active:
|
|
1368
|
-
group:
|
|
1369
|
-
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)
|
|
1370
1374
|
});
|
|
1371
|
-
var SCreateCampaignTargetDocument =
|
|
1375
|
+
var SCreateCampaignTargetDocument = v12__namespace.object({
|
|
1372
1376
|
group: IsValidReferenceDocumentId,
|
|
1373
1377
|
label: IsValidLabel,
|
|
1374
1378
|
value: IsValidValue,
|
|
1375
1379
|
description: IsValidDescription,
|
|
1376
1380
|
is_active: IsValidIsActive
|
|
1377
1381
|
});
|
|
1378
|
-
var SCreateMultipleCampaignTargetDocuments =
|
|
1379
|
-
campaign_targets:
|
|
1380
|
-
|
|
1381
|
-
|
|
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")
|
|
1382
1386
|
)
|
|
1383
1387
|
});
|
|
1384
|
-
var SReadCampaignTargetDocumentById =
|
|
1388
|
+
var SReadCampaignTargetDocumentById = v12__namespace.object({
|
|
1385
1389
|
id: IsValidReferenceId
|
|
1386
1390
|
});
|
|
1387
|
-
var SReadCampaignTargetDocumentByDocumentId =
|
|
1391
|
+
var SReadCampaignTargetDocumentByDocumentId = v12__namespace.object({
|
|
1388
1392
|
documentId: IsValidReferenceDocumentId
|
|
1389
1393
|
});
|
|
1390
|
-
var SUpdateAsCreatorCampaignTargetDocument =
|
|
1394
|
+
var SUpdateAsCreatorCampaignTargetDocument = v12__namespace.object({
|
|
1391
1395
|
label: IsValidOrUndefinedLabel,
|
|
1392
1396
|
value: IsValidOrUndefinedValue,
|
|
1393
1397
|
description: IsValidOrUndefinedDescription,
|
|
1394
1398
|
is_active: IsValidOrUndefinedIsActive
|
|
1395
1399
|
});
|
|
1396
|
-
var SUpdateAsCreatorCampaignTargetDocumentRequest =
|
|
1400
|
+
var SUpdateAsCreatorCampaignTargetDocumentRequest = v12__namespace.object({
|
|
1397
1401
|
documentId: IsValidReferenceDocumentId,
|
|
1398
1402
|
data: SUpdateAsCreatorCampaignTargetDocument
|
|
1399
1403
|
});
|
|
1400
|
-
var SUpdateAsInvitedCampaignTargetDocument =
|
|
1404
|
+
var SUpdateAsInvitedCampaignTargetDocument = v12__namespace.object({
|
|
1401
1405
|
label: IsValidOrUndefinedLabel,
|
|
1402
1406
|
description: IsValidDescription,
|
|
1403
1407
|
is_active: IsValidOrUndefinedIsActive
|
|
1404
1408
|
});
|
|
1405
|
-
var SUpdateAsInvitedCampaignTargetDocumentRequest =
|
|
1409
|
+
var SUpdateAsInvitedCampaignTargetDocumentRequest = v12__namespace.object({
|
|
1406
1410
|
documentId: IsValidReferenceDocumentId,
|
|
1407
1411
|
data: SUpdateAsInvitedCampaignTargetDocument
|
|
1408
1412
|
});
|
|
1409
|
-
var SUpdateCampaignTargetDocumentRequest =
|
|
1413
|
+
var SUpdateCampaignTargetDocumentRequest = v12__namespace.union([
|
|
1410
1414
|
SUpdateAsCreatorCampaignTargetDocument,
|
|
1411
1415
|
SUpdateAsInvitedCampaignTargetDocument
|
|
1412
1416
|
]);
|
|
1413
|
-
var SDeleteCampaignTargetDocument =
|
|
1417
|
+
var SDeleteCampaignTargetDocument = v12__namespace.object({
|
|
1414
1418
|
documentId: IsValidReferenceDocumentId
|
|
1415
1419
|
});
|
|
1416
|
-
var SQueryListContentDocuments =
|
|
1420
|
+
var SQueryListContentDocuments = v12__namespace.object({
|
|
1417
1421
|
documentId: IsValidReferenceDocumentId,
|
|
1418
1422
|
page: IsValidMinPage,
|
|
1419
|
-
size:
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
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)
|
|
1425
1429
|
),
|
|
1426
1430
|
CONTENT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1427
1431
|
),
|
|
1428
1432
|
CONTENT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1429
1433
|
),
|
|
1430
|
-
label:
|
|
1431
|
-
value:
|
|
1432
|
-
is_active:
|
|
1433
|
-
group:
|
|
1434
|
-
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)
|
|
1435
1439
|
});
|
|
1436
|
-
var SCreateContentDocument =
|
|
1440
|
+
var SCreateContentDocument = v12__namespace.object({
|
|
1437
1441
|
group: IsValidReferenceDocumentId,
|
|
1438
1442
|
label: IsValidLabel,
|
|
1439
1443
|
value: IsValidValue,
|
|
1440
1444
|
description: IsValidDescription,
|
|
1441
1445
|
is_active: IsValidIsActive
|
|
1442
1446
|
});
|
|
1443
|
-
var SCreateMultipleContentDocuments =
|
|
1444
|
-
contents:
|
|
1445
|
-
|
|
1446
|
-
|
|
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")
|
|
1447
1451
|
)
|
|
1448
1452
|
});
|
|
1449
|
-
var SReadContentDocumentById =
|
|
1453
|
+
var SReadContentDocumentById = v12__namespace.object({
|
|
1450
1454
|
id: IsValidReferenceId
|
|
1451
1455
|
});
|
|
1452
|
-
var SReadContentDocumentByDocumentId =
|
|
1456
|
+
var SReadContentDocumentByDocumentId = v12__namespace.object({
|
|
1453
1457
|
documentId: IsValidReferenceDocumentId
|
|
1454
1458
|
});
|
|
1455
|
-
var SUpdateAsCreatorContentDocument =
|
|
1459
|
+
var SUpdateAsCreatorContentDocument = v12__namespace.object({
|
|
1456
1460
|
label: IsValidOrUndefinedLabel,
|
|
1457
1461
|
value: IsValidOrUndefinedValue,
|
|
1458
1462
|
description: IsValidOrUndefinedDescription,
|
|
1459
1463
|
is_active: IsValidOrUndefinedIsActive
|
|
1460
1464
|
});
|
|
1461
|
-
var SUpdateAsCreatorContentDocumentRequest =
|
|
1465
|
+
var SUpdateAsCreatorContentDocumentRequest = v12__namespace.object({
|
|
1462
1466
|
documentId: IsValidReferenceDocumentId,
|
|
1463
1467
|
data: SUpdateAsCreatorContentDocument
|
|
1464
1468
|
});
|
|
1465
|
-
var SUpdateAsInvitedContentDocument =
|
|
1469
|
+
var SUpdateAsInvitedContentDocument = v12__namespace.object({
|
|
1466
1470
|
label: IsValidOrUndefinedLabel,
|
|
1467
1471
|
description: IsValidDescription,
|
|
1468
1472
|
is_active: IsValidOrUndefinedIsActive
|
|
1469
1473
|
});
|
|
1470
|
-
var SUpdateAsInvitedContentDocumentRequest =
|
|
1474
|
+
var SUpdateAsInvitedContentDocumentRequest = v12__namespace.object({
|
|
1471
1475
|
documentId: IsValidReferenceDocumentId,
|
|
1472
1476
|
data: SUpdateAsInvitedContentDocument
|
|
1473
1477
|
});
|
|
1474
|
-
var SUpdateContentDocumentRequest =
|
|
1478
|
+
var SUpdateContentDocumentRequest = v12__namespace.union([
|
|
1475
1479
|
SUpdateAsCreatorContentDocument,
|
|
1476
1480
|
SUpdateAsInvitedContentDocument
|
|
1477
1481
|
]);
|
|
1478
|
-
var SDeleteContentDocument =
|
|
1482
|
+
var SDeleteContentDocument = v12__namespace.object({
|
|
1479
1483
|
documentId: IsValidReferenceDocumentId
|
|
1480
1484
|
});
|
|
1481
|
-
var SQueryListCreativeFormatVariantDocuments =
|
|
1485
|
+
var SQueryListCreativeFormatVariantDocuments = v12__namespace.object({
|
|
1482
1486
|
documentId: IsValidReferenceDocumentId,
|
|
1483
1487
|
page: IsValidMinPage,
|
|
1484
|
-
size:
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
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)
|
|
1490
1494
|
),
|
|
1491
1495
|
CREATIVE_FORMAT_VARIANT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1492
1496
|
),
|
|
1493
1497
|
CREATIVE_FORMAT_VARIANT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1494
1498
|
),
|
|
1495
|
-
label:
|
|
1496
|
-
value:
|
|
1497
|
-
is_active:
|
|
1498
|
-
group:
|
|
1499
|
-
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)
|
|
1500
1504
|
});
|
|
1501
|
-
var SCreateCreativeFormatVariantDocument =
|
|
1505
|
+
var SCreateCreativeFormatVariantDocument = v12__namespace.object({
|
|
1502
1506
|
group: IsValidReferenceDocumentId,
|
|
1503
1507
|
label: IsValidLabel,
|
|
1504
1508
|
value: IsValidValue,
|
|
1505
1509
|
description: IsValidDescription,
|
|
1506
1510
|
is_active: IsValidIsActive
|
|
1507
1511
|
});
|
|
1508
|
-
var SCreateMultipleCreativeFormatVariantDocuments =
|
|
1509
|
-
creative_format_variants:
|
|
1510
|
-
|
|
1511
|
-
|
|
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")
|
|
1512
1516
|
)
|
|
1513
1517
|
});
|
|
1514
|
-
var SReadCreativeFormatVariantDocumentById =
|
|
1518
|
+
var SReadCreativeFormatVariantDocumentById = v12__namespace.object({
|
|
1515
1519
|
id: IsValidReferenceId
|
|
1516
1520
|
});
|
|
1517
|
-
var SReadCreativeFormatVariantDocumentByDocumentId =
|
|
1521
|
+
var SReadCreativeFormatVariantDocumentByDocumentId = v12__namespace.object({
|
|
1518
1522
|
documentId: IsValidReferenceDocumentId
|
|
1519
1523
|
});
|
|
1520
|
-
var SUpdateAsCreatorCreativeFormatVariantDocument =
|
|
1524
|
+
var SUpdateAsCreatorCreativeFormatVariantDocument = v12__namespace.object({
|
|
1521
1525
|
label: IsValidOrUndefinedLabel,
|
|
1522
1526
|
value: IsValidOrUndefinedValue,
|
|
1523
1527
|
description: IsValidOrUndefinedDescription,
|
|
1524
1528
|
is_active: IsValidOrUndefinedIsActive
|
|
1525
1529
|
});
|
|
1526
|
-
var SUpdateAsCreatorCreativeFormatVariantDocumentRequest =
|
|
1530
|
+
var SUpdateAsCreatorCreativeFormatVariantDocumentRequest = v12__namespace.object({
|
|
1527
1531
|
documentId: IsValidReferenceDocumentId,
|
|
1528
1532
|
data: SUpdateAsCreatorCreativeFormatVariantDocument
|
|
1529
1533
|
});
|
|
1530
|
-
var SUpdateAsInvitedCreativeFormatVariantDocument =
|
|
1534
|
+
var SUpdateAsInvitedCreativeFormatVariantDocument = v12__namespace.object({
|
|
1531
1535
|
label: IsValidOrUndefinedLabel,
|
|
1532
1536
|
description: IsValidDescription,
|
|
1533
1537
|
is_active: IsValidOrUndefinedIsActive
|
|
1534
1538
|
});
|
|
1535
|
-
var SUpdateAsInvitedCreativeFormatVariantDocumentRequest =
|
|
1539
|
+
var SUpdateAsInvitedCreativeFormatVariantDocumentRequest = v12__namespace.object({
|
|
1536
1540
|
documentId: IsValidReferenceDocumentId,
|
|
1537
1541
|
data: SUpdateAsInvitedCreativeFormatVariantDocument
|
|
1538
1542
|
});
|
|
1539
|
-
var SUpdateCreativeFormatVariantDocumentRequest =
|
|
1543
|
+
var SUpdateCreativeFormatVariantDocumentRequest = v12__namespace.union([
|
|
1540
1544
|
SUpdateAsCreatorCreativeFormatVariantDocument,
|
|
1541
1545
|
SUpdateAsInvitedCreativeFormatVariantDocument
|
|
1542
1546
|
]);
|
|
1543
|
-
var SDeleteCreativeFormatVariantDocument =
|
|
1547
|
+
var SDeleteCreativeFormatVariantDocument = v12__namespace.object({
|
|
1544
1548
|
documentId: IsValidReferenceDocumentId
|
|
1545
1549
|
});
|
|
1546
|
-
var SQueryListCreativeFormatDocuments =
|
|
1550
|
+
var SQueryListCreativeFormatDocuments = v12__namespace.object({
|
|
1547
1551
|
documentId: IsValidReferenceDocumentId,
|
|
1548
1552
|
page: IsValidMinPage,
|
|
1549
|
-
size:
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
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)
|
|
1555
1559
|
),
|
|
1556
1560
|
CREATIVE_FORMAT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1557
1561
|
),
|
|
1558
1562
|
CREATIVE_FORMAT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1559
1563
|
),
|
|
1560
|
-
label:
|
|
1561
|
-
value:
|
|
1562
|
-
is_active:
|
|
1563
|
-
group:
|
|
1564
|
-
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)
|
|
1565
1569
|
});
|
|
1566
|
-
var SCreateCreativeFormatDocument =
|
|
1570
|
+
var SCreateCreativeFormatDocument = v12__namespace.object({
|
|
1567
1571
|
group: IsValidReferenceDocumentId,
|
|
1568
1572
|
label: IsValidLabel,
|
|
1569
1573
|
value: IsValidValue,
|
|
1570
1574
|
description: IsValidDescription,
|
|
1571
1575
|
is_active: IsValidIsActive
|
|
1572
1576
|
});
|
|
1573
|
-
var SCreateMultipleCreativeFormatDocuments =
|
|
1574
|
-
creative_formats:
|
|
1575
|
-
|
|
1576
|
-
|
|
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")
|
|
1577
1581
|
)
|
|
1578
1582
|
});
|
|
1579
|
-
var SReadCreativeFormatDocumentById =
|
|
1583
|
+
var SReadCreativeFormatDocumentById = v12__namespace.object({
|
|
1580
1584
|
id: IsValidReferenceId
|
|
1581
1585
|
});
|
|
1582
|
-
var SReadCreativeFormatDocumentByDocumentId =
|
|
1586
|
+
var SReadCreativeFormatDocumentByDocumentId = v12__namespace.object({
|
|
1583
1587
|
documentId: IsValidReferenceDocumentId
|
|
1584
1588
|
});
|
|
1585
|
-
var SUpdateAsCreatorCreativeFormatDocument =
|
|
1589
|
+
var SUpdateAsCreatorCreativeFormatDocument = v12__namespace.object({
|
|
1586
1590
|
label: IsValidOrUndefinedLabel,
|
|
1587
1591
|
value: IsValidOrUndefinedValue,
|
|
1588
1592
|
description: IsValidOrUndefinedDescription,
|
|
1589
1593
|
is_active: IsValidOrUndefinedIsActive
|
|
1590
1594
|
});
|
|
1591
|
-
var SUpdateAsCreatorCreativeFormatDocumentRequest =
|
|
1595
|
+
var SUpdateAsCreatorCreativeFormatDocumentRequest = v12__namespace.object({
|
|
1592
1596
|
documentId: IsValidReferenceDocumentId,
|
|
1593
1597
|
data: SUpdateAsCreatorCreativeFormatDocument
|
|
1594
1598
|
});
|
|
1595
|
-
var SUpdateAsInvitedCreativeFormatDocument =
|
|
1599
|
+
var SUpdateAsInvitedCreativeFormatDocument = v12__namespace.object({
|
|
1596
1600
|
label: IsValidOrUndefinedLabel,
|
|
1597
1601
|
description: IsValidDescription,
|
|
1598
1602
|
is_active: IsValidOrUndefinedIsActive
|
|
1599
1603
|
});
|
|
1600
|
-
var SUpdateAsInvitedCreativeFormatDocumentRequest =
|
|
1604
|
+
var SUpdateAsInvitedCreativeFormatDocumentRequest = v12__namespace.object({
|
|
1601
1605
|
documentId: IsValidReferenceDocumentId,
|
|
1602
1606
|
data: SUpdateAsInvitedCreativeFormatDocument
|
|
1603
1607
|
});
|
|
1604
|
-
var SUpdateCreativeFormatDocumentRequest =
|
|
1608
|
+
var SUpdateCreativeFormatDocumentRequest = v12__namespace.union([
|
|
1605
1609
|
SUpdateAsCreatorCreativeFormatDocument,
|
|
1606
1610
|
SUpdateAsInvitedCreativeFormatDocument
|
|
1607
1611
|
]);
|
|
1608
|
-
var SDeleteCreativeFormatDocument =
|
|
1612
|
+
var SDeleteCreativeFormatDocument = v12__namespace.object({
|
|
1609
1613
|
documentId: IsValidReferenceDocumentId
|
|
1610
1614
|
});
|
|
1611
|
-
var SQueryListMediumDocuments =
|
|
1615
|
+
var SQueryListMediumDocuments = v12__namespace.object({
|
|
1612
1616
|
documentId: IsValidReferenceDocumentId,
|
|
1613
1617
|
page: IsValidMinPage,
|
|
1614
|
-
size:
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
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)
|
|
1620
1624
|
),
|
|
1621
1625
|
MEDIUM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1622
1626
|
),
|
|
1623
1627
|
MEDIUM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1624
1628
|
),
|
|
1625
|
-
label:
|
|
1626
|
-
value:
|
|
1627
|
-
is_active:
|
|
1628
|
-
group:
|
|
1629
|
-
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)
|
|
1630
1634
|
});
|
|
1631
|
-
var SCreateMediumDocument =
|
|
1635
|
+
var SCreateMediumDocument = v12__namespace.object({
|
|
1632
1636
|
group: IsValidReferenceDocumentId,
|
|
1633
1637
|
label: IsValidLabel,
|
|
1634
1638
|
value: IsValidValue,
|
|
1635
1639
|
description: IsValidDescription,
|
|
1636
1640
|
is_active: IsValidIsActive
|
|
1637
1641
|
});
|
|
1638
|
-
var SCreateMultipleMediumDocuments =
|
|
1639
|
-
mediums:
|
|
1640
|
-
|
|
1641
|
-
|
|
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")
|
|
1642
1646
|
)
|
|
1643
1647
|
});
|
|
1644
|
-
var SReadMediumDocumentById =
|
|
1648
|
+
var SReadMediumDocumentById = v12__namespace.object({
|
|
1645
1649
|
id: IsValidReferenceId
|
|
1646
1650
|
});
|
|
1647
|
-
var SReadMediumDocumentByDocumentId =
|
|
1651
|
+
var SReadMediumDocumentByDocumentId = v12__namespace.object({
|
|
1648
1652
|
documentId: IsValidReferenceDocumentId
|
|
1649
1653
|
});
|
|
1650
|
-
var SUpdateAsCreatorMediumDocument =
|
|
1654
|
+
var SUpdateAsCreatorMediumDocument = v12__namespace.object({
|
|
1651
1655
|
label: IsValidOrUndefinedLabel,
|
|
1652
1656
|
value: IsValidOrUndefinedValue,
|
|
1653
1657
|
description: IsValidOrUndefinedDescription,
|
|
1654
1658
|
is_active: IsValidOrUndefinedIsActive
|
|
1655
1659
|
});
|
|
1656
|
-
var SUpdateAsCreatorMediumDocumentRequest =
|
|
1660
|
+
var SUpdateAsCreatorMediumDocumentRequest = v12__namespace.object({
|
|
1657
1661
|
documentId: IsValidReferenceDocumentId,
|
|
1658
1662
|
data: SUpdateAsCreatorMediumDocument
|
|
1659
1663
|
});
|
|
1660
|
-
var SUpdateAsInvitedMediumDocument =
|
|
1664
|
+
var SUpdateAsInvitedMediumDocument = v12__namespace.object({
|
|
1661
1665
|
label: IsValidOrUndefinedLabel,
|
|
1662
1666
|
description: IsValidDescription,
|
|
1663
1667
|
is_active: IsValidOrUndefinedIsActive
|
|
1664
1668
|
});
|
|
1665
|
-
var SUpdateAsInvitedMediumDocumentRequest =
|
|
1669
|
+
var SUpdateAsInvitedMediumDocumentRequest = v12__namespace.object({
|
|
1666
1670
|
documentId: IsValidReferenceDocumentId,
|
|
1667
1671
|
data: SUpdateAsInvitedMediumDocument
|
|
1668
1672
|
});
|
|
1669
|
-
var SUpdateMediumDocumentRequest =
|
|
1673
|
+
var SUpdateMediumDocumentRequest = v12__namespace.union([
|
|
1670
1674
|
SUpdateAsCreatorMediumDocument,
|
|
1671
1675
|
SUpdateAsInvitedMediumDocument
|
|
1672
1676
|
]);
|
|
1673
|
-
var SDeleteMediumDocument =
|
|
1677
|
+
var SDeleteMediumDocument = v12__namespace.object({
|
|
1674
1678
|
documentId: IsValidReferenceDocumentId
|
|
1675
1679
|
});
|
|
1676
|
-
var SQueryListSourceDocuments =
|
|
1680
|
+
var SQueryListSourceDocuments = v12__namespace.object({
|
|
1677
1681
|
documentId: IsValidReferenceDocumentId,
|
|
1678
1682
|
page: IsValidMinPage,
|
|
1679
|
-
size:
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
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)
|
|
1685
1689
|
),
|
|
1686
1690
|
SOURCE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1687
1691
|
),
|
|
1688
1692
|
SOURCE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1689
1693
|
),
|
|
1690
|
-
label:
|
|
1691
|
-
value:
|
|
1692
|
-
is_active:
|
|
1693
|
-
group:
|
|
1694
|
-
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)
|
|
1695
1699
|
});
|
|
1696
|
-
var SCreateSourceDocument =
|
|
1700
|
+
var SCreateSourceDocument = v12__namespace.object({
|
|
1697
1701
|
group: IsValidReferenceDocumentId,
|
|
1698
1702
|
label: IsValidLabel,
|
|
1699
1703
|
value: IsValidValue,
|
|
1700
1704
|
description: IsValidDescription,
|
|
1701
1705
|
is_active: IsValidIsActive
|
|
1702
1706
|
});
|
|
1703
|
-
var SCreateMultipleSourceDocuments =
|
|
1704
|
-
sources:
|
|
1705
|
-
|
|
1706
|
-
|
|
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")
|
|
1707
1711
|
)
|
|
1708
1712
|
});
|
|
1709
|
-
var SReadSourceDocumentById =
|
|
1713
|
+
var SReadSourceDocumentById = v12__namespace.object({
|
|
1710
1714
|
id: IsValidReferenceId
|
|
1711
1715
|
});
|
|
1712
|
-
var SReadSourceDocumentByDocumentId =
|
|
1716
|
+
var SReadSourceDocumentByDocumentId = v12__namespace.object({
|
|
1713
1717
|
documentId: IsValidReferenceDocumentId
|
|
1714
1718
|
});
|
|
1715
|
-
var SUpdateAsCreatorSourceDocument =
|
|
1719
|
+
var SUpdateAsCreatorSourceDocument = v12__namespace.object({
|
|
1716
1720
|
label: IsValidOrUndefinedLabel,
|
|
1717
1721
|
value: IsValidOrUndefinedValue,
|
|
1718
1722
|
description: IsValidOrUndefinedDescription,
|
|
1719
1723
|
is_active: IsValidOrUndefinedIsActive
|
|
1720
1724
|
});
|
|
1721
|
-
var SUpdateAsCreatorSourceDocumentRequest =
|
|
1725
|
+
var SUpdateAsCreatorSourceDocumentRequest = v12__namespace.object({
|
|
1722
1726
|
documentId: IsValidReferenceDocumentId,
|
|
1723
1727
|
data: SUpdateAsCreatorSourceDocument
|
|
1724
1728
|
});
|
|
1725
|
-
var SUpdateAsInvitedSourceDocument =
|
|
1729
|
+
var SUpdateAsInvitedSourceDocument = v12__namespace.object({
|
|
1726
1730
|
label: IsValidOrUndefinedLabel,
|
|
1727
1731
|
description: IsValidDescription,
|
|
1728
1732
|
is_active: IsValidOrUndefinedIsActive
|
|
1729
1733
|
});
|
|
1730
|
-
var SUpdateAsInvitedSourceDocumentRequest =
|
|
1734
|
+
var SUpdateAsInvitedSourceDocumentRequest = v12__namespace.object({
|
|
1731
1735
|
documentId: IsValidReferenceDocumentId,
|
|
1732
1736
|
data: SUpdateAsInvitedSourceDocument
|
|
1733
1737
|
});
|
|
1734
|
-
var SUpdateSourceDocumentRequest =
|
|
1738
|
+
var SUpdateSourceDocumentRequest = v12__namespace.union([
|
|
1735
1739
|
SUpdateAsCreatorSourceDocument,
|
|
1736
1740
|
SUpdateAsInvitedSourceDocument
|
|
1737
1741
|
]);
|
|
1738
|
-
var SDeleteSourceDocument =
|
|
1742
|
+
var SDeleteSourceDocument = v12__namespace.object({
|
|
1739
1743
|
documentId: IsValidReferenceDocumentId
|
|
1740
1744
|
});
|
|
1741
|
-
var SQueryListTermDocuments =
|
|
1745
|
+
var SQueryListTermDocuments = v12__namespace.object({
|
|
1742
1746
|
documentId: IsValidReferenceDocumentId,
|
|
1743
1747
|
page: IsValidMinPage,
|
|
1744
|
-
size:
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
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)
|
|
1750
1754
|
),
|
|
1751
1755
|
TERM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1752
1756
|
),
|
|
1753
1757
|
TERM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1754
1758
|
),
|
|
1755
|
-
label:
|
|
1756
|
-
value:
|
|
1757
|
-
is_active:
|
|
1758
|
-
group:
|
|
1759
|
-
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)
|
|
1760
1764
|
});
|
|
1761
|
-
var SCreateTermDocument =
|
|
1765
|
+
var SCreateTermDocument = v12__namespace.object({
|
|
1762
1766
|
group: IsValidReferenceDocumentId,
|
|
1763
1767
|
label: IsValidLabel,
|
|
1764
1768
|
value: IsValidValue,
|
|
1765
1769
|
description: IsValidDescription,
|
|
1766
1770
|
is_active: IsValidIsActive
|
|
1767
1771
|
});
|
|
1768
|
-
var SCreateMultipleTermDocuments =
|
|
1769
|
-
terms:
|
|
1770
|
-
|
|
1771
|
-
|
|
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")
|
|
1772
1776
|
)
|
|
1773
1777
|
});
|
|
1774
|
-
var SReadTermDocumentById =
|
|
1778
|
+
var SReadTermDocumentById = v12__namespace.object({
|
|
1775
1779
|
id: IsValidReferenceId
|
|
1776
1780
|
});
|
|
1777
|
-
var SReadTermDocumentByDocumentId =
|
|
1781
|
+
var SReadTermDocumentByDocumentId = v12__namespace.object({
|
|
1778
1782
|
documentId: IsValidReferenceDocumentId
|
|
1779
1783
|
});
|
|
1780
|
-
var SUpdateAsCreatorTermDocument =
|
|
1784
|
+
var SUpdateAsCreatorTermDocument = v12__namespace.object({
|
|
1781
1785
|
label: IsValidOrUndefinedLabel,
|
|
1782
1786
|
value: IsValidOrUndefinedValue,
|
|
1783
1787
|
description: IsValidOrUndefinedDescription,
|
|
1784
1788
|
is_active: IsValidOrUndefinedIsActive
|
|
1785
1789
|
});
|
|
1786
|
-
var SUpdateAsCreatorTermDocumentRequest =
|
|
1790
|
+
var SUpdateAsCreatorTermDocumentRequest = v12__namespace.object({
|
|
1787
1791
|
documentId: IsValidReferenceDocumentId,
|
|
1788
1792
|
data: SUpdateAsCreatorTermDocument
|
|
1789
1793
|
});
|
|
1790
|
-
var SUpdateAsInvitedTermDocument =
|
|
1794
|
+
var SUpdateAsInvitedTermDocument = v12__namespace.object({
|
|
1791
1795
|
label: IsValidOrUndefinedLabel,
|
|
1792
1796
|
description: IsValidDescription,
|
|
1793
1797
|
is_active: IsValidOrUndefinedIsActive
|
|
1794
1798
|
});
|
|
1795
|
-
var SUpdateAsInvitedTermDocumentRequest =
|
|
1799
|
+
var SUpdateAsInvitedTermDocumentRequest = v12__namespace.object({
|
|
1796
1800
|
documentId: IsValidReferenceDocumentId,
|
|
1797
1801
|
data: SUpdateAsInvitedTermDocument
|
|
1798
1802
|
});
|
|
1799
|
-
var SUpdateTermDocumentRequest =
|
|
1803
|
+
var SUpdateTermDocumentRequest = v12__namespace.union([
|
|
1800
1804
|
SUpdateAsCreatorTermDocument,
|
|
1801
1805
|
SUpdateAsInvitedTermDocument
|
|
1802
1806
|
]);
|
|
1803
|
-
var SDeleteTermDocument =
|
|
1807
|
+
var SDeleteTermDocument = v12__namespace.object({
|
|
1804
1808
|
documentId: IsValidReferenceDocumentId
|
|
1805
1809
|
});
|
|
1806
|
-
var SQueryListWebsiteDocuments =
|
|
1810
|
+
var SQueryListWebsiteDocuments = v12__namespace.object({
|
|
1807
1811
|
documentId: IsValidReferenceDocumentId,
|
|
1808
1812
|
page: IsValidMinPage,
|
|
1809
|
-
size:
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
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)
|
|
1815
1819
|
),
|
|
1816
1820
|
WEBSITE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1817
1821
|
),
|
|
1818
1822
|
WEBSITE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1819
1823
|
),
|
|
1820
|
-
domain:
|
|
1821
|
-
is_active:
|
|
1822
|
-
is_secure:
|
|
1823
|
-
group:
|
|
1824
|
-
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)
|
|
1825
1829
|
});
|
|
1826
|
-
var SCreateWebsiteDocument =
|
|
1830
|
+
var SCreateWebsiteDocument = v12__namespace.object({
|
|
1827
1831
|
group: IsValidReferenceDocumentId,
|
|
1828
1832
|
domain: IsValidUrlDomain,
|
|
1829
1833
|
description: IsValidOrUndefinedDescription,
|
|
1830
1834
|
is_secure: IsValidIsSecure,
|
|
1831
1835
|
is_active: IsValidIsActive
|
|
1832
1836
|
});
|
|
1833
|
-
var SCreateMultipleWebsiteDocuments =
|
|
1834
|
-
websites:
|
|
1835
|
-
|
|
1836
|
-
|
|
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")
|
|
1837
1841
|
)
|
|
1838
1842
|
});
|
|
1839
|
-
var SReadWebsiteDocumentById =
|
|
1843
|
+
var SReadWebsiteDocumentById = v12__namespace.object({
|
|
1840
1844
|
id: IsValidReferenceId
|
|
1841
1845
|
});
|
|
1842
|
-
var SReadWebsiteDocumentByDocumentId =
|
|
1846
|
+
var SReadWebsiteDocumentByDocumentId = v12__namespace.object({
|
|
1843
1847
|
documentId: IsValidReferenceDocumentId
|
|
1844
1848
|
});
|
|
1845
|
-
var SUpdateAsCreatorWebsiteDocument =
|
|
1849
|
+
var SUpdateAsCreatorWebsiteDocument = v12__namespace.object({
|
|
1846
1850
|
domain: IsValidOrUndefinedUrlDomain,
|
|
1847
1851
|
description: IsValidOrUndefinedDescription,
|
|
1848
1852
|
is_secure: IsValidIsSecure,
|
|
1849
1853
|
is_active: IsValidIsActive
|
|
1850
1854
|
});
|
|
1851
|
-
var SUpdateAsCreatorWebsiteDocumentRequest =
|
|
1855
|
+
var SUpdateAsCreatorWebsiteDocumentRequest = v12__namespace.object({
|
|
1852
1856
|
documentId: IsValidReferenceDocumentId,
|
|
1853
1857
|
data: SUpdateAsCreatorWebsiteDocument
|
|
1854
1858
|
});
|
|
1855
|
-
var SUpdateAsInvitedWebsiteDocument =
|
|
1859
|
+
var SUpdateAsInvitedWebsiteDocument = v12__namespace.object({
|
|
1856
1860
|
description: IsValidOrUndefinedDescription
|
|
1857
1861
|
});
|
|
1858
|
-
var SUpdateAsInvitedWebsiteDocumentRequest =
|
|
1862
|
+
var SUpdateAsInvitedWebsiteDocumentRequest = v12__namespace.object({
|
|
1859
1863
|
documentId: IsValidReferenceDocumentId,
|
|
1860
1864
|
data: SUpdateAsInvitedWebsiteDocument
|
|
1861
1865
|
});
|
|
1862
|
-
var SUpdateWebsiteDocumentRequest =
|
|
1866
|
+
var SUpdateWebsiteDocumentRequest = v12__namespace.union([
|
|
1863
1867
|
SUpdateAsCreatorWebsiteDocument,
|
|
1864
1868
|
SUpdateAsInvitedWebsiteDocument
|
|
1865
1869
|
]);
|
|
1866
|
-
var SDeleteWebsiteDocument =
|
|
1870
|
+
var SDeleteWebsiteDocument = v12__namespace.object({
|
|
1867
1871
|
documentId: IsValidReferenceDocumentId
|
|
1868
1872
|
});
|
|
1869
|
-
var SBaseDocument =
|
|
1870
|
-
id:
|
|
1873
|
+
var SBaseDocument = v12__namespace.object({
|
|
1874
|
+
id: v12__namespace.number(),
|
|
1871
1875
|
documentId: IsValidReferenceDocumentId,
|
|
1872
|
-
publishedAt:
|
|
1873
|
-
createdAt:
|
|
1874
|
-
updatedAt:
|
|
1876
|
+
publishedAt: v12__namespace.optional(v12__namespace.string()),
|
|
1877
|
+
createdAt: v12__namespace.string(),
|
|
1878
|
+
updatedAt: v12__namespace.string()
|
|
1875
1879
|
});
|
|
1876
|
-
var SReadUserDocumentToken =
|
|
1877
|
-
token:
|
|
1880
|
+
var SReadUserDocumentToken = v12__namespace.object({
|
|
1881
|
+
token: v12__namespace.string()
|
|
1878
1882
|
});
|
|
1879
|
-
var SLoginUserDocument =
|
|
1883
|
+
var SLoginUserDocument = v12__namespace.object({
|
|
1880
1884
|
identifier: IsValidEmail,
|
|
1881
1885
|
password: IsValidPassword
|
|
1882
1886
|
});
|
|
1883
|
-
var SRegisterUserDocument =
|
|
1887
|
+
var SRegisterUserDocument = v12__namespace.object({
|
|
1884
1888
|
username: IsValidUsername,
|
|
1885
1889
|
email: IsValidEmail,
|
|
1886
1890
|
password: IsValidPassword
|
|
1887
1891
|
});
|
|
1888
|
-
var SForgotPasswordUserDocument =
|
|
1892
|
+
var SForgotPasswordUserDocument = v12__namespace.object({
|
|
1889
1893
|
email: IsValidEmail
|
|
1890
1894
|
});
|
|
1891
|
-
var SResetPasswordUserDocument =
|
|
1895
|
+
var SResetPasswordUserDocument = v12__namespace.object({
|
|
1892
1896
|
password: IsValidPassword,
|
|
1893
1897
|
passwordConfirmation: IsValidPassword,
|
|
1894
|
-
code:
|
|
1898
|
+
code: v12__namespace.string()
|
|
1895
1899
|
});
|
|
1896
|
-
var SChangePassword =
|
|
1897
|
-
|
|
1900
|
+
var SChangePassword = v12__namespace.pipe(
|
|
1901
|
+
v12__namespace.object({
|
|
1898
1902
|
currentPassword: IsValidPassword,
|
|
1899
1903
|
password: IsValidPassword,
|
|
1900
1904
|
passwordConfirmation: IsValidPassword
|
|
1901
1905
|
}),
|
|
1902
|
-
|
|
1903
|
-
|
|
1906
|
+
v12__namespace.forward(
|
|
1907
|
+
v12__namespace.partialCheck(
|
|
1904
1908
|
[["password"], ["passwordConfirmation"]],
|
|
1905
1909
|
(input) => input.password === input.passwordConfirmation,
|
|
1906
1910
|
"Your new passwords do not match."
|
|
@@ -1908,10 +1912,10 @@ var SChangePassword = v9__namespace.pipe(
|
|
|
1908
1912
|
["passwordConfirmation"]
|
|
1909
1913
|
)
|
|
1910
1914
|
);
|
|
1911
|
-
var SRequestConfirmEmail =
|
|
1915
|
+
var SRequestConfirmEmail = v12__namespace.object({
|
|
1912
1916
|
email: IsValidEmail
|
|
1913
1917
|
});
|
|
1914
|
-
var SBaseGroupDocument =
|
|
1918
|
+
var SBaseGroupDocument = v12__namespace.object({
|
|
1915
1919
|
label: IsValidLabel,
|
|
1916
1920
|
value: IsValidValue,
|
|
1917
1921
|
description: IsValidDescription,
|
|
@@ -1921,87 +1925,87 @@ var SBaseGroupDocument = v9__namespace.object({
|
|
|
1921
1925
|
});
|
|
1922
1926
|
|
|
1923
1927
|
// src/entities/group/group.document.ts
|
|
1924
|
-
var SGroupDocument =
|
|
1928
|
+
var SGroupDocument = v12__namespace.object({
|
|
1925
1929
|
...SBaseDocument.entries,
|
|
1926
1930
|
...SBaseGroupDocument.entries
|
|
1927
1931
|
});
|
|
1928
|
-
var SBaseTrackingLinkDocument =
|
|
1932
|
+
var SBaseTrackingLinkDocument = v12__namespace.object({
|
|
1929
1933
|
is_active: IsValidIsActive,
|
|
1930
1934
|
destination: IsValidUrlDestination,
|
|
1931
1935
|
protocol: IsValidUrlProtocol,
|
|
1932
1936
|
domain: IsValidUrlDomain,
|
|
1933
|
-
path:
|
|
1934
|
-
query:
|
|
1935
|
-
fragment:
|
|
1936
|
-
utm_source:
|
|
1937
|
-
utm_medium:
|
|
1938
|
-
utm_campaign:
|
|
1939
|
-
utm_creative_format:
|
|
1940
|
-
utm_content:
|
|
1941
|
-
utm_term:
|
|
1942
|
-
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)
|
|
1943
1947
|
});
|
|
1944
1948
|
|
|
1945
1949
|
// src/entities/tracking-link/tracking-link.document.ts
|
|
1946
|
-
var STrackingLinkDocument =
|
|
1950
|
+
var STrackingLinkDocument = v12__namespace.object({
|
|
1947
1951
|
...SBaseDocument.entries,
|
|
1948
1952
|
...SBaseTrackingLinkDocument.entries
|
|
1949
1953
|
});
|
|
1950
|
-
var SBaseUserDocument =
|
|
1954
|
+
var SBaseUserDocument = v12__namespace.object({
|
|
1951
1955
|
username: IsValidUsername,
|
|
1952
1956
|
email: IsValidEmail,
|
|
1953
|
-
confirmed:
|
|
1954
|
-
blocked:
|
|
1955
|
-
provider:
|
|
1957
|
+
confirmed: v12__namespace.boolean(),
|
|
1958
|
+
blocked: v12__namespace.boolean(),
|
|
1959
|
+
provider: v12__namespace.literal("local")
|
|
1956
1960
|
});
|
|
1957
1961
|
|
|
1958
1962
|
// src/entities/user/user.document.ts
|
|
1959
|
-
var SUserDocument =
|
|
1963
|
+
var SUserDocument = v12__namespace.object({
|
|
1960
1964
|
...SBaseDocument.entries,
|
|
1961
1965
|
...SBaseUserDocument.entries
|
|
1962
1966
|
});
|
|
1963
1967
|
|
|
1964
1968
|
// src/entities/user/user-draft-pub-created-by.schema.ts
|
|
1965
|
-
var SBaseDocumentCreatedBy =
|
|
1966
|
-
createdBy:
|
|
1967
|
-
updatedBy:
|
|
1969
|
+
var SBaseDocumentCreatedBy = v12__namespace.object({
|
|
1970
|
+
createdBy: v12__namespace.optional(SUserDocument),
|
|
1971
|
+
updatedBy: v12__namespace.optional(SUserDocument)
|
|
1968
1972
|
});
|
|
1969
|
-
var SBaseRoleDocument =
|
|
1970
|
-
type:
|
|
1971
|
-
name:
|
|
1972
|
-
locale:
|
|
1973
|
-
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()
|
|
1974
1978
|
});
|
|
1975
1979
|
|
|
1976
1980
|
// src/entities/role/role.document.ts
|
|
1977
|
-
var SRoleDocument =
|
|
1981
|
+
var SRoleDocument = v12__namespace.object({
|
|
1978
1982
|
...SBaseDocument.entries,
|
|
1979
1983
|
...SBaseRoleDocument.entries
|
|
1980
1984
|
});
|
|
1981
|
-
var SRoleRelationsDocument =
|
|
1982
|
-
user:
|
|
1985
|
+
var SRoleRelationsDocument = v12__namespace.object({
|
|
1986
|
+
user: v12__namespace.optional(SUserDocument)
|
|
1983
1987
|
});
|
|
1984
|
-
var SBaseUserAccountDocument =
|
|
1985
|
-
customer_id:
|
|
1986
|
-
subscription_id:
|
|
1988
|
+
var SBaseUserAccountDocument = v12__namespace.object({
|
|
1989
|
+
customer_id: v12__namespace.nullable(IsValidCustomerId),
|
|
1990
|
+
subscription_id: v12__namespace.nullable(IsValidCustomerId),
|
|
1987
1991
|
subscription_status: IsValidSubscriptionStatus,
|
|
1988
|
-
current_period_start:
|
|
1989
|
-
current_period_end:
|
|
1990
|
-
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)
|
|
1991
1995
|
});
|
|
1992
1996
|
|
|
1993
1997
|
// src/entities/user-account/user-account.document.ts
|
|
1994
|
-
var SUserAccountDocument =
|
|
1998
|
+
var SUserAccountDocument = v12__namespace.object({
|
|
1995
1999
|
...SBaseDocument.entries,
|
|
1996
2000
|
...SBaseUserAccountDocument.entries
|
|
1997
2001
|
});
|
|
1998
|
-
var SUserAccountRelationsDocument =
|
|
1999
|
-
user:
|
|
2002
|
+
var SUserAccountRelationsDocument = v12__namespace.object({
|
|
2003
|
+
user: v12__namespace.optional(SUserDocument)
|
|
2000
2004
|
});
|
|
2001
|
-
var SUserAccountRelationsReqDocument =
|
|
2005
|
+
var SUserAccountRelationsReqDocument = v12__namespace.object({
|
|
2002
2006
|
user: SUserDocument
|
|
2003
2007
|
});
|
|
2004
|
-
var SBaseUserLimitationsDocument =
|
|
2008
|
+
var SBaseUserLimitationsDocument = v12__namespace.object({
|
|
2005
2009
|
limit_groups: IsValidUserLimitationNumberFallback,
|
|
2006
2010
|
limit_group_users: IsValidUserLimitationNumberFallback,
|
|
2007
2011
|
limit_websites: IsValidUserLimitationNumberFallback,
|
|
@@ -2020,75 +2024,75 @@ var SBaseUserLimitationsDocument = v9__namespace.object({
|
|
|
2020
2024
|
});
|
|
2021
2025
|
|
|
2022
2026
|
// src/entities/user-limitations/user-limitations.document.ts
|
|
2023
|
-
var SUserLimitationsDocument =
|
|
2027
|
+
var SUserLimitationsDocument = v12__namespace.object({
|
|
2024
2028
|
...SBaseDocument.entries,
|
|
2025
2029
|
...SBaseUserLimitationsDocument.entries
|
|
2026
2030
|
});
|
|
2027
|
-
var SUserLimitationsRelationsDocument =
|
|
2028
|
-
user:
|
|
2031
|
+
var SUserLimitationsRelationsDocument = v12__namespace.object({
|
|
2032
|
+
user: v12__namespace.optional(SUserDocument)
|
|
2029
2033
|
});
|
|
2030
|
-
var SBaseCampaignIdDocument =
|
|
2034
|
+
var SBaseCampaignIdDocument = v12__namespace.object({
|
|
2031
2035
|
cost: IsValidCost,
|
|
2032
2036
|
label: IsValidLabel,
|
|
2033
2037
|
value: IsValidValue,
|
|
2034
2038
|
description: IsValidDescription,
|
|
2035
2039
|
is_active: IsValidIsActive
|
|
2036
2040
|
});
|
|
2037
|
-
var SBaseCampaignPhaseDocument =
|
|
2041
|
+
var SBaseCampaignPhaseDocument = v12__namespace.object({
|
|
2038
2042
|
label: IsValidLabel,
|
|
2039
2043
|
value: IsValidValue,
|
|
2040
2044
|
description: IsValidDescription,
|
|
2041
2045
|
is_active: IsValidIsActive
|
|
2042
2046
|
});
|
|
2043
|
-
var SBaseCampaignProductDocument =
|
|
2047
|
+
var SBaseCampaignProductDocument = v12__namespace.object({
|
|
2044
2048
|
label: IsValidLabel,
|
|
2045
2049
|
value: IsValidValue,
|
|
2046
2050
|
description: IsValidDescription,
|
|
2047
2051
|
is_active: IsValidIsActive
|
|
2048
2052
|
});
|
|
2049
|
-
var SBaseCampaignTargetDocument =
|
|
2053
|
+
var SBaseCampaignTargetDocument = v12__namespace.object({
|
|
2050
2054
|
label: IsValidLabel,
|
|
2051
2055
|
value: IsValidValue,
|
|
2052
2056
|
description: IsValidDescription,
|
|
2053
2057
|
is_active: IsValidIsActive
|
|
2054
2058
|
});
|
|
2055
|
-
var SBaseCampaignKeyDocument =
|
|
2059
|
+
var SBaseCampaignKeyDocument = v12__namespace.object({
|
|
2056
2060
|
label: IsValidLabel,
|
|
2057
2061
|
value: IsValidValue,
|
|
2058
2062
|
description: IsValidDescription,
|
|
2059
2063
|
is_active: IsValidIsActive
|
|
2060
2064
|
});
|
|
2061
|
-
var SBaseSourceDocument =
|
|
2065
|
+
var SBaseSourceDocument = v12__namespace.object({
|
|
2062
2066
|
label: IsValidLabel,
|
|
2063
2067
|
value: IsValidValue,
|
|
2064
2068
|
description: IsValidDescription,
|
|
2065
2069
|
is_active: IsValidIsActive
|
|
2066
2070
|
});
|
|
2067
|
-
var SBaseMediumDocument =
|
|
2071
|
+
var SBaseMediumDocument = v12__namespace.object({
|
|
2068
2072
|
label: IsValidLabel,
|
|
2069
2073
|
value: IsValidValue,
|
|
2070
2074
|
description: IsValidDescription,
|
|
2071
2075
|
is_active: IsValidIsActive
|
|
2072
2076
|
});
|
|
2073
|
-
var SBaseContentDocument =
|
|
2077
|
+
var SBaseContentDocument = v12__namespace.object({
|
|
2074
2078
|
label: IsValidLabel,
|
|
2075
2079
|
value: IsValidValue,
|
|
2076
2080
|
description: IsValidDescription,
|
|
2077
2081
|
is_active: IsValidIsActive
|
|
2078
2082
|
});
|
|
2079
|
-
var SBaseCreativeFormatDocument =
|
|
2083
|
+
var SBaseCreativeFormatDocument = v12__namespace.object({
|
|
2080
2084
|
label: IsValidLabel,
|
|
2081
2085
|
value: IsValidValue,
|
|
2082
2086
|
description: IsValidDescription,
|
|
2083
2087
|
is_active: IsValidIsActive
|
|
2084
2088
|
});
|
|
2085
|
-
var SBaseCreativeFormatVariantDocument =
|
|
2089
|
+
var SBaseCreativeFormatVariantDocument = v12__namespace.object({
|
|
2086
2090
|
label: IsValidLabel,
|
|
2087
2091
|
value: IsValidValue,
|
|
2088
2092
|
description: IsValidDescription,
|
|
2089
2093
|
is_active: IsValidIsActive
|
|
2090
2094
|
});
|
|
2091
|
-
var SBaseTermDocument =
|
|
2095
|
+
var SBaseTermDocument = v12__namespace.object({
|
|
2092
2096
|
label: IsValidLabel,
|
|
2093
2097
|
value: IsValidValue,
|
|
2094
2098
|
description: IsValidDescription,
|
|
@@ -2096,95 +2100,95 @@ var SBaseTermDocument = v9__namespace.object({
|
|
|
2096
2100
|
});
|
|
2097
2101
|
|
|
2098
2102
|
// src/entities/utm/param.documents.ts
|
|
2099
|
-
var SCampaignIdDocument =
|
|
2103
|
+
var SCampaignIdDocument = v12__namespace.object({
|
|
2100
2104
|
...SBaseDocument.entries,
|
|
2101
2105
|
...SBaseCampaignIdDocument.entries
|
|
2102
2106
|
});
|
|
2103
|
-
var SCampaignPhaseDocument =
|
|
2107
|
+
var SCampaignPhaseDocument = v12__namespace.object({
|
|
2104
2108
|
...SBaseDocument.entries,
|
|
2105
2109
|
...SBaseCampaignPhaseDocument.entries
|
|
2106
2110
|
});
|
|
2107
|
-
var SCampaignProductDocument =
|
|
2111
|
+
var SCampaignProductDocument = v12__namespace.object({
|
|
2108
2112
|
...SBaseDocument.entries,
|
|
2109
2113
|
...SBaseCampaignProductDocument.entries
|
|
2110
2114
|
});
|
|
2111
|
-
var SCampaignTargetDocument =
|
|
2115
|
+
var SCampaignTargetDocument = v12__namespace.object({
|
|
2112
2116
|
...SBaseDocument.entries,
|
|
2113
2117
|
...SBaseCampaignTargetDocument.entries
|
|
2114
2118
|
});
|
|
2115
|
-
var SCampaignKeyDocument =
|
|
2119
|
+
var SCampaignKeyDocument = v12__namespace.object({
|
|
2116
2120
|
...SBaseDocument.entries,
|
|
2117
2121
|
...SBaseCampaignKeyDocument.entries
|
|
2118
2122
|
});
|
|
2119
|
-
var SSourceDocument =
|
|
2123
|
+
var SSourceDocument = v12__namespace.object({
|
|
2120
2124
|
...SBaseDocument.entries,
|
|
2121
2125
|
...SBaseSourceDocument.entries
|
|
2122
2126
|
});
|
|
2123
|
-
var SMediumDocument =
|
|
2127
|
+
var SMediumDocument = v12__namespace.object({
|
|
2124
2128
|
...SBaseDocument.entries,
|
|
2125
2129
|
...SBaseMediumDocument.entries
|
|
2126
2130
|
});
|
|
2127
|
-
var SContentDocument =
|
|
2131
|
+
var SContentDocument = v12__namespace.object({
|
|
2128
2132
|
...SBaseDocument.entries,
|
|
2129
2133
|
...SBaseContentDocument.entries
|
|
2130
2134
|
});
|
|
2131
|
-
var SCreativeFormatDocument =
|
|
2135
|
+
var SCreativeFormatDocument = v12__namespace.object({
|
|
2132
2136
|
...SBaseDocument.entries,
|
|
2133
2137
|
...SBaseCreativeFormatDocument.entries
|
|
2134
2138
|
});
|
|
2135
|
-
var SCreativeFormatVariantDocument =
|
|
2139
|
+
var SCreativeFormatVariantDocument = v12__namespace.object({
|
|
2136
2140
|
...SBaseDocument.entries,
|
|
2137
2141
|
...SBaseCreativeFormatVariantDocument.entries
|
|
2138
2142
|
});
|
|
2139
|
-
var STermDocument =
|
|
2143
|
+
var STermDocument = v12__namespace.object({
|
|
2140
2144
|
...SBaseDocument.entries,
|
|
2141
2145
|
...SBaseTermDocument.entries
|
|
2142
2146
|
});
|
|
2143
|
-
var SCampaignIdRelationsDocument =
|
|
2144
|
-
group:
|
|
2145
|
-
creator:
|
|
2147
|
+
var SCampaignIdRelationsDocument = v12__namespace.object({
|
|
2148
|
+
group: v12__namespace.optional(SGroupDocument),
|
|
2149
|
+
creator: v12__namespace.optional(SUserDocument)
|
|
2146
2150
|
});
|
|
2147
|
-
var SCampaignPhaseRelationsDocument =
|
|
2148
|
-
group:
|
|
2149
|
-
creator:
|
|
2151
|
+
var SCampaignPhaseRelationsDocument = v12__namespace.object({
|
|
2152
|
+
group: v12__namespace.optional(SGroupDocument),
|
|
2153
|
+
creator: v12__namespace.optional(SUserDocument)
|
|
2150
2154
|
});
|
|
2151
|
-
var SCampaignProductRelationsDocument =
|
|
2152
|
-
group:
|
|
2153
|
-
creator:
|
|
2155
|
+
var SCampaignProductRelationsDocument = v12__namespace.object({
|
|
2156
|
+
group: v12__namespace.optional(SGroupDocument),
|
|
2157
|
+
creator: v12__namespace.optional(SUserDocument)
|
|
2154
2158
|
});
|
|
2155
|
-
var SCampaignTargetRelationsDocument =
|
|
2156
|
-
group:
|
|
2157
|
-
creator:
|
|
2159
|
+
var SCampaignTargetRelationsDocument = v12__namespace.object({
|
|
2160
|
+
group: v12__namespace.optional(SGroupDocument),
|
|
2161
|
+
creator: v12__namespace.optional(SUserDocument)
|
|
2158
2162
|
});
|
|
2159
|
-
var SCampaignKeyRelationsDocument =
|
|
2160
|
-
group:
|
|
2161
|
-
creator:
|
|
2163
|
+
var SCampaignKeyRelationsDocument = v12__namespace.object({
|
|
2164
|
+
group: v12__namespace.optional(SGroupDocument),
|
|
2165
|
+
creator: v12__namespace.optional(SUserDocument)
|
|
2162
2166
|
});
|
|
2163
|
-
var SSourceRelationsDocument =
|
|
2164
|
-
group:
|
|
2165
|
-
creator:
|
|
2167
|
+
var SSourceRelationsDocument = v12__namespace.object({
|
|
2168
|
+
group: v12__namespace.optional(SGroupDocument),
|
|
2169
|
+
creator: v12__namespace.optional(SUserDocument)
|
|
2166
2170
|
});
|
|
2167
|
-
var SMediumRelationsDocument =
|
|
2168
|
-
group:
|
|
2169
|
-
creator:
|
|
2171
|
+
var SMediumRelationsDocument = v12__namespace.object({
|
|
2172
|
+
group: v12__namespace.optional(SGroupDocument),
|
|
2173
|
+
creator: v12__namespace.optional(SUserDocument)
|
|
2170
2174
|
});
|
|
2171
|
-
var SContentRelationsDocument =
|
|
2172
|
-
group:
|
|
2173
|
-
creator:
|
|
2175
|
+
var SContentRelationsDocument = v12__namespace.object({
|
|
2176
|
+
group: v12__namespace.optional(SGroupDocument),
|
|
2177
|
+
creator: v12__namespace.optional(SUserDocument)
|
|
2174
2178
|
});
|
|
2175
|
-
var SCreativeFormatRelationsDocument =
|
|
2176
|
-
group:
|
|
2177
|
-
creator:
|
|
2179
|
+
var SCreativeFormatRelationsDocument = v12__namespace.object({
|
|
2180
|
+
group: v12__namespace.optional(SGroupDocument),
|
|
2181
|
+
creator: v12__namespace.optional(SUserDocument)
|
|
2178
2182
|
});
|
|
2179
|
-
var SCreativeFormatVariantRelationsDocument =
|
|
2180
|
-
group:
|
|
2181
|
-
creator:
|
|
2183
|
+
var SCreativeFormatVariantRelationsDocument = v12__namespace.object({
|
|
2184
|
+
group: v12__namespace.optional(SGroupDocument),
|
|
2185
|
+
creator: v12__namespace.optional(SUserDocument)
|
|
2182
2186
|
});
|
|
2183
|
-
var STermRelationsDocument =
|
|
2184
|
-
group:
|
|
2185
|
-
creator:
|
|
2187
|
+
var STermRelationsDocument = v12__namespace.object({
|
|
2188
|
+
group: v12__namespace.optional(SGroupDocument),
|
|
2189
|
+
creator: v12__namespace.optional(SUserDocument)
|
|
2186
2190
|
});
|
|
2187
|
-
var SBaseWebsiteDocument =
|
|
2191
|
+
var SBaseWebsiteDocument = v12__namespace.object({
|
|
2188
2192
|
domain: IsValidUrlDomain,
|
|
2189
2193
|
description: IsValidDescription,
|
|
2190
2194
|
is_secure: IsValidIsSecure,
|
|
@@ -2192,75 +2196,75 @@ var SBaseWebsiteDocument = v9__namespace.object({
|
|
|
2192
2196
|
});
|
|
2193
2197
|
|
|
2194
2198
|
// src/entities/website/website.document.ts
|
|
2195
|
-
var SWebsiteDocument =
|
|
2199
|
+
var SWebsiteDocument = v12__namespace.object({
|
|
2196
2200
|
...SBaseDocument.entries,
|
|
2197
2201
|
...SBaseWebsiteDocument.entries
|
|
2198
2202
|
});
|
|
2199
|
-
var SWebsiteRelationsDocument =
|
|
2200
|
-
group:
|
|
2201
|
-
creator:
|
|
2203
|
+
var SWebsiteRelationsDocument = v12__namespace.object({
|
|
2204
|
+
group: v12__namespace.optional(SGroupDocument),
|
|
2205
|
+
creator: v12__namespace.optional(SUserDocument)
|
|
2202
2206
|
});
|
|
2203
2207
|
|
|
2204
2208
|
// src/entities/user/user.relations.ts
|
|
2205
|
-
var SUserRelationRole =
|
|
2206
|
-
role:
|
|
2209
|
+
var SUserRelationRole = v12__namespace.object({
|
|
2210
|
+
role: v12__namespace.optional(SRoleDocument)
|
|
2207
2211
|
});
|
|
2208
|
-
var SUserRelationReqRole =
|
|
2212
|
+
var SUserRelationReqRole = v12__namespace.object({
|
|
2209
2213
|
role: SRoleDocument
|
|
2210
2214
|
});
|
|
2211
|
-
var SUserRelationAccount =
|
|
2212
|
-
account:
|
|
2215
|
+
var SUserRelationAccount = v12__namespace.object({
|
|
2216
|
+
account: v12__namespace.optional(SUserAccountDocument)
|
|
2213
2217
|
});
|
|
2214
|
-
var SUserRelationReqAccount =
|
|
2218
|
+
var SUserRelationReqAccount = v12__namespace.object({
|
|
2215
2219
|
account: SUserAccountDocument
|
|
2216
2220
|
});
|
|
2217
|
-
var SUserRelationLimits =
|
|
2218
|
-
limits:
|
|
2221
|
+
var SUserRelationLimits = v12__namespace.object({
|
|
2222
|
+
limits: v12__namespace.optional(SUserLimitationsDocument)
|
|
2219
2223
|
});
|
|
2220
|
-
var SUserRelationReqLimits =
|
|
2224
|
+
var SUserRelationReqLimits = v12__namespace.object({
|
|
2221
2225
|
limits: SUserLimitationsDocument
|
|
2222
2226
|
});
|
|
2223
|
-
var SUserRelationAuthorizedGroups =
|
|
2224
|
-
authorized_groups:
|
|
2227
|
+
var SUserRelationAuthorizedGroups = v12__namespace.object({
|
|
2228
|
+
authorized_groups: v12__namespace.optional(v12__namespace.array(SGroupDocument))
|
|
2225
2229
|
});
|
|
2226
|
-
var SUserRelationCreatedWebsites =
|
|
2227
|
-
created_websites:
|
|
2230
|
+
var SUserRelationCreatedWebsites = v12__namespace.object({
|
|
2231
|
+
created_websites: v12__namespace.optional(v12__namespace.array(SWebsiteDocument))
|
|
2228
2232
|
});
|
|
2229
|
-
var SUserRelationTrackingLinks =
|
|
2230
|
-
tracking_links:
|
|
2233
|
+
var SUserRelationTrackingLinks = v12__namespace.object({
|
|
2234
|
+
tracking_links: v12__namespace.optional(v12__namespace.array(STrackingLinkDocument))
|
|
2231
2235
|
});
|
|
2232
|
-
var SUserRelationSources =
|
|
2233
|
-
utm_sources:
|
|
2236
|
+
var SUserRelationSources = v12__namespace.object({
|
|
2237
|
+
utm_sources: v12__namespace.optional(v12__namespace.array(SSourceDocument))
|
|
2234
2238
|
});
|
|
2235
|
-
var SUserRelationMediums =
|
|
2236
|
-
utm_mediums:
|
|
2239
|
+
var SUserRelationMediums = v12__namespace.object({
|
|
2240
|
+
utm_mediums: v12__namespace.optional(v12__namespace.array(SMediumDocument))
|
|
2237
2241
|
});
|
|
2238
|
-
var SUserRelationCampaignIds =
|
|
2239
|
-
utm_ids:
|
|
2242
|
+
var SUserRelationCampaignIds = v12__namespace.object({
|
|
2243
|
+
utm_ids: v12__namespace.optional(v12__namespace.array(SCampaignIdDocument))
|
|
2240
2244
|
});
|
|
2241
|
-
var SUserRelationCampaignPhases =
|
|
2242
|
-
utm_campaign_phases:
|
|
2245
|
+
var SUserRelationCampaignPhases = v12__namespace.object({
|
|
2246
|
+
utm_campaign_phases: v12__namespace.optional(v12__namespace.array(SCampaignPhaseDocument))
|
|
2243
2247
|
});
|
|
2244
|
-
var SUserRelationCampaignProducts =
|
|
2245
|
-
utm_campaign_products:
|
|
2248
|
+
var SUserRelationCampaignProducts = v12__namespace.object({
|
|
2249
|
+
utm_campaign_products: v12__namespace.optional(v12__namespace.array(SCampaignProductDocument))
|
|
2246
2250
|
});
|
|
2247
|
-
var SUserRelationCampaignKeys =
|
|
2248
|
-
utm_campaign_keys:
|
|
2251
|
+
var SUserRelationCampaignKeys = v12__namespace.object({
|
|
2252
|
+
utm_campaign_keys: v12__namespace.optional(v12__namespace.array(SCampaignKeyDocument))
|
|
2249
2253
|
});
|
|
2250
|
-
var SUserRelationContents =
|
|
2251
|
-
utm_contents:
|
|
2254
|
+
var SUserRelationContents = v12__namespace.object({
|
|
2255
|
+
utm_contents: v12__namespace.optional(v12__namespace.array(SContentDocument))
|
|
2252
2256
|
});
|
|
2253
|
-
var SUserRelationCreativeFormats =
|
|
2254
|
-
utm_creative_formats:
|
|
2257
|
+
var SUserRelationCreativeFormats = v12__namespace.object({
|
|
2258
|
+
utm_creative_formats: v12__namespace.optional(v12__namespace.array(SCreativeFormatDocument))
|
|
2255
2259
|
});
|
|
2256
|
-
var SUserRelationCreativeFormatVariants =
|
|
2257
|
-
utm_creative_format_variants:
|
|
2260
|
+
var SUserRelationCreativeFormatVariants = v12__namespace.object({
|
|
2261
|
+
utm_creative_format_variants: v12__namespace.optional(v12__namespace.array(SCreativeFormatVariantDocument))
|
|
2258
2262
|
});
|
|
2259
|
-
var SUserRelationTerms =
|
|
2260
|
-
utm_terms:
|
|
2263
|
+
var SUserRelationTerms = v12__namespace.object({
|
|
2264
|
+
utm_terms: v12__namespace.optional(v12__namespace.array(STermDocument))
|
|
2261
2265
|
});
|
|
2262
|
-
var SUserRelationsDocument =
|
|
2263
|
-
group:
|
|
2266
|
+
var SUserRelationsDocument = v12__namespace.object({
|
|
2267
|
+
group: v12__namespace.optional(SGroupDocument),
|
|
2264
2268
|
...SUserRelationRole.entries,
|
|
2265
2269
|
...SUserRelationAuthorizedGroups.entries,
|
|
2266
2270
|
...SUserRelationCreatedWebsites.entries,
|
|
@@ -2278,53 +2282,53 @@ var SUserRelationsDocument = v9__namespace.object({
|
|
|
2278
2282
|
});
|
|
2279
2283
|
|
|
2280
2284
|
// src/entities/tracking-link/tracking-link.relations.ts
|
|
2281
|
-
var STrackingLinkRelationsDocument =
|
|
2282
|
-
group:
|
|
2283
|
-
creator:
|
|
2285
|
+
var STrackingLinkRelationsDocument = v12__namespace.object({
|
|
2286
|
+
group: v12__namespace.optional(SGroupDocument),
|
|
2287
|
+
creator: v12__namespace.optional(SUserDocument)
|
|
2284
2288
|
});
|
|
2285
2289
|
|
|
2286
2290
|
// src/entities/group/group.relations.ts
|
|
2287
|
-
var SGroupRelationAuthorizedUsers =
|
|
2288
|
-
authorized_users:
|
|
2291
|
+
var SGroupRelationAuthorizedUsers = v12__namespace.object({
|
|
2292
|
+
authorized_users: v12__namespace.optional(v12__namespace.array(SUserDocument))
|
|
2289
2293
|
});
|
|
2290
|
-
var SGroupRelationWebsites =
|
|
2291
|
-
websites:
|
|
2294
|
+
var SGroupRelationWebsites = v12__namespace.object({
|
|
2295
|
+
websites: v12__namespace.optional(SWebsiteDocument)
|
|
2292
2296
|
});
|
|
2293
|
-
var SGroupRelationTrackingLinks =
|
|
2294
|
-
tracking_links:
|
|
2297
|
+
var SGroupRelationTrackingLinks = v12__namespace.object({
|
|
2298
|
+
tracking_links: v12__namespace.optional(v12__namespace.array(STrackingLinkDocument))
|
|
2295
2299
|
});
|
|
2296
|
-
var SGroupRelationSources =
|
|
2297
|
-
utm_sources:
|
|
2300
|
+
var SGroupRelationSources = v12__namespace.object({
|
|
2301
|
+
utm_sources: v12__namespace.optional(v12__namespace.array(SSourceDocument))
|
|
2298
2302
|
});
|
|
2299
|
-
var SGroupRelationMediums =
|
|
2300
|
-
utm_mediums:
|
|
2303
|
+
var SGroupRelationMediums = v12__namespace.object({
|
|
2304
|
+
utm_mediums: v12__namespace.optional(v12__namespace.array(SMediumDocument))
|
|
2301
2305
|
});
|
|
2302
|
-
var SGroupRelationCampaignIds =
|
|
2303
|
-
utm_ids:
|
|
2306
|
+
var SGroupRelationCampaignIds = v12__namespace.object({
|
|
2307
|
+
utm_ids: v12__namespace.optional(v12__namespace.array(SCampaignIdDocument))
|
|
2304
2308
|
});
|
|
2305
|
-
var SGroupRelationCampaignPhases =
|
|
2306
|
-
utm_campaign_phases:
|
|
2309
|
+
var SGroupRelationCampaignPhases = v12__namespace.object({
|
|
2310
|
+
utm_campaign_phases: v12__namespace.optional(v12__namespace.array(SCampaignPhaseDocument))
|
|
2307
2311
|
});
|
|
2308
|
-
var SGroupRelationCampaignProducts =
|
|
2309
|
-
utm_campaign_products:
|
|
2312
|
+
var SGroupRelationCampaignProducts = v12__namespace.object({
|
|
2313
|
+
utm_campaign_products: v12__namespace.optional(v12__namespace.array(SCampaignProductDocument))
|
|
2310
2314
|
});
|
|
2311
|
-
var SGroupRelationCampaignKeys =
|
|
2312
|
-
utm_campaign_keys:
|
|
2315
|
+
var SGroupRelationCampaignKeys = v12__namespace.object({
|
|
2316
|
+
utm_campaign_keys: v12__namespace.optional(v12__namespace.array(SCampaignKeyDocument))
|
|
2313
2317
|
});
|
|
2314
|
-
var SGroupRelationContents =
|
|
2315
|
-
utm_contents:
|
|
2318
|
+
var SGroupRelationContents = v12__namespace.object({
|
|
2319
|
+
utm_contents: v12__namespace.optional(v12__namespace.array(SBaseContentDocument))
|
|
2316
2320
|
});
|
|
2317
|
-
var SGroupRelationCreativeFormats =
|
|
2318
|
-
utm_creative_formats:
|
|
2321
|
+
var SGroupRelationCreativeFormats = v12__namespace.object({
|
|
2322
|
+
utm_creative_formats: v12__namespace.optional(v12__namespace.array(SCreativeFormatDocument))
|
|
2319
2323
|
});
|
|
2320
|
-
var SGroupRelationCreativeFormatVariants =
|
|
2321
|
-
utm_creative_format_variants:
|
|
2324
|
+
var SGroupRelationCreativeFormatVariants = v12__namespace.object({
|
|
2325
|
+
utm_creative_format_variants: v12__namespace.optional(v12__namespace.array(SCreativeFormatVariantDocument))
|
|
2322
2326
|
});
|
|
2323
|
-
var SGroupRelationTerms =
|
|
2324
|
-
utm_terms:
|
|
2327
|
+
var SGroupRelationTerms = v12__namespace.object({
|
|
2328
|
+
utm_terms: v12__namespace.optional(v12__namespace.array(STermDocument))
|
|
2325
2329
|
});
|
|
2326
|
-
var SGroupRelationsDocument =
|
|
2327
|
-
creator:
|
|
2330
|
+
var SGroupRelationsDocument = v12__namespace.object({
|
|
2331
|
+
creator: v12__namespace.optional(SUserDocument),
|
|
2328
2332
|
...SGroupRelationAuthorizedUsers.entries,
|
|
2329
2333
|
...SGroupRelationTrackingLinks.entries,
|
|
2330
2334
|
...SGroupRelationWebsites.entries,
|
|
@@ -2339,139 +2343,139 @@ var SGroupRelationsDocument = v9__namespace.object({
|
|
|
2339
2343
|
...SGroupRelationCreativeFormatVariants.entries,
|
|
2340
2344
|
...SGroupRelationTerms.entries
|
|
2341
2345
|
});
|
|
2342
|
-
var SBaseGroupUserDocument =
|
|
2346
|
+
var SBaseGroupUserDocument = v12__namespace.object({
|
|
2343
2347
|
scopes: IsValidGroupUserScopes
|
|
2344
2348
|
});
|
|
2345
2349
|
|
|
2346
2350
|
// src/entities/group-user/group-user.document.ts
|
|
2347
|
-
var SGroupUserDocument =
|
|
2351
|
+
var SGroupUserDocument = v12__namespace.object({
|
|
2348
2352
|
...SBaseDocument.entries,
|
|
2349
2353
|
...SBaseGroupUserDocument.entries
|
|
2350
2354
|
});
|
|
2351
|
-
var SGroupUserRelationsDocument =
|
|
2352
|
-
user:
|
|
2353
|
-
group:
|
|
2355
|
+
var SGroupUserRelationsDocument = v12__namespace.object({
|
|
2356
|
+
user: v12__namespace.optional(SUserDocument),
|
|
2357
|
+
group: v12__namespace.optional(SGroupDocument)
|
|
2354
2358
|
});
|
|
2355
|
-
var SGroupUserRelationsReqDocument =
|
|
2359
|
+
var SGroupUserRelationsReqDocument = v12__namespace.object({
|
|
2356
2360
|
user: SUserDocument,
|
|
2357
2361
|
group: SGroupDocument
|
|
2358
2362
|
});
|
|
2359
|
-
var SGroupUserDocumentWithRelations =
|
|
2363
|
+
var SGroupUserDocumentWithRelations = v12__namespace.object({
|
|
2360
2364
|
...SBaseDocument.entries,
|
|
2361
2365
|
...SBaseGroupUserDocument.entries,
|
|
2362
2366
|
...SGroupUserRelationsDocument.entries
|
|
2363
2367
|
});
|
|
2364
|
-
var SGroupUserDocumentReqRelations =
|
|
2368
|
+
var SGroupUserDocumentReqRelations = v12__namespace.object({
|
|
2365
2369
|
...SBaseDocument.entries,
|
|
2366
2370
|
...SBaseGroupUserDocument.entries,
|
|
2367
2371
|
...SGroupUserRelationsReqDocument.entries
|
|
2368
2372
|
});
|
|
2369
|
-
var SGroupDocumentWithRelations =
|
|
2373
|
+
var SGroupDocumentWithRelations = v12__namespace.object({
|
|
2370
2374
|
...SBaseDocument.entries,
|
|
2371
2375
|
...SBaseGroupDocument.entries,
|
|
2372
2376
|
...SGroupRelationsDocument.entries
|
|
2373
2377
|
});
|
|
2374
|
-
var SRoleDocumentWithRelations =
|
|
2378
|
+
var SRoleDocumentWithRelations = v12__namespace.object({
|
|
2375
2379
|
...SBaseDocument.entries,
|
|
2376
2380
|
...SBaseRoleDocument.entries,
|
|
2377
2381
|
...SRoleRelationsDocument.entries
|
|
2378
2382
|
});
|
|
2379
|
-
var STrackingLinkDocumentWithRelations =
|
|
2383
|
+
var STrackingLinkDocumentWithRelations = v12__namespace.object({
|
|
2380
2384
|
...SBaseDocument.entries,
|
|
2381
2385
|
...SBaseTrackingLinkDocument.entries,
|
|
2382
2386
|
...STrackingLinkRelationsDocument.entries
|
|
2383
2387
|
});
|
|
2384
|
-
var SUserAccountDocumentWithRelations =
|
|
2388
|
+
var SUserAccountDocumentWithRelations = v12__namespace.object({
|
|
2385
2389
|
...SBaseDocument.entries,
|
|
2386
2390
|
...SBaseUserAccountDocument.entries,
|
|
2387
2391
|
...SUserAccountRelationsDocument.entries
|
|
2388
2392
|
});
|
|
2389
|
-
var SUserAccountDocumentReqRelations =
|
|
2393
|
+
var SUserAccountDocumentReqRelations = v12__namespace.object({
|
|
2390
2394
|
...SBaseDocument.entries,
|
|
2391
2395
|
...SBaseUserAccountDocument.entries,
|
|
2392
2396
|
...SUserAccountRelationsReqDocument.entries
|
|
2393
2397
|
});
|
|
2394
|
-
var SUserLimitationsDocumentWithRelations =
|
|
2398
|
+
var SUserLimitationsDocumentWithRelations = v12__namespace.object({
|
|
2395
2399
|
...SBaseDocument.entries,
|
|
2396
2400
|
...SBaseUserLimitationsDocument.entries,
|
|
2397
2401
|
...SUserLimitationsRelationsDocument.entries
|
|
2398
2402
|
});
|
|
2399
|
-
var SUserDocumentWithRelations =
|
|
2403
|
+
var SUserDocumentWithRelations = v12__namespace.object({
|
|
2400
2404
|
...SBaseDocument.entries,
|
|
2401
2405
|
...SBaseUserDocument.entries,
|
|
2402
2406
|
...SUserRelationsDocument.entries
|
|
2403
2407
|
});
|
|
2404
|
-
var SUserDocumentWithAccountRelations =
|
|
2408
|
+
var SUserDocumentWithAccountRelations = v12__namespace.object({
|
|
2405
2409
|
...SBaseDocument.entries,
|
|
2406
2410
|
...SBaseUserDocument.entries,
|
|
2407
2411
|
...SUserRelationReqAccount.entries
|
|
2408
2412
|
});
|
|
2409
|
-
var SUserDocumentWithAccountAndRoleRelations =
|
|
2413
|
+
var SUserDocumentWithAccountAndRoleRelations = v12__namespace.object({
|
|
2410
2414
|
...SBaseDocument.entries,
|
|
2411
2415
|
...SBaseUserDocument.entries,
|
|
2412
2416
|
...SUserRelationReqRole.entries,
|
|
2413
2417
|
...SUserRelationReqAccount.entries
|
|
2414
2418
|
});
|
|
2415
|
-
var SUserAuthorizationSuccessResponse =
|
|
2416
|
-
jwt:
|
|
2419
|
+
var SUserAuthorizationSuccessResponse = v12__namespace.object({
|
|
2420
|
+
jwt: v12__namespace.string(),
|
|
2417
2421
|
user: SUserDocumentWithAccountAndRoleRelations
|
|
2418
2422
|
});
|
|
2419
|
-
var SCampaignIdDocumentWithRelations =
|
|
2423
|
+
var SCampaignIdDocumentWithRelations = v12__namespace.object({
|
|
2420
2424
|
...SBaseDocument.entries,
|
|
2421
2425
|
...SBaseCampaignIdDocument.entries,
|
|
2422
2426
|
...SCampaignIdRelationsDocument.entries
|
|
2423
2427
|
});
|
|
2424
|
-
var SCampaignPhaseDocumentWithRelations =
|
|
2428
|
+
var SCampaignPhaseDocumentWithRelations = v12__namespace.object({
|
|
2425
2429
|
...SBaseDocument.entries,
|
|
2426
2430
|
...SBaseCampaignPhaseDocument.entries,
|
|
2427
2431
|
...SCampaignPhaseRelationsDocument.entries
|
|
2428
2432
|
});
|
|
2429
|
-
var SCampaignProductDocumentWithRelations =
|
|
2433
|
+
var SCampaignProductDocumentWithRelations = v12__namespace.object({
|
|
2430
2434
|
...SBaseDocument.entries,
|
|
2431
2435
|
...SBaseCampaignProductDocument.entries,
|
|
2432
2436
|
...SCampaignProductRelationsDocument.entries
|
|
2433
2437
|
});
|
|
2434
|
-
var SCampaignTargetDocumentWithRelations =
|
|
2438
|
+
var SCampaignTargetDocumentWithRelations = v12__namespace.object({
|
|
2435
2439
|
...SBaseDocument.entries,
|
|
2436
2440
|
...SBaseCampaignTargetDocument.entries,
|
|
2437
2441
|
...SCampaignTargetRelationsDocument.entries
|
|
2438
2442
|
});
|
|
2439
|
-
var SCampaignKeyDocumentWithRelations =
|
|
2443
|
+
var SCampaignKeyDocumentWithRelations = v12__namespace.object({
|
|
2440
2444
|
...SBaseDocument.entries,
|
|
2441
2445
|
...SBaseCampaignKeyDocument.entries,
|
|
2442
2446
|
...SCampaignKeyRelationsDocument.entries
|
|
2443
2447
|
});
|
|
2444
|
-
var SSourceDocumentWithRelations =
|
|
2448
|
+
var SSourceDocumentWithRelations = v12__namespace.object({
|
|
2445
2449
|
...SBaseDocument.entries,
|
|
2446
2450
|
...SBaseSourceDocument.entries,
|
|
2447
2451
|
...SSourceRelationsDocument.entries
|
|
2448
2452
|
});
|
|
2449
|
-
var SMediumDocumentWithRelations =
|
|
2453
|
+
var SMediumDocumentWithRelations = v12__namespace.object({
|
|
2450
2454
|
...SBaseDocument.entries,
|
|
2451
2455
|
...SBaseMediumDocument.entries,
|
|
2452
2456
|
...SMediumRelationsDocument.entries
|
|
2453
2457
|
});
|
|
2454
|
-
var SContentDocumentWithRelations =
|
|
2458
|
+
var SContentDocumentWithRelations = v12__namespace.object({
|
|
2455
2459
|
...SBaseDocument.entries,
|
|
2456
2460
|
...SBaseContentDocument.entries,
|
|
2457
2461
|
...SContentRelationsDocument.entries
|
|
2458
2462
|
});
|
|
2459
|
-
var SCreativeFormatDocumentWithRelations =
|
|
2463
|
+
var SCreativeFormatDocumentWithRelations = v12__namespace.object({
|
|
2460
2464
|
...SBaseDocument.entries,
|
|
2461
2465
|
...SBaseCreativeFormatDocument.entries,
|
|
2462
2466
|
...SCreativeFormatRelationsDocument.entries
|
|
2463
2467
|
});
|
|
2464
|
-
var SCreativeFormatVariantDocumentWithRelations =
|
|
2468
|
+
var SCreativeFormatVariantDocumentWithRelations = v12__namespace.object({
|
|
2465
2469
|
...SBaseDocument.entries,
|
|
2466
2470
|
...SBaseCreativeFormatVariantDocument.entries,
|
|
2467
2471
|
...SCreativeFormatVariantRelationsDocument.entries
|
|
2468
2472
|
});
|
|
2469
|
-
var STermDocumentWithRelations =
|
|
2473
|
+
var STermDocumentWithRelations = v12__namespace.object({
|
|
2470
2474
|
...SBaseDocument.entries,
|
|
2471
2475
|
...SBaseTermDocument.entries,
|
|
2472
2476
|
...STermRelationsDocument.entries
|
|
2473
2477
|
});
|
|
2474
|
-
var SWebsiteDocumentWithRelations =
|
|
2478
|
+
var SWebsiteDocumentWithRelations = v12__namespace.object({
|
|
2475
2479
|
...SBaseDocument.entries,
|
|
2476
2480
|
...SBaseWebsiteDocument.entries,
|
|
2477
2481
|
...SWebsiteRelationsDocument.entries
|
|
@@ -3098,10 +3102,10 @@ function datePlusDays(today, days = 30) {
|
|
|
3098
3102
|
function validateAndClean(schema, input) {
|
|
3099
3103
|
var _a, _b;
|
|
3100
3104
|
try {
|
|
3101
|
-
const parsed =
|
|
3105
|
+
const parsed = v12__namespace.parse(schema, input);
|
|
3102
3106
|
return { data: parsed, error: null, errors: null };
|
|
3103
3107
|
} catch (err) {
|
|
3104
|
-
if (err instanceof
|
|
3108
|
+
if (err instanceof v12__namespace.ValiError) {
|
|
3105
3109
|
const errors = {};
|
|
3106
3110
|
for (const issue of err.issues) {
|
|
3107
3111
|
const field = ((_b = (_a = issue.path) == null ? void 0 : _a[0]) == null ? void 0 : _b.key) || "unknown";
|