@joeygrable94/utm-src-pub-validators 0.0.51 → 0.0.53
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 +1693 -1074
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1073 -294
- package/dist/index.d.ts +1073 -294
- package/dist/index.js +1674 -1074
- 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 v29 = 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 v29__namespace = /*#__PURE__*/_interopNamespace(v29);
|
|
24
24
|
|
|
25
25
|
// src/actions/group-user.crud.ts
|
|
26
26
|
|
|
@@ -183,468 +183,476 @@ 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 = v29__namespace.pipe(
|
|
187
|
+
v29__namespace.number("please provide a valid id"),
|
|
188
|
+
v29__namespace.minValue(0, "please provide a valid id")
|
|
189
189
|
);
|
|
190
|
-
var IsValidReferenceDocumentId =
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
190
|
+
var IsValidReferenceDocumentId = v29__namespace.pipe(
|
|
191
|
+
v29__namespace.string("please provide a valid document id"),
|
|
192
|
+
v29__namespace.minLength(1),
|
|
193
|
+
v29__namespace.maxLength(255)
|
|
194
194
|
);
|
|
195
|
-
var IsValidMinPage =
|
|
196
|
-
|
|
195
|
+
var IsValidMinPage = v29__namespace.fallback(
|
|
196
|
+
v29__namespace.optional(v29__namespace.pipe(v29__namespace.number(), v29__namespace.minValue(1)), 1),
|
|
197
197
|
1
|
|
198
198
|
);
|
|
199
|
-
var IsValidCost =
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
199
|
+
var IsValidCost = v29__namespace.pipe(
|
|
200
|
+
v29__namespace.number("please enter a cost value"),
|
|
201
|
+
v29__namespace.minValue(0),
|
|
202
|
+
v29__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 = v29__namespace.undefinedable(IsValidCost);
|
|
208
|
+
var IsValidLabel = v29__namespace.pipe(
|
|
209
|
+
v29__namespace.string("please provide a label"),
|
|
210
|
+
v29__namespace.trim(),
|
|
211
|
+
v29__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
|
+
v29__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 = v29__namespace.undefinedable(IsValidLabel);
|
|
221
|
+
var IsValidValue = v29__namespace.pipe(
|
|
222
|
+
v29__namespace.string("please provide a value"),
|
|
223
|
+
v29__namespace.trim(),
|
|
224
|
+
v29__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
|
+
v29__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
|
+
v29__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 = v29__namespace.undefinedable(IsValidValue);
|
|
235
|
+
var IsValidDescription = v29__namespace.nullable(
|
|
236
|
+
v29__namespace.pipe(
|
|
237
|
+
v29__namespace.string("the description must be a string"),
|
|
238
|
+
v29__namespace.trim(),
|
|
239
|
+
v29__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 = v29__namespace.undefinedable(IsValidDescription);
|
|
246
|
+
var IsValidIsActive = v29__namespace.boolean("isActive must be a boolean");
|
|
247
|
+
var IsValidOrUndefinedIsActive = v29__namespace.undefinedable(IsValidIsActive);
|
|
248
|
+
var IsValidIsSecure = v29__namespace.boolean("isSecure must be a boolean");
|
|
249
|
+
var IsValidOrUndefinedIsSecure = v29__namespace.undefinedable(IsValidIsSecure);
|
|
250
|
+
var IsValidName = v29__namespace.pipe(
|
|
251
|
+
v29__namespace.string("please provide a name"),
|
|
252
|
+
v29__namespace.trim(),
|
|
253
|
+
v29__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
|
+
v29__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 = v29__namespace.undefinedable(IsValidName);
|
|
263
|
+
var IsValidGroupUserScopes = v29__namespace.pipe(
|
|
264
|
+
v29__namespace.array(
|
|
265
|
+
v29__namespace.pipe(
|
|
266
|
+
v29__namespace.string("please provide a valid scope"),
|
|
267
|
+
v29__namespace.picklist(GROUP_ENTITY_SCOPES, "invalid group scope provided")
|
|
268
268
|
),
|
|
269
269
|
"please provide an array of scopes"
|
|
270
270
|
),
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
v29__namespace.minLength(1, "you must provide at least one scope"),
|
|
272
|
+
v29__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 = v29__namespace.picklist(GroupApplyValueToOptions);
|
|
278
|
+
var IsValidOrUndefinedApplyValueTo = v29__namespace.undefinedable(IsValidApplyValueTo);
|
|
279
|
+
var IsValidApplyValueAs = v29__namespace.picklist(GroupApplyValueAsOptions);
|
|
280
|
+
var IsValidOrUndefinedApplyValueAs = v29__namespace.undefinedable(IsValidApplyValueAs);
|
|
281
|
+
var IsValidProductId = v29__namespace.pipe(
|
|
282
|
+
v29__namespace.string("please provide a product_id"),
|
|
283
|
+
v29__namespace.trim(),
|
|
284
|
+
v29__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
|
+
v29__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 = v29__namespace.undefinedable(IsValidProductId);
|
|
294
|
+
var IsValidPriceId = v29__namespace.pipe(
|
|
295
|
+
v29__namespace.string("please provide a price_id"),
|
|
296
|
+
v29__namespace.trim(),
|
|
297
|
+
v29__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
|
+
v29__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 = v29__namespace.undefinedable(IsValidPriceId);
|
|
307
|
+
var IsValidUnitAmount = v29__namespace.pipe(
|
|
308
|
+
v29__namespace.number("please provide a unit_amount"),
|
|
309
|
+
v29__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 = v29__namespace.undefinedable(IsValidUnitAmount);
|
|
315
|
+
var IsValidUnitTermInMonths = v29__namespace.pipe(
|
|
316
|
+
v29__namespace.number("please provide a unit_term_in_months"),
|
|
317
|
+
v29__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
|
+
v29__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 = v29__namespace.undefinedable(
|
|
327
327
|
IsValidUnitTermInMonths
|
|
328
328
|
);
|
|
329
|
-
var IsValidUrlDestination =
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
329
|
+
var IsValidUrlDestination = v29__namespace.pipe(
|
|
330
|
+
v29__namespace.string("please provide a url destination"),
|
|
331
|
+
v29__namespace.trim(),
|
|
332
|
+
v29__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
|
+
v29__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
|
+
v29__namespace.url("please provide a valid url")
|
|
341
341
|
);
|
|
342
|
-
var IsValidOrUndefinedUrlDestination =
|
|
343
|
-
var IsValidUrlProtocol =
|
|
344
|
-
|
|
345
|
-
|
|
342
|
+
var IsValidOrUndefinedUrlDestination = v29__namespace.undefinedable(IsValidUrlDestination);
|
|
343
|
+
var IsValidUrlProtocol = v29__namespace.pipe(
|
|
344
|
+
v29__namespace.string(),
|
|
345
|
+
v29__namespace.picklist(UrlProtocolOptions, "please provide a valid url protocol")
|
|
346
346
|
);
|
|
347
|
-
var IsValidOrUndefinedUrlProtocol =
|
|
348
|
-
var IsValidUrlDomain =
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
347
|
+
var IsValidOrUndefinedUrlProtocol = v29__namespace.undefinedable(IsValidUrlProtocol);
|
|
348
|
+
var IsValidUrlDomain = v29__namespace.pipe(
|
|
349
|
+
v29__namespace.string("please provide a domain"),
|
|
350
|
+
v29__namespace.trim(),
|
|
351
|
+
v29__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
|
+
v29__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
|
+
v29__namespace.regex(REGEX_DOMAIN, ERROR_MESSAGE_REGEX_DOMAIN)
|
|
360
360
|
);
|
|
361
|
-
var IsValidOrUndefinedUrlDomain =
|
|
362
|
-
var IsValidUrlPath =
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
361
|
+
var IsValidOrUndefinedUrlDomain = v29__namespace.undefinedable(IsValidUrlDomain);
|
|
362
|
+
var IsValidUrlPath = v29__namespace.pipe(
|
|
363
|
+
v29__namespace.string("please provide a url path"),
|
|
364
|
+
v29__namespace.trim(),
|
|
365
|
+
v29__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
|
+
v29__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 = v29__namespace.undefinedable(IsValidUrlPath);
|
|
375
|
+
var IsValidUrlQuery = v29__namespace.pipe(
|
|
376
|
+
v29__namespace.string("please provide a url query"),
|
|
377
|
+
v29__namespace.trim(),
|
|
378
|
+
v29__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
|
+
v29__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 = v29__namespace.undefinedable(IsValidUrlQuery);
|
|
388
|
+
var IsValidUrlFragment = v29__namespace.pipe(
|
|
389
|
+
v29__namespace.string("please provide a url hash/fragment"),
|
|
390
|
+
v29__namespace.trim(),
|
|
391
|
+
v29__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
|
+
v29__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 = v29__namespace.undefinedable(IsValidUrlFragment);
|
|
401
|
+
var IsValidCustomerId = v29__namespace.pipe(
|
|
402
|
+
v29__namespace.string("please provide a customer ID"),
|
|
403
|
+
v29__namespace.trim(),
|
|
404
|
+
v29__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 = v29__namespace.undefinedable(IsValidCustomerId);
|
|
410
|
+
var IsValidSubscriptionId = v29__namespace.pipe(
|
|
411
|
+
v29__namespace.string("please provide a subscription ID"),
|
|
412
|
+
v29__namespace.trim(),
|
|
413
|
+
v29__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 = v29__namespace.undefinedable(IsValidSubscriptionId);
|
|
419
|
+
var IsValidSubscriptionStatus = v29__namespace.pipe(
|
|
420
|
+
v29__namespace.string("please provide a subscription status"),
|
|
421
|
+
v29__namespace.trim(),
|
|
422
|
+
v29__namespace.picklist(SubscriptionStatusValues)
|
|
423
423
|
);
|
|
424
|
-
var IsValidOrUndefinedSubscriptionStatus =
|
|
424
|
+
var IsValidOrUndefinedSubscriptionStatus = v29__namespace.undefinedable(
|
|
425
425
|
IsValidSubscriptionStatus
|
|
426
426
|
);
|
|
427
|
-
var IsValidCurrentPeriodStart =
|
|
428
|
-
var IsValidOrUndefinedCurrentPeriodStart =
|
|
427
|
+
var IsValidCurrentPeriodStart = v29__namespace.nullable(v29__namespace.date());
|
|
428
|
+
var IsValidOrUndefinedCurrentPeriodStart = v29__namespace.undefinedable(
|
|
429
429
|
IsValidCurrentPeriodStart
|
|
430
430
|
);
|
|
431
|
-
var IsValidCurrentPeriodEnd =
|
|
432
|
-
var IsValidOrUndefinedCurrentPeriodEnd =
|
|
431
|
+
var IsValidCurrentPeriodEnd = v29__namespace.nullable(v29__namespace.date());
|
|
432
|
+
var IsValidOrUndefinedCurrentPeriodEnd = v29__namespace.undefinedable(
|
|
433
433
|
IsValidCurrentPeriodEnd
|
|
434
434
|
);
|
|
435
|
-
var IsValidTrialPeriodEnd =
|
|
436
|
-
var IsValidOrUndefinedTrialPeriodEnd =
|
|
437
|
-
var IsValidUsername =
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
435
|
+
var IsValidTrialPeriodEnd = v29__namespace.date();
|
|
436
|
+
var IsValidOrUndefinedTrialPeriodEnd = v29__namespace.undefinedable(IsValidTrialPeriodEnd);
|
|
437
|
+
var IsValidUsername = v29__namespace.pipe(
|
|
438
|
+
v29__namespace.string("please provide a username"),
|
|
439
|
+
v29__namespace.trim(),
|
|
440
|
+
v29__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
|
+
v29__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
|
+
v29__namespace.regex(REGEX_VALUE, `your username ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
449
449
|
);
|
|
450
|
-
var IsValidOrUndefinedUsername =
|
|
451
|
-
var IsValidEmail =
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
450
|
+
var IsValidOrUndefinedUsername = v29__namespace.undefinedable(IsValidUsername);
|
|
451
|
+
var IsValidEmail = v29__namespace.pipe(
|
|
452
|
+
v29__namespace.string("please provide an email"),
|
|
453
|
+
v29__namespace.trim(),
|
|
454
|
+
v29__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
|
+
v29__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
|
+
v29__namespace.email("please provide a valid email address")
|
|
463
463
|
);
|
|
464
|
-
var IsValidOrUndefinedEmail =
|
|
465
|
-
var IsValidPassword =
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
464
|
+
var IsValidOrUndefinedEmail = v29__namespace.undefinedable(IsValidEmail);
|
|
465
|
+
var IsValidPassword = v29__namespace.pipe(
|
|
466
|
+
v29__namespace.string("a password is required"),
|
|
467
|
+
v29__namespace.trim(),
|
|
468
|
+
v29__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
|
+
v29__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 = v29__namespace.undefinedable(IsValidPassword);
|
|
478
|
+
var IsValidProvider = v29__namespace.pipe(
|
|
479
|
+
v29__namespace.string("please enter a provider"),
|
|
480
|
+
v29__namespace.trim(),
|
|
481
|
+
v29__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 = v29__namespace.undefinedable(IsValidProvider);
|
|
487
|
+
var IsValidConfirmed = v29__namespace.boolean();
|
|
488
|
+
var IsValidOrUndefinedConfirmed = v29__namespace.undefinedable(IsValidConfirmed);
|
|
489
|
+
var IsValidBlocked = v29__namespace.boolean();
|
|
490
|
+
var IsValidOrUndefinedBlocked = v29__namespace.undefinedable(IsValidBlocked);
|
|
491
|
+
var IsValidUrlUtmSource = v29__namespace.pipe(
|
|
492
|
+
v29__namespace.string(),
|
|
493
|
+
v29__namespace.trim(),
|
|
494
|
+
v29__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
|
+
v29__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
|
+
v29__namespace.regex(REGEX_VALUE, `utm_source ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
503
503
|
);
|
|
504
|
-
var IsValidOrUndefinedUrlUtmSource =
|
|
505
|
-
var IsValidUrlUtmMedium =
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
504
|
+
var IsValidOrUndefinedUrlUtmSource = v29__namespace.undefinedable(IsValidUrlUtmSource);
|
|
505
|
+
var IsValidUrlUtmMedium = v29__namespace.pipe(
|
|
506
|
+
v29__namespace.string(),
|
|
507
|
+
v29__namespace.trim(),
|
|
508
|
+
v29__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
|
+
v29__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
|
+
v29__namespace.regex(REGEX_VALUE, `utm_medium ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
517
517
|
);
|
|
518
|
-
var IsValidOrUndefinedUrlUtmMedium =
|
|
519
|
-
var IsValidUrlUtmCampaign =
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
518
|
+
var IsValidOrUndefinedUrlUtmMedium = v29__namespace.undefinedable(IsValidUrlUtmMedium);
|
|
519
|
+
var IsValidUrlUtmCampaign = v29__namespace.pipe(
|
|
520
|
+
v29__namespace.string(),
|
|
521
|
+
v29__namespace.trim(),
|
|
522
|
+
v29__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
|
+
v29__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
|
+
v29__namespace.regex(REGEX_VALUE, `utm_campaign ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
531
531
|
);
|
|
532
|
-
var IsValidOrUndefinedUrlUtmCampaign =
|
|
533
|
-
var IsValidUrlUtmCreativeFormat =
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
532
|
+
var IsValidOrUndefinedUrlUtmCampaign = v29__namespace.undefinedable(IsValidUrlUtmCampaign);
|
|
533
|
+
var IsValidUrlUtmCreativeFormat = v29__namespace.pipe(
|
|
534
|
+
v29__namespace.string(),
|
|
535
|
+
v29__namespace.trim(),
|
|
536
|
+
v29__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
|
+
v29__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
|
+
v29__namespace.regex(REGEX_VALUE, `utm_creative_format ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
545
545
|
);
|
|
546
|
-
var IsValidOrUndefinedUrlUtmCreativeFormat =
|
|
546
|
+
var IsValidOrUndefinedUrlUtmCreativeFormat = v29__namespace.undefinedable(
|
|
547
547
|
IsValidUrlUtmCreativeFormat
|
|
548
548
|
);
|
|
549
|
-
var IsValidUrlUtmContent =
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
549
|
+
var IsValidUrlUtmContent = v29__namespace.pipe(
|
|
550
|
+
v29__namespace.string(),
|
|
551
|
+
v29__namespace.trim(),
|
|
552
|
+
v29__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
|
+
v29__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
|
+
v29__namespace.regex(REGEX_VALUE, `utm_content ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
561
561
|
);
|
|
562
|
-
var IsValidOrUndefinedUrlUtmContent =
|
|
563
|
-
var IsValidUrlUtmTerm =
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
562
|
+
var IsValidOrUndefinedUrlUtmContent = v29__namespace.undefinedable(IsValidUrlUtmContent);
|
|
563
|
+
var IsValidUrlUtmTerm = v29__namespace.pipe(
|
|
564
|
+
v29__namespace.string(),
|
|
565
|
+
v29__namespace.trim(),
|
|
566
|
+
v29__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
|
+
v29__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
|
+
v29__namespace.regex(REGEX_VALUE, `utm_term ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
575
575
|
);
|
|
576
|
-
var IsValidOrUndefinedUrlUtmTerm =
|
|
577
|
-
var IsValidUrlUtmId =
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
576
|
+
var IsValidOrUndefinedUrlUtmTerm = v29__namespace.undefinedable(IsValidUrlUtmTerm);
|
|
577
|
+
var IsValidUrlUtmId = v29__namespace.pipe(
|
|
578
|
+
v29__namespace.string(),
|
|
579
|
+
v29__namespace.trim(),
|
|
580
|
+
v29__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
|
+
v29__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
|
+
v29__namespace.regex(REGEX_VALUE, `utm_id ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
589
589
|
);
|
|
590
|
-
var IsValidOrUndefinedUrlUtmId =
|
|
590
|
+
var IsValidOrUndefinedUrlUtmId = v29__namespace.undefinedable(IsValidUrlUtmId);
|
|
591
591
|
|
|
592
592
|
// src/actions/group-user.crud.ts
|
|
593
|
-
var SQueryListGroupUserDocuments =
|
|
593
|
+
var SQueryListGroupUserDocuments = v29__namespace.object({
|
|
594
594
|
documentId: IsValidReferenceDocumentId,
|
|
595
595
|
page: IsValidMinPage,
|
|
596
|
-
size:
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
596
|
+
size: v29__namespace.fallback(
|
|
597
|
+
v29__namespace.optional(
|
|
598
|
+
v29__namespace.pipe(
|
|
599
|
+
v29__namespace.number(),
|
|
600
|
+
v29__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
601
|
+
v29__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 = v29__namespace.object({
|
|
609
609
|
group: IsValidReferenceDocumentId,
|
|
610
610
|
user: IsValidReferenceDocumentId,
|
|
611
611
|
scopes: IsValidGroupUserScopes
|
|
612
612
|
});
|
|
613
|
-
var
|
|
613
|
+
var SCreateGroupUserAssignMultipleUsers = v29__namespace.object({
|
|
614
|
+
group: IsValidReferenceDocumentId,
|
|
615
|
+
user: v29__namespace.pipe(
|
|
616
|
+
v29__namespace.array(IsValidReferenceDocumentId),
|
|
617
|
+
v29__namespace.minLength(1, "Please assign at least one user to this group")
|
|
618
|
+
),
|
|
619
|
+
scopes: IsValidGroupUserScopes
|
|
620
|
+
});
|
|
621
|
+
var SCreateGroupUserDocumentRequest = v29__namespace.object({
|
|
614
622
|
documentId: IsValidReferenceDocumentId,
|
|
615
623
|
data: SCreateGroupUserDocument
|
|
616
624
|
});
|
|
617
|
-
var SReadGroupUserDocumentById =
|
|
625
|
+
var SReadGroupUserDocumentById = v29__namespace.object({
|
|
618
626
|
id: IsValidReferenceId
|
|
619
627
|
});
|
|
620
|
-
var SReadGroupUserDocumentByDocumentId =
|
|
628
|
+
var SReadGroupUserDocumentByDocumentId = v29__namespace.object({
|
|
621
629
|
documentId: IsValidReferenceDocumentId
|
|
622
630
|
});
|
|
623
|
-
var SUpdateGroupUserDocument =
|
|
631
|
+
var SUpdateGroupUserDocument = v29__namespace.object({
|
|
624
632
|
scopes: IsValidGroupUserScopes
|
|
625
633
|
});
|
|
626
|
-
var SUpdateGroupUserDocumentRequest =
|
|
634
|
+
var SUpdateGroupUserDocumentRequest = v29__namespace.object({
|
|
627
635
|
documentId: IsValidReferenceDocumentId,
|
|
628
636
|
data: SUpdateGroupUserDocument
|
|
629
637
|
});
|
|
630
|
-
var SDeleteGroupUserDocument =
|
|
638
|
+
var SDeleteGroupUserDocument = v29__namespace.object({
|
|
631
639
|
documentId: IsValidReferenceDocumentId
|
|
632
640
|
});
|
|
633
|
-
var SQueryListGroupDocuments =
|
|
641
|
+
var SQueryListGroupDocuments = v29__namespace.object({
|
|
634
642
|
page: IsValidMinPage,
|
|
635
|
-
size:
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
643
|
+
size: v29__namespace.fallback(
|
|
644
|
+
v29__namespace.optional(
|
|
645
|
+
v29__namespace.pipe(
|
|
646
|
+
v29__namespace.number(),
|
|
647
|
+
v29__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
648
|
+
v29__namespace.maxValue(GROUP_PAGINATION_MAX_SIZE_LIMIT)
|
|
641
649
|
),
|
|
642
650
|
GROUP_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
643
651
|
),
|
|
644
652
|
GROUP_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
645
653
|
)
|
|
646
654
|
});
|
|
647
|
-
var SCreateGroupDocument =
|
|
655
|
+
var SCreateGroupDocument = v29__namespace.object({
|
|
648
656
|
label: IsValidLabel,
|
|
649
657
|
value: IsValidValue,
|
|
650
658
|
description: IsValidDescription,
|
|
@@ -652,13 +660,13 @@ var SCreateGroupDocument = v28__namespace.object({
|
|
|
652
660
|
apply_value_to: IsValidApplyValueTo,
|
|
653
661
|
apply_value_as: IsValidApplyValueAs
|
|
654
662
|
});
|
|
655
|
-
var SReadGroupDocumentById =
|
|
663
|
+
var SReadGroupDocumentById = v29__namespace.object({
|
|
656
664
|
id: IsValidReferenceId
|
|
657
665
|
});
|
|
658
|
-
var SReadGroupDocumentByDocumentId =
|
|
666
|
+
var SReadGroupDocumentByDocumentId = v29__namespace.object({
|
|
659
667
|
documentId: IsValidReferenceDocumentId
|
|
660
668
|
});
|
|
661
|
-
var SUpdateAsCreatorGroupDocument =
|
|
669
|
+
var SUpdateAsCreatorGroupDocument = v29__namespace.object({
|
|
662
670
|
label: IsValidOrUndefinedLabel,
|
|
663
671
|
value: IsValidOrUndefinedValue,
|
|
664
672
|
description: IsValidOrUndefinedDescription,
|
|
@@ -666,53 +674,53 @@ var SUpdateAsCreatorGroupDocument = v28__namespace.object({
|
|
|
666
674
|
apply_value_to: IsValidOrUndefinedApplyValueTo,
|
|
667
675
|
apply_value_as: IsValidOrUndefinedApplyValueAs
|
|
668
676
|
});
|
|
669
|
-
var SUpdateAsCreatorGroupDocumentRequest =
|
|
677
|
+
var SUpdateAsCreatorGroupDocumentRequest = v29__namespace.object({
|
|
670
678
|
documentId: IsValidReferenceDocumentId,
|
|
671
679
|
data: SUpdateAsCreatorGroupDocument
|
|
672
680
|
});
|
|
673
|
-
var SUpdateAsInvitedGroupDocument =
|
|
681
|
+
var SUpdateAsInvitedGroupDocument = v29__namespace.object({
|
|
674
682
|
label: IsValidOrUndefinedLabel,
|
|
675
683
|
description: IsValidOrUndefinedDescription
|
|
676
684
|
});
|
|
677
|
-
var SUpdateAsInvitedGroupDocumentRequest =
|
|
685
|
+
var SUpdateAsInvitedGroupDocumentRequest = v29__namespace.object({
|
|
678
686
|
documentId: IsValidReferenceDocumentId,
|
|
679
687
|
data: SUpdateAsInvitedGroupDocument
|
|
680
688
|
});
|
|
681
|
-
var SUpdateGroupDocumentRequest =
|
|
689
|
+
var SUpdateGroupDocumentRequest = v29__namespace.union([
|
|
682
690
|
SUpdateAsCreatorGroupDocumentRequest,
|
|
683
691
|
SUpdateAsInvitedGroupDocumentRequest
|
|
684
692
|
]);
|
|
685
|
-
var SDeleteGroupDocument =
|
|
693
|
+
var SDeleteGroupDocument = v29__namespace.object({
|
|
686
694
|
documentId: IsValidReferenceDocumentId
|
|
687
695
|
});
|
|
688
|
-
var SReadUserDocumentToken =
|
|
689
|
-
token:
|
|
696
|
+
var SReadUserDocumentToken = v29__namespace.object({
|
|
697
|
+
token: v29__namespace.string()
|
|
690
698
|
});
|
|
691
|
-
var SLoginUserDocument =
|
|
699
|
+
var SLoginUserDocument = v29__namespace.object({
|
|
692
700
|
identifier: IsValidEmail,
|
|
693
701
|
password: IsValidPassword
|
|
694
702
|
});
|
|
695
|
-
var SRegisterUserDocument =
|
|
703
|
+
var SRegisterUserDocument = v29__namespace.object({
|
|
696
704
|
username: IsValidUsername,
|
|
697
705
|
email: IsValidEmail,
|
|
698
706
|
password: IsValidPassword
|
|
699
707
|
});
|
|
700
|
-
var SForgotPasswordUserDocument =
|
|
708
|
+
var SForgotPasswordUserDocument = v29__namespace.object({
|
|
701
709
|
email: IsValidEmail
|
|
702
710
|
});
|
|
703
|
-
var SResetPasswordUserDocument =
|
|
711
|
+
var SResetPasswordUserDocument = v29__namespace.object({
|
|
704
712
|
password: IsValidPassword,
|
|
705
713
|
passwordConfirmation: IsValidPassword,
|
|
706
|
-
code:
|
|
714
|
+
code: v29__namespace.string()
|
|
707
715
|
});
|
|
708
|
-
var SChangePassword =
|
|
709
|
-
|
|
716
|
+
var SChangePassword = v29__namespace.pipe(
|
|
717
|
+
v29__namespace.object({
|
|
710
718
|
currentPassword: IsValidPassword,
|
|
711
719
|
password: IsValidPassword,
|
|
712
720
|
passwordConfirmation: IsValidPassword
|
|
713
721
|
}),
|
|
714
|
-
|
|
715
|
-
|
|
722
|
+
v29__namespace.forward(
|
|
723
|
+
v29__namespace.partialCheck(
|
|
716
724
|
[["password"], ["passwordConfirmation"]],
|
|
717
725
|
(input) => input.password === input.passwordConfirmation,
|
|
718
726
|
"Your new passwords do not match."
|
|
@@ -720,10 +728,10 @@ var SChangePassword = v28__namespace.pipe(
|
|
|
720
728
|
["passwordConfirmation"]
|
|
721
729
|
)
|
|
722
730
|
);
|
|
723
|
-
var SRequestConfirmEmail =
|
|
731
|
+
var SRequestConfirmEmail = v29__namespace.object({
|
|
724
732
|
email: IsValidEmail
|
|
725
733
|
});
|
|
726
|
-
var SBaseGroupDocument =
|
|
734
|
+
var SBaseGroupDocument = v29__namespace.object({
|
|
727
735
|
label: IsValidLabel,
|
|
728
736
|
value: IsValidValue,
|
|
729
737
|
description: IsValidDescription,
|
|
@@ -733,336 +741,319 @@ var SBaseGroupDocument = v28__namespace.object({
|
|
|
733
741
|
});
|
|
734
742
|
|
|
735
743
|
// src/entities/group/group.document.ts
|
|
736
|
-
var SGroupDocument =
|
|
737
|
-
id:
|
|
744
|
+
var SGroupDocument = v29__namespace.object({
|
|
745
|
+
id: v29__namespace.number(),
|
|
738
746
|
documentId: IsValidReferenceDocumentId,
|
|
739
|
-
publishedAt:
|
|
740
|
-
createdAt:
|
|
741
|
-
updatedAt:
|
|
747
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
748
|
+
createdAt: v29__namespace.string(),
|
|
749
|
+
updatedAt: v29__namespace.string(),
|
|
742
750
|
...SBaseGroupDocument.entries
|
|
743
751
|
});
|
|
744
|
-
var
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
752
|
+
var SBaseTrackingLinkDocument = v29__namespace.object({
|
|
753
|
+
is_active: IsValidIsActive,
|
|
754
|
+
destination: IsValidUrlDestination,
|
|
755
|
+
protocol: IsValidUrlProtocol,
|
|
756
|
+
domain: IsValidUrlDomain,
|
|
757
|
+
path: v29__namespace.nullable(IsValidUrlPath),
|
|
758
|
+
query: v29__namespace.nullable(IsValidUrlQuery),
|
|
759
|
+
fragment: v29__namespace.nullable(IsValidUrlFragment),
|
|
760
|
+
utm_source: v29__namespace.nullable(IsValidUrlUtmSource),
|
|
761
|
+
utm_medium: v29__namespace.nullable(IsValidUrlUtmMedium),
|
|
762
|
+
utm_campaign: v29__namespace.nullable(IsValidUrlUtmCampaign),
|
|
763
|
+
utm_creative_format: v29__namespace.nullable(IsValidUrlUtmCreativeFormat),
|
|
764
|
+
utm_content: v29__namespace.nullable(IsValidUrlUtmContent),
|
|
765
|
+
utm_term: v29__namespace.nullable(IsValidUrlUtmTerm),
|
|
766
|
+
utm_id: v29__namespace.nullable(IsValidUrlUtmId)
|
|
755
767
|
});
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
SBaseAssociateRelationPositionAfter,
|
|
761
|
-
SBaseAssociateRelationPositionStart,
|
|
762
|
-
SBaseAssociateRelationPositionEnd
|
|
763
|
-
])
|
|
764
|
-
),
|
|
765
|
-
{ end: true }
|
|
766
|
-
);
|
|
767
|
-
var SBaseAssociateRelation = v28__namespace.object({
|
|
768
|
+
|
|
769
|
+
// src/entities/tracking-link/tracking-link.document.ts
|
|
770
|
+
var STrackingLinkDocument = v29__namespace.object({
|
|
771
|
+
id: v29__namespace.number(),
|
|
768
772
|
documentId: IsValidReferenceDocumentId,
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
v28__namespace.array(v28__namespace.union([IsValidReferenceDocumentId, SBaseAssociateRelation])),
|
|
774
|
-
v28__namespace.minLength(1, "At least one document ID is required to connect"),
|
|
775
|
-
v28__namespace.maxLength(100, "A maximum of 100 document IDs can be connected per request")
|
|
776
|
-
)
|
|
777
|
-
});
|
|
778
|
-
v28__namespace.object({
|
|
779
|
-
disconnect: v28__namespace.pipe(
|
|
780
|
-
v28__namespace.array(v28__namespace.union([IsValidReferenceDocumentId, SBaseAssociateRelation])),
|
|
781
|
-
v28__namespace.minLength(1, "At least one document ID is required to disconnect"),
|
|
782
|
-
v28__namespace.maxLength(100, "A maximum of 100 document IDs can be disconnected per request")
|
|
783
|
-
)
|
|
784
|
-
});
|
|
785
|
-
v28__namespace.object({
|
|
786
|
-
set: v28__namespace.pipe(
|
|
787
|
-
v28__namespace.array(v28__namespace.union([IsValidReferenceDocumentId, SBaseAssociateRelation])),
|
|
788
|
-
v28__namespace.minLength(1, "At least one document ID is required to set a relation")
|
|
789
|
-
)
|
|
790
|
-
});
|
|
791
|
-
v28__namespace.object({
|
|
792
|
-
connect: v28__namespace.union([IsValidReferenceDocumentId, SBaseAssociateRelation])
|
|
793
|
-
});
|
|
794
|
-
v28__namespace.object({
|
|
795
|
-
disconnect: v28__namespace.pipe(
|
|
796
|
-
v28__namespace.array(v28__namespace.union([IsValidReferenceDocumentId, SBaseAssociateRelation])),
|
|
797
|
-
v28__namespace.minLength(1, "At least one document ID is required to disconnect"),
|
|
798
|
-
v28__namespace.maxLength(100, "A maximum of 100 document IDs can be disconnected per request")
|
|
799
|
-
)
|
|
800
|
-
});
|
|
801
|
-
v28__namespace.object({
|
|
802
|
-
set: v28__namespace.pipe(
|
|
803
|
-
v28__namespace.array(v28__namespace.union([IsValidReferenceDocumentId, SBaseAssociateRelation])),
|
|
804
|
-
v28__namespace.minLength(1, "At least one document ID is required to set a relation")
|
|
805
|
-
)
|
|
773
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
774
|
+
createdAt: v29__namespace.string(),
|
|
775
|
+
updatedAt: v29__namespace.string(),
|
|
776
|
+
...SBaseTrackingLinkDocument.entries
|
|
806
777
|
});
|
|
807
|
-
var SBaseUserDocument =
|
|
778
|
+
var SBaseUserDocument = v29__namespace.object({
|
|
808
779
|
username: IsValidUsername,
|
|
809
780
|
email: IsValidEmail,
|
|
810
|
-
confirmed:
|
|
811
|
-
blocked:
|
|
812
|
-
provider:
|
|
781
|
+
confirmed: v29__namespace.boolean(),
|
|
782
|
+
blocked: v29__namespace.boolean(),
|
|
783
|
+
provider: v29__namespace.literal("local")
|
|
813
784
|
});
|
|
814
785
|
|
|
815
786
|
// src/entities/user/user.document.ts
|
|
816
|
-
var SUserDocument =
|
|
817
|
-
id:
|
|
787
|
+
var SUserDocument = v29__namespace.object({
|
|
788
|
+
id: v29__namespace.number(),
|
|
818
789
|
documentId: IsValidReferenceDocumentId,
|
|
819
|
-
publishedAt:
|
|
820
|
-
createdAt:
|
|
821
|
-
updatedAt:
|
|
790
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
791
|
+
createdAt: v29__namespace.string(),
|
|
792
|
+
updatedAt: v29__namespace.string(),
|
|
822
793
|
...SBaseUserDocument.entries
|
|
823
794
|
});
|
|
824
795
|
|
|
825
796
|
// src/entities/user/user-draft-pub-created-by.schema.ts
|
|
826
|
-
var SBaseDocumentCreatedBy =
|
|
827
|
-
createdBy:
|
|
828
|
-
updatedBy:
|
|
797
|
+
var SBaseDocumentCreatedBy = v29__namespace.object({
|
|
798
|
+
createdBy: v29__namespace.optional(SUserDocument),
|
|
799
|
+
updatedBy: v29__namespace.optional(SUserDocument)
|
|
829
800
|
});
|
|
830
|
-
var SBaseRoleDocument =
|
|
831
|
-
type:
|
|
832
|
-
name:
|
|
833
|
-
locale:
|
|
834
|
-
description:
|
|
801
|
+
var SBaseRoleDocument = v29__namespace.object({
|
|
802
|
+
type: v29__namespace.string(),
|
|
803
|
+
name: v29__namespace.string(),
|
|
804
|
+
locale: v29__namespace.string(),
|
|
805
|
+
description: v29__namespace.string()
|
|
835
806
|
});
|
|
836
807
|
|
|
837
808
|
// src/entities/role/role.document.ts
|
|
838
|
-
var SRoleDocument =
|
|
839
|
-
id:
|
|
809
|
+
var SRoleDocument = v29__namespace.object({
|
|
810
|
+
id: v29__namespace.number(),
|
|
840
811
|
documentId: IsValidReferenceDocumentId,
|
|
841
|
-
publishedAt:
|
|
842
|
-
createdAt:
|
|
843
|
-
updatedAt:
|
|
812
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
813
|
+
createdAt: v29__namespace.string(),
|
|
814
|
+
updatedAt: v29__namespace.string(),
|
|
844
815
|
...SBaseRoleDocument.entries
|
|
845
816
|
});
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
var SRoleRelationsDocument = SBaseRelationUsers;
|
|
849
|
-
var SBaseTrackingLinkDocument = v28__namespace.object({
|
|
850
|
-
is_active: IsValidIsActive,
|
|
851
|
-
destination: IsValidUrlDestination,
|
|
852
|
-
protocol: IsValidUrlProtocol,
|
|
853
|
-
domain: IsValidUrlDomain,
|
|
854
|
-
path: v28__namespace.nullable(IsValidUrlPath),
|
|
855
|
-
query: v28__namespace.nullable(IsValidUrlQuery),
|
|
856
|
-
fragment: v28__namespace.nullable(IsValidUrlFragment),
|
|
857
|
-
utm_source: v28__namespace.nullable(IsValidUrlUtmSource),
|
|
858
|
-
utm_medium: v28__namespace.nullable(IsValidUrlUtmMedium),
|
|
859
|
-
utm_campaign: v28__namespace.nullable(IsValidUrlUtmCampaign),
|
|
860
|
-
utm_creative_format: v28__namespace.nullable(IsValidUrlUtmCreativeFormat),
|
|
861
|
-
utm_content: v28__namespace.nullable(IsValidUrlUtmContent),
|
|
862
|
-
utm_term: v28__namespace.nullable(IsValidUrlUtmTerm),
|
|
863
|
-
utm_id: v28__namespace.nullable(IsValidUrlUtmId)
|
|
817
|
+
var SRoleRelationsDocument = v29__namespace.object({
|
|
818
|
+
user: v29__namespace.optional(SUserDocument)
|
|
864
819
|
});
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
id: v28__namespace.number(),
|
|
869
|
-
documentId: IsValidReferenceDocumentId,
|
|
870
|
-
publishedAt: v28__namespace.optional(v28__namespace.string()),
|
|
871
|
-
createdAt: v28__namespace.string(),
|
|
872
|
-
updatedAt: v28__namespace.string(),
|
|
873
|
-
...SBaseTrackingLinkDocument.entries
|
|
874
|
-
});
|
|
875
|
-
var STrackingLinkRelationsDocument = v28__namespace.object({
|
|
876
|
-
...SBaseRelationGroup.entries,
|
|
877
|
-
...SBaseRelationCreator.entries
|
|
878
|
-
});
|
|
879
|
-
var SBaseUserAccountDocument = v28__namespace.object({
|
|
880
|
-
customer_id: v28__namespace.nullable(IsValidCustomerId),
|
|
881
|
-
subscription_id: v28__namespace.nullable(IsValidCustomerId),
|
|
820
|
+
var SBaseUserAccountDocument = v29__namespace.object({
|
|
821
|
+
customer_id: v29__namespace.nullable(IsValidCustomerId),
|
|
822
|
+
subscription_id: v29__namespace.nullable(IsValidCustomerId),
|
|
882
823
|
subscription_status: IsValidSubscriptionStatus,
|
|
883
|
-
current_period_start:
|
|
884
|
-
current_period_end:
|
|
885
|
-
trial_period_end:
|
|
824
|
+
current_period_start: v29__namespace.nullable(IsValidCurrentPeriodStart),
|
|
825
|
+
current_period_end: v29__namespace.nullable(IsValidCurrentPeriodEnd),
|
|
826
|
+
trial_period_end: v29__namespace.nullable(IsValidTrialPeriodEnd)
|
|
886
827
|
});
|
|
887
828
|
|
|
888
829
|
// src/entities/user-account/user-account.document.ts
|
|
889
|
-
var SUserAccountDocument =
|
|
890
|
-
id:
|
|
830
|
+
var SUserAccountDocument = v29__namespace.object({
|
|
831
|
+
id: v29__namespace.number(),
|
|
891
832
|
documentId: IsValidReferenceDocumentId,
|
|
892
|
-
publishedAt:
|
|
893
|
-
createdAt:
|
|
894
|
-
updatedAt:
|
|
833
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
834
|
+
createdAt: v29__namespace.string(),
|
|
835
|
+
updatedAt: v29__namespace.string(),
|
|
895
836
|
...SBaseUserAccountDocument.entries
|
|
896
837
|
});
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
var SUserAccountRelationsReqDocument =
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
838
|
+
var SUserAccountRelationsDocument = v29__namespace.object({
|
|
839
|
+
user: v29__namespace.optional(SUserDocument)
|
|
840
|
+
});
|
|
841
|
+
var SUserAccountRelationsReqDocument = v29__namespace.object({
|
|
842
|
+
user: SUserDocument
|
|
843
|
+
});
|
|
844
|
+
var SBaseUserLimitationsDocument = v29__namespace.object({
|
|
845
|
+
limit_groups: v29__namespace.number(),
|
|
846
|
+
limit_group_users: v29__namespace.number(),
|
|
847
|
+
limit_websites: v29__namespace.number(),
|
|
848
|
+
limit_tracking_links: v29__namespace.number(),
|
|
849
|
+
limit_sources: v29__namespace.number(),
|
|
850
|
+
limit_mediums: v29__namespace.number(),
|
|
851
|
+
limit_campaign_ids: v29__namespace.number(),
|
|
852
|
+
limit_campaign_keys: v29__namespace.number(),
|
|
853
|
+
limit_campaign_phases: v29__namespace.number(),
|
|
854
|
+
limit_campaign_products: v29__namespace.number(),
|
|
855
|
+
limit_contents: v29__namespace.number(),
|
|
856
|
+
limit_creative_formats: v29__namespace.number(),
|
|
857
|
+
limit_creative_format_variants: v29__namespace.number(),
|
|
858
|
+
limit_terms: v29__namespace.number()
|
|
916
859
|
});
|
|
917
860
|
|
|
918
861
|
// src/entities/user-limitations/user-limitations.document.ts
|
|
919
|
-
var SUserLimitationsDocument =
|
|
920
|
-
id:
|
|
862
|
+
var SUserLimitationsDocument = v29__namespace.object({
|
|
863
|
+
id: v29__namespace.number(),
|
|
921
864
|
documentId: IsValidReferenceDocumentId,
|
|
922
|
-
publishedAt:
|
|
923
|
-
createdAt:
|
|
924
|
-
updatedAt:
|
|
865
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
866
|
+
createdAt: v29__namespace.string(),
|
|
867
|
+
updatedAt: v29__namespace.string(),
|
|
925
868
|
...SBaseUserLimitationsDocument.entries
|
|
926
869
|
});
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
var SBaseCampaignIdDocument =
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
var
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
870
|
+
var SUserLimitationsRelationsDocument = v29__namespace.object({
|
|
871
|
+
user: v29__namespace.optional(SUserDocument)
|
|
872
|
+
});
|
|
873
|
+
var SBaseCampaignIdDocument = v29__namespace.object({
|
|
874
|
+
cost: IsValidCost,
|
|
875
|
+
label: IsValidLabel,
|
|
876
|
+
value: IsValidValue,
|
|
877
|
+
description: IsValidDescription,
|
|
878
|
+
is_active: IsValidIsActive
|
|
879
|
+
});
|
|
880
|
+
var SBaseCampaignPhaseDocument = v29__namespace.object({
|
|
881
|
+
label: IsValidLabel,
|
|
882
|
+
value: IsValidValue,
|
|
883
|
+
description: IsValidDescription,
|
|
884
|
+
is_active: IsValidIsActive
|
|
885
|
+
});
|
|
886
|
+
var SBaseCampaignProductDocument = v29__namespace.object({
|
|
887
|
+
label: IsValidLabel,
|
|
888
|
+
value: IsValidValue,
|
|
889
|
+
description: IsValidDescription,
|
|
890
|
+
is_active: IsValidIsActive
|
|
891
|
+
});
|
|
892
|
+
var SBaseCampaignKeyDocument = v29__namespace.object({
|
|
893
|
+
label: IsValidLabel,
|
|
894
|
+
value: IsValidValue,
|
|
895
|
+
description: IsValidDescription,
|
|
896
|
+
is_active: IsValidIsActive
|
|
897
|
+
});
|
|
898
|
+
var SBaseSourceDocument = v29__namespace.object({
|
|
899
|
+
label: IsValidLabel,
|
|
900
|
+
value: IsValidValue,
|
|
901
|
+
description: IsValidDescription,
|
|
902
|
+
is_active: IsValidIsActive
|
|
903
|
+
});
|
|
904
|
+
var SBaseMediumDocument = v29__namespace.object({
|
|
905
|
+
label: IsValidLabel,
|
|
906
|
+
value: IsValidValue,
|
|
907
|
+
description: IsValidDescription,
|
|
908
|
+
is_active: IsValidIsActive
|
|
909
|
+
});
|
|
910
|
+
var SBaseContentDocument = v29__namespace.object({
|
|
911
|
+
label: IsValidLabel,
|
|
912
|
+
value: IsValidValue,
|
|
913
|
+
description: IsValidDescription,
|
|
914
|
+
is_active: IsValidIsActive
|
|
915
|
+
});
|
|
916
|
+
var SBaseCreativeFormatDocument = v29__namespace.object({
|
|
917
|
+
label: IsValidLabel,
|
|
918
|
+
value: IsValidValue,
|
|
919
|
+
description: IsValidDescription,
|
|
920
|
+
is_active: IsValidIsActive
|
|
921
|
+
});
|
|
922
|
+
var SBaseCreativeFormatVariantDocument = v29__namespace.object({
|
|
923
|
+
label: IsValidLabel,
|
|
924
|
+
value: IsValidValue,
|
|
925
|
+
description: IsValidDescription,
|
|
926
|
+
is_active: IsValidIsActive
|
|
927
|
+
});
|
|
928
|
+
var SBaseTermDocument = v29__namespace.object({
|
|
929
|
+
label: IsValidLabel,
|
|
930
|
+
value: IsValidValue,
|
|
931
|
+
description: IsValidDescription,
|
|
932
|
+
is_active: IsValidIsActive
|
|
933
|
+
});
|
|
943
934
|
|
|
944
935
|
// src/entities/utm/param.documents.ts
|
|
945
|
-
var SCampaignIdDocument =
|
|
946
|
-
id:
|
|
936
|
+
var SCampaignIdDocument = v29__namespace.object({
|
|
937
|
+
id: v29__namespace.number(),
|
|
947
938
|
documentId: IsValidReferenceDocumentId,
|
|
948
|
-
publishedAt:
|
|
949
|
-
createdAt:
|
|
950
|
-
updatedAt:
|
|
939
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
940
|
+
createdAt: v29__namespace.string(),
|
|
941
|
+
updatedAt: v29__namespace.string(),
|
|
951
942
|
...SBaseCampaignIdDocument.entries
|
|
952
943
|
});
|
|
953
|
-
var SCampaignPhaseDocument =
|
|
954
|
-
id:
|
|
944
|
+
var SCampaignPhaseDocument = v29__namespace.object({
|
|
945
|
+
id: v29__namespace.number(),
|
|
955
946
|
documentId: IsValidReferenceDocumentId,
|
|
956
|
-
publishedAt:
|
|
957
|
-
createdAt:
|
|
958
|
-
updatedAt:
|
|
947
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
948
|
+
createdAt: v29__namespace.string(),
|
|
949
|
+
updatedAt: v29__namespace.string(),
|
|
959
950
|
...SBaseCampaignPhaseDocument.entries
|
|
960
951
|
});
|
|
961
|
-
var SCampaignProductDocument =
|
|
962
|
-
id:
|
|
952
|
+
var SCampaignProductDocument = v29__namespace.object({
|
|
953
|
+
id: v29__namespace.number(),
|
|
963
954
|
documentId: IsValidReferenceDocumentId,
|
|
964
|
-
publishedAt:
|
|
965
|
-
createdAt:
|
|
966
|
-
updatedAt:
|
|
955
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
956
|
+
createdAt: v29__namespace.string(),
|
|
957
|
+
updatedAt: v29__namespace.string(),
|
|
967
958
|
...SBaseCampaignProductDocument.entries
|
|
968
959
|
});
|
|
969
|
-
var SCampaignKeyDocument =
|
|
970
|
-
id:
|
|
960
|
+
var SCampaignKeyDocument = v29__namespace.object({
|
|
961
|
+
id: v29__namespace.number(),
|
|
971
962
|
documentId: IsValidReferenceDocumentId,
|
|
972
|
-
publishedAt:
|
|
973
|
-
createdAt:
|
|
974
|
-
updatedAt:
|
|
963
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
964
|
+
createdAt: v29__namespace.string(),
|
|
965
|
+
updatedAt: v29__namespace.string(),
|
|
975
966
|
...SBaseCampaignKeyDocument.entries
|
|
976
967
|
});
|
|
977
|
-
var SSourceDocument =
|
|
978
|
-
id:
|
|
968
|
+
var SSourceDocument = v29__namespace.object({
|
|
969
|
+
id: v29__namespace.number(),
|
|
979
970
|
documentId: IsValidReferenceDocumentId,
|
|
980
|
-
publishedAt:
|
|
981
|
-
createdAt:
|
|
982
|
-
updatedAt:
|
|
971
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
972
|
+
createdAt: v29__namespace.string(),
|
|
973
|
+
updatedAt: v29__namespace.string(),
|
|
983
974
|
...SBaseSourceDocument.entries
|
|
984
975
|
});
|
|
985
|
-
var SMediumDocument =
|
|
986
|
-
id:
|
|
976
|
+
var SMediumDocument = v29__namespace.object({
|
|
977
|
+
id: v29__namespace.number(),
|
|
987
978
|
documentId: IsValidReferenceDocumentId,
|
|
988
|
-
publishedAt:
|
|
989
|
-
createdAt:
|
|
990
|
-
updatedAt:
|
|
979
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
980
|
+
createdAt: v29__namespace.string(),
|
|
981
|
+
updatedAt: v29__namespace.string(),
|
|
991
982
|
...SBaseMediumDocument.entries
|
|
992
983
|
});
|
|
993
|
-
var SContentDocument =
|
|
994
|
-
id:
|
|
984
|
+
var SContentDocument = v29__namespace.object({
|
|
985
|
+
id: v29__namespace.number(),
|
|
995
986
|
documentId: IsValidReferenceDocumentId,
|
|
996
|
-
publishedAt:
|
|
997
|
-
createdAt:
|
|
998
|
-
updatedAt:
|
|
987
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
988
|
+
createdAt: v29__namespace.string(),
|
|
989
|
+
updatedAt: v29__namespace.string(),
|
|
999
990
|
...SBaseContentDocument.entries
|
|
1000
991
|
});
|
|
1001
|
-
var SCreativeFormatDocument =
|
|
1002
|
-
id:
|
|
992
|
+
var SCreativeFormatDocument = v29__namespace.object({
|
|
993
|
+
id: v29__namespace.number(),
|
|
1003
994
|
documentId: IsValidReferenceDocumentId,
|
|
1004
|
-
publishedAt:
|
|
1005
|
-
createdAt:
|
|
1006
|
-
updatedAt:
|
|
995
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
996
|
+
createdAt: v29__namespace.string(),
|
|
997
|
+
updatedAt: v29__namespace.string(),
|
|
1007
998
|
...SBaseCreativeFormatDocument.entries
|
|
1008
999
|
});
|
|
1009
|
-
var SCreativeFormatVariantDocument =
|
|
1010
|
-
id:
|
|
1000
|
+
var SCreativeFormatVariantDocument = v29__namespace.object({
|
|
1001
|
+
id: v29__namespace.number(),
|
|
1011
1002
|
documentId: IsValidReferenceDocumentId,
|
|
1012
|
-
publishedAt:
|
|
1013
|
-
createdAt:
|
|
1014
|
-
updatedAt:
|
|
1003
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
1004
|
+
createdAt: v29__namespace.string(),
|
|
1005
|
+
updatedAt: v29__namespace.string(),
|
|
1015
1006
|
...SBaseCreativeFormatVariantDocument.entries
|
|
1016
1007
|
});
|
|
1017
|
-
var STermDocument =
|
|
1018
|
-
id:
|
|
1008
|
+
var STermDocument = v29__namespace.object({
|
|
1009
|
+
id: v29__namespace.number(),
|
|
1019
1010
|
documentId: IsValidReferenceDocumentId,
|
|
1020
|
-
publishedAt:
|
|
1021
|
-
createdAt:
|
|
1022
|
-
updatedAt:
|
|
1011
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
1012
|
+
createdAt: v29__namespace.string(),
|
|
1013
|
+
updatedAt: v29__namespace.string(),
|
|
1023
1014
|
...SBaseTermDocument.entries
|
|
1024
1015
|
});
|
|
1025
|
-
var SCampaignIdRelationsDocument =
|
|
1026
|
-
|
|
1027
|
-
|
|
1016
|
+
var SCampaignIdRelationsDocument = v29__namespace.object({
|
|
1017
|
+
group: v29__namespace.optional(SGroupDocument),
|
|
1018
|
+
creator: v29__namespace.optional(SUserDocument)
|
|
1028
1019
|
});
|
|
1029
|
-
var SCampaignPhaseRelationsDocument =
|
|
1030
|
-
|
|
1031
|
-
|
|
1020
|
+
var SCampaignPhaseRelationsDocument = v29__namespace.object({
|
|
1021
|
+
group: v29__namespace.optional(SGroupDocument),
|
|
1022
|
+
creator: v29__namespace.optional(SUserDocument)
|
|
1032
1023
|
});
|
|
1033
|
-
var SCampaignProductRelationsDocument =
|
|
1034
|
-
|
|
1035
|
-
|
|
1024
|
+
var SCampaignProductRelationsDocument = v29__namespace.object({
|
|
1025
|
+
group: v29__namespace.optional(SGroupDocument),
|
|
1026
|
+
creator: v29__namespace.optional(SUserDocument)
|
|
1036
1027
|
});
|
|
1037
|
-
var SCampaignKeyRelationsDocument =
|
|
1038
|
-
|
|
1039
|
-
|
|
1028
|
+
var SCampaignKeyRelationsDocument = v29__namespace.object({
|
|
1029
|
+
group: v29__namespace.optional(SGroupDocument),
|
|
1030
|
+
creator: v29__namespace.optional(SUserDocument)
|
|
1040
1031
|
});
|
|
1041
|
-
var SSourceRelationsDocument =
|
|
1042
|
-
|
|
1043
|
-
|
|
1032
|
+
var SSourceRelationsDocument = v29__namespace.object({
|
|
1033
|
+
group: v29__namespace.optional(SGroupDocument),
|
|
1034
|
+
creator: v29__namespace.optional(SUserDocument)
|
|
1044
1035
|
});
|
|
1045
|
-
var SMediumRelationsDocument =
|
|
1046
|
-
|
|
1047
|
-
|
|
1036
|
+
var SMediumRelationsDocument = v29__namespace.object({
|
|
1037
|
+
group: v29__namespace.optional(SGroupDocument),
|
|
1038
|
+
creator: v29__namespace.optional(SUserDocument)
|
|
1048
1039
|
});
|
|
1049
|
-
var SContentRelationsDocument =
|
|
1050
|
-
|
|
1051
|
-
|
|
1040
|
+
var SContentRelationsDocument = v29__namespace.object({
|
|
1041
|
+
group: v29__namespace.optional(SGroupDocument),
|
|
1042
|
+
creator: v29__namespace.optional(SUserDocument)
|
|
1052
1043
|
});
|
|
1053
|
-
var SCreativeFormatRelationsDocument =
|
|
1054
|
-
|
|
1055
|
-
|
|
1044
|
+
var SCreativeFormatRelationsDocument = v29__namespace.object({
|
|
1045
|
+
group: v29__namespace.optional(SGroupDocument),
|
|
1046
|
+
creator: v29__namespace.optional(SUserDocument)
|
|
1056
1047
|
});
|
|
1057
|
-
var SCreativeFormatVariantRelationsDocument =
|
|
1058
|
-
|
|
1059
|
-
|
|
1048
|
+
var SCreativeFormatVariantRelationsDocument = v29__namespace.object({
|
|
1049
|
+
group: v29__namespace.optional(SGroupDocument),
|
|
1050
|
+
creator: v29__namespace.optional(SUserDocument)
|
|
1060
1051
|
});
|
|
1061
|
-
var STermRelationsDocument =
|
|
1062
|
-
|
|
1063
|
-
|
|
1052
|
+
var STermRelationsDocument = v29__namespace.object({
|
|
1053
|
+
group: v29__namespace.optional(SGroupDocument),
|
|
1054
|
+
creator: v29__namespace.optional(SUserDocument)
|
|
1064
1055
|
});
|
|
1065
|
-
var SBaseWebsiteDocument =
|
|
1056
|
+
var SBaseWebsiteDocument = v29__namespace.object({
|
|
1066
1057
|
domain: IsValidUrlDomain,
|
|
1067
1058
|
description: IsValidDescription,
|
|
1068
1059
|
is_secure: IsValidIsSecure,
|
|
@@ -1070,80 +1061,80 @@ var SBaseWebsiteDocument = v28__namespace.object({
|
|
|
1070
1061
|
});
|
|
1071
1062
|
|
|
1072
1063
|
// src/entities/website/website.document.ts
|
|
1073
|
-
var SWebsiteDocument =
|
|
1074
|
-
id:
|
|
1064
|
+
var SWebsiteDocument = v29__namespace.object({
|
|
1065
|
+
id: v29__namespace.number(),
|
|
1075
1066
|
documentId: IsValidReferenceDocumentId,
|
|
1076
|
-
publishedAt:
|
|
1077
|
-
createdAt:
|
|
1078
|
-
updatedAt:
|
|
1067
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
1068
|
+
createdAt: v29__namespace.string(),
|
|
1069
|
+
updatedAt: v29__namespace.string(),
|
|
1079
1070
|
...SBaseWebsiteDocument.entries
|
|
1080
1071
|
});
|
|
1081
|
-
var SWebsiteRelationsDocument =
|
|
1082
|
-
|
|
1083
|
-
|
|
1072
|
+
var SWebsiteRelationsDocument = v29__namespace.object({
|
|
1073
|
+
group: v29__namespace.optional(SGroupDocument),
|
|
1074
|
+
creator: v29__namespace.optional(SUserDocument)
|
|
1084
1075
|
});
|
|
1085
1076
|
|
|
1086
1077
|
// src/entities/user/user.relations.ts
|
|
1087
|
-
var SUserRelationRole =
|
|
1088
|
-
role:
|
|
1078
|
+
var SUserRelationRole = v29__namespace.object({
|
|
1079
|
+
role: v29__namespace.optional(SRoleDocument)
|
|
1089
1080
|
});
|
|
1090
|
-
var SUserRelationReqRole =
|
|
1081
|
+
var SUserRelationReqRole = v29__namespace.object({
|
|
1091
1082
|
role: SRoleDocument
|
|
1092
1083
|
});
|
|
1093
|
-
var SUserRelationAccount =
|
|
1094
|
-
account:
|
|
1084
|
+
var SUserRelationAccount = v29__namespace.object({
|
|
1085
|
+
account: v29__namespace.optional(SUserAccountDocument)
|
|
1095
1086
|
});
|
|
1096
|
-
var SUserRelationReqAccount =
|
|
1087
|
+
var SUserRelationReqAccount = v29__namespace.object({
|
|
1097
1088
|
account: SUserAccountDocument
|
|
1098
1089
|
});
|
|
1099
|
-
var SUserRelationLimits =
|
|
1100
|
-
limits:
|
|
1090
|
+
var SUserRelationLimits = v29__namespace.object({
|
|
1091
|
+
limits: v29__namespace.optional(SUserLimitationsDocument)
|
|
1101
1092
|
});
|
|
1102
|
-
var SUserRelationReqLimits =
|
|
1093
|
+
var SUserRelationReqLimits = v29__namespace.object({
|
|
1103
1094
|
limits: SUserLimitationsDocument
|
|
1104
1095
|
});
|
|
1105
|
-
var SUserRelationAuthorizedGroups =
|
|
1106
|
-
authorized_groups:
|
|
1096
|
+
var SUserRelationAuthorizedGroups = v29__namespace.object({
|
|
1097
|
+
authorized_groups: v29__namespace.optional(v29__namespace.array(SGroupDocument))
|
|
1107
1098
|
});
|
|
1108
|
-
var SUserRelationCreatedWebsites =
|
|
1109
|
-
created_websites:
|
|
1099
|
+
var SUserRelationCreatedWebsites = v29__namespace.object({
|
|
1100
|
+
created_websites: v29__namespace.optional(v29__namespace.array(SWebsiteDocument))
|
|
1110
1101
|
});
|
|
1111
|
-
var SUserRelationTrackingLinks =
|
|
1112
|
-
tracking_links:
|
|
1102
|
+
var SUserRelationTrackingLinks = v29__namespace.object({
|
|
1103
|
+
tracking_links: v29__namespace.optional(v29__namespace.array(STrackingLinkDocument))
|
|
1113
1104
|
});
|
|
1114
|
-
var SUserRelationSources =
|
|
1115
|
-
utm_sources:
|
|
1105
|
+
var SUserRelationSources = v29__namespace.object({
|
|
1106
|
+
utm_sources: v29__namespace.optional(v29__namespace.array(SSourceDocument))
|
|
1116
1107
|
});
|
|
1117
|
-
var SUserRelationMediums =
|
|
1118
|
-
utm_mediums:
|
|
1108
|
+
var SUserRelationMediums = v29__namespace.object({
|
|
1109
|
+
utm_mediums: v29__namespace.optional(v29__namespace.array(SMediumDocument))
|
|
1119
1110
|
});
|
|
1120
|
-
var SUserRelationCampaignIds =
|
|
1121
|
-
utm_ids:
|
|
1111
|
+
var SUserRelationCampaignIds = v29__namespace.object({
|
|
1112
|
+
utm_ids: v29__namespace.optional(v29__namespace.array(SCampaignIdDocument))
|
|
1122
1113
|
});
|
|
1123
|
-
var SUserRelationCampaignPhases =
|
|
1124
|
-
utm_campaign_phases:
|
|
1114
|
+
var SUserRelationCampaignPhases = v29__namespace.object({
|
|
1115
|
+
utm_campaign_phases: v29__namespace.optional(v29__namespace.array(SCampaignPhaseDocument))
|
|
1125
1116
|
});
|
|
1126
|
-
var SUserRelationCampaignProducts =
|
|
1127
|
-
utm_campaign_products:
|
|
1117
|
+
var SUserRelationCampaignProducts = v29__namespace.object({
|
|
1118
|
+
utm_campaign_products: v29__namespace.optional(v29__namespace.array(SCampaignProductDocument))
|
|
1128
1119
|
});
|
|
1129
|
-
var SUserRelationCampaignKeys =
|
|
1130
|
-
utm_campaign_keys:
|
|
1120
|
+
var SUserRelationCampaignKeys = v29__namespace.object({
|
|
1121
|
+
utm_campaign_keys: v29__namespace.optional(v29__namespace.array(SCampaignKeyDocument))
|
|
1131
1122
|
});
|
|
1132
|
-
var SUserRelationContents =
|
|
1133
|
-
utm_contents:
|
|
1123
|
+
var SUserRelationContents = v29__namespace.object({
|
|
1124
|
+
utm_contents: v29__namespace.optional(v29__namespace.array(SContentDocument))
|
|
1134
1125
|
});
|
|
1135
|
-
var SUserRelationCreativeFormats =
|
|
1136
|
-
utm_creative_formats:
|
|
1126
|
+
var SUserRelationCreativeFormats = v29__namespace.object({
|
|
1127
|
+
utm_creative_formats: v29__namespace.optional(v29__namespace.array(SCreativeFormatDocument))
|
|
1137
1128
|
});
|
|
1138
|
-
var SUserRelationCreativeFormatVariants =
|
|
1139
|
-
utm_creative_format_variants:
|
|
1129
|
+
var SUserRelationCreativeFormatVariants = v29__namespace.object({
|
|
1130
|
+
utm_creative_format_variants: v29__namespace.optional(v29__namespace.array(SCreativeFormatVariantDocument))
|
|
1140
1131
|
});
|
|
1141
|
-
var SUserRelationTerms =
|
|
1142
|
-
utm_terms:
|
|
1132
|
+
var SUserRelationTerms = v29__namespace.object({
|
|
1133
|
+
utm_terms: v29__namespace.optional(v29__namespace.array(STermDocument))
|
|
1143
1134
|
});
|
|
1144
|
-
var SUserRelationsDocument =
|
|
1135
|
+
var SUserRelationsDocument = v29__namespace.object({
|
|
1136
|
+
group: v29__namespace.optional(SGroupDocument),
|
|
1145
1137
|
...SUserRelationRole.entries,
|
|
1146
|
-
...SBaseRelationGroups.entries,
|
|
1147
1138
|
...SUserRelationAuthorizedGroups.entries,
|
|
1148
1139
|
...SUserRelationCreatedWebsites.entries,
|
|
1149
1140
|
...SUserRelationTrackingLinks.entries,
|
|
@@ -1159,89 +1150,54 @@ var SUserRelationsDocument = v28__namespace.object({
|
|
|
1159
1150
|
...SUserRelationTerms.entries
|
|
1160
1151
|
});
|
|
1161
1152
|
|
|
1162
|
-
// src/
|
|
1163
|
-
var
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
var SBaseRelationReqUser = v28__namespace.object({
|
|
1167
|
-
user: SUserDocument
|
|
1168
|
-
});
|
|
1169
|
-
var SBaseRelationUsers = v28__namespace.object({
|
|
1170
|
-
users: v28__namespace.optional(v28__namespace.array(SUserDocument))
|
|
1171
|
-
});
|
|
1172
|
-
v28__namespace.object({
|
|
1173
|
-
users: v28__namespace.array(SUserDocument)
|
|
1174
|
-
});
|
|
1175
|
-
var SBaseRelationCreator = v28__namespace.object({
|
|
1176
|
-
creator: v28__namespace.optional(SUserDocument)
|
|
1177
|
-
});
|
|
1178
|
-
v28__namespace.object({
|
|
1179
|
-
creator: SUserDocument
|
|
1180
|
-
});
|
|
1181
|
-
var SBaseRelationGroup = v28__namespace.object({
|
|
1182
|
-
group: v28__namespace.optional(SGroupDocument)
|
|
1183
|
-
});
|
|
1184
|
-
var SBaseRelationReqGroup = v28__namespace.object({
|
|
1185
|
-
group: SGroupDocument
|
|
1186
|
-
});
|
|
1187
|
-
var SBaseRelationGroups = v28__namespace.object({
|
|
1188
|
-
groups: v28__namespace.optional(v28__namespace.array(SGroupDocument))
|
|
1189
|
-
});
|
|
1190
|
-
v28__namespace.object({
|
|
1191
|
-
groups: v28__namespace.array(SGroupDocument)
|
|
1192
|
-
});
|
|
1193
|
-
var SBaseCostDocument = v28__namespace.object({
|
|
1194
|
-
cost: IsValidCost
|
|
1195
|
-
});
|
|
1196
|
-
var SBaseUtmParamDocument = v28__namespace.object({
|
|
1197
|
-
label: IsValidLabel,
|
|
1198
|
-
value: IsValidValue,
|
|
1199
|
-
description: IsValidDescription,
|
|
1200
|
-
is_active: IsValidIsActive
|
|
1153
|
+
// src/entities/tracking-link/tracking-link.relations.ts
|
|
1154
|
+
var STrackingLinkRelationsDocument = v29__namespace.object({
|
|
1155
|
+
group: v29__namespace.optional(SGroupDocument),
|
|
1156
|
+
creator: v29__namespace.optional(SUserDocument)
|
|
1201
1157
|
});
|
|
1202
1158
|
|
|
1203
1159
|
// src/entities/group/group.relations.ts
|
|
1204
|
-
var SGroupRelationAuthorizedUsers =
|
|
1205
|
-
authorized_users:
|
|
1160
|
+
var SGroupRelationAuthorizedUsers = v29__namespace.object({
|
|
1161
|
+
authorized_users: v29__namespace.optional(v29__namespace.array(SUserDocument))
|
|
1206
1162
|
});
|
|
1207
|
-
var SGroupRelationWebsites =
|
|
1208
|
-
websites:
|
|
1163
|
+
var SGroupRelationWebsites = v29__namespace.object({
|
|
1164
|
+
websites: v29__namespace.optional(SWebsiteDocument)
|
|
1209
1165
|
});
|
|
1210
|
-
var SGroupRelationTrackingLinks =
|
|
1211
|
-
tracking_links:
|
|
1166
|
+
var SGroupRelationTrackingLinks = v29__namespace.object({
|
|
1167
|
+
tracking_links: v29__namespace.optional(v29__namespace.array(STrackingLinkDocument))
|
|
1212
1168
|
});
|
|
1213
|
-
var SGroupRelationSources =
|
|
1214
|
-
utm_sources:
|
|
1169
|
+
var SGroupRelationSources = v29__namespace.object({
|
|
1170
|
+
utm_sources: v29__namespace.optional(v29__namespace.array(SSourceDocument))
|
|
1215
1171
|
});
|
|
1216
|
-
var SGroupRelationMediums =
|
|
1217
|
-
utm_mediums:
|
|
1172
|
+
var SGroupRelationMediums = v29__namespace.object({
|
|
1173
|
+
utm_mediums: v29__namespace.optional(v29__namespace.array(SMediumDocument))
|
|
1218
1174
|
});
|
|
1219
|
-
var SGroupRelationCampaignIds =
|
|
1220
|
-
utm_ids:
|
|
1175
|
+
var SGroupRelationCampaignIds = v29__namespace.object({
|
|
1176
|
+
utm_ids: v29__namespace.optional(v29__namespace.array(SCampaignIdDocument))
|
|
1221
1177
|
});
|
|
1222
|
-
var SGroupRelationCampaignPhases =
|
|
1223
|
-
utm_campaign_phases:
|
|
1178
|
+
var SGroupRelationCampaignPhases = v29__namespace.object({
|
|
1179
|
+
utm_campaign_phases: v29__namespace.optional(v29__namespace.array(SCampaignPhaseDocument))
|
|
1224
1180
|
});
|
|
1225
|
-
var SGroupRelationCampaignProducts =
|
|
1226
|
-
utm_campaign_products:
|
|
1181
|
+
var SGroupRelationCampaignProducts = v29__namespace.object({
|
|
1182
|
+
utm_campaign_products: v29__namespace.optional(v29__namespace.array(SCampaignProductDocument))
|
|
1227
1183
|
});
|
|
1228
|
-
var SGroupRelationCampaignKeys =
|
|
1229
|
-
utm_campaign_keys:
|
|
1184
|
+
var SGroupRelationCampaignKeys = v29__namespace.object({
|
|
1185
|
+
utm_campaign_keys: v29__namespace.optional(v29__namespace.array(SCampaignKeyDocument))
|
|
1230
1186
|
});
|
|
1231
|
-
var SGroupRelationContents =
|
|
1232
|
-
utm_contents:
|
|
1187
|
+
var SGroupRelationContents = v29__namespace.object({
|
|
1188
|
+
utm_contents: v29__namespace.optional(v29__namespace.array(SBaseContentDocument))
|
|
1233
1189
|
});
|
|
1234
|
-
var SGroupRelationCreativeFormats =
|
|
1235
|
-
utm_creative_formats:
|
|
1190
|
+
var SGroupRelationCreativeFormats = v29__namespace.object({
|
|
1191
|
+
utm_creative_formats: v29__namespace.optional(v29__namespace.array(SCreativeFormatDocument))
|
|
1236
1192
|
});
|
|
1237
|
-
var SGroupRelationCreativeFormatVariants =
|
|
1238
|
-
utm_creative_format_variants:
|
|
1193
|
+
var SGroupRelationCreativeFormatVariants = v29__namespace.object({
|
|
1194
|
+
utm_creative_format_variants: v29__namespace.optional(v29__namespace.array(SCreativeFormatVariantDocument))
|
|
1239
1195
|
});
|
|
1240
|
-
var SGroupRelationTerms =
|
|
1241
|
-
utm_terms:
|
|
1196
|
+
var SGroupRelationTerms = v29__namespace.object({
|
|
1197
|
+
utm_terms: v29__namespace.optional(v29__namespace.array(STermDocument))
|
|
1242
1198
|
});
|
|
1243
|
-
var SGroupRelationsDocument =
|
|
1244
|
-
|
|
1199
|
+
var SGroupRelationsDocument = v29__namespace.object({
|
|
1200
|
+
creator: v29__namespace.optional(SUserDocument),
|
|
1245
1201
|
...SGroupRelationAuthorizedUsers.entries,
|
|
1246
1202
|
...SGroupRelationTrackingLinks.entries,
|
|
1247
1203
|
...SGroupRelationWebsites.entries,
|
|
@@ -1256,26 +1212,26 @@ var SGroupRelationsDocument = v28__namespace.object({
|
|
|
1256
1212
|
...SGroupRelationCreativeFormatVariants.entries,
|
|
1257
1213
|
...SGroupRelationTerms.entries
|
|
1258
1214
|
});
|
|
1259
|
-
var SBaseGroupUserDocument =
|
|
1215
|
+
var SBaseGroupUserDocument = v29__namespace.object({
|
|
1260
1216
|
scopes: IsValidGroupUserScopes
|
|
1261
1217
|
});
|
|
1262
1218
|
|
|
1263
1219
|
// src/entities/group-user/group-user.document.ts
|
|
1264
|
-
var SGroupUserDocument =
|
|
1265
|
-
id:
|
|
1220
|
+
var SGroupUserDocument = v29__namespace.object({
|
|
1221
|
+
id: v29__namespace.number(),
|
|
1266
1222
|
documentId: IsValidReferenceDocumentId,
|
|
1267
|
-
publishedAt:
|
|
1268
|
-
createdAt:
|
|
1269
|
-
updatedAt:
|
|
1223
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
1224
|
+
createdAt: v29__namespace.string(),
|
|
1225
|
+
updatedAt: v29__namespace.string(),
|
|
1270
1226
|
...SBaseGroupUserDocument.entries
|
|
1271
1227
|
});
|
|
1272
|
-
var SGroupUserRelationsDocument =
|
|
1273
|
-
|
|
1274
|
-
|
|
1228
|
+
var SGroupUserRelationsDocument = v29__namespace.object({
|
|
1229
|
+
user: v29__namespace.optional(SUserDocument),
|
|
1230
|
+
group: v29__namespace.optional(SGroupDocument)
|
|
1275
1231
|
});
|
|
1276
|
-
var SGroupUserRelationsReqDocument =
|
|
1277
|
-
|
|
1278
|
-
|
|
1232
|
+
var SGroupUserRelationsReqDocument = v29__namespace.object({
|
|
1233
|
+
user: SUserDocument,
|
|
1234
|
+
group: SGroupDocument
|
|
1279
1235
|
});
|
|
1280
1236
|
|
|
1281
1237
|
// src/actions/link-builder.crud.ts
|
|
@@ -1286,103 +1242,103 @@ var SUtmLinkBuilderPartCampaignDateOptions = [
|
|
|
1286
1242
|
"on a specific date",
|
|
1287
1243
|
"no date"
|
|
1288
1244
|
];
|
|
1289
|
-
var SUtmLinkBuilderTableForm =
|
|
1245
|
+
var SUtmLinkBuilderTableForm = v29__namespace.object({
|
|
1290
1246
|
creator: IsValidReferenceDocumentId,
|
|
1291
1247
|
client: IsValidReferenceDocumentId,
|
|
1292
|
-
url_destinations:
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1248
|
+
url_destinations: v29__namespace.pipe(
|
|
1249
|
+
v29__namespace.array(IsValidUrlDestination),
|
|
1250
|
+
v29__namespace.minLength(1, "Please provide at least one destination URL."),
|
|
1251
|
+
v29__namespace.maxLength(100, "You can provide up to 100 destination URLs.")
|
|
1296
1252
|
),
|
|
1297
|
-
sources:
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1253
|
+
sources: v29__namespace.pipe(
|
|
1254
|
+
v29__namespace.array(SSourceDocument),
|
|
1255
|
+
v29__namespace.minLength(1, "Please select at least one source."),
|
|
1256
|
+
v29__namespace.maxLength(10, "You can select up to 10 sources.")
|
|
1301
1257
|
),
|
|
1302
|
-
mediums:
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1258
|
+
mediums: v29__namespace.pipe(
|
|
1259
|
+
v29__namespace.array(SMediumDocument),
|
|
1260
|
+
v29__namespace.minLength(1, "Please select at least one medium."),
|
|
1261
|
+
v29__namespace.maxLength(10, "You can select up to 10 mediums.")
|
|
1306
1262
|
),
|
|
1307
|
-
campaign:
|
|
1263
|
+
campaign: v29__namespace.object({
|
|
1308
1264
|
campaign_phase: SCampaignPhaseDocument,
|
|
1309
|
-
campaign_product:
|
|
1265
|
+
campaign_product: v29__namespace.optional(SCampaignProductDocument),
|
|
1310
1266
|
// campaign_targeting: v.optional(v.array()),
|
|
1311
|
-
campaign_key:
|
|
1312
|
-
campaign_date:
|
|
1313
|
-
format:
|
|
1267
|
+
campaign_key: v29__namespace.optional(SCampaignKeyDocument),
|
|
1268
|
+
campaign_date: v29__namespace.object({
|
|
1269
|
+
format: v29__namespace.picklist(
|
|
1314
1270
|
SUtmLinkBuilderPartCampaignDateOptions,
|
|
1315
1271
|
"Please select a valid campaign date format."
|
|
1316
1272
|
),
|
|
1317
|
-
value:
|
|
1318
|
-
year:
|
|
1319
|
-
quarter:
|
|
1320
|
-
month:
|
|
1321
|
-
day:
|
|
1273
|
+
value: v29__namespace.object({
|
|
1274
|
+
year: v29__namespace.number("Please provide a valid year."),
|
|
1275
|
+
quarter: v29__namespace.optional(v29__namespace.number()),
|
|
1276
|
+
month: v29__namespace.optional(v29__namespace.number()),
|
|
1277
|
+
day: v29__namespace.optional(v29__namespace.number())
|
|
1322
1278
|
})
|
|
1323
1279
|
})
|
|
1324
1280
|
}),
|
|
1325
|
-
content:
|
|
1326
|
-
creative_formats:
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
creative_format:
|
|
1331
|
-
creative_format_variants:
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1281
|
+
content: v29__namespace.optional(SContentDocument),
|
|
1282
|
+
creative_formats: v29__namespace.optional(
|
|
1283
|
+
v29__namespace.pipe(
|
|
1284
|
+
v29__namespace.array(
|
|
1285
|
+
v29__namespace.object({
|
|
1286
|
+
creative_format: v29__namespace.optional(SCreativeFormatDocument),
|
|
1287
|
+
creative_format_variants: v29__namespace.optional(
|
|
1288
|
+
v29__namespace.pipe(
|
|
1289
|
+
v29__namespace.array(SCreativeFormatVariantDocument),
|
|
1290
|
+
v29__namespace.minLength(1, "Please select at least one creative format variations."),
|
|
1291
|
+
v29__namespace.maxLength(10, "You can select up to 10 creative format variations.")
|
|
1336
1292
|
)
|
|
1337
1293
|
)
|
|
1338
1294
|
})
|
|
1339
1295
|
),
|
|
1340
|
-
|
|
1341
|
-
|
|
1296
|
+
v29__namespace.minLength(1, "Please select at least one creative format."),
|
|
1297
|
+
v29__namespace.maxLength(10, "You can select up to 10 creative formats.")
|
|
1342
1298
|
)
|
|
1343
1299
|
),
|
|
1344
|
-
id:
|
|
1300
|
+
id: v29__namespace.optional(SCampaignIdDocument)
|
|
1345
1301
|
});
|
|
1346
|
-
var SStripeCheckoutLineItem =
|
|
1302
|
+
var SStripeCheckoutLineItem = v29__namespace.object({
|
|
1347
1303
|
price: IsValidPriceId,
|
|
1348
|
-
quantity:
|
|
1304
|
+
quantity: v29__namespace.pipe(v29__namespace.number(), v29__namespace.minValue(1), v29__namespace.maxValue(1))
|
|
1349
1305
|
});
|
|
1350
|
-
var SStripeCheckoutCreateSession =
|
|
1351
|
-
line_items:
|
|
1352
|
-
mode:
|
|
1306
|
+
var SStripeCheckoutCreateSession = v29__namespace.object({
|
|
1307
|
+
line_items: v29__namespace.pipe(v29__namespace.array(SStripeCheckoutLineItem), v29__namespace.minLength(1), v29__namespace.maxLength(10)),
|
|
1308
|
+
mode: v29__namespace.picklist(["payment", "subscription"]),
|
|
1353
1309
|
success_url: IsValidOrUndefinedUrlDestination,
|
|
1354
1310
|
cancel_url: IsValidOrUndefinedUrlDestination
|
|
1355
1311
|
});
|
|
1356
|
-
var SQueryListTrackingLinkDocuments =
|
|
1312
|
+
var SQueryListTrackingLinkDocuments = v29__namespace.object({
|
|
1357
1313
|
documentId: IsValidReferenceDocumentId,
|
|
1358
1314
|
page: IsValidMinPage,
|
|
1359
|
-
size:
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1315
|
+
size: v29__namespace.fallback(
|
|
1316
|
+
v29__namespace.optional(
|
|
1317
|
+
v29__namespace.pipe(
|
|
1318
|
+
v29__namespace.number(),
|
|
1319
|
+
v29__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1320
|
+
v29__namespace.maxValue(TRACKING_LINK_PAGINATION_MAX_SIZE_LIMIT)
|
|
1365
1321
|
),
|
|
1366
1322
|
TRACKING_LINK_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1367
1323
|
),
|
|
1368
1324
|
TRACKING_LINK_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1369
1325
|
),
|
|
1370
|
-
is_active:
|
|
1371
|
-
destination:
|
|
1372
|
-
protocol:
|
|
1373
|
-
domain:
|
|
1374
|
-
path:
|
|
1375
|
-
query:
|
|
1376
|
-
fragment:
|
|
1377
|
-
utm_source:
|
|
1378
|
-
utm_medium:
|
|
1379
|
-
utm_campaign:
|
|
1380
|
-
utm_creative_format:
|
|
1381
|
-
utm_content:
|
|
1382
|
-
utm_term:
|
|
1383
|
-
utm_id:
|
|
1384
|
-
});
|
|
1385
|
-
var SCreateTrackingLinkDocument =
|
|
1326
|
+
is_active: v29__namespace.fallback(v29__namespace.optional(IsValidIsActive), true),
|
|
1327
|
+
destination: v29__namespace.optional(IsValidUrlDestination),
|
|
1328
|
+
protocol: v29__namespace.optional(IsValidUrlProtocol),
|
|
1329
|
+
domain: v29__namespace.optional(IsValidUrlDomain),
|
|
1330
|
+
path: v29__namespace.optional(IsValidUrlPath),
|
|
1331
|
+
query: v29__namespace.optional(IsValidUrlQuery),
|
|
1332
|
+
fragment: v29__namespace.optional(IsValidUrlFragment),
|
|
1333
|
+
utm_source: v29__namespace.optional(IsValidUrlUtmSource),
|
|
1334
|
+
utm_medium: v29__namespace.optional(IsValidUrlUtmMedium),
|
|
1335
|
+
utm_campaign: v29__namespace.optional(IsValidUrlUtmCampaign),
|
|
1336
|
+
utm_creative_format: v29__namespace.optional(IsValidUrlUtmCreativeFormat),
|
|
1337
|
+
utm_content: v29__namespace.optional(IsValidUrlUtmContent),
|
|
1338
|
+
utm_term: v29__namespace.optional(IsValidUrlUtmTerm),
|
|
1339
|
+
utm_id: v29__namespace.optional(IsValidUrlUtmId)
|
|
1340
|
+
});
|
|
1341
|
+
var SCreateTrackingLinkDocument = v29__namespace.object({
|
|
1386
1342
|
is_active: IsValidIsActive,
|
|
1387
1343
|
destination: IsValidUrlDestination,
|
|
1388
1344
|
protocol: IsValidUrlProtocol,
|
|
@@ -1398,17 +1354,21 @@ var SCreateTrackingLinkDocument = v28__namespace.object({
|
|
|
1398
1354
|
utm_term: IsValidUrlUtmTerm,
|
|
1399
1355
|
utm_id: IsValidUrlUtmId
|
|
1400
1356
|
});
|
|
1401
|
-
var
|
|
1357
|
+
var SCreateMultipleTrackingLinkDocuments = v29__namespace.pipe(
|
|
1358
|
+
v29__namespace.array(SCreateTrackingLinkDocument),
|
|
1359
|
+
v29__namespace.minLength(1, "Please create at least one tracking link")
|
|
1360
|
+
);
|
|
1361
|
+
var SCreateTrackingLinkDocumentRequest = v29__namespace.object({
|
|
1402
1362
|
documentId: IsValidReferenceDocumentId,
|
|
1403
1363
|
data: SCreateTrackingLinkDocument
|
|
1404
1364
|
});
|
|
1405
|
-
var SReadTrackingLinkDocumentById =
|
|
1365
|
+
var SReadTrackingLinkDocumentById = v29__namespace.object({
|
|
1406
1366
|
id: IsValidReferenceId
|
|
1407
1367
|
});
|
|
1408
|
-
var SReadTrackingLinkDocumentByDocumentId =
|
|
1368
|
+
var SReadTrackingLinkDocumentByDocumentId = v29__namespace.object({
|
|
1409
1369
|
documentId: IsValidReferenceDocumentId
|
|
1410
1370
|
});
|
|
1411
|
-
var SUpdateAsCreatorTrackingLinkDocument =
|
|
1371
|
+
var SUpdateAsCreatorTrackingLinkDocument = v29__namespace.object({
|
|
1412
1372
|
is_active: IsValidOrUndefinedUrlDestination,
|
|
1413
1373
|
destination: IsValidOrUndefinedUrlDestination,
|
|
1414
1374
|
protocol: IsValidOrUndefinedUrlProtocol,
|
|
@@ -1424,11 +1384,11 @@ var SUpdateAsCreatorTrackingLinkDocument = v28__namespace.object({
|
|
|
1424
1384
|
utm_term: IsValidOrUndefinedUrlUtmTerm,
|
|
1425
1385
|
utm_id: IsValidOrUndefinedUrlUtmId
|
|
1426
1386
|
});
|
|
1427
|
-
var SUpdateAsCreatorTrackingLinkDocumentRequest =
|
|
1387
|
+
var SUpdateAsCreatorTrackingLinkDocumentRequest = v29__namespace.object({
|
|
1428
1388
|
documentId: IsValidReferenceDocumentId,
|
|
1429
1389
|
data: SUpdateAsCreatorTrackingLinkDocument
|
|
1430
1390
|
});
|
|
1431
|
-
var SUpdateAsInvitedTrackingLinkDocument =
|
|
1391
|
+
var SUpdateAsInvitedTrackingLinkDocument = v29__namespace.object({
|
|
1432
1392
|
is_active: IsValidOrUndefinedUrlDestination,
|
|
1433
1393
|
destination: IsValidOrUndefinedUrlDestination,
|
|
1434
1394
|
protocol: IsValidOrUndefinedUrlProtocol,
|
|
@@ -1444,26 +1404,26 @@ var SUpdateAsInvitedTrackingLinkDocument = v28__namespace.object({
|
|
|
1444
1404
|
utm_term: IsValidOrUndefinedUrlUtmTerm,
|
|
1445
1405
|
utm_id: IsValidOrUndefinedUrlUtmId
|
|
1446
1406
|
});
|
|
1447
|
-
var SUpdateAsInvitedTrackingLinkDocumentRequest =
|
|
1407
|
+
var SUpdateAsInvitedTrackingLinkDocumentRequest = v29__namespace.object({
|
|
1448
1408
|
documentId: IsValidReferenceDocumentId,
|
|
1449
1409
|
data: SUpdateAsInvitedTrackingLinkDocument
|
|
1450
1410
|
});
|
|
1451
|
-
var SUpdateTrackingLinkDocumentRequest =
|
|
1411
|
+
var SUpdateTrackingLinkDocumentRequest = v29__namespace.union([
|
|
1452
1412
|
SUpdateAsCreatorTrackingLinkDocument,
|
|
1453
1413
|
SUpdateAsInvitedTrackingLinkDocument
|
|
1454
1414
|
]);
|
|
1455
|
-
var SDeleteTrackingLinkDocument =
|
|
1415
|
+
var SDeleteTrackingLinkDocument = v29__namespace.object({
|
|
1456
1416
|
documentId: IsValidReferenceDocumentId
|
|
1457
1417
|
});
|
|
1458
|
-
var SQueryListUserAccountDocuments =
|
|
1418
|
+
var SQueryListUserAccountDocuments = v29__namespace.object({
|
|
1459
1419
|
documentId: IsValidReferenceDocumentId,
|
|
1460
1420
|
page: IsValidMinPage,
|
|
1461
|
-
size:
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1421
|
+
size: v29__namespace.fallback(
|
|
1422
|
+
v29__namespace.optional(
|
|
1423
|
+
v29__namespace.pipe(
|
|
1424
|
+
v29__namespace.number(),
|
|
1425
|
+
v29__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1426
|
+
v29__namespace.maxValue(USER_ACCOUNT_PAGINATION_MAX_SIZE_LIMIT)
|
|
1467
1427
|
),
|
|
1468
1428
|
USER_ACCOUNT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1469
1429
|
),
|
|
@@ -1479,7 +1439,7 @@ var SQueryListUserAccountDocuments = v28__namespace.object({
|
|
|
1479
1439
|
trial_period_end_after: IsValidOrUndefinedTrialPeriodEnd,
|
|
1480
1440
|
trial_period_end_before: IsValidOrUndefinedTrialPeriodEnd
|
|
1481
1441
|
});
|
|
1482
|
-
var SCreateUserAccountDocument =
|
|
1442
|
+
var SCreateUserAccountDocument = v29__namespace.object({
|
|
1483
1443
|
customer_id: IsValidOrUndefinedCustomerId,
|
|
1484
1444
|
subscription_id: IsValidOrUndefinedSubscriptionId,
|
|
1485
1445
|
subscription_status: IsValidSubscriptionStatus,
|
|
@@ -1487,13 +1447,13 @@ var SCreateUserAccountDocument = v28__namespace.object({
|
|
|
1487
1447
|
current_period_end: IsValidCurrentPeriodEnd,
|
|
1488
1448
|
trial_period_end: IsValidOrUndefinedTrialPeriodEnd
|
|
1489
1449
|
});
|
|
1490
|
-
var SReadUserAccountDocumentById =
|
|
1450
|
+
var SReadUserAccountDocumentById = v29__namespace.object({
|
|
1491
1451
|
id: IsValidReferenceId
|
|
1492
1452
|
});
|
|
1493
|
-
var SReadUserAccountDocumentByDocumentId =
|
|
1453
|
+
var SReadUserAccountDocumentByDocumentId = v29__namespace.object({
|
|
1494
1454
|
documentId: IsValidReferenceDocumentId
|
|
1495
1455
|
});
|
|
1496
|
-
var SUpdateUserAccountDocument =
|
|
1456
|
+
var SUpdateUserAccountDocument = v29__namespace.object({
|
|
1497
1457
|
customer_id: IsValidOrUndefinedCustomerId,
|
|
1498
1458
|
subscription_id: IsValidOrUndefinedSubscriptionId,
|
|
1499
1459
|
subscription_status: IsValidOrUndefinedSubscriptionStatus,
|
|
@@ -1501,925 +1461,1565 @@ var SUpdateUserAccountDocument = v28__namespace.object({
|
|
|
1501
1461
|
current_period_end: IsValidOrUndefinedCurrentPeriodEnd,
|
|
1502
1462
|
trial_period_end: IsValidOrUndefinedTrialPeriodEnd
|
|
1503
1463
|
});
|
|
1504
|
-
var SQueryListUserLimitationDocuments =
|
|
1464
|
+
var SQueryListUserLimitationDocuments = v29__namespace.object({
|
|
1505
1465
|
documentId: IsValidReferenceDocumentId,
|
|
1506
1466
|
page: IsValidMinPage,
|
|
1507
|
-
size:
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1467
|
+
size: v29__namespace.fallback(
|
|
1468
|
+
v29__namespace.optional(
|
|
1469
|
+
v29__namespace.pipe(
|
|
1470
|
+
v29__namespace.number(),
|
|
1471
|
+
v29__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1472
|
+
v29__namespace.maxValue(USER_LIMITATION_PAGINATION_MAX_SIZE_LIMIT)
|
|
1513
1473
|
),
|
|
1514
1474
|
USER_LIMITATION_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1515
1475
|
),
|
|
1516
1476
|
USER_LIMITATION_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1517
1477
|
)
|
|
1518
1478
|
});
|
|
1519
|
-
var SCreateUserLimitationsDocument =
|
|
1520
|
-
limit_groups:
|
|
1521
|
-
limit_group_users:
|
|
1522
|
-
limit_websites:
|
|
1523
|
-
limit_tracking_links:
|
|
1524
|
-
limit_sources:
|
|
1525
|
-
limit_mediums:
|
|
1526
|
-
limit_campaign_ids:
|
|
1527
|
-
limit_campaign_keys:
|
|
1528
|
-
limit_campaign_phases:
|
|
1529
|
-
limit_campaign_products:
|
|
1530
|
-
limit_contents:
|
|
1531
|
-
limit_creative_formats:
|
|
1532
|
-
limit_creative_format_variants:
|
|
1533
|
-
limit_terms:
|
|
1534
|
-
});
|
|
1535
|
-
var SReadUserLimitationsDocumentById =
|
|
1479
|
+
var SCreateUserLimitationsDocument = v29__namespace.object({
|
|
1480
|
+
limit_groups: v29__namespace.number(),
|
|
1481
|
+
limit_group_users: v29__namespace.number(),
|
|
1482
|
+
limit_websites: v29__namespace.number(),
|
|
1483
|
+
limit_tracking_links: v29__namespace.number(),
|
|
1484
|
+
limit_sources: v29__namespace.number(),
|
|
1485
|
+
limit_mediums: v29__namespace.number(),
|
|
1486
|
+
limit_campaign_ids: v29__namespace.number(),
|
|
1487
|
+
limit_campaign_keys: v29__namespace.number(),
|
|
1488
|
+
limit_campaign_phases: v29__namespace.number(),
|
|
1489
|
+
limit_campaign_products: v29__namespace.number(),
|
|
1490
|
+
limit_contents: v29__namespace.number(),
|
|
1491
|
+
limit_creative_formats: v29__namespace.number(),
|
|
1492
|
+
limit_creative_format_variants: v29__namespace.number(),
|
|
1493
|
+
limit_terms: v29__namespace.number()
|
|
1494
|
+
});
|
|
1495
|
+
var SReadUserLimitationsDocumentById = v29__namespace.object({
|
|
1536
1496
|
id: IsValidReferenceId
|
|
1537
1497
|
});
|
|
1538
|
-
var SReadUserLimitationsDocumentByDocumentId =
|
|
1498
|
+
var SReadUserLimitationsDocumentByDocumentId = v29__namespace.object({
|
|
1539
1499
|
documentId: IsValidReferenceDocumentId
|
|
1540
1500
|
});
|
|
1541
|
-
var SUpdateUserLimitationsDocument =
|
|
1542
|
-
limit_groups:
|
|
1543
|
-
limit_group_users:
|
|
1544
|
-
limit_websites:
|
|
1545
|
-
limit_tracking_links:
|
|
1546
|
-
limit_sources:
|
|
1547
|
-
limit_mediums:
|
|
1548
|
-
limit_campaign_ids:
|
|
1549
|
-
limit_campaign_keys:
|
|
1550
|
-
limit_campaign_phases:
|
|
1551
|
-
limit_campaign_products:
|
|
1552
|
-
limit_contents:
|
|
1553
|
-
limit_creative_formats:
|
|
1554
|
-
limit_creative_format_variants:
|
|
1555
|
-
limit_terms:
|
|
1556
|
-
});
|
|
1557
|
-
var SQueryListUserDocuments =
|
|
1501
|
+
var SUpdateUserLimitationsDocument = v29__namespace.object({
|
|
1502
|
+
limit_groups: v29__namespace.undefinedable(v29__namespace.number()),
|
|
1503
|
+
limit_group_users: v29__namespace.undefinedable(v29__namespace.number()),
|
|
1504
|
+
limit_websites: v29__namespace.undefinedable(v29__namespace.number()),
|
|
1505
|
+
limit_tracking_links: v29__namespace.undefinedable(v29__namespace.number()),
|
|
1506
|
+
limit_sources: v29__namespace.undefinedable(v29__namespace.number()),
|
|
1507
|
+
limit_mediums: v29__namespace.undefinedable(v29__namespace.number()),
|
|
1508
|
+
limit_campaign_ids: v29__namespace.undefinedable(v29__namespace.number()),
|
|
1509
|
+
limit_campaign_keys: v29__namespace.undefinedable(v29__namespace.number()),
|
|
1510
|
+
limit_campaign_phases: v29__namespace.undefinedable(v29__namespace.number()),
|
|
1511
|
+
limit_campaign_products: v29__namespace.undefinedable(v29__namespace.number()),
|
|
1512
|
+
limit_contents: v29__namespace.undefinedable(v29__namespace.number()),
|
|
1513
|
+
limit_creative_formats: v29__namespace.undefinedable(v29__namespace.number()),
|
|
1514
|
+
limit_creative_format_variants: v29__namespace.undefinedable(v29__namespace.number()),
|
|
1515
|
+
limit_terms: v29__namespace.undefinedable(v29__namespace.number())
|
|
1516
|
+
});
|
|
1517
|
+
var SQueryListUserDocuments = v29__namespace.object({
|
|
1558
1518
|
page: IsValidMinPage,
|
|
1559
|
-
size:
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1519
|
+
size: v29__namespace.fallback(
|
|
1520
|
+
v29__namespace.optional(
|
|
1521
|
+
v29__namespace.pipe(
|
|
1522
|
+
v29__namespace.number(),
|
|
1523
|
+
v29__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1524
|
+
v29__namespace.maxValue(USER_PAGINATION_MAX_SIZE_LIMIT)
|
|
1565
1525
|
),
|
|
1566
1526
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1567
1527
|
),
|
|
1568
1528
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1569
1529
|
)
|
|
1570
1530
|
});
|
|
1571
|
-
var SQueryListUserDocumentsByIdentifier =
|
|
1572
|
-
identifier:
|
|
1531
|
+
var SQueryListUserDocumentsByIdentifier = v29__namespace.object({
|
|
1532
|
+
identifier: v29__namespace.pipe(v29__namespace.string(), v29__namespace.maxLength(255)),
|
|
1573
1533
|
page: IsValidMinPage,
|
|
1574
|
-
size:
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1534
|
+
size: v29__namespace.fallback(
|
|
1535
|
+
v29__namespace.optional(
|
|
1536
|
+
v29__namespace.pipe(
|
|
1537
|
+
v29__namespace.number(),
|
|
1538
|
+
v29__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1539
|
+
v29__namespace.maxValue(USER_PAGINATION_MAX_SIZE_LIMIT)
|
|
1580
1540
|
),
|
|
1581
1541
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1582
1542
|
),
|
|
1583
1543
|
USER_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1584
1544
|
)
|
|
1585
1545
|
});
|
|
1586
|
-
var SReadUserDocumentById =
|
|
1546
|
+
var SReadUserDocumentById = v29__namespace.object({
|
|
1587
1547
|
id: IsValidReferenceId
|
|
1588
1548
|
});
|
|
1589
|
-
var SReadUserDocumentByDocumentId =
|
|
1549
|
+
var SReadUserDocumentByDocumentId = v29__namespace.object({
|
|
1590
1550
|
documentId: IsValidReferenceDocumentId
|
|
1591
1551
|
});
|
|
1592
|
-
var SQueryListCampaignIdDocuments =
|
|
1552
|
+
var SQueryListCampaignIdDocuments = v29__namespace.object({
|
|
1593
1553
|
documentId: IsValidReferenceDocumentId,
|
|
1594
1554
|
page: IsValidMinPage,
|
|
1595
|
-
size:
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1555
|
+
size: v29__namespace.fallback(
|
|
1556
|
+
v29__namespace.optional(
|
|
1557
|
+
v29__namespace.pipe(
|
|
1558
|
+
v29__namespace.number(),
|
|
1559
|
+
v29__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1560
|
+
v29__namespace.maxValue(CAMPAIGN_ID_PAGINATION_MAX_SIZE_LIMIT)
|
|
1601
1561
|
),
|
|
1602
1562
|
CAMPAIGN_ID_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1603
1563
|
),
|
|
1604
1564
|
CAMPAIGN_ID_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1605
1565
|
)
|
|
1606
1566
|
});
|
|
1607
|
-
var SCreateCampaignIdDocument =
|
|
1567
|
+
var SCreateCampaignIdDocument = v29__namespace.object({
|
|
1608
1568
|
cost: IsValidCost,
|
|
1609
1569
|
label: IsValidLabel,
|
|
1610
1570
|
value: IsValidValue,
|
|
1611
1571
|
description: IsValidDescription,
|
|
1612
1572
|
is_active: IsValidIsActive
|
|
1613
1573
|
});
|
|
1614
|
-
var
|
|
1574
|
+
var SCreateMultipleCampaignIdDocuments = v29__namespace.pipe(
|
|
1575
|
+
v29__namespace.array(SCreateCampaignIdDocument),
|
|
1576
|
+
v29__namespace.minLength(1, "At least one campaign ID is required")
|
|
1577
|
+
);
|
|
1578
|
+
var SCreateCampaignIdDocumentRequest = v29__namespace.object({
|
|
1615
1579
|
documentId: IsValidReferenceDocumentId,
|
|
1616
1580
|
data: SCreateCampaignIdDocument
|
|
1617
1581
|
});
|
|
1618
|
-
var SReadCampaignIdDocumentById =
|
|
1582
|
+
var SReadCampaignIdDocumentById = v29__namespace.object({
|
|
1619
1583
|
id: IsValidReferenceId
|
|
1620
1584
|
});
|
|
1621
|
-
var SReadCampaignIdDocumentByDocumentId =
|
|
1585
|
+
var SReadCampaignIdDocumentByDocumentId = v29__namespace.object({
|
|
1622
1586
|
documentId: IsValidReferenceDocumentId
|
|
1623
1587
|
});
|
|
1624
|
-
var SUpdateAsCreatorCampaignIdDocument =
|
|
1588
|
+
var SUpdateAsCreatorCampaignIdDocument = v29__namespace.object({
|
|
1625
1589
|
cost: IsValidOrUndefinedCost,
|
|
1626
1590
|
label: IsValidOrUndefinedLabel,
|
|
1627
1591
|
value: IsValidOrUndefinedValue,
|
|
1628
1592
|
description: IsValidDescription,
|
|
1629
1593
|
is_active: IsValidOrUndefinedIsActive
|
|
1630
1594
|
});
|
|
1631
|
-
var SUpdateAsCreatorCampaignIdDocumentRequest =
|
|
1595
|
+
var SUpdateAsCreatorCampaignIdDocumentRequest = v29__namespace.object({
|
|
1632
1596
|
documentId: IsValidReferenceDocumentId,
|
|
1633
1597
|
data: SUpdateAsCreatorCampaignIdDocument
|
|
1634
1598
|
});
|
|
1635
|
-
var SUpdateAsInvitedCampaignIdDocument =
|
|
1599
|
+
var SUpdateAsInvitedCampaignIdDocument = v29__namespace.object({
|
|
1636
1600
|
label: IsValidOrUndefinedLabel,
|
|
1637
1601
|
description: IsValidDescription,
|
|
1638
1602
|
is_active: IsValidOrUndefinedIsActive
|
|
1639
1603
|
});
|
|
1640
|
-
var SUpdateAsInvitedCampaignIdDocumentRequest =
|
|
1604
|
+
var SUpdateAsInvitedCampaignIdDocumentRequest = v29__namespace.object({
|
|
1641
1605
|
documentId: IsValidReferenceDocumentId,
|
|
1642
1606
|
data: SUpdateAsInvitedCampaignIdDocument
|
|
1643
1607
|
});
|
|
1644
|
-
var SUpdateCampaignIdDocumentRequest =
|
|
1608
|
+
var SUpdateCampaignIdDocumentRequest = v29__namespace.union([
|
|
1645
1609
|
SUpdateAsCreatorCampaignIdDocument,
|
|
1646
1610
|
SUpdateAsInvitedCampaignIdDocument
|
|
1647
1611
|
]);
|
|
1648
|
-
var SDeleteCampaignIdDocument =
|
|
1612
|
+
var SDeleteCampaignIdDocument = v29__namespace.object({
|
|
1649
1613
|
documentId: IsValidReferenceDocumentId
|
|
1650
1614
|
});
|
|
1651
|
-
var SQueryListCampaignKeyDocuments =
|
|
1615
|
+
var SQueryListCampaignKeyDocuments = v29__namespace.object({
|
|
1652
1616
|
documentId: IsValidReferenceDocumentId,
|
|
1653
1617
|
page: IsValidMinPage,
|
|
1654
|
-
size:
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1618
|
+
size: v29__namespace.fallback(
|
|
1619
|
+
v29__namespace.optional(
|
|
1620
|
+
v29__namespace.pipe(
|
|
1621
|
+
v29__namespace.number(),
|
|
1622
|
+
v29__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1623
|
+
v29__namespace.maxValue(CAMPAIGN_KEY_PAGINATION_MAX_SIZE_LIMIT)
|
|
1660
1624
|
),
|
|
1661
1625
|
CAMPAIGN_KEY_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1662
1626
|
),
|
|
1663
1627
|
CAMPAIGN_KEY_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1664
1628
|
)
|
|
1665
1629
|
});
|
|
1666
|
-
var SCreateCampaignKeyDocument =
|
|
1630
|
+
var SCreateCampaignKeyDocument = v29__namespace.object({
|
|
1667
1631
|
label: IsValidLabel,
|
|
1668
1632
|
value: IsValidValue,
|
|
1669
1633
|
description: IsValidDescription,
|
|
1670
1634
|
is_active: IsValidIsActive
|
|
1671
1635
|
});
|
|
1672
|
-
var
|
|
1636
|
+
var SCreateMultipleCampaignKeyDocuments = v29__namespace.pipe(
|
|
1637
|
+
v29__namespace.array(SCreateCampaignKeyDocument),
|
|
1638
|
+
v29__namespace.minLength(1, "At least one campaign key is required")
|
|
1639
|
+
);
|
|
1640
|
+
var SCreateCampaignKeyDocumentRequest = v29__namespace.object({
|
|
1673
1641
|
documentId: IsValidReferenceDocumentId,
|
|
1674
1642
|
data: SCreateCampaignKeyDocument
|
|
1675
1643
|
});
|
|
1676
|
-
var SReadCampaignKeyDocumentById =
|
|
1644
|
+
var SReadCampaignKeyDocumentById = v29__namespace.object({
|
|
1677
1645
|
id: IsValidReferenceId
|
|
1678
1646
|
});
|
|
1679
|
-
var SReadCampaignKeyDocumentByDocumentId =
|
|
1647
|
+
var SReadCampaignKeyDocumentByDocumentId = v29__namespace.object({
|
|
1680
1648
|
documentId: IsValidReferenceDocumentId
|
|
1681
1649
|
});
|
|
1682
|
-
var SUpdateAsCreatorCampaignKeyDocument =
|
|
1650
|
+
var SUpdateAsCreatorCampaignKeyDocument = v29__namespace.object({
|
|
1683
1651
|
label: IsValidOrUndefinedLabel,
|
|
1684
1652
|
value: IsValidOrUndefinedValue,
|
|
1685
1653
|
description: IsValidOrUndefinedDescription,
|
|
1686
1654
|
is_active: IsValidOrUndefinedIsActive
|
|
1687
1655
|
});
|
|
1688
|
-
var SUpdateAsCreatorCampaignKeyDocumentRequest =
|
|
1656
|
+
var SUpdateAsCreatorCampaignKeyDocumentRequest = v29__namespace.object({
|
|
1689
1657
|
documentId: IsValidReferenceDocumentId,
|
|
1690
1658
|
data: SUpdateAsCreatorCampaignKeyDocument
|
|
1691
1659
|
});
|
|
1692
|
-
var SUpdateAsInvitedCampaignKeyDocument =
|
|
1660
|
+
var SUpdateAsInvitedCampaignKeyDocument = v29__namespace.object({
|
|
1693
1661
|
label: IsValidOrUndefinedLabel,
|
|
1694
1662
|
description: IsValidDescription,
|
|
1695
1663
|
is_active: IsValidOrUndefinedIsActive
|
|
1696
1664
|
});
|
|
1697
|
-
var SUpdateAsInvitedCampaignKeyDocumentRequest =
|
|
1665
|
+
var SUpdateAsInvitedCampaignKeyDocumentRequest = v29__namespace.object({
|
|
1698
1666
|
documentId: IsValidReferenceDocumentId,
|
|
1699
1667
|
data: SUpdateAsInvitedCampaignKeyDocument
|
|
1700
1668
|
});
|
|
1701
|
-
var SUpdateCampaignKeyDocumentRequest =
|
|
1669
|
+
var SUpdateCampaignKeyDocumentRequest = v29__namespace.union([
|
|
1702
1670
|
SUpdateAsCreatorCampaignKeyDocument,
|
|
1703
1671
|
SUpdateAsInvitedCampaignKeyDocument
|
|
1704
1672
|
]);
|
|
1705
|
-
var SDeleteCampaignKeyDocument =
|
|
1673
|
+
var SDeleteCampaignKeyDocument = v29__namespace.object({
|
|
1706
1674
|
documentId: IsValidReferenceDocumentId
|
|
1707
1675
|
});
|
|
1708
|
-
var SQueryListCampaignPhaseDocuments =
|
|
1676
|
+
var SQueryListCampaignPhaseDocuments = v29__namespace.object({
|
|
1709
1677
|
documentId: IsValidReferenceDocumentId,
|
|
1710
1678
|
page: IsValidMinPage,
|
|
1711
|
-
size:
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1679
|
+
size: v29__namespace.fallback(
|
|
1680
|
+
v29__namespace.optional(
|
|
1681
|
+
v29__namespace.pipe(
|
|
1682
|
+
v29__namespace.number(),
|
|
1683
|
+
v29__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1684
|
+
v29__namespace.maxValue(CAMPAIGN_PHASE_PAGINATION_MAX_SIZE_LIMIT)
|
|
1717
1685
|
),
|
|
1718
1686
|
CAMPAIGN_PHASE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1719
1687
|
),
|
|
1720
1688
|
CAMPAIGN_PHASE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1721
1689
|
)
|
|
1722
1690
|
});
|
|
1723
|
-
var SCreateCampaignPhaseDocument =
|
|
1691
|
+
var SCreateCampaignPhaseDocument = v29__namespace.object({
|
|
1724
1692
|
label: IsValidLabel,
|
|
1725
1693
|
value: IsValidValue,
|
|
1726
1694
|
description: IsValidDescription,
|
|
1727
1695
|
is_active: IsValidIsActive
|
|
1728
1696
|
});
|
|
1729
|
-
var
|
|
1697
|
+
var SCreateMultipleCampaignPhaseDocuments = v29__namespace.pipe(
|
|
1698
|
+
v29__namespace.array(SCreateCampaignPhaseDocument),
|
|
1699
|
+
v29__namespace.minLength(1, "At least one campaign phase is required")
|
|
1700
|
+
);
|
|
1701
|
+
var SCreateCampaignPhaseDocumentRequest = v29__namespace.object({
|
|
1730
1702
|
documentId: IsValidReferenceDocumentId,
|
|
1731
1703
|
data: SCreateCampaignPhaseDocument
|
|
1732
1704
|
});
|
|
1733
|
-
var SReadCampaignPhaseDocumentById =
|
|
1705
|
+
var SReadCampaignPhaseDocumentById = v29__namespace.object({
|
|
1734
1706
|
id: IsValidReferenceId
|
|
1735
1707
|
});
|
|
1736
|
-
var SReadCampaignPhaseDocumentByDocumentId =
|
|
1708
|
+
var SReadCampaignPhaseDocumentByDocumentId = v29__namespace.object({
|
|
1737
1709
|
documentId: IsValidReferenceDocumentId
|
|
1738
1710
|
});
|
|
1739
|
-
var SUpdateAsCreatorCampaignPhaseDocument =
|
|
1711
|
+
var SUpdateAsCreatorCampaignPhaseDocument = v29__namespace.object({
|
|
1740
1712
|
label: IsValidOrUndefinedLabel,
|
|
1741
1713
|
value: IsValidOrUndefinedValue,
|
|
1742
1714
|
description: IsValidOrUndefinedDescription,
|
|
1743
1715
|
is_active: IsValidOrUndefinedIsActive
|
|
1744
1716
|
});
|
|
1745
|
-
var SUpdateAsCreatorCampaignPhaseDocumentRequest =
|
|
1717
|
+
var SUpdateAsCreatorCampaignPhaseDocumentRequest = v29__namespace.object({
|
|
1746
1718
|
documentId: IsValidReferenceDocumentId,
|
|
1747
1719
|
data: SUpdateAsCreatorCampaignPhaseDocument
|
|
1748
1720
|
});
|
|
1749
|
-
var SUpdateAsInvitedCampaignPhaseDocument =
|
|
1721
|
+
var SUpdateAsInvitedCampaignPhaseDocument = v29__namespace.object({
|
|
1750
1722
|
label: IsValidOrUndefinedLabel,
|
|
1751
1723
|
description: IsValidDescription,
|
|
1752
1724
|
is_active: IsValidOrUndefinedIsActive
|
|
1753
1725
|
});
|
|
1754
|
-
var SUpdateAsInvitedCampaignPhaseDocumentRequest =
|
|
1726
|
+
var SUpdateAsInvitedCampaignPhaseDocumentRequest = v29__namespace.object({
|
|
1755
1727
|
documentId: IsValidReferenceDocumentId,
|
|
1756
1728
|
data: SUpdateAsInvitedCampaignPhaseDocument
|
|
1757
1729
|
});
|
|
1758
|
-
var SUpdateCampaignPhaseDocumentRequest =
|
|
1730
|
+
var SUpdateCampaignPhaseDocumentRequest = v29__namespace.union([
|
|
1759
1731
|
SUpdateAsCreatorCampaignPhaseDocument,
|
|
1760
1732
|
SUpdateAsInvitedCampaignPhaseDocument
|
|
1761
1733
|
]);
|
|
1762
|
-
var SDeleteCampaignPhaseDocument =
|
|
1734
|
+
var SDeleteCampaignPhaseDocument = v29__namespace.object({
|
|
1763
1735
|
documentId: IsValidReferenceDocumentId
|
|
1764
1736
|
});
|
|
1765
|
-
var SQueryListCampaignProductDocuments =
|
|
1737
|
+
var SQueryListCampaignProductDocuments = v29__namespace.object({
|
|
1766
1738
|
documentId: IsValidReferenceDocumentId,
|
|
1767
1739
|
page: IsValidMinPage,
|
|
1768
|
-
size:
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1740
|
+
size: v29__namespace.fallback(
|
|
1741
|
+
v29__namespace.optional(
|
|
1742
|
+
v29__namespace.pipe(
|
|
1743
|
+
v29__namespace.number(),
|
|
1744
|
+
v29__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1745
|
+
v29__namespace.maxValue(CAMPAIGN_PRODUCT_PAGINATION_MAX_SIZE_LIMIT)
|
|
1774
1746
|
),
|
|
1775
1747
|
CAMPAIGN_PRODUCT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1776
1748
|
),
|
|
1777
1749
|
CAMPAIGN_PRODUCT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1778
1750
|
)
|
|
1779
1751
|
});
|
|
1780
|
-
var SCreateCampaignProductDocument =
|
|
1752
|
+
var SCreateCampaignProductDocument = v29__namespace.object({
|
|
1781
1753
|
label: IsValidLabel,
|
|
1782
1754
|
value: IsValidValue,
|
|
1783
1755
|
description: IsValidDescription,
|
|
1784
1756
|
is_active: IsValidIsActive
|
|
1785
1757
|
});
|
|
1786
|
-
var
|
|
1758
|
+
var SCreateMultipleCampaignProductDocuments = v29__namespace.pipe(
|
|
1759
|
+
v29__namespace.array(SCreateCampaignProductDocument),
|
|
1760
|
+
v29__namespace.minLength(1, "At least one campaign product is required")
|
|
1761
|
+
);
|
|
1762
|
+
var SCreateCampaignProductDocumentRequest = v29__namespace.object({
|
|
1787
1763
|
documentId: IsValidReferenceDocumentId,
|
|
1788
1764
|
data: SCreateCampaignProductDocument
|
|
1789
1765
|
});
|
|
1790
|
-
var SReadCampaignProductDocumentById =
|
|
1766
|
+
var SReadCampaignProductDocumentById = v29__namespace.object({
|
|
1791
1767
|
id: IsValidReferenceId
|
|
1792
1768
|
});
|
|
1793
|
-
var SReadCampaignProductDocumentByDocumentId =
|
|
1769
|
+
var SReadCampaignProductDocumentByDocumentId = v29__namespace.object({
|
|
1794
1770
|
documentId: IsValidReferenceDocumentId
|
|
1795
1771
|
});
|
|
1796
|
-
var SUpdateAsCreatorCampaignProductDocument =
|
|
1772
|
+
var SUpdateAsCreatorCampaignProductDocument = v29__namespace.object({
|
|
1797
1773
|
label: IsValidOrUndefinedLabel,
|
|
1798
1774
|
value: IsValidOrUndefinedValue,
|
|
1799
1775
|
description: IsValidOrUndefinedDescription,
|
|
1800
1776
|
is_active: IsValidOrUndefinedIsActive
|
|
1801
1777
|
});
|
|
1802
|
-
var SUpdateAsCreatorCampaignProductDocumentRequest =
|
|
1778
|
+
var SUpdateAsCreatorCampaignProductDocumentRequest = v29__namespace.object({
|
|
1803
1779
|
documentId: IsValidReferenceDocumentId,
|
|
1804
1780
|
data: SUpdateAsCreatorCampaignProductDocument
|
|
1805
1781
|
});
|
|
1806
|
-
var SUpdateAsInvitedCampaignProductDocument =
|
|
1782
|
+
var SUpdateAsInvitedCampaignProductDocument = v29__namespace.object({
|
|
1807
1783
|
label: IsValidOrUndefinedLabel,
|
|
1808
1784
|
description: IsValidDescription,
|
|
1809
1785
|
is_active: IsValidOrUndefinedIsActive
|
|
1810
1786
|
});
|
|
1811
|
-
var SUpdateAsInvitedCampaignProductDocumentRequest =
|
|
1787
|
+
var SUpdateAsInvitedCampaignProductDocumentRequest = v29__namespace.object({
|
|
1812
1788
|
documentId: IsValidReferenceDocumentId,
|
|
1813
1789
|
data: SUpdateAsInvitedCampaignProductDocument
|
|
1814
1790
|
});
|
|
1815
|
-
var SUpdateCampaignProductDocumentRequest =
|
|
1791
|
+
var SUpdateCampaignProductDocumentRequest = v29__namespace.union([
|
|
1816
1792
|
SUpdateAsCreatorCampaignProductDocument,
|
|
1817
1793
|
SUpdateAsInvitedCampaignProductDocument
|
|
1818
1794
|
]);
|
|
1819
|
-
var SDeleteCampaignProductDocument =
|
|
1795
|
+
var SDeleteCampaignProductDocument = v29__namespace.object({
|
|
1820
1796
|
documentId: IsValidReferenceDocumentId
|
|
1821
1797
|
});
|
|
1822
|
-
var SQueryListContentDocuments =
|
|
1798
|
+
var SQueryListContentDocuments = v29__namespace.object({
|
|
1823
1799
|
documentId: IsValidReferenceDocumentId,
|
|
1824
1800
|
page: IsValidMinPage,
|
|
1825
|
-
size:
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1801
|
+
size: v29__namespace.fallback(
|
|
1802
|
+
v29__namespace.optional(
|
|
1803
|
+
v29__namespace.pipe(
|
|
1804
|
+
v29__namespace.number(),
|
|
1805
|
+
v29__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1806
|
+
v29__namespace.maxValue(CONTENT_PAGINATION_MAX_SIZE_LIMIT)
|
|
1831
1807
|
),
|
|
1832
1808
|
CONTENT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1833
1809
|
),
|
|
1834
1810
|
CONTENT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1835
1811
|
)
|
|
1836
1812
|
});
|
|
1837
|
-
var SCreateContentDocument =
|
|
1813
|
+
var SCreateContentDocument = v29__namespace.object({
|
|
1838
1814
|
label: IsValidLabel,
|
|
1839
1815
|
value: IsValidValue,
|
|
1840
1816
|
description: IsValidDescription,
|
|
1841
1817
|
is_active: IsValidIsActive
|
|
1842
1818
|
});
|
|
1843
|
-
var
|
|
1819
|
+
var SCreateMultipleContentDocuments = v29__namespace.pipe(
|
|
1820
|
+
v29__namespace.array(SCreateContentDocument),
|
|
1821
|
+
v29__namespace.minLength(1, "At least one term is required")
|
|
1822
|
+
);
|
|
1823
|
+
var SCreateContentDocumentRequest = v29__namespace.object({
|
|
1844
1824
|
documentId: IsValidReferenceDocumentId,
|
|
1845
1825
|
data: SCreateContentDocument
|
|
1846
1826
|
});
|
|
1847
|
-
var SReadContentDocumentById =
|
|
1827
|
+
var SReadContentDocumentById = v29__namespace.object({
|
|
1848
1828
|
id: IsValidReferenceId
|
|
1849
1829
|
});
|
|
1850
|
-
var SReadContentDocumentByDocumentId =
|
|
1830
|
+
var SReadContentDocumentByDocumentId = v29__namespace.object({
|
|
1851
1831
|
documentId: IsValidReferenceDocumentId
|
|
1852
1832
|
});
|
|
1853
|
-
var SUpdateAsCreatorContentDocument =
|
|
1833
|
+
var SUpdateAsCreatorContentDocument = v29__namespace.object({
|
|
1854
1834
|
label: IsValidOrUndefinedLabel,
|
|
1855
1835
|
value: IsValidOrUndefinedValue,
|
|
1856
1836
|
description: IsValidOrUndefinedDescription,
|
|
1857
1837
|
is_active: IsValidOrUndefinedIsActive
|
|
1858
1838
|
});
|
|
1859
|
-
var SUpdateAsCreatorContentDocumentRequest =
|
|
1839
|
+
var SUpdateAsCreatorContentDocumentRequest = v29__namespace.object({
|
|
1860
1840
|
documentId: IsValidReferenceDocumentId,
|
|
1861
1841
|
data: SUpdateAsCreatorContentDocument
|
|
1862
1842
|
});
|
|
1863
|
-
var SUpdateAsInvitedContentDocument =
|
|
1843
|
+
var SUpdateAsInvitedContentDocument = v29__namespace.object({
|
|
1864
1844
|
label: IsValidOrUndefinedLabel,
|
|
1865
1845
|
description: IsValidDescription,
|
|
1866
1846
|
is_active: IsValidOrUndefinedIsActive
|
|
1867
1847
|
});
|
|
1868
|
-
var SUpdateAsInvitedContentDocumentRequest =
|
|
1848
|
+
var SUpdateAsInvitedContentDocumentRequest = v29__namespace.object({
|
|
1869
1849
|
documentId: IsValidReferenceDocumentId,
|
|
1870
1850
|
data: SUpdateAsInvitedContentDocument
|
|
1871
1851
|
});
|
|
1872
|
-
var SUpdateContentDocumentRequest =
|
|
1852
|
+
var SUpdateContentDocumentRequest = v29__namespace.union([
|
|
1873
1853
|
SUpdateAsCreatorContentDocument,
|
|
1874
1854
|
SUpdateAsInvitedContentDocument
|
|
1875
1855
|
]);
|
|
1876
|
-
var SDeleteContentDocument =
|
|
1856
|
+
var SDeleteContentDocument = v29__namespace.object({
|
|
1877
1857
|
documentId: IsValidReferenceDocumentId
|
|
1878
1858
|
});
|
|
1879
|
-
var SQueryListCreativeFormatVariantDocuments =
|
|
1859
|
+
var SQueryListCreativeFormatVariantDocuments = v29__namespace.object({
|
|
1880
1860
|
documentId: IsValidReferenceDocumentId,
|
|
1881
1861
|
page: IsValidMinPage,
|
|
1882
|
-
size:
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1862
|
+
size: v29__namespace.fallback(
|
|
1863
|
+
v29__namespace.optional(
|
|
1864
|
+
v29__namespace.pipe(
|
|
1865
|
+
v29__namespace.number(),
|
|
1866
|
+
v29__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1867
|
+
v29__namespace.maxValue(CREATIVE_FORMAT_VARIANT_PAGINATION_MAX_SIZE_LIMIT)
|
|
1888
1868
|
),
|
|
1889
1869
|
CREATIVE_FORMAT_VARIANT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1890
1870
|
),
|
|
1891
1871
|
CREATIVE_FORMAT_VARIANT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1892
1872
|
)
|
|
1893
1873
|
});
|
|
1894
|
-
var SCreateCreativeFormatVariantDocument =
|
|
1874
|
+
var SCreateCreativeFormatVariantDocument = v29__namespace.object({
|
|
1895
1875
|
label: IsValidLabel,
|
|
1896
1876
|
value: IsValidValue,
|
|
1897
1877
|
description: IsValidDescription,
|
|
1898
1878
|
is_active: IsValidIsActive
|
|
1899
1879
|
});
|
|
1900
|
-
var
|
|
1880
|
+
var SCreateMultipleCreativeFormatVariantDocuments = v29__namespace.pipe(
|
|
1881
|
+
v29__namespace.array(SCreateCreativeFormatVariantDocument),
|
|
1882
|
+
v29__namespace.minLength(1, "At least one term is required")
|
|
1883
|
+
);
|
|
1884
|
+
var SCreateCreativeFormatVariantDocumentRequest = v29__namespace.object({
|
|
1901
1885
|
documentId: IsValidReferenceDocumentId,
|
|
1902
1886
|
data: SCreateCreativeFormatVariantDocument
|
|
1903
1887
|
});
|
|
1904
|
-
var SReadCreativeFormatVariantDocumentById =
|
|
1888
|
+
var SReadCreativeFormatVariantDocumentById = v29__namespace.object({
|
|
1905
1889
|
id: IsValidReferenceId
|
|
1906
1890
|
});
|
|
1907
|
-
var SReadCreativeFormatVariantDocumentByDocumentId =
|
|
1891
|
+
var SReadCreativeFormatVariantDocumentByDocumentId = v29__namespace.object({
|
|
1908
1892
|
documentId: IsValidReferenceDocumentId
|
|
1909
1893
|
});
|
|
1910
|
-
var SUpdateAsCreatorCreativeFormatVariantDocument =
|
|
1894
|
+
var SUpdateAsCreatorCreativeFormatVariantDocument = v29__namespace.object({
|
|
1911
1895
|
label: IsValidOrUndefinedLabel,
|
|
1912
1896
|
value: IsValidOrUndefinedValue,
|
|
1913
1897
|
description: IsValidOrUndefinedDescription,
|
|
1914
1898
|
is_active: IsValidOrUndefinedIsActive
|
|
1915
1899
|
});
|
|
1916
|
-
var SUpdateAsCreatorCreativeFormatVariantDocumentRequest =
|
|
1900
|
+
var SUpdateAsCreatorCreativeFormatVariantDocumentRequest = v29__namespace.object({
|
|
1917
1901
|
documentId: IsValidReferenceDocumentId,
|
|
1918
1902
|
data: SUpdateAsCreatorCreativeFormatVariantDocument
|
|
1919
1903
|
});
|
|
1920
|
-
var SUpdateAsInvitedCreativeFormatVariantDocument =
|
|
1904
|
+
var SUpdateAsInvitedCreativeFormatVariantDocument = v29__namespace.object({
|
|
1921
1905
|
label: IsValidOrUndefinedLabel,
|
|
1922
1906
|
description: IsValidDescription,
|
|
1923
1907
|
is_active: IsValidOrUndefinedIsActive
|
|
1924
1908
|
});
|
|
1925
|
-
var SUpdateAsInvitedCreativeFormatVariantDocumentRequest =
|
|
1909
|
+
var SUpdateAsInvitedCreativeFormatVariantDocumentRequest = v29__namespace.object({
|
|
1926
1910
|
documentId: IsValidReferenceDocumentId,
|
|
1927
1911
|
data: SUpdateAsInvitedCreativeFormatVariantDocument
|
|
1928
1912
|
});
|
|
1929
|
-
var SUpdateCreativeFormatVariantDocumentRequest =
|
|
1913
|
+
var SUpdateCreativeFormatVariantDocumentRequest = v29__namespace.union([
|
|
1930
1914
|
SUpdateAsCreatorCreativeFormatVariantDocument,
|
|
1931
1915
|
SUpdateAsInvitedCreativeFormatVariantDocument
|
|
1932
1916
|
]);
|
|
1933
|
-
var SDeleteCreativeFormatVariantDocument =
|
|
1917
|
+
var SDeleteCreativeFormatVariantDocument = v29__namespace.object({
|
|
1934
1918
|
documentId: IsValidReferenceDocumentId
|
|
1935
1919
|
});
|
|
1936
|
-
var SQueryListCreativeFormatDocuments =
|
|
1920
|
+
var SQueryListCreativeFormatDocuments = v29__namespace.object({
|
|
1937
1921
|
documentId: IsValidReferenceDocumentId,
|
|
1938
1922
|
page: IsValidMinPage,
|
|
1939
|
-
size:
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1923
|
+
size: v29__namespace.fallback(
|
|
1924
|
+
v29__namespace.optional(
|
|
1925
|
+
v29__namespace.pipe(
|
|
1926
|
+
v29__namespace.number(),
|
|
1927
|
+
v29__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1928
|
+
v29__namespace.maxValue(CREATIVE_FORMAT_PAGINATION_MAX_SIZE_LIMIT)
|
|
1945
1929
|
),
|
|
1946
1930
|
CREATIVE_FORMAT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1947
1931
|
),
|
|
1948
1932
|
CREATIVE_FORMAT_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1949
1933
|
)
|
|
1950
1934
|
});
|
|
1951
|
-
var SCreateCreativeFormatDocument =
|
|
1935
|
+
var SCreateCreativeFormatDocument = v29__namespace.object({
|
|
1952
1936
|
label: IsValidLabel,
|
|
1953
1937
|
value: IsValidValue,
|
|
1954
1938
|
description: IsValidDescription,
|
|
1955
1939
|
is_active: IsValidIsActive
|
|
1956
1940
|
});
|
|
1957
|
-
var
|
|
1941
|
+
var SCreateMultipleCreativeFormatDocuments = v29__namespace.pipe(
|
|
1942
|
+
v29__namespace.array(SCreateCreativeFormatDocument),
|
|
1943
|
+
v29__namespace.minLength(1, "At least one creative format is required")
|
|
1944
|
+
);
|
|
1945
|
+
var SCreateCreativeFormatDocumentRequest = v29__namespace.object({
|
|
1958
1946
|
documentId: IsValidReferenceDocumentId,
|
|
1959
1947
|
data: SCreateCreativeFormatDocument
|
|
1960
1948
|
});
|
|
1961
|
-
var SReadCreativeFormatDocumentById =
|
|
1949
|
+
var SReadCreativeFormatDocumentById = v29__namespace.object({
|
|
1962
1950
|
id: IsValidReferenceId
|
|
1963
1951
|
});
|
|
1964
|
-
var SReadCreativeFormatDocumentByDocumentId =
|
|
1952
|
+
var SReadCreativeFormatDocumentByDocumentId = v29__namespace.object({
|
|
1965
1953
|
documentId: IsValidReferenceDocumentId
|
|
1966
1954
|
});
|
|
1967
|
-
var SUpdateAsCreatorCreativeFormatDocument =
|
|
1955
|
+
var SUpdateAsCreatorCreativeFormatDocument = v29__namespace.object({
|
|
1968
1956
|
label: IsValidOrUndefinedLabel,
|
|
1969
1957
|
value: IsValidOrUndefinedValue,
|
|
1970
1958
|
description: IsValidOrUndefinedDescription,
|
|
1971
1959
|
is_active: IsValidOrUndefinedIsActive
|
|
1972
1960
|
});
|
|
1973
|
-
var SUpdateAsCreatorCreativeFormatDocumentRequest =
|
|
1961
|
+
var SUpdateAsCreatorCreativeFormatDocumentRequest = v29__namespace.object({
|
|
1974
1962
|
documentId: IsValidReferenceDocumentId,
|
|
1975
1963
|
data: SUpdateAsCreatorCreativeFormatDocument
|
|
1976
1964
|
});
|
|
1977
|
-
var SUpdateAsInvitedCreativeFormatDocument =
|
|
1965
|
+
var SUpdateAsInvitedCreativeFormatDocument = v29__namespace.object({
|
|
1978
1966
|
label: IsValidOrUndefinedLabel,
|
|
1979
1967
|
description: IsValidDescription,
|
|
1980
1968
|
is_active: IsValidOrUndefinedIsActive
|
|
1981
1969
|
});
|
|
1982
|
-
var SUpdateAsInvitedCreativeFormatDocumentRequest =
|
|
1970
|
+
var SUpdateAsInvitedCreativeFormatDocumentRequest = v29__namespace.object({
|
|
1983
1971
|
documentId: IsValidReferenceDocumentId,
|
|
1984
1972
|
data: SUpdateAsInvitedCreativeFormatDocument
|
|
1985
1973
|
});
|
|
1986
|
-
var SUpdateCreativeFormatDocumentRequest =
|
|
1974
|
+
var SUpdateCreativeFormatDocumentRequest = v29__namespace.union([
|
|
1987
1975
|
SUpdateAsCreatorCreativeFormatDocument,
|
|
1988
1976
|
SUpdateAsInvitedCreativeFormatDocument
|
|
1989
1977
|
]);
|
|
1990
|
-
var SDeleteCreativeFormatDocument =
|
|
1978
|
+
var SDeleteCreativeFormatDocument = v29__namespace.object({
|
|
1991
1979
|
documentId: IsValidReferenceDocumentId
|
|
1992
1980
|
});
|
|
1993
|
-
var SQueryListMediumDocuments =
|
|
1981
|
+
var SQueryListMediumDocuments = v29__namespace.object({
|
|
1994
1982
|
documentId: IsValidReferenceDocumentId,
|
|
1995
1983
|
page: IsValidMinPage,
|
|
1996
|
-
size:
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
1984
|
+
size: v29__namespace.fallback(
|
|
1985
|
+
v29__namespace.optional(
|
|
1986
|
+
v29__namespace.pipe(
|
|
1987
|
+
v29__namespace.number(),
|
|
1988
|
+
v29__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1989
|
+
v29__namespace.maxValue(MEDIUM_PAGINATION_MAX_SIZE_LIMIT)
|
|
2002
1990
|
),
|
|
2003
1991
|
MEDIUM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2004
1992
|
),
|
|
2005
1993
|
MEDIUM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2006
1994
|
)
|
|
2007
1995
|
});
|
|
2008
|
-
var SCreateMediumDocument =
|
|
1996
|
+
var SCreateMediumDocument = v29__namespace.object({
|
|
2009
1997
|
label: IsValidLabel,
|
|
2010
1998
|
value: IsValidValue,
|
|
2011
1999
|
description: IsValidDescription,
|
|
2012
2000
|
is_active: IsValidIsActive
|
|
2013
2001
|
});
|
|
2014
|
-
var
|
|
2002
|
+
var SCreateMultipleMediumDocuments = v29__namespace.pipe(
|
|
2003
|
+
v29__namespace.array(SCreateMediumDocument),
|
|
2004
|
+
v29__namespace.minLength(1, "At least one medium is required")
|
|
2005
|
+
);
|
|
2006
|
+
var SCreateMediumDocumentRequest = v29__namespace.object({
|
|
2015
2007
|
documentId: IsValidReferenceDocumentId,
|
|
2016
2008
|
data: SCreateMediumDocument
|
|
2017
2009
|
});
|
|
2018
|
-
var SReadMediumDocumentById =
|
|
2010
|
+
var SReadMediumDocumentById = v29__namespace.object({
|
|
2019
2011
|
id: IsValidReferenceId
|
|
2020
2012
|
});
|
|
2021
|
-
var SReadMediumDocumentByDocumentId =
|
|
2013
|
+
var SReadMediumDocumentByDocumentId = v29__namespace.object({
|
|
2022
2014
|
documentId: IsValidReferenceDocumentId
|
|
2023
2015
|
});
|
|
2024
|
-
var SUpdateAsCreatorMediumDocument =
|
|
2016
|
+
var SUpdateAsCreatorMediumDocument = v29__namespace.object({
|
|
2025
2017
|
label: IsValidOrUndefinedLabel,
|
|
2026
2018
|
value: IsValidOrUndefinedValue,
|
|
2027
2019
|
description: IsValidOrUndefinedDescription,
|
|
2028
2020
|
is_active: IsValidOrUndefinedIsActive
|
|
2029
2021
|
});
|
|
2030
|
-
var SUpdateAsCreatorMediumDocumentRequest =
|
|
2022
|
+
var SUpdateAsCreatorMediumDocumentRequest = v29__namespace.object({
|
|
2031
2023
|
documentId: IsValidReferenceDocumentId,
|
|
2032
2024
|
data: SUpdateAsCreatorMediumDocument
|
|
2033
2025
|
});
|
|
2034
|
-
var SUpdateAsInvitedMediumDocument =
|
|
2026
|
+
var SUpdateAsInvitedMediumDocument = v29__namespace.object({
|
|
2035
2027
|
label: IsValidOrUndefinedLabel,
|
|
2036
2028
|
description: IsValidDescription,
|
|
2037
2029
|
is_active: IsValidOrUndefinedIsActive
|
|
2038
2030
|
});
|
|
2039
|
-
var SUpdateAsInvitedMediumDocumentRequest =
|
|
2031
|
+
var SUpdateAsInvitedMediumDocumentRequest = v29__namespace.object({
|
|
2040
2032
|
documentId: IsValidReferenceDocumentId,
|
|
2041
2033
|
data: SUpdateAsInvitedMediumDocument
|
|
2042
2034
|
});
|
|
2043
|
-
var SUpdateMediumDocumentRequest =
|
|
2035
|
+
var SUpdateMediumDocumentRequest = v29__namespace.union([
|
|
2044
2036
|
SUpdateAsCreatorMediumDocument,
|
|
2045
2037
|
SUpdateAsInvitedMediumDocument
|
|
2046
2038
|
]);
|
|
2047
|
-
var SDeleteMediumDocument =
|
|
2039
|
+
var SDeleteMediumDocument = v29__namespace.object({
|
|
2048
2040
|
documentId: IsValidReferenceDocumentId
|
|
2049
2041
|
});
|
|
2050
|
-
var SQueryListSourceDocuments =
|
|
2042
|
+
var SQueryListSourceDocuments = v29__namespace.object({
|
|
2051
2043
|
documentId: IsValidReferenceDocumentId,
|
|
2052
2044
|
page: IsValidMinPage,
|
|
2053
|
-
size:
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2045
|
+
size: v29__namespace.fallback(
|
|
2046
|
+
v29__namespace.optional(
|
|
2047
|
+
v29__namespace.pipe(
|
|
2048
|
+
v29__namespace.number(),
|
|
2049
|
+
v29__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
2050
|
+
v29__namespace.maxValue(SOURCE_PAGINATION_MAX_SIZE_LIMIT)
|
|
2059
2051
|
),
|
|
2060
2052
|
SOURCE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2061
2053
|
),
|
|
2062
2054
|
SOURCE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2063
2055
|
)
|
|
2064
2056
|
});
|
|
2065
|
-
var SCreateSourceDocument =
|
|
2057
|
+
var SCreateSourceDocument = v29__namespace.object({
|
|
2066
2058
|
label: IsValidLabel,
|
|
2067
2059
|
value: IsValidValue,
|
|
2068
2060
|
description: IsValidDescription,
|
|
2069
2061
|
is_active: IsValidIsActive
|
|
2070
2062
|
});
|
|
2071
|
-
var
|
|
2063
|
+
var SCreateMultipleSourceDocuments = v29__namespace.pipe(
|
|
2064
|
+
v29__namespace.array(SCreateSourceDocument),
|
|
2065
|
+
v29__namespace.minLength(1, "At least one source is required")
|
|
2066
|
+
);
|
|
2067
|
+
var SCreateSourceDocumentRequest = v29__namespace.object({
|
|
2072
2068
|
documentId: IsValidReferenceDocumentId,
|
|
2073
2069
|
data: SCreateSourceDocument
|
|
2074
2070
|
});
|
|
2075
|
-
var SReadSourceDocumentById =
|
|
2071
|
+
var SReadSourceDocumentById = v29__namespace.object({
|
|
2076
2072
|
id: IsValidReferenceId
|
|
2077
2073
|
});
|
|
2078
|
-
var SReadSourceDocumentByDocumentId =
|
|
2074
|
+
var SReadSourceDocumentByDocumentId = v29__namespace.object({
|
|
2079
2075
|
documentId: IsValidReferenceDocumentId
|
|
2080
2076
|
});
|
|
2081
|
-
var SUpdateAsCreatorSourceDocument =
|
|
2077
|
+
var SUpdateAsCreatorSourceDocument = v29__namespace.object({
|
|
2082
2078
|
label: IsValidOrUndefinedLabel,
|
|
2083
2079
|
value: IsValidOrUndefinedValue,
|
|
2084
2080
|
description: IsValidOrUndefinedDescription,
|
|
2085
2081
|
is_active: IsValidOrUndefinedIsActive
|
|
2086
2082
|
});
|
|
2087
|
-
var SUpdateAsCreatorSourceDocumentRequest =
|
|
2083
|
+
var SUpdateAsCreatorSourceDocumentRequest = v29__namespace.object({
|
|
2088
2084
|
documentId: IsValidReferenceDocumentId,
|
|
2089
2085
|
data: SUpdateAsCreatorSourceDocument
|
|
2090
2086
|
});
|
|
2091
|
-
var SUpdateAsInvitedSourceDocument =
|
|
2087
|
+
var SUpdateAsInvitedSourceDocument = v29__namespace.object({
|
|
2092
2088
|
label: IsValidOrUndefinedLabel,
|
|
2093
2089
|
description: IsValidDescription,
|
|
2094
2090
|
is_active: IsValidOrUndefinedIsActive
|
|
2095
2091
|
});
|
|
2096
|
-
var SUpdateAsInvitedSourceDocumentRequest =
|
|
2092
|
+
var SUpdateAsInvitedSourceDocumentRequest = v29__namespace.object({
|
|
2097
2093
|
documentId: IsValidReferenceDocumentId,
|
|
2098
2094
|
data: SUpdateAsInvitedSourceDocument
|
|
2099
2095
|
});
|
|
2100
|
-
var SUpdateSourceDocumentRequest =
|
|
2096
|
+
var SUpdateSourceDocumentRequest = v29__namespace.union([
|
|
2101
2097
|
SUpdateAsCreatorSourceDocument,
|
|
2102
2098
|
SUpdateAsInvitedSourceDocument
|
|
2103
2099
|
]);
|
|
2104
|
-
var SDeleteSourceDocument =
|
|
2100
|
+
var SDeleteSourceDocument = v29__namespace.object({
|
|
2105
2101
|
documentId: IsValidReferenceDocumentId
|
|
2106
2102
|
});
|
|
2107
|
-
var SQueryListTermDocuments =
|
|
2103
|
+
var SQueryListTermDocuments = v29__namespace.object({
|
|
2108
2104
|
documentId: IsValidReferenceDocumentId,
|
|
2109
2105
|
page: IsValidMinPage,
|
|
2110
|
-
size:
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2106
|
+
size: v29__namespace.fallback(
|
|
2107
|
+
v29__namespace.optional(
|
|
2108
|
+
v29__namespace.pipe(
|
|
2109
|
+
v29__namespace.number(),
|
|
2110
|
+
v29__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
2111
|
+
v29__namespace.maxValue(TERM_PAGINATION_MAX_SIZE_LIMIT)
|
|
2116
2112
|
),
|
|
2117
2113
|
TERM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2118
2114
|
),
|
|
2119
2115
|
TERM_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2120
2116
|
)
|
|
2121
2117
|
});
|
|
2122
|
-
var SCreateTermDocument =
|
|
2118
|
+
var SCreateTermDocument = v29__namespace.object({
|
|
2123
2119
|
label: IsValidLabel,
|
|
2124
2120
|
value: IsValidValue,
|
|
2125
2121
|
description: IsValidDescription,
|
|
2126
2122
|
is_active: IsValidIsActive
|
|
2127
2123
|
});
|
|
2128
|
-
var
|
|
2124
|
+
var SCreateMultipleTermDocuments = v29__namespace.pipe(
|
|
2125
|
+
v29__namespace.array(SCreateTermDocument),
|
|
2126
|
+
v29__namespace.minLength(1, "At least one term is required")
|
|
2127
|
+
);
|
|
2128
|
+
var SCreateTermDocumentRequest = v29__namespace.object({
|
|
2129
2129
|
documentId: IsValidReferenceDocumentId,
|
|
2130
2130
|
data: SCreateTermDocument
|
|
2131
2131
|
});
|
|
2132
|
-
var SReadTermDocumentById =
|
|
2132
|
+
var SReadTermDocumentById = v29__namespace.object({
|
|
2133
2133
|
id: IsValidReferenceId
|
|
2134
2134
|
});
|
|
2135
|
-
var SReadTermDocumentByDocumentId =
|
|
2135
|
+
var SReadTermDocumentByDocumentId = v29__namespace.object({
|
|
2136
2136
|
documentId: IsValidReferenceDocumentId
|
|
2137
2137
|
});
|
|
2138
|
-
var SUpdateAsCreatorTermDocument =
|
|
2138
|
+
var SUpdateAsCreatorTermDocument = v29__namespace.object({
|
|
2139
2139
|
label: IsValidOrUndefinedLabel,
|
|
2140
2140
|
value: IsValidOrUndefinedValue,
|
|
2141
2141
|
description: IsValidOrUndefinedDescription,
|
|
2142
2142
|
is_active: IsValidOrUndefinedIsActive
|
|
2143
2143
|
});
|
|
2144
|
-
var SUpdateAsCreatorTermDocumentRequest =
|
|
2144
|
+
var SUpdateAsCreatorTermDocumentRequest = v29__namespace.object({
|
|
2145
2145
|
documentId: IsValidReferenceDocumentId,
|
|
2146
2146
|
data: SUpdateAsCreatorTermDocument
|
|
2147
2147
|
});
|
|
2148
|
-
var SUpdateAsInvitedTermDocument =
|
|
2148
|
+
var SUpdateAsInvitedTermDocument = v29__namespace.object({
|
|
2149
2149
|
label: IsValidOrUndefinedLabel,
|
|
2150
2150
|
description: IsValidDescription,
|
|
2151
2151
|
is_active: IsValidOrUndefinedIsActive
|
|
2152
2152
|
});
|
|
2153
|
-
var SUpdateAsInvitedTermDocumentRequest =
|
|
2153
|
+
var SUpdateAsInvitedTermDocumentRequest = v29__namespace.object({
|
|
2154
2154
|
documentId: IsValidReferenceDocumentId,
|
|
2155
2155
|
data: SUpdateAsInvitedTermDocument
|
|
2156
2156
|
});
|
|
2157
|
-
var SUpdateTermDocumentRequest =
|
|
2157
|
+
var SUpdateTermDocumentRequest = v29__namespace.union([
|
|
2158
2158
|
SUpdateAsCreatorTermDocument,
|
|
2159
2159
|
SUpdateAsInvitedTermDocument
|
|
2160
2160
|
]);
|
|
2161
|
-
var SDeleteTermDocument =
|
|
2161
|
+
var SDeleteTermDocument = v29__namespace.object({
|
|
2162
2162
|
documentId: IsValidReferenceDocumentId
|
|
2163
2163
|
});
|
|
2164
|
-
var SQueryListWebsiteDocuments =
|
|
2164
|
+
var SQueryListWebsiteDocuments = v29__namespace.object({
|
|
2165
2165
|
documentId: IsValidReferenceDocumentId,
|
|
2166
2166
|
page: IsValidMinPage,
|
|
2167
|
-
size:
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2167
|
+
size: v29__namespace.fallback(
|
|
2168
|
+
v29__namespace.optional(
|
|
2169
|
+
v29__namespace.pipe(
|
|
2170
|
+
v29__namespace.number(),
|
|
2171
|
+
v29__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
2172
|
+
v29__namespace.maxValue(WEBSITE_PAGINATION_MAX_SIZE_LIMIT)
|
|
2173
2173
|
),
|
|
2174
2174
|
WEBSITE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2175
2175
|
),
|
|
2176
2176
|
WEBSITE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
2177
2177
|
)
|
|
2178
2178
|
});
|
|
2179
|
-
var SCreateWebsiteDocument =
|
|
2179
|
+
var SCreateWebsiteDocument = v29__namespace.object({
|
|
2180
2180
|
domain: IsValidUrlDomain,
|
|
2181
2181
|
description: IsValidOrUndefinedDescription,
|
|
2182
2182
|
is_secure: IsValidIsSecure,
|
|
2183
2183
|
is_active: IsValidIsActive
|
|
2184
2184
|
});
|
|
2185
|
-
var
|
|
2185
|
+
var SCreateMultipleWebsiteDocuments = v29__namespace.pipe(
|
|
2186
|
+
v29__namespace.array(SCreateWebsiteDocument),
|
|
2187
|
+
v29__namespace.minLength(1, "At least one website is required")
|
|
2188
|
+
);
|
|
2189
|
+
var SCreateWebsiteDocumentRequest = v29__namespace.object({
|
|
2186
2190
|
documentId: IsValidReferenceDocumentId,
|
|
2187
2191
|
data: SCreateWebsiteDocument
|
|
2188
2192
|
});
|
|
2189
|
-
var SReadWebsiteDocumentById =
|
|
2193
|
+
var SReadWebsiteDocumentById = v29__namespace.object({
|
|
2190
2194
|
id: IsValidReferenceId
|
|
2191
2195
|
});
|
|
2192
|
-
var SReadWebsiteDocumentByDocumentId =
|
|
2196
|
+
var SReadWebsiteDocumentByDocumentId = v29__namespace.object({
|
|
2193
2197
|
documentId: IsValidReferenceDocumentId
|
|
2194
2198
|
});
|
|
2195
|
-
var SUpdateAsCreatorWebsiteDocument =
|
|
2199
|
+
var SUpdateAsCreatorWebsiteDocument = v29__namespace.object({
|
|
2196
2200
|
domain: IsValidOrUndefinedUrlDomain,
|
|
2197
2201
|
description: IsValidOrUndefinedDescription,
|
|
2198
2202
|
is_secure: IsValidIsSecure,
|
|
2199
2203
|
is_active: IsValidIsActive
|
|
2200
2204
|
});
|
|
2201
|
-
var SUpdateAsCreatorWebsiteDocumentRequest =
|
|
2205
|
+
var SUpdateAsCreatorWebsiteDocumentRequest = v29__namespace.object({
|
|
2202
2206
|
documentId: IsValidReferenceDocumentId,
|
|
2203
2207
|
data: SUpdateAsCreatorWebsiteDocument
|
|
2204
2208
|
});
|
|
2205
|
-
var SUpdateAsInvitedWebsiteDocument =
|
|
2209
|
+
var SUpdateAsInvitedWebsiteDocument = v29__namespace.object({
|
|
2206
2210
|
description: IsValidOrUndefinedDescription
|
|
2207
2211
|
});
|
|
2208
|
-
var SUpdateAsInvitedWebsiteDocumentRequest =
|
|
2212
|
+
var SUpdateAsInvitedWebsiteDocumentRequest = v29__namespace.object({
|
|
2209
2213
|
documentId: IsValidReferenceDocumentId,
|
|
2210
2214
|
data: SUpdateAsInvitedWebsiteDocument
|
|
2211
2215
|
});
|
|
2212
|
-
var SUpdateWebsiteDocumentRequest =
|
|
2216
|
+
var SUpdateWebsiteDocumentRequest = v29__namespace.union([
|
|
2213
2217
|
SUpdateAsCreatorWebsiteDocument,
|
|
2214
2218
|
SUpdateAsInvitedWebsiteDocument
|
|
2215
2219
|
]);
|
|
2216
|
-
var SDeleteWebsiteDocument =
|
|
2220
|
+
var SDeleteWebsiteDocument = v29__namespace.object({
|
|
2217
2221
|
documentId: IsValidReferenceDocumentId
|
|
2218
2222
|
});
|
|
2219
|
-
var SGroupUserDocumentWithRelations =
|
|
2220
|
-
id:
|
|
2223
|
+
var SGroupUserDocumentWithRelations = v29__namespace.object({
|
|
2224
|
+
id: v29__namespace.number(),
|
|
2221
2225
|
documentId: IsValidReferenceDocumentId,
|
|
2222
|
-
publishedAt:
|
|
2223
|
-
createdAt:
|
|
2224
|
-
updatedAt:
|
|
2226
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2227
|
+
createdAt: v29__namespace.string(),
|
|
2228
|
+
updatedAt: v29__namespace.string(),
|
|
2225
2229
|
...SBaseGroupUserDocument.entries,
|
|
2226
2230
|
...SGroupUserRelationsDocument.entries
|
|
2227
2231
|
});
|
|
2228
|
-
var SGroupUserDocumentReqRelations =
|
|
2229
|
-
id:
|
|
2232
|
+
var SGroupUserDocumentReqRelations = v29__namespace.object({
|
|
2233
|
+
id: v29__namespace.number(),
|
|
2230
2234
|
documentId: IsValidReferenceDocumentId,
|
|
2231
|
-
publishedAt:
|
|
2232
|
-
createdAt:
|
|
2233
|
-
updatedAt:
|
|
2235
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2236
|
+
createdAt: v29__namespace.string(),
|
|
2237
|
+
updatedAt: v29__namespace.string(),
|
|
2234
2238
|
...SBaseGroupUserDocument.entries,
|
|
2235
2239
|
...SGroupUserRelationsReqDocument.entries
|
|
2236
2240
|
});
|
|
2237
|
-
var SGroupDocumentWithRelations =
|
|
2238
|
-
id:
|
|
2241
|
+
var SGroupDocumentWithRelations = v29__namespace.object({
|
|
2242
|
+
id: v29__namespace.number(),
|
|
2239
2243
|
documentId: IsValidReferenceDocumentId,
|
|
2240
|
-
publishedAt:
|
|
2241
|
-
createdAt:
|
|
2242
|
-
updatedAt:
|
|
2244
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2245
|
+
createdAt: v29__namespace.string(),
|
|
2246
|
+
updatedAt: v29__namespace.string(),
|
|
2243
2247
|
...SBaseGroupDocument.entries,
|
|
2244
2248
|
...SGroupRelationsDocument.entries
|
|
2245
2249
|
});
|
|
2246
|
-
var SRoleDocumentWithRelations =
|
|
2247
|
-
id:
|
|
2250
|
+
var SRoleDocumentWithRelations = v29__namespace.object({
|
|
2251
|
+
id: v29__namespace.number(),
|
|
2248
2252
|
documentId: IsValidReferenceDocumentId,
|
|
2249
|
-
publishedAt:
|
|
2250
|
-
createdAt:
|
|
2251
|
-
updatedAt:
|
|
2253
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2254
|
+
createdAt: v29__namespace.string(),
|
|
2255
|
+
updatedAt: v29__namespace.string(),
|
|
2252
2256
|
...SBaseRoleDocument.entries,
|
|
2253
2257
|
...SRoleRelationsDocument.entries
|
|
2254
2258
|
});
|
|
2255
|
-
var STrackingLinkDocumentWithRelations =
|
|
2256
|
-
id:
|
|
2259
|
+
var STrackingLinkDocumentWithRelations = v29__namespace.object({
|
|
2260
|
+
id: v29__namespace.number(),
|
|
2257
2261
|
documentId: IsValidReferenceDocumentId,
|
|
2258
|
-
publishedAt:
|
|
2259
|
-
createdAt:
|
|
2260
|
-
updatedAt:
|
|
2262
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2263
|
+
createdAt: v29__namespace.string(),
|
|
2264
|
+
updatedAt: v29__namespace.string(),
|
|
2261
2265
|
...SBaseTrackingLinkDocument.entries,
|
|
2262
2266
|
...STrackingLinkRelationsDocument.entries
|
|
2263
2267
|
});
|
|
2264
|
-
var SUserAccountDocumentWithRelations =
|
|
2265
|
-
id:
|
|
2268
|
+
var SUserAccountDocumentWithRelations = v29__namespace.object({
|
|
2269
|
+
id: v29__namespace.number(),
|
|
2266
2270
|
documentId: IsValidReferenceDocumentId,
|
|
2267
|
-
publishedAt:
|
|
2268
|
-
createdAt:
|
|
2269
|
-
updatedAt:
|
|
2271
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2272
|
+
createdAt: v29__namespace.string(),
|
|
2273
|
+
updatedAt: v29__namespace.string(),
|
|
2270
2274
|
...SBaseUserAccountDocument.entries,
|
|
2271
2275
|
...SUserAccountRelationsDocument.entries
|
|
2272
2276
|
});
|
|
2273
|
-
var SUserAccountDocumentReqRelations =
|
|
2274
|
-
id:
|
|
2277
|
+
var SUserAccountDocumentReqRelations = v29__namespace.object({
|
|
2278
|
+
id: v29__namespace.number(),
|
|
2275
2279
|
documentId: IsValidReferenceDocumentId,
|
|
2276
|
-
publishedAt:
|
|
2277
|
-
createdAt:
|
|
2278
|
-
updatedAt:
|
|
2280
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2281
|
+
createdAt: v29__namespace.string(),
|
|
2282
|
+
updatedAt: v29__namespace.string(),
|
|
2279
2283
|
...SBaseUserAccountDocument.entries,
|
|
2280
2284
|
...SUserAccountRelationsReqDocument.entries
|
|
2281
2285
|
});
|
|
2282
|
-
var SUserLimitationsDocumentWithRelations =
|
|
2283
|
-
id:
|
|
2286
|
+
var SUserLimitationsDocumentWithRelations = v29__namespace.object({
|
|
2287
|
+
id: v29__namespace.number(),
|
|
2284
2288
|
documentId: IsValidReferenceDocumentId,
|
|
2285
|
-
publishedAt:
|
|
2286
|
-
createdAt:
|
|
2287
|
-
updatedAt:
|
|
2289
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2290
|
+
createdAt: v29__namespace.string(),
|
|
2291
|
+
updatedAt: v29__namespace.string(),
|
|
2288
2292
|
...SBaseUserLimitationsDocument.entries,
|
|
2289
2293
|
...SUserLimitationsRelationsDocument.entries
|
|
2290
2294
|
});
|
|
2291
|
-
var SUserDocumentWithRelations =
|
|
2292
|
-
id:
|
|
2295
|
+
var SUserDocumentWithRelations = v29__namespace.object({
|
|
2296
|
+
id: v29__namespace.number(),
|
|
2293
2297
|
documentId: IsValidReferenceDocumentId,
|
|
2294
|
-
publishedAt:
|
|
2295
|
-
createdAt:
|
|
2296
|
-
updatedAt:
|
|
2298
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2299
|
+
createdAt: v29__namespace.string(),
|
|
2300
|
+
updatedAt: v29__namespace.string(),
|
|
2297
2301
|
...SBaseUserDocument.entries,
|
|
2298
2302
|
...SUserRelationsDocument.entries
|
|
2299
2303
|
});
|
|
2300
|
-
var SUserDocumentWithAccountRelations =
|
|
2301
|
-
id:
|
|
2304
|
+
var SUserDocumentWithAccountRelations = v29__namespace.object({
|
|
2305
|
+
id: v29__namespace.number(),
|
|
2302
2306
|
documentId: IsValidReferenceDocumentId,
|
|
2303
|
-
publishedAt:
|
|
2304
|
-
createdAt:
|
|
2305
|
-
updatedAt:
|
|
2307
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2308
|
+
createdAt: v29__namespace.string(),
|
|
2309
|
+
updatedAt: v29__namespace.string(),
|
|
2306
2310
|
...SBaseUserDocument.entries,
|
|
2307
2311
|
...SUserRelationReqAccount.entries
|
|
2308
2312
|
});
|
|
2309
|
-
var SUserDocumentWithAccountAndRoleRelations =
|
|
2310
|
-
id:
|
|
2313
|
+
var SUserDocumentWithAccountAndRoleRelations = v29__namespace.object({
|
|
2314
|
+
id: v29__namespace.number(),
|
|
2311
2315
|
documentId: IsValidReferenceDocumentId,
|
|
2312
|
-
publishedAt:
|
|
2313
|
-
createdAt:
|
|
2314
|
-
updatedAt:
|
|
2316
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2317
|
+
createdAt: v29__namespace.string(),
|
|
2318
|
+
updatedAt: v29__namespace.string(),
|
|
2315
2319
|
...SBaseUserDocument.entries,
|
|
2316
2320
|
...SUserRelationReqRole.entries,
|
|
2317
2321
|
...SUserRelationReqAccount.entries
|
|
2318
2322
|
});
|
|
2319
|
-
var SUserAuthorizationSuccessResponse =
|
|
2320
|
-
jwt:
|
|
2323
|
+
var SUserAuthorizationSuccessResponse = v29__namespace.object({
|
|
2324
|
+
jwt: v29__namespace.string(),
|
|
2321
2325
|
user: SUserDocumentWithAccountAndRoleRelations
|
|
2322
2326
|
});
|
|
2323
|
-
var SCampaignIdDocumentWithRelations =
|
|
2324
|
-
id:
|
|
2327
|
+
var SCampaignIdDocumentWithRelations = v29__namespace.object({
|
|
2328
|
+
id: v29__namespace.number(),
|
|
2325
2329
|
documentId: IsValidReferenceDocumentId,
|
|
2326
|
-
publishedAt:
|
|
2327
|
-
createdAt:
|
|
2328
|
-
updatedAt:
|
|
2330
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2331
|
+
createdAt: v29__namespace.string(),
|
|
2332
|
+
updatedAt: v29__namespace.string(),
|
|
2329
2333
|
SBaseCampaignIdDocument,
|
|
2330
2334
|
SCampaignIdRelationsDocument
|
|
2331
2335
|
});
|
|
2332
|
-
var SCampaignKeyDocumentWithRelations =
|
|
2333
|
-
id:
|
|
2336
|
+
var SCampaignKeyDocumentWithRelations = v29__namespace.object({
|
|
2337
|
+
id: v29__namespace.number(),
|
|
2334
2338
|
documentId: IsValidReferenceDocumentId,
|
|
2335
|
-
publishedAt:
|
|
2336
|
-
createdAt:
|
|
2337
|
-
updatedAt:
|
|
2339
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2340
|
+
createdAt: v29__namespace.string(),
|
|
2341
|
+
updatedAt: v29__namespace.string(),
|
|
2338
2342
|
SBaseCampaignKeyDocument,
|
|
2339
2343
|
SCampaignKeyRelationsDocument
|
|
2340
2344
|
});
|
|
2341
|
-
var SCampaignPhaseDocumentWithRelations =
|
|
2342
|
-
id:
|
|
2345
|
+
var SCampaignPhaseDocumentWithRelations = v29__namespace.object({
|
|
2346
|
+
id: v29__namespace.number(),
|
|
2343
2347
|
documentId: IsValidReferenceDocumentId,
|
|
2344
|
-
publishedAt:
|
|
2345
|
-
createdAt:
|
|
2346
|
-
updatedAt:
|
|
2348
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2349
|
+
createdAt: v29__namespace.string(),
|
|
2350
|
+
updatedAt: v29__namespace.string(),
|
|
2347
2351
|
SBaseCampaignPhaseDocument,
|
|
2348
2352
|
SCampaignPhaseRelationsDocument
|
|
2349
2353
|
});
|
|
2350
|
-
var SCampaignProductDocumentWithRelations =
|
|
2351
|
-
id:
|
|
2354
|
+
var SCampaignProductDocumentWithRelations = v29__namespace.object({
|
|
2355
|
+
id: v29__namespace.number(),
|
|
2352
2356
|
documentId: IsValidReferenceDocumentId,
|
|
2353
|
-
publishedAt:
|
|
2354
|
-
createdAt:
|
|
2355
|
-
updatedAt:
|
|
2357
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2358
|
+
createdAt: v29__namespace.string(),
|
|
2359
|
+
updatedAt: v29__namespace.string(),
|
|
2356
2360
|
SBaseCampaignProductDocument,
|
|
2357
2361
|
SCampaignProductRelationsDocument
|
|
2358
2362
|
});
|
|
2359
|
-
var SSourceDocumentWithRelations =
|
|
2360
|
-
id:
|
|
2363
|
+
var SSourceDocumentWithRelations = v29__namespace.object({
|
|
2364
|
+
id: v29__namespace.number(),
|
|
2361
2365
|
documentId: IsValidReferenceDocumentId,
|
|
2362
|
-
publishedAt:
|
|
2363
|
-
createdAt:
|
|
2364
|
-
updatedAt:
|
|
2366
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2367
|
+
createdAt: v29__namespace.string(),
|
|
2368
|
+
updatedAt: v29__namespace.string(),
|
|
2365
2369
|
SBaseSourceDocument,
|
|
2366
2370
|
SSourceRelationsDocument
|
|
2367
2371
|
});
|
|
2368
|
-
var SMediumDocumentWithRelations =
|
|
2369
|
-
id:
|
|
2372
|
+
var SMediumDocumentWithRelations = v29__namespace.object({
|
|
2373
|
+
id: v29__namespace.number(),
|
|
2370
2374
|
documentId: IsValidReferenceDocumentId,
|
|
2371
|
-
publishedAt:
|
|
2372
|
-
createdAt:
|
|
2373
|
-
updatedAt:
|
|
2375
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2376
|
+
createdAt: v29__namespace.string(),
|
|
2377
|
+
updatedAt: v29__namespace.string(),
|
|
2374
2378
|
SBaseMediumDocument,
|
|
2375
2379
|
SMediumRelationsDocument
|
|
2376
2380
|
});
|
|
2377
|
-
var SContentDocumentWithRelations =
|
|
2378
|
-
id:
|
|
2381
|
+
var SContentDocumentWithRelations = v29__namespace.object({
|
|
2382
|
+
id: v29__namespace.number(),
|
|
2379
2383
|
documentId: IsValidReferenceDocumentId,
|
|
2380
|
-
publishedAt:
|
|
2381
|
-
createdAt:
|
|
2382
|
-
updatedAt:
|
|
2384
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2385
|
+
createdAt: v29__namespace.string(),
|
|
2386
|
+
updatedAt: v29__namespace.string(),
|
|
2383
2387
|
SBaseContentDocument,
|
|
2384
2388
|
SContentRelationsDocument
|
|
2385
2389
|
});
|
|
2386
|
-
var SCreativeFormatDocumentWithRelations =
|
|
2387
|
-
id:
|
|
2390
|
+
var SCreativeFormatDocumentWithRelations = v29__namespace.object({
|
|
2391
|
+
id: v29__namespace.number(),
|
|
2388
2392
|
documentId: IsValidReferenceDocumentId,
|
|
2389
|
-
publishedAt:
|
|
2390
|
-
createdAt:
|
|
2391
|
-
updatedAt:
|
|
2393
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2394
|
+
createdAt: v29__namespace.string(),
|
|
2395
|
+
updatedAt: v29__namespace.string(),
|
|
2392
2396
|
SBaseCreativeFormatDocument,
|
|
2393
2397
|
SCreativeFormatRelationsDocument
|
|
2394
2398
|
});
|
|
2395
|
-
var SCreativeFormatVariantDocumentWithRelations =
|
|
2396
|
-
id:
|
|
2399
|
+
var SCreativeFormatVariantDocumentWithRelations = v29__namespace.object({
|
|
2400
|
+
id: v29__namespace.number(),
|
|
2397
2401
|
documentId: IsValidReferenceDocumentId,
|
|
2398
|
-
publishedAt:
|
|
2399
|
-
createdAt:
|
|
2400
|
-
updatedAt:
|
|
2402
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2403
|
+
createdAt: v29__namespace.string(),
|
|
2404
|
+
updatedAt: v29__namespace.string(),
|
|
2401
2405
|
SBaseCreativeFormatVariantDocument,
|
|
2402
2406
|
SCreativeFormatVariantRelationsDocument
|
|
2403
2407
|
});
|
|
2404
|
-
var STermDocumentWithRelations =
|
|
2405
|
-
id:
|
|
2408
|
+
var STermDocumentWithRelations = v29__namespace.object({
|
|
2409
|
+
id: v29__namespace.number(),
|
|
2406
2410
|
documentId: IsValidReferenceDocumentId,
|
|
2407
|
-
publishedAt:
|
|
2408
|
-
createdAt:
|
|
2409
|
-
updatedAt:
|
|
2411
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2412
|
+
createdAt: v29__namespace.string(),
|
|
2413
|
+
updatedAt: v29__namespace.string(),
|
|
2410
2414
|
SBaseTermDocument,
|
|
2411
2415
|
STermRelationsDocument
|
|
2412
2416
|
});
|
|
2413
|
-
var SWebsiteDocumentWithRelations =
|
|
2414
|
-
id:
|
|
2417
|
+
var SWebsiteDocumentWithRelations = v29__namespace.object({
|
|
2418
|
+
id: v29__namespace.number(),
|
|
2415
2419
|
documentId: IsValidReferenceDocumentId,
|
|
2416
|
-
publishedAt:
|
|
2417
|
-
createdAt:
|
|
2418
|
-
updatedAt:
|
|
2420
|
+
publishedAt: v29__namespace.optional(v29__namespace.string()),
|
|
2421
|
+
createdAt: v29__namespace.string(),
|
|
2422
|
+
updatedAt: v29__namespace.string(),
|
|
2419
2423
|
...SBaseWebsiteDocument.entries,
|
|
2420
2424
|
...SWebsiteRelationsDocument.entries
|
|
2421
2425
|
});
|
|
2422
2426
|
|
|
2427
|
+
// src/templates/utm-parameter.defaults.ts
|
|
2428
|
+
var default_sources = {
|
|
2429
|
+
meta: {
|
|
2430
|
+
label: "Meta (FB/IG)",
|
|
2431
|
+
value: "meta",
|
|
2432
|
+
description: "Content published to all Meta platforms: Facebook, Instagram",
|
|
2433
|
+
is_active: true
|
|
2434
|
+
},
|
|
2435
|
+
facebook: {
|
|
2436
|
+
label: "Facebook",
|
|
2437
|
+
value: "meta_facebook",
|
|
2438
|
+
description: "Content published exclusively on Facebook",
|
|
2439
|
+
is_active: true
|
|
2440
|
+
},
|
|
2441
|
+
instagram: {
|
|
2442
|
+
label: "Instagram",
|
|
2443
|
+
value: "meta_instagram",
|
|
2444
|
+
description: "Content published exclusively on Instagram",
|
|
2445
|
+
is_active: true
|
|
2446
|
+
},
|
|
2447
|
+
tiktok: {
|
|
2448
|
+
label: "TikTok",
|
|
2449
|
+
value: "tiktok",
|
|
2450
|
+
description: "Content published exclusively on TikTok",
|
|
2451
|
+
is_active: true
|
|
2452
|
+
},
|
|
2453
|
+
twitter: {
|
|
2454
|
+
label: "X/Twitter",
|
|
2455
|
+
value: "twitter",
|
|
2456
|
+
description: "Content for X.com formerly known as Twitter",
|
|
2457
|
+
is_active: true
|
|
2458
|
+
},
|
|
2459
|
+
xcom: {
|
|
2460
|
+
label: "X.com",
|
|
2461
|
+
value: "x_twitter",
|
|
2462
|
+
description: "Content published exclusively on X.com",
|
|
2463
|
+
is_active: true
|
|
2464
|
+
},
|
|
2465
|
+
linkedin: {
|
|
2466
|
+
label: "LinkedIn",
|
|
2467
|
+
value: "linkedin",
|
|
2468
|
+
description: "Content published exclusively on LinkedIn",
|
|
2469
|
+
is_active: true
|
|
2470
|
+
},
|
|
2471
|
+
pinterest: {
|
|
2472
|
+
label: "Pinterest",
|
|
2473
|
+
value: "pinterest",
|
|
2474
|
+
description: "Content published exclusively on Pinterest",
|
|
2475
|
+
is_active: true
|
|
2476
|
+
},
|
|
2477
|
+
youtube: {
|
|
2478
|
+
label: "YouTube",
|
|
2479
|
+
value: "youtube",
|
|
2480
|
+
description: "Content published exclusively on YouTube",
|
|
2481
|
+
is_active: true
|
|
2482
|
+
},
|
|
2483
|
+
sms: {
|
|
2484
|
+
label: "Text Message (SMS)",
|
|
2485
|
+
value: "sms",
|
|
2486
|
+
description: "Content published exclusively via Text Message (SMS)",
|
|
2487
|
+
is_active: true
|
|
2488
|
+
},
|
|
2489
|
+
email: {
|
|
2490
|
+
label: "Email",
|
|
2491
|
+
value: "email",
|
|
2492
|
+
description: "Content published exclusively via Email",
|
|
2493
|
+
is_active: true
|
|
2494
|
+
},
|
|
2495
|
+
google: {
|
|
2496
|
+
label: "Google Ads",
|
|
2497
|
+
value: "google",
|
|
2498
|
+
description: "Content published exclusively via Google Ads",
|
|
2499
|
+
is_active: true
|
|
2500
|
+
},
|
|
2501
|
+
realtorcom: {
|
|
2502
|
+
label: "Realtor.com",
|
|
2503
|
+
value: "rdc",
|
|
2504
|
+
description: "Content published exclusively on Realtor.com (RDC)",
|
|
2505
|
+
is_active: true
|
|
2506
|
+
},
|
|
2507
|
+
zillow: {
|
|
2508
|
+
label: "Zillow",
|
|
2509
|
+
value: "zillow",
|
|
2510
|
+
description: "Content published exclusively on Zillow",
|
|
2511
|
+
is_active: true
|
|
2512
|
+
},
|
|
2513
|
+
bdx_nhs: {
|
|
2514
|
+
label: "New Home Source (Zonda)",
|
|
2515
|
+
value: "bdx_nhs",
|
|
2516
|
+
description: "Content published exclusively on New Home Source",
|
|
2517
|
+
is_active: true
|
|
2518
|
+
},
|
|
2519
|
+
yelp: {
|
|
2520
|
+
label: "Yelp",
|
|
2521
|
+
value: "yelp",
|
|
2522
|
+
description: "Content published exclusively on Yelp",
|
|
2523
|
+
is_active: true
|
|
2524
|
+
},
|
|
2525
|
+
qr_code: {
|
|
2526
|
+
label: "QR Code",
|
|
2527
|
+
value: "qr_code",
|
|
2528
|
+
description: "Content published exclusively via a QR Code",
|
|
2529
|
+
is_active: true
|
|
2530
|
+
},
|
|
2531
|
+
stackadapt: {
|
|
2532
|
+
label: "StackAdapt",
|
|
2533
|
+
value: "stackadapt",
|
|
2534
|
+
description: "Content published exclusively via StackAdapt",
|
|
2535
|
+
is_active: true
|
|
2536
|
+
},
|
|
2537
|
+
newswire: {
|
|
2538
|
+
label: "Newswire",
|
|
2539
|
+
value: "newswire",
|
|
2540
|
+
description: "Content published exclusively via Newswire",
|
|
2541
|
+
is_active: true
|
|
2542
|
+
},
|
|
2543
|
+
mobile_app: {
|
|
2544
|
+
label: "Mobile App",
|
|
2545
|
+
value: "mobile_app",
|
|
2546
|
+
description: "Content published exclusively via a Mobile App",
|
|
2547
|
+
is_active: true
|
|
2548
|
+
},
|
|
2549
|
+
referral: {
|
|
2550
|
+
label: "Referral",
|
|
2551
|
+
value: "referral",
|
|
2552
|
+
description: "Content published exclusively via a Referral source",
|
|
2553
|
+
is_active: true
|
|
2554
|
+
}
|
|
2555
|
+
};
|
|
2556
|
+
var default_mediums = {
|
|
2557
|
+
social: {
|
|
2558
|
+
label: "Organic Social",
|
|
2559
|
+
value: "social",
|
|
2560
|
+
description: "Organic social posts across all platforms",
|
|
2561
|
+
is_active: true
|
|
2562
|
+
},
|
|
2563
|
+
paid_social: {
|
|
2564
|
+
label: "Paid Social",
|
|
2565
|
+
value: "paid_social",
|
|
2566
|
+
description: "Any paid media on social platforms",
|
|
2567
|
+
is_active: true
|
|
2568
|
+
},
|
|
2569
|
+
paid_search: {
|
|
2570
|
+
label: "Paid Search",
|
|
2571
|
+
value: "paid_search",
|
|
2572
|
+
description: "Reserved for text-based ads on search platforms (google, bing, etc)",
|
|
2573
|
+
is_active: true
|
|
2574
|
+
},
|
|
2575
|
+
paid_display: {
|
|
2576
|
+
label: "Paid Display",
|
|
2577
|
+
value: "paid_display",
|
|
2578
|
+
description: "Any image-based ads through a paid media buying platform (excluding social)",
|
|
2579
|
+
is_active: true
|
|
2580
|
+
},
|
|
2581
|
+
paid_video: {
|
|
2582
|
+
label: "Paid Video",
|
|
2583
|
+
value: "paid_video",
|
|
2584
|
+
description: "Any video-based ads through a paid media buying platform (excluding social)",
|
|
2585
|
+
is_active: true
|
|
2586
|
+
},
|
|
2587
|
+
paid_listing: {
|
|
2588
|
+
label: "Paid Listing",
|
|
2589
|
+
value: "paid_listing",
|
|
2590
|
+
description: "Paid product listing on a ad/partner/affiliated website",
|
|
2591
|
+
is_active: true
|
|
2592
|
+
},
|
|
2593
|
+
paid: {
|
|
2594
|
+
label: "Paid",
|
|
2595
|
+
value: "paid",
|
|
2596
|
+
description: "Reserved for any other paid promotions that do not fit into the other categories",
|
|
2597
|
+
is_active: true
|
|
2598
|
+
},
|
|
2599
|
+
blast: {
|
|
2600
|
+
label: "Blast",
|
|
2601
|
+
value: "blast",
|
|
2602
|
+
description: "Used when sending a piece of content through an OWNED media source (such as email or text) to an entire group of people all at once",
|
|
2603
|
+
is_active: true
|
|
2604
|
+
},
|
|
2605
|
+
paid_blast: {
|
|
2606
|
+
label: "Paid Blast",
|
|
2607
|
+
value: "paid_blast",
|
|
2608
|
+
description: "Used when sending a piece of content through a PAID media source (such as paid email lists or third-party text referral) to an entire group of people all at once",
|
|
2609
|
+
is_active: true
|
|
2610
|
+
},
|
|
2611
|
+
flow: {
|
|
2612
|
+
label: "Flow",
|
|
2613
|
+
value: "flow",
|
|
2614
|
+
description: "Used when sending a piece of content through an OWNED media source (such as email or text) to a single user as a part of a multi-touch drip campaign",
|
|
2615
|
+
is_active: true
|
|
2616
|
+
},
|
|
2617
|
+
signage: {
|
|
2618
|
+
label: "Signage",
|
|
2619
|
+
value: "signage",
|
|
2620
|
+
description: "Used when a user scans a QR code off of a sign, can add others here if we use QR codes on other content.",
|
|
2621
|
+
is_active: true
|
|
2622
|
+
},
|
|
2623
|
+
content: {
|
|
2624
|
+
label: "Content",
|
|
2625
|
+
value: "content",
|
|
2626
|
+
description: "Used for generic content mediums other than the mediums listed",
|
|
2627
|
+
is_active: true
|
|
2628
|
+
},
|
|
2629
|
+
paid_ctv: {
|
|
2630
|
+
label: "Connected TV",
|
|
2631
|
+
value: "paid_ctv",
|
|
2632
|
+
description: "Used for paid ads on TV, Streaming Providers or other Connected TV sources",
|
|
2633
|
+
is_active: true
|
|
2634
|
+
},
|
|
2635
|
+
popup: {
|
|
2636
|
+
label: "Popup",
|
|
2637
|
+
value: "popup",
|
|
2638
|
+
description: "Used only for popup content embedded on a website (owned or third party)",
|
|
2639
|
+
is_active: true
|
|
2640
|
+
},
|
|
2641
|
+
press_release: {
|
|
2642
|
+
label: "Press Release",
|
|
2643
|
+
value: "press_release",
|
|
2644
|
+
description: "Used for content related to a press release",
|
|
2645
|
+
is_active: true
|
|
2646
|
+
}
|
|
2647
|
+
};
|
|
2648
|
+
var default_campaign_phases = {
|
|
2649
|
+
brand: {
|
|
2650
|
+
label: "Brand",
|
|
2651
|
+
value: "brand",
|
|
2652
|
+
description: "Company branded content",
|
|
2653
|
+
is_active: true
|
|
2654
|
+
},
|
|
2655
|
+
p1: {
|
|
2656
|
+
label: "Phase 1",
|
|
2657
|
+
value: "p1",
|
|
2658
|
+
description: "Interest list building",
|
|
2659
|
+
is_active: true
|
|
2660
|
+
},
|
|
2661
|
+
p2: {
|
|
2662
|
+
label: "Phase 2",
|
|
2663
|
+
value: "p2",
|
|
2664
|
+
description: "Pre-qual/pre-sale",
|
|
2665
|
+
is_active: true
|
|
2666
|
+
},
|
|
2667
|
+
p3: {
|
|
2668
|
+
label: "Phase 3",
|
|
2669
|
+
value: "p3",
|
|
2670
|
+
description: "Grand opening/now available",
|
|
2671
|
+
is_active: true
|
|
2672
|
+
},
|
|
2673
|
+
p4: {
|
|
2674
|
+
label: "Phase 4",
|
|
2675
|
+
value: "p4",
|
|
2676
|
+
description: "For sale/maintenance period",
|
|
2677
|
+
is_active: true
|
|
2678
|
+
},
|
|
2679
|
+
p5: {
|
|
2680
|
+
label: "Phase 5",
|
|
2681
|
+
value: "p5",
|
|
2682
|
+
description: "Final sale",
|
|
2683
|
+
is_active: true
|
|
2684
|
+
}
|
|
2685
|
+
};
|
|
2686
|
+
var default_contents = {
|
|
2687
|
+
testimonial: {
|
|
2688
|
+
label: "Testimonial",
|
|
2689
|
+
value: "testimonial",
|
|
2690
|
+
description: "Buyer telling story about their purchase experience",
|
|
2691
|
+
is_active: true
|
|
2692
|
+
},
|
|
2693
|
+
agent: {
|
|
2694
|
+
label: "Agent",
|
|
2695
|
+
value: "agent",
|
|
2696
|
+
description: "Salespeople on camera marketing their neighborhood",
|
|
2697
|
+
is_active: true
|
|
2698
|
+
},
|
|
2699
|
+
education: {
|
|
2700
|
+
label: "Education",
|
|
2701
|
+
value: "education",
|
|
2702
|
+
description: "Content that is to educate buyers on any variety of home buying process",
|
|
2703
|
+
is_active: true
|
|
2704
|
+
},
|
|
2705
|
+
charity: {
|
|
2706
|
+
label: "Charity",
|
|
2707
|
+
value: "charity",
|
|
2708
|
+
description: "Content related to any charitable efforts on behalf of builder",
|
|
2709
|
+
is_active: true
|
|
2710
|
+
},
|
|
2711
|
+
recruitment: {
|
|
2712
|
+
label: "Recruitment",
|
|
2713
|
+
value: "recruitment",
|
|
2714
|
+
description: "Content showcasing staff and culture to recruit future employees",
|
|
2715
|
+
is_active: true
|
|
2716
|
+
},
|
|
2717
|
+
lifestyle: {
|
|
2718
|
+
label: "Lifestyle",
|
|
2719
|
+
value: "lifestyle",
|
|
2720
|
+
description: "Content about the surrounding area and what it\u2019s like to live in a place",
|
|
2721
|
+
is_active: true
|
|
2722
|
+
},
|
|
2723
|
+
milestone: {
|
|
2724
|
+
label: "Milestone",
|
|
2725
|
+
value: "milestone",
|
|
2726
|
+
description: "Benchmarks in the building process and life of a community",
|
|
2727
|
+
is_active: true
|
|
2728
|
+
},
|
|
2729
|
+
trends: {
|
|
2730
|
+
label: "Trends",
|
|
2731
|
+
value: "trends",
|
|
2732
|
+
description: "Content that is trending on social media",
|
|
2733
|
+
is_active: true
|
|
2734
|
+
},
|
|
2735
|
+
brand: {
|
|
2736
|
+
label: "Brand",
|
|
2737
|
+
value: "brand",
|
|
2738
|
+
description: "Content focused on client culture and mission and who they are",
|
|
2739
|
+
is_active: true
|
|
2740
|
+
},
|
|
2741
|
+
events: {
|
|
2742
|
+
label: "Events",
|
|
2743
|
+
value: "events",
|
|
2744
|
+
description: "Content about events like grand openings, phase releases, tours, parties, etc",
|
|
2745
|
+
is_active: true
|
|
2746
|
+
},
|
|
2747
|
+
personalization: {
|
|
2748
|
+
label: "Personalization",
|
|
2749
|
+
value: "personalization",
|
|
2750
|
+
description: "For personalized content",
|
|
2751
|
+
is_active: true
|
|
2752
|
+
},
|
|
2753
|
+
tour_guide: {
|
|
2754
|
+
label: "Tour Guide",
|
|
2755
|
+
value: "tour_guide",
|
|
2756
|
+
description: "Used for content that promotes touring a physical space",
|
|
2757
|
+
is_active: true
|
|
2758
|
+
},
|
|
2759
|
+
product: {
|
|
2760
|
+
label: "Product",
|
|
2761
|
+
value: "product",
|
|
2762
|
+
description: "Any content specifically about a product or sale item",
|
|
2763
|
+
is_active: true
|
|
2764
|
+
},
|
|
2765
|
+
recipes: {
|
|
2766
|
+
label: "Recipes",
|
|
2767
|
+
value: "recipes",
|
|
2768
|
+
description: "Content featuring recipes and cooking tips",
|
|
2769
|
+
is_active: true
|
|
2770
|
+
},
|
|
2771
|
+
holiday: {
|
|
2772
|
+
label: "Holiday",
|
|
2773
|
+
value: "holiday",
|
|
2774
|
+
description: "Content about national holidays",
|
|
2775
|
+
is_active: true
|
|
2776
|
+
},
|
|
2777
|
+
culture: {
|
|
2778
|
+
label: "Culture",
|
|
2779
|
+
value: "culture",
|
|
2780
|
+
description: "Content about our team, things we do, how we work together, our values",
|
|
2781
|
+
is_active: true
|
|
2782
|
+
},
|
|
2783
|
+
our_work: {
|
|
2784
|
+
label: "Our Work",
|
|
2785
|
+
value: "our_work",
|
|
2786
|
+
description: "Content about the work we do for our clients or ourselves, our thought process",
|
|
2787
|
+
is_active: true
|
|
2788
|
+
},
|
|
2789
|
+
other: {
|
|
2790
|
+
label: "Other",
|
|
2791
|
+
value: "other",
|
|
2792
|
+
description: "For other content not defined in by a specific content pillar",
|
|
2793
|
+
is_active: true
|
|
2794
|
+
}
|
|
2795
|
+
};
|
|
2796
|
+
var default_creative_formats = {
|
|
2797
|
+
post: {
|
|
2798
|
+
label: "Post",
|
|
2799
|
+
value: "post",
|
|
2800
|
+
description: "organic content post",
|
|
2801
|
+
is_active: true
|
|
2802
|
+
},
|
|
2803
|
+
content: {
|
|
2804
|
+
label: "Content",
|
|
2805
|
+
value: "content",
|
|
2806
|
+
description: "organic content or other content (not social post)",
|
|
2807
|
+
is_active: true
|
|
2808
|
+
},
|
|
2809
|
+
reel: {
|
|
2810
|
+
label: "Reel",
|
|
2811
|
+
value: "reel",
|
|
2812
|
+
description: "organic content for video reels",
|
|
2813
|
+
is_active: true
|
|
2814
|
+
},
|
|
2815
|
+
reel_ad: {
|
|
2816
|
+
label: "Reel Ad",
|
|
2817
|
+
value: "reel_ad",
|
|
2818
|
+
description: "paid media for video reel ads",
|
|
2819
|
+
is_active: true
|
|
2820
|
+
},
|
|
2821
|
+
story_content: {
|
|
2822
|
+
label: "Story",
|
|
2823
|
+
value: "story_content",
|
|
2824
|
+
description: "Ephemeral story content",
|
|
2825
|
+
is_active: true
|
|
2826
|
+
},
|
|
2827
|
+
story_ad: {
|
|
2828
|
+
label: "Story Ad",
|
|
2829
|
+
value: "story_ad",
|
|
2830
|
+
description: "Paid ephemeral story content",
|
|
2831
|
+
is_active: true
|
|
2832
|
+
},
|
|
2833
|
+
listing: {
|
|
2834
|
+
label: "Listing",
|
|
2835
|
+
value: "listing",
|
|
2836
|
+
description: "ad listing that blends into organic listings",
|
|
2837
|
+
is_active: true
|
|
2838
|
+
},
|
|
2839
|
+
native: {
|
|
2840
|
+
label: "Native Ad",
|
|
2841
|
+
value: "native",
|
|
2842
|
+
description: "Content that blends in with the native content on an affiliate website",
|
|
2843
|
+
is_active: true
|
|
2844
|
+
},
|
|
2845
|
+
traffic: {
|
|
2846
|
+
label: "Traffic",
|
|
2847
|
+
value: "traffic_ad",
|
|
2848
|
+
description: "For Ads designed to drive traffic to a specific destination",
|
|
2849
|
+
is_active: true
|
|
2850
|
+
},
|
|
2851
|
+
darkpost: {
|
|
2852
|
+
label: "Dark Post",
|
|
2853
|
+
value: "darkpost",
|
|
2854
|
+
description: "For Meta DarkPosts",
|
|
2855
|
+
is_active: true
|
|
2856
|
+
},
|
|
2857
|
+
boost: {
|
|
2858
|
+
label: "Boost",
|
|
2859
|
+
value: "boost",
|
|
2860
|
+
description: "For boosted content on social",
|
|
2861
|
+
is_active: true
|
|
2862
|
+
},
|
|
2863
|
+
collection: {
|
|
2864
|
+
label: "Collection Ad",
|
|
2865
|
+
value: "collection",
|
|
2866
|
+
description: "For Meta Collection Ads",
|
|
2867
|
+
is_active: true
|
|
2868
|
+
},
|
|
2869
|
+
conversion: {
|
|
2870
|
+
label: "Conversion Ad",
|
|
2871
|
+
value: "conversion",
|
|
2872
|
+
description: "For Meta Conversion Ads",
|
|
2873
|
+
is_active: true
|
|
2874
|
+
},
|
|
2875
|
+
lead_ad: {
|
|
2876
|
+
label: "Lead Ad",
|
|
2877
|
+
value: "lead_ad",
|
|
2878
|
+
description: "For Meta Lead Ads",
|
|
2879
|
+
is_active: true
|
|
2880
|
+
},
|
|
2881
|
+
internal: {
|
|
2882
|
+
label: "Internal",
|
|
2883
|
+
value: "internal",
|
|
2884
|
+
description: "Emails sent via an Internal CRM",
|
|
2885
|
+
is_active: true
|
|
2886
|
+
},
|
|
2887
|
+
retargeting: {
|
|
2888
|
+
label: "Retargeting",
|
|
2889
|
+
value: "retargeting",
|
|
2890
|
+
description: "Ad retargeted to a different audience than the original content",
|
|
2891
|
+
is_active: true
|
|
2892
|
+
},
|
|
2893
|
+
profile: {
|
|
2894
|
+
label: "Profile",
|
|
2895
|
+
value: "profile",
|
|
2896
|
+
description: "For links that are used on platform profile pages or SmartBio like profile referral sources",
|
|
2897
|
+
is_active: true
|
|
2898
|
+
},
|
|
2899
|
+
sitelink: {
|
|
2900
|
+
label: "Site Link",
|
|
2901
|
+
value: "sitelink",
|
|
2902
|
+
description: "For the additional links provided in a Google Search Ad.",
|
|
2903
|
+
is_active: true
|
|
2904
|
+
},
|
|
2905
|
+
sponsored_ad: {
|
|
2906
|
+
label: "Sponsored Ad",
|
|
2907
|
+
value: "sponsored_ad",
|
|
2908
|
+
description: "For LinkedIn Sponsored Ad posts.",
|
|
2909
|
+
is_active: true
|
|
2910
|
+
}
|
|
2911
|
+
};
|
|
2912
|
+
var default_creative_format_variants = {
|
|
2913
|
+
short_form: {
|
|
2914
|
+
label: "Short Form Video",
|
|
2915
|
+
value: "short_form",
|
|
2916
|
+
description: "Short form video content",
|
|
2917
|
+
is_active: true
|
|
2918
|
+
},
|
|
2919
|
+
long_form: {
|
|
2920
|
+
label: "Long Form Video",
|
|
2921
|
+
value: "long_form",
|
|
2922
|
+
description: "Long form video content",
|
|
2923
|
+
is_active: true
|
|
2924
|
+
},
|
|
2925
|
+
image: {
|
|
2926
|
+
label: "Image",
|
|
2927
|
+
value: "image",
|
|
2928
|
+
description: "Content that rely on photography to convey a message",
|
|
2929
|
+
is_active: true
|
|
2930
|
+
},
|
|
2931
|
+
gif: {
|
|
2932
|
+
label: "GIF",
|
|
2933
|
+
value: "gif",
|
|
2934
|
+
description: "Content using an animated GIF",
|
|
2935
|
+
is_active: true
|
|
2936
|
+
},
|
|
2937
|
+
text: {
|
|
2938
|
+
label: "Text",
|
|
2939
|
+
value: "text",
|
|
2940
|
+
description: "Content that rely on typography/text to convey a message",
|
|
2941
|
+
is_active: true
|
|
2942
|
+
},
|
|
2943
|
+
carousel: {
|
|
2944
|
+
label: "Carousel",
|
|
2945
|
+
value: "carousel",
|
|
2946
|
+
description: "Content in a carousel or slideshow format",
|
|
2947
|
+
is_active: true
|
|
2948
|
+
},
|
|
2949
|
+
people: {
|
|
2950
|
+
label: "People",
|
|
2951
|
+
value: "people",
|
|
2952
|
+
description: "Content that uses humans/actors to convey a message",
|
|
2953
|
+
is_active: true
|
|
2954
|
+
},
|
|
2955
|
+
faceless: {
|
|
2956
|
+
label: "Faceless (No People)",
|
|
2957
|
+
value: "faceless",
|
|
2958
|
+
description: "Content with no people/human faces depicted",
|
|
2959
|
+
is_active: true
|
|
2960
|
+
},
|
|
2961
|
+
popup: {
|
|
2962
|
+
label: "Pop Up",
|
|
2963
|
+
value: "popup",
|
|
2964
|
+
description: "Website pop up content",
|
|
2965
|
+
is_active: true
|
|
2966
|
+
},
|
|
2967
|
+
banner: {
|
|
2968
|
+
label: "Banner",
|
|
2969
|
+
value: "banner",
|
|
2970
|
+
description: "Banner content on a website",
|
|
2971
|
+
is_active: true
|
|
2972
|
+
},
|
|
2973
|
+
broker: {
|
|
2974
|
+
label: "Broker",
|
|
2975
|
+
value: "broker",
|
|
2976
|
+
description: "Content created for brokers",
|
|
2977
|
+
is_active: true
|
|
2978
|
+
},
|
|
2979
|
+
consumer: {
|
|
2980
|
+
label: "Consumer",
|
|
2981
|
+
value: "consumer",
|
|
2982
|
+
description: "Content created for consumers",
|
|
2983
|
+
is_active: true
|
|
2984
|
+
},
|
|
2985
|
+
redrop: {
|
|
2986
|
+
label: "Redrop",
|
|
2987
|
+
value: "redrop",
|
|
2988
|
+
description: "Content that is re-dropped to the same audience",
|
|
2989
|
+
is_active: true
|
|
2990
|
+
},
|
|
2991
|
+
variant_a: {
|
|
2992
|
+
label: "Variant A",
|
|
2993
|
+
value: "variant_a",
|
|
2994
|
+
description: "Used for a/b testing and/or ad variant names.",
|
|
2995
|
+
is_active: true
|
|
2996
|
+
},
|
|
2997
|
+
variant_b: {
|
|
2998
|
+
label: "Variant B",
|
|
2999
|
+
value: "variant_b",
|
|
3000
|
+
description: "Used for a/b testing and/or ad variant names.",
|
|
3001
|
+
is_active: true
|
|
3002
|
+
},
|
|
3003
|
+
variant_c: {
|
|
3004
|
+
label: "Variant C",
|
|
3005
|
+
value: "variant_c",
|
|
3006
|
+
description: "Used for a/b testing and/or ad variant names.",
|
|
3007
|
+
is_active: true
|
|
3008
|
+
},
|
|
3009
|
+
variant_d: {
|
|
3010
|
+
label: "Variant D",
|
|
3011
|
+
value: "variant_d",
|
|
3012
|
+
description: "Used for a/b testing and/or ad variant names.",
|
|
3013
|
+
is_active: true
|
|
3014
|
+
},
|
|
3015
|
+
client_creative: {
|
|
3016
|
+
label: "Client Creative",
|
|
3017
|
+
value: "client_creative",
|
|
3018
|
+
description: "Creative content was provided by the client to use\u2014not GC designed content.",
|
|
3019
|
+
is_active: true
|
|
3020
|
+
}
|
|
3021
|
+
};
|
|
3022
|
+
|
|
2423
3023
|
// src/utilities/datetime.ts
|
|
2424
3024
|
function dateToday() {
|
|
2425
3025
|
const date2 = /* @__PURE__ */ new Date();
|
|
@@ -2435,10 +3035,10 @@ function datePlusDays(today, days = 30) {
|
|
|
2435
3035
|
function validateAndClean(schema, input) {
|
|
2436
3036
|
var _a, _b;
|
|
2437
3037
|
try {
|
|
2438
|
-
const parsed =
|
|
3038
|
+
const parsed = v29__namespace.parse(schema, input);
|
|
2439
3039
|
return { data: parsed, error: null, errors: null };
|
|
2440
3040
|
} catch (err) {
|
|
2441
|
-
if (err instanceof
|
|
3041
|
+
if (err instanceof v29__namespace.ValiError) {
|
|
2442
3042
|
const errors = {};
|
|
2443
3043
|
for (const issue of err.issues) {
|
|
2444
3044
|
const field = ((_b = (_a = issue.path) == null ? void 0 : _a[0]) == null ? void 0 : _b.key) || "unknown";
|
|
@@ -2676,10 +3276,23 @@ exports.SCreateCreativeFormatDocumentRequest = SCreateCreativeFormatDocumentRequ
|
|
|
2676
3276
|
exports.SCreateCreativeFormatVariantDocument = SCreateCreativeFormatVariantDocument;
|
|
2677
3277
|
exports.SCreateCreativeFormatVariantDocumentRequest = SCreateCreativeFormatVariantDocumentRequest;
|
|
2678
3278
|
exports.SCreateGroupDocument = SCreateGroupDocument;
|
|
3279
|
+
exports.SCreateGroupUserAssignMultipleUsers = SCreateGroupUserAssignMultipleUsers;
|
|
2679
3280
|
exports.SCreateGroupUserDocument = SCreateGroupUserDocument;
|
|
2680
3281
|
exports.SCreateGroupUserDocumentRequest = SCreateGroupUserDocumentRequest;
|
|
2681
3282
|
exports.SCreateMediumDocument = SCreateMediumDocument;
|
|
2682
3283
|
exports.SCreateMediumDocumentRequest = SCreateMediumDocumentRequest;
|
|
3284
|
+
exports.SCreateMultipleCampaignIdDocuments = SCreateMultipleCampaignIdDocuments;
|
|
3285
|
+
exports.SCreateMultipleCampaignKeyDocuments = SCreateMultipleCampaignKeyDocuments;
|
|
3286
|
+
exports.SCreateMultipleCampaignPhaseDocuments = SCreateMultipleCampaignPhaseDocuments;
|
|
3287
|
+
exports.SCreateMultipleCampaignProductDocuments = SCreateMultipleCampaignProductDocuments;
|
|
3288
|
+
exports.SCreateMultipleContentDocuments = SCreateMultipleContentDocuments;
|
|
3289
|
+
exports.SCreateMultipleCreativeFormatDocuments = SCreateMultipleCreativeFormatDocuments;
|
|
3290
|
+
exports.SCreateMultipleCreativeFormatVariantDocuments = SCreateMultipleCreativeFormatVariantDocuments;
|
|
3291
|
+
exports.SCreateMultipleMediumDocuments = SCreateMultipleMediumDocuments;
|
|
3292
|
+
exports.SCreateMultipleSourceDocuments = SCreateMultipleSourceDocuments;
|
|
3293
|
+
exports.SCreateMultipleTermDocuments = SCreateMultipleTermDocuments;
|
|
3294
|
+
exports.SCreateMultipleTrackingLinkDocuments = SCreateMultipleTrackingLinkDocuments;
|
|
3295
|
+
exports.SCreateMultipleWebsiteDocuments = SCreateMultipleWebsiteDocuments;
|
|
2683
3296
|
exports.SCreateSourceDocument = SCreateSourceDocument;
|
|
2684
3297
|
exports.SCreateSourceDocumentRequest = SCreateSourceDocumentRequest;
|
|
2685
3298
|
exports.SCreateTermDocument = SCreateTermDocument;
|
|
@@ -2934,6 +3547,12 @@ exports.WEBSITE_PAGINATION_DEFAULT_SIZE_LIMIT = WEBSITE_PAGINATION_DEFAULT_SIZE_
|
|
|
2934
3547
|
exports.WEBSITE_PAGINATION_MAX_SIZE_LIMIT = WEBSITE_PAGINATION_MAX_SIZE_LIMIT;
|
|
2935
3548
|
exports.datePlusDays = datePlusDays;
|
|
2936
3549
|
exports.dateToday = dateToday;
|
|
3550
|
+
exports.default_campaign_phases = default_campaign_phases;
|
|
3551
|
+
exports.default_contents = default_contents;
|
|
3552
|
+
exports.default_creative_format_variants = default_creative_format_variants;
|
|
3553
|
+
exports.default_creative_formats = default_creative_formats;
|
|
3554
|
+
exports.default_mediums = default_mediums;
|
|
3555
|
+
exports.default_sources = default_sources;
|
|
2937
3556
|
exports.isValidationFailure = isValidationFailure;
|
|
2938
3557
|
exports.isValidationSuccess = isValidationSuccess;
|
|
2939
3558
|
exports.omitUndefined = omitUndefined;
|