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