@joeygrable94/utm-src-pub-validators 0.0.45 → 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 +829 -828
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +57 -13
- package/dist/index.d.ts +57 -13
- package/dist/index.js +827 -828
- 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,111 +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
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
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()
|
|
895
887
|
});
|
|
896
888
|
|
|
897
889
|
// src/entities/user-limitations/user-limitations.document.ts
|
|
898
|
-
var SUserLimitationsDocument =
|
|
890
|
+
var SUserLimitationsDocument = v44__namespace.intersect([
|
|
899
891
|
SBaseDocument,
|
|
900
892
|
SBaseUserLimitationsDocument
|
|
901
893
|
]);
|
|
902
|
-
|
|
903
|
-
|
|
894
|
+
|
|
895
|
+
// src/entities/user-limitations/user-limitations.relations.ts
|
|
896
|
+
var SUserLimitationsRelationsDocument = SBaseRelationUser;
|
|
897
|
+
var SBaseCampaignIdDocument = v44__namespace.intersect([
|
|
904
898
|
SBaseCostDocument,
|
|
905
899
|
SBaseUtmParamDocument
|
|
906
900
|
]);
|
|
@@ -915,72 +909,72 @@ var SBaseCreativeFormatVariantDocument = SBaseUtmParamDocument;
|
|
|
915
909
|
var SBaseTermDocument = SBaseUtmParamDocument;
|
|
916
910
|
|
|
917
911
|
// src/entities/utm/param.documents.ts
|
|
918
|
-
var SCampaignIdDocument =
|
|
919
|
-
var SCampaignPhaseDocument =
|
|
912
|
+
var SCampaignIdDocument = v44__namespace.intersect([SBaseDocument, SBaseCampaignIdDocument]);
|
|
913
|
+
var SCampaignPhaseDocument = v44__namespace.intersect([
|
|
920
914
|
SBaseDocument,
|
|
921
915
|
SBaseCampaignPhaseDocument
|
|
922
916
|
]);
|
|
923
|
-
var SCampaignProductDocument =
|
|
917
|
+
var SCampaignProductDocument = v44__namespace.intersect([
|
|
924
918
|
SBaseDocument,
|
|
925
919
|
SBaseCampaignProductDocument
|
|
926
920
|
]);
|
|
927
|
-
var SCampaignKeyDocument =
|
|
921
|
+
var SCampaignKeyDocument = v44__namespace.intersect([
|
|
928
922
|
SBaseDocument,
|
|
929
923
|
SBaseCampaignKeyDocument
|
|
930
924
|
]);
|
|
931
|
-
var SSourceDocument =
|
|
932
|
-
var SMediumDocument =
|
|
933
|
-
var SContentDocument =
|
|
934
|
-
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([
|
|
935
929
|
SBaseDocument,
|
|
936
930
|
SBaseCreativeFormatDocument
|
|
937
931
|
]);
|
|
938
|
-
var SCreativeFormatVariantDocument =
|
|
932
|
+
var SCreativeFormatVariantDocument = v44__namespace.intersect([
|
|
939
933
|
SBaseDocument,
|
|
940
934
|
SBaseCreativeFormatVariantDocument
|
|
941
935
|
]);
|
|
942
|
-
var STermDocument =
|
|
943
|
-
var SCampaignIdRelationsDocument =
|
|
936
|
+
var STermDocument = v44__namespace.intersect([SBaseDocument, SBaseTermDocument]);
|
|
937
|
+
var SCampaignIdRelationsDocument = v44__namespace.intersect([
|
|
944
938
|
SBaseRelationGroup,
|
|
945
939
|
SBaseRelationCreator
|
|
946
940
|
]);
|
|
947
|
-
var SCampaignPhaseRelationsDocument =
|
|
941
|
+
var SCampaignPhaseRelationsDocument = v44__namespace.intersect([
|
|
948
942
|
SBaseRelationGroup,
|
|
949
943
|
SBaseRelationCreator
|
|
950
944
|
]);
|
|
951
|
-
var SCampaignProductRelationsDocument =
|
|
945
|
+
var SCampaignProductRelationsDocument = v44__namespace.intersect([
|
|
952
946
|
SBaseRelationGroup,
|
|
953
947
|
SBaseRelationCreator
|
|
954
948
|
]);
|
|
955
|
-
var SCampaignKeyRelationsDocument =
|
|
949
|
+
var SCampaignKeyRelationsDocument = v44__namespace.intersect([
|
|
956
950
|
SBaseRelationGroup,
|
|
957
951
|
SBaseRelationCreator
|
|
958
952
|
]);
|
|
959
|
-
var SSourceRelationsDocument =
|
|
953
|
+
var SSourceRelationsDocument = v44__namespace.intersect([
|
|
960
954
|
SBaseRelationGroup,
|
|
961
955
|
SBaseRelationCreator
|
|
962
956
|
]);
|
|
963
|
-
var SMediumRelationsDocument =
|
|
957
|
+
var SMediumRelationsDocument = v44__namespace.intersect([
|
|
964
958
|
SBaseRelationGroup,
|
|
965
959
|
SBaseRelationCreator
|
|
966
960
|
]);
|
|
967
|
-
var SContentRelationsDocument =
|
|
961
|
+
var SContentRelationsDocument = v44__namespace.intersect([
|
|
968
962
|
SBaseRelationGroup,
|
|
969
963
|
SBaseRelationCreator
|
|
970
964
|
]);
|
|
971
|
-
var SCreativeFormatRelationsDocument =
|
|
965
|
+
var SCreativeFormatRelationsDocument = v44__namespace.intersect([
|
|
972
966
|
SBaseRelationGroup,
|
|
973
967
|
SBaseRelationCreator
|
|
974
968
|
]);
|
|
975
|
-
var SCreativeFormatVariantRelationsDocument =
|
|
969
|
+
var SCreativeFormatVariantRelationsDocument = v44__namespace.intersect([
|
|
976
970
|
SBaseRelationGroup,
|
|
977
971
|
SBaseRelationCreator
|
|
978
972
|
]);
|
|
979
|
-
var STermRelationsDocument =
|
|
973
|
+
var STermRelationsDocument = v44__namespace.intersect([
|
|
980
974
|
SBaseRelationGroup,
|
|
981
975
|
SBaseRelationCreator
|
|
982
976
|
]);
|
|
983
|
-
var SBaseWebsiteDocument =
|
|
977
|
+
var SBaseWebsiteDocument = v44__namespace.object({
|
|
984
978
|
domain: IsValidUrlDomain,
|
|
985
979
|
description: IsValidDescription,
|
|
986
980
|
is_secure: IsValidIsSecure,
|
|
@@ -988,71 +982,71 @@ var SBaseWebsiteDocument = v47__namespace.object({
|
|
|
988
982
|
});
|
|
989
983
|
|
|
990
984
|
// src/entities/website/website.document.ts
|
|
991
|
-
var SWebsiteDocument =
|
|
992
|
-
var SWebsiteRelationsDocument =
|
|
985
|
+
var SWebsiteDocument = v44__namespace.intersect([SBaseDocument, SBaseWebsiteDocument]);
|
|
986
|
+
var SWebsiteRelationsDocument = v44__namespace.intersect([
|
|
993
987
|
SBaseRelationGroup,
|
|
994
988
|
SBaseRelationCreator
|
|
995
989
|
]);
|
|
996
990
|
|
|
997
991
|
// src/entities/user/user.relations.ts
|
|
998
|
-
var SUserRelationRole =
|
|
999
|
-
role:
|
|
992
|
+
var SUserRelationRole = v44__namespace.object({
|
|
993
|
+
role: v44__namespace.optional(SRoleDocument)
|
|
1000
994
|
});
|
|
1001
|
-
var SUserRelationReqRole =
|
|
995
|
+
var SUserRelationReqRole = v44__namespace.object({
|
|
1002
996
|
role: SRoleDocument
|
|
1003
997
|
});
|
|
1004
|
-
var SUserRelationAccount =
|
|
1005
|
-
account:
|
|
998
|
+
var SUserRelationAccount = v44__namespace.object({
|
|
999
|
+
account: v44__namespace.optional(SUserAccountDocument)
|
|
1006
1000
|
});
|
|
1007
|
-
var SUserRelationReqAccount =
|
|
1001
|
+
var SUserRelationReqAccount = v44__namespace.object({
|
|
1008
1002
|
account: SUserAccountDocument
|
|
1009
1003
|
});
|
|
1010
|
-
var SUserRelationLimits =
|
|
1011
|
-
limits:
|
|
1004
|
+
var SUserRelationLimits = v44__namespace.object({
|
|
1005
|
+
limits: v44__namespace.optional(SUserLimitationsDocument)
|
|
1012
1006
|
});
|
|
1013
|
-
var SUserRelationReqLimits =
|
|
1007
|
+
var SUserRelationReqLimits = v44__namespace.object({
|
|
1014
1008
|
limits: SUserLimitationsDocument
|
|
1015
1009
|
});
|
|
1016
|
-
var SUserRelationAuthorizedGroups =
|
|
1017
|
-
authorized_groups:
|
|
1010
|
+
var SUserRelationAuthorizedGroups = v44__namespace.object({
|
|
1011
|
+
authorized_groups: v44__namespace.optional(v44__namespace.array(SGroupDocument))
|
|
1018
1012
|
});
|
|
1019
|
-
var SUserRelationCreatedWebsites =
|
|
1020
|
-
created_websites:
|
|
1013
|
+
var SUserRelationCreatedWebsites = v44__namespace.object({
|
|
1014
|
+
created_websites: v44__namespace.optional(v44__namespace.array(SWebsiteDocument))
|
|
1021
1015
|
});
|
|
1022
|
-
var SUserRelationTrackingLinks =
|
|
1023
|
-
tracking_links:
|
|
1016
|
+
var SUserRelationTrackingLinks = v44__namespace.object({
|
|
1017
|
+
tracking_links: v44__namespace.optional(v44__namespace.array(STrackingLinkDocument))
|
|
1024
1018
|
});
|
|
1025
|
-
var SUserRelationSources =
|
|
1026
|
-
utm_sources:
|
|
1019
|
+
var SUserRelationSources = v44__namespace.object({
|
|
1020
|
+
utm_sources: v44__namespace.optional(v44__namespace.array(SSourceDocument))
|
|
1027
1021
|
});
|
|
1028
|
-
var SUserRelationMediums =
|
|
1029
|
-
utm_mediums:
|
|
1022
|
+
var SUserRelationMediums = v44__namespace.object({
|
|
1023
|
+
utm_mediums: v44__namespace.optional(v44__namespace.array(SMediumDocument))
|
|
1030
1024
|
});
|
|
1031
|
-
var SUserRelationCampaignIds =
|
|
1032
|
-
utm_ids:
|
|
1025
|
+
var SUserRelationCampaignIds = v44__namespace.object({
|
|
1026
|
+
utm_ids: v44__namespace.optional(v44__namespace.array(SCampaignIdDocument))
|
|
1033
1027
|
});
|
|
1034
|
-
var SUserRelationCampaignPhases =
|
|
1035
|
-
utm_campaign_phases:
|
|
1028
|
+
var SUserRelationCampaignPhases = v44__namespace.object({
|
|
1029
|
+
utm_campaign_phases: v44__namespace.optional(v44__namespace.array(SCampaignPhaseDocument))
|
|
1036
1030
|
});
|
|
1037
|
-
var SUserRelationCampaignProducts =
|
|
1038
|
-
utm_campaign_products:
|
|
1031
|
+
var SUserRelationCampaignProducts = v44__namespace.object({
|
|
1032
|
+
utm_campaign_products: v44__namespace.optional(v44__namespace.array(SCampaignProductDocument))
|
|
1039
1033
|
});
|
|
1040
|
-
var SUserRelationCampaignKeys =
|
|
1041
|
-
utm_campaign_keys:
|
|
1034
|
+
var SUserRelationCampaignKeys = v44__namespace.object({
|
|
1035
|
+
utm_campaign_keys: v44__namespace.optional(v44__namespace.array(SCampaignKeyDocument))
|
|
1042
1036
|
});
|
|
1043
|
-
var SUserRelationContents =
|
|
1044
|
-
utm_contents:
|
|
1037
|
+
var SUserRelationContents = v44__namespace.object({
|
|
1038
|
+
utm_contents: v44__namespace.optional(v44__namespace.array(SContentDocument))
|
|
1045
1039
|
});
|
|
1046
|
-
var SUserRelationCreativeFormats =
|
|
1047
|
-
utm_creative_formats:
|
|
1040
|
+
var SUserRelationCreativeFormats = v44__namespace.object({
|
|
1041
|
+
utm_creative_formats: v44__namespace.optional(v44__namespace.array(SCreativeFormatDocument))
|
|
1048
1042
|
});
|
|
1049
|
-
var SUserRelationCreativeFormatVariants =
|
|
1050
|
-
utm_creative_format_variants:
|
|
1043
|
+
var SUserRelationCreativeFormatVariants = v44__namespace.object({
|
|
1044
|
+
utm_creative_format_variants: v44__namespace.optional(v44__namespace.array(SCreativeFormatVariantDocument))
|
|
1051
1045
|
});
|
|
1052
|
-
var SUserRelationTerms =
|
|
1053
|
-
utm_terms:
|
|
1046
|
+
var SUserRelationTerms = v44__namespace.object({
|
|
1047
|
+
utm_terms: v44__namespace.optional(v44__namespace.array(STermDocument))
|
|
1054
1048
|
});
|
|
1055
|
-
var SUserRelationsDocument =
|
|
1049
|
+
var SUserRelationsDocument = v44__namespace.intersect([
|
|
1056
1050
|
SUserRelationRole,
|
|
1057
1051
|
SBaseRelationGroups,
|
|
1058
1052
|
SUserRelationAuthorizedGroups,
|
|
@@ -1071,46 +1065,46 @@ var SUserRelationsDocument = v47__namespace.intersect([
|
|
|
1071
1065
|
]);
|
|
1072
1066
|
|
|
1073
1067
|
// src/entities/group/group.relations.ts
|
|
1074
|
-
var SGroupRelationAuthorizedUsers =
|
|
1075
|
-
authorized_users:
|
|
1068
|
+
var SGroupRelationAuthorizedUsers = v44__namespace.object({
|
|
1069
|
+
authorized_users: v44__namespace.optional(v44__namespace.array(SUserDocument))
|
|
1076
1070
|
});
|
|
1077
|
-
var SGroupRelationWebsites =
|
|
1078
|
-
websites:
|
|
1071
|
+
var SGroupRelationWebsites = v44__namespace.object({
|
|
1072
|
+
websites: v44__namespace.optional(SWebsiteDocument)
|
|
1079
1073
|
});
|
|
1080
|
-
var SGroupRelationTrackingLinks =
|
|
1081
|
-
tracking_links:
|
|
1074
|
+
var SGroupRelationTrackingLinks = v44__namespace.object({
|
|
1075
|
+
tracking_links: v44__namespace.optional(v44__namespace.array(STrackingLinkDocument))
|
|
1082
1076
|
});
|
|
1083
|
-
var SGroupRelationSources =
|
|
1084
|
-
utm_sources:
|
|
1077
|
+
var SGroupRelationSources = v44__namespace.object({
|
|
1078
|
+
utm_sources: v44__namespace.optional(v44__namespace.array(SSourceDocument))
|
|
1085
1079
|
});
|
|
1086
|
-
var SGroupRelationMediums =
|
|
1087
|
-
utm_mediums:
|
|
1080
|
+
var SGroupRelationMediums = v44__namespace.object({
|
|
1081
|
+
utm_mediums: v44__namespace.optional(v44__namespace.array(SMediumDocument))
|
|
1088
1082
|
});
|
|
1089
|
-
var SGroupRelationCampaignIds =
|
|
1090
|
-
utm_ids:
|
|
1083
|
+
var SGroupRelationCampaignIds = v44__namespace.object({
|
|
1084
|
+
utm_ids: v44__namespace.optional(v44__namespace.array(SCampaignIdDocument))
|
|
1091
1085
|
});
|
|
1092
|
-
var SGroupRelationCampaignPhases =
|
|
1093
|
-
utm_campaign_phases:
|
|
1086
|
+
var SGroupRelationCampaignPhases = v44__namespace.object({
|
|
1087
|
+
utm_campaign_phases: v44__namespace.optional(v44__namespace.array(SCampaignPhaseDocument))
|
|
1094
1088
|
});
|
|
1095
|
-
var SGroupRelationCampaignProducts =
|
|
1096
|
-
utm_campaign_products:
|
|
1089
|
+
var SGroupRelationCampaignProducts = v44__namespace.object({
|
|
1090
|
+
utm_campaign_products: v44__namespace.optional(v44__namespace.array(SCampaignProductDocument))
|
|
1097
1091
|
});
|
|
1098
|
-
var SGroupRelationCampaignKeys =
|
|
1099
|
-
utm_campaign_keys:
|
|
1092
|
+
var SGroupRelationCampaignKeys = v44__namespace.object({
|
|
1093
|
+
utm_campaign_keys: v44__namespace.optional(v44__namespace.array(SCampaignKeyDocument))
|
|
1100
1094
|
});
|
|
1101
|
-
var SGroupRelationContents =
|
|
1102
|
-
utm_contents:
|
|
1095
|
+
var SGroupRelationContents = v44__namespace.object({
|
|
1096
|
+
utm_contents: v44__namespace.optional(v44__namespace.array(SBaseContentDocument))
|
|
1103
1097
|
});
|
|
1104
|
-
var SGroupRelationCreativeFormats =
|
|
1105
|
-
utm_creative_formats:
|
|
1098
|
+
var SGroupRelationCreativeFormats = v44__namespace.object({
|
|
1099
|
+
utm_creative_formats: v44__namespace.optional(v44__namespace.array(SCreativeFormatDocument))
|
|
1106
1100
|
});
|
|
1107
|
-
var SGroupRelationCreativeFormatVariants =
|
|
1108
|
-
utm_creative_format_variants:
|
|
1101
|
+
var SGroupRelationCreativeFormatVariants = v44__namespace.object({
|
|
1102
|
+
utm_creative_format_variants: v44__namespace.optional(v44__namespace.array(SCreativeFormatVariantDocument))
|
|
1109
1103
|
});
|
|
1110
|
-
var SGroupRelationTerms =
|
|
1111
|
-
utm_terms:
|
|
1104
|
+
var SGroupRelationTerms = v44__namespace.object({
|
|
1105
|
+
utm_terms: v44__namespace.optional(v44__namespace.array(STermDocument))
|
|
1112
1106
|
});
|
|
1113
|
-
var SGroupRelationsDocument =
|
|
1107
|
+
var SGroupRelationsDocument = v44__namespace.intersect([
|
|
1114
1108
|
SBaseRelationCreator,
|
|
1115
1109
|
SGroupRelationAuthorizedUsers,
|
|
1116
1110
|
SGroupRelationTrackingLinks,
|
|
@@ -1128,63 +1122,63 @@ var SGroupRelationsDocument = v47__namespace.intersect([
|
|
|
1128
1122
|
]);
|
|
1129
1123
|
|
|
1130
1124
|
// src/entities/base/base.relations.ts
|
|
1131
|
-
var SBaseRelationUser =
|
|
1132
|
-
user:
|
|
1125
|
+
var SBaseRelationUser = v44__namespace.object({
|
|
1126
|
+
user: v44__namespace.optional(SUserDocument)
|
|
1133
1127
|
});
|
|
1134
|
-
var SBaseRelationReqUser =
|
|
1128
|
+
var SBaseRelationReqUser = v44__namespace.object({
|
|
1135
1129
|
user: SUserDocument
|
|
1136
1130
|
});
|
|
1137
|
-
var SBaseRelationUsers =
|
|
1138
|
-
users:
|
|
1131
|
+
var SBaseRelationUsers = v44__namespace.object({
|
|
1132
|
+
users: v44__namespace.optional(v44__namespace.array(SUserDocument))
|
|
1139
1133
|
});
|
|
1140
|
-
var SBaseRelationReqUsers =
|
|
1141
|
-
users:
|
|
1134
|
+
var SBaseRelationReqUsers = v44__namespace.object({
|
|
1135
|
+
users: v44__namespace.array(SUserDocument)
|
|
1142
1136
|
});
|
|
1143
|
-
var SBaseRelationCreator =
|
|
1144
|
-
creator:
|
|
1137
|
+
var SBaseRelationCreator = v44__namespace.object({
|
|
1138
|
+
creator: v44__namespace.optional(SUserDocument)
|
|
1145
1139
|
});
|
|
1146
|
-
var SBaseRelationReqCreator =
|
|
1140
|
+
var SBaseRelationReqCreator = v44__namespace.object({
|
|
1147
1141
|
creator: SUserDocument
|
|
1148
1142
|
});
|
|
1149
|
-
var SBaseRelationGroup =
|
|
1150
|
-
group:
|
|
1143
|
+
var SBaseRelationGroup = v44__namespace.object({
|
|
1144
|
+
group: v44__namespace.optional(SGroupDocument)
|
|
1151
1145
|
});
|
|
1152
|
-
var SBaseRelationReqGroup =
|
|
1146
|
+
var SBaseRelationReqGroup = v44__namespace.object({
|
|
1153
1147
|
group: SGroupDocument
|
|
1154
1148
|
});
|
|
1155
|
-
var SBaseRelationGroups =
|
|
1156
|
-
groups:
|
|
1149
|
+
var SBaseRelationGroups = v44__namespace.object({
|
|
1150
|
+
groups: v44__namespace.optional(v44__namespace.array(SGroupDocument))
|
|
1157
1151
|
});
|
|
1158
|
-
var SBaseRelationReqGroups =
|
|
1159
|
-
groups:
|
|
1152
|
+
var SBaseRelationReqGroups = v44__namespace.object({
|
|
1153
|
+
groups: v44__namespace.array(SGroupDocument)
|
|
1160
1154
|
});
|
|
1161
|
-
var SBaseDocument =
|
|
1162
|
-
id:
|
|
1155
|
+
var SBaseDocument = v44__namespace.object({
|
|
1156
|
+
id: v44__namespace.number(),
|
|
1163
1157
|
documentId: IsValidReferenceDocumentId,
|
|
1164
|
-
publishedAt:
|
|
1165
|
-
createdAt:
|
|
1166
|
-
updatedAt:
|
|
1158
|
+
publishedAt: v44__namespace.optional(v44__namespace.string()),
|
|
1159
|
+
createdAt: v44__namespace.string(),
|
|
1160
|
+
updatedAt: v44__namespace.string()
|
|
1167
1161
|
});
|
|
1168
|
-
var SBaseCostDocument =
|
|
1162
|
+
var SBaseCostDocument = v44__namespace.object({
|
|
1169
1163
|
cost: IsValidCost
|
|
1170
1164
|
});
|
|
1171
|
-
var SBaseUtmParamDocument =
|
|
1165
|
+
var SBaseUtmParamDocument = v44__namespace.object({
|
|
1172
1166
|
label: IsValidLabel,
|
|
1173
1167
|
value: IsValidValue,
|
|
1174
1168
|
description: IsValidDescription,
|
|
1175
1169
|
is_active: IsValidIsActive
|
|
1176
1170
|
});
|
|
1177
|
-
var SBaseGroupUserDocument =
|
|
1171
|
+
var SBaseGroupUserDocument = v44__namespace.object({
|
|
1178
1172
|
scopes: IsValidGroupUserScopes
|
|
1179
1173
|
});
|
|
1180
1174
|
|
|
1181
1175
|
// src/entities/group-user/group-user.document.ts
|
|
1182
|
-
var SGroupUserDocument =
|
|
1183
|
-
var SGroupUserRelationsDocument =
|
|
1176
|
+
var SGroupUserDocument = v44__namespace.intersect([SBaseDocument, SBaseGroupUserDocument]);
|
|
1177
|
+
var SGroupUserRelationsDocument = v44__namespace.intersect([
|
|
1184
1178
|
SBaseRelationUser,
|
|
1185
1179
|
SBaseRelationGroup
|
|
1186
1180
|
]);
|
|
1187
|
-
var SGroupUserRelationsReqDocument =
|
|
1181
|
+
var SGroupUserRelationsReqDocument = v44__namespace.intersect([
|
|
1188
1182
|
SBaseRelationReqUser,
|
|
1189
1183
|
SBaseRelationReqGroup
|
|
1190
1184
|
]);
|
|
@@ -1197,103 +1191,103 @@ var SUtmLinkBuilderPartCampaignDateOptions = [
|
|
|
1197
1191
|
"on a specific date",
|
|
1198
1192
|
"no date"
|
|
1199
1193
|
];
|
|
1200
|
-
var SUtmLinkBuilderTableForm =
|
|
1194
|
+
var SUtmLinkBuilderTableForm = v44__namespace.object({
|
|
1201
1195
|
creator: IsValidReferenceDocumentId,
|
|
1202
1196
|
client: IsValidReferenceDocumentId,
|
|
1203
|
-
url_destinations:
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
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.")
|
|
1207
1201
|
),
|
|
1208
|
-
sources:
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
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.")
|
|
1212
1206
|
),
|
|
1213
|
-
mediums:
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
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.")
|
|
1217
1211
|
),
|
|
1218
|
-
campaign:
|
|
1212
|
+
campaign: v44__namespace.object({
|
|
1219
1213
|
campaign_phase: SCampaignPhaseDocument,
|
|
1220
|
-
campaign_product:
|
|
1214
|
+
campaign_product: v44__namespace.optional(SCampaignProductDocument),
|
|
1221
1215
|
// campaign_targeting: v.optional(v.array()),
|
|
1222
|
-
campaign_key:
|
|
1223
|
-
campaign_date:
|
|
1224
|
-
format:
|
|
1216
|
+
campaign_key: v44__namespace.optional(SCampaignKeyDocument),
|
|
1217
|
+
campaign_date: v44__namespace.object({
|
|
1218
|
+
format: v44__namespace.picklist(
|
|
1225
1219
|
SUtmLinkBuilderPartCampaignDateOptions,
|
|
1226
1220
|
"Please select a valid campaign date format."
|
|
1227
1221
|
),
|
|
1228
|
-
value:
|
|
1229
|
-
year:
|
|
1230
|
-
quarter:
|
|
1231
|
-
month:
|
|
1232
|
-
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())
|
|
1233
1227
|
})
|
|
1234
1228
|
})
|
|
1235
1229
|
}),
|
|
1236
|
-
content:
|
|
1237
|
-
creative_formats:
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
creative_format:
|
|
1242
|
-
creative_format_variants:
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
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.")
|
|
1247
1241
|
)
|
|
1248
1242
|
)
|
|
1249
1243
|
})
|
|
1250
1244
|
),
|
|
1251
|
-
|
|
1252
|
-
|
|
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.")
|
|
1253
1247
|
)
|
|
1254
1248
|
),
|
|
1255
|
-
id:
|
|
1249
|
+
id: v44__namespace.optional(SCampaignIdDocument)
|
|
1256
1250
|
});
|
|
1257
|
-
var SStripeCheckoutLineItem =
|
|
1251
|
+
var SStripeCheckoutLineItem = v44__namespace.object({
|
|
1258
1252
|
price: IsValidPriceId,
|
|
1259
|
-
quantity:
|
|
1253
|
+
quantity: v44__namespace.pipe(v44__namespace.number(), v44__namespace.minValue(1), v44__namespace.maxValue(1))
|
|
1260
1254
|
});
|
|
1261
|
-
var SStripeCheckoutCreateSession =
|
|
1262
|
-
line_items:
|
|
1263
|
-
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"]),
|
|
1264
1258
|
success_url: IsValidOrUndefinedUrlDestination,
|
|
1265
1259
|
cancel_url: IsValidOrUndefinedUrlDestination
|
|
1266
1260
|
});
|
|
1267
|
-
var SQueryListTrackingLinkDocuments =
|
|
1261
|
+
var SQueryListTrackingLinkDocuments = v44__namespace.object({
|
|
1268
1262
|
documentId: IsValidReferenceDocumentId,
|
|
1269
1263
|
page: IsValidMinPage,
|
|
1270
|
-
size:
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
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)
|
|
1276
1270
|
),
|
|
1277
1271
|
TRACKING_LINK_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1278
1272
|
),
|
|
1279
1273
|
TRACKING_LINK_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1280
1274
|
),
|
|
1281
|
-
is_active:
|
|
1282
|
-
destination:
|
|
1283
|
-
protocol:
|
|
1284
|
-
domain:
|
|
1285
|
-
path:
|
|
1286
|
-
query:
|
|
1287
|
-
fragment:
|
|
1288
|
-
utm_source:
|
|
1289
|
-
utm_medium:
|
|
1290
|
-
utm_campaign:
|
|
1291
|
-
utm_creative_format:
|
|
1292
|
-
utm_content:
|
|
1293
|
-
utm_term:
|
|
1294
|
-
utm_id:
|
|
1295
|
-
});
|
|
1296
|
-
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({
|
|
1297
1291
|
is_active: IsValidIsActive,
|
|
1298
1292
|
destination: IsValidUrlDestination,
|
|
1299
1293
|
protocol: IsValidUrlProtocol,
|
|
@@ -1309,17 +1303,17 @@ var SCreateTrackingLinkDocument = v47__namespace.object({
|
|
|
1309
1303
|
utm_term: IsValidUrlUtmTerm,
|
|
1310
1304
|
utm_id: IsValidUrlUtmId
|
|
1311
1305
|
});
|
|
1312
|
-
var SCreateTrackingLinkDocumentRequest =
|
|
1306
|
+
var SCreateTrackingLinkDocumentRequest = v44__namespace.object({
|
|
1313
1307
|
documentId: IsValidReferenceDocumentId,
|
|
1314
1308
|
data: SCreateTrackingLinkDocument
|
|
1315
1309
|
});
|
|
1316
|
-
var SReadTrackingLinkDocumentById =
|
|
1310
|
+
var SReadTrackingLinkDocumentById = v44__namespace.object({
|
|
1317
1311
|
id: IsValidReferenceId
|
|
1318
1312
|
});
|
|
1319
|
-
var SReadTrackingLinkDocumentByDocumentId =
|
|
1313
|
+
var SReadTrackingLinkDocumentByDocumentId = v44__namespace.object({
|
|
1320
1314
|
documentId: IsValidReferenceDocumentId
|
|
1321
1315
|
});
|
|
1322
|
-
var SUpdateAsCreatorTrackingLinkDocument =
|
|
1316
|
+
var SUpdateAsCreatorTrackingLinkDocument = v44__namespace.object({
|
|
1323
1317
|
is_active: IsValidOrUndefinedUrlDestination,
|
|
1324
1318
|
destination: IsValidOrUndefinedUrlDestination,
|
|
1325
1319
|
protocol: IsValidOrUndefinedUrlProtocol,
|
|
@@ -1335,11 +1329,11 @@ var SUpdateAsCreatorTrackingLinkDocument = v47__namespace.object({
|
|
|
1335
1329
|
utm_term: IsValidOrUndefinedUrlUtmTerm,
|
|
1336
1330
|
utm_id: IsValidOrUndefinedUrlUtmId
|
|
1337
1331
|
});
|
|
1338
|
-
var SUpdateAsCreatorTrackingLinkDocumentRequest =
|
|
1332
|
+
var SUpdateAsCreatorTrackingLinkDocumentRequest = v44__namespace.object({
|
|
1339
1333
|
documentId: IsValidReferenceDocumentId,
|
|
1340
1334
|
data: SUpdateAsCreatorTrackingLinkDocument
|
|
1341
1335
|
});
|
|
1342
|
-
var SUpdateAsInvitedTrackingLinkDocument =
|
|
1336
|
+
var SUpdateAsInvitedTrackingLinkDocument = v44__namespace.object({
|
|
1343
1337
|
is_active: IsValidOrUndefinedUrlDestination,
|
|
1344
1338
|
destination: IsValidOrUndefinedUrlDestination,
|
|
1345
1339
|
protocol: IsValidOrUndefinedUrlProtocol,
|
|
@@ -1355,26 +1349,26 @@ var SUpdateAsInvitedTrackingLinkDocument = v47__namespace.object({
|
|
|
1355
1349
|
utm_term: IsValidOrUndefinedUrlUtmTerm,
|
|
1356
1350
|
utm_id: IsValidOrUndefinedUrlUtmId
|
|
1357
1351
|
});
|
|
1358
|
-
var SUpdateAsInvitedTrackingLinkDocumentRequest =
|
|
1352
|
+
var SUpdateAsInvitedTrackingLinkDocumentRequest = v44__namespace.object({
|
|
1359
1353
|
documentId: IsValidReferenceDocumentId,
|
|
1360
1354
|
data: SUpdateAsInvitedTrackingLinkDocument
|
|
1361
1355
|
});
|
|
1362
|
-
var SUpdateTrackingLinkDocumentRequest =
|
|
1356
|
+
var SUpdateTrackingLinkDocumentRequest = v44__namespace.union([
|
|
1363
1357
|
SUpdateAsCreatorTrackingLinkDocument,
|
|
1364
1358
|
SUpdateAsInvitedTrackingLinkDocument
|
|
1365
1359
|
]);
|
|
1366
|
-
var SDeleteTrackingLinkDocument =
|
|
1360
|
+
var SDeleteTrackingLinkDocument = v44__namespace.object({
|
|
1367
1361
|
documentId: IsValidReferenceDocumentId
|
|
1368
1362
|
});
|
|
1369
|
-
var SQueryListUserAccountDocuments =
|
|
1363
|
+
var SQueryListUserAccountDocuments = v44__namespace.object({
|
|
1370
1364
|
documentId: IsValidReferenceDocumentId,
|
|
1371
1365
|
page: IsValidMinPage,
|
|
1372
|
-
size:
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
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)
|
|
1378
1372
|
),
|
|
1379
1373
|
USER_ACCOUNT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1380
1374
|
),
|
|
@@ -1390,7 +1384,7 @@ var SQueryListUserAccountDocuments = v47__namespace.object({
|
|
|
1390
1384
|
trial_period_end_after: IsValidOrUndefinedTrialPeriodEnd,
|
|
1391
1385
|
trial_period_end_before: IsValidOrUndefinedTrialPeriodEnd
|
|
1392
1386
|
});
|
|
1393
|
-
var SCreateUserAccountDocument =
|
|
1387
|
+
var SCreateUserAccountDocument = v44__namespace.object({
|
|
1394
1388
|
customer_id: IsValidOrUndefinedCustomerId,
|
|
1395
1389
|
subscription_id: IsValidOrUndefinedSubscriptionId,
|
|
1396
1390
|
subscription_status: IsValidSubscriptionStatus,
|
|
@@ -1398,13 +1392,13 @@ var SCreateUserAccountDocument = v47__namespace.object({
|
|
|
1398
1392
|
current_period_end: IsValidCurrentPeriodEnd,
|
|
1399
1393
|
trial_period_end: IsValidOrUndefinedTrialPeriodEnd
|
|
1400
1394
|
});
|
|
1401
|
-
var SReadUserAccountDocumentById =
|
|
1395
|
+
var SReadUserAccountDocumentById = v44__namespace.object({
|
|
1402
1396
|
id: IsValidReferenceId
|
|
1403
1397
|
});
|
|
1404
|
-
var SReadUserAccountDocumentByDocumentId =
|
|
1398
|
+
var SReadUserAccountDocumentByDocumentId = v44__namespace.object({
|
|
1405
1399
|
documentId: IsValidReferenceDocumentId
|
|
1406
1400
|
});
|
|
1407
|
-
var SUpdateUserAccountDocument =
|
|
1401
|
+
var SUpdateUserAccountDocument = v44__namespace.object({
|
|
1408
1402
|
customer_id: IsValidOrUndefinedCustomerId,
|
|
1409
1403
|
subscription_id: IsValidOrUndefinedSubscriptionId,
|
|
1410
1404
|
subscription_status: IsValidOrUndefinedSubscriptionStatus,
|
|
@@ -1412,732 +1406,732 @@ var SUpdateUserAccountDocument = v47__namespace.object({
|
|
|
1412
1406
|
current_period_end: IsValidOrUndefinedCurrentPeriodEnd,
|
|
1413
1407
|
trial_period_end: IsValidOrUndefinedTrialPeriodEnd
|
|
1414
1408
|
});
|
|
1415
|
-
var SQueryListUserLimitationDocuments =
|
|
1409
|
+
var SQueryListUserLimitationDocuments = v44__namespace.object({
|
|
1416
1410
|
documentId: IsValidReferenceDocumentId,
|
|
1417
1411
|
page: IsValidMinPage,
|
|
1418
|
-
size:
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
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)
|
|
1424
1418
|
),
|
|
1425
1419
|
USER_LIMITATION_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1426
1420
|
),
|
|
1427
1421
|
USER_LIMITATION_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1428
1422
|
)
|
|
1429
1423
|
});
|
|
1430
|
-
var SCreateUserLimitationsDocument =
|
|
1431
|
-
limit_groups:
|
|
1432
|
-
limit_group_users:
|
|
1433
|
-
limit_websites:
|
|
1434
|
-
limit_tracking_links:
|
|
1435
|
-
limit_sources:
|
|
1436
|
-
limit_mediums:
|
|
1437
|
-
limit_campaign_ids:
|
|
1438
|
-
limit_campaign_keys:
|
|
1439
|
-
limit_campaign_phases:
|
|
1440
|
-
limit_campaign_products:
|
|
1441
|
-
limit_contents:
|
|
1442
|
-
limit_creative_formats:
|
|
1443
|
-
limit_creative_format_variants:
|
|
1444
|
-
limit_terms:
|
|
1445
|
-
});
|
|
1446
|
-
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({
|
|
1447
1441
|
id: IsValidReferenceId
|
|
1448
1442
|
});
|
|
1449
|
-
var SReadUserLimitationsDocumentByDocumentId =
|
|
1443
|
+
var SReadUserLimitationsDocumentByDocumentId = v44__namespace.object({
|
|
1450
1444
|
documentId: IsValidReferenceDocumentId
|
|
1451
1445
|
});
|
|
1452
|
-
var SUpdateUserLimitationsDocument =
|
|
1453
|
-
limit_groups:
|
|
1454
|
-
limit_group_users:
|
|
1455
|
-
limit_websites:
|
|
1456
|
-
limit_tracking_links:
|
|
1457
|
-
limit_sources:
|
|
1458
|
-
limit_mediums:
|
|
1459
|
-
limit_campaign_ids:
|
|
1460
|
-
limit_campaign_keys:
|
|
1461
|
-
limit_campaign_phases:
|
|
1462
|
-
limit_campaign_products:
|
|
1463
|
-
limit_contents:
|
|
1464
|
-
limit_creative_formats:
|
|
1465
|
-
limit_creative_format_variants:
|
|
1466
|
-
limit_terms:
|
|
1467
|
-
});
|
|
1468
|
-
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({
|
|
1469
1463
|
page: IsValidMinPage,
|
|
1470
|
-
size:
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
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)
|
|
1476
1470
|
),
|
|
1477
1471
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1478
1472
|
),
|
|
1479
1473
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1480
1474
|
)
|
|
1481
1475
|
});
|
|
1482
|
-
var SQueryListUserDocumentsByIdentifier =
|
|
1483
|
-
identifier:
|
|
1476
|
+
var SQueryListUserDocumentsByIdentifier = v44__namespace.object({
|
|
1477
|
+
identifier: v44__namespace.pipe(v44__namespace.string(), v44__namespace.maxLength(255)),
|
|
1484
1478
|
page: IsValidMinPage,
|
|
1485
|
-
size:
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
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)
|
|
1491
1485
|
),
|
|
1492
1486
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1493
1487
|
),
|
|
1494
1488
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1495
1489
|
)
|
|
1496
1490
|
});
|
|
1497
|
-
var SReadUserDocumentById =
|
|
1491
|
+
var SReadUserDocumentById = v44__namespace.object({
|
|
1498
1492
|
id: IsValidReferenceId
|
|
1499
1493
|
});
|
|
1500
|
-
var SReadUserDocumentByDocumentId =
|
|
1494
|
+
var SReadUserDocumentByDocumentId = v44__namespace.object({
|
|
1501
1495
|
documentId: IsValidReferenceDocumentId
|
|
1502
1496
|
});
|
|
1503
|
-
var SQueryListCampaignIdDocuments =
|
|
1497
|
+
var SQueryListCampaignIdDocuments = v44__namespace.object({
|
|
1504
1498
|
documentId: IsValidReferenceDocumentId,
|
|
1505
1499
|
page: IsValidMinPage,
|
|
1506
|
-
size:
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
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)
|
|
1512
1506
|
),
|
|
1513
1507
|
CAMPAIGN_ID_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1514
1508
|
),
|
|
1515
1509
|
CAMPAIGN_ID_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1516
1510
|
)
|
|
1517
1511
|
});
|
|
1518
|
-
var SCreateCampaignIdDocument =
|
|
1512
|
+
var SCreateCampaignIdDocument = v44__namespace.object({
|
|
1519
1513
|
cost: IsValidCost,
|
|
1520
1514
|
label: IsValidLabel,
|
|
1521
1515
|
value: IsValidValue,
|
|
1522
1516
|
description: IsValidDescription,
|
|
1523
1517
|
is_active: IsValidIsActive
|
|
1524
1518
|
});
|
|
1525
|
-
var SCreateCampaignIdDocumentRequest =
|
|
1519
|
+
var SCreateCampaignIdDocumentRequest = v44__namespace.object({
|
|
1526
1520
|
documentId: IsValidReferenceDocumentId,
|
|
1527
1521
|
data: SCreateCampaignIdDocument
|
|
1528
1522
|
});
|
|
1529
|
-
var SReadCampaignIdDocumentById =
|
|
1523
|
+
var SReadCampaignIdDocumentById = v44__namespace.object({
|
|
1530
1524
|
id: IsValidReferenceId
|
|
1531
1525
|
});
|
|
1532
|
-
var SReadCampaignIdDocumentByDocumentId =
|
|
1526
|
+
var SReadCampaignIdDocumentByDocumentId = v44__namespace.object({
|
|
1533
1527
|
documentId: IsValidReferenceDocumentId
|
|
1534
1528
|
});
|
|
1535
|
-
var SUpdateAsCreatorCampaignIdDocument =
|
|
1529
|
+
var SUpdateAsCreatorCampaignIdDocument = v44__namespace.object({
|
|
1536
1530
|
cost: IsValidOrUndefinedCost,
|
|
1537
1531
|
label: IsValidOrUndefinedLabel,
|
|
1538
1532
|
value: IsValidOrUndefinedValue,
|
|
1539
1533
|
description: IsValidDescription,
|
|
1540
1534
|
is_active: IsValidOrUndefinedIsActive
|
|
1541
1535
|
});
|
|
1542
|
-
var SUpdateAsCreatorCampaignIdDocumentRequest =
|
|
1536
|
+
var SUpdateAsCreatorCampaignIdDocumentRequest = v44__namespace.object({
|
|
1543
1537
|
documentId: IsValidReferenceDocumentId,
|
|
1544
1538
|
data: SUpdateAsCreatorCampaignIdDocument
|
|
1545
1539
|
});
|
|
1546
|
-
var SUpdateAsInvitedCampaignIdDocument =
|
|
1540
|
+
var SUpdateAsInvitedCampaignIdDocument = v44__namespace.object({
|
|
1547
1541
|
label: IsValidOrUndefinedLabel,
|
|
1548
1542
|
description: IsValidDescription,
|
|
1549
1543
|
is_active: IsValidOrUndefinedIsActive
|
|
1550
1544
|
});
|
|
1551
|
-
var SUpdateAsInvitedCampaignIdDocumentRequest =
|
|
1545
|
+
var SUpdateAsInvitedCampaignIdDocumentRequest = v44__namespace.object({
|
|
1552
1546
|
documentId: IsValidReferenceDocumentId,
|
|
1553
1547
|
data: SUpdateAsInvitedCampaignIdDocument
|
|
1554
1548
|
});
|
|
1555
|
-
var SUpdateCampaignIdDocumentRequest =
|
|
1549
|
+
var SUpdateCampaignIdDocumentRequest = v44__namespace.union([
|
|
1556
1550
|
SUpdateAsCreatorCampaignIdDocument,
|
|
1557
1551
|
SUpdateAsInvitedCampaignIdDocument
|
|
1558
1552
|
]);
|
|
1559
|
-
var SDeleteCampaignIdDocument =
|
|
1553
|
+
var SDeleteCampaignIdDocument = v44__namespace.object({
|
|
1560
1554
|
documentId: IsValidReferenceDocumentId
|
|
1561
1555
|
});
|
|
1562
|
-
var SQueryListCampaignKeyDocuments =
|
|
1556
|
+
var SQueryListCampaignKeyDocuments = v44__namespace.object({
|
|
1563
1557
|
documentId: IsValidReferenceDocumentId,
|
|
1564
1558
|
page: IsValidMinPage,
|
|
1565
|
-
size:
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
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)
|
|
1571
1565
|
),
|
|
1572
1566
|
CAMPAIGN_KEY_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1573
1567
|
),
|
|
1574
1568
|
CAMPAIGN_KEY_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1575
1569
|
)
|
|
1576
1570
|
});
|
|
1577
|
-
var SCreateCampaignKeyDocument =
|
|
1571
|
+
var SCreateCampaignKeyDocument = v44__namespace.object({
|
|
1578
1572
|
label: IsValidLabel,
|
|
1579
1573
|
value: IsValidValue,
|
|
1580
1574
|
description: IsValidDescription,
|
|
1581
1575
|
is_active: IsValidIsActive
|
|
1582
1576
|
});
|
|
1583
|
-
var SCreateCampaignKeyDocumentRequest =
|
|
1577
|
+
var SCreateCampaignKeyDocumentRequest = v44__namespace.object({
|
|
1584
1578
|
documentId: IsValidReferenceDocumentId,
|
|
1585
1579
|
data: SCreateCampaignKeyDocument
|
|
1586
1580
|
});
|
|
1587
|
-
var SReadCampaignKeyDocumentById =
|
|
1581
|
+
var SReadCampaignKeyDocumentById = v44__namespace.object({
|
|
1588
1582
|
id: IsValidReferenceId
|
|
1589
1583
|
});
|
|
1590
|
-
var SReadCampaignKeyDocumentByDocumentId =
|
|
1584
|
+
var SReadCampaignKeyDocumentByDocumentId = v44__namespace.object({
|
|
1591
1585
|
documentId: IsValidReferenceDocumentId
|
|
1592
1586
|
});
|
|
1593
|
-
var SUpdateAsCreatorCampaignKeyDocument =
|
|
1587
|
+
var SUpdateAsCreatorCampaignKeyDocument = v44__namespace.object({
|
|
1594
1588
|
label: IsValidOrUndefinedLabel,
|
|
1595
1589
|
value: IsValidOrUndefinedValue,
|
|
1596
1590
|
description: IsValidOrUndefinedDescription,
|
|
1597
1591
|
is_active: IsValidOrUndefinedIsActive
|
|
1598
1592
|
});
|
|
1599
|
-
var SUpdateAsCreatorCampaignKeyDocumentRequest =
|
|
1593
|
+
var SUpdateAsCreatorCampaignKeyDocumentRequest = v44__namespace.object({
|
|
1600
1594
|
documentId: IsValidReferenceDocumentId,
|
|
1601
1595
|
data: SUpdateAsCreatorCampaignKeyDocument
|
|
1602
1596
|
});
|
|
1603
|
-
var SUpdateAsInvitedCampaignKeyDocument =
|
|
1597
|
+
var SUpdateAsInvitedCampaignKeyDocument = v44__namespace.object({
|
|
1604
1598
|
label: IsValidOrUndefinedLabel,
|
|
1605
1599
|
description: IsValidDescription,
|
|
1606
1600
|
is_active: IsValidOrUndefinedIsActive
|
|
1607
1601
|
});
|
|
1608
|
-
var SUpdateAsInvitedCampaignKeyDocumentRequest =
|
|
1602
|
+
var SUpdateAsInvitedCampaignKeyDocumentRequest = v44__namespace.object({
|
|
1609
1603
|
documentId: IsValidReferenceDocumentId,
|
|
1610
1604
|
data: SUpdateAsInvitedCampaignKeyDocument
|
|
1611
1605
|
});
|
|
1612
|
-
var SUpdateCampaignKeyDocumentRequest =
|
|
1606
|
+
var SUpdateCampaignKeyDocumentRequest = v44__namespace.union([
|
|
1613
1607
|
SUpdateAsCreatorCampaignKeyDocument,
|
|
1614
1608
|
SUpdateAsInvitedCampaignKeyDocument
|
|
1615
1609
|
]);
|
|
1616
|
-
var SDeleteCampaignKeyDocument =
|
|
1610
|
+
var SDeleteCampaignKeyDocument = v44__namespace.object({
|
|
1617
1611
|
documentId: IsValidReferenceDocumentId
|
|
1618
1612
|
});
|
|
1619
|
-
var SQueryListCampaignPhaseDocuments =
|
|
1613
|
+
var SQueryListCampaignPhaseDocuments = v44__namespace.object({
|
|
1620
1614
|
documentId: IsValidReferenceDocumentId,
|
|
1621
1615
|
page: IsValidMinPage,
|
|
1622
|
-
size:
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
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)
|
|
1628
1622
|
),
|
|
1629
1623
|
CAMPAIGN_PHASE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1630
1624
|
),
|
|
1631
1625
|
CAMPAIGN_PHASE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1632
1626
|
)
|
|
1633
1627
|
});
|
|
1634
|
-
var SCreateCampaignPhaseDocument =
|
|
1628
|
+
var SCreateCampaignPhaseDocument = v44__namespace.object({
|
|
1635
1629
|
label: IsValidLabel,
|
|
1636
1630
|
value: IsValidValue,
|
|
1637
1631
|
description: IsValidDescription,
|
|
1638
1632
|
is_active: IsValidIsActive
|
|
1639
1633
|
});
|
|
1640
|
-
var SCreateCampaignPhaseDocumentRequest =
|
|
1634
|
+
var SCreateCampaignPhaseDocumentRequest = v44__namespace.object({
|
|
1641
1635
|
documentId: IsValidReferenceDocumentId,
|
|
1642
1636
|
data: SCreateCampaignPhaseDocument
|
|
1643
1637
|
});
|
|
1644
|
-
var SReadCampaignPhaseDocumentById =
|
|
1638
|
+
var SReadCampaignPhaseDocumentById = v44__namespace.object({
|
|
1645
1639
|
id: IsValidReferenceId
|
|
1646
1640
|
});
|
|
1647
|
-
var SReadCampaignPhaseDocumentByDocumentId =
|
|
1641
|
+
var SReadCampaignPhaseDocumentByDocumentId = v44__namespace.object({
|
|
1648
1642
|
documentId: IsValidReferenceDocumentId
|
|
1649
1643
|
});
|
|
1650
|
-
var SUpdateAsCreatorCampaignPhaseDocument =
|
|
1644
|
+
var SUpdateAsCreatorCampaignPhaseDocument = v44__namespace.object({
|
|
1651
1645
|
label: IsValidOrUndefinedLabel,
|
|
1652
1646
|
value: IsValidOrUndefinedValue,
|
|
1653
1647
|
description: IsValidOrUndefinedDescription,
|
|
1654
1648
|
is_active: IsValidOrUndefinedIsActive
|
|
1655
1649
|
});
|
|
1656
|
-
var SUpdateAsCreatorCampaignPhaseDocumentRequest =
|
|
1650
|
+
var SUpdateAsCreatorCampaignPhaseDocumentRequest = v44__namespace.object({
|
|
1657
1651
|
documentId: IsValidReferenceDocumentId,
|
|
1658
1652
|
data: SUpdateAsCreatorCampaignPhaseDocument
|
|
1659
1653
|
});
|
|
1660
|
-
var SUpdateAsInvitedCampaignPhaseDocument =
|
|
1654
|
+
var SUpdateAsInvitedCampaignPhaseDocument = v44__namespace.object({
|
|
1661
1655
|
label: IsValidOrUndefinedLabel,
|
|
1662
1656
|
description: IsValidDescription,
|
|
1663
1657
|
is_active: IsValidOrUndefinedIsActive
|
|
1664
1658
|
});
|
|
1665
|
-
var SUpdateAsInvitedCampaignPhaseDocumentRequest =
|
|
1659
|
+
var SUpdateAsInvitedCampaignPhaseDocumentRequest = v44__namespace.object({
|
|
1666
1660
|
documentId: IsValidReferenceDocumentId,
|
|
1667
1661
|
data: SUpdateAsInvitedCampaignPhaseDocument
|
|
1668
1662
|
});
|
|
1669
|
-
var SUpdateCampaignPhaseDocumentRequest =
|
|
1663
|
+
var SUpdateCampaignPhaseDocumentRequest = v44__namespace.union([
|
|
1670
1664
|
SUpdateAsCreatorCampaignPhaseDocument,
|
|
1671
1665
|
SUpdateAsInvitedCampaignPhaseDocument
|
|
1672
1666
|
]);
|
|
1673
|
-
var SDeleteCampaignPhaseDocument =
|
|
1667
|
+
var SDeleteCampaignPhaseDocument = v44__namespace.object({
|
|
1674
1668
|
documentId: IsValidReferenceDocumentId
|
|
1675
1669
|
});
|
|
1676
|
-
var SQueryListCampaignProductDocuments =
|
|
1670
|
+
var SQueryListCampaignProductDocuments = v44__namespace.object({
|
|
1677
1671
|
documentId: IsValidReferenceDocumentId,
|
|
1678
1672
|
page: IsValidMinPage,
|
|
1679
|
-
size:
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
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)
|
|
1685
1679
|
),
|
|
1686
1680
|
CAMPAIGN_PRODUCT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1687
1681
|
),
|
|
1688
1682
|
CAMPAIGN_PRODUCT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1689
1683
|
)
|
|
1690
1684
|
});
|
|
1691
|
-
var SCreateCampaignProductDocument =
|
|
1685
|
+
var SCreateCampaignProductDocument = v44__namespace.object({
|
|
1692
1686
|
label: IsValidLabel,
|
|
1693
1687
|
value: IsValidValue,
|
|
1694
1688
|
description: IsValidDescription,
|
|
1695
1689
|
is_active: IsValidIsActive
|
|
1696
1690
|
});
|
|
1697
|
-
var SCreateCampaignProductDocumentRequest =
|
|
1691
|
+
var SCreateCampaignProductDocumentRequest = v44__namespace.object({
|
|
1698
1692
|
documentId: IsValidReferenceDocumentId,
|
|
1699
1693
|
data: SCreateCampaignProductDocument
|
|
1700
1694
|
});
|
|
1701
|
-
var SReadCampaignProductDocumentById =
|
|
1695
|
+
var SReadCampaignProductDocumentById = v44__namespace.object({
|
|
1702
1696
|
id: IsValidReferenceId
|
|
1703
1697
|
});
|
|
1704
|
-
var SReadCampaignProductDocumentByDocumentId =
|
|
1698
|
+
var SReadCampaignProductDocumentByDocumentId = v44__namespace.object({
|
|
1705
1699
|
documentId: IsValidReferenceDocumentId
|
|
1706
1700
|
});
|
|
1707
|
-
var SUpdateAsCreatorCampaignProductDocument =
|
|
1701
|
+
var SUpdateAsCreatorCampaignProductDocument = v44__namespace.object({
|
|
1708
1702
|
label: IsValidOrUndefinedLabel,
|
|
1709
1703
|
value: IsValidOrUndefinedValue,
|
|
1710
1704
|
description: IsValidOrUndefinedDescription,
|
|
1711
1705
|
is_active: IsValidOrUndefinedIsActive
|
|
1712
1706
|
});
|
|
1713
|
-
var SUpdateAsCreatorCampaignProductDocumentRequest =
|
|
1707
|
+
var SUpdateAsCreatorCampaignProductDocumentRequest = v44__namespace.object({
|
|
1714
1708
|
documentId: IsValidReferenceDocumentId,
|
|
1715
1709
|
data: SUpdateAsCreatorCampaignProductDocument
|
|
1716
1710
|
});
|
|
1717
|
-
var SUpdateAsInvitedCampaignProductDocument =
|
|
1711
|
+
var SUpdateAsInvitedCampaignProductDocument = v44__namespace.object({
|
|
1718
1712
|
label: IsValidOrUndefinedLabel,
|
|
1719
1713
|
description: IsValidDescription,
|
|
1720
1714
|
is_active: IsValidOrUndefinedIsActive
|
|
1721
1715
|
});
|
|
1722
|
-
var SUpdateAsInvitedCampaignProductDocumentRequest =
|
|
1716
|
+
var SUpdateAsInvitedCampaignProductDocumentRequest = v44__namespace.object({
|
|
1723
1717
|
documentId: IsValidReferenceDocumentId,
|
|
1724
1718
|
data: SUpdateAsInvitedCampaignProductDocument
|
|
1725
1719
|
});
|
|
1726
|
-
var SUpdateCampaignProductDocumentRequest =
|
|
1720
|
+
var SUpdateCampaignProductDocumentRequest = v44__namespace.union([
|
|
1727
1721
|
SUpdateAsCreatorCampaignProductDocument,
|
|
1728
1722
|
SUpdateAsInvitedCampaignProductDocument
|
|
1729
1723
|
]);
|
|
1730
|
-
var SDeleteCampaignProductDocument =
|
|
1724
|
+
var SDeleteCampaignProductDocument = v44__namespace.object({
|
|
1731
1725
|
documentId: IsValidReferenceDocumentId
|
|
1732
1726
|
});
|
|
1733
|
-
var SQueryListContentDocuments =
|
|
1727
|
+
var SQueryListContentDocuments = v44__namespace.object({
|
|
1734
1728
|
documentId: IsValidReferenceDocumentId,
|
|
1735
1729
|
page: IsValidMinPage,
|
|
1736
|
-
size:
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
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)
|
|
1742
1736
|
),
|
|
1743
1737
|
CONTENT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1744
1738
|
),
|
|
1745
1739
|
CONTENT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1746
1740
|
)
|
|
1747
1741
|
});
|
|
1748
|
-
var SCreateContentDocument =
|
|
1742
|
+
var SCreateContentDocument = v44__namespace.object({
|
|
1749
1743
|
label: IsValidLabel,
|
|
1750
1744
|
value: IsValidValue,
|
|
1751
1745
|
description: IsValidDescription,
|
|
1752
1746
|
is_active: IsValidIsActive
|
|
1753
1747
|
});
|
|
1754
|
-
var SCreateContentDocumentRequest =
|
|
1748
|
+
var SCreateContentDocumentRequest = v44__namespace.object({
|
|
1755
1749
|
documentId: IsValidReferenceDocumentId,
|
|
1756
1750
|
data: SCreateContentDocument
|
|
1757
1751
|
});
|
|
1758
|
-
var SReadContentDocumentById =
|
|
1752
|
+
var SReadContentDocumentById = v44__namespace.object({
|
|
1759
1753
|
id: IsValidReferenceId
|
|
1760
1754
|
});
|
|
1761
|
-
var SReadContentDocumentByDocumentId =
|
|
1755
|
+
var SReadContentDocumentByDocumentId = v44__namespace.object({
|
|
1762
1756
|
documentId: IsValidReferenceDocumentId
|
|
1763
1757
|
});
|
|
1764
|
-
var SUpdateAsCreatorContentDocument =
|
|
1758
|
+
var SUpdateAsCreatorContentDocument = v44__namespace.object({
|
|
1765
1759
|
label: IsValidOrUndefinedLabel,
|
|
1766
1760
|
value: IsValidOrUndefinedValue,
|
|
1767
1761
|
description: IsValidOrUndefinedDescription,
|
|
1768
1762
|
is_active: IsValidOrUndefinedIsActive
|
|
1769
1763
|
});
|
|
1770
|
-
var SUpdateAsCreatorContentDocumentRequest =
|
|
1764
|
+
var SUpdateAsCreatorContentDocumentRequest = v44__namespace.object({
|
|
1771
1765
|
documentId: IsValidReferenceDocumentId,
|
|
1772
1766
|
data: SUpdateAsCreatorContentDocument
|
|
1773
1767
|
});
|
|
1774
|
-
var SUpdateAsInvitedContentDocument =
|
|
1768
|
+
var SUpdateAsInvitedContentDocument = v44__namespace.object({
|
|
1775
1769
|
label: IsValidOrUndefinedLabel,
|
|
1776
1770
|
description: IsValidDescription,
|
|
1777
1771
|
is_active: IsValidOrUndefinedIsActive
|
|
1778
1772
|
});
|
|
1779
|
-
var SUpdateAsInvitedContentDocumentRequest =
|
|
1773
|
+
var SUpdateAsInvitedContentDocumentRequest = v44__namespace.object({
|
|
1780
1774
|
documentId: IsValidReferenceDocumentId,
|
|
1781
1775
|
data: SUpdateAsInvitedContentDocument
|
|
1782
1776
|
});
|
|
1783
|
-
var SUpdateContentDocumentRequest =
|
|
1777
|
+
var SUpdateContentDocumentRequest = v44__namespace.union([
|
|
1784
1778
|
SUpdateAsCreatorContentDocument,
|
|
1785
1779
|
SUpdateAsInvitedContentDocument
|
|
1786
1780
|
]);
|
|
1787
|
-
var SDeleteContentDocument =
|
|
1781
|
+
var SDeleteContentDocument = v44__namespace.object({
|
|
1788
1782
|
documentId: IsValidReferenceDocumentId
|
|
1789
1783
|
});
|
|
1790
|
-
var SQueryListCreativeFormatVariantDocuments =
|
|
1784
|
+
var SQueryListCreativeFormatVariantDocuments = v44__namespace.object({
|
|
1791
1785
|
documentId: IsValidReferenceDocumentId,
|
|
1792
1786
|
page: IsValidMinPage,
|
|
1793
|
-
size:
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
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)
|
|
1799
1793
|
),
|
|
1800
1794
|
CREATIVE_FORMAT_VARIANT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1801
1795
|
),
|
|
1802
1796
|
CREATIVE_FORMAT_VARIANT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1803
1797
|
)
|
|
1804
1798
|
});
|
|
1805
|
-
var SCreateCreativeFormatVariantDocument =
|
|
1799
|
+
var SCreateCreativeFormatVariantDocument = v44__namespace.object({
|
|
1806
1800
|
label: IsValidLabel,
|
|
1807
1801
|
value: IsValidValue,
|
|
1808
1802
|
description: IsValidDescription,
|
|
1809
1803
|
is_active: IsValidIsActive
|
|
1810
1804
|
});
|
|
1811
|
-
var SCreateCreativeFormatVariantDocumentRequest =
|
|
1805
|
+
var SCreateCreativeFormatVariantDocumentRequest = v44__namespace.object({
|
|
1812
1806
|
documentId: IsValidReferenceDocumentId,
|
|
1813
1807
|
data: SCreateCreativeFormatVariantDocument
|
|
1814
1808
|
});
|
|
1815
|
-
var SReadCreativeFormatVariantDocumentById =
|
|
1809
|
+
var SReadCreativeFormatVariantDocumentById = v44__namespace.object({
|
|
1816
1810
|
id: IsValidReferenceId
|
|
1817
1811
|
});
|
|
1818
|
-
var SReadCreativeFormatVariantDocumentByDocumentId =
|
|
1812
|
+
var SReadCreativeFormatVariantDocumentByDocumentId = v44__namespace.object({
|
|
1819
1813
|
documentId: IsValidReferenceDocumentId
|
|
1820
1814
|
});
|
|
1821
|
-
var SUpdateAsCreatorCreativeFormatVariantDocument =
|
|
1815
|
+
var SUpdateAsCreatorCreativeFormatVariantDocument = v44__namespace.object({
|
|
1822
1816
|
label: IsValidOrUndefinedLabel,
|
|
1823
1817
|
value: IsValidOrUndefinedValue,
|
|
1824
1818
|
description: IsValidOrUndefinedDescription,
|
|
1825
1819
|
is_active: IsValidOrUndefinedIsActive
|
|
1826
1820
|
});
|
|
1827
|
-
var SUpdateAsCreatorCreativeFormatVariantDocumentRequest =
|
|
1821
|
+
var SUpdateAsCreatorCreativeFormatVariantDocumentRequest = v44__namespace.object({
|
|
1828
1822
|
documentId: IsValidReferenceDocumentId,
|
|
1829
1823
|
data: SUpdateAsCreatorCreativeFormatVariantDocument
|
|
1830
1824
|
});
|
|
1831
|
-
var SUpdateAsInvitedCreativeFormatVariantDocument =
|
|
1825
|
+
var SUpdateAsInvitedCreativeFormatVariantDocument = v44__namespace.object({
|
|
1832
1826
|
label: IsValidOrUndefinedLabel,
|
|
1833
1827
|
description: IsValidDescription,
|
|
1834
1828
|
is_active: IsValidOrUndefinedIsActive
|
|
1835
1829
|
});
|
|
1836
|
-
var SUpdateAsInvitedCreativeFormatVariantDocumentRequest =
|
|
1830
|
+
var SUpdateAsInvitedCreativeFormatVariantDocumentRequest = v44__namespace.object({
|
|
1837
1831
|
documentId: IsValidReferenceDocumentId,
|
|
1838
1832
|
data: SUpdateAsInvitedCreativeFormatVariantDocument
|
|
1839
1833
|
});
|
|
1840
|
-
var SUpdateCreativeFormatVariantDocumentRequest =
|
|
1834
|
+
var SUpdateCreativeFormatVariantDocumentRequest = v44__namespace.union([
|
|
1841
1835
|
SUpdateAsCreatorCreativeFormatVariantDocument,
|
|
1842
1836
|
SUpdateAsInvitedCreativeFormatVariantDocument
|
|
1843
1837
|
]);
|
|
1844
|
-
var SDeleteCreativeFormatVariantDocument =
|
|
1838
|
+
var SDeleteCreativeFormatVariantDocument = v44__namespace.object({
|
|
1845
1839
|
documentId: IsValidReferenceDocumentId
|
|
1846
1840
|
});
|
|
1847
|
-
var SQueryListCreativeFormatDocuments =
|
|
1841
|
+
var SQueryListCreativeFormatDocuments = v44__namespace.object({
|
|
1848
1842
|
documentId: IsValidReferenceDocumentId,
|
|
1849
1843
|
page: IsValidMinPage,
|
|
1850
|
-
size:
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
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)
|
|
1856
1850
|
),
|
|
1857
1851
|
CREATIVE_FORMAT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1858
1852
|
),
|
|
1859
1853
|
CREATIVE_FORMAT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1860
1854
|
)
|
|
1861
1855
|
});
|
|
1862
|
-
var SCreateCreativeFormatDocument =
|
|
1856
|
+
var SCreateCreativeFormatDocument = v44__namespace.object({
|
|
1863
1857
|
label: IsValidLabel,
|
|
1864
1858
|
value: IsValidValue,
|
|
1865
1859
|
description: IsValidDescription,
|
|
1866
1860
|
is_active: IsValidIsActive
|
|
1867
1861
|
});
|
|
1868
|
-
var SCreateCreativeFormatDocumentRequest =
|
|
1862
|
+
var SCreateCreativeFormatDocumentRequest = v44__namespace.object({
|
|
1869
1863
|
documentId: IsValidReferenceDocumentId,
|
|
1870
1864
|
data: SCreateCreativeFormatDocument
|
|
1871
1865
|
});
|
|
1872
|
-
var SReadCreativeFormatDocumentById =
|
|
1866
|
+
var SReadCreativeFormatDocumentById = v44__namespace.object({
|
|
1873
1867
|
id: IsValidReferenceId
|
|
1874
1868
|
});
|
|
1875
|
-
var SReadCreativeFormatDocumentByDocumentId =
|
|
1869
|
+
var SReadCreativeFormatDocumentByDocumentId = v44__namespace.object({
|
|
1876
1870
|
documentId: IsValidReferenceDocumentId
|
|
1877
1871
|
});
|
|
1878
|
-
var SUpdateAsCreatorCreativeFormatDocument =
|
|
1872
|
+
var SUpdateAsCreatorCreativeFormatDocument = v44__namespace.object({
|
|
1879
1873
|
label: IsValidOrUndefinedLabel,
|
|
1880
1874
|
value: IsValidOrUndefinedValue,
|
|
1881
1875
|
description: IsValidOrUndefinedDescription,
|
|
1882
1876
|
is_active: IsValidOrUndefinedIsActive
|
|
1883
1877
|
});
|
|
1884
|
-
var SUpdateAsCreatorCreativeFormatDocumentRequest =
|
|
1878
|
+
var SUpdateAsCreatorCreativeFormatDocumentRequest = v44__namespace.object({
|
|
1885
1879
|
documentId: IsValidReferenceDocumentId,
|
|
1886
1880
|
data: SUpdateAsCreatorCreativeFormatDocument
|
|
1887
1881
|
});
|
|
1888
|
-
var SUpdateAsInvitedCreativeFormatDocument =
|
|
1882
|
+
var SUpdateAsInvitedCreativeFormatDocument = v44__namespace.object({
|
|
1889
1883
|
label: IsValidOrUndefinedLabel,
|
|
1890
1884
|
description: IsValidDescription,
|
|
1891
1885
|
is_active: IsValidOrUndefinedIsActive
|
|
1892
1886
|
});
|
|
1893
|
-
var SUpdateAsInvitedCreativeFormatDocumentRequest =
|
|
1887
|
+
var SUpdateAsInvitedCreativeFormatDocumentRequest = v44__namespace.object({
|
|
1894
1888
|
documentId: IsValidReferenceDocumentId,
|
|
1895
1889
|
data: SUpdateAsInvitedCreativeFormatDocument
|
|
1896
1890
|
});
|
|
1897
|
-
var SUpdateCreativeFormatDocumentRequest =
|
|
1891
|
+
var SUpdateCreativeFormatDocumentRequest = v44__namespace.union([
|
|
1898
1892
|
SUpdateAsCreatorCreativeFormatDocument,
|
|
1899
1893
|
SUpdateAsInvitedCreativeFormatDocument
|
|
1900
1894
|
]);
|
|
1901
|
-
var SDeleteCreativeFormatDocument =
|
|
1895
|
+
var SDeleteCreativeFormatDocument = v44__namespace.object({
|
|
1902
1896
|
documentId: IsValidReferenceDocumentId
|
|
1903
1897
|
});
|
|
1904
|
-
var SQueryListMediumDocuments =
|
|
1898
|
+
var SQueryListMediumDocuments = v44__namespace.object({
|
|
1905
1899
|
documentId: IsValidReferenceDocumentId,
|
|
1906
1900
|
page: IsValidMinPage,
|
|
1907
|
-
size:
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
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)
|
|
1913
1907
|
),
|
|
1914
1908
|
MEDIUM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1915
1909
|
),
|
|
1916
1910
|
MEDIUM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1917
1911
|
)
|
|
1918
1912
|
});
|
|
1919
|
-
var SCreateMediumDocument =
|
|
1913
|
+
var SCreateMediumDocument = v44__namespace.object({
|
|
1920
1914
|
label: IsValidLabel,
|
|
1921
1915
|
value: IsValidValue,
|
|
1922
1916
|
description: IsValidDescription,
|
|
1923
1917
|
is_active: IsValidIsActive
|
|
1924
1918
|
});
|
|
1925
|
-
var SCreateMediumDocumentRequest =
|
|
1919
|
+
var SCreateMediumDocumentRequest = v44__namespace.object({
|
|
1926
1920
|
documentId: IsValidReferenceDocumentId,
|
|
1927
1921
|
data: SCreateMediumDocument
|
|
1928
1922
|
});
|
|
1929
|
-
var SReadMediumDocumentById =
|
|
1923
|
+
var SReadMediumDocumentById = v44__namespace.object({
|
|
1930
1924
|
id: IsValidReferenceId
|
|
1931
1925
|
});
|
|
1932
|
-
var SReadMediumDocumentByDocumentId =
|
|
1926
|
+
var SReadMediumDocumentByDocumentId = v44__namespace.object({
|
|
1933
1927
|
documentId: IsValidReferenceDocumentId
|
|
1934
1928
|
});
|
|
1935
|
-
var SUpdateAsCreatorMediumDocument =
|
|
1929
|
+
var SUpdateAsCreatorMediumDocument = v44__namespace.object({
|
|
1936
1930
|
label: IsValidOrUndefinedLabel,
|
|
1937
1931
|
value: IsValidOrUndefinedValue,
|
|
1938
1932
|
description: IsValidOrUndefinedDescription,
|
|
1939
1933
|
is_active: IsValidOrUndefinedIsActive
|
|
1940
1934
|
});
|
|
1941
|
-
var SUpdateAsCreatorMediumDocumentRequest =
|
|
1935
|
+
var SUpdateAsCreatorMediumDocumentRequest = v44__namespace.object({
|
|
1942
1936
|
documentId: IsValidReferenceDocumentId,
|
|
1943
1937
|
data: SUpdateAsCreatorMediumDocument
|
|
1944
1938
|
});
|
|
1945
|
-
var SUpdateAsInvitedMediumDocument =
|
|
1939
|
+
var SUpdateAsInvitedMediumDocument = v44__namespace.object({
|
|
1946
1940
|
label: IsValidOrUndefinedLabel,
|
|
1947
1941
|
description: IsValidDescription,
|
|
1948
1942
|
is_active: IsValidOrUndefinedIsActive
|
|
1949
1943
|
});
|
|
1950
|
-
var SUpdateAsInvitedMediumDocumentRequest =
|
|
1944
|
+
var SUpdateAsInvitedMediumDocumentRequest = v44__namespace.object({
|
|
1951
1945
|
documentId: IsValidReferenceDocumentId,
|
|
1952
1946
|
data: SUpdateAsInvitedMediumDocument
|
|
1953
1947
|
});
|
|
1954
|
-
var SUpdateMediumDocumentRequest =
|
|
1948
|
+
var SUpdateMediumDocumentRequest = v44__namespace.union([
|
|
1955
1949
|
SUpdateAsCreatorMediumDocument,
|
|
1956
1950
|
SUpdateAsInvitedMediumDocument
|
|
1957
1951
|
]);
|
|
1958
|
-
var SDeleteMediumDocument =
|
|
1952
|
+
var SDeleteMediumDocument = v44__namespace.object({
|
|
1959
1953
|
documentId: IsValidReferenceDocumentId
|
|
1960
1954
|
});
|
|
1961
|
-
var SQueryListSourceDocuments =
|
|
1955
|
+
var SQueryListSourceDocuments = v44__namespace.object({
|
|
1962
1956
|
documentId: IsValidReferenceDocumentId,
|
|
1963
1957
|
page: IsValidMinPage,
|
|
1964
|
-
size:
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
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)
|
|
1970
1964
|
),
|
|
1971
1965
|
SOURCE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1972
1966
|
),
|
|
1973
1967
|
SOURCE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1974
1968
|
)
|
|
1975
1969
|
});
|
|
1976
|
-
var SCreateSourceDocument =
|
|
1970
|
+
var SCreateSourceDocument = v44__namespace.object({
|
|
1977
1971
|
label: IsValidLabel,
|
|
1978
1972
|
value: IsValidValue,
|
|
1979
1973
|
description: IsValidDescription,
|
|
1980
1974
|
is_active: IsValidIsActive
|
|
1981
1975
|
});
|
|
1982
|
-
var SCreateSourceDocumentRequest =
|
|
1976
|
+
var SCreateSourceDocumentRequest = v44__namespace.object({
|
|
1983
1977
|
documentId: IsValidReferenceDocumentId,
|
|
1984
1978
|
data: SCreateSourceDocument
|
|
1985
1979
|
});
|
|
1986
|
-
var SReadSourceDocumentById =
|
|
1980
|
+
var SReadSourceDocumentById = v44__namespace.object({
|
|
1987
1981
|
id: IsValidReferenceId
|
|
1988
1982
|
});
|
|
1989
|
-
var SReadSourceDocumentByDocumentId =
|
|
1983
|
+
var SReadSourceDocumentByDocumentId = v44__namespace.object({
|
|
1990
1984
|
documentId: IsValidReferenceDocumentId
|
|
1991
1985
|
});
|
|
1992
|
-
var SUpdateAsCreatorSourceDocument =
|
|
1986
|
+
var SUpdateAsCreatorSourceDocument = v44__namespace.object({
|
|
1993
1987
|
label: IsValidOrUndefinedLabel,
|
|
1994
1988
|
value: IsValidOrUndefinedValue,
|
|
1995
1989
|
description: IsValidOrUndefinedDescription,
|
|
1996
1990
|
is_active: IsValidOrUndefinedIsActive
|
|
1997
1991
|
});
|
|
1998
|
-
var SUpdateAsCreatorSourceDocumentRequest =
|
|
1992
|
+
var SUpdateAsCreatorSourceDocumentRequest = v44__namespace.object({
|
|
1999
1993
|
documentId: IsValidReferenceDocumentId,
|
|
2000
1994
|
data: SUpdateAsCreatorSourceDocument
|
|
2001
1995
|
});
|
|
2002
|
-
var SUpdateAsInvitedSourceDocument =
|
|
1996
|
+
var SUpdateAsInvitedSourceDocument = v44__namespace.object({
|
|
2003
1997
|
label: IsValidOrUndefinedLabel,
|
|
2004
1998
|
description: IsValidDescription,
|
|
2005
1999
|
is_active: IsValidOrUndefinedIsActive
|
|
2006
2000
|
});
|
|
2007
|
-
var SUpdateAsInvitedSourceDocumentRequest =
|
|
2001
|
+
var SUpdateAsInvitedSourceDocumentRequest = v44__namespace.object({
|
|
2008
2002
|
documentId: IsValidReferenceDocumentId,
|
|
2009
2003
|
data: SUpdateAsInvitedSourceDocument
|
|
2010
2004
|
});
|
|
2011
|
-
var SUpdateSourceDocumentRequest =
|
|
2005
|
+
var SUpdateSourceDocumentRequest = v44__namespace.union([
|
|
2012
2006
|
SUpdateAsCreatorSourceDocument,
|
|
2013
2007
|
SUpdateAsInvitedSourceDocument
|
|
2014
2008
|
]);
|
|
2015
|
-
var SDeleteSourceDocument =
|
|
2009
|
+
var SDeleteSourceDocument = v44__namespace.object({
|
|
2016
2010
|
documentId: IsValidReferenceDocumentId
|
|
2017
2011
|
});
|
|
2018
|
-
var SQueryListTermDocuments =
|
|
2012
|
+
var SQueryListTermDocuments = v44__namespace.object({
|
|
2019
2013
|
documentId: IsValidReferenceDocumentId,
|
|
2020
2014
|
page: IsValidMinPage,
|
|
2021
|
-
size:
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
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)
|
|
2027
2021
|
),
|
|
2028
2022
|
TERM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2029
2023
|
),
|
|
2030
2024
|
TERM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2031
2025
|
)
|
|
2032
2026
|
});
|
|
2033
|
-
var SCreateTermDocument =
|
|
2027
|
+
var SCreateTermDocument = v44__namespace.object({
|
|
2034
2028
|
label: IsValidLabel,
|
|
2035
2029
|
value: IsValidValue,
|
|
2036
2030
|
description: IsValidDescription,
|
|
2037
2031
|
is_active: IsValidIsActive
|
|
2038
2032
|
});
|
|
2039
|
-
var SCreateTermDocumentRequest =
|
|
2033
|
+
var SCreateTermDocumentRequest = v44__namespace.object({
|
|
2040
2034
|
documentId: IsValidReferenceDocumentId,
|
|
2041
2035
|
data: SCreateTermDocument
|
|
2042
2036
|
});
|
|
2043
|
-
var SReadTermDocumentById =
|
|
2037
|
+
var SReadTermDocumentById = v44__namespace.object({
|
|
2044
2038
|
id: IsValidReferenceId
|
|
2045
2039
|
});
|
|
2046
|
-
var SReadTermDocumentByDocumentId =
|
|
2040
|
+
var SReadTermDocumentByDocumentId = v44__namespace.object({
|
|
2047
2041
|
documentId: IsValidReferenceDocumentId
|
|
2048
2042
|
});
|
|
2049
|
-
var SUpdateAsCreatorTermDocument =
|
|
2043
|
+
var SUpdateAsCreatorTermDocument = v44__namespace.object({
|
|
2050
2044
|
label: IsValidOrUndefinedLabel,
|
|
2051
2045
|
value: IsValidOrUndefinedValue,
|
|
2052
2046
|
description: IsValidOrUndefinedDescription,
|
|
2053
2047
|
is_active: IsValidOrUndefinedIsActive
|
|
2054
2048
|
});
|
|
2055
|
-
var SUpdateAsCreatorTermDocumentRequest =
|
|
2049
|
+
var SUpdateAsCreatorTermDocumentRequest = v44__namespace.object({
|
|
2056
2050
|
documentId: IsValidReferenceDocumentId,
|
|
2057
2051
|
data: SUpdateAsCreatorTermDocument
|
|
2058
2052
|
});
|
|
2059
|
-
var SUpdateAsInvitedTermDocument =
|
|
2053
|
+
var SUpdateAsInvitedTermDocument = v44__namespace.object({
|
|
2060
2054
|
label: IsValidOrUndefinedLabel,
|
|
2061
2055
|
description: IsValidDescription,
|
|
2062
2056
|
is_active: IsValidOrUndefinedIsActive
|
|
2063
2057
|
});
|
|
2064
|
-
var SUpdateAsInvitedTermDocumentRequest =
|
|
2058
|
+
var SUpdateAsInvitedTermDocumentRequest = v44__namespace.object({
|
|
2065
2059
|
documentId: IsValidReferenceDocumentId,
|
|
2066
2060
|
data: SUpdateAsInvitedTermDocument
|
|
2067
2061
|
});
|
|
2068
|
-
var SUpdateTermDocumentRequest =
|
|
2062
|
+
var SUpdateTermDocumentRequest = v44__namespace.union([
|
|
2069
2063
|
SUpdateAsCreatorTermDocument,
|
|
2070
2064
|
SUpdateAsInvitedTermDocument
|
|
2071
2065
|
]);
|
|
2072
|
-
var SDeleteTermDocument =
|
|
2066
|
+
var SDeleteTermDocument = v44__namespace.object({
|
|
2073
2067
|
documentId: IsValidReferenceDocumentId
|
|
2074
2068
|
});
|
|
2075
|
-
var SQueryListWebsiteDocuments =
|
|
2069
|
+
var SQueryListWebsiteDocuments = v44__namespace.object({
|
|
2076
2070
|
documentId: IsValidReferenceDocumentId,
|
|
2077
2071
|
page: IsValidMinPage,
|
|
2078
|
-
size:
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
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)
|
|
2084
2078
|
),
|
|
2085
2079
|
WEBSITE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2086
2080
|
),
|
|
2087
2081
|
WEBSITE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2088
2082
|
)
|
|
2089
2083
|
});
|
|
2090
|
-
var SCreateWebsiteDocument =
|
|
2084
|
+
var SCreateWebsiteDocument = v44__namespace.object({
|
|
2091
2085
|
domain: IsValidUrlDomain,
|
|
2092
2086
|
description: IsValidOrUndefinedDescription,
|
|
2093
2087
|
is_secure: IsValidIsSecure,
|
|
2094
2088
|
is_active: IsValidIsActive
|
|
2095
2089
|
});
|
|
2096
|
-
var SCreateWebsiteDocumentRequest =
|
|
2090
|
+
var SCreateWebsiteDocumentRequest = v44__namespace.object({
|
|
2097
2091
|
documentId: IsValidReferenceDocumentId,
|
|
2098
2092
|
data: SCreateWebsiteDocument
|
|
2099
2093
|
});
|
|
2100
|
-
var SReadWebsiteDocumentById =
|
|
2094
|
+
var SReadWebsiteDocumentById = v44__namespace.object({
|
|
2101
2095
|
id: IsValidReferenceId
|
|
2102
2096
|
});
|
|
2103
|
-
var SReadWebsiteDocumentByDocumentId =
|
|
2097
|
+
var SReadWebsiteDocumentByDocumentId = v44__namespace.object({
|
|
2104
2098
|
documentId: IsValidReferenceDocumentId
|
|
2105
2099
|
});
|
|
2106
|
-
var SUpdateAsCreatorWebsiteDocument =
|
|
2100
|
+
var SUpdateAsCreatorWebsiteDocument = v44__namespace.object({
|
|
2107
2101
|
domain: IsValidOrUndefinedUrlDomain,
|
|
2108
2102
|
description: IsValidOrUndefinedDescription,
|
|
2109
2103
|
is_secure: IsValidIsSecure,
|
|
2110
2104
|
is_active: IsValidIsActive
|
|
2111
2105
|
});
|
|
2112
|
-
var SUpdateAsCreatorWebsiteDocumentRequest =
|
|
2106
|
+
var SUpdateAsCreatorWebsiteDocumentRequest = v44__namespace.object({
|
|
2113
2107
|
documentId: IsValidReferenceDocumentId,
|
|
2114
2108
|
data: SUpdateAsCreatorWebsiteDocument
|
|
2115
2109
|
});
|
|
2116
|
-
var SUpdateAsInvitedWebsiteDocument =
|
|
2110
|
+
var SUpdateAsInvitedWebsiteDocument = v44__namespace.object({
|
|
2117
2111
|
description: IsValidOrUndefinedDescription
|
|
2118
2112
|
});
|
|
2119
|
-
var SUpdateAsInvitedWebsiteDocumentRequest =
|
|
2113
|
+
var SUpdateAsInvitedWebsiteDocumentRequest = v44__namespace.object({
|
|
2120
2114
|
documentId: IsValidReferenceDocumentId,
|
|
2121
2115
|
data: SUpdateAsInvitedWebsiteDocument
|
|
2122
2116
|
});
|
|
2123
|
-
var SUpdateWebsiteDocumentRequest =
|
|
2117
|
+
var SUpdateWebsiteDocumentRequest = v44__namespace.union([
|
|
2124
2118
|
SUpdateAsCreatorWebsiteDocument,
|
|
2125
2119
|
SUpdateAsInvitedWebsiteDocument
|
|
2126
2120
|
]);
|
|
2127
|
-
var SDeleteWebsiteDocument =
|
|
2121
|
+
var SDeleteWebsiteDocument = v44__namespace.object({
|
|
2128
2122
|
documentId: IsValidReferenceDocumentId
|
|
2129
2123
|
});
|
|
2130
|
-
var SUserDocumentWithRelations =
|
|
2124
|
+
var SUserDocumentWithRelations = v44__namespace.intersect([
|
|
2131
2125
|
SBaseDocument,
|
|
2132
2126
|
SBaseUserDocument,
|
|
2133
2127
|
SUserRelationsDocument
|
|
2134
2128
|
]);
|
|
2135
|
-
var SUserDocumentWithAccountRelations =
|
|
2129
|
+
var SUserDocumentWithAccountRelations = v44__namespace.intersect([
|
|
2136
2130
|
SBaseDocument,
|
|
2137
2131
|
SBaseUserDocument,
|
|
2138
2132
|
SUserRelationReqAccount
|
|
2139
2133
|
]);
|
|
2140
|
-
var SUserDocumentWithAccountAndRoleRelations =
|
|
2134
|
+
var SUserDocumentWithAccountAndRoleRelations = v44__namespace.intersect([
|
|
2141
2135
|
SBaseDocument,
|
|
2142
2136
|
SBaseUserDocument,
|
|
2143
2137
|
SUserRelationReqRole,
|
|
@@ -2145,96 +2139,101 @@ var SUserDocumentWithAccountAndRoleRelations = v47__namespace.intersect([
|
|
|
2145
2139
|
]);
|
|
2146
2140
|
|
|
2147
2141
|
// src/relations/auth.populate.ts
|
|
2148
|
-
var SUserAuthorizationSuccessResponse =
|
|
2149
|
-
jwt:
|
|
2142
|
+
var SUserAuthorizationSuccessResponse = v44__namespace.object({
|
|
2143
|
+
jwt: v44__namespace.string(),
|
|
2150
2144
|
user: SUserDocumentWithAccountAndRoleRelations
|
|
2151
2145
|
});
|
|
2152
|
-
var SGroupUserDocumentWithRelations =
|
|
2146
|
+
var SGroupUserDocumentWithRelations = v44__namespace.intersect([
|
|
2153
2147
|
SBaseDocument,
|
|
2154
2148
|
SBaseGroupUserDocument,
|
|
2155
2149
|
SGroupUserRelationsDocument
|
|
2156
2150
|
]);
|
|
2157
|
-
var SGroupUserDocumentReqRelations =
|
|
2151
|
+
var SGroupUserDocumentReqRelations = v44__namespace.intersect([
|
|
2158
2152
|
SBaseDocument,
|
|
2159
2153
|
SBaseGroupUserDocument,
|
|
2160
2154
|
SGroupUserRelationsReqDocument
|
|
2161
2155
|
]);
|
|
2162
|
-
var SGroupDocumentWithRelations =
|
|
2156
|
+
var SGroupDocumentWithRelations = v44__namespace.intersect([
|
|
2163
2157
|
SBaseDocument,
|
|
2164
2158
|
SBaseGroupDocument,
|
|
2165
2159
|
SGroupRelationsDocument
|
|
2166
2160
|
]);
|
|
2167
|
-
var SRoleDocumentWithRelations =
|
|
2161
|
+
var SRoleDocumentWithRelations = v44__namespace.intersect([
|
|
2168
2162
|
SBaseDocument,
|
|
2169
2163
|
SBaseRoleDocument,
|
|
2170
2164
|
SRoleRelationsDocument
|
|
2171
2165
|
]);
|
|
2172
|
-
var STrackingLinkDocumentWithRelations =
|
|
2166
|
+
var STrackingLinkDocumentWithRelations = v44__namespace.intersect([
|
|
2173
2167
|
SBaseDocument,
|
|
2174
2168
|
SBaseTrackingLinkDocument,
|
|
2175
2169
|
STrackingLinkRelationsDocument
|
|
2176
2170
|
]);
|
|
2177
|
-
var SUserAccountDocumentWithRelations =
|
|
2171
|
+
var SUserAccountDocumentWithRelations = v44__namespace.intersect([
|
|
2178
2172
|
SBaseDocument,
|
|
2179
2173
|
SBaseUserAccountDocument,
|
|
2180
2174
|
SUserAccountRelationsDocument
|
|
2181
2175
|
]);
|
|
2182
|
-
var
|
|
2176
|
+
var SUserAccountDocumentReqRelations = v44__namespace.intersect([
|
|
2177
|
+
SBaseDocument,
|
|
2178
|
+
SBaseUserAccountDocument,
|
|
2179
|
+
SUserAccountRelationsReqDocument
|
|
2180
|
+
]);
|
|
2181
|
+
var SUserLimitationsDocumentWithRelations = v44__namespace.intersect([
|
|
2183
2182
|
SBaseDocument,
|
|
2184
2183
|
SBaseUserLimitationsDocument,
|
|
2185
2184
|
SUserLimitationsRelationsDocument
|
|
2186
2185
|
]);
|
|
2187
|
-
var SCampaignIdDocumentWithRelations =
|
|
2186
|
+
var SCampaignIdDocumentWithRelations = v44__namespace.intersect([
|
|
2188
2187
|
SBaseDocument,
|
|
2189
2188
|
SBaseCampaignIdDocument,
|
|
2190
2189
|
SCampaignIdRelationsDocument
|
|
2191
2190
|
]);
|
|
2192
|
-
var SCampaignKeyDocumentWithRelations =
|
|
2191
|
+
var SCampaignKeyDocumentWithRelations = v44__namespace.intersect([
|
|
2193
2192
|
SBaseDocument,
|
|
2194
2193
|
SBaseCampaignKeyDocument,
|
|
2195
2194
|
SCampaignKeyRelationsDocument
|
|
2196
2195
|
]);
|
|
2197
|
-
var SCampaignPhaseDocumentWithRelations =
|
|
2196
|
+
var SCampaignPhaseDocumentWithRelations = v44__namespace.intersect([
|
|
2198
2197
|
SBaseDocument,
|
|
2199
2198
|
SBaseCampaignPhaseDocument,
|
|
2200
2199
|
SCampaignPhaseRelationsDocument
|
|
2201
2200
|
]);
|
|
2202
|
-
var SCampaignProductDocumentWithRelations =
|
|
2201
|
+
var SCampaignProductDocumentWithRelations = v44__namespace.intersect([
|
|
2203
2202
|
SBaseDocument,
|
|
2204
2203
|
SBaseCampaignProductDocument,
|
|
2205
2204
|
SCampaignProductRelationsDocument
|
|
2206
2205
|
]);
|
|
2207
|
-
var SSourceDocumentWithRelations =
|
|
2206
|
+
var SSourceDocumentWithRelations = v44__namespace.intersect([
|
|
2208
2207
|
SBaseDocument,
|
|
2209
2208
|
SBaseSourceDocument,
|
|
2210
2209
|
SSourceRelationsDocument
|
|
2211
2210
|
]);
|
|
2212
|
-
var SMediumDocumentWithRelations =
|
|
2211
|
+
var SMediumDocumentWithRelations = v44__namespace.intersect([
|
|
2213
2212
|
SBaseDocument,
|
|
2214
2213
|
SBaseMediumDocument,
|
|
2215
2214
|
SMediumRelationsDocument
|
|
2216
2215
|
]);
|
|
2217
|
-
var SContentDocumentWithRelations =
|
|
2216
|
+
var SContentDocumentWithRelations = v44__namespace.intersect([
|
|
2218
2217
|
SBaseDocument,
|
|
2219
2218
|
SBaseContentDocument,
|
|
2220
2219
|
SContentRelationsDocument
|
|
2221
2220
|
]);
|
|
2222
|
-
var SCreativeFormatDocumentWithRelations =
|
|
2221
|
+
var SCreativeFormatDocumentWithRelations = v44__namespace.intersect([
|
|
2223
2222
|
SBaseDocument,
|
|
2224
2223
|
SBaseCreativeFormatDocument,
|
|
2225
2224
|
SCreativeFormatRelationsDocument
|
|
2226
2225
|
]);
|
|
2227
|
-
var SCreativeFormatVariantDocumentWithRelations =
|
|
2226
|
+
var SCreativeFormatVariantDocumentWithRelations = v44__namespace.intersect([
|
|
2228
2227
|
SBaseDocument,
|
|
2229
2228
|
SBaseCreativeFormatVariantDocument,
|
|
2230
2229
|
SCreativeFormatVariantRelationsDocument
|
|
2231
2230
|
]);
|
|
2232
|
-
var STermDocumentWithRelations =
|
|
2231
|
+
var STermDocumentWithRelations = v44__namespace.intersect([
|
|
2233
2232
|
SBaseDocument,
|
|
2234
2233
|
SBaseTermDocument,
|
|
2235
2234
|
STermRelationsDocument
|
|
2236
2235
|
]);
|
|
2237
|
-
var SWebsiteDocumentWithRelations =
|
|
2236
|
+
var SWebsiteDocumentWithRelations = v44__namespace.intersect([
|
|
2238
2237
|
SBaseDocument,
|
|
2239
2238
|
SBaseWebsiteDocument,
|
|
2240
2239
|
SWebsiteRelationsDocument
|
|
@@ -2255,10 +2254,10 @@ function datePlusDays(today, days = 30) {
|
|
|
2255
2254
|
function validateAndClean(schema, input) {
|
|
2256
2255
|
var _a, _b;
|
|
2257
2256
|
try {
|
|
2258
|
-
const parsed =
|
|
2257
|
+
const parsed = v44__namespace.parse(schema, input);
|
|
2259
2258
|
return { data: parsed, error: null, errors: null };
|
|
2260
2259
|
} catch (err) {
|
|
2261
|
-
if (err instanceof
|
|
2260
|
+
if (err instanceof v44__namespace.ValiError) {
|
|
2262
2261
|
const errors = {};
|
|
2263
2262
|
for (const issue of err.issues) {
|
|
2264
2263
|
const field = ((_b = (_a = issue.path) == null ? void 0 : _a[0]) == null ? void 0 : _b.key) || "unknown";
|
|
@@ -2726,8 +2725,10 @@ exports.SUpdateUserAccountDocument = SUpdateUserAccountDocument;
|
|
|
2726
2725
|
exports.SUpdateUserLimitationsDocument = SUpdateUserLimitationsDocument;
|
|
2727
2726
|
exports.SUpdateWebsiteDocumentRequest = SUpdateWebsiteDocumentRequest;
|
|
2728
2727
|
exports.SUserAccountDocument = SUserAccountDocument;
|
|
2728
|
+
exports.SUserAccountDocumentReqRelations = SUserAccountDocumentReqRelations;
|
|
2729
2729
|
exports.SUserAccountDocumentWithRelations = SUserAccountDocumentWithRelations;
|
|
2730
2730
|
exports.SUserAccountRelationsDocument = SUserAccountRelationsDocument;
|
|
2731
|
+
exports.SUserAccountRelationsReqDocument = SUserAccountRelationsReqDocument;
|
|
2731
2732
|
exports.SUserAuthorizationSuccessResponse = SUserAuthorizationSuccessResponse;
|
|
2732
2733
|
exports.SUserDocument = SUserDocument;
|
|
2733
2734
|
exports.SUserDocumentWithAccountAndRoleRelations = SUserDocumentWithAccountAndRoleRelations;
|