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