@joeygrable94/utm-src-pub-validators 0.0.64 → 0.0.66
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 +1113 -1096
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +186 -1
- package/dist/index.d.ts +186 -1
- package/dist/index.js +1111 -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)
|
|
608
|
+
publishedAt: v35__namespace.optional(v35__namespace.string()),
|
|
609
|
+
createdAt: v35__namespace.string(),
|
|
610
|
+
updatedAt: v35__namespace.string()
|
|
621
611
|
});
|
|
622
|
-
var
|
|
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
|
-
),
|
|
612
|
+
var SBaseGroupUserDocument = v35__namespace.object({
|
|
633
613
|
scopes: IsValidGroupUserScopes
|
|
634
614
|
});
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
});
|
|
641
|
-
var SUpdateGroupUserDocument = v36__namespace.object({
|
|
642
|
-
scopes: IsValidGroupUserScopes
|
|
643
|
-
});
|
|
644
|
-
var SUpdateGroupUserDocumentRequest = v36__namespace.object({
|
|
645
|
-
documentId: IsValidReferenceDocumentId,
|
|
646
|
-
data: SUpdateGroupUserDocument
|
|
647
|
-
});
|
|
648
|
-
var SDeleteGroupUserDocument = v36__namespace.object({
|
|
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,293 @@ 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 SVerifyGroupUserDocument = v35__namespace.object({
|
|
1230
|
+
group: IsValidReferenceDocumentId,
|
|
1231
|
+
user: IsValidReferenceDocumentId
|
|
1232
|
+
});
|
|
1233
|
+
var SGroupUserDocumentStatus = v35__namespace.object({
|
|
1234
|
+
verified: v35__namespace.boolean(),
|
|
1235
|
+
groupUser: v35__namespace.nullable(SGroupDocumentWithRelations),
|
|
1236
|
+
scopes: IsValidGroupUserScopes
|
|
1237
|
+
});
|
|
1238
|
+
var SQueryListGroupDocuments = v35__namespace.object({
|
|
1239
|
+
page: IsValidMinPage,
|
|
1240
|
+
size: v35__namespace.fallback(
|
|
1241
|
+
v35__namespace.optional(
|
|
1242
|
+
v35__namespace.pipe(
|
|
1243
|
+
v35__namespace.number(),
|
|
1244
|
+
v35__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1245
|
+
v35__namespace.maxValue(GROUP_PAGINATION_MAX_SIZE_LIMIT)
|
|
1246
|
+
),
|
|
1247
|
+
GROUP_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1248
|
+
),
|
|
1249
|
+
GROUP_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1250
|
+
),
|
|
1251
|
+
label: v35__namespace.optional(IsValidLabel),
|
|
1252
|
+
value: v35__namespace.optional(IsValidValue),
|
|
1253
|
+
is_active: v35__namespace.optional(IsValidIsActive),
|
|
1254
|
+
apply_value_to: v35__namespace.optional(IsValidApplyValueTo),
|
|
1255
|
+
apply_value_as: v35__namespace.optional(IsValidApplyValueAs),
|
|
1256
|
+
creator: v35__namespace.optional(IsValidReferenceDocumentId)
|
|
1257
|
+
});
|
|
1258
|
+
var SCreateGroupDocument = v35__namespace.object({
|
|
1259
|
+
label: IsValidLabel,
|
|
1260
|
+
value: IsValidValue,
|
|
1261
|
+
description: IsValidDescription,
|
|
1262
|
+
is_active: IsValidIsActive,
|
|
1263
|
+
apply_value_to: IsValidApplyValueTo,
|
|
1264
|
+
apply_value_as: IsValidApplyValueAs
|
|
1265
|
+
});
|
|
1266
|
+
var SReadGroupDocumentById = v35__namespace.object({
|
|
1267
|
+
id: IsValidReferenceId
|
|
1268
|
+
});
|
|
1269
|
+
var SReadGroupDocumentByDocumentId = v35__namespace.object({
|
|
1270
|
+
documentId: IsValidReferenceDocumentId
|
|
1271
|
+
});
|
|
1272
|
+
var SUpdateAsCreatorGroupDocument = v35__namespace.object({
|
|
1273
|
+
label: IsValidOrUndefinedLabel,
|
|
1274
|
+
value: IsValidOrUndefinedValue,
|
|
1275
|
+
description: IsValidOrUndefinedDescription,
|
|
1276
|
+
is_active: IsValidOrUndefinedIsActive,
|
|
1277
|
+
apply_value_to: IsValidOrUndefinedApplyValueTo,
|
|
1278
|
+
apply_value_as: IsValidOrUndefinedApplyValueAs
|
|
1279
|
+
});
|
|
1280
|
+
var SUpdateAsCreatorGroupDocumentRequest = v35__namespace.object({
|
|
1281
|
+
documentId: IsValidReferenceDocumentId,
|
|
1282
|
+
data: SUpdateAsCreatorGroupDocument
|
|
1283
|
+
});
|
|
1284
|
+
var SUpdateAsInvitedGroupDocument = v35__namespace.object({
|
|
1285
|
+
label: IsValidOrUndefinedLabel,
|
|
1286
|
+
description: IsValidOrUndefinedDescription
|
|
1287
|
+
});
|
|
1288
|
+
var SUpdateAsInvitedGroupDocumentRequest = v35__namespace.object({
|
|
1289
|
+
documentId: IsValidReferenceDocumentId,
|
|
1290
|
+
data: SUpdateAsInvitedGroupDocument
|
|
1291
|
+
});
|
|
1292
|
+
var SUpdateGroupDocumentRequest = v35__namespace.union([
|
|
1293
|
+
SUpdateAsCreatorGroupDocument,
|
|
1294
|
+
SUpdateAsInvitedGroupDocument
|
|
1295
|
+
]);
|
|
1296
|
+
var SDeleteGroupDocument = v35__namespace.object({
|
|
1297
|
+
documentId: IsValidReferenceDocumentId
|
|
1298
|
+
});
|
|
1299
|
+
var SReadUserDocumentToken = v35__namespace.object({
|
|
1300
|
+
token: v35__namespace.string()
|
|
1301
|
+
});
|
|
1302
|
+
var SLoginUserDocument = v35__namespace.object({
|
|
1303
|
+
identifier: IsValidEmail,
|
|
1304
|
+
password: IsValidPassword
|
|
1305
|
+
});
|
|
1306
|
+
var SRegisterUserDocument = v35__namespace.object({
|
|
1307
|
+
username: IsValidUsername,
|
|
1308
|
+
email: IsValidEmail,
|
|
1309
|
+
password: IsValidPassword
|
|
1310
|
+
});
|
|
1311
|
+
var SForgotPasswordUserDocument = v35__namespace.object({
|
|
1312
|
+
email: IsValidEmail
|
|
1313
|
+
});
|
|
1314
|
+
var SResetPasswordUserDocument = v35__namespace.object({
|
|
1315
|
+
password: IsValidPassword,
|
|
1316
|
+
passwordConfirmation: IsValidPassword,
|
|
1317
|
+
code: v35__namespace.string()
|
|
1318
|
+
});
|
|
1319
|
+
var SChangePassword = v35__namespace.pipe(
|
|
1320
|
+
v35__namespace.object({
|
|
1321
|
+
currentPassword: IsValidPassword,
|
|
1322
|
+
password: IsValidPassword,
|
|
1323
|
+
passwordConfirmation: IsValidPassword
|
|
1324
|
+
}),
|
|
1325
|
+
v35__namespace.forward(
|
|
1326
|
+
v35__namespace.partialCheck(
|
|
1327
|
+
[["password"], ["passwordConfirmation"]],
|
|
1328
|
+
(input) => input.password === input.passwordConfirmation,
|
|
1329
|
+
"Your new passwords do not match."
|
|
1330
|
+
),
|
|
1331
|
+
["passwordConfirmation"]
|
|
1332
|
+
)
|
|
1333
|
+
);
|
|
1334
|
+
var SRequestConfirmEmail = v35__namespace.object({
|
|
1335
|
+
email: IsValidEmail
|
|
1201
1336
|
});
|
|
1202
1337
|
|
|
1203
1338
|
// src/actions/link-builder.crud.ts
|
|
@@ -1208,105 +1343,105 @@ var SUtmLinkBuilderPartCampaignDateOptions = [
|
|
|
1208
1343
|
"on a specific date",
|
|
1209
1344
|
"no date"
|
|
1210
1345
|
];
|
|
1211
|
-
var SUtmLinkBuilderTableForm =
|
|
1346
|
+
var SUtmLinkBuilderTableForm = v35__namespace.object({
|
|
1212
1347
|
creator: IsValidReferenceDocumentId,
|
|
1213
1348
|
client: IsValidReferenceDocumentId,
|
|
1214
|
-
url_destinations:
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1349
|
+
url_destinations: v35__namespace.pipe(
|
|
1350
|
+
v35__namespace.array(IsValidUrlDestination),
|
|
1351
|
+
v35__namespace.minLength(1, "Please provide at least one destination URL."),
|
|
1352
|
+
v35__namespace.maxLength(100, "You can provide up to 100 destination URLs.")
|
|
1218
1353
|
),
|
|
1219
|
-
sources:
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1354
|
+
sources: v35__namespace.pipe(
|
|
1355
|
+
v35__namespace.array(SSourceDocument),
|
|
1356
|
+
v35__namespace.minLength(1, "Please select at least one source."),
|
|
1357
|
+
v35__namespace.maxLength(10, "You can select up to 10 sources.")
|
|
1223
1358
|
),
|
|
1224
|
-
mediums:
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1359
|
+
mediums: v35__namespace.pipe(
|
|
1360
|
+
v35__namespace.array(SMediumDocument),
|
|
1361
|
+
v35__namespace.minLength(1, "Please select at least one medium."),
|
|
1362
|
+
v35__namespace.maxLength(10, "You can select up to 10 mediums.")
|
|
1228
1363
|
),
|
|
1229
|
-
campaign:
|
|
1364
|
+
campaign: v35__namespace.object({
|
|
1230
1365
|
campaign_phase: SCampaignPhaseDocument,
|
|
1231
|
-
campaign_product:
|
|
1366
|
+
campaign_product: v35__namespace.optional(SCampaignProductDocument),
|
|
1232
1367
|
// campaign_targeting: v.optional(v.array()),
|
|
1233
|
-
campaign_key:
|
|
1234
|
-
campaign_date:
|
|
1235
|
-
format:
|
|
1368
|
+
campaign_key: v35__namespace.optional(SCampaignKeyDocument),
|
|
1369
|
+
campaign_date: v35__namespace.object({
|
|
1370
|
+
format: v35__namespace.picklist(
|
|
1236
1371
|
SUtmLinkBuilderPartCampaignDateOptions,
|
|
1237
1372
|
"Please select a valid campaign date format."
|
|
1238
1373
|
),
|
|
1239
|
-
value:
|
|
1240
|
-
year:
|
|
1241
|
-
quarter:
|
|
1242
|
-
month:
|
|
1243
|
-
day:
|
|
1374
|
+
value: v35__namespace.object({
|
|
1375
|
+
year: v35__namespace.number("Please provide a valid year."),
|
|
1376
|
+
quarter: v35__namespace.optional(v35__namespace.number()),
|
|
1377
|
+
month: v35__namespace.optional(v35__namespace.number()),
|
|
1378
|
+
day: v35__namespace.optional(v35__namespace.number())
|
|
1244
1379
|
})
|
|
1245
1380
|
})
|
|
1246
1381
|
}),
|
|
1247
|
-
content:
|
|
1248
|
-
creative_formats:
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
creative_format:
|
|
1253
|
-
creative_format_variants:
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1382
|
+
content: v35__namespace.optional(SContentDocument),
|
|
1383
|
+
creative_formats: v35__namespace.optional(
|
|
1384
|
+
v35__namespace.pipe(
|
|
1385
|
+
v35__namespace.array(
|
|
1386
|
+
v35__namespace.object({
|
|
1387
|
+
creative_format: v35__namespace.optional(SCreativeFormatDocument),
|
|
1388
|
+
creative_format_variants: v35__namespace.optional(
|
|
1389
|
+
v35__namespace.pipe(
|
|
1390
|
+
v35__namespace.array(SCreativeFormatVariantDocument),
|
|
1391
|
+
v35__namespace.minLength(1, "Please select at least one creative format variations."),
|
|
1392
|
+
v35__namespace.maxLength(10, "You can select up to 10 creative format variations.")
|
|
1258
1393
|
)
|
|
1259
1394
|
)
|
|
1260
1395
|
})
|
|
1261
1396
|
),
|
|
1262
|
-
|
|
1263
|
-
|
|
1397
|
+
v35__namespace.minLength(1, "Please select at least one creative format."),
|
|
1398
|
+
v35__namespace.maxLength(10, "You can select up to 10 creative formats.")
|
|
1264
1399
|
)
|
|
1265
1400
|
),
|
|
1266
|
-
id:
|
|
1401
|
+
id: v35__namespace.optional(SCampaignIdDocument)
|
|
1267
1402
|
});
|
|
1268
|
-
var SStripeCheckoutLineItem =
|
|
1403
|
+
var SStripeCheckoutLineItem = v35__namespace.object({
|
|
1269
1404
|
price: IsValidPriceId,
|
|
1270
|
-
quantity:
|
|
1405
|
+
quantity: v35__namespace.pipe(v35__namespace.number(), v35__namespace.minValue(1), v35__namespace.maxValue(1))
|
|
1271
1406
|
});
|
|
1272
|
-
var SStripeCheckoutCreateSession =
|
|
1273
|
-
line_items:
|
|
1274
|
-
mode:
|
|
1407
|
+
var SStripeCheckoutCreateSession = v35__namespace.object({
|
|
1408
|
+
line_items: v35__namespace.pipe(v35__namespace.array(SStripeCheckoutLineItem), v35__namespace.minLength(1), v35__namespace.maxLength(10)),
|
|
1409
|
+
mode: v35__namespace.picklist(["payment", "subscription"]),
|
|
1275
1410
|
success_url: IsValidOrUndefinedUrlDestination,
|
|
1276
1411
|
cancel_url: IsValidOrUndefinedUrlDestination
|
|
1277
1412
|
});
|
|
1278
|
-
var SQueryListTrackingLinkDocuments =
|
|
1413
|
+
var SQueryListTrackingLinkDocuments = v35__namespace.object({
|
|
1279
1414
|
documentId: IsValidReferenceDocumentId,
|
|
1280
1415
|
page: IsValidMinPage,
|
|
1281
|
-
size:
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1416
|
+
size: v35__namespace.fallback(
|
|
1417
|
+
v35__namespace.optional(
|
|
1418
|
+
v35__namespace.pipe(
|
|
1419
|
+
v35__namespace.number(),
|
|
1420
|
+
v35__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1421
|
+
v35__namespace.maxValue(TRACKING_LINK_PAGINATION_MAX_SIZE_LIMIT)
|
|
1287
1422
|
),
|
|
1288
1423
|
TRACKING_LINK_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1289
1424
|
),
|
|
1290
1425
|
TRACKING_LINK_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1291
1426
|
),
|
|
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 =
|
|
1427
|
+
is_active: v35__namespace.fallback(v35__namespace.optional(IsValidIsActive), true),
|
|
1428
|
+
destination: v35__namespace.optional(IsValidUrlDestination),
|
|
1429
|
+
protocol: v35__namespace.optional(IsValidUrlProtocol),
|
|
1430
|
+
domain: v35__namespace.optional(IsValidUrlDomain),
|
|
1431
|
+
path: v35__namespace.optional(IsValidUrlPath),
|
|
1432
|
+
query: v35__namespace.optional(IsValidUrlQuery),
|
|
1433
|
+
fragment: v35__namespace.optional(IsValidUrlFragment),
|
|
1434
|
+
utm_source: v35__namespace.optional(IsValidUrlUtmSource),
|
|
1435
|
+
utm_medium: v35__namespace.optional(IsValidUrlUtmMedium),
|
|
1436
|
+
utm_campaign: v35__namespace.optional(IsValidUrlUtmCampaign),
|
|
1437
|
+
utm_creative_format: v35__namespace.optional(IsValidUrlUtmCreativeFormat),
|
|
1438
|
+
utm_content: v35__namespace.optional(IsValidUrlUtmContent),
|
|
1439
|
+
utm_term: v35__namespace.optional(IsValidUrlUtmTerm),
|
|
1440
|
+
utm_id: v35__namespace.optional(IsValidUrlUtmId),
|
|
1441
|
+
group: v35__namespace.optional(IsValidReferenceDocumentId),
|
|
1442
|
+
creator: v35__namespace.optional(IsValidReferenceDocumentId)
|
|
1443
|
+
});
|
|
1444
|
+
var SCreateTrackingLinkDocument = v35__namespace.object({
|
|
1310
1445
|
group: IsValidReferenceDocumentId,
|
|
1311
1446
|
is_active: IsValidIsActive,
|
|
1312
1447
|
destination: IsValidUrlDestination,
|
|
@@ -1323,19 +1458,19 @@ var SCreateTrackingLinkDocument = v36__namespace.object({
|
|
|
1323
1458
|
utm_term: IsValidUrlUtmTerm,
|
|
1324
1459
|
utm_id: IsValidUrlUtmId
|
|
1325
1460
|
});
|
|
1326
|
-
var SCreateMultipleTrackingLinkDocuments =
|
|
1327
|
-
tracking_links:
|
|
1328
|
-
|
|
1329
|
-
|
|
1461
|
+
var SCreateMultipleTrackingLinkDocuments = v35__namespace.object({
|
|
1462
|
+
tracking_links: v35__namespace.pipe(
|
|
1463
|
+
v35__namespace.array(SCreateTrackingLinkDocument),
|
|
1464
|
+
v35__namespace.minLength(1, "Please create at least one tracking link")
|
|
1330
1465
|
)
|
|
1331
1466
|
});
|
|
1332
|
-
var SReadTrackingLinkDocumentById =
|
|
1467
|
+
var SReadTrackingLinkDocumentById = v35__namespace.object({
|
|
1333
1468
|
id: IsValidReferenceId
|
|
1334
1469
|
});
|
|
1335
|
-
var SReadTrackingLinkDocumentByDocumentId =
|
|
1470
|
+
var SReadTrackingLinkDocumentByDocumentId = v35__namespace.object({
|
|
1336
1471
|
documentId: IsValidReferenceDocumentId
|
|
1337
1472
|
});
|
|
1338
|
-
var SUpdateAsCreatorTrackingLinkDocument =
|
|
1473
|
+
var SUpdateAsCreatorTrackingLinkDocument = v35__namespace.object({
|
|
1339
1474
|
is_active: IsValidOrUndefinedUrlDestination,
|
|
1340
1475
|
destination: IsValidOrUndefinedUrlDestination,
|
|
1341
1476
|
protocol: IsValidOrUndefinedUrlProtocol,
|
|
@@ -1351,11 +1486,11 @@ var SUpdateAsCreatorTrackingLinkDocument = v36__namespace.object({
|
|
|
1351
1486
|
utm_term: IsValidOrUndefinedUrlUtmTerm,
|
|
1352
1487
|
utm_id: IsValidOrUndefinedUrlUtmId
|
|
1353
1488
|
});
|
|
1354
|
-
var SUpdateAsCreatorTrackingLinkDocumentRequest =
|
|
1489
|
+
var SUpdateAsCreatorTrackingLinkDocumentRequest = v35__namespace.object({
|
|
1355
1490
|
documentId: IsValidReferenceDocumentId,
|
|
1356
1491
|
data: SUpdateAsCreatorTrackingLinkDocument
|
|
1357
1492
|
});
|
|
1358
|
-
var SUpdateAsInvitedTrackingLinkDocument =
|
|
1493
|
+
var SUpdateAsInvitedTrackingLinkDocument = v35__namespace.object({
|
|
1359
1494
|
is_active: IsValidOrUndefinedUrlDestination,
|
|
1360
1495
|
destination: IsValidOrUndefinedUrlDestination,
|
|
1361
1496
|
protocol: IsValidOrUndefinedUrlProtocol,
|
|
@@ -1371,26 +1506,26 @@ var SUpdateAsInvitedTrackingLinkDocument = v36__namespace.object({
|
|
|
1371
1506
|
utm_term: IsValidOrUndefinedUrlUtmTerm,
|
|
1372
1507
|
utm_id: IsValidOrUndefinedUrlUtmId
|
|
1373
1508
|
});
|
|
1374
|
-
var SUpdateAsInvitedTrackingLinkDocumentRequest =
|
|
1509
|
+
var SUpdateAsInvitedTrackingLinkDocumentRequest = v35__namespace.object({
|
|
1375
1510
|
documentId: IsValidReferenceDocumentId,
|
|
1376
1511
|
data: SUpdateAsInvitedTrackingLinkDocument
|
|
1377
1512
|
});
|
|
1378
|
-
var SUpdateTrackingLinkDocumentRequest =
|
|
1513
|
+
var SUpdateTrackingLinkDocumentRequest = v35__namespace.union([
|
|
1379
1514
|
SUpdateAsCreatorTrackingLinkDocument,
|
|
1380
1515
|
SUpdateAsInvitedTrackingLinkDocument
|
|
1381
1516
|
]);
|
|
1382
|
-
var SDeleteTrackingLinkDocument =
|
|
1517
|
+
var SDeleteTrackingLinkDocument = v35__namespace.object({
|
|
1383
1518
|
documentId: IsValidReferenceDocumentId
|
|
1384
1519
|
});
|
|
1385
|
-
var SQueryListUserAccountDocuments =
|
|
1520
|
+
var SQueryListUserAccountDocuments = v35__namespace.object({
|
|
1386
1521
|
documentId: IsValidReferenceDocumentId,
|
|
1387
1522
|
page: IsValidMinPage,
|
|
1388
|
-
size:
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1523
|
+
size: v35__namespace.fallback(
|
|
1524
|
+
v35__namespace.optional(
|
|
1525
|
+
v35__namespace.pipe(
|
|
1526
|
+
v35__namespace.number(),
|
|
1527
|
+
v35__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1528
|
+
v35__namespace.maxValue(USER_ACCOUNT_PAGINATION_MAX_SIZE_LIMIT)
|
|
1394
1529
|
),
|
|
1395
1530
|
USER_ACCOUNT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1396
1531
|
),
|
|
@@ -1406,7 +1541,7 @@ var SQueryListUserAccountDocuments = v36__namespace.object({
|
|
|
1406
1541
|
trial_period_end_after: IsValidOrUndefinedTrialPeriodEnd,
|
|
1407
1542
|
trial_period_end_before: IsValidOrUndefinedTrialPeriodEnd
|
|
1408
1543
|
});
|
|
1409
|
-
var SCreateUserAccountDocument =
|
|
1544
|
+
var SCreateUserAccountDocument = v35__namespace.object({
|
|
1410
1545
|
customer_id: IsValidOrUndefinedCustomerId,
|
|
1411
1546
|
subscription_id: IsValidOrUndefinedSubscriptionId,
|
|
1412
1547
|
subscription_status: IsValidSubscriptionStatus,
|
|
@@ -1414,13 +1549,13 @@ var SCreateUserAccountDocument = v36__namespace.object({
|
|
|
1414
1549
|
current_period_end: IsValidCurrentPeriodEnd,
|
|
1415
1550
|
trial_period_end: IsValidOrUndefinedTrialPeriodEnd
|
|
1416
1551
|
});
|
|
1417
|
-
var SReadUserAccountDocumentById =
|
|
1552
|
+
var SReadUserAccountDocumentById = v35__namespace.object({
|
|
1418
1553
|
id: IsValidReferenceId
|
|
1419
1554
|
});
|
|
1420
|
-
var SReadUserAccountDocumentByDocumentId =
|
|
1555
|
+
var SReadUserAccountDocumentByDocumentId = v35__namespace.object({
|
|
1421
1556
|
documentId: IsValidReferenceDocumentId
|
|
1422
1557
|
});
|
|
1423
|
-
var SUpdateUserAccountDocument =
|
|
1558
|
+
var SUpdateUserAccountDocument = v35__namespace.object({
|
|
1424
1559
|
customer_id: IsValidOrUndefinedCustomerId,
|
|
1425
1560
|
subscription_id: IsValidOrUndefinedSubscriptionId,
|
|
1426
1561
|
subscription_status: IsValidOrUndefinedSubscriptionStatus,
|
|
@@ -1428,22 +1563,22 @@ var SUpdateUserAccountDocument = v36__namespace.object({
|
|
|
1428
1563
|
current_period_end: IsValidOrUndefinedCurrentPeriodEnd,
|
|
1429
1564
|
trial_period_end: IsValidOrUndefinedTrialPeriodEnd
|
|
1430
1565
|
});
|
|
1431
|
-
var SQueryListUserLimitationDocuments =
|
|
1566
|
+
var SQueryListUserLimitationDocuments = v35__namespace.object({
|
|
1432
1567
|
documentId: IsValidReferenceDocumentId,
|
|
1433
1568
|
page: IsValidMinPage,
|
|
1434
|
-
size:
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1569
|
+
size: v35__namespace.fallback(
|
|
1570
|
+
v35__namespace.optional(
|
|
1571
|
+
v35__namespace.pipe(
|
|
1572
|
+
v35__namespace.number(),
|
|
1573
|
+
v35__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1574
|
+
v35__namespace.maxValue(USER_LIMITATION_PAGINATION_MAX_SIZE_LIMIT)
|
|
1440
1575
|
),
|
|
1441
1576
|
USER_LIMITATION_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1442
1577
|
),
|
|
1443
1578
|
USER_LIMITATION_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1444
1579
|
)
|
|
1445
1580
|
});
|
|
1446
|
-
var SCreateUserLimitationsDocument =
|
|
1581
|
+
var SCreateUserLimitationsDocument = v35__namespace.object({
|
|
1447
1582
|
limit_groups: IsValidUserLimitationNumberFallback,
|
|
1448
1583
|
limit_group_users: IsValidUserLimitationNumberFallback,
|
|
1449
1584
|
limit_websites: IsValidUserLimitationNumberFallback,
|
|
@@ -1460,13 +1595,13 @@ var SCreateUserLimitationsDocument = v36__namespace.object({
|
|
|
1460
1595
|
limit_creative_format_variants: IsValidUserLimitationNumberFallback,
|
|
1461
1596
|
limit_terms: IsValidUserLimitationNumberFallback
|
|
1462
1597
|
});
|
|
1463
|
-
var SReadUserLimitationsDocumentById =
|
|
1598
|
+
var SReadUserLimitationsDocumentById = v35__namespace.object({
|
|
1464
1599
|
id: IsValidReferenceId
|
|
1465
1600
|
});
|
|
1466
|
-
var SReadUserLimitationsDocumentByDocumentId =
|
|
1601
|
+
var SReadUserLimitationsDocumentByDocumentId = v35__namespace.object({
|
|
1467
1602
|
documentId: IsValidReferenceDocumentId
|
|
1468
1603
|
});
|
|
1469
|
-
var SUpdateUserLimitationsDocument =
|
|
1604
|
+
var SUpdateUserLimitationsDocument = v35__namespace.object({
|
|
1470
1605
|
limit_groups: IsValidOrUndefinedUserLimitationNumber,
|
|
1471
1606
|
limit_group_users: IsValidOrUndefinedUserLimitationNumber,
|
|
1472
1607
|
limit_websites: IsValidOrUndefinedUserLimitationNumber,
|
|
@@ -1483,69 +1618,69 @@ var SUpdateUserLimitationsDocument = v36__namespace.object({
|
|
|
1483
1618
|
limit_creative_format_variants: IsValidOrUndefinedUserLimitationNumber,
|
|
1484
1619
|
limit_terms: IsValidOrUndefinedUserLimitationNumber
|
|
1485
1620
|
});
|
|
1486
|
-
var SQueryListUserDocuments =
|
|
1621
|
+
var SQueryListUserDocuments = v35__namespace.object({
|
|
1487
1622
|
page: IsValidMinPage,
|
|
1488
|
-
size:
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1623
|
+
size: v35__namespace.fallback(
|
|
1624
|
+
v35__namespace.optional(
|
|
1625
|
+
v35__namespace.pipe(
|
|
1626
|
+
v35__namespace.number(),
|
|
1627
|
+
v35__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1628
|
+
v35__namespace.maxValue(USER_PAGINATION_MAX_SIZE_LIMIT)
|
|
1494
1629
|
),
|
|
1495
1630
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1496
1631
|
),
|
|
1497
1632
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1498
1633
|
),
|
|
1499
|
-
email:
|
|
1500
|
-
username:
|
|
1501
|
-
confirmed:
|
|
1502
|
-
blocked:
|
|
1634
|
+
email: v35__namespace.optional(IsValidEmail),
|
|
1635
|
+
username: v35__namespace.optional(IsValidUsername),
|
|
1636
|
+
confirmed: v35__namespace.optional(IsValidIsActive),
|
|
1637
|
+
blocked: v35__namespace.optional(IsValidIsActive)
|
|
1503
1638
|
});
|
|
1504
|
-
var SQueryListUserDocumentsByIdentifier =
|
|
1505
|
-
identifier:
|
|
1639
|
+
var SQueryListUserDocumentsByIdentifier = v35__namespace.object({
|
|
1640
|
+
identifier: v35__namespace.pipe(v35__namespace.string(), v35__namespace.maxLength(255)),
|
|
1506
1641
|
page: IsValidMinPage,
|
|
1507
|
-
size:
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1642
|
+
size: v35__namespace.fallback(
|
|
1643
|
+
v35__namespace.optional(
|
|
1644
|
+
v35__namespace.pipe(
|
|
1645
|
+
v35__namespace.number(),
|
|
1646
|
+
v35__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1647
|
+
v35__namespace.maxValue(USER_PAGINATION_MAX_SIZE_LIMIT)
|
|
1513
1648
|
),
|
|
1514
1649
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1515
1650
|
),
|
|
1516
1651
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1517
1652
|
)
|
|
1518
1653
|
});
|
|
1519
|
-
var SReadUserDocumentById =
|
|
1654
|
+
var SReadUserDocumentById = v35__namespace.object({
|
|
1520
1655
|
id: IsValidReferenceId
|
|
1521
1656
|
});
|
|
1522
|
-
var SReadUserDocumentByDocumentId =
|
|
1657
|
+
var SReadUserDocumentByDocumentId = v35__namespace.object({
|
|
1523
1658
|
documentId: IsValidReferenceDocumentId
|
|
1524
1659
|
});
|
|
1525
|
-
var SQueryListCampaignIdDocuments =
|
|
1660
|
+
var SQueryListCampaignIdDocuments = v35__namespace.object({
|
|
1526
1661
|
documentId: IsValidReferenceDocumentId,
|
|
1527
1662
|
page: IsValidMinPage,
|
|
1528
|
-
size:
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1663
|
+
size: v35__namespace.fallback(
|
|
1664
|
+
v35__namespace.optional(
|
|
1665
|
+
v35__namespace.pipe(
|
|
1666
|
+
v35__namespace.number(),
|
|
1667
|
+
v35__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1668
|
+
v35__namespace.maxValue(CAMPAIGN_ID_PAGINATION_MAX_SIZE_LIMIT)
|
|
1534
1669
|
),
|
|
1535
1670
|
CAMPAIGN_ID_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1536
1671
|
),
|
|
1537
1672
|
CAMPAIGN_ID_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1538
1673
|
),
|
|
1539
|
-
cost:
|
|
1540
|
-
min_cost:
|
|
1541
|
-
max_cost:
|
|
1542
|
-
label:
|
|
1543
|
-
value:
|
|
1544
|
-
is_active:
|
|
1545
|
-
group:
|
|
1546
|
-
creator:
|
|
1547
|
-
});
|
|
1548
|
-
var SCreateCampaignIdDocument =
|
|
1674
|
+
cost: v35__namespace.optional(IsValidCost),
|
|
1675
|
+
min_cost: v35__namespace.optional(IsValidCost),
|
|
1676
|
+
max_cost: v35__namespace.optional(IsValidCost),
|
|
1677
|
+
label: v35__namespace.optional(IsValidLabel),
|
|
1678
|
+
value: v35__namespace.optional(IsValidValue),
|
|
1679
|
+
is_active: v35__namespace.optional(IsValidIsActive),
|
|
1680
|
+
group: v35__namespace.optional(IsValidReferenceDocumentId),
|
|
1681
|
+
creator: v35__namespace.optional(IsValidReferenceDocumentId)
|
|
1682
|
+
});
|
|
1683
|
+
var SCreateCampaignIdDocument = v35__namespace.object({
|
|
1549
1684
|
group: IsValidReferenceDocumentId,
|
|
1550
1685
|
cost: IsValidCost,
|
|
1551
1686
|
label: IsValidLabel,
|
|
@@ -1553,878 +1688,758 @@ var SCreateCampaignIdDocument = v36__namespace.object({
|
|
|
1553
1688
|
description: IsValidDescription,
|
|
1554
1689
|
is_active: IsValidIsActive
|
|
1555
1690
|
});
|
|
1556
|
-
var SCreateMultipleCampaignIdDocuments =
|
|
1557
|
-
campaign_ids:
|
|
1558
|
-
|
|
1559
|
-
|
|
1691
|
+
var SCreateMultipleCampaignIdDocuments = v35__namespace.object({
|
|
1692
|
+
campaign_ids: v35__namespace.pipe(
|
|
1693
|
+
v35__namespace.array(SCreateCampaignIdDocument),
|
|
1694
|
+
v35__namespace.minLength(1, "At least one campaign ID is required")
|
|
1560
1695
|
)
|
|
1561
1696
|
});
|
|
1562
|
-
var SReadCampaignIdDocumentById =
|
|
1697
|
+
var SReadCampaignIdDocumentById = v35__namespace.object({
|
|
1563
1698
|
id: IsValidReferenceId
|
|
1564
1699
|
});
|
|
1565
|
-
var SReadCampaignIdDocumentByDocumentId =
|
|
1700
|
+
var SReadCampaignIdDocumentByDocumentId = v35__namespace.object({
|
|
1566
1701
|
documentId: IsValidReferenceDocumentId
|
|
1567
1702
|
});
|
|
1568
|
-
var SUpdateAsCreatorCampaignIdDocument =
|
|
1703
|
+
var SUpdateAsCreatorCampaignIdDocument = v35__namespace.object({
|
|
1569
1704
|
cost: IsValidOrUndefinedCost,
|
|
1570
1705
|
label: IsValidOrUndefinedLabel,
|
|
1571
1706
|
value: IsValidOrUndefinedValue,
|
|
1572
1707
|
description: IsValidDescription,
|
|
1573
1708
|
is_active: IsValidOrUndefinedIsActive
|
|
1574
1709
|
});
|
|
1575
|
-
var SUpdateAsCreatorCampaignIdDocumentRequest =
|
|
1710
|
+
var SUpdateAsCreatorCampaignIdDocumentRequest = v35__namespace.object({
|
|
1576
1711
|
documentId: IsValidReferenceDocumentId,
|
|
1577
1712
|
data: SUpdateAsCreatorCampaignIdDocument
|
|
1578
1713
|
});
|
|
1579
|
-
var SUpdateAsInvitedCampaignIdDocument =
|
|
1714
|
+
var SUpdateAsInvitedCampaignIdDocument = v35__namespace.object({
|
|
1580
1715
|
label: IsValidOrUndefinedLabel,
|
|
1581
1716
|
description: IsValidDescription,
|
|
1582
1717
|
is_active: IsValidOrUndefinedIsActive
|
|
1583
1718
|
});
|
|
1584
|
-
var SUpdateAsInvitedCampaignIdDocumentRequest =
|
|
1719
|
+
var SUpdateAsInvitedCampaignIdDocumentRequest = v35__namespace.object({
|
|
1585
1720
|
documentId: IsValidReferenceDocumentId,
|
|
1586
1721
|
data: SUpdateAsInvitedCampaignIdDocument
|
|
1587
1722
|
});
|
|
1588
|
-
var SUpdateCampaignIdDocumentRequest =
|
|
1723
|
+
var SUpdateCampaignIdDocumentRequest = v35__namespace.union([
|
|
1589
1724
|
SUpdateAsCreatorCampaignIdDocument,
|
|
1590
1725
|
SUpdateAsInvitedCampaignIdDocument
|
|
1591
1726
|
]);
|
|
1592
|
-
var SDeleteCampaignIdDocument =
|
|
1727
|
+
var SDeleteCampaignIdDocument = v35__namespace.object({
|
|
1593
1728
|
documentId: IsValidReferenceDocumentId
|
|
1594
1729
|
});
|
|
1595
|
-
var SQueryListCampaignKeyDocuments =
|
|
1730
|
+
var SQueryListCampaignKeyDocuments = v35__namespace.object({
|
|
1596
1731
|
documentId: IsValidReferenceDocumentId,
|
|
1597
1732
|
page: IsValidMinPage,
|
|
1598
|
-
size:
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1733
|
+
size: v35__namespace.fallback(
|
|
1734
|
+
v35__namespace.optional(
|
|
1735
|
+
v35__namespace.pipe(
|
|
1736
|
+
v35__namespace.number(),
|
|
1737
|
+
v35__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1738
|
+
v35__namespace.maxValue(CAMPAIGN_KEY_PAGINATION_MAX_SIZE_LIMIT)
|
|
1604
1739
|
),
|
|
1605
1740
|
CAMPAIGN_KEY_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1606
1741
|
),
|
|
1607
1742
|
CAMPAIGN_KEY_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1608
1743
|
),
|
|
1609
|
-
label:
|
|
1610
|
-
value:
|
|
1611
|
-
is_active:
|
|
1612
|
-
group:
|
|
1613
|
-
creator:
|
|
1744
|
+
label: v35__namespace.optional(IsValidLabel),
|
|
1745
|
+
value: v35__namespace.optional(IsValidValue),
|
|
1746
|
+
is_active: v35__namespace.optional(IsValidIsActive),
|
|
1747
|
+
group: v35__namespace.optional(IsValidReferenceDocumentId),
|
|
1748
|
+
creator: v35__namespace.optional(IsValidReferenceDocumentId)
|
|
1614
1749
|
});
|
|
1615
|
-
var SCreateCampaignKeyDocument =
|
|
1750
|
+
var SCreateCampaignKeyDocument = v35__namespace.object({
|
|
1616
1751
|
group: IsValidReferenceDocumentId,
|
|
1617
1752
|
label: IsValidLabel,
|
|
1618
1753
|
value: IsValidValue,
|
|
1619
1754
|
description: IsValidDescription,
|
|
1620
1755
|
is_active: IsValidIsActive
|
|
1621
1756
|
});
|
|
1622
|
-
var SCreateMultipleCampaignKeyDocuments =
|
|
1623
|
-
campaign_keys:
|
|
1624
|
-
|
|
1625
|
-
|
|
1757
|
+
var SCreateMultipleCampaignKeyDocuments = v35__namespace.object({
|
|
1758
|
+
campaign_keys: v35__namespace.pipe(
|
|
1759
|
+
v35__namespace.array(SCreateCampaignKeyDocument),
|
|
1760
|
+
v35__namespace.minLength(1, "At least one campaign key is required")
|
|
1626
1761
|
)
|
|
1627
1762
|
});
|
|
1628
|
-
var SReadCampaignKeyDocumentById =
|
|
1763
|
+
var SReadCampaignKeyDocumentById = v35__namespace.object({
|
|
1629
1764
|
id: IsValidReferenceId
|
|
1630
1765
|
});
|
|
1631
|
-
var SReadCampaignKeyDocumentByDocumentId =
|
|
1766
|
+
var SReadCampaignKeyDocumentByDocumentId = v35__namespace.object({
|
|
1632
1767
|
documentId: IsValidReferenceDocumentId
|
|
1633
1768
|
});
|
|
1634
|
-
var SUpdateAsCreatorCampaignKeyDocument =
|
|
1769
|
+
var SUpdateAsCreatorCampaignKeyDocument = v35__namespace.object({
|
|
1635
1770
|
label: IsValidOrUndefinedLabel,
|
|
1636
1771
|
value: IsValidOrUndefinedValue,
|
|
1637
1772
|
description: IsValidOrUndefinedDescription,
|
|
1638
1773
|
is_active: IsValidOrUndefinedIsActive
|
|
1639
1774
|
});
|
|
1640
|
-
var SUpdateAsCreatorCampaignKeyDocumentRequest =
|
|
1775
|
+
var SUpdateAsCreatorCampaignKeyDocumentRequest = v35__namespace.object({
|
|
1641
1776
|
documentId: IsValidReferenceDocumentId,
|
|
1642
1777
|
data: SUpdateAsCreatorCampaignKeyDocument
|
|
1643
1778
|
});
|
|
1644
|
-
var SUpdateAsInvitedCampaignKeyDocument =
|
|
1779
|
+
var SUpdateAsInvitedCampaignKeyDocument = v35__namespace.object({
|
|
1645
1780
|
label: IsValidOrUndefinedLabel,
|
|
1646
1781
|
description: IsValidDescription,
|
|
1647
1782
|
is_active: IsValidOrUndefinedIsActive
|
|
1648
1783
|
});
|
|
1649
|
-
var SUpdateAsInvitedCampaignKeyDocumentRequest =
|
|
1784
|
+
var SUpdateAsInvitedCampaignKeyDocumentRequest = v35__namespace.object({
|
|
1650
1785
|
documentId: IsValidReferenceDocumentId,
|
|
1651
1786
|
data: SUpdateAsInvitedCampaignKeyDocument
|
|
1652
1787
|
});
|
|
1653
|
-
var SUpdateCampaignKeyDocumentRequest =
|
|
1788
|
+
var SUpdateCampaignKeyDocumentRequest = v35__namespace.union([
|
|
1654
1789
|
SUpdateAsCreatorCampaignKeyDocument,
|
|
1655
1790
|
SUpdateAsInvitedCampaignKeyDocument
|
|
1656
1791
|
]);
|
|
1657
|
-
var SDeleteCampaignKeyDocument =
|
|
1792
|
+
var SDeleteCampaignKeyDocument = v35__namespace.object({
|
|
1658
1793
|
documentId: IsValidReferenceDocumentId
|
|
1659
1794
|
});
|
|
1660
|
-
var SQueryListCampaignPhaseDocuments =
|
|
1795
|
+
var SQueryListCampaignPhaseDocuments = v35__namespace.object({
|
|
1661
1796
|
documentId: IsValidReferenceDocumentId,
|
|
1662
1797
|
page: IsValidMinPage,
|
|
1663
|
-
size:
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1798
|
+
size: v35__namespace.fallback(
|
|
1799
|
+
v35__namespace.optional(
|
|
1800
|
+
v35__namespace.pipe(
|
|
1801
|
+
v35__namespace.number(),
|
|
1802
|
+
v35__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1803
|
+
v35__namespace.maxValue(CAMPAIGN_PHASE_PAGINATION_MAX_SIZE_LIMIT)
|
|
1669
1804
|
),
|
|
1670
1805
|
CAMPAIGN_PHASE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1671
1806
|
),
|
|
1672
1807
|
CAMPAIGN_PHASE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1673
1808
|
),
|
|
1674
|
-
label:
|
|
1675
|
-
value:
|
|
1676
|
-
is_active:
|
|
1677
|
-
group:
|
|
1678
|
-
creator:
|
|
1809
|
+
label: v35__namespace.optional(IsValidLabel),
|
|
1810
|
+
value: v35__namespace.optional(IsValidValue),
|
|
1811
|
+
is_active: v35__namespace.optional(IsValidIsActive),
|
|
1812
|
+
group: v35__namespace.optional(IsValidReferenceDocumentId),
|
|
1813
|
+
creator: v35__namespace.optional(IsValidReferenceDocumentId)
|
|
1679
1814
|
});
|
|
1680
|
-
var SCreateCampaignPhaseDocument =
|
|
1815
|
+
var SCreateCampaignPhaseDocument = v35__namespace.object({
|
|
1681
1816
|
group: IsValidReferenceDocumentId,
|
|
1682
1817
|
label: IsValidLabel,
|
|
1683
1818
|
value: IsValidValue,
|
|
1684
1819
|
description: IsValidDescription,
|
|
1685
1820
|
is_active: IsValidIsActive
|
|
1686
1821
|
});
|
|
1687
|
-
var SCreateMultipleCampaignPhaseDocuments =
|
|
1688
|
-
campaign_phases:
|
|
1689
|
-
|
|
1690
|
-
|
|
1822
|
+
var SCreateMultipleCampaignPhaseDocuments = v35__namespace.object({
|
|
1823
|
+
campaign_phases: v35__namespace.pipe(
|
|
1824
|
+
v35__namespace.array(SCreateCampaignPhaseDocument),
|
|
1825
|
+
v35__namespace.minLength(1, "At least one campaign phase is required")
|
|
1691
1826
|
)
|
|
1692
1827
|
});
|
|
1693
|
-
var SReadCampaignPhaseDocumentById =
|
|
1828
|
+
var SReadCampaignPhaseDocumentById = v35__namespace.object({
|
|
1694
1829
|
id: IsValidReferenceId
|
|
1695
1830
|
});
|
|
1696
|
-
var SReadCampaignPhaseDocumentByDocumentId =
|
|
1831
|
+
var SReadCampaignPhaseDocumentByDocumentId = v35__namespace.object({
|
|
1697
1832
|
documentId: IsValidReferenceDocumentId
|
|
1698
1833
|
});
|
|
1699
|
-
var SUpdateAsCreatorCampaignPhaseDocument =
|
|
1834
|
+
var SUpdateAsCreatorCampaignPhaseDocument = v35__namespace.object({
|
|
1700
1835
|
label: IsValidOrUndefinedLabel,
|
|
1701
1836
|
value: IsValidOrUndefinedValue,
|
|
1702
1837
|
description: IsValidOrUndefinedDescription,
|
|
1703
1838
|
is_active: IsValidOrUndefinedIsActive
|
|
1704
1839
|
});
|
|
1705
|
-
var SUpdateAsCreatorCampaignPhaseDocumentRequest =
|
|
1840
|
+
var SUpdateAsCreatorCampaignPhaseDocumentRequest = v35__namespace.object({
|
|
1706
1841
|
documentId: IsValidReferenceDocumentId,
|
|
1707
1842
|
data: SUpdateAsCreatorCampaignPhaseDocument
|
|
1708
1843
|
});
|
|
1709
|
-
var SUpdateAsInvitedCampaignPhaseDocument =
|
|
1844
|
+
var SUpdateAsInvitedCampaignPhaseDocument = v35__namespace.object({
|
|
1710
1845
|
label: IsValidOrUndefinedLabel,
|
|
1711
1846
|
description: IsValidDescription,
|
|
1712
1847
|
is_active: IsValidOrUndefinedIsActive
|
|
1713
1848
|
});
|
|
1714
|
-
var SUpdateAsInvitedCampaignPhaseDocumentRequest =
|
|
1849
|
+
var SUpdateAsInvitedCampaignPhaseDocumentRequest = v35__namespace.object({
|
|
1715
1850
|
documentId: IsValidReferenceDocumentId,
|
|
1716
1851
|
data: SUpdateAsInvitedCampaignPhaseDocument
|
|
1717
1852
|
});
|
|
1718
|
-
var SUpdateCampaignPhaseDocumentRequest =
|
|
1853
|
+
var SUpdateCampaignPhaseDocumentRequest = v35__namespace.union([
|
|
1719
1854
|
SUpdateAsCreatorCampaignPhaseDocument,
|
|
1720
1855
|
SUpdateAsInvitedCampaignPhaseDocument
|
|
1721
1856
|
]);
|
|
1722
|
-
var SDeleteCampaignPhaseDocument =
|
|
1857
|
+
var SDeleteCampaignPhaseDocument = v35__namespace.object({
|
|
1723
1858
|
documentId: IsValidReferenceDocumentId
|
|
1724
1859
|
});
|
|
1725
|
-
var SQueryListCampaignProductDocuments =
|
|
1860
|
+
var SQueryListCampaignProductDocuments = v35__namespace.object({
|
|
1726
1861
|
documentId: IsValidReferenceDocumentId,
|
|
1727
1862
|
page: IsValidMinPage,
|
|
1728
|
-
size:
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1863
|
+
size: v35__namespace.fallback(
|
|
1864
|
+
v35__namespace.optional(
|
|
1865
|
+
v35__namespace.pipe(
|
|
1866
|
+
v35__namespace.number(),
|
|
1867
|
+
v35__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1868
|
+
v35__namespace.maxValue(CAMPAIGN_PRODUCT_PAGINATION_MAX_SIZE_LIMIT)
|
|
1734
1869
|
),
|
|
1735
1870
|
CAMPAIGN_PRODUCT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1736
1871
|
),
|
|
1737
1872
|
CAMPAIGN_PRODUCT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1738
1873
|
),
|
|
1739
|
-
label:
|
|
1740
|
-
value:
|
|
1741
|
-
is_active:
|
|
1742
|
-
group:
|
|
1743
|
-
creator:
|
|
1874
|
+
label: v35__namespace.optional(IsValidLabel),
|
|
1875
|
+
value: v35__namespace.optional(IsValidValue),
|
|
1876
|
+
is_active: v35__namespace.optional(IsValidIsActive),
|
|
1877
|
+
group: v35__namespace.optional(IsValidReferenceDocumentId),
|
|
1878
|
+
creator: v35__namespace.optional(IsValidReferenceDocumentId)
|
|
1744
1879
|
});
|
|
1745
|
-
var SCreateCampaignProductDocument =
|
|
1880
|
+
var SCreateCampaignProductDocument = v35__namespace.object({
|
|
1746
1881
|
group: IsValidReferenceDocumentId,
|
|
1747
1882
|
label: IsValidLabel,
|
|
1748
1883
|
value: IsValidValue,
|
|
1749
1884
|
description: IsValidDescription,
|
|
1750
1885
|
is_active: IsValidIsActive
|
|
1751
1886
|
});
|
|
1752
|
-
var SCreateMultipleCampaignProductDocuments =
|
|
1753
|
-
campaign_products:
|
|
1754
|
-
|
|
1755
|
-
|
|
1887
|
+
var SCreateMultipleCampaignProductDocuments = v35__namespace.object({
|
|
1888
|
+
campaign_products: v35__namespace.pipe(
|
|
1889
|
+
v35__namespace.array(SCreateCampaignProductDocument),
|
|
1890
|
+
v35__namespace.minLength(1, "At least one campaign product is required")
|
|
1756
1891
|
)
|
|
1757
1892
|
});
|
|
1758
|
-
var SReadCampaignProductDocumentById =
|
|
1893
|
+
var SReadCampaignProductDocumentById = v35__namespace.object({
|
|
1759
1894
|
id: IsValidReferenceId
|
|
1760
1895
|
});
|
|
1761
|
-
var SReadCampaignProductDocumentByDocumentId =
|
|
1896
|
+
var SReadCampaignProductDocumentByDocumentId = v35__namespace.object({
|
|
1762
1897
|
documentId: IsValidReferenceDocumentId
|
|
1763
1898
|
});
|
|
1764
|
-
var SUpdateAsCreatorCampaignProductDocument =
|
|
1899
|
+
var SUpdateAsCreatorCampaignProductDocument = v35__namespace.object({
|
|
1765
1900
|
label: IsValidOrUndefinedLabel,
|
|
1766
1901
|
value: IsValidOrUndefinedValue,
|
|
1767
1902
|
description: IsValidOrUndefinedDescription,
|
|
1768
1903
|
is_active: IsValidOrUndefinedIsActive
|
|
1769
1904
|
});
|
|
1770
|
-
var SUpdateAsCreatorCampaignProductDocumentRequest =
|
|
1905
|
+
var SUpdateAsCreatorCampaignProductDocumentRequest = v35__namespace.object({
|
|
1771
1906
|
documentId: IsValidReferenceDocumentId,
|
|
1772
1907
|
data: SUpdateAsCreatorCampaignProductDocument
|
|
1773
1908
|
});
|
|
1774
|
-
var SUpdateAsInvitedCampaignProductDocument =
|
|
1909
|
+
var SUpdateAsInvitedCampaignProductDocument = v35__namespace.object({
|
|
1775
1910
|
label: IsValidOrUndefinedLabel,
|
|
1776
1911
|
description: IsValidDescription,
|
|
1777
1912
|
is_active: IsValidOrUndefinedIsActive
|
|
1778
1913
|
});
|
|
1779
|
-
var SUpdateAsInvitedCampaignProductDocumentRequest =
|
|
1914
|
+
var SUpdateAsInvitedCampaignProductDocumentRequest = v35__namespace.object({
|
|
1780
1915
|
documentId: IsValidReferenceDocumentId,
|
|
1781
1916
|
data: SUpdateAsInvitedCampaignProductDocument
|
|
1782
1917
|
});
|
|
1783
|
-
var SUpdateCampaignProductDocumentRequest =
|
|
1918
|
+
var SUpdateCampaignProductDocumentRequest = v35__namespace.union([
|
|
1784
1919
|
SUpdateAsCreatorCampaignProductDocument,
|
|
1785
1920
|
SUpdateAsInvitedCampaignProductDocument
|
|
1786
1921
|
]);
|
|
1787
|
-
var SDeleteCampaignProductDocument =
|
|
1922
|
+
var SDeleteCampaignProductDocument = v35__namespace.object({
|
|
1788
1923
|
documentId: IsValidReferenceDocumentId
|
|
1789
1924
|
});
|
|
1790
|
-
var SQueryListCampaignTargetDocuments =
|
|
1925
|
+
var SQueryListCampaignTargetDocuments = v35__namespace.object({
|
|
1791
1926
|
documentId: IsValidReferenceDocumentId,
|
|
1792
1927
|
page: IsValidMinPage,
|
|
1793
|
-
size:
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1928
|
+
size: v35__namespace.fallback(
|
|
1929
|
+
v35__namespace.optional(
|
|
1930
|
+
v35__namespace.pipe(
|
|
1931
|
+
v35__namespace.number(),
|
|
1932
|
+
v35__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1933
|
+
v35__namespace.maxValue(CAMPAIGN_PRODUCT_PAGINATION_MAX_SIZE_LIMIT)
|
|
1799
1934
|
),
|
|
1800
1935
|
CAMPAIGN_PRODUCT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1801
1936
|
),
|
|
1802
1937
|
CAMPAIGN_PRODUCT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1803
1938
|
),
|
|
1804
|
-
label:
|
|
1805
|
-
value:
|
|
1806
|
-
is_active:
|
|
1807
|
-
group:
|
|
1808
|
-
creator:
|
|
1939
|
+
label: v35__namespace.optional(IsValidLabel),
|
|
1940
|
+
value: v35__namespace.optional(IsValidValue),
|
|
1941
|
+
is_active: v35__namespace.optional(IsValidIsActive),
|
|
1942
|
+
group: v35__namespace.optional(IsValidReferenceDocumentId),
|
|
1943
|
+
creator: v35__namespace.optional(IsValidReferenceDocumentId)
|
|
1809
1944
|
});
|
|
1810
|
-
var SCreateCampaignTargetDocument =
|
|
1945
|
+
var SCreateCampaignTargetDocument = v35__namespace.object({
|
|
1811
1946
|
group: IsValidReferenceDocumentId,
|
|
1812
1947
|
label: IsValidLabel,
|
|
1813
1948
|
value: IsValidValue,
|
|
1814
1949
|
description: IsValidDescription,
|
|
1815
1950
|
is_active: IsValidIsActive
|
|
1816
1951
|
});
|
|
1817
|
-
var SCreateMultipleCampaignTargetDocuments =
|
|
1818
|
-
campaign_targets:
|
|
1819
|
-
|
|
1820
|
-
|
|
1952
|
+
var SCreateMultipleCampaignTargetDocuments = v35__namespace.object({
|
|
1953
|
+
campaign_targets: v35__namespace.pipe(
|
|
1954
|
+
v35__namespace.array(SCreateCampaignTargetDocument),
|
|
1955
|
+
v35__namespace.minLength(1, "At least one campaign target is required")
|
|
1821
1956
|
)
|
|
1822
1957
|
});
|
|
1823
|
-
var SReadCampaignTargetDocumentById =
|
|
1958
|
+
var SReadCampaignTargetDocumentById = v35__namespace.object({
|
|
1824
1959
|
id: IsValidReferenceId
|
|
1825
1960
|
});
|
|
1826
|
-
var SReadCampaignTargetDocumentByDocumentId =
|
|
1961
|
+
var SReadCampaignTargetDocumentByDocumentId = v35__namespace.object({
|
|
1827
1962
|
documentId: IsValidReferenceDocumentId
|
|
1828
1963
|
});
|
|
1829
|
-
var SUpdateAsCreatorCampaignTargetDocument =
|
|
1964
|
+
var SUpdateAsCreatorCampaignTargetDocument = v35__namespace.object({
|
|
1830
1965
|
label: IsValidOrUndefinedLabel,
|
|
1831
1966
|
value: IsValidOrUndefinedValue,
|
|
1832
1967
|
description: IsValidOrUndefinedDescription,
|
|
1833
1968
|
is_active: IsValidOrUndefinedIsActive
|
|
1834
1969
|
});
|
|
1835
|
-
var SUpdateAsCreatorCampaignTargetDocumentRequest =
|
|
1970
|
+
var SUpdateAsCreatorCampaignTargetDocumentRequest = v35__namespace.object({
|
|
1836
1971
|
documentId: IsValidReferenceDocumentId,
|
|
1837
1972
|
data: SUpdateAsCreatorCampaignTargetDocument
|
|
1838
1973
|
});
|
|
1839
|
-
var SUpdateAsInvitedCampaignTargetDocument =
|
|
1974
|
+
var SUpdateAsInvitedCampaignTargetDocument = v35__namespace.object({
|
|
1840
1975
|
label: IsValidOrUndefinedLabel,
|
|
1841
1976
|
description: IsValidDescription,
|
|
1842
1977
|
is_active: IsValidOrUndefinedIsActive
|
|
1843
1978
|
});
|
|
1844
|
-
var SUpdateAsInvitedCampaignTargetDocumentRequest =
|
|
1979
|
+
var SUpdateAsInvitedCampaignTargetDocumentRequest = v35__namespace.object({
|
|
1845
1980
|
documentId: IsValidReferenceDocumentId,
|
|
1846
1981
|
data: SUpdateAsInvitedCampaignTargetDocument
|
|
1847
1982
|
});
|
|
1848
|
-
var SUpdateCampaignTargetDocumentRequest =
|
|
1983
|
+
var SUpdateCampaignTargetDocumentRequest = v35__namespace.union([
|
|
1849
1984
|
SUpdateAsCreatorCampaignTargetDocument,
|
|
1850
1985
|
SUpdateAsInvitedCampaignTargetDocument
|
|
1851
1986
|
]);
|
|
1852
|
-
var SDeleteCampaignTargetDocument =
|
|
1987
|
+
var SDeleteCampaignTargetDocument = v35__namespace.object({
|
|
1853
1988
|
documentId: IsValidReferenceDocumentId
|
|
1854
1989
|
});
|
|
1855
|
-
var SQueryListContentDocuments =
|
|
1990
|
+
var SQueryListContentDocuments = v35__namespace.object({
|
|
1856
1991
|
documentId: IsValidReferenceDocumentId,
|
|
1857
1992
|
page: IsValidMinPage,
|
|
1858
|
-
size:
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1993
|
+
size: v35__namespace.fallback(
|
|
1994
|
+
v35__namespace.optional(
|
|
1995
|
+
v35__namespace.pipe(
|
|
1996
|
+
v35__namespace.number(),
|
|
1997
|
+
v35__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1998
|
+
v35__namespace.maxValue(CONTENT_PAGINATION_MAX_SIZE_LIMIT)
|
|
1864
1999
|
),
|
|
1865
2000
|
CONTENT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1866
2001
|
),
|
|
1867
2002
|
CONTENT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1868
2003
|
),
|
|
1869
|
-
label:
|
|
1870
|
-
value:
|
|
1871
|
-
is_active:
|
|
1872
|
-
group:
|
|
1873
|
-
creator:
|
|
2004
|
+
label: v35__namespace.optional(IsValidLabel),
|
|
2005
|
+
value: v35__namespace.optional(IsValidValue),
|
|
2006
|
+
is_active: v35__namespace.optional(IsValidIsActive),
|
|
2007
|
+
group: v35__namespace.optional(IsValidReferenceDocumentId),
|
|
2008
|
+
creator: v35__namespace.optional(IsValidReferenceDocumentId)
|
|
1874
2009
|
});
|
|
1875
|
-
var SCreateContentDocument =
|
|
2010
|
+
var SCreateContentDocument = v35__namespace.object({
|
|
1876
2011
|
group: IsValidReferenceDocumentId,
|
|
1877
2012
|
label: IsValidLabel,
|
|
1878
2013
|
value: IsValidValue,
|
|
1879
2014
|
description: IsValidDescription,
|
|
1880
2015
|
is_active: IsValidIsActive
|
|
1881
2016
|
});
|
|
1882
|
-
var SCreateMultipleContentDocuments =
|
|
1883
|
-
contents:
|
|
1884
|
-
|
|
1885
|
-
|
|
2017
|
+
var SCreateMultipleContentDocuments = v35__namespace.object({
|
|
2018
|
+
contents: v35__namespace.pipe(
|
|
2019
|
+
v35__namespace.array(SCreateContentDocument),
|
|
2020
|
+
v35__namespace.minLength(1, "At least one term is required")
|
|
1886
2021
|
)
|
|
1887
2022
|
});
|
|
1888
|
-
var SReadContentDocumentById =
|
|
2023
|
+
var SReadContentDocumentById = v35__namespace.object({
|
|
1889
2024
|
id: IsValidReferenceId
|
|
1890
2025
|
});
|
|
1891
|
-
var SReadContentDocumentByDocumentId =
|
|
2026
|
+
var SReadContentDocumentByDocumentId = v35__namespace.object({
|
|
1892
2027
|
documentId: IsValidReferenceDocumentId
|
|
1893
2028
|
});
|
|
1894
|
-
var SUpdateAsCreatorContentDocument =
|
|
2029
|
+
var SUpdateAsCreatorContentDocument = v35__namespace.object({
|
|
1895
2030
|
label: IsValidOrUndefinedLabel,
|
|
1896
2031
|
value: IsValidOrUndefinedValue,
|
|
1897
2032
|
description: IsValidOrUndefinedDescription,
|
|
1898
2033
|
is_active: IsValidOrUndefinedIsActive
|
|
1899
2034
|
});
|
|
1900
|
-
var SUpdateAsCreatorContentDocumentRequest =
|
|
2035
|
+
var SUpdateAsCreatorContentDocumentRequest = v35__namespace.object({
|
|
1901
2036
|
documentId: IsValidReferenceDocumentId,
|
|
1902
2037
|
data: SUpdateAsCreatorContentDocument
|
|
1903
2038
|
});
|
|
1904
|
-
var SUpdateAsInvitedContentDocument =
|
|
2039
|
+
var SUpdateAsInvitedContentDocument = v35__namespace.object({
|
|
1905
2040
|
label: IsValidOrUndefinedLabel,
|
|
1906
2041
|
description: IsValidDescription,
|
|
1907
2042
|
is_active: IsValidOrUndefinedIsActive
|
|
1908
2043
|
});
|
|
1909
|
-
var SUpdateAsInvitedContentDocumentRequest =
|
|
2044
|
+
var SUpdateAsInvitedContentDocumentRequest = v35__namespace.object({
|
|
1910
2045
|
documentId: IsValidReferenceDocumentId,
|
|
1911
2046
|
data: SUpdateAsInvitedContentDocument
|
|
1912
2047
|
});
|
|
1913
|
-
var SUpdateContentDocumentRequest =
|
|
2048
|
+
var SUpdateContentDocumentRequest = v35__namespace.union([
|
|
1914
2049
|
SUpdateAsCreatorContentDocument,
|
|
1915
2050
|
SUpdateAsInvitedContentDocument
|
|
1916
2051
|
]);
|
|
1917
|
-
var SDeleteContentDocument =
|
|
2052
|
+
var SDeleteContentDocument = v35__namespace.object({
|
|
1918
2053
|
documentId: IsValidReferenceDocumentId
|
|
1919
2054
|
});
|
|
1920
|
-
var SQueryListCreativeFormatVariantDocuments =
|
|
2055
|
+
var SQueryListCreativeFormatVariantDocuments = v35__namespace.object({
|
|
1921
2056
|
documentId: IsValidReferenceDocumentId,
|
|
1922
2057
|
page: IsValidMinPage,
|
|
1923
|
-
size:
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
2058
|
+
size: v35__namespace.fallback(
|
|
2059
|
+
v35__namespace.optional(
|
|
2060
|
+
v35__namespace.pipe(
|
|
2061
|
+
v35__namespace.number(),
|
|
2062
|
+
v35__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
2063
|
+
v35__namespace.maxValue(CREATIVE_FORMAT_VARIANT_PAGINATION_MAX_SIZE_LIMIT)
|
|
1929
2064
|
),
|
|
1930
2065
|
CREATIVE_FORMAT_VARIANT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1931
2066
|
),
|
|
1932
2067
|
CREATIVE_FORMAT_VARIANT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1933
2068
|
),
|
|
1934
|
-
label:
|
|
1935
|
-
value:
|
|
1936
|
-
is_active:
|
|
1937
|
-
group:
|
|
1938
|
-
creator:
|
|
2069
|
+
label: v35__namespace.optional(IsValidLabel),
|
|
2070
|
+
value: v35__namespace.optional(IsValidValue),
|
|
2071
|
+
is_active: v35__namespace.optional(IsValidIsActive),
|
|
2072
|
+
group: v35__namespace.optional(IsValidReferenceDocumentId),
|
|
2073
|
+
creator: v35__namespace.optional(IsValidReferenceDocumentId)
|
|
1939
2074
|
});
|
|
1940
|
-
var SCreateCreativeFormatVariantDocument =
|
|
2075
|
+
var SCreateCreativeFormatVariantDocument = v35__namespace.object({
|
|
1941
2076
|
group: IsValidReferenceDocumentId,
|
|
1942
2077
|
label: IsValidLabel,
|
|
1943
2078
|
value: IsValidValue,
|
|
1944
2079
|
description: IsValidDescription,
|
|
1945
2080
|
is_active: IsValidIsActive
|
|
1946
2081
|
});
|
|
1947
|
-
var SCreateMultipleCreativeFormatVariantDocuments =
|
|
1948
|
-
creative_format_variants:
|
|
1949
|
-
|
|
1950
|
-
|
|
2082
|
+
var SCreateMultipleCreativeFormatVariantDocuments = v35__namespace.object({
|
|
2083
|
+
creative_format_variants: v35__namespace.pipe(
|
|
2084
|
+
v35__namespace.array(SCreateCreativeFormatVariantDocument),
|
|
2085
|
+
v35__namespace.minLength(1, "At least one term is required")
|
|
1951
2086
|
)
|
|
1952
2087
|
});
|
|
1953
|
-
var SReadCreativeFormatVariantDocumentById =
|
|
2088
|
+
var SReadCreativeFormatVariantDocumentById = v35__namespace.object({
|
|
1954
2089
|
id: IsValidReferenceId
|
|
1955
2090
|
});
|
|
1956
|
-
var SReadCreativeFormatVariantDocumentByDocumentId =
|
|
2091
|
+
var SReadCreativeFormatVariantDocumentByDocumentId = v35__namespace.object({
|
|
1957
2092
|
documentId: IsValidReferenceDocumentId
|
|
1958
2093
|
});
|
|
1959
|
-
var SUpdateAsCreatorCreativeFormatVariantDocument =
|
|
2094
|
+
var SUpdateAsCreatorCreativeFormatVariantDocument = v35__namespace.object({
|
|
1960
2095
|
label: IsValidOrUndefinedLabel,
|
|
1961
2096
|
value: IsValidOrUndefinedValue,
|
|
1962
2097
|
description: IsValidOrUndefinedDescription,
|
|
1963
2098
|
is_active: IsValidOrUndefinedIsActive
|
|
1964
2099
|
});
|
|
1965
|
-
var SUpdateAsCreatorCreativeFormatVariantDocumentRequest =
|
|
2100
|
+
var SUpdateAsCreatorCreativeFormatVariantDocumentRequest = v35__namespace.object({
|
|
1966
2101
|
documentId: IsValidReferenceDocumentId,
|
|
1967
2102
|
data: SUpdateAsCreatorCreativeFormatVariantDocument
|
|
1968
2103
|
});
|
|
1969
|
-
var SUpdateAsInvitedCreativeFormatVariantDocument =
|
|
2104
|
+
var SUpdateAsInvitedCreativeFormatVariantDocument = v35__namespace.object({
|
|
1970
2105
|
label: IsValidOrUndefinedLabel,
|
|
1971
2106
|
description: IsValidDescription,
|
|
1972
2107
|
is_active: IsValidOrUndefinedIsActive
|
|
1973
2108
|
});
|
|
1974
|
-
var SUpdateAsInvitedCreativeFormatVariantDocumentRequest =
|
|
2109
|
+
var SUpdateAsInvitedCreativeFormatVariantDocumentRequest = v35__namespace.object({
|
|
1975
2110
|
documentId: IsValidReferenceDocumentId,
|
|
1976
2111
|
data: SUpdateAsInvitedCreativeFormatVariantDocument
|
|
1977
2112
|
});
|
|
1978
|
-
var SUpdateCreativeFormatVariantDocumentRequest =
|
|
2113
|
+
var SUpdateCreativeFormatVariantDocumentRequest = v35__namespace.union([
|
|
1979
2114
|
SUpdateAsCreatorCreativeFormatVariantDocument,
|
|
1980
2115
|
SUpdateAsInvitedCreativeFormatVariantDocument
|
|
1981
2116
|
]);
|
|
1982
|
-
var SDeleteCreativeFormatVariantDocument =
|
|
2117
|
+
var SDeleteCreativeFormatVariantDocument = v35__namespace.object({
|
|
1983
2118
|
documentId: IsValidReferenceDocumentId
|
|
1984
2119
|
});
|
|
1985
|
-
var SQueryListCreativeFormatDocuments =
|
|
2120
|
+
var SQueryListCreativeFormatDocuments = v35__namespace.object({
|
|
1986
2121
|
documentId: IsValidReferenceDocumentId,
|
|
1987
2122
|
page: IsValidMinPage,
|
|
1988
|
-
size:
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
2123
|
+
size: v35__namespace.fallback(
|
|
2124
|
+
v35__namespace.optional(
|
|
2125
|
+
v35__namespace.pipe(
|
|
2126
|
+
v35__namespace.number(),
|
|
2127
|
+
v35__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
2128
|
+
v35__namespace.maxValue(CREATIVE_FORMAT_PAGINATION_MAX_SIZE_LIMIT)
|
|
1994
2129
|
),
|
|
1995
2130
|
CREATIVE_FORMAT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1996
2131
|
),
|
|
1997
2132
|
CREATIVE_FORMAT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1998
2133
|
),
|
|
1999
|
-
label:
|
|
2000
|
-
value:
|
|
2001
|
-
is_active:
|
|
2002
|
-
group:
|
|
2003
|
-
creator:
|
|
2134
|
+
label: v35__namespace.optional(IsValidLabel),
|
|
2135
|
+
value: v35__namespace.optional(IsValidValue),
|
|
2136
|
+
is_active: v35__namespace.optional(IsValidIsActive),
|
|
2137
|
+
group: v35__namespace.optional(IsValidReferenceDocumentId),
|
|
2138
|
+
creator: v35__namespace.optional(IsValidReferenceDocumentId)
|
|
2004
2139
|
});
|
|
2005
|
-
var SCreateCreativeFormatDocument =
|
|
2140
|
+
var SCreateCreativeFormatDocument = v35__namespace.object({
|
|
2006
2141
|
group: IsValidReferenceDocumentId,
|
|
2007
2142
|
label: IsValidLabel,
|
|
2008
2143
|
value: IsValidValue,
|
|
2009
2144
|
description: IsValidDescription,
|
|
2010
2145
|
is_active: IsValidIsActive
|
|
2011
2146
|
});
|
|
2012
|
-
var SCreateMultipleCreativeFormatDocuments =
|
|
2013
|
-
creative_formats:
|
|
2014
|
-
|
|
2015
|
-
|
|
2147
|
+
var SCreateMultipleCreativeFormatDocuments = v35__namespace.object({
|
|
2148
|
+
creative_formats: v35__namespace.pipe(
|
|
2149
|
+
v35__namespace.array(SCreateCreativeFormatDocument),
|
|
2150
|
+
v35__namespace.minLength(1, "At least one creative format is required")
|
|
2016
2151
|
)
|
|
2017
2152
|
});
|
|
2018
|
-
var SReadCreativeFormatDocumentById =
|
|
2153
|
+
var SReadCreativeFormatDocumentById = v35__namespace.object({
|
|
2019
2154
|
id: IsValidReferenceId
|
|
2020
2155
|
});
|
|
2021
|
-
var SReadCreativeFormatDocumentByDocumentId =
|
|
2156
|
+
var SReadCreativeFormatDocumentByDocumentId = v35__namespace.object({
|
|
2022
2157
|
documentId: IsValidReferenceDocumentId
|
|
2023
2158
|
});
|
|
2024
|
-
var SUpdateAsCreatorCreativeFormatDocument =
|
|
2159
|
+
var SUpdateAsCreatorCreativeFormatDocument = v35__namespace.object({
|
|
2025
2160
|
label: IsValidOrUndefinedLabel,
|
|
2026
2161
|
value: IsValidOrUndefinedValue,
|
|
2027
2162
|
description: IsValidOrUndefinedDescription,
|
|
2028
2163
|
is_active: IsValidOrUndefinedIsActive
|
|
2029
2164
|
});
|
|
2030
|
-
var SUpdateAsCreatorCreativeFormatDocumentRequest =
|
|
2165
|
+
var SUpdateAsCreatorCreativeFormatDocumentRequest = v35__namespace.object({
|
|
2031
2166
|
documentId: IsValidReferenceDocumentId,
|
|
2032
2167
|
data: SUpdateAsCreatorCreativeFormatDocument
|
|
2033
2168
|
});
|
|
2034
|
-
var SUpdateAsInvitedCreativeFormatDocument =
|
|
2169
|
+
var SUpdateAsInvitedCreativeFormatDocument = v35__namespace.object({
|
|
2035
2170
|
label: IsValidOrUndefinedLabel,
|
|
2036
2171
|
description: IsValidDescription,
|
|
2037
2172
|
is_active: IsValidOrUndefinedIsActive
|
|
2038
2173
|
});
|
|
2039
|
-
var SUpdateAsInvitedCreativeFormatDocumentRequest =
|
|
2174
|
+
var SUpdateAsInvitedCreativeFormatDocumentRequest = v35__namespace.object({
|
|
2040
2175
|
documentId: IsValidReferenceDocumentId,
|
|
2041
2176
|
data: SUpdateAsInvitedCreativeFormatDocument
|
|
2042
2177
|
});
|
|
2043
|
-
var SUpdateCreativeFormatDocumentRequest =
|
|
2178
|
+
var SUpdateCreativeFormatDocumentRequest = v35__namespace.union([
|
|
2044
2179
|
SUpdateAsCreatorCreativeFormatDocument,
|
|
2045
2180
|
SUpdateAsInvitedCreativeFormatDocument
|
|
2046
2181
|
]);
|
|
2047
|
-
var SDeleteCreativeFormatDocument =
|
|
2182
|
+
var SDeleteCreativeFormatDocument = v35__namespace.object({
|
|
2048
2183
|
documentId: IsValidReferenceDocumentId
|
|
2049
2184
|
});
|
|
2050
|
-
var SQueryListMediumDocuments =
|
|
2185
|
+
var SQueryListMediumDocuments = v35__namespace.object({
|
|
2051
2186
|
documentId: IsValidReferenceDocumentId,
|
|
2052
2187
|
page: IsValidMinPage,
|
|
2053
|
-
size:
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2188
|
+
size: v35__namespace.fallback(
|
|
2189
|
+
v35__namespace.optional(
|
|
2190
|
+
v35__namespace.pipe(
|
|
2191
|
+
v35__namespace.number(),
|
|
2192
|
+
v35__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
2193
|
+
v35__namespace.maxValue(MEDIUM_PAGINATION_MAX_SIZE_LIMIT)
|
|
2059
2194
|
),
|
|
2060
2195
|
MEDIUM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2061
2196
|
),
|
|
2062
2197
|
MEDIUM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2063
2198
|
),
|
|
2064
|
-
label:
|
|
2065
|
-
value:
|
|
2066
|
-
is_active:
|
|
2067
|
-
group:
|
|
2068
|
-
creator:
|
|
2199
|
+
label: v35__namespace.optional(IsValidLabel),
|
|
2200
|
+
value: v35__namespace.optional(IsValidValue),
|
|
2201
|
+
is_active: v35__namespace.optional(IsValidIsActive),
|
|
2202
|
+
group: v35__namespace.optional(IsValidReferenceDocumentId),
|
|
2203
|
+
creator: v35__namespace.optional(IsValidReferenceDocumentId)
|
|
2069
2204
|
});
|
|
2070
|
-
var SCreateMediumDocument =
|
|
2205
|
+
var SCreateMediumDocument = v35__namespace.object({
|
|
2071
2206
|
group: IsValidReferenceDocumentId,
|
|
2072
2207
|
label: IsValidLabel,
|
|
2073
2208
|
value: IsValidValue,
|
|
2074
2209
|
description: IsValidDescription,
|
|
2075
2210
|
is_active: IsValidIsActive
|
|
2076
2211
|
});
|
|
2077
|
-
var SCreateMultipleMediumDocuments =
|
|
2078
|
-
mediums:
|
|
2079
|
-
|
|
2080
|
-
|
|
2212
|
+
var SCreateMultipleMediumDocuments = v35__namespace.object({
|
|
2213
|
+
mediums: v35__namespace.pipe(
|
|
2214
|
+
v35__namespace.array(SCreateMediumDocument),
|
|
2215
|
+
v35__namespace.minLength(1, "At least one medium is required")
|
|
2081
2216
|
)
|
|
2082
2217
|
});
|
|
2083
|
-
var SReadMediumDocumentById =
|
|
2218
|
+
var SReadMediumDocumentById = v35__namespace.object({
|
|
2084
2219
|
id: IsValidReferenceId
|
|
2085
2220
|
});
|
|
2086
|
-
var SReadMediumDocumentByDocumentId =
|
|
2221
|
+
var SReadMediumDocumentByDocumentId = v35__namespace.object({
|
|
2087
2222
|
documentId: IsValidReferenceDocumentId
|
|
2088
2223
|
});
|
|
2089
|
-
var SUpdateAsCreatorMediumDocument =
|
|
2224
|
+
var SUpdateAsCreatorMediumDocument = v35__namespace.object({
|
|
2090
2225
|
label: IsValidOrUndefinedLabel,
|
|
2091
2226
|
value: IsValidOrUndefinedValue,
|
|
2092
2227
|
description: IsValidOrUndefinedDescription,
|
|
2093
2228
|
is_active: IsValidOrUndefinedIsActive
|
|
2094
2229
|
});
|
|
2095
|
-
var SUpdateAsCreatorMediumDocumentRequest =
|
|
2230
|
+
var SUpdateAsCreatorMediumDocumentRequest = v35__namespace.object({
|
|
2096
2231
|
documentId: IsValidReferenceDocumentId,
|
|
2097
2232
|
data: SUpdateAsCreatorMediumDocument
|
|
2098
2233
|
});
|
|
2099
|
-
var SUpdateAsInvitedMediumDocument =
|
|
2234
|
+
var SUpdateAsInvitedMediumDocument = v35__namespace.object({
|
|
2100
2235
|
label: IsValidOrUndefinedLabel,
|
|
2101
2236
|
description: IsValidDescription,
|
|
2102
2237
|
is_active: IsValidOrUndefinedIsActive
|
|
2103
2238
|
});
|
|
2104
|
-
var SUpdateAsInvitedMediumDocumentRequest =
|
|
2239
|
+
var SUpdateAsInvitedMediumDocumentRequest = v35__namespace.object({
|
|
2105
2240
|
documentId: IsValidReferenceDocumentId,
|
|
2106
2241
|
data: SUpdateAsInvitedMediumDocument
|
|
2107
2242
|
});
|
|
2108
|
-
var SUpdateMediumDocumentRequest =
|
|
2243
|
+
var SUpdateMediumDocumentRequest = v35__namespace.union([
|
|
2109
2244
|
SUpdateAsCreatorMediumDocument,
|
|
2110
2245
|
SUpdateAsInvitedMediumDocument
|
|
2111
2246
|
]);
|
|
2112
|
-
var SDeleteMediumDocument =
|
|
2247
|
+
var SDeleteMediumDocument = v35__namespace.object({
|
|
2113
2248
|
documentId: IsValidReferenceDocumentId
|
|
2114
2249
|
});
|
|
2115
|
-
var SQueryListSourceDocuments =
|
|
2250
|
+
var SQueryListSourceDocuments = v35__namespace.object({
|
|
2116
2251
|
documentId: IsValidReferenceDocumentId,
|
|
2117
2252
|
page: IsValidMinPage,
|
|
2118
|
-
size:
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2253
|
+
size: v35__namespace.fallback(
|
|
2254
|
+
v35__namespace.optional(
|
|
2255
|
+
v35__namespace.pipe(
|
|
2256
|
+
v35__namespace.number(),
|
|
2257
|
+
v35__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
2258
|
+
v35__namespace.maxValue(SOURCE_PAGINATION_MAX_SIZE_LIMIT)
|
|
2124
2259
|
),
|
|
2125
2260
|
SOURCE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2126
2261
|
),
|
|
2127
2262
|
SOURCE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2128
2263
|
),
|
|
2129
|
-
label:
|
|
2130
|
-
value:
|
|
2131
|
-
is_active:
|
|
2132
|
-
group:
|
|
2133
|
-
creator:
|
|
2264
|
+
label: v35__namespace.optional(IsValidLabel),
|
|
2265
|
+
value: v35__namespace.optional(IsValidValue),
|
|
2266
|
+
is_active: v35__namespace.optional(IsValidIsActive),
|
|
2267
|
+
group: v35__namespace.optional(IsValidReferenceDocumentId),
|
|
2268
|
+
creator: v35__namespace.optional(IsValidReferenceDocumentId)
|
|
2134
2269
|
});
|
|
2135
|
-
var SCreateSourceDocument =
|
|
2270
|
+
var SCreateSourceDocument = v35__namespace.object({
|
|
2136
2271
|
group: IsValidReferenceDocumentId,
|
|
2137
2272
|
label: IsValidLabel,
|
|
2138
2273
|
value: IsValidValue,
|
|
2139
2274
|
description: IsValidDescription,
|
|
2140
2275
|
is_active: IsValidIsActive
|
|
2141
2276
|
});
|
|
2142
|
-
var SCreateMultipleSourceDocuments =
|
|
2143
|
-
sources:
|
|
2144
|
-
|
|
2145
|
-
|
|
2277
|
+
var SCreateMultipleSourceDocuments = v35__namespace.object({
|
|
2278
|
+
sources: v35__namespace.pipe(
|
|
2279
|
+
v35__namespace.array(SCreateSourceDocument),
|
|
2280
|
+
v35__namespace.minLength(1, "At least one source is required")
|
|
2146
2281
|
)
|
|
2147
2282
|
});
|
|
2148
|
-
var SReadSourceDocumentById =
|
|
2283
|
+
var SReadSourceDocumentById = v35__namespace.object({
|
|
2149
2284
|
id: IsValidReferenceId
|
|
2150
2285
|
});
|
|
2151
|
-
var SReadSourceDocumentByDocumentId =
|
|
2286
|
+
var SReadSourceDocumentByDocumentId = v35__namespace.object({
|
|
2152
2287
|
documentId: IsValidReferenceDocumentId
|
|
2153
2288
|
});
|
|
2154
|
-
var SUpdateAsCreatorSourceDocument =
|
|
2289
|
+
var SUpdateAsCreatorSourceDocument = v35__namespace.object({
|
|
2155
2290
|
label: IsValidOrUndefinedLabel,
|
|
2156
2291
|
value: IsValidOrUndefinedValue,
|
|
2157
2292
|
description: IsValidOrUndefinedDescription,
|
|
2158
2293
|
is_active: IsValidOrUndefinedIsActive
|
|
2159
2294
|
});
|
|
2160
|
-
var SUpdateAsCreatorSourceDocumentRequest =
|
|
2295
|
+
var SUpdateAsCreatorSourceDocumentRequest = v35__namespace.object({
|
|
2161
2296
|
documentId: IsValidReferenceDocumentId,
|
|
2162
2297
|
data: SUpdateAsCreatorSourceDocument
|
|
2163
2298
|
});
|
|
2164
|
-
var SUpdateAsInvitedSourceDocument =
|
|
2299
|
+
var SUpdateAsInvitedSourceDocument = v35__namespace.object({
|
|
2165
2300
|
label: IsValidOrUndefinedLabel,
|
|
2166
2301
|
description: IsValidDescription,
|
|
2167
2302
|
is_active: IsValidOrUndefinedIsActive
|
|
2168
2303
|
});
|
|
2169
|
-
var SUpdateAsInvitedSourceDocumentRequest =
|
|
2304
|
+
var SUpdateAsInvitedSourceDocumentRequest = v35__namespace.object({
|
|
2170
2305
|
documentId: IsValidReferenceDocumentId,
|
|
2171
2306
|
data: SUpdateAsInvitedSourceDocument
|
|
2172
2307
|
});
|
|
2173
|
-
var SUpdateSourceDocumentRequest =
|
|
2308
|
+
var SUpdateSourceDocumentRequest = v35__namespace.union([
|
|
2174
2309
|
SUpdateAsCreatorSourceDocument,
|
|
2175
2310
|
SUpdateAsInvitedSourceDocument
|
|
2176
2311
|
]);
|
|
2177
|
-
var SDeleteSourceDocument =
|
|
2312
|
+
var SDeleteSourceDocument = v35__namespace.object({
|
|
2178
2313
|
documentId: IsValidReferenceDocumentId
|
|
2179
2314
|
});
|
|
2180
|
-
var SQueryListTermDocuments =
|
|
2315
|
+
var SQueryListTermDocuments = v35__namespace.object({
|
|
2181
2316
|
documentId: IsValidReferenceDocumentId,
|
|
2182
2317
|
page: IsValidMinPage,
|
|
2183
|
-
size:
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2318
|
+
size: v35__namespace.fallback(
|
|
2319
|
+
v35__namespace.optional(
|
|
2320
|
+
v35__namespace.pipe(
|
|
2321
|
+
v35__namespace.number(),
|
|
2322
|
+
v35__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
2323
|
+
v35__namespace.maxValue(TERM_PAGINATION_MAX_SIZE_LIMIT)
|
|
2189
2324
|
),
|
|
2190
2325
|
TERM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2191
2326
|
),
|
|
2192
2327
|
TERM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2193
2328
|
),
|
|
2194
|
-
label:
|
|
2195
|
-
value:
|
|
2196
|
-
is_active:
|
|
2197
|
-
group:
|
|
2198
|
-
creator:
|
|
2329
|
+
label: v35__namespace.optional(IsValidLabel),
|
|
2330
|
+
value: v35__namespace.optional(IsValidValue),
|
|
2331
|
+
is_active: v35__namespace.optional(IsValidIsActive),
|
|
2332
|
+
group: v35__namespace.optional(IsValidReferenceDocumentId),
|
|
2333
|
+
creator: v35__namespace.optional(IsValidReferenceDocumentId)
|
|
2199
2334
|
});
|
|
2200
|
-
var SCreateTermDocument =
|
|
2335
|
+
var SCreateTermDocument = v35__namespace.object({
|
|
2201
2336
|
group: IsValidReferenceDocumentId,
|
|
2202
2337
|
label: IsValidLabel,
|
|
2203
2338
|
value: IsValidValue,
|
|
2204
2339
|
description: IsValidDescription,
|
|
2205
2340
|
is_active: IsValidIsActive
|
|
2206
2341
|
});
|
|
2207
|
-
var SCreateMultipleTermDocuments =
|
|
2208
|
-
terms:
|
|
2209
|
-
|
|
2210
|
-
|
|
2342
|
+
var SCreateMultipleTermDocuments = v35__namespace.object({
|
|
2343
|
+
terms: v35__namespace.pipe(
|
|
2344
|
+
v35__namespace.array(SCreateTermDocument),
|
|
2345
|
+
v35__namespace.minLength(1, "At least one term is required")
|
|
2211
2346
|
)
|
|
2212
2347
|
});
|
|
2213
|
-
var SReadTermDocumentById =
|
|
2348
|
+
var SReadTermDocumentById = v35__namespace.object({
|
|
2214
2349
|
id: IsValidReferenceId
|
|
2215
2350
|
});
|
|
2216
|
-
var SReadTermDocumentByDocumentId =
|
|
2351
|
+
var SReadTermDocumentByDocumentId = v35__namespace.object({
|
|
2217
2352
|
documentId: IsValidReferenceDocumentId
|
|
2218
2353
|
});
|
|
2219
|
-
var SUpdateAsCreatorTermDocument =
|
|
2354
|
+
var SUpdateAsCreatorTermDocument = v35__namespace.object({
|
|
2220
2355
|
label: IsValidOrUndefinedLabel,
|
|
2221
2356
|
value: IsValidOrUndefinedValue,
|
|
2222
2357
|
description: IsValidOrUndefinedDescription,
|
|
2223
2358
|
is_active: IsValidOrUndefinedIsActive
|
|
2224
2359
|
});
|
|
2225
|
-
var SUpdateAsCreatorTermDocumentRequest =
|
|
2360
|
+
var SUpdateAsCreatorTermDocumentRequest = v35__namespace.object({
|
|
2226
2361
|
documentId: IsValidReferenceDocumentId,
|
|
2227
2362
|
data: SUpdateAsCreatorTermDocument
|
|
2228
2363
|
});
|
|
2229
|
-
var SUpdateAsInvitedTermDocument =
|
|
2364
|
+
var SUpdateAsInvitedTermDocument = v35__namespace.object({
|
|
2230
2365
|
label: IsValidOrUndefinedLabel,
|
|
2231
2366
|
description: IsValidDescription,
|
|
2232
2367
|
is_active: IsValidOrUndefinedIsActive
|
|
2233
2368
|
});
|
|
2234
|
-
var SUpdateAsInvitedTermDocumentRequest =
|
|
2369
|
+
var SUpdateAsInvitedTermDocumentRequest = v35__namespace.object({
|
|
2235
2370
|
documentId: IsValidReferenceDocumentId,
|
|
2236
2371
|
data: SUpdateAsInvitedTermDocument
|
|
2237
2372
|
});
|
|
2238
|
-
var SUpdateTermDocumentRequest =
|
|
2373
|
+
var SUpdateTermDocumentRequest = v35__namespace.union([
|
|
2239
2374
|
SUpdateAsCreatorTermDocument,
|
|
2240
2375
|
SUpdateAsInvitedTermDocument
|
|
2241
2376
|
]);
|
|
2242
|
-
var SDeleteTermDocument =
|
|
2377
|
+
var SDeleteTermDocument = v35__namespace.object({
|
|
2243
2378
|
documentId: IsValidReferenceDocumentId
|
|
2244
2379
|
});
|
|
2245
|
-
var SQueryListWebsiteDocuments =
|
|
2380
|
+
var SQueryListWebsiteDocuments = v35__namespace.object({
|
|
2246
2381
|
documentId: IsValidReferenceDocumentId,
|
|
2247
2382
|
page: IsValidMinPage,
|
|
2248
|
-
size:
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2383
|
+
size: v35__namespace.fallback(
|
|
2384
|
+
v35__namespace.optional(
|
|
2385
|
+
v35__namespace.pipe(
|
|
2386
|
+
v35__namespace.number(),
|
|
2387
|
+
v35__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
2388
|
+
v35__namespace.maxValue(WEBSITE_PAGINATION_MAX_SIZE_LIMIT)
|
|
2254
2389
|
),
|
|
2255
2390
|
WEBSITE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2256
2391
|
),
|
|
2257
2392
|
WEBSITE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2258
2393
|
),
|
|
2259
|
-
domain:
|
|
2260
|
-
is_active:
|
|
2261
|
-
is_secure:
|
|
2262
|
-
group:
|
|
2263
|
-
creator:
|
|
2394
|
+
domain: v35__namespace.optional(IsValidUrlDomain),
|
|
2395
|
+
is_active: v35__namespace.optional(IsValidIsActive),
|
|
2396
|
+
is_secure: v35__namespace.optional(IsValidIsSecure),
|
|
2397
|
+
group: v35__namespace.optional(IsValidReferenceDocumentId),
|
|
2398
|
+
creator: v35__namespace.optional(IsValidReferenceDocumentId)
|
|
2264
2399
|
});
|
|
2265
|
-
var SCreateWebsiteDocument =
|
|
2400
|
+
var SCreateWebsiteDocument = v35__namespace.object({
|
|
2266
2401
|
group: IsValidReferenceDocumentId,
|
|
2267
2402
|
domain: IsValidUrlDomain,
|
|
2268
2403
|
description: IsValidOrUndefinedDescription,
|
|
2269
2404
|
is_secure: IsValidIsSecure,
|
|
2270
2405
|
is_active: IsValidIsActive
|
|
2271
2406
|
});
|
|
2272
|
-
var SCreateMultipleWebsiteDocuments =
|
|
2273
|
-
websites:
|
|
2274
|
-
|
|
2275
|
-
|
|
2407
|
+
var SCreateMultipleWebsiteDocuments = v35__namespace.object({
|
|
2408
|
+
websites: v35__namespace.pipe(
|
|
2409
|
+
v35__namespace.array(SCreateWebsiteDocument),
|
|
2410
|
+
v35__namespace.minLength(1, "At least one website is required")
|
|
2276
2411
|
)
|
|
2277
2412
|
});
|
|
2278
|
-
var SReadWebsiteDocumentById =
|
|
2413
|
+
var SReadWebsiteDocumentById = v35__namespace.object({
|
|
2279
2414
|
id: IsValidReferenceId
|
|
2280
2415
|
});
|
|
2281
|
-
var SReadWebsiteDocumentByDocumentId =
|
|
2416
|
+
var SReadWebsiteDocumentByDocumentId = v35__namespace.object({
|
|
2282
2417
|
documentId: IsValidReferenceDocumentId
|
|
2283
2418
|
});
|
|
2284
|
-
var SUpdateAsCreatorWebsiteDocument =
|
|
2419
|
+
var SUpdateAsCreatorWebsiteDocument = v35__namespace.object({
|
|
2285
2420
|
domain: IsValidOrUndefinedUrlDomain,
|
|
2286
2421
|
description: IsValidOrUndefinedDescription,
|
|
2287
2422
|
is_secure: IsValidIsSecure,
|
|
2288
2423
|
is_active: IsValidIsActive
|
|
2289
2424
|
});
|
|
2290
|
-
var SUpdateAsCreatorWebsiteDocumentRequest =
|
|
2425
|
+
var SUpdateAsCreatorWebsiteDocumentRequest = v35__namespace.object({
|
|
2291
2426
|
documentId: IsValidReferenceDocumentId,
|
|
2292
2427
|
data: SUpdateAsCreatorWebsiteDocument
|
|
2293
2428
|
});
|
|
2294
|
-
var SUpdateAsInvitedWebsiteDocument =
|
|
2429
|
+
var SUpdateAsInvitedWebsiteDocument = v35__namespace.object({
|
|
2295
2430
|
description: IsValidOrUndefinedDescription
|
|
2296
2431
|
});
|
|
2297
|
-
var SUpdateAsInvitedWebsiteDocumentRequest =
|
|
2432
|
+
var SUpdateAsInvitedWebsiteDocumentRequest = v35__namespace.object({
|
|
2298
2433
|
documentId: IsValidReferenceDocumentId,
|
|
2299
2434
|
data: SUpdateAsInvitedWebsiteDocument
|
|
2300
2435
|
});
|
|
2301
|
-
var SUpdateWebsiteDocumentRequest =
|
|
2436
|
+
var SUpdateWebsiteDocumentRequest = v35__namespace.union([
|
|
2302
2437
|
SUpdateAsCreatorWebsiteDocument,
|
|
2303
2438
|
SUpdateAsInvitedWebsiteDocument
|
|
2304
2439
|
]);
|
|
2305
|
-
var SDeleteWebsiteDocument =
|
|
2440
|
+
var SDeleteWebsiteDocument = v35__namespace.object({
|
|
2306
2441
|
documentId: IsValidReferenceDocumentId
|
|
2307
2442
|
});
|
|
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
2443
|
|
|
2429
2444
|
// src/templates/utm-campaign-phase.defaults.ts
|
|
2430
2445
|
var DEFAULT_CAMPAIGN_PHASES = {
|
|
@@ -3047,10 +3062,10 @@ function datePlusDays(today, days = 30) {
|
|
|
3047
3062
|
function validateAndClean(schema, input) {
|
|
3048
3063
|
var _a, _b;
|
|
3049
3064
|
try {
|
|
3050
|
-
const parsed =
|
|
3065
|
+
const parsed = v35__namespace.parse(schema, input);
|
|
3051
3066
|
return { data: parsed, error: null, errors: null };
|
|
3052
3067
|
} catch (err) {
|
|
3053
|
-
if (err instanceof
|
|
3068
|
+
if (err instanceof v35__namespace.ValiError) {
|
|
3054
3069
|
const errors = {};
|
|
3055
3070
|
for (const issue of err.issues) {
|
|
3056
3071
|
const field = ((_b = (_a = issue.path) == null ? void 0 : _a[0]) == null ? void 0 : _b.key) || "unknown";
|
|
@@ -3358,6 +3373,7 @@ exports.SGroupRelationWebsites = SGroupRelationWebsites;
|
|
|
3358
3373
|
exports.SGroupRelationsDocument = SGroupRelationsDocument;
|
|
3359
3374
|
exports.SGroupUserDocument = SGroupUserDocument;
|
|
3360
3375
|
exports.SGroupUserDocumentReqRelations = SGroupUserDocumentReqRelations;
|
|
3376
|
+
exports.SGroupUserDocumentStatus = SGroupUserDocumentStatus;
|
|
3361
3377
|
exports.SGroupUserDocumentWithRelations = SGroupUserDocumentWithRelations;
|
|
3362
3378
|
exports.SGroupUserRelationsDocument = SGroupUserRelationsDocument;
|
|
3363
3379
|
exports.SGroupUserRelationsReqDocument = SGroupUserRelationsReqDocument;
|
|
@@ -3552,6 +3568,7 @@ exports.SUserRelationTrackingLinks = SUserRelationTrackingLinks;
|
|
|
3552
3568
|
exports.SUserRelationsDocument = SUserRelationsDocument;
|
|
3553
3569
|
exports.SUtmLinkBuilderPartCampaignDateOptions = SUtmLinkBuilderPartCampaignDateOptions;
|
|
3554
3570
|
exports.SUtmLinkBuilderTableForm = SUtmLinkBuilderTableForm;
|
|
3571
|
+
exports.SVerifyGroupUserDocument = SVerifyGroupUserDocument;
|
|
3555
3572
|
exports.SWebsiteDocument = SWebsiteDocument;
|
|
3556
3573
|
exports.SWebsiteDocumentWithRelations = SWebsiteDocumentWithRelations;
|
|
3557
3574
|
exports.SWebsiteRelationsDocument = SWebsiteRelationsDocument;
|