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