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