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