@joeygrable94/utm-src-pub-validators 0.0.64 → 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 +1108 -1096
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +181 -1
- package/dist/index.d.ts +181 -1
- package/dist/index.js +1107 -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
|
-
SUpdateAsCreatorGroupDocument,
|
|
707
|
-
SUpdateAsInvitedGroupDocument
|
|
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,105 @@ 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({
|
|
1310
1441
|
group: IsValidReferenceDocumentId,
|
|
1311
1442
|
is_active: IsValidIsActive,
|
|
1312
1443
|
destination: IsValidUrlDestination,
|
|
@@ -1323,19 +1454,19 @@ var SCreateTrackingLinkDocument = v36__namespace.object({
|
|
|
1323
1454
|
utm_term: IsValidUrlUtmTerm,
|
|
1324
1455
|
utm_id: IsValidUrlUtmId
|
|
1325
1456
|
});
|
|
1326
|
-
var SCreateMultipleTrackingLinkDocuments =
|
|
1327
|
-
tracking_links:
|
|
1328
|
-
|
|
1329
|
-
|
|
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")
|
|
1330
1461
|
)
|
|
1331
1462
|
});
|
|
1332
|
-
var SReadTrackingLinkDocumentById =
|
|
1463
|
+
var SReadTrackingLinkDocumentById = v35__namespace.object({
|
|
1333
1464
|
id: IsValidReferenceId
|
|
1334
1465
|
});
|
|
1335
|
-
var SReadTrackingLinkDocumentByDocumentId =
|
|
1466
|
+
var SReadTrackingLinkDocumentByDocumentId = v35__namespace.object({
|
|
1336
1467
|
documentId: IsValidReferenceDocumentId
|
|
1337
1468
|
});
|
|
1338
|
-
var SUpdateAsCreatorTrackingLinkDocument =
|
|
1469
|
+
var SUpdateAsCreatorTrackingLinkDocument = v35__namespace.object({
|
|
1339
1470
|
is_active: IsValidOrUndefinedUrlDestination,
|
|
1340
1471
|
destination: IsValidOrUndefinedUrlDestination,
|
|
1341
1472
|
protocol: IsValidOrUndefinedUrlProtocol,
|
|
@@ -1351,11 +1482,11 @@ var SUpdateAsCreatorTrackingLinkDocument = v36__namespace.object({
|
|
|
1351
1482
|
utm_term: IsValidOrUndefinedUrlUtmTerm,
|
|
1352
1483
|
utm_id: IsValidOrUndefinedUrlUtmId
|
|
1353
1484
|
});
|
|
1354
|
-
var SUpdateAsCreatorTrackingLinkDocumentRequest =
|
|
1485
|
+
var SUpdateAsCreatorTrackingLinkDocumentRequest = v35__namespace.object({
|
|
1355
1486
|
documentId: IsValidReferenceDocumentId,
|
|
1356
1487
|
data: SUpdateAsCreatorTrackingLinkDocument
|
|
1357
1488
|
});
|
|
1358
|
-
var SUpdateAsInvitedTrackingLinkDocument =
|
|
1489
|
+
var SUpdateAsInvitedTrackingLinkDocument = v35__namespace.object({
|
|
1359
1490
|
is_active: IsValidOrUndefinedUrlDestination,
|
|
1360
1491
|
destination: IsValidOrUndefinedUrlDestination,
|
|
1361
1492
|
protocol: IsValidOrUndefinedUrlProtocol,
|
|
@@ -1371,26 +1502,26 @@ var SUpdateAsInvitedTrackingLinkDocument = v36__namespace.object({
|
|
|
1371
1502
|
utm_term: IsValidOrUndefinedUrlUtmTerm,
|
|
1372
1503
|
utm_id: IsValidOrUndefinedUrlUtmId
|
|
1373
1504
|
});
|
|
1374
|
-
var SUpdateAsInvitedTrackingLinkDocumentRequest =
|
|
1505
|
+
var SUpdateAsInvitedTrackingLinkDocumentRequest = v35__namespace.object({
|
|
1375
1506
|
documentId: IsValidReferenceDocumentId,
|
|
1376
1507
|
data: SUpdateAsInvitedTrackingLinkDocument
|
|
1377
1508
|
});
|
|
1378
|
-
var SUpdateTrackingLinkDocumentRequest =
|
|
1509
|
+
var SUpdateTrackingLinkDocumentRequest = v35__namespace.union([
|
|
1379
1510
|
SUpdateAsCreatorTrackingLinkDocument,
|
|
1380
1511
|
SUpdateAsInvitedTrackingLinkDocument
|
|
1381
1512
|
]);
|
|
1382
|
-
var SDeleteTrackingLinkDocument =
|
|
1513
|
+
var SDeleteTrackingLinkDocument = v35__namespace.object({
|
|
1383
1514
|
documentId: IsValidReferenceDocumentId
|
|
1384
1515
|
});
|
|
1385
|
-
var SQueryListUserAccountDocuments =
|
|
1516
|
+
var SQueryListUserAccountDocuments = v35__namespace.object({
|
|
1386
1517
|
documentId: IsValidReferenceDocumentId,
|
|
1387
1518
|
page: IsValidMinPage,
|
|
1388
|
-
size:
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
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)
|
|
1394
1525
|
),
|
|
1395
1526
|
USER_ACCOUNT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1396
1527
|
),
|
|
@@ -1406,7 +1537,7 @@ var SQueryListUserAccountDocuments = v36__namespace.object({
|
|
|
1406
1537
|
trial_period_end_after: IsValidOrUndefinedTrialPeriodEnd,
|
|
1407
1538
|
trial_period_end_before: IsValidOrUndefinedTrialPeriodEnd
|
|
1408
1539
|
});
|
|
1409
|
-
var SCreateUserAccountDocument =
|
|
1540
|
+
var SCreateUserAccountDocument = v35__namespace.object({
|
|
1410
1541
|
customer_id: IsValidOrUndefinedCustomerId,
|
|
1411
1542
|
subscription_id: IsValidOrUndefinedSubscriptionId,
|
|
1412
1543
|
subscription_status: IsValidSubscriptionStatus,
|
|
@@ -1414,13 +1545,13 @@ var SCreateUserAccountDocument = v36__namespace.object({
|
|
|
1414
1545
|
current_period_end: IsValidCurrentPeriodEnd,
|
|
1415
1546
|
trial_period_end: IsValidOrUndefinedTrialPeriodEnd
|
|
1416
1547
|
});
|
|
1417
|
-
var SReadUserAccountDocumentById =
|
|
1548
|
+
var SReadUserAccountDocumentById = v35__namespace.object({
|
|
1418
1549
|
id: IsValidReferenceId
|
|
1419
1550
|
});
|
|
1420
|
-
var SReadUserAccountDocumentByDocumentId =
|
|
1551
|
+
var SReadUserAccountDocumentByDocumentId = v35__namespace.object({
|
|
1421
1552
|
documentId: IsValidReferenceDocumentId
|
|
1422
1553
|
});
|
|
1423
|
-
var SUpdateUserAccountDocument =
|
|
1554
|
+
var SUpdateUserAccountDocument = v35__namespace.object({
|
|
1424
1555
|
customer_id: IsValidOrUndefinedCustomerId,
|
|
1425
1556
|
subscription_id: IsValidOrUndefinedSubscriptionId,
|
|
1426
1557
|
subscription_status: IsValidOrUndefinedSubscriptionStatus,
|
|
@@ -1428,22 +1559,22 @@ var SUpdateUserAccountDocument = v36__namespace.object({
|
|
|
1428
1559
|
current_period_end: IsValidOrUndefinedCurrentPeriodEnd,
|
|
1429
1560
|
trial_period_end: IsValidOrUndefinedTrialPeriodEnd
|
|
1430
1561
|
});
|
|
1431
|
-
var SQueryListUserLimitationDocuments =
|
|
1562
|
+
var SQueryListUserLimitationDocuments = v35__namespace.object({
|
|
1432
1563
|
documentId: IsValidReferenceDocumentId,
|
|
1433
1564
|
page: IsValidMinPage,
|
|
1434
|
-
size:
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
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)
|
|
1440
1571
|
),
|
|
1441
1572
|
USER_LIMITATION_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1442
1573
|
),
|
|
1443
1574
|
USER_LIMITATION_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1444
1575
|
)
|
|
1445
1576
|
});
|
|
1446
|
-
var SCreateUserLimitationsDocument =
|
|
1577
|
+
var SCreateUserLimitationsDocument = v35__namespace.object({
|
|
1447
1578
|
limit_groups: IsValidUserLimitationNumberFallback,
|
|
1448
1579
|
limit_group_users: IsValidUserLimitationNumberFallback,
|
|
1449
1580
|
limit_websites: IsValidUserLimitationNumberFallback,
|
|
@@ -1460,13 +1591,13 @@ var SCreateUserLimitationsDocument = v36__namespace.object({
|
|
|
1460
1591
|
limit_creative_format_variants: IsValidUserLimitationNumberFallback,
|
|
1461
1592
|
limit_terms: IsValidUserLimitationNumberFallback
|
|
1462
1593
|
});
|
|
1463
|
-
var SReadUserLimitationsDocumentById =
|
|
1594
|
+
var SReadUserLimitationsDocumentById = v35__namespace.object({
|
|
1464
1595
|
id: IsValidReferenceId
|
|
1465
1596
|
});
|
|
1466
|
-
var SReadUserLimitationsDocumentByDocumentId =
|
|
1597
|
+
var SReadUserLimitationsDocumentByDocumentId = v35__namespace.object({
|
|
1467
1598
|
documentId: IsValidReferenceDocumentId
|
|
1468
1599
|
});
|
|
1469
|
-
var SUpdateUserLimitationsDocument =
|
|
1600
|
+
var SUpdateUserLimitationsDocument = v35__namespace.object({
|
|
1470
1601
|
limit_groups: IsValidOrUndefinedUserLimitationNumber,
|
|
1471
1602
|
limit_group_users: IsValidOrUndefinedUserLimitationNumber,
|
|
1472
1603
|
limit_websites: IsValidOrUndefinedUserLimitationNumber,
|
|
@@ -1483,69 +1614,69 @@ var SUpdateUserLimitationsDocument = v36__namespace.object({
|
|
|
1483
1614
|
limit_creative_format_variants: IsValidOrUndefinedUserLimitationNumber,
|
|
1484
1615
|
limit_terms: IsValidOrUndefinedUserLimitationNumber
|
|
1485
1616
|
});
|
|
1486
|
-
var SQueryListUserDocuments =
|
|
1617
|
+
var SQueryListUserDocuments = v35__namespace.object({
|
|
1487
1618
|
page: IsValidMinPage,
|
|
1488
|
-
size:
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
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)
|
|
1494
1625
|
),
|
|
1495
1626
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1496
1627
|
),
|
|
1497
1628
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1498
1629
|
),
|
|
1499
|
-
email:
|
|
1500
|
-
username:
|
|
1501
|
-
confirmed:
|
|
1502
|
-
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)
|
|
1503
1634
|
});
|
|
1504
|
-
var SQueryListUserDocumentsByIdentifier =
|
|
1505
|
-
identifier:
|
|
1635
|
+
var SQueryListUserDocumentsByIdentifier = v35__namespace.object({
|
|
1636
|
+
identifier: v35__namespace.pipe(v35__namespace.string(), v35__namespace.maxLength(255)),
|
|
1506
1637
|
page: IsValidMinPage,
|
|
1507
|
-
size:
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
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)
|
|
1513
1644
|
),
|
|
1514
1645
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1515
1646
|
),
|
|
1516
1647
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1517
1648
|
)
|
|
1518
1649
|
});
|
|
1519
|
-
var SReadUserDocumentById =
|
|
1650
|
+
var SReadUserDocumentById = v35__namespace.object({
|
|
1520
1651
|
id: IsValidReferenceId
|
|
1521
1652
|
});
|
|
1522
|
-
var SReadUserDocumentByDocumentId =
|
|
1653
|
+
var SReadUserDocumentByDocumentId = v35__namespace.object({
|
|
1523
1654
|
documentId: IsValidReferenceDocumentId
|
|
1524
1655
|
});
|
|
1525
|
-
var SQueryListCampaignIdDocuments =
|
|
1656
|
+
var SQueryListCampaignIdDocuments = v35__namespace.object({
|
|
1526
1657
|
documentId: IsValidReferenceDocumentId,
|
|
1527
1658
|
page: IsValidMinPage,
|
|
1528
|
-
size:
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
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)
|
|
1534
1665
|
),
|
|
1535
1666
|
CAMPAIGN_ID_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1536
1667
|
),
|
|
1537
1668
|
CAMPAIGN_ID_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1538
1669
|
),
|
|
1539
|
-
cost:
|
|
1540
|
-
min_cost:
|
|
1541
|
-
max_cost:
|
|
1542
|
-
label:
|
|
1543
|
-
value:
|
|
1544
|
-
is_active:
|
|
1545
|
-
group:
|
|
1546
|
-
creator:
|
|
1547
|
-
});
|
|
1548
|
-
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({
|
|
1549
1680
|
group: IsValidReferenceDocumentId,
|
|
1550
1681
|
cost: IsValidCost,
|
|
1551
1682
|
label: IsValidLabel,
|
|
@@ -1553,878 +1684,758 @@ var SCreateCampaignIdDocument = v36__namespace.object({
|
|
|
1553
1684
|
description: IsValidDescription,
|
|
1554
1685
|
is_active: IsValidIsActive
|
|
1555
1686
|
});
|
|
1556
|
-
var SCreateMultipleCampaignIdDocuments =
|
|
1557
|
-
campaign_ids:
|
|
1558
|
-
|
|
1559
|
-
|
|
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")
|
|
1560
1691
|
)
|
|
1561
1692
|
});
|
|
1562
|
-
var SReadCampaignIdDocumentById =
|
|
1693
|
+
var SReadCampaignIdDocumentById = v35__namespace.object({
|
|
1563
1694
|
id: IsValidReferenceId
|
|
1564
1695
|
});
|
|
1565
|
-
var SReadCampaignIdDocumentByDocumentId =
|
|
1696
|
+
var SReadCampaignIdDocumentByDocumentId = v35__namespace.object({
|
|
1566
1697
|
documentId: IsValidReferenceDocumentId
|
|
1567
1698
|
});
|
|
1568
|
-
var SUpdateAsCreatorCampaignIdDocument =
|
|
1699
|
+
var SUpdateAsCreatorCampaignIdDocument = v35__namespace.object({
|
|
1569
1700
|
cost: IsValidOrUndefinedCost,
|
|
1570
1701
|
label: IsValidOrUndefinedLabel,
|
|
1571
1702
|
value: IsValidOrUndefinedValue,
|
|
1572
1703
|
description: IsValidDescription,
|
|
1573
1704
|
is_active: IsValidOrUndefinedIsActive
|
|
1574
1705
|
});
|
|
1575
|
-
var SUpdateAsCreatorCampaignIdDocumentRequest =
|
|
1706
|
+
var SUpdateAsCreatorCampaignIdDocumentRequest = v35__namespace.object({
|
|
1576
1707
|
documentId: IsValidReferenceDocumentId,
|
|
1577
1708
|
data: SUpdateAsCreatorCampaignIdDocument
|
|
1578
1709
|
});
|
|
1579
|
-
var SUpdateAsInvitedCampaignIdDocument =
|
|
1710
|
+
var SUpdateAsInvitedCampaignIdDocument = v35__namespace.object({
|
|
1580
1711
|
label: IsValidOrUndefinedLabel,
|
|
1581
1712
|
description: IsValidDescription,
|
|
1582
1713
|
is_active: IsValidOrUndefinedIsActive
|
|
1583
1714
|
});
|
|
1584
|
-
var SUpdateAsInvitedCampaignIdDocumentRequest =
|
|
1715
|
+
var SUpdateAsInvitedCampaignIdDocumentRequest = v35__namespace.object({
|
|
1585
1716
|
documentId: IsValidReferenceDocumentId,
|
|
1586
1717
|
data: SUpdateAsInvitedCampaignIdDocument
|
|
1587
1718
|
});
|
|
1588
|
-
var SUpdateCampaignIdDocumentRequest =
|
|
1719
|
+
var SUpdateCampaignIdDocumentRequest = v35__namespace.union([
|
|
1589
1720
|
SUpdateAsCreatorCampaignIdDocument,
|
|
1590
1721
|
SUpdateAsInvitedCampaignIdDocument
|
|
1591
1722
|
]);
|
|
1592
|
-
var SDeleteCampaignIdDocument =
|
|
1723
|
+
var SDeleteCampaignIdDocument = v35__namespace.object({
|
|
1593
1724
|
documentId: IsValidReferenceDocumentId
|
|
1594
1725
|
});
|
|
1595
|
-
var SQueryListCampaignKeyDocuments =
|
|
1726
|
+
var SQueryListCampaignKeyDocuments = v35__namespace.object({
|
|
1596
1727
|
documentId: IsValidReferenceDocumentId,
|
|
1597
1728
|
page: IsValidMinPage,
|
|
1598
|
-
size:
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
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)
|
|
1604
1735
|
),
|
|
1605
1736
|
CAMPAIGN_KEY_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1606
1737
|
),
|
|
1607
1738
|
CAMPAIGN_KEY_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1608
1739
|
),
|
|
1609
|
-
label:
|
|
1610
|
-
value:
|
|
1611
|
-
is_active:
|
|
1612
|
-
group:
|
|
1613
|
-
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)
|
|
1614
1745
|
});
|
|
1615
|
-
var SCreateCampaignKeyDocument =
|
|
1746
|
+
var SCreateCampaignKeyDocument = v35__namespace.object({
|
|
1616
1747
|
group: IsValidReferenceDocumentId,
|
|
1617
1748
|
label: IsValidLabel,
|
|
1618
1749
|
value: IsValidValue,
|
|
1619
1750
|
description: IsValidDescription,
|
|
1620
1751
|
is_active: IsValidIsActive
|
|
1621
1752
|
});
|
|
1622
|
-
var SCreateMultipleCampaignKeyDocuments =
|
|
1623
|
-
campaign_keys:
|
|
1624
|
-
|
|
1625
|
-
|
|
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")
|
|
1626
1757
|
)
|
|
1627
1758
|
});
|
|
1628
|
-
var SReadCampaignKeyDocumentById =
|
|
1759
|
+
var SReadCampaignKeyDocumentById = v35__namespace.object({
|
|
1629
1760
|
id: IsValidReferenceId
|
|
1630
1761
|
});
|
|
1631
|
-
var SReadCampaignKeyDocumentByDocumentId =
|
|
1762
|
+
var SReadCampaignKeyDocumentByDocumentId = v35__namespace.object({
|
|
1632
1763
|
documentId: IsValidReferenceDocumentId
|
|
1633
1764
|
});
|
|
1634
|
-
var SUpdateAsCreatorCampaignKeyDocument =
|
|
1765
|
+
var SUpdateAsCreatorCampaignKeyDocument = v35__namespace.object({
|
|
1635
1766
|
label: IsValidOrUndefinedLabel,
|
|
1636
1767
|
value: IsValidOrUndefinedValue,
|
|
1637
1768
|
description: IsValidOrUndefinedDescription,
|
|
1638
1769
|
is_active: IsValidOrUndefinedIsActive
|
|
1639
1770
|
});
|
|
1640
|
-
var SUpdateAsCreatorCampaignKeyDocumentRequest =
|
|
1771
|
+
var SUpdateAsCreatorCampaignKeyDocumentRequest = v35__namespace.object({
|
|
1641
1772
|
documentId: IsValidReferenceDocumentId,
|
|
1642
1773
|
data: SUpdateAsCreatorCampaignKeyDocument
|
|
1643
1774
|
});
|
|
1644
|
-
var SUpdateAsInvitedCampaignKeyDocument =
|
|
1775
|
+
var SUpdateAsInvitedCampaignKeyDocument = v35__namespace.object({
|
|
1645
1776
|
label: IsValidOrUndefinedLabel,
|
|
1646
1777
|
description: IsValidDescription,
|
|
1647
1778
|
is_active: IsValidOrUndefinedIsActive
|
|
1648
1779
|
});
|
|
1649
|
-
var SUpdateAsInvitedCampaignKeyDocumentRequest =
|
|
1780
|
+
var SUpdateAsInvitedCampaignKeyDocumentRequest = v35__namespace.object({
|
|
1650
1781
|
documentId: IsValidReferenceDocumentId,
|
|
1651
1782
|
data: SUpdateAsInvitedCampaignKeyDocument
|
|
1652
1783
|
});
|
|
1653
|
-
var SUpdateCampaignKeyDocumentRequest =
|
|
1784
|
+
var SUpdateCampaignKeyDocumentRequest = v35__namespace.union([
|
|
1654
1785
|
SUpdateAsCreatorCampaignKeyDocument,
|
|
1655
1786
|
SUpdateAsInvitedCampaignKeyDocument
|
|
1656
1787
|
]);
|
|
1657
|
-
var SDeleteCampaignKeyDocument =
|
|
1788
|
+
var SDeleteCampaignKeyDocument = v35__namespace.object({
|
|
1658
1789
|
documentId: IsValidReferenceDocumentId
|
|
1659
1790
|
});
|
|
1660
|
-
var SQueryListCampaignPhaseDocuments =
|
|
1791
|
+
var SQueryListCampaignPhaseDocuments = v35__namespace.object({
|
|
1661
1792
|
documentId: IsValidReferenceDocumentId,
|
|
1662
1793
|
page: IsValidMinPage,
|
|
1663
|
-
size:
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
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)
|
|
1669
1800
|
),
|
|
1670
1801
|
CAMPAIGN_PHASE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1671
1802
|
),
|
|
1672
1803
|
CAMPAIGN_PHASE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1673
1804
|
),
|
|
1674
|
-
label:
|
|
1675
|
-
value:
|
|
1676
|
-
is_active:
|
|
1677
|
-
group:
|
|
1678
|
-
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)
|
|
1679
1810
|
});
|
|
1680
|
-
var SCreateCampaignPhaseDocument =
|
|
1811
|
+
var SCreateCampaignPhaseDocument = v35__namespace.object({
|
|
1681
1812
|
group: IsValidReferenceDocumentId,
|
|
1682
1813
|
label: IsValidLabel,
|
|
1683
1814
|
value: IsValidValue,
|
|
1684
1815
|
description: IsValidDescription,
|
|
1685
1816
|
is_active: IsValidIsActive
|
|
1686
1817
|
});
|
|
1687
|
-
var SCreateMultipleCampaignPhaseDocuments =
|
|
1688
|
-
campaign_phases:
|
|
1689
|
-
|
|
1690
|
-
|
|
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")
|
|
1691
1822
|
)
|
|
1692
1823
|
});
|
|
1693
|
-
var SReadCampaignPhaseDocumentById =
|
|
1824
|
+
var SReadCampaignPhaseDocumentById = v35__namespace.object({
|
|
1694
1825
|
id: IsValidReferenceId
|
|
1695
1826
|
});
|
|
1696
|
-
var SReadCampaignPhaseDocumentByDocumentId =
|
|
1827
|
+
var SReadCampaignPhaseDocumentByDocumentId = v35__namespace.object({
|
|
1697
1828
|
documentId: IsValidReferenceDocumentId
|
|
1698
1829
|
});
|
|
1699
|
-
var SUpdateAsCreatorCampaignPhaseDocument =
|
|
1830
|
+
var SUpdateAsCreatorCampaignPhaseDocument = v35__namespace.object({
|
|
1700
1831
|
label: IsValidOrUndefinedLabel,
|
|
1701
1832
|
value: IsValidOrUndefinedValue,
|
|
1702
1833
|
description: IsValidOrUndefinedDescription,
|
|
1703
1834
|
is_active: IsValidOrUndefinedIsActive
|
|
1704
1835
|
});
|
|
1705
|
-
var SUpdateAsCreatorCampaignPhaseDocumentRequest =
|
|
1836
|
+
var SUpdateAsCreatorCampaignPhaseDocumentRequest = v35__namespace.object({
|
|
1706
1837
|
documentId: IsValidReferenceDocumentId,
|
|
1707
1838
|
data: SUpdateAsCreatorCampaignPhaseDocument
|
|
1708
1839
|
});
|
|
1709
|
-
var SUpdateAsInvitedCampaignPhaseDocument =
|
|
1840
|
+
var SUpdateAsInvitedCampaignPhaseDocument = v35__namespace.object({
|
|
1710
1841
|
label: IsValidOrUndefinedLabel,
|
|
1711
1842
|
description: IsValidDescription,
|
|
1712
1843
|
is_active: IsValidOrUndefinedIsActive
|
|
1713
1844
|
});
|
|
1714
|
-
var SUpdateAsInvitedCampaignPhaseDocumentRequest =
|
|
1845
|
+
var SUpdateAsInvitedCampaignPhaseDocumentRequest = v35__namespace.object({
|
|
1715
1846
|
documentId: IsValidReferenceDocumentId,
|
|
1716
1847
|
data: SUpdateAsInvitedCampaignPhaseDocument
|
|
1717
1848
|
});
|
|
1718
|
-
var SUpdateCampaignPhaseDocumentRequest =
|
|
1849
|
+
var SUpdateCampaignPhaseDocumentRequest = v35__namespace.union([
|
|
1719
1850
|
SUpdateAsCreatorCampaignPhaseDocument,
|
|
1720
1851
|
SUpdateAsInvitedCampaignPhaseDocument
|
|
1721
1852
|
]);
|
|
1722
|
-
var SDeleteCampaignPhaseDocument =
|
|
1853
|
+
var SDeleteCampaignPhaseDocument = v35__namespace.object({
|
|
1723
1854
|
documentId: IsValidReferenceDocumentId
|
|
1724
1855
|
});
|
|
1725
|
-
var SQueryListCampaignProductDocuments =
|
|
1856
|
+
var SQueryListCampaignProductDocuments = v35__namespace.object({
|
|
1726
1857
|
documentId: IsValidReferenceDocumentId,
|
|
1727
1858
|
page: IsValidMinPage,
|
|
1728
|
-
size:
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
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)
|
|
1734
1865
|
),
|
|
1735
1866
|
CAMPAIGN_PRODUCT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1736
1867
|
),
|
|
1737
1868
|
CAMPAIGN_PRODUCT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1738
1869
|
),
|
|
1739
|
-
label:
|
|
1740
|
-
value:
|
|
1741
|
-
is_active:
|
|
1742
|
-
group:
|
|
1743
|
-
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)
|
|
1744
1875
|
});
|
|
1745
|
-
var SCreateCampaignProductDocument =
|
|
1876
|
+
var SCreateCampaignProductDocument = v35__namespace.object({
|
|
1746
1877
|
group: IsValidReferenceDocumentId,
|
|
1747
1878
|
label: IsValidLabel,
|
|
1748
1879
|
value: IsValidValue,
|
|
1749
1880
|
description: IsValidDescription,
|
|
1750
1881
|
is_active: IsValidIsActive
|
|
1751
1882
|
});
|
|
1752
|
-
var SCreateMultipleCampaignProductDocuments =
|
|
1753
|
-
campaign_products:
|
|
1754
|
-
|
|
1755
|
-
|
|
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")
|
|
1756
1887
|
)
|
|
1757
1888
|
});
|
|
1758
|
-
var SReadCampaignProductDocumentById =
|
|
1889
|
+
var SReadCampaignProductDocumentById = v35__namespace.object({
|
|
1759
1890
|
id: IsValidReferenceId
|
|
1760
1891
|
});
|
|
1761
|
-
var SReadCampaignProductDocumentByDocumentId =
|
|
1892
|
+
var SReadCampaignProductDocumentByDocumentId = v35__namespace.object({
|
|
1762
1893
|
documentId: IsValidReferenceDocumentId
|
|
1763
1894
|
});
|
|
1764
|
-
var SUpdateAsCreatorCampaignProductDocument =
|
|
1895
|
+
var SUpdateAsCreatorCampaignProductDocument = v35__namespace.object({
|
|
1765
1896
|
label: IsValidOrUndefinedLabel,
|
|
1766
1897
|
value: IsValidOrUndefinedValue,
|
|
1767
1898
|
description: IsValidOrUndefinedDescription,
|
|
1768
1899
|
is_active: IsValidOrUndefinedIsActive
|
|
1769
1900
|
});
|
|
1770
|
-
var SUpdateAsCreatorCampaignProductDocumentRequest =
|
|
1901
|
+
var SUpdateAsCreatorCampaignProductDocumentRequest = v35__namespace.object({
|
|
1771
1902
|
documentId: IsValidReferenceDocumentId,
|
|
1772
1903
|
data: SUpdateAsCreatorCampaignProductDocument
|
|
1773
1904
|
});
|
|
1774
|
-
var SUpdateAsInvitedCampaignProductDocument =
|
|
1905
|
+
var SUpdateAsInvitedCampaignProductDocument = v35__namespace.object({
|
|
1775
1906
|
label: IsValidOrUndefinedLabel,
|
|
1776
1907
|
description: IsValidDescription,
|
|
1777
1908
|
is_active: IsValidOrUndefinedIsActive
|
|
1778
1909
|
});
|
|
1779
|
-
var SUpdateAsInvitedCampaignProductDocumentRequest =
|
|
1910
|
+
var SUpdateAsInvitedCampaignProductDocumentRequest = v35__namespace.object({
|
|
1780
1911
|
documentId: IsValidReferenceDocumentId,
|
|
1781
1912
|
data: SUpdateAsInvitedCampaignProductDocument
|
|
1782
1913
|
});
|
|
1783
|
-
var SUpdateCampaignProductDocumentRequest =
|
|
1914
|
+
var SUpdateCampaignProductDocumentRequest = v35__namespace.union([
|
|
1784
1915
|
SUpdateAsCreatorCampaignProductDocument,
|
|
1785
1916
|
SUpdateAsInvitedCampaignProductDocument
|
|
1786
1917
|
]);
|
|
1787
|
-
var SDeleteCampaignProductDocument =
|
|
1918
|
+
var SDeleteCampaignProductDocument = v35__namespace.object({
|
|
1788
1919
|
documentId: IsValidReferenceDocumentId
|
|
1789
1920
|
});
|
|
1790
|
-
var SQueryListCampaignTargetDocuments =
|
|
1921
|
+
var SQueryListCampaignTargetDocuments = v35__namespace.object({
|
|
1791
1922
|
documentId: IsValidReferenceDocumentId,
|
|
1792
1923
|
page: IsValidMinPage,
|
|
1793
|
-
size:
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
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)
|
|
1799
1930
|
),
|
|
1800
1931
|
CAMPAIGN_PRODUCT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1801
1932
|
),
|
|
1802
1933
|
CAMPAIGN_PRODUCT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1803
1934
|
),
|
|
1804
|
-
label:
|
|
1805
|
-
value:
|
|
1806
|
-
is_active:
|
|
1807
|
-
group:
|
|
1808
|
-
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)
|
|
1809
1940
|
});
|
|
1810
|
-
var SCreateCampaignTargetDocument =
|
|
1941
|
+
var SCreateCampaignTargetDocument = v35__namespace.object({
|
|
1811
1942
|
group: IsValidReferenceDocumentId,
|
|
1812
1943
|
label: IsValidLabel,
|
|
1813
1944
|
value: IsValidValue,
|
|
1814
1945
|
description: IsValidDescription,
|
|
1815
1946
|
is_active: IsValidIsActive
|
|
1816
1947
|
});
|
|
1817
|
-
var SCreateMultipleCampaignTargetDocuments =
|
|
1818
|
-
campaign_targets:
|
|
1819
|
-
|
|
1820
|
-
|
|
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")
|
|
1821
1952
|
)
|
|
1822
1953
|
});
|
|
1823
|
-
var SReadCampaignTargetDocumentById =
|
|
1954
|
+
var SReadCampaignTargetDocumentById = v35__namespace.object({
|
|
1824
1955
|
id: IsValidReferenceId
|
|
1825
1956
|
});
|
|
1826
|
-
var SReadCampaignTargetDocumentByDocumentId =
|
|
1957
|
+
var SReadCampaignTargetDocumentByDocumentId = v35__namespace.object({
|
|
1827
1958
|
documentId: IsValidReferenceDocumentId
|
|
1828
1959
|
});
|
|
1829
|
-
var SUpdateAsCreatorCampaignTargetDocument =
|
|
1960
|
+
var SUpdateAsCreatorCampaignTargetDocument = v35__namespace.object({
|
|
1830
1961
|
label: IsValidOrUndefinedLabel,
|
|
1831
1962
|
value: IsValidOrUndefinedValue,
|
|
1832
1963
|
description: IsValidOrUndefinedDescription,
|
|
1833
1964
|
is_active: IsValidOrUndefinedIsActive
|
|
1834
1965
|
});
|
|
1835
|
-
var SUpdateAsCreatorCampaignTargetDocumentRequest =
|
|
1966
|
+
var SUpdateAsCreatorCampaignTargetDocumentRequest = v35__namespace.object({
|
|
1836
1967
|
documentId: IsValidReferenceDocumentId,
|
|
1837
1968
|
data: SUpdateAsCreatorCampaignTargetDocument
|
|
1838
1969
|
});
|
|
1839
|
-
var SUpdateAsInvitedCampaignTargetDocument =
|
|
1970
|
+
var SUpdateAsInvitedCampaignTargetDocument = v35__namespace.object({
|
|
1840
1971
|
label: IsValidOrUndefinedLabel,
|
|
1841
1972
|
description: IsValidDescription,
|
|
1842
1973
|
is_active: IsValidOrUndefinedIsActive
|
|
1843
1974
|
});
|
|
1844
|
-
var SUpdateAsInvitedCampaignTargetDocumentRequest =
|
|
1975
|
+
var SUpdateAsInvitedCampaignTargetDocumentRequest = v35__namespace.object({
|
|
1845
1976
|
documentId: IsValidReferenceDocumentId,
|
|
1846
1977
|
data: SUpdateAsInvitedCampaignTargetDocument
|
|
1847
1978
|
});
|
|
1848
|
-
var SUpdateCampaignTargetDocumentRequest =
|
|
1979
|
+
var SUpdateCampaignTargetDocumentRequest = v35__namespace.union([
|
|
1849
1980
|
SUpdateAsCreatorCampaignTargetDocument,
|
|
1850
1981
|
SUpdateAsInvitedCampaignTargetDocument
|
|
1851
1982
|
]);
|
|
1852
|
-
var SDeleteCampaignTargetDocument =
|
|
1983
|
+
var SDeleteCampaignTargetDocument = v35__namespace.object({
|
|
1853
1984
|
documentId: IsValidReferenceDocumentId
|
|
1854
1985
|
});
|
|
1855
|
-
var SQueryListContentDocuments =
|
|
1986
|
+
var SQueryListContentDocuments = v35__namespace.object({
|
|
1856
1987
|
documentId: IsValidReferenceDocumentId,
|
|
1857
1988
|
page: IsValidMinPage,
|
|
1858
|
-
size:
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
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)
|
|
1864
1995
|
),
|
|
1865
1996
|
CONTENT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1866
1997
|
),
|
|
1867
1998
|
CONTENT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1868
1999
|
),
|
|
1869
|
-
label:
|
|
1870
|
-
value:
|
|
1871
|
-
is_active:
|
|
1872
|
-
group:
|
|
1873
|
-
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)
|
|
1874
2005
|
});
|
|
1875
|
-
var SCreateContentDocument =
|
|
2006
|
+
var SCreateContentDocument = v35__namespace.object({
|
|
1876
2007
|
group: IsValidReferenceDocumentId,
|
|
1877
2008
|
label: IsValidLabel,
|
|
1878
2009
|
value: IsValidValue,
|
|
1879
2010
|
description: IsValidDescription,
|
|
1880
2011
|
is_active: IsValidIsActive
|
|
1881
2012
|
});
|
|
1882
|
-
var SCreateMultipleContentDocuments =
|
|
1883
|
-
contents:
|
|
1884
|
-
|
|
1885
|
-
|
|
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")
|
|
1886
2017
|
)
|
|
1887
2018
|
});
|
|
1888
|
-
var SReadContentDocumentById =
|
|
2019
|
+
var SReadContentDocumentById = v35__namespace.object({
|
|
1889
2020
|
id: IsValidReferenceId
|
|
1890
2021
|
});
|
|
1891
|
-
var SReadContentDocumentByDocumentId =
|
|
2022
|
+
var SReadContentDocumentByDocumentId = v35__namespace.object({
|
|
1892
2023
|
documentId: IsValidReferenceDocumentId
|
|
1893
2024
|
});
|
|
1894
|
-
var SUpdateAsCreatorContentDocument =
|
|
2025
|
+
var SUpdateAsCreatorContentDocument = v35__namespace.object({
|
|
1895
2026
|
label: IsValidOrUndefinedLabel,
|
|
1896
2027
|
value: IsValidOrUndefinedValue,
|
|
1897
2028
|
description: IsValidOrUndefinedDescription,
|
|
1898
2029
|
is_active: IsValidOrUndefinedIsActive
|
|
1899
2030
|
});
|
|
1900
|
-
var SUpdateAsCreatorContentDocumentRequest =
|
|
2031
|
+
var SUpdateAsCreatorContentDocumentRequest = v35__namespace.object({
|
|
1901
2032
|
documentId: IsValidReferenceDocumentId,
|
|
1902
2033
|
data: SUpdateAsCreatorContentDocument
|
|
1903
2034
|
});
|
|
1904
|
-
var SUpdateAsInvitedContentDocument =
|
|
2035
|
+
var SUpdateAsInvitedContentDocument = v35__namespace.object({
|
|
1905
2036
|
label: IsValidOrUndefinedLabel,
|
|
1906
2037
|
description: IsValidDescription,
|
|
1907
2038
|
is_active: IsValidOrUndefinedIsActive
|
|
1908
2039
|
});
|
|
1909
|
-
var SUpdateAsInvitedContentDocumentRequest =
|
|
2040
|
+
var SUpdateAsInvitedContentDocumentRequest = v35__namespace.object({
|
|
1910
2041
|
documentId: IsValidReferenceDocumentId,
|
|
1911
2042
|
data: SUpdateAsInvitedContentDocument
|
|
1912
2043
|
});
|
|
1913
|
-
var SUpdateContentDocumentRequest =
|
|
2044
|
+
var SUpdateContentDocumentRequest = v35__namespace.union([
|
|
1914
2045
|
SUpdateAsCreatorContentDocument,
|
|
1915
2046
|
SUpdateAsInvitedContentDocument
|
|
1916
2047
|
]);
|
|
1917
|
-
var SDeleteContentDocument =
|
|
2048
|
+
var SDeleteContentDocument = v35__namespace.object({
|
|
1918
2049
|
documentId: IsValidReferenceDocumentId
|
|
1919
2050
|
});
|
|
1920
|
-
var SQueryListCreativeFormatVariantDocuments =
|
|
2051
|
+
var SQueryListCreativeFormatVariantDocuments = v35__namespace.object({
|
|
1921
2052
|
documentId: IsValidReferenceDocumentId,
|
|
1922
2053
|
page: IsValidMinPage,
|
|
1923
|
-
size:
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
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)
|
|
1929
2060
|
),
|
|
1930
2061
|
CREATIVE_FORMAT_VARIANT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1931
2062
|
),
|
|
1932
2063
|
CREATIVE_FORMAT_VARIANT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1933
2064
|
),
|
|
1934
|
-
label:
|
|
1935
|
-
value:
|
|
1936
|
-
is_active:
|
|
1937
|
-
group:
|
|
1938
|
-
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)
|
|
1939
2070
|
});
|
|
1940
|
-
var SCreateCreativeFormatVariantDocument =
|
|
2071
|
+
var SCreateCreativeFormatVariantDocument = v35__namespace.object({
|
|
1941
2072
|
group: IsValidReferenceDocumentId,
|
|
1942
2073
|
label: IsValidLabel,
|
|
1943
2074
|
value: IsValidValue,
|
|
1944
2075
|
description: IsValidDescription,
|
|
1945
2076
|
is_active: IsValidIsActive
|
|
1946
2077
|
});
|
|
1947
|
-
var SCreateMultipleCreativeFormatVariantDocuments =
|
|
1948
|
-
creative_format_variants:
|
|
1949
|
-
|
|
1950
|
-
|
|
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")
|
|
1951
2082
|
)
|
|
1952
2083
|
});
|
|
1953
|
-
var SReadCreativeFormatVariantDocumentById =
|
|
2084
|
+
var SReadCreativeFormatVariantDocumentById = v35__namespace.object({
|
|
1954
2085
|
id: IsValidReferenceId
|
|
1955
2086
|
});
|
|
1956
|
-
var SReadCreativeFormatVariantDocumentByDocumentId =
|
|
2087
|
+
var SReadCreativeFormatVariantDocumentByDocumentId = v35__namespace.object({
|
|
1957
2088
|
documentId: IsValidReferenceDocumentId
|
|
1958
2089
|
});
|
|
1959
|
-
var SUpdateAsCreatorCreativeFormatVariantDocument =
|
|
2090
|
+
var SUpdateAsCreatorCreativeFormatVariantDocument = v35__namespace.object({
|
|
1960
2091
|
label: IsValidOrUndefinedLabel,
|
|
1961
2092
|
value: IsValidOrUndefinedValue,
|
|
1962
2093
|
description: IsValidOrUndefinedDescription,
|
|
1963
2094
|
is_active: IsValidOrUndefinedIsActive
|
|
1964
2095
|
});
|
|
1965
|
-
var SUpdateAsCreatorCreativeFormatVariantDocumentRequest =
|
|
2096
|
+
var SUpdateAsCreatorCreativeFormatVariantDocumentRequest = v35__namespace.object({
|
|
1966
2097
|
documentId: IsValidReferenceDocumentId,
|
|
1967
2098
|
data: SUpdateAsCreatorCreativeFormatVariantDocument
|
|
1968
2099
|
});
|
|
1969
|
-
var SUpdateAsInvitedCreativeFormatVariantDocument =
|
|
2100
|
+
var SUpdateAsInvitedCreativeFormatVariantDocument = v35__namespace.object({
|
|
1970
2101
|
label: IsValidOrUndefinedLabel,
|
|
1971
2102
|
description: IsValidDescription,
|
|
1972
2103
|
is_active: IsValidOrUndefinedIsActive
|
|
1973
2104
|
});
|
|
1974
|
-
var SUpdateAsInvitedCreativeFormatVariantDocumentRequest =
|
|
2105
|
+
var SUpdateAsInvitedCreativeFormatVariantDocumentRequest = v35__namespace.object({
|
|
1975
2106
|
documentId: IsValidReferenceDocumentId,
|
|
1976
2107
|
data: SUpdateAsInvitedCreativeFormatVariantDocument
|
|
1977
2108
|
});
|
|
1978
|
-
var SUpdateCreativeFormatVariantDocumentRequest =
|
|
2109
|
+
var SUpdateCreativeFormatVariantDocumentRequest = v35__namespace.union([
|
|
1979
2110
|
SUpdateAsCreatorCreativeFormatVariantDocument,
|
|
1980
2111
|
SUpdateAsInvitedCreativeFormatVariantDocument
|
|
1981
2112
|
]);
|
|
1982
|
-
var SDeleteCreativeFormatVariantDocument =
|
|
2113
|
+
var SDeleteCreativeFormatVariantDocument = v35__namespace.object({
|
|
1983
2114
|
documentId: IsValidReferenceDocumentId
|
|
1984
2115
|
});
|
|
1985
|
-
var SQueryListCreativeFormatDocuments =
|
|
2116
|
+
var SQueryListCreativeFormatDocuments = v35__namespace.object({
|
|
1986
2117
|
documentId: IsValidReferenceDocumentId,
|
|
1987
2118
|
page: IsValidMinPage,
|
|
1988
|
-
size:
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
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)
|
|
1994
2125
|
),
|
|
1995
2126
|
CREATIVE_FORMAT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1996
2127
|
),
|
|
1997
2128
|
CREATIVE_FORMAT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1998
2129
|
),
|
|
1999
|
-
label:
|
|
2000
|
-
value:
|
|
2001
|
-
is_active:
|
|
2002
|
-
group:
|
|
2003
|
-
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)
|
|
2004
2135
|
});
|
|
2005
|
-
var SCreateCreativeFormatDocument =
|
|
2136
|
+
var SCreateCreativeFormatDocument = v35__namespace.object({
|
|
2006
2137
|
group: IsValidReferenceDocumentId,
|
|
2007
2138
|
label: IsValidLabel,
|
|
2008
2139
|
value: IsValidValue,
|
|
2009
2140
|
description: IsValidDescription,
|
|
2010
2141
|
is_active: IsValidIsActive
|
|
2011
2142
|
});
|
|
2012
|
-
var SCreateMultipleCreativeFormatDocuments =
|
|
2013
|
-
creative_formats:
|
|
2014
|
-
|
|
2015
|
-
|
|
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")
|
|
2016
2147
|
)
|
|
2017
2148
|
});
|
|
2018
|
-
var SReadCreativeFormatDocumentById =
|
|
2149
|
+
var SReadCreativeFormatDocumentById = v35__namespace.object({
|
|
2019
2150
|
id: IsValidReferenceId
|
|
2020
2151
|
});
|
|
2021
|
-
var SReadCreativeFormatDocumentByDocumentId =
|
|
2152
|
+
var SReadCreativeFormatDocumentByDocumentId = v35__namespace.object({
|
|
2022
2153
|
documentId: IsValidReferenceDocumentId
|
|
2023
2154
|
});
|
|
2024
|
-
var SUpdateAsCreatorCreativeFormatDocument =
|
|
2155
|
+
var SUpdateAsCreatorCreativeFormatDocument = v35__namespace.object({
|
|
2025
2156
|
label: IsValidOrUndefinedLabel,
|
|
2026
2157
|
value: IsValidOrUndefinedValue,
|
|
2027
2158
|
description: IsValidOrUndefinedDescription,
|
|
2028
2159
|
is_active: IsValidOrUndefinedIsActive
|
|
2029
2160
|
});
|
|
2030
|
-
var SUpdateAsCreatorCreativeFormatDocumentRequest =
|
|
2161
|
+
var SUpdateAsCreatorCreativeFormatDocumentRequest = v35__namespace.object({
|
|
2031
2162
|
documentId: IsValidReferenceDocumentId,
|
|
2032
2163
|
data: SUpdateAsCreatorCreativeFormatDocument
|
|
2033
2164
|
});
|
|
2034
|
-
var SUpdateAsInvitedCreativeFormatDocument =
|
|
2165
|
+
var SUpdateAsInvitedCreativeFormatDocument = v35__namespace.object({
|
|
2035
2166
|
label: IsValidOrUndefinedLabel,
|
|
2036
2167
|
description: IsValidDescription,
|
|
2037
2168
|
is_active: IsValidOrUndefinedIsActive
|
|
2038
2169
|
});
|
|
2039
|
-
var SUpdateAsInvitedCreativeFormatDocumentRequest =
|
|
2170
|
+
var SUpdateAsInvitedCreativeFormatDocumentRequest = v35__namespace.object({
|
|
2040
2171
|
documentId: IsValidReferenceDocumentId,
|
|
2041
2172
|
data: SUpdateAsInvitedCreativeFormatDocument
|
|
2042
2173
|
});
|
|
2043
|
-
var SUpdateCreativeFormatDocumentRequest =
|
|
2174
|
+
var SUpdateCreativeFormatDocumentRequest = v35__namespace.union([
|
|
2044
2175
|
SUpdateAsCreatorCreativeFormatDocument,
|
|
2045
2176
|
SUpdateAsInvitedCreativeFormatDocument
|
|
2046
2177
|
]);
|
|
2047
|
-
var SDeleteCreativeFormatDocument =
|
|
2178
|
+
var SDeleteCreativeFormatDocument = v35__namespace.object({
|
|
2048
2179
|
documentId: IsValidReferenceDocumentId
|
|
2049
2180
|
});
|
|
2050
|
-
var SQueryListMediumDocuments =
|
|
2181
|
+
var SQueryListMediumDocuments = v35__namespace.object({
|
|
2051
2182
|
documentId: IsValidReferenceDocumentId,
|
|
2052
2183
|
page: IsValidMinPage,
|
|
2053
|
-
size:
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
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)
|
|
2059
2190
|
),
|
|
2060
2191
|
MEDIUM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2061
2192
|
),
|
|
2062
2193
|
MEDIUM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2063
2194
|
),
|
|
2064
|
-
label:
|
|
2065
|
-
value:
|
|
2066
|
-
is_active:
|
|
2067
|
-
group:
|
|
2068
|
-
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)
|
|
2069
2200
|
});
|
|
2070
|
-
var SCreateMediumDocument =
|
|
2201
|
+
var SCreateMediumDocument = v35__namespace.object({
|
|
2071
2202
|
group: IsValidReferenceDocumentId,
|
|
2072
2203
|
label: IsValidLabel,
|
|
2073
2204
|
value: IsValidValue,
|
|
2074
2205
|
description: IsValidDescription,
|
|
2075
2206
|
is_active: IsValidIsActive
|
|
2076
2207
|
});
|
|
2077
|
-
var SCreateMultipleMediumDocuments =
|
|
2078
|
-
mediums:
|
|
2079
|
-
|
|
2080
|
-
|
|
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")
|
|
2081
2212
|
)
|
|
2082
2213
|
});
|
|
2083
|
-
var SReadMediumDocumentById =
|
|
2214
|
+
var SReadMediumDocumentById = v35__namespace.object({
|
|
2084
2215
|
id: IsValidReferenceId
|
|
2085
2216
|
});
|
|
2086
|
-
var SReadMediumDocumentByDocumentId =
|
|
2217
|
+
var SReadMediumDocumentByDocumentId = v35__namespace.object({
|
|
2087
2218
|
documentId: IsValidReferenceDocumentId
|
|
2088
2219
|
});
|
|
2089
|
-
var SUpdateAsCreatorMediumDocument =
|
|
2220
|
+
var SUpdateAsCreatorMediumDocument = v35__namespace.object({
|
|
2090
2221
|
label: IsValidOrUndefinedLabel,
|
|
2091
2222
|
value: IsValidOrUndefinedValue,
|
|
2092
2223
|
description: IsValidOrUndefinedDescription,
|
|
2093
2224
|
is_active: IsValidOrUndefinedIsActive
|
|
2094
2225
|
});
|
|
2095
|
-
var SUpdateAsCreatorMediumDocumentRequest =
|
|
2226
|
+
var SUpdateAsCreatorMediumDocumentRequest = v35__namespace.object({
|
|
2096
2227
|
documentId: IsValidReferenceDocumentId,
|
|
2097
2228
|
data: SUpdateAsCreatorMediumDocument
|
|
2098
2229
|
});
|
|
2099
|
-
var SUpdateAsInvitedMediumDocument =
|
|
2230
|
+
var SUpdateAsInvitedMediumDocument = v35__namespace.object({
|
|
2100
2231
|
label: IsValidOrUndefinedLabel,
|
|
2101
2232
|
description: IsValidDescription,
|
|
2102
2233
|
is_active: IsValidOrUndefinedIsActive
|
|
2103
2234
|
});
|
|
2104
|
-
var SUpdateAsInvitedMediumDocumentRequest =
|
|
2235
|
+
var SUpdateAsInvitedMediumDocumentRequest = v35__namespace.object({
|
|
2105
2236
|
documentId: IsValidReferenceDocumentId,
|
|
2106
2237
|
data: SUpdateAsInvitedMediumDocument
|
|
2107
2238
|
});
|
|
2108
|
-
var SUpdateMediumDocumentRequest =
|
|
2239
|
+
var SUpdateMediumDocumentRequest = v35__namespace.union([
|
|
2109
2240
|
SUpdateAsCreatorMediumDocument,
|
|
2110
2241
|
SUpdateAsInvitedMediumDocument
|
|
2111
2242
|
]);
|
|
2112
|
-
var SDeleteMediumDocument =
|
|
2243
|
+
var SDeleteMediumDocument = v35__namespace.object({
|
|
2113
2244
|
documentId: IsValidReferenceDocumentId
|
|
2114
2245
|
});
|
|
2115
|
-
var SQueryListSourceDocuments =
|
|
2246
|
+
var SQueryListSourceDocuments = v35__namespace.object({
|
|
2116
2247
|
documentId: IsValidReferenceDocumentId,
|
|
2117
2248
|
page: IsValidMinPage,
|
|
2118
|
-
size:
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
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)
|
|
2124
2255
|
),
|
|
2125
2256
|
SOURCE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2126
2257
|
),
|
|
2127
2258
|
SOURCE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2128
2259
|
),
|
|
2129
|
-
label:
|
|
2130
|
-
value:
|
|
2131
|
-
is_active:
|
|
2132
|
-
group:
|
|
2133
|
-
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)
|
|
2134
2265
|
});
|
|
2135
|
-
var SCreateSourceDocument =
|
|
2266
|
+
var SCreateSourceDocument = v35__namespace.object({
|
|
2136
2267
|
group: IsValidReferenceDocumentId,
|
|
2137
2268
|
label: IsValidLabel,
|
|
2138
2269
|
value: IsValidValue,
|
|
2139
2270
|
description: IsValidDescription,
|
|
2140
2271
|
is_active: IsValidIsActive
|
|
2141
2272
|
});
|
|
2142
|
-
var SCreateMultipleSourceDocuments =
|
|
2143
|
-
sources:
|
|
2144
|
-
|
|
2145
|
-
|
|
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")
|
|
2146
2277
|
)
|
|
2147
2278
|
});
|
|
2148
|
-
var SReadSourceDocumentById =
|
|
2279
|
+
var SReadSourceDocumentById = v35__namespace.object({
|
|
2149
2280
|
id: IsValidReferenceId
|
|
2150
2281
|
});
|
|
2151
|
-
var SReadSourceDocumentByDocumentId =
|
|
2282
|
+
var SReadSourceDocumentByDocumentId = v35__namespace.object({
|
|
2152
2283
|
documentId: IsValidReferenceDocumentId
|
|
2153
2284
|
});
|
|
2154
|
-
var SUpdateAsCreatorSourceDocument =
|
|
2285
|
+
var SUpdateAsCreatorSourceDocument = v35__namespace.object({
|
|
2155
2286
|
label: IsValidOrUndefinedLabel,
|
|
2156
2287
|
value: IsValidOrUndefinedValue,
|
|
2157
2288
|
description: IsValidOrUndefinedDescription,
|
|
2158
2289
|
is_active: IsValidOrUndefinedIsActive
|
|
2159
2290
|
});
|
|
2160
|
-
var SUpdateAsCreatorSourceDocumentRequest =
|
|
2291
|
+
var SUpdateAsCreatorSourceDocumentRequest = v35__namespace.object({
|
|
2161
2292
|
documentId: IsValidReferenceDocumentId,
|
|
2162
2293
|
data: SUpdateAsCreatorSourceDocument
|
|
2163
2294
|
});
|
|
2164
|
-
var SUpdateAsInvitedSourceDocument =
|
|
2295
|
+
var SUpdateAsInvitedSourceDocument = v35__namespace.object({
|
|
2165
2296
|
label: IsValidOrUndefinedLabel,
|
|
2166
2297
|
description: IsValidDescription,
|
|
2167
2298
|
is_active: IsValidOrUndefinedIsActive
|
|
2168
2299
|
});
|
|
2169
|
-
var SUpdateAsInvitedSourceDocumentRequest =
|
|
2300
|
+
var SUpdateAsInvitedSourceDocumentRequest = v35__namespace.object({
|
|
2170
2301
|
documentId: IsValidReferenceDocumentId,
|
|
2171
2302
|
data: SUpdateAsInvitedSourceDocument
|
|
2172
2303
|
});
|
|
2173
|
-
var SUpdateSourceDocumentRequest =
|
|
2304
|
+
var SUpdateSourceDocumentRequest = v35__namespace.union([
|
|
2174
2305
|
SUpdateAsCreatorSourceDocument,
|
|
2175
2306
|
SUpdateAsInvitedSourceDocument
|
|
2176
2307
|
]);
|
|
2177
|
-
var SDeleteSourceDocument =
|
|
2308
|
+
var SDeleteSourceDocument = v35__namespace.object({
|
|
2178
2309
|
documentId: IsValidReferenceDocumentId
|
|
2179
2310
|
});
|
|
2180
|
-
var SQueryListTermDocuments =
|
|
2311
|
+
var SQueryListTermDocuments = v35__namespace.object({
|
|
2181
2312
|
documentId: IsValidReferenceDocumentId,
|
|
2182
2313
|
page: IsValidMinPage,
|
|
2183
|
-
size:
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
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)
|
|
2189
2320
|
),
|
|
2190
2321
|
TERM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2191
2322
|
),
|
|
2192
2323
|
TERM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2193
2324
|
),
|
|
2194
|
-
label:
|
|
2195
|
-
value:
|
|
2196
|
-
is_active:
|
|
2197
|
-
group:
|
|
2198
|
-
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)
|
|
2199
2330
|
});
|
|
2200
|
-
var SCreateTermDocument =
|
|
2331
|
+
var SCreateTermDocument = v35__namespace.object({
|
|
2201
2332
|
group: IsValidReferenceDocumentId,
|
|
2202
2333
|
label: IsValidLabel,
|
|
2203
2334
|
value: IsValidValue,
|
|
2204
2335
|
description: IsValidDescription,
|
|
2205
2336
|
is_active: IsValidIsActive
|
|
2206
2337
|
});
|
|
2207
|
-
var SCreateMultipleTermDocuments =
|
|
2208
|
-
terms:
|
|
2209
|
-
|
|
2210
|
-
|
|
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")
|
|
2211
2342
|
)
|
|
2212
2343
|
});
|
|
2213
|
-
var SReadTermDocumentById =
|
|
2344
|
+
var SReadTermDocumentById = v35__namespace.object({
|
|
2214
2345
|
id: IsValidReferenceId
|
|
2215
2346
|
});
|
|
2216
|
-
var SReadTermDocumentByDocumentId =
|
|
2347
|
+
var SReadTermDocumentByDocumentId = v35__namespace.object({
|
|
2217
2348
|
documentId: IsValidReferenceDocumentId
|
|
2218
2349
|
});
|
|
2219
|
-
var SUpdateAsCreatorTermDocument =
|
|
2350
|
+
var SUpdateAsCreatorTermDocument = v35__namespace.object({
|
|
2220
2351
|
label: IsValidOrUndefinedLabel,
|
|
2221
2352
|
value: IsValidOrUndefinedValue,
|
|
2222
2353
|
description: IsValidOrUndefinedDescription,
|
|
2223
2354
|
is_active: IsValidOrUndefinedIsActive
|
|
2224
2355
|
});
|
|
2225
|
-
var SUpdateAsCreatorTermDocumentRequest =
|
|
2356
|
+
var SUpdateAsCreatorTermDocumentRequest = v35__namespace.object({
|
|
2226
2357
|
documentId: IsValidReferenceDocumentId,
|
|
2227
2358
|
data: SUpdateAsCreatorTermDocument
|
|
2228
2359
|
});
|
|
2229
|
-
var SUpdateAsInvitedTermDocument =
|
|
2360
|
+
var SUpdateAsInvitedTermDocument = v35__namespace.object({
|
|
2230
2361
|
label: IsValidOrUndefinedLabel,
|
|
2231
2362
|
description: IsValidDescription,
|
|
2232
2363
|
is_active: IsValidOrUndefinedIsActive
|
|
2233
2364
|
});
|
|
2234
|
-
var SUpdateAsInvitedTermDocumentRequest =
|
|
2365
|
+
var SUpdateAsInvitedTermDocumentRequest = v35__namespace.object({
|
|
2235
2366
|
documentId: IsValidReferenceDocumentId,
|
|
2236
2367
|
data: SUpdateAsInvitedTermDocument
|
|
2237
2368
|
});
|
|
2238
|
-
var SUpdateTermDocumentRequest =
|
|
2369
|
+
var SUpdateTermDocumentRequest = v35__namespace.union([
|
|
2239
2370
|
SUpdateAsCreatorTermDocument,
|
|
2240
2371
|
SUpdateAsInvitedTermDocument
|
|
2241
2372
|
]);
|
|
2242
|
-
var SDeleteTermDocument =
|
|
2373
|
+
var SDeleteTermDocument = v35__namespace.object({
|
|
2243
2374
|
documentId: IsValidReferenceDocumentId
|
|
2244
2375
|
});
|
|
2245
|
-
var SQueryListWebsiteDocuments =
|
|
2376
|
+
var SQueryListWebsiteDocuments = v35__namespace.object({
|
|
2246
2377
|
documentId: IsValidReferenceDocumentId,
|
|
2247
2378
|
page: IsValidMinPage,
|
|
2248
|
-
size:
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
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)
|
|
2254
2385
|
),
|
|
2255
2386
|
WEBSITE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2256
2387
|
),
|
|
2257
2388
|
WEBSITE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2258
2389
|
),
|
|
2259
|
-
domain:
|
|
2260
|
-
is_active:
|
|
2261
|
-
is_secure:
|
|
2262
|
-
group:
|
|
2263
|
-
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)
|
|
2264
2395
|
});
|
|
2265
|
-
var SCreateWebsiteDocument =
|
|
2396
|
+
var SCreateWebsiteDocument = v35__namespace.object({
|
|
2266
2397
|
group: IsValidReferenceDocumentId,
|
|
2267
2398
|
domain: IsValidUrlDomain,
|
|
2268
2399
|
description: IsValidOrUndefinedDescription,
|
|
2269
2400
|
is_secure: IsValidIsSecure,
|
|
2270
2401
|
is_active: IsValidIsActive
|
|
2271
2402
|
});
|
|
2272
|
-
var SCreateMultipleWebsiteDocuments =
|
|
2273
|
-
websites:
|
|
2274
|
-
|
|
2275
|
-
|
|
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")
|
|
2276
2407
|
)
|
|
2277
2408
|
});
|
|
2278
|
-
var SReadWebsiteDocumentById =
|
|
2409
|
+
var SReadWebsiteDocumentById = v35__namespace.object({
|
|
2279
2410
|
id: IsValidReferenceId
|
|
2280
2411
|
});
|
|
2281
|
-
var SReadWebsiteDocumentByDocumentId =
|
|
2412
|
+
var SReadWebsiteDocumentByDocumentId = v35__namespace.object({
|
|
2282
2413
|
documentId: IsValidReferenceDocumentId
|
|
2283
2414
|
});
|
|
2284
|
-
var SUpdateAsCreatorWebsiteDocument =
|
|
2415
|
+
var SUpdateAsCreatorWebsiteDocument = v35__namespace.object({
|
|
2285
2416
|
domain: IsValidOrUndefinedUrlDomain,
|
|
2286
2417
|
description: IsValidOrUndefinedDescription,
|
|
2287
2418
|
is_secure: IsValidIsSecure,
|
|
2288
2419
|
is_active: IsValidIsActive
|
|
2289
2420
|
});
|
|
2290
|
-
var SUpdateAsCreatorWebsiteDocumentRequest =
|
|
2421
|
+
var SUpdateAsCreatorWebsiteDocumentRequest = v35__namespace.object({
|
|
2291
2422
|
documentId: IsValidReferenceDocumentId,
|
|
2292
2423
|
data: SUpdateAsCreatorWebsiteDocument
|
|
2293
2424
|
});
|
|
2294
|
-
var SUpdateAsInvitedWebsiteDocument =
|
|
2425
|
+
var SUpdateAsInvitedWebsiteDocument = v35__namespace.object({
|
|
2295
2426
|
description: IsValidOrUndefinedDescription
|
|
2296
2427
|
});
|
|
2297
|
-
var SUpdateAsInvitedWebsiteDocumentRequest =
|
|
2428
|
+
var SUpdateAsInvitedWebsiteDocumentRequest = v35__namespace.object({
|
|
2298
2429
|
documentId: IsValidReferenceDocumentId,
|
|
2299
2430
|
data: SUpdateAsInvitedWebsiteDocument
|
|
2300
2431
|
});
|
|
2301
|
-
var SUpdateWebsiteDocumentRequest =
|
|
2432
|
+
var SUpdateWebsiteDocumentRequest = v35__namespace.union([
|
|
2302
2433
|
SUpdateAsCreatorWebsiteDocument,
|
|
2303
2434
|
SUpdateAsInvitedWebsiteDocument
|
|
2304
2435
|
]);
|
|
2305
|
-
var SDeleteWebsiteDocument =
|
|
2436
|
+
var SDeleteWebsiteDocument = v35__namespace.object({
|
|
2306
2437
|
documentId: IsValidReferenceDocumentId
|
|
2307
2438
|
});
|
|
2308
|
-
var SGroupUserDocumentWithRelations = v36__namespace.object({
|
|
2309
|
-
...SBaseDocument.entries,
|
|
2310
|
-
...SBaseGroupUserDocument.entries,
|
|
2311
|
-
...SGroupUserRelationsDocument.entries
|
|
2312
|
-
});
|
|
2313
|
-
var SGroupUserDocumentReqRelations = v36__namespace.object({
|
|
2314
|
-
...SBaseDocument.entries,
|
|
2315
|
-
...SBaseGroupUserDocument.entries,
|
|
2316
|
-
...SGroupUserRelationsReqDocument.entries
|
|
2317
|
-
});
|
|
2318
|
-
var SGroupDocumentWithRelations = v36__namespace.object({
|
|
2319
|
-
...SBaseDocument.entries,
|
|
2320
|
-
...SBaseGroupDocument.entries,
|
|
2321
|
-
...SGroupRelationsDocument.entries
|
|
2322
|
-
});
|
|
2323
|
-
var SRoleDocumentWithRelations = v36__namespace.object({
|
|
2324
|
-
...SBaseDocument.entries,
|
|
2325
|
-
...SBaseRoleDocument.entries,
|
|
2326
|
-
...SRoleRelationsDocument.entries
|
|
2327
|
-
});
|
|
2328
|
-
var STrackingLinkDocumentWithRelations = v36__namespace.object({
|
|
2329
|
-
...SBaseDocument.entries,
|
|
2330
|
-
...SBaseTrackingLinkDocument.entries,
|
|
2331
|
-
...STrackingLinkRelationsDocument.entries
|
|
2332
|
-
});
|
|
2333
|
-
var SUserAccountDocumentWithRelations = v36__namespace.object({
|
|
2334
|
-
...SBaseDocument.entries,
|
|
2335
|
-
...SBaseUserAccountDocument.entries,
|
|
2336
|
-
...SUserAccountRelationsDocument.entries
|
|
2337
|
-
});
|
|
2338
|
-
var SUserAccountDocumentReqRelations = v36__namespace.object({
|
|
2339
|
-
...SBaseDocument.entries,
|
|
2340
|
-
...SBaseUserAccountDocument.entries,
|
|
2341
|
-
...SUserAccountRelationsReqDocument.entries
|
|
2342
|
-
});
|
|
2343
|
-
var SUserLimitationsDocumentWithRelations = v36__namespace.object({
|
|
2344
|
-
...SBaseDocument.entries,
|
|
2345
|
-
...SBaseUserLimitationsDocument.entries,
|
|
2346
|
-
...SUserLimitationsRelationsDocument.entries
|
|
2347
|
-
});
|
|
2348
|
-
var SUserDocumentWithRelations = v36__namespace.object({
|
|
2349
|
-
...SBaseDocument.entries,
|
|
2350
|
-
...SBaseUserDocument.entries,
|
|
2351
|
-
...SUserRelationsDocument.entries
|
|
2352
|
-
});
|
|
2353
|
-
var SUserDocumentWithAccountRelations = v36__namespace.object({
|
|
2354
|
-
...SBaseDocument.entries,
|
|
2355
|
-
...SBaseUserDocument.entries,
|
|
2356
|
-
...SUserRelationReqAccount.entries
|
|
2357
|
-
});
|
|
2358
|
-
var SUserDocumentWithAccountAndRoleRelations = v36__namespace.object({
|
|
2359
|
-
...SBaseDocument.entries,
|
|
2360
|
-
...SBaseUserDocument.entries,
|
|
2361
|
-
...SUserRelationReqRole.entries,
|
|
2362
|
-
...SUserRelationReqAccount.entries
|
|
2363
|
-
});
|
|
2364
|
-
var SUserAuthorizationSuccessResponse = v36__namespace.object({
|
|
2365
|
-
jwt: v36__namespace.string(),
|
|
2366
|
-
user: SUserDocumentWithAccountAndRoleRelations
|
|
2367
|
-
});
|
|
2368
|
-
var SCampaignIdDocumentWithRelations = v36__namespace.object({
|
|
2369
|
-
...SBaseDocument.entries,
|
|
2370
|
-
...SBaseCampaignIdDocument.entries,
|
|
2371
|
-
...SCampaignIdRelationsDocument.entries
|
|
2372
|
-
});
|
|
2373
|
-
var SCampaignPhaseDocumentWithRelations = v36__namespace.object({
|
|
2374
|
-
...SBaseDocument.entries,
|
|
2375
|
-
...SBaseCampaignPhaseDocument.entries,
|
|
2376
|
-
...SCampaignPhaseRelationsDocument.entries
|
|
2377
|
-
});
|
|
2378
|
-
var SCampaignProductDocumentWithRelations = v36__namespace.object({
|
|
2379
|
-
...SBaseDocument.entries,
|
|
2380
|
-
...SBaseCampaignProductDocument.entries,
|
|
2381
|
-
...SCampaignProductRelationsDocument.entries
|
|
2382
|
-
});
|
|
2383
|
-
var SCampaignTargetDocumentWithRelations = v36__namespace.object({
|
|
2384
|
-
...SBaseDocument.entries,
|
|
2385
|
-
...SBaseCampaignTargetDocument.entries,
|
|
2386
|
-
...SCampaignTargetRelationsDocument.entries
|
|
2387
|
-
});
|
|
2388
|
-
var SCampaignKeyDocumentWithRelations = v36__namespace.object({
|
|
2389
|
-
...SBaseDocument.entries,
|
|
2390
|
-
...SBaseCampaignKeyDocument.entries,
|
|
2391
|
-
...SCampaignKeyRelationsDocument.entries
|
|
2392
|
-
});
|
|
2393
|
-
var SSourceDocumentWithRelations = v36__namespace.object({
|
|
2394
|
-
...SBaseDocument.entries,
|
|
2395
|
-
...SBaseSourceDocument.entries,
|
|
2396
|
-
...SSourceRelationsDocument.entries
|
|
2397
|
-
});
|
|
2398
|
-
var SMediumDocumentWithRelations = v36__namespace.object({
|
|
2399
|
-
...SBaseDocument.entries,
|
|
2400
|
-
...SBaseMediumDocument.entries,
|
|
2401
|
-
...SMediumRelationsDocument.entries
|
|
2402
|
-
});
|
|
2403
|
-
var SContentDocumentWithRelations = v36__namespace.object({
|
|
2404
|
-
...SBaseDocument.entries,
|
|
2405
|
-
...SBaseContentDocument.entries,
|
|
2406
|
-
...SContentRelationsDocument.entries
|
|
2407
|
-
});
|
|
2408
|
-
var SCreativeFormatDocumentWithRelations = v36__namespace.object({
|
|
2409
|
-
...SBaseDocument.entries,
|
|
2410
|
-
...SBaseCreativeFormatDocument.entries,
|
|
2411
|
-
...SCreativeFormatRelationsDocument.entries
|
|
2412
|
-
});
|
|
2413
|
-
var SCreativeFormatVariantDocumentWithRelations = v36__namespace.object({
|
|
2414
|
-
...SBaseDocument.entries,
|
|
2415
|
-
...SBaseCreativeFormatVariantDocument.entries,
|
|
2416
|
-
...SCreativeFormatVariantRelationsDocument.entries
|
|
2417
|
-
});
|
|
2418
|
-
var STermDocumentWithRelations = v36__namespace.object({
|
|
2419
|
-
...SBaseDocument.entries,
|
|
2420
|
-
...SBaseTermDocument.entries,
|
|
2421
|
-
...STermRelationsDocument.entries
|
|
2422
|
-
});
|
|
2423
|
-
var SWebsiteDocumentWithRelations = v36__namespace.object({
|
|
2424
|
-
...SBaseDocument.entries,
|
|
2425
|
-
...SBaseWebsiteDocument.entries,
|
|
2426
|
-
...SWebsiteRelationsDocument.entries
|
|
2427
|
-
});
|
|
2428
2439
|
|
|
2429
2440
|
// src/templates/utm-campaign-phase.defaults.ts
|
|
2430
2441
|
var DEFAULT_CAMPAIGN_PHASES = {
|
|
@@ -3047,10 +3058,10 @@ function datePlusDays(today, days = 30) {
|
|
|
3047
3058
|
function validateAndClean(schema, input) {
|
|
3048
3059
|
var _a, _b;
|
|
3049
3060
|
try {
|
|
3050
|
-
const parsed =
|
|
3061
|
+
const parsed = v35__namespace.parse(schema, input);
|
|
3051
3062
|
return { data: parsed, error: null, errors: null };
|
|
3052
3063
|
} catch (err) {
|
|
3053
|
-
if (err instanceof
|
|
3064
|
+
if (err instanceof v35__namespace.ValiError) {
|
|
3054
3065
|
const errors = {};
|
|
3055
3066
|
for (const issue of err.issues) {
|
|
3056
3067
|
const field = ((_b = (_a = issue.path) == null ? void 0 : _a[0]) == null ? void 0 : _b.key) || "unknown";
|
|
@@ -3358,6 +3369,7 @@ exports.SGroupRelationWebsites = SGroupRelationWebsites;
|
|
|
3358
3369
|
exports.SGroupRelationsDocument = SGroupRelationsDocument;
|
|
3359
3370
|
exports.SGroupUserDocument = SGroupUserDocument;
|
|
3360
3371
|
exports.SGroupUserDocumentReqRelations = SGroupUserDocumentReqRelations;
|
|
3372
|
+
exports.SGroupUserDocumentStatus = SGroupUserDocumentStatus;
|
|
3361
3373
|
exports.SGroupUserDocumentWithRelations = SGroupUserDocumentWithRelations;
|
|
3362
3374
|
exports.SGroupUserRelationsDocument = SGroupUserRelationsDocument;
|
|
3363
3375
|
exports.SGroupUserRelationsReqDocument = SGroupUserRelationsReqDocument;
|