@joeygrable94/utm-src-pub-validators 0.0.118 → 0.0.119
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 +1048 -1044
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +31 -29
- package/dist/index.d.ts +31 -29
- package/dist/index.js +1052 -1050
- 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 v = 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 v__namespace = /*#__PURE__*/_interopNamespace(v);
|
|
24
24
|
|
|
25
25
|
// src/actions/generics.actions.ts
|
|
26
26
|
|
|
@@ -149,89 +149,91 @@ var LIMIT_MIN_UTM_TERM = 1;
|
|
|
149
149
|
var LIMIT_MAX_UTM_TERM = 2028;
|
|
150
150
|
var LIMIT_MIN_UTM_ID = 1;
|
|
151
151
|
var LIMIT_MAX_UTM_ID = 2030;
|
|
152
|
-
var IsValidReferenceId =
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
var IsValidReferenceId = v__namespace.pipe(
|
|
153
|
+
v__namespace.number("please provide a valid id"),
|
|
154
|
+
v__namespace.minValue(0, "please provide a valid id")
|
|
155
155
|
);
|
|
156
|
-
var IsValidReferenceDocumentId =
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
156
|
+
var IsValidReferenceDocumentId = v__namespace.pipe(
|
|
157
|
+
v__namespace.string("please provide a valid document id"),
|
|
158
|
+
v__namespace.minLength(1),
|
|
159
|
+
v__namespace.maxLength(255)
|
|
160
160
|
);
|
|
161
|
-
var VPage = () =>
|
|
162
|
-
var
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
161
|
+
var VPage = () => v__namespace.optional(v__namespace.pipe(v__namespace.number(), v__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT)));
|
|
162
|
+
var VPageRequired = () => v__namespace.pipe(v__namespace.number(), v__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT));
|
|
163
|
+
var VSize = (maxSize) => v__namespace.optional(
|
|
164
|
+
v__namespace.pipe(
|
|
165
|
+
v__namespace.number(),
|
|
166
|
+
v__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
167
|
+
v__namespace.maxValue(maxSize)
|
|
167
168
|
)
|
|
168
169
|
);
|
|
169
|
-
var
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
var VSizeRequired = (maxSize) => v__namespace.pipe(v__namespace.number(), v__namespace.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT), v__namespace.maxValue(maxSize));
|
|
171
|
+
var IsValidCost = v__namespace.pipe(
|
|
172
|
+
v__namespace.number("please enter a cost value"),
|
|
173
|
+
v__namespace.minValue(0),
|
|
174
|
+
v__namespace.maxValue(
|
|
173
175
|
1e6,
|
|
174
176
|
"your campaign cost exceeds our $1 million dollar limit, please contact us for enterprise solutions"
|
|
175
177
|
)
|
|
176
178
|
);
|
|
177
|
-
var IsValidOrUndefinedCost =
|
|
178
|
-
var IsValidLabel =
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
var IsValidOrUndefinedCost = v__namespace.optional(IsValidCost);
|
|
180
|
+
var IsValidLabel = v__namespace.pipe(
|
|
181
|
+
v__namespace.string("please provide a label"),
|
|
182
|
+
v__namespace.trim(),
|
|
183
|
+
v__namespace.minLength(
|
|
182
184
|
LIMIT_MIN_LABEL,
|
|
183
185
|
`the label is too short, it must be at least ${LIMIT_MIN_LABEL} characters`
|
|
184
186
|
),
|
|
185
|
-
|
|
187
|
+
v__namespace.maxLength(
|
|
186
188
|
LIMIT_MAX_LABEL,
|
|
187
189
|
`the label is too long, it must be ${LIMIT_MAX_LABEL} characters or less`
|
|
188
190
|
)
|
|
189
191
|
);
|
|
190
|
-
var IsValidOrUndefinedLabel =
|
|
191
|
-
var IsValidValue =
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
var IsValidOrUndefinedLabel = v__namespace.optional(IsValidLabel);
|
|
193
|
+
var IsValidValue = v__namespace.pipe(
|
|
194
|
+
v__namespace.string("please provide a value"),
|
|
195
|
+
v__namespace.trim(),
|
|
196
|
+
v__namespace.minLength(
|
|
195
197
|
LIMIT_MIN_VALUE,
|
|
196
198
|
`the value is too short, it must be at least ${LIMIT_MIN_VALUE} characters`
|
|
197
199
|
),
|
|
198
|
-
|
|
200
|
+
v__namespace.maxLength(
|
|
199
201
|
LIMIT_MAX_VALUE,
|
|
200
202
|
`the value is too long, it must be ${LIMIT_MAX_VALUE} characters or less`
|
|
201
203
|
),
|
|
202
|
-
|
|
204
|
+
v__namespace.regex(REGEX_VALUE, `the value ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
203
205
|
);
|
|
204
|
-
var IsValidOrUndefinedValue =
|
|
205
|
-
var IsValidDescription =
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
206
|
+
var IsValidOrUndefinedValue = v__namespace.optional(IsValidValue);
|
|
207
|
+
var IsValidDescription = v__namespace.nullable(
|
|
208
|
+
v__namespace.pipe(
|
|
209
|
+
v__namespace.string("the description must be a string"),
|
|
210
|
+
v__namespace.trim(),
|
|
211
|
+
v__namespace.maxLength(
|
|
210
212
|
LIMIT_MAX_DESCRIPTION,
|
|
211
213
|
`the description is too long, it must be ${LIMIT_MAX_DESCRIPTION} characters or less`
|
|
212
214
|
)
|
|
213
215
|
)
|
|
214
216
|
);
|
|
215
|
-
var IsValidOrUndefinedDescription =
|
|
216
|
-
var IsValidIsActive =
|
|
217
|
-
var IsValidOrUndefinedIsActive =
|
|
218
|
-
var IsValidIsSecure =
|
|
219
|
-
var IsValidOrUndefinedIsSecure =
|
|
220
|
-
var IsValidIsBoolean =
|
|
221
|
-
var IsValidOrUndefinedIsBoolean =
|
|
222
|
-
var IsValidName =
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
217
|
+
var IsValidOrUndefinedDescription = v__namespace.optional(IsValidDescription);
|
|
218
|
+
var IsValidIsActive = v__namespace.boolean("isActive must be a boolean");
|
|
219
|
+
var IsValidOrUndefinedIsActive = v__namespace.optional(IsValidIsActive);
|
|
220
|
+
var IsValidIsSecure = v__namespace.boolean("isSecure must be a boolean");
|
|
221
|
+
var IsValidOrUndefinedIsSecure = v__namespace.optional(IsValidIsSecure);
|
|
222
|
+
var IsValidIsBoolean = v__namespace.boolean("this value must be either true or false");
|
|
223
|
+
var IsValidOrUndefinedIsBoolean = v__namespace.optional(IsValidIsBoolean);
|
|
224
|
+
var IsValidName = v__namespace.pipe(
|
|
225
|
+
v__namespace.string("please provide a name"),
|
|
226
|
+
v__namespace.trim(),
|
|
227
|
+
v__namespace.minLength(
|
|
226
228
|
LIMIT_MIN_NAME,
|
|
227
229
|
`the name is too short, it must be at least ${LIMIT_MIN_NAME} characters`
|
|
228
230
|
),
|
|
229
|
-
|
|
231
|
+
v__namespace.maxLength(
|
|
230
232
|
LIMIT_MAX_NAME,
|
|
231
233
|
`the name is too long, it must be ${LIMIT_MAX_NAME} characters or less`
|
|
232
234
|
)
|
|
233
235
|
);
|
|
234
|
-
var IsValidOrUndefinedName =
|
|
236
|
+
var IsValidOrUndefinedName = v__namespace.optional(IsValidName);
|
|
235
237
|
|
|
236
238
|
// src/permissions/permission.abac.ts
|
|
237
239
|
var ROLE_PERMISSIONS = {
|
|
@@ -721,381 +723,381 @@ function hasPermission(user, permissions, resource, action, data) {
|
|
|
721
723
|
}
|
|
722
724
|
|
|
723
725
|
// src/validators/validators-group-users.ts
|
|
724
|
-
var IsValidGroupUserScopes =
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
726
|
+
var IsValidGroupUserScopes = v__namespace.pipe(
|
|
727
|
+
v__namespace.array(
|
|
728
|
+
v__namespace.pipe(
|
|
729
|
+
v__namespace.string("please provide a valid scope"),
|
|
730
|
+
v__namespace.picklist(GROUP_ENTITY_SCOPES, "invalid group scope provided")
|
|
729
731
|
),
|
|
730
732
|
"please provide an array of scopes"
|
|
731
733
|
),
|
|
732
|
-
|
|
733
|
-
|
|
734
|
+
v__namespace.minLength(1, "you must provide at least one scope"),
|
|
735
|
+
v__namespace.maxLength(
|
|
734
736
|
GROUP_ENTITY_SCOPES.length,
|
|
735
737
|
"you cannot provide more scopes than available"
|
|
736
738
|
)
|
|
737
739
|
);
|
|
738
|
-
var IsValidGroupValue =
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
740
|
+
var IsValidGroupValue = v__namespace.pipe(
|
|
741
|
+
v__namespace.string("please provide a value"),
|
|
742
|
+
v__namespace.trim(),
|
|
743
|
+
v__namespace.minLength(
|
|
742
744
|
LIMIT_MIN_GROUP_VALUE,
|
|
743
745
|
`the value is too short, it must be at least ${LIMIT_MIN_GROUP_VALUE} characters`
|
|
744
746
|
),
|
|
745
|
-
|
|
747
|
+
v__namespace.maxLength(
|
|
746
748
|
LIMIT_MAX_GROUP_VALUE,
|
|
747
749
|
`the value is too long, it must be ${LIMIT_MAX_GROUP_VALUE} characters or less`
|
|
748
750
|
),
|
|
749
|
-
|
|
751
|
+
v__namespace.regex(REGEX_VALUE, `the value ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
750
752
|
);
|
|
751
|
-
var IsValidOrUndefinedGroupValue =
|
|
752
|
-
var IsValidApplyValueTo =
|
|
753
|
-
var IsValidOrUndefinedApplyValueTo =
|
|
754
|
-
var IsValidApplyValueAs =
|
|
755
|
-
var IsValidOrUndefinedApplyValueAs =
|
|
756
|
-
var IsValidProductId =
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
753
|
+
var IsValidOrUndefinedGroupValue = v__namespace.optional(IsValidGroupValue);
|
|
754
|
+
var IsValidApplyValueTo = v__namespace.picklist(GroupApplyValueToOptions);
|
|
755
|
+
var IsValidOrUndefinedApplyValueTo = v__namespace.optional(IsValidApplyValueTo);
|
|
756
|
+
var IsValidApplyValueAs = v__namespace.picklist(GroupApplyValueAsOptions);
|
|
757
|
+
var IsValidOrUndefinedApplyValueAs = v__namespace.optional(IsValidApplyValueAs);
|
|
758
|
+
var IsValidProductId = v__namespace.pipe(
|
|
759
|
+
v__namespace.string("please provide a product_id"),
|
|
760
|
+
v__namespace.trim(),
|
|
761
|
+
v__namespace.minLength(
|
|
760
762
|
LIMIT_MIN_PRODUCT_ID,
|
|
761
763
|
`the product_id is too short, it must be at least ${LIMIT_MIN_PRODUCT_ID} characters`
|
|
762
764
|
),
|
|
763
|
-
|
|
765
|
+
v__namespace.maxLength(
|
|
764
766
|
LIMIT_MAX_PRODUCT_ID,
|
|
765
767
|
`the product_id is too long, it must be ${LIMIT_MAX_PRODUCT_ID} characters or less`
|
|
766
768
|
)
|
|
767
769
|
);
|
|
768
|
-
var IsValidOrUndefinedProductId =
|
|
769
|
-
var IsValidPriceId =
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
770
|
+
var IsValidOrUndefinedProductId = v__namespace.optional(IsValidProductId);
|
|
771
|
+
var IsValidPriceId = v__namespace.pipe(
|
|
772
|
+
v__namespace.string("please provide a price_id"),
|
|
773
|
+
v__namespace.trim(),
|
|
774
|
+
v__namespace.minLength(
|
|
773
775
|
LIMIT_MIN_PRICE_ID,
|
|
774
776
|
`the price_id is too short, it must be at least ${LIMIT_MIN_PRICE_ID} characters`
|
|
775
777
|
),
|
|
776
|
-
|
|
778
|
+
v__namespace.maxLength(
|
|
777
779
|
LIMIT_MAX_PRICE_ID,
|
|
778
780
|
`the price_id is too long, it must be ${LIMIT_MAX_PRICE_ID} characters or less`
|
|
779
781
|
)
|
|
780
782
|
);
|
|
781
|
-
var IsValidOrUndefinedPriceId =
|
|
782
|
-
var IsValidUnitAmount =
|
|
783
|
-
|
|
784
|
-
|
|
783
|
+
var IsValidOrUndefinedPriceId = v__namespace.optional(IsValidPriceId);
|
|
784
|
+
var IsValidUnitAmount = v__namespace.pipe(
|
|
785
|
+
v__namespace.number("please provide a unit_amount"),
|
|
786
|
+
v__namespace.minValue(
|
|
785
787
|
LIMIT_MIN_UNIT_AMOUNT,
|
|
786
788
|
`the unit_amount must be a decimal greater than or equal to ${LIMIT_MIN_UNIT_AMOUNT}`
|
|
787
789
|
)
|
|
788
790
|
);
|
|
789
|
-
var IsValidOrUndefinedUnitAmount =
|
|
790
|
-
var IsValidUnitTermInMonths =
|
|
791
|
-
|
|
792
|
-
|
|
791
|
+
var IsValidOrUndefinedUnitAmount = v__namespace.optional(IsValidUnitAmount);
|
|
792
|
+
var IsValidUnitTermInMonths = v__namespace.pipe(
|
|
793
|
+
v__namespace.number("please provide a unit_term_in_months"),
|
|
794
|
+
v__namespace.minValue(
|
|
793
795
|
LIMIT_MIN_UNIT_TERM_IN_MONTHS,
|
|
794
796
|
`the unit_term_in_months must be an integer greater than or equal to ${LIMIT_MIN_UNIT_TERM_IN_MONTHS}`
|
|
795
797
|
),
|
|
796
|
-
|
|
798
|
+
v__namespace.maxValue(
|
|
797
799
|
LIMIT_MAX_UNIT_TERM_IN_MONTHS,
|
|
798
800
|
`the unit_term_in_months must be an integer less than or equal to ${LIMIT_MAX_UNIT_TERM_IN_MONTHS}`
|
|
799
801
|
)
|
|
800
802
|
);
|
|
801
|
-
var IsValidOrUndefinedUnitTermInMonths =
|
|
802
|
-
var IsValidUrlDestination =
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
803
|
+
var IsValidOrUndefinedUnitTermInMonths = v__namespace.optional(IsValidUnitTermInMonths);
|
|
804
|
+
var IsValidUrlDestination = v__namespace.pipe(
|
|
805
|
+
v__namespace.string("please provide a url destination"),
|
|
806
|
+
v__namespace.trim(),
|
|
807
|
+
v__namespace.minLength(
|
|
806
808
|
LIMIT_MIN_DESTINATION,
|
|
807
809
|
`the url destination is too short, it must be at least ${LIMIT_MIN_DESTINATION} characters`
|
|
808
810
|
),
|
|
809
|
-
|
|
811
|
+
v__namespace.maxLength(
|
|
810
812
|
LIMIT_MAX_DESTINATION,
|
|
811
813
|
`the url destination is too long, it must be ${LIMIT_MAX_DESTINATION} characters or less`
|
|
812
814
|
),
|
|
813
|
-
|
|
815
|
+
v__namespace.url("please provide a valid url")
|
|
814
816
|
);
|
|
815
|
-
var IsValidOrUndefinedUrlDestination =
|
|
816
|
-
var IsValidUrlProtocol =
|
|
817
|
-
|
|
818
|
-
|
|
817
|
+
var IsValidOrUndefinedUrlDestination = v__namespace.optional(IsValidUrlDestination);
|
|
818
|
+
var IsValidUrlProtocol = v__namespace.pipe(
|
|
819
|
+
v__namespace.string(),
|
|
820
|
+
v__namespace.picklist(UrlProtocolOptions, "please provide a valid url protocol")
|
|
819
821
|
);
|
|
820
|
-
var IsValidOrUndefinedUrlProtocol =
|
|
821
|
-
var IsValidUrlDomain =
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
822
|
+
var IsValidOrUndefinedUrlProtocol = v__namespace.optional(IsValidUrlProtocol);
|
|
823
|
+
var IsValidUrlDomain = v__namespace.pipe(
|
|
824
|
+
v__namespace.string("please provide a domain"),
|
|
825
|
+
v__namespace.trim(),
|
|
826
|
+
v__namespace.minLength(
|
|
825
827
|
LIMIT_MIN_DOMAIN,
|
|
826
828
|
`the domain is too short, it must be at least ${LIMIT_MIN_DOMAIN} characters`
|
|
827
829
|
),
|
|
828
|
-
|
|
830
|
+
v__namespace.maxLength(
|
|
829
831
|
LIMIT_MAX_DOMAIN,
|
|
830
832
|
`the domain is too long, it must be ${LIMIT_MAX_DOMAIN} characters or less`
|
|
831
833
|
),
|
|
832
|
-
|
|
834
|
+
v__namespace.regex(REGEX_DOMAIN, ERROR_MESSAGE_REGEX_DOMAIN)
|
|
833
835
|
);
|
|
834
|
-
var IsValidOrUndefinedUrlDomain =
|
|
835
|
-
var IsValidUrlPath =
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
836
|
+
var IsValidOrUndefinedUrlDomain = v__namespace.optional(IsValidUrlDomain);
|
|
837
|
+
var IsValidUrlPath = v__namespace.pipe(
|
|
838
|
+
v__namespace.string("please provide a url path"),
|
|
839
|
+
v__namespace.trim(),
|
|
840
|
+
v__namespace.maxLength(
|
|
839
841
|
LIMIT_MAX_PATH,
|
|
840
842
|
`the url path is too long, it must be ${LIMIT_MAX_PATH} characters or less`
|
|
841
843
|
)
|
|
842
844
|
);
|
|
843
|
-
var IsValidOrUndefinedUrlPath =
|
|
844
|
-
var IsValidUrlQuery =
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
845
|
+
var IsValidOrUndefinedUrlPath = v__namespace.optional(IsValidUrlPath);
|
|
846
|
+
var IsValidUrlQuery = v__namespace.pipe(
|
|
847
|
+
v__namespace.string("please provide a url query"),
|
|
848
|
+
v__namespace.trim(),
|
|
849
|
+
v__namespace.maxLength(
|
|
848
850
|
LIMIT_MAX_QUERY,
|
|
849
851
|
`the url query is too long, it must be ${LIMIT_MAX_QUERY} characters or less`
|
|
850
852
|
)
|
|
851
853
|
);
|
|
852
|
-
var IsValidOrUndefinedUrlQuery =
|
|
853
|
-
var IsValidUrlFragment =
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
854
|
+
var IsValidOrUndefinedUrlQuery = v__namespace.optional(IsValidUrlQuery);
|
|
855
|
+
var IsValidUrlFragment = v__namespace.pipe(
|
|
856
|
+
v__namespace.string("please provide a url hash/fragment"),
|
|
857
|
+
v__namespace.trim(),
|
|
858
|
+
v__namespace.maxLength(
|
|
857
859
|
LIMIT_MAX_FRAGMENT,
|
|
858
860
|
`the url hash/fragment is too long, it must be ${LIMIT_MAX_FRAGMENT} characters or less`
|
|
859
861
|
)
|
|
860
862
|
);
|
|
861
|
-
var IsValidOrUndefinedUrlFragment =
|
|
862
|
-
var IsValidCustomerId =
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
863
|
+
var IsValidOrUndefinedUrlFragment = v__namespace.optional(IsValidUrlFragment);
|
|
864
|
+
var IsValidCustomerId = v__namespace.pipe(
|
|
865
|
+
v__namespace.string("please provide a customer ID"),
|
|
866
|
+
v__namespace.trim(),
|
|
867
|
+
v__namespace.maxLength(
|
|
866
868
|
LIMIT_MAX_STRIPE_ID,
|
|
867
869
|
`the customer ID is too long, it must be ${LIMIT_MAX_STRIPE_ID} characters or less`
|
|
868
870
|
)
|
|
869
871
|
);
|
|
870
|
-
var IsValidOrUndefinedCustomerId =
|
|
871
|
-
var IsValidSubscriptionId =
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
872
|
+
var IsValidOrUndefinedCustomerId = v__namespace.optional(IsValidCustomerId);
|
|
873
|
+
var IsValidSubscriptionId = v__namespace.pipe(
|
|
874
|
+
v__namespace.string("please provide a subscription ID"),
|
|
875
|
+
v__namespace.trim(),
|
|
876
|
+
v__namespace.maxLength(
|
|
875
877
|
LIMIT_MAX_STRIPE_ID,
|
|
876
878
|
`the subscription ID is too long, it must be ${LIMIT_MAX_STRIPE_ID} characters or less`
|
|
877
879
|
)
|
|
878
880
|
);
|
|
879
|
-
var IsValidOrUndefinedSubscriptionId =
|
|
880
|
-
var IsValidSubscriptionStatus =
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
881
|
+
var IsValidOrUndefinedSubscriptionId = v__namespace.optional(IsValidSubscriptionId);
|
|
882
|
+
var IsValidSubscriptionStatus = v__namespace.pipe(
|
|
883
|
+
v__namespace.string("please provide a subscription status"),
|
|
884
|
+
v__namespace.trim(),
|
|
885
|
+
v__namespace.picklist(SubscriptionStatusValues)
|
|
884
886
|
);
|
|
885
|
-
var IsValidOrUndefinedSubscriptionStatus =
|
|
887
|
+
var IsValidOrUndefinedSubscriptionStatus = v__namespace.optional(
|
|
886
888
|
IsValidSubscriptionStatus
|
|
887
889
|
);
|
|
888
|
-
var IsValidCurrentPeriodStart =
|
|
889
|
-
var IsValidOrUndefinedCurrentPeriodStart =
|
|
890
|
+
var IsValidCurrentPeriodStart = v__namespace.nullable(v__namespace.date());
|
|
891
|
+
var IsValidOrUndefinedCurrentPeriodStart = v__namespace.optional(
|
|
890
892
|
IsValidCurrentPeriodStart
|
|
891
893
|
);
|
|
892
|
-
var IsValidCurrentPeriodEnd =
|
|
893
|
-
var IsValidOrUndefinedCurrentPeriodEnd =
|
|
894
|
-
var IsValidTrialPeriodEnd =
|
|
895
|
-
var IsValidOrUndefinedTrialPeriodEnd =
|
|
896
|
-
var IsValidUserLimitationNumber =
|
|
897
|
-
|
|
898
|
-
|
|
894
|
+
var IsValidCurrentPeriodEnd = v__namespace.nullable(v__namespace.date());
|
|
895
|
+
var IsValidOrUndefinedCurrentPeriodEnd = v__namespace.optional(IsValidCurrentPeriodEnd);
|
|
896
|
+
var IsValidTrialPeriodEnd = v__namespace.date();
|
|
897
|
+
var IsValidOrUndefinedTrialPeriodEnd = v__namespace.optional(IsValidTrialPeriodEnd);
|
|
898
|
+
var IsValidUserLimitationNumber = v__namespace.pipe(
|
|
899
|
+
v__namespace.number(),
|
|
900
|
+
v__namespace.minValue(0, "the user limitation number must be a positive number")
|
|
899
901
|
);
|
|
900
|
-
var IsValidUserLimitationNumberFallback =
|
|
902
|
+
var IsValidUserLimitationNumberFallback = v__namespace.fallback(
|
|
901
903
|
IsValidUserLimitationNumber,
|
|
902
904
|
0
|
|
903
905
|
);
|
|
904
|
-
var IsValidOrUndefinedUserLimitationNumber =
|
|
906
|
+
var IsValidOrUndefinedUserLimitationNumber = v__namespace.optional(
|
|
905
907
|
IsValidUserLimitationNumber
|
|
906
908
|
);
|
|
907
|
-
var IsValidUsername =
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
909
|
+
var IsValidUsername = v__namespace.pipe(
|
|
910
|
+
v__namespace.string("please provide a username"),
|
|
911
|
+
v__namespace.trim(),
|
|
912
|
+
v__namespace.minLength(
|
|
911
913
|
LIMIT_MIN_USERNAME,
|
|
912
914
|
`your username is too short, it must be at least ${LIMIT_MIN_USERNAME} characters`
|
|
913
915
|
),
|
|
914
|
-
|
|
916
|
+
v__namespace.maxLength(
|
|
915
917
|
LIMIT_MAX_USERNAME,
|
|
916
918
|
`your username is too long, it must be ${LIMIT_MAX_USERNAME} characters or less`
|
|
917
919
|
),
|
|
918
|
-
|
|
920
|
+
v__namespace.regex(REGEX_VALUE, `your username ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
919
921
|
);
|
|
920
|
-
var IsValidOrUndefinedUsername =
|
|
921
|
-
var IsValidEmail =
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
922
|
+
var IsValidOrUndefinedUsername = v__namespace.optional(IsValidUsername);
|
|
923
|
+
var IsValidEmail = v__namespace.pipe(
|
|
924
|
+
v__namespace.string("please provide an email"),
|
|
925
|
+
v__namespace.trim(),
|
|
926
|
+
v__namespace.minLength(
|
|
925
927
|
LIMIT_MIN_EMAIL,
|
|
926
928
|
`your email is too short, it must be at least ${LIMIT_MIN_EMAIL} characters`
|
|
927
929
|
),
|
|
928
|
-
|
|
930
|
+
v__namespace.maxLength(
|
|
929
931
|
LIMIT_MAX_EMAIL,
|
|
930
932
|
`your email is too long, it must be ${LIMIT_MAX_EMAIL} characters or less`
|
|
931
933
|
),
|
|
932
|
-
|
|
934
|
+
v__namespace.email("please provide a valid email address")
|
|
933
935
|
);
|
|
934
|
-
var IsValidOrUndefinedEmail =
|
|
935
|
-
var IsValidPassword =
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
936
|
+
var IsValidOrUndefinedEmail = v__namespace.optional(IsValidEmail);
|
|
937
|
+
var IsValidPassword = v__namespace.pipe(
|
|
938
|
+
v__namespace.string("a password is required"),
|
|
939
|
+
v__namespace.trim(),
|
|
940
|
+
v__namespace.minLength(
|
|
939
941
|
LIMIT_MIN_PASSWORD,
|
|
940
942
|
`your password is too short, it must be at least ${LIMIT_MIN_PASSWORD} characters`
|
|
941
943
|
),
|
|
942
|
-
|
|
944
|
+
v__namespace.maxLength(
|
|
943
945
|
LIMIT_MAX_PASSWORD,
|
|
944
946
|
`your password is too long, it must be ${LIMIT_MAX_PASSWORD} characters or less`
|
|
945
947
|
)
|
|
946
948
|
);
|
|
947
|
-
var IsValidOrUndefinedPassword =
|
|
948
|
-
var IsValidProvider =
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
949
|
+
var IsValidOrUndefinedPassword = v__namespace.optional(IsValidPassword);
|
|
950
|
+
var IsValidProvider = v__namespace.pipe(
|
|
951
|
+
v__namespace.string("please enter a provider"),
|
|
952
|
+
v__namespace.trim(),
|
|
953
|
+
v__namespace.maxLength(
|
|
952
954
|
LIMIT_MAX_PROVIDER,
|
|
953
955
|
`the provider string is too long, it must be ${LIMIT_MAX_PROVIDER} characters or less`
|
|
954
956
|
)
|
|
955
957
|
);
|
|
956
|
-
var IsValidOrUndefinedProvider =
|
|
957
|
-
var IsValidConfirmed =
|
|
958
|
-
var IsValidOrUndefinedConfirmed =
|
|
959
|
-
var IsValidBlocked =
|
|
960
|
-
var IsValidOrUndefinedBlocked =
|
|
961
|
-
var IsValidUrlUtmPart =
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
958
|
+
var IsValidOrUndefinedProvider = v__namespace.optional(IsValidProvider);
|
|
959
|
+
var IsValidConfirmed = v__namespace.boolean();
|
|
960
|
+
var IsValidOrUndefinedConfirmed = v__namespace.optional(IsValidConfirmed);
|
|
961
|
+
var IsValidBlocked = v__namespace.boolean();
|
|
962
|
+
var IsValidOrUndefinedBlocked = v__namespace.optional(IsValidBlocked);
|
|
963
|
+
var IsValidUrlUtmPart = v__namespace.pipe(
|
|
964
|
+
v__namespace.string(),
|
|
965
|
+
v__namespace.trim(),
|
|
966
|
+
v__namespace.minLength(
|
|
965
967
|
LIMIT_MIN_UTM_PART,
|
|
966
968
|
`this value is too short, it must be at least ${LIMIT_MIN_UTM_PART} characters`
|
|
967
969
|
),
|
|
968
|
-
|
|
970
|
+
v__namespace.maxLength(
|
|
969
971
|
LIMIT_MAX_UTM_PART,
|
|
970
972
|
`the value is too long, it must be ${LIMIT_MAX_UTM_PART} characters or less`
|
|
971
973
|
),
|
|
972
|
-
|
|
974
|
+
v__namespace.regex(REGEX_VALUE, `value ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
973
975
|
);
|
|
974
|
-
var IsValidOrUndefinedUrlUtmPart =
|
|
975
|
-
var IsValidUrlUtmSource =
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
976
|
+
var IsValidOrUndefinedUrlUtmPart = v__namespace.optional(IsValidUrlUtmPart);
|
|
977
|
+
var IsValidUrlUtmSource = v__namespace.pipe(
|
|
978
|
+
v__namespace.string(),
|
|
979
|
+
v__namespace.trim(),
|
|
980
|
+
v__namespace.maxLength(
|
|
979
981
|
LIMIT_MAX_UTM_SOURCE,
|
|
980
982
|
`the utm_source is too long, it must be ${LIMIT_MAX_UTM_SOURCE} characters or less`
|
|
981
983
|
),
|
|
982
|
-
|
|
984
|
+
v__namespace.regex(REGEX_VALUE, `utm_source ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
983
985
|
);
|
|
984
|
-
var IsValidOrUndefinedUrlUtmSource =
|
|
985
|
-
var IsValidUrlUtmMedium =
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
986
|
+
var IsValidOrUndefinedUrlUtmSource = v__namespace.optional(IsValidUrlUtmSource);
|
|
987
|
+
var IsValidUrlUtmMedium = v__namespace.pipe(
|
|
988
|
+
v__namespace.string(),
|
|
989
|
+
v__namespace.trim(),
|
|
990
|
+
v__namespace.maxLength(
|
|
989
991
|
LIMIT_MAX_UTM_MEDIUM,
|
|
990
992
|
`the utm_medium is too long, it must be ${LIMIT_MAX_UTM_MEDIUM} characters or less`
|
|
991
993
|
),
|
|
992
|
-
|
|
994
|
+
v__namespace.regex(REGEX_VALUE, `utm_medium ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
993
995
|
);
|
|
994
|
-
var IsValidOrUndefinedUrlUtmMedium =
|
|
995
|
-
var IsValidUrlUtmCampaign =
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
996
|
+
var IsValidOrUndefinedUrlUtmMedium = v__namespace.optional(IsValidUrlUtmMedium);
|
|
997
|
+
var IsValidUrlUtmCampaign = v__namespace.pipe(
|
|
998
|
+
v__namespace.string(),
|
|
999
|
+
v__namespace.trim(),
|
|
1000
|
+
v__namespace.maxLength(
|
|
999
1001
|
LIMIT_MAX_UTM_CAMPAIGN,
|
|
1000
1002
|
`the utm_campaign is too long, it must be ${LIMIT_MAX_UTM_CAMPAIGN} characters or less`
|
|
1001
1003
|
),
|
|
1002
|
-
|
|
1004
|
+
v__namespace.regex(REGEX_VALUE, `utm_campaign ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
1003
1005
|
);
|
|
1004
|
-
var IsValidOrUndefinedUrlUtmCampaign =
|
|
1005
|
-
var IsValidUrlUtmCreativeFormat =
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1006
|
+
var IsValidOrUndefinedUrlUtmCampaign = v__namespace.optional(IsValidUrlUtmCampaign);
|
|
1007
|
+
var IsValidUrlUtmCreativeFormat = v__namespace.pipe(
|
|
1008
|
+
v__namespace.string(),
|
|
1009
|
+
v__namespace.trim(),
|
|
1010
|
+
v__namespace.maxLength(
|
|
1009
1011
|
LIMIT_MAX_UTM_CREATIVE_FORMAT,
|
|
1010
1012
|
`the utm_creative_format is too long, it must be ${LIMIT_MAX_UTM_CREATIVE_FORMAT} characters or less`
|
|
1011
1013
|
),
|
|
1012
|
-
|
|
1014
|
+
v__namespace.regex(REGEX_VALUE, `utm_creative_format ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
1013
1015
|
);
|
|
1014
|
-
var IsValidOrUndefinedUrlUtmCreativeFormat =
|
|
1016
|
+
var IsValidOrUndefinedUrlUtmCreativeFormat = v__namespace.optional(
|
|
1015
1017
|
IsValidUrlUtmCreativeFormat
|
|
1016
1018
|
);
|
|
1017
|
-
var IsValidUrlUtmContent =
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1019
|
+
var IsValidUrlUtmContent = v__namespace.pipe(
|
|
1020
|
+
v__namespace.string(),
|
|
1021
|
+
v__namespace.trim(),
|
|
1022
|
+
v__namespace.maxLength(
|
|
1021
1023
|
LIMIT_MAX_UTM_CONTENT,
|
|
1022
1024
|
`the utm_content is too long, it must be ${LIMIT_MAX_UTM_CONTENT} characters or less`
|
|
1023
1025
|
),
|
|
1024
|
-
|
|
1026
|
+
v__namespace.regex(REGEX_VALUE, `utm_content ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
1025
1027
|
);
|
|
1026
|
-
var IsValidOrUndefinedUrlUtmContent =
|
|
1027
|
-
var IsValidUrlUtmTerm =
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1028
|
+
var IsValidOrUndefinedUrlUtmContent = v__namespace.optional(IsValidUrlUtmContent);
|
|
1029
|
+
var IsValidUrlUtmTerm = v__namespace.pipe(
|
|
1030
|
+
v__namespace.string(),
|
|
1031
|
+
v__namespace.trim(),
|
|
1032
|
+
v__namespace.maxLength(
|
|
1031
1033
|
LIMIT_MAX_UTM_TERM,
|
|
1032
1034
|
`the utm_term is too long, it must be ${LIMIT_MAX_UTM_TERM} characters or less`
|
|
1033
1035
|
),
|
|
1034
|
-
|
|
1036
|
+
v__namespace.regex(REGEX_VALUE, `utm_term ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
1035
1037
|
);
|
|
1036
|
-
var IsValidOrUndefinedUrlUtmTerm =
|
|
1037
|
-
var IsValidUrlUtmId =
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1038
|
+
var IsValidOrUndefinedUrlUtmTerm = v__namespace.optional(IsValidUrlUtmTerm);
|
|
1039
|
+
var IsValidUrlUtmId = v__namespace.pipe(
|
|
1040
|
+
v__namespace.string(),
|
|
1041
|
+
v__namespace.trim(),
|
|
1042
|
+
v__namespace.maxLength(
|
|
1041
1043
|
LIMIT_MAX_UTM_ID,
|
|
1042
1044
|
`the utm_id is too long, it must be ${LIMIT_MAX_UTM_ID} characters or less`
|
|
1043
1045
|
),
|
|
1044
|
-
|
|
1046
|
+
v__namespace.regex(REGEX_VALUE, `utm_id ${ERROR_MESSAGE_REGEX_VALUE}`)
|
|
1045
1047
|
);
|
|
1046
|
-
var IsValidOrUndefinedUrlUtmId =
|
|
1048
|
+
var IsValidOrUndefinedUrlUtmId = v__namespace.optional(IsValidUrlUtmId);
|
|
1047
1049
|
|
|
1048
1050
|
// src/base/base.schema.ts
|
|
1049
|
-
var SBaseDocument =
|
|
1050
|
-
id:
|
|
1051
|
+
var SBaseDocument = v__namespace.object({
|
|
1052
|
+
id: v__namespace.number(),
|
|
1051
1053
|
documentId: IsValidReferenceDocumentId,
|
|
1052
|
-
publishedAt:
|
|
1053
|
-
createdAt:
|
|
1054
|
-
updatedAt:
|
|
1054
|
+
publishedAt: v__namespace.optional(v__namespace.string()),
|
|
1055
|
+
createdAt: v__namespace.string(),
|
|
1056
|
+
updatedAt: v__namespace.string()
|
|
1055
1057
|
});
|
|
1056
1058
|
|
|
1057
1059
|
// src/sort/sort-document.ts
|
|
1058
1060
|
var BaseDocumentSortKeys = Object.keys(
|
|
1059
1061
|
SBaseDocument.entries
|
|
1060
1062
|
);
|
|
1061
|
-
var VSortDocument =
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1063
|
+
var VSortDocument = v__namespace.optional(
|
|
1064
|
+
v__namespace.pipe(
|
|
1065
|
+
v__namespace.array(
|
|
1066
|
+
v__namespace.picklist(
|
|
1065
1067
|
BaseDocumentSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`])
|
|
1066
1068
|
)
|
|
1067
1069
|
),
|
|
1068
|
-
|
|
1070
|
+
v__namespace.maxLength(BaseDocumentSortKeys.length)
|
|
1069
1071
|
)
|
|
1070
1072
|
);
|
|
1071
|
-
var SReadUserDocumentToken =
|
|
1072
|
-
token:
|
|
1073
|
+
var SReadUserDocumentToken = v__namespace.object({
|
|
1074
|
+
token: v__namespace.string()
|
|
1073
1075
|
});
|
|
1074
|
-
var SLoginUserDocument =
|
|
1076
|
+
var SLoginUserDocument = v__namespace.object({
|
|
1075
1077
|
identifier: IsValidEmail,
|
|
1076
1078
|
password: IsValidPassword
|
|
1077
1079
|
});
|
|
1078
|
-
var SRegisterUserDocument =
|
|
1080
|
+
var SRegisterUserDocument = v__namespace.object({
|
|
1079
1081
|
username: IsValidUsername,
|
|
1080
1082
|
email: IsValidEmail,
|
|
1081
1083
|
password: IsValidPassword
|
|
1082
1084
|
});
|
|
1083
|
-
var SForgotPasswordUserDocument =
|
|
1085
|
+
var SForgotPasswordUserDocument = v__namespace.object({
|
|
1084
1086
|
email: IsValidEmail
|
|
1085
1087
|
});
|
|
1086
|
-
var SResetPasswordUserDocument =
|
|
1088
|
+
var SResetPasswordUserDocument = v__namespace.object({
|
|
1087
1089
|
password: IsValidPassword,
|
|
1088
1090
|
passwordConfirmation: IsValidPassword,
|
|
1089
|
-
code:
|
|
1091
|
+
code: v__namespace.string()
|
|
1090
1092
|
});
|
|
1091
|
-
var SChangePassword =
|
|
1092
|
-
|
|
1093
|
+
var SChangePassword = v__namespace.pipe(
|
|
1094
|
+
v__namespace.object({
|
|
1093
1095
|
currentPassword: IsValidPassword,
|
|
1094
1096
|
password: IsValidPassword,
|
|
1095
1097
|
passwordConfirmation: IsValidPassword
|
|
1096
1098
|
}),
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
+
v__namespace.forward(
|
|
1100
|
+
v__namespace.partialCheck(
|
|
1099
1101
|
[["password"], ["passwordConfirmation"]],
|
|
1100
1102
|
(input) => input.password === input.passwordConfirmation,
|
|
1101
1103
|
"Your new passwords do not match."
|
|
@@ -1103,10 +1105,10 @@ var SChangePassword = v62__namespace.pipe(
|
|
|
1103
1105
|
["passwordConfirmation"]
|
|
1104
1106
|
)
|
|
1105
1107
|
);
|
|
1106
|
-
var SRequestConfirmEmail =
|
|
1108
|
+
var SRequestConfirmEmail = v__namespace.object({
|
|
1107
1109
|
email: IsValidEmail
|
|
1108
1110
|
});
|
|
1109
|
-
var SBaseGroupDocument =
|
|
1111
|
+
var SBaseGroupDocument = v__namespace.object({
|
|
1110
1112
|
label: IsValidLabel,
|
|
1111
1113
|
value: IsValidGroupValue,
|
|
1112
1114
|
description: IsValidDescription,
|
|
@@ -1116,88 +1118,88 @@ var SBaseGroupDocument = v62__namespace.object({
|
|
|
1116
1118
|
});
|
|
1117
1119
|
|
|
1118
1120
|
// src/entities/group/group.document.ts
|
|
1119
|
-
var SGroupDocument =
|
|
1121
|
+
var SGroupDocument = v__namespace.object({
|
|
1120
1122
|
...SBaseDocument.entries,
|
|
1121
1123
|
...SBaseGroupDocument.entries
|
|
1122
1124
|
});
|
|
1123
|
-
var SBaseTrackingLinkDocument =
|
|
1125
|
+
var SBaseTrackingLinkDocument = v__namespace.object({
|
|
1124
1126
|
value: IsValidUrlDestination,
|
|
1125
1127
|
is_active: IsValidIsActive,
|
|
1126
1128
|
destination: IsValidUrlDestination,
|
|
1127
1129
|
protocol: IsValidUrlProtocol,
|
|
1128
1130
|
domain: IsValidUrlDomain,
|
|
1129
|
-
path:
|
|
1130
|
-
query:
|
|
1131
|
-
fragment:
|
|
1132
|
-
utm_source:
|
|
1133
|
-
utm_medium:
|
|
1134
|
-
utm_campaign:
|
|
1135
|
-
utm_creative_format:
|
|
1136
|
-
utm_content:
|
|
1137
|
-
utm_term:
|
|
1138
|
-
utm_id:
|
|
1131
|
+
path: v__namespace.nullable(IsValidUrlPath),
|
|
1132
|
+
query: v__namespace.nullable(IsValidUrlQuery),
|
|
1133
|
+
fragment: v__namespace.nullable(IsValidUrlFragment),
|
|
1134
|
+
utm_source: v__namespace.nullable(IsValidUrlUtmSource),
|
|
1135
|
+
utm_medium: v__namespace.nullable(IsValidUrlUtmMedium),
|
|
1136
|
+
utm_campaign: v__namespace.nullable(IsValidUrlUtmCampaign),
|
|
1137
|
+
utm_creative_format: v__namespace.nullable(IsValidUrlUtmCreativeFormat),
|
|
1138
|
+
utm_content: v__namespace.nullable(IsValidUrlUtmContent),
|
|
1139
|
+
utm_term: v__namespace.nullable(IsValidUrlUtmTerm),
|
|
1140
|
+
utm_id: v__namespace.nullable(IsValidUrlUtmId)
|
|
1139
1141
|
});
|
|
1140
1142
|
|
|
1141
1143
|
// src/entities/tracking-link/tracking-link.document.ts
|
|
1142
|
-
var STrackingLinkDocument =
|
|
1144
|
+
var STrackingLinkDocument = v__namespace.object({
|
|
1143
1145
|
...SBaseDocument.entries,
|
|
1144
1146
|
...SBaseTrackingLinkDocument.entries
|
|
1145
1147
|
});
|
|
1146
|
-
var SBaseUserDocument =
|
|
1148
|
+
var SBaseUserDocument = v__namespace.object({
|
|
1147
1149
|
username: IsValidUsername,
|
|
1148
1150
|
email: IsValidEmail,
|
|
1149
|
-
confirmed:
|
|
1150
|
-
blocked:
|
|
1151
|
-
provider:
|
|
1151
|
+
confirmed: v__namespace.boolean(),
|
|
1152
|
+
blocked: v__namespace.boolean(),
|
|
1153
|
+
provider: v__namespace.literal("local")
|
|
1152
1154
|
});
|
|
1153
1155
|
|
|
1154
1156
|
// src/entities/user/user.document.ts
|
|
1155
|
-
var SUserDocument =
|
|
1157
|
+
var SUserDocument = v__namespace.object({
|
|
1156
1158
|
...SBaseDocument.entries,
|
|
1157
1159
|
...SBaseUserDocument.entries
|
|
1158
1160
|
});
|
|
1159
1161
|
|
|
1160
1162
|
// src/entities/user/user-draft-pub-created-by.schema.ts
|
|
1161
|
-
var SBaseDocumentCreatedBy =
|
|
1162
|
-
createdBy:
|
|
1163
|
-
updatedBy:
|
|
1163
|
+
var SBaseDocumentCreatedBy = v__namespace.object({
|
|
1164
|
+
createdBy: v__namespace.optional(SUserDocument),
|
|
1165
|
+
updatedBy: v__namespace.optional(SUserDocument)
|
|
1164
1166
|
});
|
|
1165
|
-
var SBaseRoleDocument =
|
|
1166
|
-
type:
|
|
1167
|
-
name:
|
|
1168
|
-
locale:
|
|
1169
|
-
description:
|
|
1167
|
+
var SBaseRoleDocument = v__namespace.object({
|
|
1168
|
+
type: v__namespace.string(),
|
|
1169
|
+
name: v__namespace.string(),
|
|
1170
|
+
locale: v__namespace.string(),
|
|
1171
|
+
description: v__namespace.string()
|
|
1170
1172
|
});
|
|
1171
1173
|
|
|
1172
1174
|
// src/entities/role/role.document.ts
|
|
1173
|
-
var SRoleDocument =
|
|
1175
|
+
var SRoleDocument = v__namespace.object({
|
|
1174
1176
|
...SBaseDocument.entries,
|
|
1175
1177
|
...SBaseRoleDocument.entries
|
|
1176
1178
|
});
|
|
1177
|
-
var SRoleRelationsDocument =
|
|
1178
|
-
user:
|
|
1179
|
+
var SRoleRelationsDocument = v__namespace.object({
|
|
1180
|
+
user: v__namespace.optional(SUserDocument)
|
|
1179
1181
|
});
|
|
1180
|
-
var SBaseUserAccountDocument =
|
|
1181
|
-
customer_id:
|
|
1182
|
-
subscription_id:
|
|
1182
|
+
var SBaseUserAccountDocument = v__namespace.object({
|
|
1183
|
+
customer_id: v__namespace.nullable(IsValidCustomerId),
|
|
1184
|
+
subscription_id: v__namespace.nullable(IsValidCustomerId),
|
|
1183
1185
|
subscription_status: IsValidSubscriptionStatus,
|
|
1184
|
-
current_period_start:
|
|
1185
|
-
current_period_end:
|
|
1186
|
-
trial_period_end:
|
|
1186
|
+
current_period_start: v__namespace.nullable(IsValidCurrentPeriodStart),
|
|
1187
|
+
current_period_end: v__namespace.nullable(IsValidCurrentPeriodEnd),
|
|
1188
|
+
trial_period_end: v__namespace.nullable(IsValidTrialPeriodEnd)
|
|
1187
1189
|
});
|
|
1188
1190
|
|
|
1189
1191
|
// src/entities/user-account/user-account.document.ts
|
|
1190
|
-
var SUserAccountDocument =
|
|
1192
|
+
var SUserAccountDocument = v__namespace.object({
|
|
1191
1193
|
...SBaseDocument.entries,
|
|
1192
1194
|
...SBaseUserAccountDocument.entries
|
|
1193
1195
|
});
|
|
1194
|
-
var SUserAccountRelationsDocument =
|
|
1195
|
-
user:
|
|
1196
|
+
var SUserAccountRelationsDocument = v__namespace.object({
|
|
1197
|
+
user: v__namespace.optional(SUserDocument)
|
|
1196
1198
|
});
|
|
1197
|
-
var SUserAccountRelationsReqDocument =
|
|
1199
|
+
var SUserAccountRelationsReqDocument = v__namespace.object({
|
|
1198
1200
|
user: SUserDocument
|
|
1199
1201
|
});
|
|
1200
|
-
var SBaseUserLimitationsDocument =
|
|
1202
|
+
var SBaseUserLimitationsDocument = v__namespace.object({
|
|
1201
1203
|
limit_groups: IsValidUserLimitationNumberFallback,
|
|
1202
1204
|
limit_group_users: IsValidUserLimitationNumberFallback,
|
|
1203
1205
|
limit_websites: IsValidUserLimitationNumberFallback,
|
|
@@ -1216,75 +1218,75 @@ var SBaseUserLimitationsDocument = v62__namespace.object({
|
|
|
1216
1218
|
});
|
|
1217
1219
|
|
|
1218
1220
|
// src/entities/user-limitations/user-limitations.document.ts
|
|
1219
|
-
var SUserLimitationsDocument =
|
|
1221
|
+
var SUserLimitationsDocument = v__namespace.object({
|
|
1220
1222
|
...SBaseDocument.entries,
|
|
1221
1223
|
...SBaseUserLimitationsDocument.entries
|
|
1222
1224
|
});
|
|
1223
|
-
var SUserLimitationsRelationsDocument =
|
|
1224
|
-
user:
|
|
1225
|
+
var SUserLimitationsRelationsDocument = v__namespace.object({
|
|
1226
|
+
user: v__namespace.optional(SUserDocument)
|
|
1225
1227
|
});
|
|
1226
|
-
var SBaseCampaignIdDocument =
|
|
1228
|
+
var SBaseCampaignIdDocument = v__namespace.object({
|
|
1227
1229
|
cost: IsValidCost,
|
|
1228
1230
|
label: IsValidLabel,
|
|
1229
1231
|
value: IsValidValue,
|
|
1230
1232
|
description: IsValidDescription,
|
|
1231
1233
|
is_active: IsValidIsActive
|
|
1232
1234
|
});
|
|
1233
|
-
var SBaseCampaignPhaseDocument =
|
|
1235
|
+
var SBaseCampaignPhaseDocument = v__namespace.object({
|
|
1234
1236
|
label: IsValidLabel,
|
|
1235
1237
|
value: IsValidValue,
|
|
1236
1238
|
description: IsValidDescription,
|
|
1237
1239
|
is_active: IsValidIsActive
|
|
1238
1240
|
});
|
|
1239
|
-
var SBaseCampaignProductDocument =
|
|
1241
|
+
var SBaseCampaignProductDocument = v__namespace.object({
|
|
1240
1242
|
label: IsValidLabel,
|
|
1241
1243
|
value: IsValidValue,
|
|
1242
1244
|
description: IsValidDescription,
|
|
1243
1245
|
is_active: IsValidIsActive
|
|
1244
1246
|
});
|
|
1245
|
-
var SBaseCampaignTargetDocument =
|
|
1247
|
+
var SBaseCampaignTargetDocument = v__namespace.object({
|
|
1246
1248
|
label: IsValidLabel,
|
|
1247
1249
|
value: IsValidValue,
|
|
1248
1250
|
description: IsValidDescription,
|
|
1249
1251
|
is_active: IsValidIsActive
|
|
1250
1252
|
});
|
|
1251
|
-
var SBaseCampaignKeyDocument =
|
|
1253
|
+
var SBaseCampaignKeyDocument = v__namespace.object({
|
|
1252
1254
|
label: IsValidLabel,
|
|
1253
1255
|
value: IsValidValue,
|
|
1254
1256
|
description: IsValidDescription,
|
|
1255
1257
|
is_active: IsValidIsActive
|
|
1256
1258
|
});
|
|
1257
|
-
var SBaseSourceDocument =
|
|
1259
|
+
var SBaseSourceDocument = v__namespace.object({
|
|
1258
1260
|
label: IsValidLabel,
|
|
1259
1261
|
value: IsValidValue,
|
|
1260
1262
|
description: IsValidDescription,
|
|
1261
1263
|
is_active: IsValidIsActive
|
|
1262
1264
|
});
|
|
1263
|
-
var SBaseMediumDocument =
|
|
1265
|
+
var SBaseMediumDocument = v__namespace.object({
|
|
1264
1266
|
label: IsValidLabel,
|
|
1265
1267
|
value: IsValidValue,
|
|
1266
1268
|
description: IsValidDescription,
|
|
1267
1269
|
is_active: IsValidIsActive
|
|
1268
1270
|
});
|
|
1269
|
-
var SBaseContentDocument =
|
|
1271
|
+
var SBaseContentDocument = v__namespace.object({
|
|
1270
1272
|
label: IsValidLabel,
|
|
1271
1273
|
value: IsValidValue,
|
|
1272
1274
|
description: IsValidDescription,
|
|
1273
1275
|
is_active: IsValidIsActive
|
|
1274
1276
|
});
|
|
1275
|
-
var SBaseCreativeFormatDocument =
|
|
1277
|
+
var SBaseCreativeFormatDocument = v__namespace.object({
|
|
1276
1278
|
label: IsValidLabel,
|
|
1277
1279
|
value: IsValidValue,
|
|
1278
1280
|
description: IsValidDescription,
|
|
1279
1281
|
is_active: IsValidIsActive
|
|
1280
1282
|
});
|
|
1281
|
-
var SBaseCreativeFormatVariantDocument =
|
|
1283
|
+
var SBaseCreativeFormatVariantDocument = v__namespace.object({
|
|
1282
1284
|
label: IsValidLabel,
|
|
1283
1285
|
value: IsValidValue,
|
|
1284
1286
|
description: IsValidDescription,
|
|
1285
1287
|
is_active: IsValidIsActive
|
|
1286
1288
|
});
|
|
1287
|
-
var SBaseTermDocument =
|
|
1289
|
+
var SBaseTermDocument = v__namespace.object({
|
|
1288
1290
|
label: IsValidLabel,
|
|
1289
1291
|
value: IsValidValue,
|
|
1290
1292
|
description: IsValidDescription,
|
|
@@ -1292,95 +1294,95 @@ var SBaseTermDocument = v62__namespace.object({
|
|
|
1292
1294
|
});
|
|
1293
1295
|
|
|
1294
1296
|
// src/entities/utm/param.documents.ts
|
|
1295
|
-
var SCampaignIdDocument =
|
|
1297
|
+
var SCampaignIdDocument = v__namespace.object({
|
|
1296
1298
|
...SBaseDocument.entries,
|
|
1297
1299
|
...SBaseCampaignIdDocument.entries
|
|
1298
1300
|
});
|
|
1299
|
-
var SCampaignPhaseDocument =
|
|
1301
|
+
var SCampaignPhaseDocument = v__namespace.object({
|
|
1300
1302
|
...SBaseDocument.entries,
|
|
1301
1303
|
...SBaseCampaignPhaseDocument.entries
|
|
1302
1304
|
});
|
|
1303
|
-
var SCampaignProductDocument =
|
|
1305
|
+
var SCampaignProductDocument = v__namespace.object({
|
|
1304
1306
|
...SBaseDocument.entries,
|
|
1305
1307
|
...SBaseCampaignProductDocument.entries
|
|
1306
1308
|
});
|
|
1307
|
-
var SCampaignTargetDocument =
|
|
1309
|
+
var SCampaignTargetDocument = v__namespace.object({
|
|
1308
1310
|
...SBaseDocument.entries,
|
|
1309
1311
|
...SBaseCampaignTargetDocument.entries
|
|
1310
1312
|
});
|
|
1311
|
-
var SCampaignKeyDocument =
|
|
1313
|
+
var SCampaignKeyDocument = v__namespace.object({
|
|
1312
1314
|
...SBaseDocument.entries,
|
|
1313
1315
|
...SBaseCampaignKeyDocument.entries
|
|
1314
1316
|
});
|
|
1315
|
-
var SSourceDocument =
|
|
1317
|
+
var SSourceDocument = v__namespace.object({
|
|
1316
1318
|
...SBaseDocument.entries,
|
|
1317
1319
|
...SBaseSourceDocument.entries
|
|
1318
1320
|
});
|
|
1319
|
-
var SMediumDocument =
|
|
1321
|
+
var SMediumDocument = v__namespace.object({
|
|
1320
1322
|
...SBaseDocument.entries,
|
|
1321
1323
|
...SBaseMediumDocument.entries
|
|
1322
1324
|
});
|
|
1323
|
-
var SContentDocument =
|
|
1325
|
+
var SContentDocument = v__namespace.object({
|
|
1324
1326
|
...SBaseDocument.entries,
|
|
1325
1327
|
...SBaseContentDocument.entries
|
|
1326
1328
|
});
|
|
1327
|
-
var SCreativeFormatDocument =
|
|
1329
|
+
var SCreativeFormatDocument = v__namespace.object({
|
|
1328
1330
|
...SBaseDocument.entries,
|
|
1329
1331
|
...SBaseCreativeFormatDocument.entries
|
|
1330
1332
|
});
|
|
1331
|
-
var SCreativeFormatVariantDocument =
|
|
1333
|
+
var SCreativeFormatVariantDocument = v__namespace.object({
|
|
1332
1334
|
...SBaseDocument.entries,
|
|
1333
1335
|
...SBaseCreativeFormatVariantDocument.entries
|
|
1334
1336
|
});
|
|
1335
|
-
var STermDocument =
|
|
1337
|
+
var STermDocument = v__namespace.object({
|
|
1336
1338
|
...SBaseDocument.entries,
|
|
1337
1339
|
...SBaseTermDocument.entries
|
|
1338
1340
|
});
|
|
1339
|
-
var SCampaignIdRelationsDocument =
|
|
1340
|
-
group:
|
|
1341
|
-
creator:
|
|
1341
|
+
var SCampaignIdRelationsDocument = v__namespace.object({
|
|
1342
|
+
group: v__namespace.optional(SGroupDocument),
|
|
1343
|
+
creator: v__namespace.optional(SUserDocument)
|
|
1342
1344
|
});
|
|
1343
|
-
var SCampaignPhaseRelationsDocument =
|
|
1344
|
-
group:
|
|
1345
|
-
creator:
|
|
1345
|
+
var SCampaignPhaseRelationsDocument = v__namespace.object({
|
|
1346
|
+
group: v__namespace.optional(SGroupDocument),
|
|
1347
|
+
creator: v__namespace.optional(SUserDocument)
|
|
1346
1348
|
});
|
|
1347
|
-
var SCampaignProductRelationsDocument =
|
|
1348
|
-
group:
|
|
1349
|
-
creator:
|
|
1349
|
+
var SCampaignProductRelationsDocument = v__namespace.object({
|
|
1350
|
+
group: v__namespace.optional(SGroupDocument),
|
|
1351
|
+
creator: v__namespace.optional(SUserDocument)
|
|
1350
1352
|
});
|
|
1351
|
-
var SCampaignTargetRelationsDocument =
|
|
1352
|
-
group:
|
|
1353
|
-
creator:
|
|
1353
|
+
var SCampaignTargetRelationsDocument = v__namespace.object({
|
|
1354
|
+
group: v__namespace.optional(SGroupDocument),
|
|
1355
|
+
creator: v__namespace.optional(SUserDocument)
|
|
1354
1356
|
});
|
|
1355
|
-
var SCampaignKeyRelationsDocument =
|
|
1356
|
-
group:
|
|
1357
|
-
creator:
|
|
1357
|
+
var SCampaignKeyRelationsDocument = v__namespace.object({
|
|
1358
|
+
group: v__namespace.optional(SGroupDocument),
|
|
1359
|
+
creator: v__namespace.optional(SUserDocument)
|
|
1358
1360
|
});
|
|
1359
|
-
var SSourceRelationsDocument =
|
|
1360
|
-
group:
|
|
1361
|
-
creator:
|
|
1361
|
+
var SSourceRelationsDocument = v__namespace.object({
|
|
1362
|
+
group: v__namespace.optional(SGroupDocument),
|
|
1363
|
+
creator: v__namespace.optional(SUserDocument)
|
|
1362
1364
|
});
|
|
1363
|
-
var SMediumRelationsDocument =
|
|
1364
|
-
group:
|
|
1365
|
-
creator:
|
|
1365
|
+
var SMediumRelationsDocument = v__namespace.object({
|
|
1366
|
+
group: v__namespace.optional(SGroupDocument),
|
|
1367
|
+
creator: v__namespace.optional(SUserDocument)
|
|
1366
1368
|
});
|
|
1367
|
-
var SContentRelationsDocument =
|
|
1368
|
-
group:
|
|
1369
|
-
creator:
|
|
1369
|
+
var SContentRelationsDocument = v__namespace.object({
|
|
1370
|
+
group: v__namespace.optional(SGroupDocument),
|
|
1371
|
+
creator: v__namespace.optional(SUserDocument)
|
|
1370
1372
|
});
|
|
1371
|
-
var SCreativeFormatRelationsDocument =
|
|
1372
|
-
group:
|
|
1373
|
-
creator:
|
|
1373
|
+
var SCreativeFormatRelationsDocument = v__namespace.object({
|
|
1374
|
+
group: v__namespace.optional(SGroupDocument),
|
|
1375
|
+
creator: v__namespace.optional(SUserDocument)
|
|
1374
1376
|
});
|
|
1375
|
-
var SCreativeFormatVariantRelationsDocument =
|
|
1376
|
-
group:
|
|
1377
|
-
creator:
|
|
1377
|
+
var SCreativeFormatVariantRelationsDocument = v__namespace.object({
|
|
1378
|
+
group: v__namespace.optional(SGroupDocument),
|
|
1379
|
+
creator: v__namespace.optional(SUserDocument)
|
|
1378
1380
|
});
|
|
1379
|
-
var STermRelationsDocument =
|
|
1380
|
-
group:
|
|
1381
|
-
creator:
|
|
1381
|
+
var STermRelationsDocument = v__namespace.object({
|
|
1382
|
+
group: v__namespace.optional(SGroupDocument),
|
|
1383
|
+
creator: v__namespace.optional(SUserDocument)
|
|
1382
1384
|
});
|
|
1383
|
-
var SBaseWebsiteDocument =
|
|
1385
|
+
var SBaseWebsiteDocument = v__namespace.object({
|
|
1384
1386
|
domain: IsValidUrlDomain,
|
|
1385
1387
|
description: IsValidDescription,
|
|
1386
1388
|
is_secure: IsValidIsSecure,
|
|
@@ -1388,75 +1390,75 @@ var SBaseWebsiteDocument = v62__namespace.object({
|
|
|
1388
1390
|
});
|
|
1389
1391
|
|
|
1390
1392
|
// src/entities/website/website.document.ts
|
|
1391
|
-
var SWebsiteDocument =
|
|
1393
|
+
var SWebsiteDocument = v__namespace.object({
|
|
1392
1394
|
...SBaseDocument.entries,
|
|
1393
1395
|
...SBaseWebsiteDocument.entries
|
|
1394
1396
|
});
|
|
1395
|
-
var SWebsiteRelationsDocument =
|
|
1396
|
-
group:
|
|
1397
|
-
creator:
|
|
1397
|
+
var SWebsiteRelationsDocument = v__namespace.object({
|
|
1398
|
+
group: v__namespace.optional(SGroupDocument),
|
|
1399
|
+
creator: v__namespace.optional(SUserDocument)
|
|
1398
1400
|
});
|
|
1399
1401
|
|
|
1400
1402
|
// src/entities/user/user.relations.ts
|
|
1401
|
-
var SUserRelationRole =
|
|
1402
|
-
role:
|
|
1403
|
+
var SUserRelationRole = v__namespace.object({
|
|
1404
|
+
role: v__namespace.optional(SRoleDocument)
|
|
1403
1405
|
});
|
|
1404
|
-
var SUserRelationReqRole =
|
|
1406
|
+
var SUserRelationReqRole = v__namespace.object({
|
|
1405
1407
|
role: SRoleDocument
|
|
1406
1408
|
});
|
|
1407
|
-
var SUserRelationAccount =
|
|
1408
|
-
account:
|
|
1409
|
+
var SUserRelationAccount = v__namespace.object({
|
|
1410
|
+
account: v__namespace.optional(SUserAccountDocument)
|
|
1409
1411
|
});
|
|
1410
|
-
var SUserRelationReqAccount =
|
|
1412
|
+
var SUserRelationReqAccount = v__namespace.object({
|
|
1411
1413
|
account: SUserAccountDocument
|
|
1412
1414
|
});
|
|
1413
|
-
var SUserRelationLimits =
|
|
1414
|
-
limits:
|
|
1415
|
+
var SUserRelationLimits = v__namespace.object({
|
|
1416
|
+
limits: v__namespace.optional(SUserLimitationsDocument)
|
|
1415
1417
|
});
|
|
1416
|
-
var SUserRelationReqLimits =
|
|
1418
|
+
var SUserRelationReqLimits = v__namespace.object({
|
|
1417
1419
|
limits: SUserLimitationsDocument
|
|
1418
1420
|
});
|
|
1419
|
-
var SUserRelationAuthorizedGroups =
|
|
1420
|
-
authorized_groups:
|
|
1421
|
+
var SUserRelationAuthorizedGroups = v__namespace.object({
|
|
1422
|
+
authorized_groups: v__namespace.optional(v__namespace.array(SGroupDocument))
|
|
1421
1423
|
});
|
|
1422
|
-
var SUserRelationCreatedWebsites =
|
|
1423
|
-
created_websites:
|
|
1424
|
+
var SUserRelationCreatedWebsites = v__namespace.object({
|
|
1425
|
+
created_websites: v__namespace.optional(v__namespace.array(SWebsiteDocument))
|
|
1424
1426
|
});
|
|
1425
|
-
var SUserRelationTrackingLinks =
|
|
1426
|
-
tracking_links:
|
|
1427
|
+
var SUserRelationTrackingLinks = v__namespace.object({
|
|
1428
|
+
tracking_links: v__namespace.optional(v__namespace.array(STrackingLinkDocument))
|
|
1427
1429
|
});
|
|
1428
|
-
var SUserRelationSources =
|
|
1429
|
-
utm_sources:
|
|
1430
|
+
var SUserRelationSources = v__namespace.object({
|
|
1431
|
+
utm_sources: v__namespace.optional(v__namespace.array(SSourceDocument))
|
|
1430
1432
|
});
|
|
1431
|
-
var SUserRelationMediums =
|
|
1432
|
-
utm_mediums:
|
|
1433
|
+
var SUserRelationMediums = v__namespace.object({
|
|
1434
|
+
utm_mediums: v__namespace.optional(v__namespace.array(SMediumDocument))
|
|
1433
1435
|
});
|
|
1434
|
-
var SUserRelationCampaignIds =
|
|
1435
|
-
utm_ids:
|
|
1436
|
+
var SUserRelationCampaignIds = v__namespace.object({
|
|
1437
|
+
utm_ids: v__namespace.optional(v__namespace.array(SCampaignIdDocument))
|
|
1436
1438
|
});
|
|
1437
|
-
var SUserRelationCampaignPhases =
|
|
1438
|
-
utm_campaign_phases:
|
|
1439
|
+
var SUserRelationCampaignPhases = v__namespace.object({
|
|
1440
|
+
utm_campaign_phases: v__namespace.optional(v__namespace.array(SCampaignPhaseDocument))
|
|
1439
1441
|
});
|
|
1440
|
-
var SUserRelationCampaignProducts =
|
|
1441
|
-
utm_campaign_products:
|
|
1442
|
+
var SUserRelationCampaignProducts = v__namespace.object({
|
|
1443
|
+
utm_campaign_products: v__namespace.optional(v__namespace.array(SCampaignProductDocument))
|
|
1442
1444
|
});
|
|
1443
|
-
var SUserRelationCampaignKeys =
|
|
1444
|
-
utm_campaign_keys:
|
|
1445
|
+
var SUserRelationCampaignKeys = v__namespace.object({
|
|
1446
|
+
utm_campaign_keys: v__namespace.optional(v__namespace.array(SCampaignKeyDocument))
|
|
1445
1447
|
});
|
|
1446
|
-
var SUserRelationContents =
|
|
1447
|
-
utm_contents:
|
|
1448
|
+
var SUserRelationContents = v__namespace.object({
|
|
1449
|
+
utm_contents: v__namespace.optional(v__namespace.array(SContentDocument))
|
|
1448
1450
|
});
|
|
1449
|
-
var SUserRelationCreativeFormats =
|
|
1450
|
-
utm_creative_formats:
|
|
1451
|
+
var SUserRelationCreativeFormats = v__namespace.object({
|
|
1452
|
+
utm_creative_formats: v__namespace.optional(v__namespace.array(SCreativeFormatDocument))
|
|
1451
1453
|
});
|
|
1452
|
-
var SUserRelationCreativeFormatVariants =
|
|
1453
|
-
utm_creative_format_variants:
|
|
1454
|
+
var SUserRelationCreativeFormatVariants = v__namespace.object({
|
|
1455
|
+
utm_creative_format_variants: v__namespace.optional(v__namespace.array(SCreativeFormatVariantDocument))
|
|
1454
1456
|
});
|
|
1455
|
-
var SUserRelationTerms =
|
|
1456
|
-
utm_terms:
|
|
1457
|
+
var SUserRelationTerms = v__namespace.object({
|
|
1458
|
+
utm_terms: v__namespace.optional(v__namespace.array(STermDocument))
|
|
1457
1459
|
});
|
|
1458
|
-
var SUserRelationsDocument =
|
|
1459
|
-
group:
|
|
1460
|
+
var SUserRelationsDocument = v__namespace.object({
|
|
1461
|
+
group: v__namespace.optional(SGroupDocument),
|
|
1460
1462
|
...SUserRelationRole.entries,
|
|
1461
1463
|
...SUserRelationAuthorizedGroups.entries,
|
|
1462
1464
|
...SUserRelationCreatedWebsites.entries,
|
|
@@ -1474,53 +1476,53 @@ var SUserRelationsDocument = v62__namespace.object({
|
|
|
1474
1476
|
});
|
|
1475
1477
|
|
|
1476
1478
|
// src/entities/tracking-link/tracking-link.relations.ts
|
|
1477
|
-
var STrackingLinkRelationsDocument =
|
|
1478
|
-
group:
|
|
1479
|
-
creator:
|
|
1479
|
+
var STrackingLinkRelationsDocument = v__namespace.object({
|
|
1480
|
+
group: v__namespace.optional(SGroupDocument),
|
|
1481
|
+
creator: v__namespace.optional(SUserDocument)
|
|
1480
1482
|
});
|
|
1481
1483
|
|
|
1482
1484
|
// src/entities/group/group.relations.ts
|
|
1483
|
-
var SGroupRelationAuthorizedUsers =
|
|
1484
|
-
authorized_users:
|
|
1485
|
+
var SGroupRelationAuthorizedUsers = v__namespace.object({
|
|
1486
|
+
authorized_users: v__namespace.optional(v__namespace.array(SUserDocument))
|
|
1485
1487
|
});
|
|
1486
|
-
var SGroupRelationWebsites =
|
|
1487
|
-
websites:
|
|
1488
|
+
var SGroupRelationWebsites = v__namespace.object({
|
|
1489
|
+
websites: v__namespace.optional(SWebsiteDocument)
|
|
1488
1490
|
});
|
|
1489
|
-
var SGroupRelationTrackingLinks =
|
|
1490
|
-
tracking_links:
|
|
1491
|
+
var SGroupRelationTrackingLinks = v__namespace.object({
|
|
1492
|
+
tracking_links: v__namespace.optional(v__namespace.array(STrackingLinkDocument))
|
|
1491
1493
|
});
|
|
1492
|
-
var SGroupRelationSources =
|
|
1493
|
-
utm_sources:
|
|
1494
|
+
var SGroupRelationSources = v__namespace.object({
|
|
1495
|
+
utm_sources: v__namespace.optional(v__namespace.array(SSourceDocument))
|
|
1494
1496
|
});
|
|
1495
|
-
var SGroupRelationMediums =
|
|
1496
|
-
utm_mediums:
|
|
1497
|
+
var SGroupRelationMediums = v__namespace.object({
|
|
1498
|
+
utm_mediums: v__namespace.optional(v__namespace.array(SMediumDocument))
|
|
1497
1499
|
});
|
|
1498
|
-
var SGroupRelationCampaignIds =
|
|
1499
|
-
utm_ids:
|
|
1500
|
+
var SGroupRelationCampaignIds = v__namespace.object({
|
|
1501
|
+
utm_ids: v__namespace.optional(v__namespace.array(SCampaignIdDocument))
|
|
1500
1502
|
});
|
|
1501
|
-
var SGroupRelationCampaignPhases =
|
|
1502
|
-
utm_campaign_phases:
|
|
1503
|
+
var SGroupRelationCampaignPhases = v__namespace.object({
|
|
1504
|
+
utm_campaign_phases: v__namespace.optional(v__namespace.array(SCampaignPhaseDocument))
|
|
1503
1505
|
});
|
|
1504
|
-
var SGroupRelationCampaignProducts =
|
|
1505
|
-
utm_campaign_products:
|
|
1506
|
+
var SGroupRelationCampaignProducts = v__namespace.object({
|
|
1507
|
+
utm_campaign_products: v__namespace.optional(v__namespace.array(SCampaignProductDocument))
|
|
1506
1508
|
});
|
|
1507
|
-
var SGroupRelationCampaignKeys =
|
|
1508
|
-
utm_campaign_keys:
|
|
1509
|
+
var SGroupRelationCampaignKeys = v__namespace.object({
|
|
1510
|
+
utm_campaign_keys: v__namespace.optional(v__namespace.array(SCampaignKeyDocument))
|
|
1509
1511
|
});
|
|
1510
|
-
var SGroupRelationContents =
|
|
1511
|
-
utm_contents:
|
|
1512
|
+
var SGroupRelationContents = v__namespace.object({
|
|
1513
|
+
utm_contents: v__namespace.optional(v__namespace.array(SBaseContentDocument))
|
|
1512
1514
|
});
|
|
1513
|
-
var SGroupRelationCreativeFormats =
|
|
1514
|
-
utm_creative_formats:
|
|
1515
|
+
var SGroupRelationCreativeFormats = v__namespace.object({
|
|
1516
|
+
utm_creative_formats: v__namespace.optional(v__namespace.array(SCreativeFormatDocument))
|
|
1515
1517
|
});
|
|
1516
|
-
var SGroupRelationCreativeFormatVariants =
|
|
1517
|
-
utm_creative_format_variants:
|
|
1518
|
+
var SGroupRelationCreativeFormatVariants = v__namespace.object({
|
|
1519
|
+
utm_creative_format_variants: v__namespace.optional(v__namespace.array(SCreativeFormatVariantDocument))
|
|
1518
1520
|
});
|
|
1519
|
-
var SGroupRelationTerms =
|
|
1520
|
-
utm_terms:
|
|
1521
|
+
var SGroupRelationTerms = v__namespace.object({
|
|
1522
|
+
utm_terms: v__namespace.optional(v__namespace.array(STermDocument))
|
|
1521
1523
|
});
|
|
1522
|
-
var SGroupRelationsDocument =
|
|
1523
|
-
creator:
|
|
1524
|
+
var SGroupRelationsDocument = v__namespace.object({
|
|
1525
|
+
creator: v__namespace.optional(SUserDocument),
|
|
1524
1526
|
...SGroupRelationAuthorizedUsers.entries,
|
|
1525
1527
|
...SGroupRelationTrackingLinks.entries,
|
|
1526
1528
|
...SGroupRelationWebsites.entries,
|
|
@@ -1535,20 +1537,20 @@ var SGroupRelationsDocument = v62__namespace.object({
|
|
|
1535
1537
|
...SGroupRelationCreativeFormatVariants.entries,
|
|
1536
1538
|
...SGroupRelationTerms.entries
|
|
1537
1539
|
});
|
|
1538
|
-
var SBaseGroupUserDocument =
|
|
1540
|
+
var SBaseGroupUserDocument = v__namespace.object({
|
|
1539
1541
|
scopes: IsValidGroupUserScopes
|
|
1540
1542
|
});
|
|
1541
1543
|
|
|
1542
1544
|
// src/entities/group-user/group-user.document.ts
|
|
1543
|
-
var SGroupUserDocument =
|
|
1545
|
+
var SGroupUserDocument = v__namespace.object({
|
|
1544
1546
|
...SBaseDocument.entries,
|
|
1545
1547
|
...SBaseGroupUserDocument.entries
|
|
1546
1548
|
});
|
|
1547
|
-
var SGroupUserRelationsDocument =
|
|
1548
|
-
user:
|
|
1549
|
-
group:
|
|
1549
|
+
var SGroupUserRelationsDocument = v__namespace.object({
|
|
1550
|
+
user: v__namespace.optional(SUserDocument),
|
|
1551
|
+
group: v__namespace.optional(SGroupDocument)
|
|
1550
1552
|
});
|
|
1551
|
-
var SGroupUserRelationsReqDocument =
|
|
1553
|
+
var SGroupUserRelationsReqDocument = v__namespace.object({
|
|
1552
1554
|
user: SUserDocument,
|
|
1553
1555
|
group: SGroupDocument
|
|
1554
1556
|
});
|
|
@@ -1557,289 +1559,289 @@ var SGroupUserRelationsReqDocument = v62__namespace.object({
|
|
|
1557
1559
|
var GroupSortKeys = Object.keys(
|
|
1558
1560
|
SGroupDocument.entries
|
|
1559
1561
|
);
|
|
1560
|
-
var VSortGroup =
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1562
|
+
var VSortGroup = v__namespace.optional(
|
|
1563
|
+
v__namespace.pipe(
|
|
1564
|
+
v__namespace.array(
|
|
1565
|
+
v__namespace.picklist(GroupSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))
|
|
1564
1566
|
),
|
|
1565
|
-
|
|
1567
|
+
v__namespace.maxLength(GroupSortKeys.length)
|
|
1566
1568
|
)
|
|
1567
1569
|
);
|
|
1568
1570
|
var GroupUserSortKeys = Object.keys(
|
|
1569
1571
|
SGroupUserDocument.entries
|
|
1570
1572
|
);
|
|
1571
|
-
var VSortGroupUser =
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1573
|
+
var VSortGroupUser = v__namespace.optional(
|
|
1574
|
+
v__namespace.pipe(
|
|
1575
|
+
v__namespace.array(
|
|
1576
|
+
v__namespace.picklist(GroupUserSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))
|
|
1575
1577
|
),
|
|
1576
|
-
|
|
1578
|
+
v__namespace.maxLength(GroupUserSortKeys.length)
|
|
1577
1579
|
)
|
|
1578
1580
|
);
|
|
1579
1581
|
var TrackingLinkSortKeys = Object.keys(
|
|
1580
1582
|
STrackingLinkDocument.entries
|
|
1581
1583
|
);
|
|
1582
|
-
var VSortTrackingLink =
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1584
|
+
var VSortTrackingLink = v__namespace.optional(
|
|
1585
|
+
v__namespace.pipe(
|
|
1586
|
+
v__namespace.array(
|
|
1587
|
+
v__namespace.picklist(
|
|
1586
1588
|
TrackingLinkSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`])
|
|
1587
1589
|
)
|
|
1588
1590
|
),
|
|
1589
|
-
|
|
1591
|
+
v__namespace.maxLength(TrackingLinkSortKeys.length)
|
|
1590
1592
|
)
|
|
1591
1593
|
);
|
|
1592
1594
|
var UserSortKeys = Object.keys(
|
|
1593
1595
|
SUserDocument.entries
|
|
1594
1596
|
);
|
|
1595
|
-
var VSortUser =
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1597
|
+
var VSortUser = v__namespace.optional(
|
|
1598
|
+
v__namespace.pipe(
|
|
1599
|
+
v__namespace.array(
|
|
1600
|
+
v__namespace.picklist(UserSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))
|
|
1599
1601
|
),
|
|
1600
|
-
|
|
1602
|
+
v__namespace.maxLength(UserSortKeys.length)
|
|
1601
1603
|
)
|
|
1602
1604
|
);
|
|
1603
1605
|
var UserAccountSortKeys = Object.keys(
|
|
1604
1606
|
SUserAccountDocument.entries
|
|
1605
1607
|
);
|
|
1606
|
-
var VSortUserAccount =
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1608
|
+
var VSortUserAccount = v__namespace.optional(
|
|
1609
|
+
v__namespace.pipe(
|
|
1610
|
+
v__namespace.array(
|
|
1611
|
+
v__namespace.picklist(UserAccountSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))
|
|
1610
1612
|
),
|
|
1611
|
-
|
|
1613
|
+
v__namespace.maxLength(UserAccountSortKeys.length)
|
|
1612
1614
|
)
|
|
1613
1615
|
);
|
|
1614
1616
|
var UserLimitationsSortKeys = Object.keys(
|
|
1615
1617
|
SUserLimitationsDocument.entries
|
|
1616
1618
|
);
|
|
1617
|
-
var VSortUserLimitations =
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1619
|
+
var VSortUserLimitations = v__namespace.optional(
|
|
1620
|
+
v__namespace.pipe(
|
|
1621
|
+
v__namespace.array(
|
|
1622
|
+
v__namespace.picklist(
|
|
1621
1623
|
UserLimitationsSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`])
|
|
1622
1624
|
)
|
|
1623
1625
|
),
|
|
1624
|
-
|
|
1626
|
+
v__namespace.maxLength(UserLimitationsSortKeys.length)
|
|
1625
1627
|
)
|
|
1626
1628
|
);
|
|
1627
1629
|
var CampaignIdSortKeys = Object.keys(
|
|
1628
1630
|
SCampaignIdDocument.entries
|
|
1629
1631
|
);
|
|
1630
|
-
var VSortCampaignId =
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1632
|
+
var VSortCampaignId = v__namespace.optional(
|
|
1633
|
+
v__namespace.pipe(
|
|
1634
|
+
v__namespace.array(
|
|
1635
|
+
v__namespace.picklist(CampaignIdSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))
|
|
1634
1636
|
),
|
|
1635
|
-
|
|
1637
|
+
v__namespace.maxLength(CampaignIdSortKeys.length)
|
|
1636
1638
|
)
|
|
1637
1639
|
);
|
|
1638
1640
|
var CampaignKeySortKeys = Object.keys(
|
|
1639
1641
|
SCampaignKeyDocument.entries
|
|
1640
1642
|
);
|
|
1641
|
-
var VSortCampaignKey =
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1643
|
+
var VSortCampaignKey = v__namespace.optional(
|
|
1644
|
+
v__namespace.pipe(
|
|
1645
|
+
v__namespace.array(
|
|
1646
|
+
v__namespace.picklist(CampaignKeySortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))
|
|
1645
1647
|
),
|
|
1646
|
-
|
|
1648
|
+
v__namespace.maxLength(CampaignKeySortKeys.length)
|
|
1647
1649
|
)
|
|
1648
1650
|
);
|
|
1649
1651
|
var CampaignPhaseSortKeys = Object.keys(
|
|
1650
1652
|
SCampaignPhaseDocument.entries
|
|
1651
1653
|
);
|
|
1652
|
-
var VSortCampaignPhase =
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1654
|
+
var VSortCampaignPhase = v__namespace.optional(
|
|
1655
|
+
v__namespace.pipe(
|
|
1656
|
+
v__namespace.array(
|
|
1657
|
+
v__namespace.picklist(
|
|
1656
1658
|
CampaignPhaseSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`])
|
|
1657
1659
|
)
|
|
1658
1660
|
),
|
|
1659
|
-
|
|
1661
|
+
v__namespace.maxLength(CampaignPhaseSortKeys.length)
|
|
1660
1662
|
)
|
|
1661
1663
|
);
|
|
1662
1664
|
var CampaignProductSortKeys = Object.keys(
|
|
1663
1665
|
SCampaignProductDocument.entries
|
|
1664
1666
|
);
|
|
1665
|
-
var VSortCampaignProduct =
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1667
|
+
var VSortCampaignProduct = v__namespace.optional(
|
|
1668
|
+
v__namespace.pipe(
|
|
1669
|
+
v__namespace.array(
|
|
1670
|
+
v__namespace.picklist(
|
|
1669
1671
|
CampaignProductSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`])
|
|
1670
1672
|
)
|
|
1671
1673
|
),
|
|
1672
|
-
|
|
1674
|
+
v__namespace.maxLength(CampaignProductSortKeys.length)
|
|
1673
1675
|
)
|
|
1674
1676
|
);
|
|
1675
1677
|
var CampaignTargetSortKeys = Object.keys(
|
|
1676
1678
|
SCampaignTargetDocument.entries
|
|
1677
1679
|
);
|
|
1678
|
-
var VSortCampaignTarget =
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1680
|
+
var VSortCampaignTarget = v__namespace.optional(
|
|
1681
|
+
v__namespace.pipe(
|
|
1682
|
+
v__namespace.array(
|
|
1683
|
+
v__namespace.picklist(
|
|
1682
1684
|
CampaignTargetSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`])
|
|
1683
1685
|
)
|
|
1684
1686
|
),
|
|
1685
|
-
|
|
1687
|
+
v__namespace.maxLength(CampaignTargetSortKeys.length)
|
|
1686
1688
|
)
|
|
1687
1689
|
);
|
|
1688
1690
|
var ContentSortKeys = Object.keys(
|
|
1689
1691
|
SContentDocument.entries
|
|
1690
1692
|
);
|
|
1691
|
-
var VSortContent =
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1693
|
+
var VSortContent = v__namespace.optional(
|
|
1694
|
+
v__namespace.pipe(
|
|
1695
|
+
v__namespace.array(
|
|
1696
|
+
v__namespace.picklist(ContentSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))
|
|
1695
1697
|
),
|
|
1696
|
-
|
|
1698
|
+
v__namespace.maxLength(ContentSortKeys.length)
|
|
1697
1699
|
)
|
|
1698
1700
|
);
|
|
1699
1701
|
var CreativeFormatSortKeys = Object.keys(
|
|
1700
1702
|
SCreativeFormatDocument.entries
|
|
1701
1703
|
);
|
|
1702
|
-
var VSortCreativeFormat =
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1704
|
+
var VSortCreativeFormat = v__namespace.optional(
|
|
1705
|
+
v__namespace.pipe(
|
|
1706
|
+
v__namespace.array(
|
|
1707
|
+
v__namespace.picklist(
|
|
1706
1708
|
CreativeFormatSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`])
|
|
1707
1709
|
)
|
|
1708
1710
|
),
|
|
1709
|
-
|
|
1711
|
+
v__namespace.maxLength(CreativeFormatSortKeys.length)
|
|
1710
1712
|
)
|
|
1711
1713
|
);
|
|
1712
1714
|
var CreativeFormatVariantSortKeys = Object.keys(
|
|
1713
1715
|
SCreativeFormatVariantDocument.entries
|
|
1714
1716
|
);
|
|
1715
|
-
var VSortCreativeFormatVariant =
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1717
|
+
var VSortCreativeFormatVariant = v__namespace.optional(
|
|
1718
|
+
v__namespace.pipe(
|
|
1719
|
+
v__namespace.array(
|
|
1720
|
+
v__namespace.picklist(
|
|
1719
1721
|
CreativeFormatVariantSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`])
|
|
1720
1722
|
)
|
|
1721
1723
|
),
|
|
1722
|
-
|
|
1724
|
+
v__namespace.maxLength(CreativeFormatVariantSortKeys.length)
|
|
1723
1725
|
)
|
|
1724
1726
|
);
|
|
1725
1727
|
var MediumSortKeys = Object.keys(
|
|
1726
1728
|
SMediumDocument.entries
|
|
1727
1729
|
);
|
|
1728
|
-
var VSortMedium =
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1730
|
+
var VSortMedium = v__namespace.optional(
|
|
1731
|
+
v__namespace.pipe(
|
|
1732
|
+
v__namespace.array(
|
|
1733
|
+
v__namespace.picklist(MediumSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))
|
|
1732
1734
|
),
|
|
1733
|
-
|
|
1735
|
+
v__namespace.maxLength(MediumSortKeys.length)
|
|
1734
1736
|
)
|
|
1735
1737
|
);
|
|
1736
1738
|
var SourceSortKeys = Object.keys(
|
|
1737
1739
|
SSourceDocument.entries
|
|
1738
1740
|
);
|
|
1739
|
-
var VSortSource =
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1741
|
+
var VSortSource = v__namespace.optional(
|
|
1742
|
+
v__namespace.pipe(
|
|
1743
|
+
v__namespace.array(
|
|
1744
|
+
v__namespace.picklist(SourceSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))
|
|
1743
1745
|
),
|
|
1744
|
-
|
|
1746
|
+
v__namespace.maxLength(SourceSortKeys.length)
|
|
1745
1747
|
)
|
|
1746
1748
|
);
|
|
1747
1749
|
var TermSortKeys = Object.keys(
|
|
1748
1750
|
STermDocument.entries
|
|
1749
1751
|
);
|
|
1750
|
-
var VSortTerm =
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1752
|
+
var VSortTerm = v__namespace.optional(
|
|
1753
|
+
v__namespace.pipe(
|
|
1754
|
+
v__namespace.array(
|
|
1755
|
+
v__namespace.picklist(TermSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))
|
|
1754
1756
|
),
|
|
1755
|
-
|
|
1757
|
+
v__namespace.maxLength(TermSortKeys.length)
|
|
1756
1758
|
)
|
|
1757
1759
|
);
|
|
1758
1760
|
var WebsiteSortKeys = Object.keys(
|
|
1759
1761
|
SWebsiteDocument.entries
|
|
1760
1762
|
);
|
|
1761
|
-
var VSortWebsite =
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1763
|
+
var VSortWebsite = v__namespace.optional(
|
|
1764
|
+
v__namespace.pipe(
|
|
1765
|
+
v__namespace.array(
|
|
1766
|
+
v__namespace.picklist(WebsiteSortKeys.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))
|
|
1765
1767
|
),
|
|
1766
|
-
|
|
1768
|
+
v__namespace.maxLength(WebsiteSortKeys.length)
|
|
1767
1769
|
)
|
|
1768
1770
|
);
|
|
1769
1771
|
|
|
1770
1772
|
// src/actions/generics.actions.ts
|
|
1771
|
-
var SQueryParamsDocuments =
|
|
1772
|
-
|
|
1773
|
+
var SQueryParamsDocuments = v__namespace.optional(
|
|
1774
|
+
v__namespace.object({
|
|
1773
1775
|
page: VPage(),
|
|
1774
1776
|
size: VSize(WEBSITE_PAGINATION_MAX_SIZE_LIMIT),
|
|
1775
1777
|
sort: VSortDocument
|
|
1776
1778
|
})
|
|
1777
1779
|
);
|
|
1778
|
-
var SQueryParamsGroupUserDocuments =
|
|
1780
|
+
var SQueryParamsGroupUserDocuments = v__namespace.object({
|
|
1779
1781
|
page: VPage(),
|
|
1780
1782
|
size: VSize(GROUP_USER_PAGINATION_MAX_SIZE_LIMIT),
|
|
1781
1783
|
sort: VSortGroupUser,
|
|
1782
|
-
group:
|
|
1783
|
-
user:
|
|
1784
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
1785
|
+
user: v__namespace.optional(IsValidReferenceDocumentId)
|
|
1784
1786
|
});
|
|
1785
|
-
var SQuerySearchGroupUserDocuments =
|
|
1786
|
-
page:
|
|
1787
|
-
size:
|
|
1787
|
+
var SQuerySearchGroupUserDocuments = v__namespace.object({
|
|
1788
|
+
page: VPageRequired(),
|
|
1789
|
+
size: VSizeRequired(GROUP_USER_PAGINATION_MAX_SIZE_LIMIT),
|
|
1788
1790
|
sort: VSortGroupUser,
|
|
1789
1791
|
group: IsValidReferenceDocumentId,
|
|
1790
|
-
user:
|
|
1792
|
+
user: v__namespace.optional(IsValidReferenceDocumentId)
|
|
1791
1793
|
});
|
|
1792
|
-
var SCreateGroupUserDocument =
|
|
1794
|
+
var SCreateGroupUserDocument = v__namespace.object({
|
|
1793
1795
|
group: IsValidReferenceDocumentId,
|
|
1794
1796
|
user: IsValidReferenceDocumentId,
|
|
1795
1797
|
scopes: IsValidGroupUserScopes
|
|
1796
1798
|
});
|
|
1797
|
-
var SCreateGroupUserAssignMultipleUsers =
|
|
1799
|
+
var SCreateGroupUserAssignMultipleUsers = v__namespace.object({
|
|
1798
1800
|
group: IsValidReferenceDocumentId,
|
|
1799
|
-
user:
|
|
1800
|
-
|
|
1801
|
-
|
|
1801
|
+
user: v__namespace.pipe(
|
|
1802
|
+
v__namespace.array(IsValidReferenceDocumentId),
|
|
1803
|
+
v__namespace.minLength(1, "Please assign at least one user to this group")
|
|
1802
1804
|
),
|
|
1803
1805
|
scopes: IsValidGroupUserScopes
|
|
1804
1806
|
});
|
|
1805
|
-
var SReadGroupUserDocumentById =
|
|
1807
|
+
var SReadGroupUserDocumentById = v__namespace.object({
|
|
1806
1808
|
id: IsValidReferenceId
|
|
1807
1809
|
});
|
|
1808
|
-
var SReadGroupUserDocumentByDocumentId =
|
|
1810
|
+
var SReadGroupUserDocumentByDocumentId = v__namespace.object({
|
|
1809
1811
|
documentId: IsValidReferenceDocumentId
|
|
1810
1812
|
});
|
|
1811
|
-
var SUpdateGroupUserDocument =
|
|
1813
|
+
var SUpdateGroupUserDocument = v__namespace.object({
|
|
1812
1814
|
scopes: IsValidGroupUserScopes
|
|
1813
1815
|
});
|
|
1814
|
-
var SUpdateGroupUserDocumentRequest =
|
|
1816
|
+
var SUpdateGroupUserDocumentRequest = v__namespace.object({
|
|
1815
1817
|
documentId: IsValidReferenceDocumentId,
|
|
1816
1818
|
data: SUpdateGroupUserDocument
|
|
1817
1819
|
});
|
|
1818
|
-
var SDeleteGroupUserDocument =
|
|
1820
|
+
var SDeleteGroupUserDocument = v__namespace.object({
|
|
1819
1821
|
documentId: IsValidReferenceDocumentId
|
|
1820
1822
|
});
|
|
1821
|
-
var SVerifyGroupUserDocument =
|
|
1823
|
+
var SVerifyGroupUserDocument = v__namespace.object({
|
|
1822
1824
|
group: IsValidReferenceDocumentId,
|
|
1823
1825
|
user: IsValidReferenceDocumentId
|
|
1824
1826
|
});
|
|
1825
|
-
var SGroupUserDocumentStatus =
|
|
1826
|
-
verified:
|
|
1827
|
-
is_owner:
|
|
1828
|
-
groupUser:
|
|
1827
|
+
var SGroupUserDocumentStatus = v__namespace.object({
|
|
1828
|
+
verified: v__namespace.boolean(),
|
|
1829
|
+
is_owner: v__namespace.boolean(),
|
|
1830
|
+
groupUser: v__namespace.nullable(IsValidReferenceDocumentId),
|
|
1829
1831
|
scopes: IsValidGroupUserScopes
|
|
1830
1832
|
});
|
|
1831
|
-
var SQueryParamsGroupDocuments =
|
|
1833
|
+
var SQueryParamsGroupDocuments = v__namespace.object({
|
|
1832
1834
|
page: VPage(),
|
|
1833
1835
|
size: VSize(GROUP_PAGINATION_MAX_SIZE_LIMIT),
|
|
1834
1836
|
sort: VSortGroup,
|
|
1835
|
-
label:
|
|
1836
|
-
value:
|
|
1837
|
-
is_active:
|
|
1838
|
-
apply_value_to:
|
|
1839
|
-
apply_value_as:
|
|
1840
|
-
creator:
|
|
1841
|
-
});
|
|
1842
|
-
var SCreateGroupDocument =
|
|
1837
|
+
label: v__namespace.optional(IsValidLabel),
|
|
1838
|
+
value: v__namespace.optional(IsValidGroupValue),
|
|
1839
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
1840
|
+
apply_value_to: v__namespace.optional(IsValidApplyValueTo),
|
|
1841
|
+
apply_value_as: v__namespace.optional(IsValidApplyValueAs),
|
|
1842
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
1843
|
+
});
|
|
1844
|
+
var SCreateGroupDocument = v__namespace.object({
|
|
1843
1845
|
creator: IsValidReferenceDocumentId,
|
|
1844
1846
|
label: IsValidLabel,
|
|
1845
1847
|
value: IsValidGroupValue,
|
|
@@ -1848,13 +1850,13 @@ var SCreateGroupDocument = v62__namespace.object({
|
|
|
1848
1850
|
apply_value_to: IsValidApplyValueTo,
|
|
1849
1851
|
apply_value_as: IsValidApplyValueAs
|
|
1850
1852
|
});
|
|
1851
|
-
var SReadGroupDocumentById =
|
|
1853
|
+
var SReadGroupDocumentById = v__namespace.object({
|
|
1852
1854
|
id: IsValidReferenceId
|
|
1853
1855
|
});
|
|
1854
|
-
var SReadGroupDocumentByDocumentId =
|
|
1856
|
+
var SReadGroupDocumentByDocumentId = v__namespace.object({
|
|
1855
1857
|
documentId: IsValidReferenceDocumentId
|
|
1856
1858
|
});
|
|
1857
|
-
var SUpdateAsCreatorGroupDocument =
|
|
1859
|
+
var SUpdateAsCreatorGroupDocument = v__namespace.object({
|
|
1858
1860
|
label: IsValidOrUndefinedLabel,
|
|
1859
1861
|
value: IsValidOrUndefinedGroupValue,
|
|
1860
1862
|
description: IsValidOrUndefinedDescription,
|
|
@@ -1862,42 +1864,42 @@ var SUpdateAsCreatorGroupDocument = v62__namespace.object({
|
|
|
1862
1864
|
apply_value_to: IsValidOrUndefinedApplyValueTo,
|
|
1863
1865
|
apply_value_as: IsValidOrUndefinedApplyValueAs
|
|
1864
1866
|
});
|
|
1865
|
-
var SUpdateAsCreatorGroupDocumentRequest =
|
|
1867
|
+
var SUpdateAsCreatorGroupDocumentRequest = v__namespace.object({
|
|
1866
1868
|
documentId: IsValidReferenceDocumentId,
|
|
1867
1869
|
data: SUpdateAsCreatorGroupDocument
|
|
1868
1870
|
});
|
|
1869
|
-
var SUpdateAsInvitedGroupDocument =
|
|
1871
|
+
var SUpdateAsInvitedGroupDocument = v__namespace.object({
|
|
1870
1872
|
label: IsValidOrUndefinedLabel,
|
|
1871
1873
|
description: IsValidOrUndefinedDescription
|
|
1872
1874
|
});
|
|
1873
|
-
var SUpdateAsInvitedGroupDocumentRequest =
|
|
1875
|
+
var SUpdateAsInvitedGroupDocumentRequest = v__namespace.object({
|
|
1874
1876
|
documentId: IsValidReferenceDocumentId,
|
|
1875
1877
|
data: SUpdateAsInvitedGroupDocument
|
|
1876
1878
|
});
|
|
1877
|
-
var SUpdateGroupDocumentRequest =
|
|
1879
|
+
var SUpdateGroupDocumentRequest = v__namespace.union([
|
|
1878
1880
|
SUpdateAsCreatorGroupDocument,
|
|
1879
1881
|
SUpdateAsInvitedGroupDocument
|
|
1880
1882
|
]);
|
|
1881
|
-
var SDeleteGroupDocument =
|
|
1883
|
+
var SDeleteGroupDocument = v__namespace.object({
|
|
1882
1884
|
documentId: IsValidReferenceDocumentId
|
|
1883
1885
|
});
|
|
1884
|
-
var SUtmLinkBuilderPartUrlObject =
|
|
1886
|
+
var SUtmLinkBuilderPartUrlObject = v__namespace.object({
|
|
1885
1887
|
url: IsValidUrlDestination
|
|
1886
1888
|
});
|
|
1887
|
-
var SUtmLinkBuilderPartUrlDestinations =
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1889
|
+
var SUtmLinkBuilderPartUrlDestinations = v__namespace.pipe(
|
|
1890
|
+
v__namespace.array(SUtmLinkBuilderPartUrlObject),
|
|
1891
|
+
v__namespace.minLength(1, "Please provide at least one destination URL."),
|
|
1892
|
+
v__namespace.maxLength(10, "You can provide up to 10 destination URLs.")
|
|
1891
1893
|
);
|
|
1892
|
-
var SUtmLinkBuilderPartSources =
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1894
|
+
var SUtmLinkBuilderPartSources = v__namespace.pipe(
|
|
1895
|
+
v__namespace.array(IsValidUrlUtmPart),
|
|
1896
|
+
v__namespace.minLength(1, "Please select at least one source."),
|
|
1897
|
+
v__namespace.maxLength(10, "You can select up to 10 sources.")
|
|
1896
1898
|
);
|
|
1897
|
-
var SUtmLinkBuilderPartMediums =
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1899
|
+
var SUtmLinkBuilderPartMediums = v__namespace.pipe(
|
|
1900
|
+
v__namespace.array(IsValidUrlUtmPart),
|
|
1901
|
+
v__namespace.minLength(1, "Please select at least one medium."),
|
|
1902
|
+
v__namespace.maxLength(10, "You can select up to 10 mediums.")
|
|
1901
1903
|
);
|
|
1902
1904
|
var SUtmLinkBuilderPartCampaignDateFormatOptions = [
|
|
1903
1905
|
"no date",
|
|
@@ -1906,81 +1908,81 @@ var SUtmLinkBuilderPartCampaignDateFormatOptions = [
|
|
|
1906
1908
|
"monthly",
|
|
1907
1909
|
"on a specific date"
|
|
1908
1910
|
];
|
|
1909
|
-
var SUtmLinkBuilderPartCampaignDateFormat =
|
|
1911
|
+
var SUtmLinkBuilderPartCampaignDateFormat = v__namespace.picklist(
|
|
1910
1912
|
SUtmLinkBuilderPartCampaignDateFormatOptions,
|
|
1911
1913
|
"Please select a valid campaign date format."
|
|
1912
1914
|
);
|
|
1913
|
-
var SUtmLinkBuilderPartCampaignDateValueYear =
|
|
1915
|
+
var SUtmLinkBuilderPartCampaignDateValueYear = v__namespace.number(
|
|
1914
1916
|
"Please provide a valid year."
|
|
1915
1917
|
);
|
|
1916
|
-
var SUtmLinkBuilderPartCampaignDateValueQuarter =
|
|
1917
|
-
|
|
1918
|
+
var SUtmLinkBuilderPartCampaignDateValueQuarter = v__namespace.optional(
|
|
1919
|
+
v__namespace.nullable(v__namespace.number())
|
|
1918
1920
|
);
|
|
1919
|
-
var SUtmLinkBuilderPartCampaignDateValueMonth =
|
|
1920
|
-
|
|
1921
|
+
var SUtmLinkBuilderPartCampaignDateValueMonth = v__namespace.optional(
|
|
1922
|
+
v__namespace.nullable(v__namespace.number())
|
|
1921
1923
|
);
|
|
1922
|
-
var SUtmLinkBuilderPartCampaignDateValueDay =
|
|
1923
|
-
|
|
1924
|
+
var SUtmLinkBuilderPartCampaignDateValueDay = v__namespace.optional(
|
|
1925
|
+
v__namespace.nullable(v__namespace.number())
|
|
1924
1926
|
);
|
|
1925
|
-
var SUtmLinkBuilderPartCampaignDateValue =
|
|
1927
|
+
var SUtmLinkBuilderPartCampaignDateValue = v__namespace.object({
|
|
1926
1928
|
year: SUtmLinkBuilderPartCampaignDateValueYear,
|
|
1927
1929
|
quarter: SUtmLinkBuilderPartCampaignDateValueQuarter,
|
|
1928
1930
|
month: SUtmLinkBuilderPartCampaignDateValueMonth,
|
|
1929
1931
|
day: SUtmLinkBuilderPartCampaignDateValueDay
|
|
1930
1932
|
});
|
|
1931
|
-
var SUtmLinkBuilderPartCampaignDateObject =
|
|
1933
|
+
var SUtmLinkBuilderPartCampaignDateObject = v__namespace.object({
|
|
1932
1934
|
format: SUtmLinkBuilderPartCampaignDateFormat,
|
|
1933
1935
|
value: SUtmLinkBuilderPartCampaignDateValue
|
|
1934
1936
|
});
|
|
1935
|
-
var SUtmLinkBuilderPartCampaignPhase =
|
|
1936
|
-
var SUtmLinkBuilderPartCampaignProduct =
|
|
1937
|
-
var SUtmLinkBuilderPartCampaignTargeting =
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1937
|
+
var SUtmLinkBuilderPartCampaignPhase = v__namespace.optional(IsValidUrlUtmPart);
|
|
1938
|
+
var SUtmLinkBuilderPartCampaignProduct = v__namespace.optional(IsValidUrlUtmPart);
|
|
1939
|
+
var SUtmLinkBuilderPartCampaignTargeting = v__namespace.optional(
|
|
1940
|
+
v__namespace.pipe(
|
|
1941
|
+
v__namespace.array(IsValidUrlUtmPart),
|
|
1942
|
+
v__namespace.maxLength(10, "You can select up to 10 targeting audiences.")
|
|
1941
1943
|
)
|
|
1942
1944
|
);
|
|
1943
|
-
var SUtmLinkBuilderPartCampaignKey =
|
|
1944
|
-
var SUtmLinkBuilderPartCampaignObject =
|
|
1945
|
+
var SUtmLinkBuilderPartCampaignKey = v__namespace.optional(IsValidUrlUtmPart);
|
|
1946
|
+
var SUtmLinkBuilderPartCampaignObject = v__namespace.object({
|
|
1945
1947
|
campaign_phase: SUtmLinkBuilderPartCampaignPhase,
|
|
1946
1948
|
campaign_product: SUtmLinkBuilderPartCampaignProduct,
|
|
1947
1949
|
campaign_targeting: SUtmLinkBuilderPartCampaignTargeting,
|
|
1948
1950
|
campaign_key: SUtmLinkBuilderPartCampaignKey,
|
|
1949
1951
|
campaign_date: SUtmLinkBuilderPartCampaignDateObject
|
|
1950
1952
|
});
|
|
1951
|
-
var SUtmLinkBuilderPartCampaigns =
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1953
|
+
var SUtmLinkBuilderPartCampaigns = v__namespace.pipe(
|
|
1954
|
+
v__namespace.array(SUtmLinkBuilderPartCampaignObject),
|
|
1955
|
+
v__namespace.minLength(1, "Please provide at least one campaign."),
|
|
1956
|
+
v__namespace.maxLength(10, "You can provide up to 10 campaigns.")
|
|
1955
1957
|
);
|
|
1956
|
-
var SUtmLinkBuilderPartContents =
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1958
|
+
var SUtmLinkBuilderPartContents = v__namespace.optional(
|
|
1959
|
+
v__namespace.pipe(
|
|
1960
|
+
v__namespace.array(IsValidUrlUtmPart),
|
|
1961
|
+
v__namespace.maxLength(10, "You can select up to 10 contents.")
|
|
1960
1962
|
)
|
|
1961
1963
|
);
|
|
1962
|
-
var SUtmLinkBuilderPartCreativeFormatValue =
|
|
1963
|
-
var SUtmLinkBuilderPartCreativeFormatVariantValue =
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1964
|
+
var SUtmLinkBuilderPartCreativeFormatValue = v__namespace.optional(IsValidUrlUtmPart);
|
|
1965
|
+
var SUtmLinkBuilderPartCreativeFormatVariantValue = v__namespace.optional(
|
|
1966
|
+
v__namespace.pipe(
|
|
1967
|
+
v__namespace.array(IsValidUrlUtmPart),
|
|
1968
|
+
v__namespace.maxLength(10, "You can select up to 10 creative format variations.")
|
|
1967
1969
|
)
|
|
1968
1970
|
);
|
|
1969
|
-
var SUtmLinkBuilderPartCreativeFormatObject =
|
|
1971
|
+
var SUtmLinkBuilderPartCreativeFormatObject = v__namespace.object({
|
|
1970
1972
|
creative_format: SUtmLinkBuilderPartCreativeFormatValue,
|
|
1971
1973
|
creative_format_variants: SUtmLinkBuilderPartCreativeFormatVariantValue
|
|
1972
1974
|
});
|
|
1973
|
-
var SUtmLinkBuilderPartCreativeFormats =
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1975
|
+
var SUtmLinkBuilderPartCreativeFormats = v__namespace.optional(
|
|
1976
|
+
v__namespace.pipe(
|
|
1977
|
+
v__namespace.array(SUtmLinkBuilderPartCreativeFormatObject),
|
|
1978
|
+
v__namespace.maxLength(10, "You can select up to 10 creative formats.")
|
|
1977
1979
|
)
|
|
1978
1980
|
);
|
|
1979
|
-
var SUtmLinkBuilderPartTerms =
|
|
1980
|
-
|
|
1981
|
+
var SUtmLinkBuilderPartTerms = v__namespace.optional(
|
|
1982
|
+
v__namespace.pipe(v__namespace.array(IsValidUrlUtmPart), v__namespace.maxLength(10, "You can select up to 10 terms."))
|
|
1981
1983
|
);
|
|
1982
|
-
var SUtmLinkBuilderPartCampaignId =
|
|
1983
|
-
var SUtmLinkBuilderTableForm =
|
|
1984
|
+
var SUtmLinkBuilderPartCampaignId = v__namespace.optional(IsValidUrlUtmPart);
|
|
1985
|
+
var SUtmLinkBuilderTableForm = v__namespace.object({
|
|
1984
1986
|
group: IsValidReferenceDocumentId,
|
|
1985
1987
|
url_destinations: SUtmLinkBuilderPartUrlDestinations,
|
|
1986
1988
|
sources: SUtmLinkBuilderPartSources,
|
|
@@ -1991,62 +1993,62 @@ var SUtmLinkBuilderTableForm = v62__namespace.object({
|
|
|
1991
1993
|
terms: SUtmLinkBuilderPartTerms,
|
|
1992
1994
|
campaign_id: SUtmLinkBuilderPartCampaignId
|
|
1993
1995
|
});
|
|
1994
|
-
var SStripeCheckoutLineItem =
|
|
1996
|
+
var SStripeCheckoutLineItem = v__namespace.object({
|
|
1995
1997
|
price: IsValidPriceId,
|
|
1996
|
-
quantity:
|
|
1998
|
+
quantity: v__namespace.pipe(v__namespace.number(), v__namespace.minValue(1), v__namespace.maxValue(1))
|
|
1997
1999
|
});
|
|
1998
|
-
var SStripeCheckoutCreateSession =
|
|
1999
|
-
line_items:
|
|
2000
|
-
mode:
|
|
2000
|
+
var SStripeCheckoutCreateSession = v__namespace.object({
|
|
2001
|
+
line_items: v__namespace.pipe(v__namespace.array(SStripeCheckoutLineItem), v__namespace.minLength(1), v__namespace.maxLength(10)),
|
|
2002
|
+
mode: v__namespace.picklist(["payment", "subscription"]),
|
|
2001
2003
|
success_url: IsValidOrUndefinedUrlDestination,
|
|
2002
2004
|
cancel_url: IsValidOrUndefinedUrlDestination
|
|
2003
2005
|
});
|
|
2004
|
-
var SQueryParamsTrackingLinkDocuments =
|
|
2006
|
+
var SQueryParamsTrackingLinkDocuments = v__namespace.object({
|
|
2005
2007
|
documentId: IsValidReferenceDocumentId,
|
|
2006
2008
|
page: VPage(),
|
|
2007
2009
|
size: VSize(TRACKING_LINK_PAGINATION_MAX_SIZE_LIMIT),
|
|
2008
2010
|
sort: VSortTrackingLink,
|
|
2009
|
-
is_active:
|
|
2010
|
-
value:
|
|
2011
|
-
destination:
|
|
2012
|
-
protocol:
|
|
2013
|
-
domain:
|
|
2014
|
-
path:
|
|
2015
|
-
query:
|
|
2016
|
-
fragment:
|
|
2017
|
-
utm_source:
|
|
2018
|
-
utm_medium:
|
|
2019
|
-
utm_campaign:
|
|
2020
|
-
utm_creative_format:
|
|
2021
|
-
utm_content:
|
|
2022
|
-
utm_term:
|
|
2023
|
-
utm_id:
|
|
2024
|
-
group:
|
|
2025
|
-
creator:
|
|
2026
|
-
});
|
|
2027
|
-
var SQuerySearchTrackingLinkDocuments =
|
|
2011
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2012
|
+
value: v__namespace.optional(IsValidUrlDestination),
|
|
2013
|
+
destination: v__namespace.optional(IsValidUrlDestination),
|
|
2014
|
+
protocol: v__namespace.optional(IsValidUrlProtocol),
|
|
2015
|
+
domain: v__namespace.optional(IsValidUrlDomain),
|
|
2016
|
+
path: v__namespace.optional(IsValidUrlPath),
|
|
2017
|
+
query: v__namespace.optional(IsValidUrlQuery),
|
|
2018
|
+
fragment: v__namespace.optional(IsValidUrlFragment),
|
|
2019
|
+
utm_source: v__namespace.optional(IsValidUrlUtmSource),
|
|
2020
|
+
utm_medium: v__namespace.optional(IsValidUrlUtmMedium),
|
|
2021
|
+
utm_campaign: v__namespace.optional(IsValidUrlUtmCampaign),
|
|
2022
|
+
utm_creative_format: v__namespace.optional(IsValidUrlUtmCreativeFormat),
|
|
2023
|
+
utm_content: v__namespace.optional(IsValidUrlUtmContent),
|
|
2024
|
+
utm_term: v__namespace.optional(IsValidUrlUtmTerm),
|
|
2025
|
+
utm_id: v__namespace.optional(IsValidUrlUtmId),
|
|
2026
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2027
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2028
|
+
});
|
|
2029
|
+
var SQuerySearchTrackingLinkDocuments = v__namespace.object({
|
|
2028
2030
|
group: IsValidReferenceDocumentId,
|
|
2029
|
-
page:
|
|
2030
|
-
size:
|
|
2031
|
+
page: VPageRequired(),
|
|
2032
|
+
size: VSizeRequired(TRACKING_LINK_PAGINATION_MAX_SIZE_LIMIT),
|
|
2031
2033
|
sort: VSortTrackingLink,
|
|
2032
|
-
creator:
|
|
2033
|
-
is_active:
|
|
2034
|
-
value:
|
|
2035
|
-
destination:
|
|
2036
|
-
protocol:
|
|
2037
|
-
domain:
|
|
2038
|
-
path:
|
|
2039
|
-
query:
|
|
2040
|
-
fragment:
|
|
2041
|
-
utm_source:
|
|
2042
|
-
utm_medium:
|
|
2043
|
-
utm_campaign:
|
|
2044
|
-
utm_creative_format:
|
|
2045
|
-
utm_content:
|
|
2046
|
-
utm_term:
|
|
2047
|
-
utm_id:
|
|
2048
|
-
});
|
|
2049
|
-
var SCreateTrackingLinkDocument =
|
|
2034
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2035
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2036
|
+
value: v__namespace.optional(IsValidUrlDestination),
|
|
2037
|
+
destination: v__namespace.optional(IsValidUrlDestination),
|
|
2038
|
+
protocol: v__namespace.optional(IsValidUrlProtocol),
|
|
2039
|
+
domain: v__namespace.optional(IsValidUrlDomain),
|
|
2040
|
+
path: v__namespace.optional(IsValidUrlPath),
|
|
2041
|
+
query: v__namespace.optional(IsValidUrlQuery),
|
|
2042
|
+
fragment: v__namespace.optional(IsValidUrlFragment),
|
|
2043
|
+
utm_source: v__namespace.optional(IsValidUrlUtmSource),
|
|
2044
|
+
utm_medium: v__namespace.optional(IsValidUrlUtmMedium),
|
|
2045
|
+
utm_campaign: v__namespace.optional(IsValidUrlUtmCampaign),
|
|
2046
|
+
utm_creative_format: v__namespace.optional(IsValidUrlUtmCreativeFormat),
|
|
2047
|
+
utm_content: v__namespace.optional(IsValidUrlUtmContent),
|
|
2048
|
+
utm_term: v__namespace.optional(IsValidUrlUtmTerm),
|
|
2049
|
+
utm_id: v__namespace.optional(IsValidUrlUtmId)
|
|
2050
|
+
});
|
|
2051
|
+
var SCreateTrackingLinkDocument = v__namespace.object({
|
|
2050
2052
|
group: IsValidReferenceDocumentId,
|
|
2051
2053
|
creator: IsValidReferenceDocumentId,
|
|
2052
2054
|
is_active: IsValidIsActive,
|
|
@@ -2065,30 +2067,30 @@ var SCreateTrackingLinkDocument = v62__namespace.object({
|
|
|
2065
2067
|
utm_term: IsValidUrlUtmTerm,
|
|
2066
2068
|
utm_id: IsValidUrlUtmId
|
|
2067
2069
|
});
|
|
2068
|
-
var SCreateMultipleTrackingLinkDocuments =
|
|
2069
|
-
tracking_links:
|
|
2070
|
-
|
|
2071
|
-
|
|
2070
|
+
var SCreateMultipleTrackingLinkDocuments = v__namespace.object({
|
|
2071
|
+
tracking_links: v__namespace.pipe(
|
|
2072
|
+
v__namespace.array(SCreateTrackingLinkDocument),
|
|
2073
|
+
v__namespace.minLength(1, "Please create at least one tracking link")
|
|
2072
2074
|
)
|
|
2073
2075
|
});
|
|
2074
|
-
var SCreatePreviewTrackingLinkDocument =
|
|
2076
|
+
var SCreatePreviewTrackingLinkDocument = v__namespace.object({
|
|
2075
2077
|
...SCreateTrackingLinkDocument.entries,
|
|
2076
|
-
is_duplicate:
|
|
2077
|
-
is_saved:
|
|
2078
|
+
is_duplicate: v__namespace.boolean(),
|
|
2079
|
+
is_saved: v__namespace.boolean()
|
|
2078
2080
|
});
|
|
2079
|
-
var SCreatePreviewMultipleTrackingLinkDocuments =
|
|
2080
|
-
tracking_links:
|
|
2081
|
-
|
|
2082
|
-
|
|
2081
|
+
var SCreatePreviewMultipleTrackingLinkDocuments = v__namespace.object({
|
|
2082
|
+
tracking_links: v__namespace.pipe(
|
|
2083
|
+
v__namespace.array(SCreatePreviewTrackingLinkDocument),
|
|
2084
|
+
v__namespace.minLength(1, "Please create at least one tracking link")
|
|
2083
2085
|
)
|
|
2084
2086
|
});
|
|
2085
|
-
var SReadTrackingLinkDocumentById =
|
|
2087
|
+
var SReadTrackingLinkDocumentById = v__namespace.object({
|
|
2086
2088
|
id: IsValidReferenceId
|
|
2087
2089
|
});
|
|
2088
|
-
var SReadTrackingLinkDocumentByDocumentId =
|
|
2090
|
+
var SReadTrackingLinkDocumentByDocumentId = v__namespace.object({
|
|
2089
2091
|
documentId: IsValidReferenceDocumentId
|
|
2090
2092
|
});
|
|
2091
|
-
var SUpdateAsCreatorTrackingLinkDocument =
|
|
2093
|
+
var SUpdateAsCreatorTrackingLinkDocument = v__namespace.object({
|
|
2092
2094
|
is_active: IsValidOrUndefinedIsActive,
|
|
2093
2095
|
value: IsValidOrUndefinedUrlDestination,
|
|
2094
2096
|
destination: IsValidOrUndefinedUrlDestination,
|
|
@@ -2105,11 +2107,11 @@ var SUpdateAsCreatorTrackingLinkDocument = v62__namespace.object({
|
|
|
2105
2107
|
utm_term: IsValidOrUndefinedUrlUtmTerm,
|
|
2106
2108
|
utm_id: IsValidOrUndefinedUrlUtmId
|
|
2107
2109
|
});
|
|
2108
|
-
var SUpdateAsCreatorTrackingLinkDocumentRequest =
|
|
2110
|
+
var SUpdateAsCreatorTrackingLinkDocumentRequest = v__namespace.object({
|
|
2109
2111
|
documentId: IsValidReferenceDocumentId,
|
|
2110
2112
|
data: SUpdateAsCreatorTrackingLinkDocument
|
|
2111
2113
|
});
|
|
2112
|
-
var SUpdateAsInvitedTrackingLinkDocument =
|
|
2114
|
+
var SUpdateAsInvitedTrackingLinkDocument = v__namespace.object({
|
|
2113
2115
|
is_active: IsValidOrUndefinedIsActive,
|
|
2114
2116
|
value: IsValidOrUndefinedUrlDestination,
|
|
2115
2117
|
destination: IsValidOrUndefinedUrlDestination,
|
|
@@ -2126,18 +2128,18 @@ var SUpdateAsInvitedTrackingLinkDocument = v62__namespace.object({
|
|
|
2126
2128
|
utm_term: IsValidOrUndefinedUrlUtmTerm,
|
|
2127
2129
|
utm_id: IsValidOrUndefinedUrlUtmId
|
|
2128
2130
|
});
|
|
2129
|
-
var SUpdateAsInvitedTrackingLinkDocumentRequest =
|
|
2131
|
+
var SUpdateAsInvitedTrackingLinkDocumentRequest = v__namespace.object({
|
|
2130
2132
|
documentId: IsValidReferenceDocumentId,
|
|
2131
2133
|
data: SUpdateAsInvitedTrackingLinkDocument
|
|
2132
2134
|
});
|
|
2133
|
-
var SUpdateTrackingLinkDocumentRequest =
|
|
2135
|
+
var SUpdateTrackingLinkDocumentRequest = v__namespace.union([
|
|
2134
2136
|
SUpdateAsCreatorTrackingLinkDocument,
|
|
2135
2137
|
SUpdateAsInvitedTrackingLinkDocument
|
|
2136
2138
|
]);
|
|
2137
|
-
var SDeleteTrackingLinkDocument =
|
|
2139
|
+
var SDeleteTrackingLinkDocument = v__namespace.object({
|
|
2138
2140
|
documentId: IsValidReferenceDocumentId
|
|
2139
2141
|
});
|
|
2140
|
-
var SQueryParamsUserAccountDocuments =
|
|
2142
|
+
var SQueryParamsUserAccountDocuments = v__namespace.object({
|
|
2141
2143
|
page: VPage(),
|
|
2142
2144
|
size: VSize(USER_ACCOUNT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2143
2145
|
sort: VSortUserAccount,
|
|
@@ -2151,7 +2153,7 @@ var SQueryParamsUserAccountDocuments = v62__namespace.object({
|
|
|
2151
2153
|
trial_period_end_after: IsValidOrUndefinedTrialPeriodEnd,
|
|
2152
2154
|
trial_period_end_before: IsValidOrUndefinedTrialPeriodEnd
|
|
2153
2155
|
});
|
|
2154
|
-
var SCreateUserAccountDocument =
|
|
2156
|
+
var SCreateUserAccountDocument = v__namespace.object({
|
|
2155
2157
|
user: IsValidReferenceDocumentId,
|
|
2156
2158
|
customer_id: IsValidOrUndefinedCustomerId,
|
|
2157
2159
|
subscription_id: IsValidOrUndefinedSubscriptionId,
|
|
@@ -2160,13 +2162,13 @@ var SCreateUserAccountDocument = v62__namespace.object({
|
|
|
2160
2162
|
current_period_end: IsValidCurrentPeriodEnd,
|
|
2161
2163
|
trial_period_end: IsValidOrUndefinedTrialPeriodEnd
|
|
2162
2164
|
});
|
|
2163
|
-
var SReadUserAccountDocumentById =
|
|
2165
|
+
var SReadUserAccountDocumentById = v__namespace.object({
|
|
2164
2166
|
id: IsValidReferenceId
|
|
2165
2167
|
});
|
|
2166
|
-
var SReadUserAccountDocumentByDocumentId =
|
|
2168
|
+
var SReadUserAccountDocumentByDocumentId = v__namespace.object({
|
|
2167
2169
|
documentId: IsValidReferenceDocumentId
|
|
2168
2170
|
});
|
|
2169
|
-
var SUpdateUserAccountDocument =
|
|
2171
|
+
var SUpdateUserAccountDocument = v__namespace.object({
|
|
2170
2172
|
customer_id: IsValidOrUndefinedCustomerId,
|
|
2171
2173
|
subscription_id: IsValidOrUndefinedSubscriptionId,
|
|
2172
2174
|
subscription_status: IsValidOrUndefinedSubscriptionStatus,
|
|
@@ -2174,12 +2176,12 @@ var SUpdateUserAccountDocument = v62__namespace.object({
|
|
|
2174
2176
|
current_period_end: IsValidOrUndefinedCurrentPeriodEnd,
|
|
2175
2177
|
trial_period_end: IsValidOrUndefinedTrialPeriodEnd
|
|
2176
2178
|
});
|
|
2177
|
-
var SQueryParamsUserLimitationDocuments =
|
|
2179
|
+
var SQueryParamsUserLimitationDocuments = v__namespace.object({
|
|
2178
2180
|
page: VPage(),
|
|
2179
2181
|
size: VSize(USER_LIMITATION_PAGINATION_MAX_SIZE_LIMIT),
|
|
2180
2182
|
sort: VSortUserLimitations
|
|
2181
2183
|
});
|
|
2182
|
-
var SCreateUserLimitationsDocument =
|
|
2184
|
+
var SCreateUserLimitationsDocument = v__namespace.object({
|
|
2183
2185
|
user: IsValidReferenceDocumentId,
|
|
2184
2186
|
limit_groups: IsValidUserLimitationNumberFallback,
|
|
2185
2187
|
limit_group_users: IsValidUserLimitationNumberFallback,
|
|
@@ -2197,13 +2199,13 @@ var SCreateUserLimitationsDocument = v62__namespace.object({
|
|
|
2197
2199
|
limit_creative_format_variants: IsValidUserLimitationNumberFallback,
|
|
2198
2200
|
limit_terms: IsValidUserLimitationNumberFallback
|
|
2199
2201
|
});
|
|
2200
|
-
var SReadUserLimitationsDocumentById =
|
|
2202
|
+
var SReadUserLimitationsDocumentById = v__namespace.object({
|
|
2201
2203
|
id: IsValidReferenceId
|
|
2202
2204
|
});
|
|
2203
|
-
var SReadUserLimitationsDocumentByDocumentId =
|
|
2205
|
+
var SReadUserLimitationsDocumentByDocumentId = v__namespace.object({
|
|
2204
2206
|
documentId: IsValidReferenceDocumentId
|
|
2205
2207
|
});
|
|
2206
|
-
var SUpdateUserLimitationsDocument =
|
|
2208
|
+
var SUpdateUserLimitationsDocument = v__namespace.object({
|
|
2207
2209
|
limit_groups: IsValidOrUndefinedUserLimitationNumber,
|
|
2208
2210
|
limit_group_users: IsValidOrUndefinedUserLimitationNumber,
|
|
2209
2211
|
limit_websites: IsValidOrUndefinedUserLimitationNumber,
|
|
@@ -2220,21 +2222,21 @@ var SUpdateUserLimitationsDocument = v62__namespace.object({
|
|
|
2220
2222
|
limit_creative_format_variants: IsValidOrUndefinedUserLimitationNumber,
|
|
2221
2223
|
limit_terms: IsValidOrUndefinedUserLimitationNumber
|
|
2222
2224
|
});
|
|
2223
|
-
var SQueryParamsUserDocuments =
|
|
2225
|
+
var SQueryParamsUserDocuments = v__namespace.object({
|
|
2224
2226
|
page: VPage(),
|
|
2225
2227
|
size: VSize(USER_PAGINATION_MAX_SIZE_LIMIT),
|
|
2226
2228
|
sort: VSortUser,
|
|
2227
|
-
email:
|
|
2228
|
-
username:
|
|
2229
|
-
confirmed:
|
|
2230
|
-
blocked:
|
|
2229
|
+
email: v__namespace.optional(IsValidEmail),
|
|
2230
|
+
username: v__namespace.optional(IsValidUsername),
|
|
2231
|
+
confirmed: v__namespace.optional(IsValidIsActive),
|
|
2232
|
+
blocked: v__namespace.optional(IsValidIsActive)
|
|
2231
2233
|
});
|
|
2232
|
-
var SQueryParamsUserDocumentsByIdentifier =
|
|
2233
|
-
identifier:
|
|
2234
|
+
var SQueryParamsUserDocumentsByIdentifier = v__namespace.object({
|
|
2235
|
+
identifier: v__namespace.pipe(v__namespace.string(), v__namespace.maxLength(255)),
|
|
2234
2236
|
page: VPage(),
|
|
2235
2237
|
size: VSize(USER_PAGINATION_MAX_SIZE_LIMIT)
|
|
2236
2238
|
});
|
|
2237
|
-
var SCreateUserDocument =
|
|
2239
|
+
var SCreateUserDocument = v__namespace.object({
|
|
2238
2240
|
username: IsValidUsername,
|
|
2239
2241
|
email: IsValidEmail,
|
|
2240
2242
|
password: IsValidPassword,
|
|
@@ -2242,47 +2244,47 @@ var SCreateUserDocument = v62__namespace.object({
|
|
|
2242
2244
|
confirmed: IsValidIsBoolean,
|
|
2243
2245
|
role: IsValidReferenceId
|
|
2244
2246
|
});
|
|
2245
|
-
var SReadUserDocumentById =
|
|
2247
|
+
var SReadUserDocumentById = v__namespace.object({
|
|
2246
2248
|
id: IsValidReferenceId
|
|
2247
2249
|
});
|
|
2248
|
-
var SReadUserDocumentByDocumentId =
|
|
2250
|
+
var SReadUserDocumentByDocumentId = v__namespace.object({
|
|
2249
2251
|
documentId: IsValidReferenceDocumentId
|
|
2250
2252
|
});
|
|
2251
|
-
var SUpdateUserDocument =
|
|
2253
|
+
var SUpdateUserDocument = v__namespace.object({
|
|
2252
2254
|
username: IsValidOrUndefinedUsername,
|
|
2253
2255
|
email: IsValidOrUndefinedEmail,
|
|
2254
2256
|
password: IsValidOrUndefinedPassword,
|
|
2255
2257
|
blocked: IsValidOrUndefinedIsBoolean,
|
|
2256
2258
|
confirmed: IsValidOrUndefinedIsBoolean,
|
|
2257
|
-
role:
|
|
2259
|
+
role: v__namespace.optional(IsValidReferenceId)
|
|
2258
2260
|
});
|
|
2259
|
-
var SQueryParamsCampaignIdDocuments =
|
|
2261
|
+
var SQueryParamsCampaignIdDocuments = v__namespace.object({
|
|
2260
2262
|
page: VPage(),
|
|
2261
2263
|
size: VSize(CAMPAIGN_ID_PAGINATION_MAX_SIZE_LIMIT),
|
|
2262
2264
|
sort: VSortCampaignId,
|
|
2263
|
-
cost:
|
|
2264
|
-
min_cost:
|
|
2265
|
-
max_cost:
|
|
2266
|
-
label:
|
|
2267
|
-
value:
|
|
2268
|
-
is_active:
|
|
2269
|
-
group:
|
|
2270
|
-
creator:
|
|
2271
|
-
});
|
|
2272
|
-
var SQuerySearchCampaignIdDocuments =
|
|
2265
|
+
cost: v__namespace.optional(IsValidCost),
|
|
2266
|
+
min_cost: v__namespace.optional(IsValidCost),
|
|
2267
|
+
max_cost: v__namespace.optional(IsValidCost),
|
|
2268
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2269
|
+
value: v__namespace.optional(IsValidValue),
|
|
2270
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2271
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2272
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2273
|
+
});
|
|
2274
|
+
var SQuerySearchCampaignIdDocuments = v__namespace.object({
|
|
2273
2275
|
group: IsValidReferenceDocumentId,
|
|
2274
|
-
page:
|
|
2275
|
-
size:
|
|
2276
|
+
page: VPageRequired(),
|
|
2277
|
+
size: VSizeRequired(CAMPAIGN_ID_PAGINATION_MAX_SIZE_LIMIT),
|
|
2276
2278
|
sort: VSortCampaignId,
|
|
2277
|
-
cost:
|
|
2278
|
-
min_cost:
|
|
2279
|
-
max_cost:
|
|
2280
|
-
label:
|
|
2281
|
-
value:
|
|
2282
|
-
is_active:
|
|
2283
|
-
creator:
|
|
2284
|
-
});
|
|
2285
|
-
var SCreateCampaignIdDocument =
|
|
2279
|
+
cost: v__namespace.optional(IsValidCost),
|
|
2280
|
+
min_cost: v__namespace.optional(IsValidCost),
|
|
2281
|
+
max_cost: v__namespace.optional(IsValidCost),
|
|
2282
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2283
|
+
value: v__namespace.optional(IsValidValue),
|
|
2284
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2285
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2286
|
+
});
|
|
2287
|
+
var SCreateCampaignIdDocument = v__namespace.object({
|
|
2286
2288
|
group: IsValidReferenceDocumentId,
|
|
2287
2289
|
creator: IsValidReferenceDocumentId,
|
|
2288
2290
|
cost: IsValidCost,
|
|
@@ -2291,66 +2293,66 @@ var SCreateCampaignIdDocument = v62__namespace.object({
|
|
|
2291
2293
|
description: IsValidDescription,
|
|
2292
2294
|
is_active: IsValidIsActive
|
|
2293
2295
|
});
|
|
2294
|
-
var SCreateMultipleCampaignIdDocuments =
|
|
2295
|
-
campaign_ids:
|
|
2296
|
-
|
|
2297
|
-
|
|
2296
|
+
var SCreateMultipleCampaignIdDocuments = v__namespace.object({
|
|
2297
|
+
campaign_ids: v__namespace.pipe(
|
|
2298
|
+
v__namespace.array(SCreateCampaignIdDocument),
|
|
2299
|
+
v__namespace.minLength(1, "At least one campaign ID is required")
|
|
2298
2300
|
)
|
|
2299
2301
|
});
|
|
2300
|
-
var SReadCampaignIdDocumentById =
|
|
2302
|
+
var SReadCampaignIdDocumentById = v__namespace.object({
|
|
2301
2303
|
id: IsValidReferenceId
|
|
2302
2304
|
});
|
|
2303
|
-
var SReadCampaignIdDocumentByDocumentId =
|
|
2305
|
+
var SReadCampaignIdDocumentByDocumentId = v__namespace.object({
|
|
2304
2306
|
documentId: IsValidReferenceDocumentId
|
|
2305
2307
|
});
|
|
2306
|
-
var SUpdateAsCreatorCampaignIdDocument =
|
|
2308
|
+
var SUpdateAsCreatorCampaignIdDocument = v__namespace.object({
|
|
2307
2309
|
cost: IsValidOrUndefinedCost,
|
|
2308
2310
|
label: IsValidOrUndefinedLabel,
|
|
2309
2311
|
value: IsValidOrUndefinedValue,
|
|
2310
2312
|
description: IsValidOrUndefinedDescription,
|
|
2311
2313
|
is_active: IsValidOrUndefinedIsActive
|
|
2312
2314
|
});
|
|
2313
|
-
var SUpdateAsCreatorCampaignIdDocumentRequest =
|
|
2315
|
+
var SUpdateAsCreatorCampaignIdDocumentRequest = v__namespace.object({
|
|
2314
2316
|
documentId: IsValidReferenceDocumentId,
|
|
2315
2317
|
data: SUpdateAsCreatorCampaignIdDocument
|
|
2316
2318
|
});
|
|
2317
|
-
var SUpdateAsInvitedCampaignIdDocument =
|
|
2319
|
+
var SUpdateAsInvitedCampaignIdDocument = v__namespace.object({
|
|
2318
2320
|
label: IsValidOrUndefinedLabel,
|
|
2319
2321
|
description: IsValidOrUndefinedDescription,
|
|
2320
2322
|
is_active: IsValidOrUndefinedIsActive
|
|
2321
2323
|
});
|
|
2322
|
-
var SUpdateAsInvitedCampaignIdDocumentRequest =
|
|
2324
|
+
var SUpdateAsInvitedCampaignIdDocumentRequest = v__namespace.object({
|
|
2323
2325
|
documentId: IsValidReferenceDocumentId,
|
|
2324
2326
|
data: SUpdateAsInvitedCampaignIdDocument
|
|
2325
2327
|
});
|
|
2326
|
-
var SUpdateCampaignIdDocumentRequest =
|
|
2328
|
+
var SUpdateCampaignIdDocumentRequest = v__namespace.union([
|
|
2327
2329
|
SUpdateAsCreatorCampaignIdDocument,
|
|
2328
2330
|
SUpdateAsInvitedCampaignIdDocument
|
|
2329
2331
|
]);
|
|
2330
|
-
var SDeleteCampaignIdDocument =
|
|
2332
|
+
var SDeleteCampaignIdDocument = v__namespace.object({
|
|
2331
2333
|
documentId: IsValidReferenceDocumentId
|
|
2332
2334
|
});
|
|
2333
|
-
var SQueryParamsCampaignKeyDocuments =
|
|
2335
|
+
var SQueryParamsCampaignKeyDocuments = v__namespace.object({
|
|
2334
2336
|
page: VPage(),
|
|
2335
2337
|
size: VSize(CAMPAIGN_KEY_PAGINATION_MAX_SIZE_LIMIT),
|
|
2336
2338
|
sort: VSortCampaignKey,
|
|
2337
|
-
label:
|
|
2338
|
-
value:
|
|
2339
|
-
is_active:
|
|
2340
|
-
group:
|
|
2341
|
-
creator:
|
|
2339
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2340
|
+
value: v__namespace.optional(IsValidValue),
|
|
2341
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2342
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2343
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2342
2344
|
});
|
|
2343
|
-
var SQuerySearchCampaignKeyDocuments =
|
|
2345
|
+
var SQuerySearchCampaignKeyDocuments = v__namespace.object({
|
|
2344
2346
|
group: IsValidReferenceDocumentId,
|
|
2345
|
-
page:
|
|
2346
|
-
size:
|
|
2347
|
+
page: VPageRequired(),
|
|
2348
|
+
size: VSizeRequired(CAMPAIGN_KEY_PAGINATION_MAX_SIZE_LIMIT),
|
|
2347
2349
|
sort: VSortCampaignKey,
|
|
2348
|
-
label:
|
|
2349
|
-
value:
|
|
2350
|
-
is_active:
|
|
2351
|
-
creator:
|
|
2350
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2351
|
+
value: v__namespace.optional(IsValidValue),
|
|
2352
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2353
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2352
2354
|
});
|
|
2353
|
-
var SCreateCampaignKeyDocument =
|
|
2355
|
+
var SCreateCampaignKeyDocument = v__namespace.object({
|
|
2354
2356
|
group: IsValidReferenceDocumentId,
|
|
2355
2357
|
creator: IsValidReferenceDocumentId,
|
|
2356
2358
|
label: IsValidLabel,
|
|
@@ -2358,66 +2360,66 @@ var SCreateCampaignKeyDocument = v62__namespace.object({
|
|
|
2358
2360
|
description: IsValidDescription,
|
|
2359
2361
|
is_active: IsValidIsActive
|
|
2360
2362
|
});
|
|
2361
|
-
var SCreateMultipleCampaignKeyDocuments =
|
|
2362
|
-
campaign_keys:
|
|
2363
|
-
|
|
2364
|
-
|
|
2363
|
+
var SCreateMultipleCampaignKeyDocuments = v__namespace.object({
|
|
2364
|
+
campaign_keys: v__namespace.pipe(
|
|
2365
|
+
v__namespace.array(SCreateCampaignKeyDocument),
|
|
2366
|
+
v__namespace.minLength(1, "At least one campaign key is required")
|
|
2365
2367
|
)
|
|
2366
2368
|
});
|
|
2367
|
-
var SReadCampaignKeyDocumentById =
|
|
2369
|
+
var SReadCampaignKeyDocumentById = v__namespace.object({
|
|
2368
2370
|
id: IsValidReferenceId
|
|
2369
2371
|
});
|
|
2370
|
-
var SReadCampaignKeyDocumentByDocumentId =
|
|
2372
|
+
var SReadCampaignKeyDocumentByDocumentId = v__namespace.object({
|
|
2371
2373
|
documentId: IsValidReferenceDocumentId
|
|
2372
2374
|
});
|
|
2373
|
-
var SUpdateAsCreatorCampaignKeyDocument =
|
|
2375
|
+
var SUpdateAsCreatorCampaignKeyDocument = v__namespace.object({
|
|
2374
2376
|
label: IsValidOrUndefinedLabel,
|
|
2375
2377
|
value: IsValidOrUndefinedValue,
|
|
2376
2378
|
description: IsValidOrUndefinedDescription,
|
|
2377
2379
|
is_active: IsValidOrUndefinedIsActive
|
|
2378
2380
|
});
|
|
2379
|
-
var SUpdateAsCreatorCampaignKeyDocumentRequest =
|
|
2381
|
+
var SUpdateAsCreatorCampaignKeyDocumentRequest = v__namespace.object({
|
|
2380
2382
|
documentId: IsValidReferenceDocumentId,
|
|
2381
2383
|
data: SUpdateAsCreatorCampaignKeyDocument
|
|
2382
2384
|
});
|
|
2383
|
-
var SUpdateAsInvitedCampaignKeyDocument =
|
|
2385
|
+
var SUpdateAsInvitedCampaignKeyDocument = v__namespace.object({
|
|
2384
2386
|
label: IsValidOrUndefinedLabel,
|
|
2385
2387
|
description: IsValidDescription,
|
|
2386
2388
|
is_active: IsValidOrUndefinedIsActive
|
|
2387
2389
|
});
|
|
2388
|
-
var SUpdateAsInvitedCampaignKeyDocumentRequest =
|
|
2390
|
+
var SUpdateAsInvitedCampaignKeyDocumentRequest = v__namespace.object({
|
|
2389
2391
|
documentId: IsValidReferenceDocumentId,
|
|
2390
2392
|
data: SUpdateAsInvitedCampaignKeyDocument
|
|
2391
2393
|
});
|
|
2392
|
-
var SUpdateCampaignKeyDocumentRequest =
|
|
2394
|
+
var SUpdateCampaignKeyDocumentRequest = v__namespace.union([
|
|
2393
2395
|
SUpdateAsCreatorCampaignKeyDocument,
|
|
2394
2396
|
SUpdateAsInvitedCampaignKeyDocument
|
|
2395
2397
|
]);
|
|
2396
|
-
var SDeleteCampaignKeyDocument =
|
|
2398
|
+
var SDeleteCampaignKeyDocument = v__namespace.object({
|
|
2397
2399
|
documentId: IsValidReferenceDocumentId
|
|
2398
2400
|
});
|
|
2399
|
-
var SQueryParamsCampaignPhaseDocuments =
|
|
2401
|
+
var SQueryParamsCampaignPhaseDocuments = v__namespace.object({
|
|
2400
2402
|
documentId: IsValidReferenceDocumentId,
|
|
2401
2403
|
page: VPage(),
|
|
2402
2404
|
size: VSize(CAMPAIGN_PHASE_PAGINATION_MAX_SIZE_LIMIT),
|
|
2403
2405
|
sort: VSortCampaignPhase,
|
|
2404
|
-
label:
|
|
2405
|
-
value:
|
|
2406
|
-
is_active:
|
|
2407
|
-
group:
|
|
2408
|
-
creator:
|
|
2406
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2407
|
+
value: v__namespace.optional(IsValidValue),
|
|
2408
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2409
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2410
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2409
2411
|
});
|
|
2410
|
-
var SQuerySearchCampaignPhaseDocuments =
|
|
2412
|
+
var SQuerySearchCampaignPhaseDocuments = v__namespace.object({
|
|
2411
2413
|
group: IsValidReferenceDocumentId,
|
|
2412
|
-
page:
|
|
2413
|
-
size:
|
|
2414
|
+
page: VPageRequired(),
|
|
2415
|
+
size: VSizeRequired(CAMPAIGN_PHASE_PAGINATION_MAX_SIZE_LIMIT),
|
|
2414
2416
|
sort: VSortCampaignPhase,
|
|
2415
|
-
label:
|
|
2416
|
-
value:
|
|
2417
|
-
is_active:
|
|
2418
|
-
creator:
|
|
2417
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2418
|
+
value: v__namespace.optional(IsValidValue),
|
|
2419
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2420
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2419
2421
|
});
|
|
2420
|
-
var SCreateCampaignPhaseDocument =
|
|
2422
|
+
var SCreateCampaignPhaseDocument = v__namespace.object({
|
|
2421
2423
|
group: IsValidReferenceDocumentId,
|
|
2422
2424
|
creator: IsValidReferenceDocumentId,
|
|
2423
2425
|
label: IsValidLabel,
|
|
@@ -2425,65 +2427,65 @@ var SCreateCampaignPhaseDocument = v62__namespace.object({
|
|
|
2425
2427
|
description: IsValidDescription,
|
|
2426
2428
|
is_active: IsValidIsActive
|
|
2427
2429
|
});
|
|
2428
|
-
var SCreateMultipleCampaignPhaseDocuments =
|
|
2429
|
-
campaign_phases:
|
|
2430
|
-
|
|
2431
|
-
|
|
2430
|
+
var SCreateMultipleCampaignPhaseDocuments = v__namespace.object({
|
|
2431
|
+
campaign_phases: v__namespace.pipe(
|
|
2432
|
+
v__namespace.array(SCreateCampaignPhaseDocument),
|
|
2433
|
+
v__namespace.minLength(1, "At least one campaign phase is required")
|
|
2432
2434
|
)
|
|
2433
2435
|
});
|
|
2434
|
-
var SReadCampaignPhaseDocumentById =
|
|
2436
|
+
var SReadCampaignPhaseDocumentById = v__namespace.object({
|
|
2435
2437
|
id: IsValidReferenceId
|
|
2436
2438
|
});
|
|
2437
|
-
var SReadCampaignPhaseDocumentByDocumentId =
|
|
2439
|
+
var SReadCampaignPhaseDocumentByDocumentId = v__namespace.object({
|
|
2438
2440
|
documentId: IsValidReferenceDocumentId
|
|
2439
2441
|
});
|
|
2440
|
-
var SUpdateAsCreatorCampaignPhaseDocument =
|
|
2442
|
+
var SUpdateAsCreatorCampaignPhaseDocument = v__namespace.object({
|
|
2441
2443
|
label: IsValidOrUndefinedLabel,
|
|
2442
2444
|
value: IsValidOrUndefinedValue,
|
|
2443
2445
|
description: IsValidOrUndefinedDescription,
|
|
2444
2446
|
is_active: IsValidOrUndefinedIsActive
|
|
2445
2447
|
});
|
|
2446
|
-
var SUpdateAsCreatorCampaignPhaseDocumentRequest =
|
|
2448
|
+
var SUpdateAsCreatorCampaignPhaseDocumentRequest = v__namespace.object({
|
|
2447
2449
|
documentId: IsValidReferenceDocumentId,
|
|
2448
2450
|
data: SUpdateAsCreatorCampaignPhaseDocument
|
|
2449
2451
|
});
|
|
2450
|
-
var SUpdateAsInvitedCampaignPhaseDocument =
|
|
2452
|
+
var SUpdateAsInvitedCampaignPhaseDocument = v__namespace.object({
|
|
2451
2453
|
label: IsValidOrUndefinedLabel,
|
|
2452
2454
|
description: IsValidDescription,
|
|
2453
2455
|
is_active: IsValidOrUndefinedIsActive
|
|
2454
2456
|
});
|
|
2455
|
-
var SUpdateAsInvitedCampaignPhaseDocumentRequest =
|
|
2457
|
+
var SUpdateAsInvitedCampaignPhaseDocumentRequest = v__namespace.object({
|
|
2456
2458
|
documentId: IsValidReferenceDocumentId,
|
|
2457
2459
|
data: SUpdateAsInvitedCampaignPhaseDocument
|
|
2458
2460
|
});
|
|
2459
|
-
var SUpdateCampaignPhaseDocumentRequest =
|
|
2461
|
+
var SUpdateCampaignPhaseDocumentRequest = v__namespace.union([
|
|
2460
2462
|
SUpdateAsCreatorCampaignPhaseDocument,
|
|
2461
2463
|
SUpdateAsInvitedCampaignPhaseDocument
|
|
2462
2464
|
]);
|
|
2463
|
-
var SDeleteCampaignPhaseDocument =
|
|
2465
|
+
var SDeleteCampaignPhaseDocument = v__namespace.object({
|
|
2464
2466
|
documentId: IsValidReferenceDocumentId
|
|
2465
2467
|
});
|
|
2466
|
-
var SQueryParamsCampaignProductDocuments =
|
|
2468
|
+
var SQueryParamsCampaignProductDocuments = v__namespace.object({
|
|
2467
2469
|
page: VPage(),
|
|
2468
2470
|
size: VSize(CAMPAIGN_PRODUCT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2469
2471
|
sort: VSortCampaignProduct,
|
|
2470
|
-
label:
|
|
2471
|
-
value:
|
|
2472
|
-
is_active:
|
|
2473
|
-
group:
|
|
2474
|
-
creator:
|
|
2472
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2473
|
+
value: v__namespace.optional(IsValidValue),
|
|
2474
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2475
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2476
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2475
2477
|
});
|
|
2476
|
-
var SQuerySearchCampaignProductDocuments =
|
|
2478
|
+
var SQuerySearchCampaignProductDocuments = v__namespace.object({
|
|
2477
2479
|
group: IsValidReferenceDocumentId,
|
|
2478
|
-
page:
|
|
2479
|
-
size:
|
|
2480
|
+
page: VPageRequired(),
|
|
2481
|
+
size: VSizeRequired(CAMPAIGN_PRODUCT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2480
2482
|
sort: VSortCampaignProduct,
|
|
2481
|
-
label:
|
|
2482
|
-
value:
|
|
2483
|
-
is_active:
|
|
2484
|
-
creator:
|
|
2483
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2484
|
+
value: v__namespace.optional(IsValidValue),
|
|
2485
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2486
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2485
2487
|
});
|
|
2486
|
-
var SCreateCampaignProductDocument =
|
|
2488
|
+
var SCreateCampaignProductDocument = v__namespace.object({
|
|
2487
2489
|
group: IsValidReferenceDocumentId,
|
|
2488
2490
|
creator: IsValidReferenceDocumentId,
|
|
2489
2491
|
label: IsValidLabel,
|
|
@@ -2491,66 +2493,66 @@ var SCreateCampaignProductDocument = v62__namespace.object({
|
|
|
2491
2493
|
description: IsValidDescription,
|
|
2492
2494
|
is_active: IsValidIsActive
|
|
2493
2495
|
});
|
|
2494
|
-
var SCreateMultipleCampaignProductDocuments =
|
|
2495
|
-
campaign_products:
|
|
2496
|
-
|
|
2497
|
-
|
|
2496
|
+
var SCreateMultipleCampaignProductDocuments = v__namespace.object({
|
|
2497
|
+
campaign_products: v__namespace.pipe(
|
|
2498
|
+
v__namespace.array(SCreateCampaignProductDocument),
|
|
2499
|
+
v__namespace.minLength(1, "At least one campaign product is required")
|
|
2498
2500
|
)
|
|
2499
2501
|
});
|
|
2500
|
-
var SReadCampaignProductDocumentById =
|
|
2502
|
+
var SReadCampaignProductDocumentById = v__namespace.object({
|
|
2501
2503
|
id: IsValidReferenceId
|
|
2502
2504
|
});
|
|
2503
|
-
var SReadCampaignProductDocumentByDocumentId =
|
|
2505
|
+
var SReadCampaignProductDocumentByDocumentId = v__namespace.object({
|
|
2504
2506
|
documentId: IsValidReferenceDocumentId
|
|
2505
2507
|
});
|
|
2506
|
-
var SUpdateAsCreatorCampaignProductDocument =
|
|
2508
|
+
var SUpdateAsCreatorCampaignProductDocument = v__namespace.object({
|
|
2507
2509
|
label: IsValidOrUndefinedLabel,
|
|
2508
2510
|
value: IsValidOrUndefinedValue,
|
|
2509
2511
|
description: IsValidOrUndefinedDescription,
|
|
2510
2512
|
is_active: IsValidOrUndefinedIsActive
|
|
2511
2513
|
});
|
|
2512
|
-
var SUpdateAsCreatorCampaignProductDocumentRequest =
|
|
2514
|
+
var SUpdateAsCreatorCampaignProductDocumentRequest = v__namespace.object({
|
|
2513
2515
|
documentId: IsValidReferenceDocumentId,
|
|
2514
2516
|
data: SUpdateAsCreatorCampaignProductDocument
|
|
2515
2517
|
});
|
|
2516
|
-
var SUpdateAsInvitedCampaignProductDocument =
|
|
2518
|
+
var SUpdateAsInvitedCampaignProductDocument = v__namespace.object({
|
|
2517
2519
|
label: IsValidOrUndefinedLabel,
|
|
2518
2520
|
description: IsValidDescription,
|
|
2519
2521
|
is_active: IsValidOrUndefinedIsActive
|
|
2520
2522
|
});
|
|
2521
|
-
var SUpdateAsInvitedCampaignProductDocumentRequest =
|
|
2523
|
+
var SUpdateAsInvitedCampaignProductDocumentRequest = v__namespace.object({
|
|
2522
2524
|
documentId: IsValidReferenceDocumentId,
|
|
2523
2525
|
data: SUpdateAsInvitedCampaignProductDocument
|
|
2524
2526
|
});
|
|
2525
|
-
var SUpdateCampaignProductDocumentRequest =
|
|
2527
|
+
var SUpdateCampaignProductDocumentRequest = v__namespace.union([
|
|
2526
2528
|
SUpdateAsCreatorCampaignProductDocument,
|
|
2527
2529
|
SUpdateAsInvitedCampaignProductDocument
|
|
2528
2530
|
]);
|
|
2529
|
-
var SDeleteCampaignProductDocument =
|
|
2531
|
+
var SDeleteCampaignProductDocument = v__namespace.object({
|
|
2530
2532
|
documentId: IsValidReferenceDocumentId
|
|
2531
2533
|
});
|
|
2532
|
-
var SQueryParamsCampaignTargetDocuments =
|
|
2534
|
+
var SQueryParamsCampaignTargetDocuments = v__namespace.object({
|
|
2533
2535
|
documentId: IsValidReferenceDocumentId,
|
|
2534
2536
|
page: VPage(),
|
|
2535
2537
|
size: VSize(CAMPAIGN_PRODUCT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2536
2538
|
sort: VSortCampaignTarget,
|
|
2537
|
-
label:
|
|
2538
|
-
value:
|
|
2539
|
-
is_active:
|
|
2540
|
-
group:
|
|
2541
|
-
creator:
|
|
2539
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2540
|
+
value: v__namespace.optional(IsValidValue),
|
|
2541
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2542
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2543
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2542
2544
|
});
|
|
2543
|
-
var SQuerySearchCampaignTargetDocuments =
|
|
2545
|
+
var SQuerySearchCampaignTargetDocuments = v__namespace.object({
|
|
2544
2546
|
group: IsValidReferenceDocumentId,
|
|
2545
|
-
page:
|
|
2546
|
-
size:
|
|
2547
|
+
page: VPageRequired(),
|
|
2548
|
+
size: VSizeRequired(CAMPAIGN_PRODUCT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2547
2549
|
sort: VSortCampaignTarget,
|
|
2548
|
-
label:
|
|
2549
|
-
value:
|
|
2550
|
-
is_active:
|
|
2551
|
-
creator:
|
|
2550
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2551
|
+
value: v__namespace.optional(IsValidValue),
|
|
2552
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2553
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2552
2554
|
});
|
|
2553
|
-
var SCreateCampaignTargetDocument =
|
|
2555
|
+
var SCreateCampaignTargetDocument = v__namespace.object({
|
|
2554
2556
|
group: IsValidReferenceDocumentId,
|
|
2555
2557
|
creator: IsValidReferenceDocumentId,
|
|
2556
2558
|
label: IsValidLabel,
|
|
@@ -2558,65 +2560,65 @@ var SCreateCampaignTargetDocument = v62__namespace.object({
|
|
|
2558
2560
|
description: IsValidDescription,
|
|
2559
2561
|
is_active: IsValidIsActive
|
|
2560
2562
|
});
|
|
2561
|
-
var SCreateMultipleCampaignTargetDocuments =
|
|
2562
|
-
campaign_targets:
|
|
2563
|
-
|
|
2564
|
-
|
|
2563
|
+
var SCreateMultipleCampaignTargetDocuments = v__namespace.object({
|
|
2564
|
+
campaign_targets: v__namespace.pipe(
|
|
2565
|
+
v__namespace.array(SCreateCampaignTargetDocument),
|
|
2566
|
+
v__namespace.minLength(1, "At least one campaign target is required")
|
|
2565
2567
|
)
|
|
2566
2568
|
});
|
|
2567
|
-
var SReadCampaignTargetDocumentById =
|
|
2569
|
+
var SReadCampaignTargetDocumentById = v__namespace.object({
|
|
2568
2570
|
id: IsValidReferenceId
|
|
2569
2571
|
});
|
|
2570
|
-
var SReadCampaignTargetDocumentByDocumentId =
|
|
2572
|
+
var SReadCampaignTargetDocumentByDocumentId = v__namespace.object({
|
|
2571
2573
|
documentId: IsValidReferenceDocumentId
|
|
2572
2574
|
});
|
|
2573
|
-
var SUpdateAsCreatorCampaignTargetDocument =
|
|
2575
|
+
var SUpdateAsCreatorCampaignTargetDocument = v__namespace.object({
|
|
2574
2576
|
label: IsValidOrUndefinedLabel,
|
|
2575
2577
|
value: IsValidOrUndefinedValue,
|
|
2576
2578
|
description: IsValidOrUndefinedDescription,
|
|
2577
2579
|
is_active: IsValidOrUndefinedIsActive
|
|
2578
2580
|
});
|
|
2579
|
-
var SUpdateAsCreatorCampaignTargetDocumentRequest =
|
|
2581
|
+
var SUpdateAsCreatorCampaignTargetDocumentRequest = v__namespace.object({
|
|
2580
2582
|
documentId: IsValidReferenceDocumentId,
|
|
2581
2583
|
data: SUpdateAsCreatorCampaignTargetDocument
|
|
2582
2584
|
});
|
|
2583
|
-
var SUpdateAsInvitedCampaignTargetDocument =
|
|
2585
|
+
var SUpdateAsInvitedCampaignTargetDocument = v__namespace.object({
|
|
2584
2586
|
label: IsValidOrUndefinedLabel,
|
|
2585
2587
|
description: IsValidDescription,
|
|
2586
2588
|
is_active: IsValidOrUndefinedIsActive
|
|
2587
2589
|
});
|
|
2588
|
-
var SUpdateAsInvitedCampaignTargetDocumentRequest =
|
|
2590
|
+
var SUpdateAsInvitedCampaignTargetDocumentRequest = v__namespace.object({
|
|
2589
2591
|
documentId: IsValidReferenceDocumentId,
|
|
2590
2592
|
data: SUpdateAsInvitedCampaignTargetDocument
|
|
2591
2593
|
});
|
|
2592
|
-
var SUpdateCampaignTargetDocumentRequest =
|
|
2594
|
+
var SUpdateCampaignTargetDocumentRequest = v__namespace.union([
|
|
2593
2595
|
SUpdateAsCreatorCampaignTargetDocument,
|
|
2594
2596
|
SUpdateAsInvitedCampaignTargetDocument
|
|
2595
2597
|
]);
|
|
2596
|
-
var SDeleteCampaignTargetDocument =
|
|
2598
|
+
var SDeleteCampaignTargetDocument = v__namespace.object({
|
|
2597
2599
|
documentId: IsValidReferenceDocumentId
|
|
2598
2600
|
});
|
|
2599
|
-
var SQueryParamsContentDocuments =
|
|
2601
|
+
var SQueryParamsContentDocuments = v__namespace.object({
|
|
2600
2602
|
page: VPage(),
|
|
2601
2603
|
size: VSize(CONTENT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2602
2604
|
sort: VSortContent,
|
|
2603
|
-
label:
|
|
2604
|
-
value:
|
|
2605
|
-
is_active:
|
|
2606
|
-
group:
|
|
2607
|
-
creator:
|
|
2605
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2606
|
+
value: v__namespace.optional(IsValidValue),
|
|
2607
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2608
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2609
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2608
2610
|
});
|
|
2609
|
-
var SQuerySearchContentDocuments =
|
|
2611
|
+
var SQuerySearchContentDocuments = v__namespace.object({
|
|
2610
2612
|
group: IsValidReferenceDocumentId,
|
|
2611
|
-
page:
|
|
2612
|
-
size:
|
|
2613
|
+
page: VPageRequired(),
|
|
2614
|
+
size: VSizeRequired(CONTENT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2613
2615
|
sort: VSortContent,
|
|
2614
|
-
label:
|
|
2615
|
-
value:
|
|
2616
|
-
is_active:
|
|
2617
|
-
creator:
|
|
2616
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2617
|
+
value: v__namespace.optional(IsValidValue),
|
|
2618
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2619
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2618
2620
|
});
|
|
2619
|
-
var SCreateContentDocument =
|
|
2621
|
+
var SCreateContentDocument = v__namespace.object({
|
|
2620
2622
|
group: IsValidReferenceDocumentId,
|
|
2621
2623
|
creator: IsValidReferenceDocumentId,
|
|
2622
2624
|
label: IsValidLabel,
|
|
@@ -2624,65 +2626,65 @@ var SCreateContentDocument = v62__namespace.object({
|
|
|
2624
2626
|
description: IsValidDescription,
|
|
2625
2627
|
is_active: IsValidIsActive
|
|
2626
2628
|
});
|
|
2627
|
-
var SCreateMultipleContentDocuments =
|
|
2628
|
-
contents:
|
|
2629
|
-
|
|
2630
|
-
|
|
2629
|
+
var SCreateMultipleContentDocuments = v__namespace.object({
|
|
2630
|
+
contents: v__namespace.pipe(
|
|
2631
|
+
v__namespace.array(SCreateContentDocument),
|
|
2632
|
+
v__namespace.minLength(1, "At least one term is required")
|
|
2631
2633
|
)
|
|
2632
2634
|
});
|
|
2633
|
-
var SReadContentDocumentById =
|
|
2635
|
+
var SReadContentDocumentById = v__namespace.object({
|
|
2634
2636
|
id: IsValidReferenceId
|
|
2635
2637
|
});
|
|
2636
|
-
var SReadContentDocumentByDocumentId =
|
|
2638
|
+
var SReadContentDocumentByDocumentId = v__namespace.object({
|
|
2637
2639
|
documentId: IsValidReferenceDocumentId
|
|
2638
2640
|
});
|
|
2639
|
-
var SUpdateAsCreatorContentDocument =
|
|
2641
|
+
var SUpdateAsCreatorContentDocument = v__namespace.object({
|
|
2640
2642
|
label: IsValidOrUndefinedLabel,
|
|
2641
2643
|
value: IsValidOrUndefinedValue,
|
|
2642
2644
|
description: IsValidOrUndefinedDescription,
|
|
2643
2645
|
is_active: IsValidOrUndefinedIsActive
|
|
2644
2646
|
});
|
|
2645
|
-
var SUpdateAsCreatorContentDocumentRequest =
|
|
2647
|
+
var SUpdateAsCreatorContentDocumentRequest = v__namespace.object({
|
|
2646
2648
|
documentId: IsValidReferenceDocumentId,
|
|
2647
2649
|
data: SUpdateAsCreatorContentDocument
|
|
2648
2650
|
});
|
|
2649
|
-
var SUpdateAsInvitedContentDocument =
|
|
2651
|
+
var SUpdateAsInvitedContentDocument = v__namespace.object({
|
|
2650
2652
|
label: IsValidOrUndefinedLabel,
|
|
2651
2653
|
description: IsValidDescription,
|
|
2652
2654
|
is_active: IsValidOrUndefinedIsActive
|
|
2653
2655
|
});
|
|
2654
|
-
var SUpdateAsInvitedContentDocumentRequest =
|
|
2656
|
+
var SUpdateAsInvitedContentDocumentRequest = v__namespace.object({
|
|
2655
2657
|
documentId: IsValidReferenceDocumentId,
|
|
2656
2658
|
data: SUpdateAsInvitedContentDocument
|
|
2657
2659
|
});
|
|
2658
|
-
var SUpdateContentDocumentRequest =
|
|
2660
|
+
var SUpdateContentDocumentRequest = v__namespace.union([
|
|
2659
2661
|
SUpdateAsCreatorContentDocument,
|
|
2660
2662
|
SUpdateAsInvitedContentDocument
|
|
2661
2663
|
]);
|
|
2662
|
-
var SDeleteContentDocument =
|
|
2664
|
+
var SDeleteContentDocument = v__namespace.object({
|
|
2663
2665
|
documentId: IsValidReferenceDocumentId
|
|
2664
2666
|
});
|
|
2665
|
-
var SQueryParamsCreativeFormatVariantDocuments =
|
|
2667
|
+
var SQueryParamsCreativeFormatVariantDocuments = v__namespace.object({
|
|
2666
2668
|
page: VPage(),
|
|
2667
2669
|
size: VSize(CREATIVE_FORMAT_VARIANT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2668
2670
|
sort: VSortCreativeFormatVariant,
|
|
2669
|
-
label:
|
|
2670
|
-
value:
|
|
2671
|
-
is_active:
|
|
2672
|
-
group:
|
|
2673
|
-
creator:
|
|
2671
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2672
|
+
value: v__namespace.optional(IsValidValue),
|
|
2673
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2674
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2675
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2674
2676
|
});
|
|
2675
|
-
var SQuerySearchCreativeFormatVariantDocuments =
|
|
2677
|
+
var SQuerySearchCreativeFormatVariantDocuments = v__namespace.object({
|
|
2676
2678
|
group: IsValidReferenceDocumentId,
|
|
2677
|
-
page:
|
|
2678
|
-
size:
|
|
2679
|
+
page: VPageRequired(),
|
|
2680
|
+
size: VSizeRequired(CREATIVE_FORMAT_VARIANT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2679
2681
|
sort: VSortCreativeFormatVariant,
|
|
2680
|
-
label:
|
|
2681
|
-
value:
|
|
2682
|
-
is_active:
|
|
2683
|
-
creator:
|
|
2682
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2683
|
+
value: v__namespace.optional(IsValidValue),
|
|
2684
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2685
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2684
2686
|
});
|
|
2685
|
-
var SCreateCreativeFormatVariantDocument =
|
|
2687
|
+
var SCreateCreativeFormatVariantDocument = v__namespace.object({
|
|
2686
2688
|
group: IsValidReferenceDocumentId,
|
|
2687
2689
|
creator: IsValidReferenceDocumentId,
|
|
2688
2690
|
label: IsValidLabel,
|
|
@@ -2690,65 +2692,65 @@ var SCreateCreativeFormatVariantDocument = v62__namespace.object({
|
|
|
2690
2692
|
description: IsValidDescription,
|
|
2691
2693
|
is_active: IsValidIsActive
|
|
2692
2694
|
});
|
|
2693
|
-
var SCreateMultipleCreativeFormatVariantDocuments =
|
|
2694
|
-
creative_format_variants:
|
|
2695
|
-
|
|
2696
|
-
|
|
2695
|
+
var SCreateMultipleCreativeFormatVariantDocuments = v__namespace.object({
|
|
2696
|
+
creative_format_variants: v__namespace.pipe(
|
|
2697
|
+
v__namespace.array(SCreateCreativeFormatVariantDocument),
|
|
2698
|
+
v__namespace.minLength(1, "At least one term is required")
|
|
2697
2699
|
)
|
|
2698
2700
|
});
|
|
2699
|
-
var SReadCreativeFormatVariantDocumentById =
|
|
2701
|
+
var SReadCreativeFormatVariantDocumentById = v__namespace.object({
|
|
2700
2702
|
id: IsValidReferenceId
|
|
2701
2703
|
});
|
|
2702
|
-
var SReadCreativeFormatVariantDocumentByDocumentId =
|
|
2704
|
+
var SReadCreativeFormatVariantDocumentByDocumentId = v__namespace.object({
|
|
2703
2705
|
documentId: IsValidReferenceDocumentId
|
|
2704
2706
|
});
|
|
2705
|
-
var SUpdateAsCreatorCreativeFormatVariantDocument =
|
|
2707
|
+
var SUpdateAsCreatorCreativeFormatVariantDocument = v__namespace.object({
|
|
2706
2708
|
label: IsValidOrUndefinedLabel,
|
|
2707
2709
|
value: IsValidOrUndefinedValue,
|
|
2708
2710
|
description: IsValidOrUndefinedDescription,
|
|
2709
2711
|
is_active: IsValidOrUndefinedIsActive
|
|
2710
2712
|
});
|
|
2711
|
-
var SUpdateAsCreatorCreativeFormatVariantDocumentRequest =
|
|
2713
|
+
var SUpdateAsCreatorCreativeFormatVariantDocumentRequest = v__namespace.object({
|
|
2712
2714
|
documentId: IsValidReferenceDocumentId,
|
|
2713
2715
|
data: SUpdateAsCreatorCreativeFormatVariantDocument
|
|
2714
2716
|
});
|
|
2715
|
-
var SUpdateAsInvitedCreativeFormatVariantDocument =
|
|
2717
|
+
var SUpdateAsInvitedCreativeFormatVariantDocument = v__namespace.object({
|
|
2716
2718
|
label: IsValidOrUndefinedLabel,
|
|
2717
2719
|
description: IsValidDescription,
|
|
2718
2720
|
is_active: IsValidOrUndefinedIsActive
|
|
2719
2721
|
});
|
|
2720
|
-
var SUpdateAsInvitedCreativeFormatVariantDocumentRequest =
|
|
2722
|
+
var SUpdateAsInvitedCreativeFormatVariantDocumentRequest = v__namespace.object({
|
|
2721
2723
|
documentId: IsValidReferenceDocumentId,
|
|
2722
2724
|
data: SUpdateAsInvitedCreativeFormatVariantDocument
|
|
2723
2725
|
});
|
|
2724
|
-
var SUpdateCreativeFormatVariantDocumentRequest =
|
|
2726
|
+
var SUpdateCreativeFormatVariantDocumentRequest = v__namespace.union([
|
|
2725
2727
|
SUpdateAsCreatorCreativeFormatVariantDocument,
|
|
2726
2728
|
SUpdateAsInvitedCreativeFormatVariantDocument
|
|
2727
2729
|
]);
|
|
2728
|
-
var SDeleteCreativeFormatVariantDocument =
|
|
2730
|
+
var SDeleteCreativeFormatVariantDocument = v__namespace.object({
|
|
2729
2731
|
documentId: IsValidReferenceDocumentId
|
|
2730
2732
|
});
|
|
2731
|
-
var SQueryParamsCreativeFormatDocuments =
|
|
2733
|
+
var SQueryParamsCreativeFormatDocuments = v__namespace.object({
|
|
2732
2734
|
page: VPage(),
|
|
2733
2735
|
size: VSize(CREATIVE_FORMAT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2734
2736
|
sort: VSortCreativeFormat,
|
|
2735
|
-
label:
|
|
2736
|
-
value:
|
|
2737
|
-
is_active:
|
|
2738
|
-
group:
|
|
2739
|
-
creator:
|
|
2737
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2738
|
+
value: v__namespace.optional(IsValidValue),
|
|
2739
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2740
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2741
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2740
2742
|
});
|
|
2741
|
-
var SQuerySearchCreativeFormatDocuments =
|
|
2743
|
+
var SQuerySearchCreativeFormatDocuments = v__namespace.object({
|
|
2742
2744
|
group: IsValidReferenceDocumentId,
|
|
2743
|
-
page:
|
|
2744
|
-
size:
|
|
2745
|
+
page: VPageRequired(),
|
|
2746
|
+
size: VSizeRequired(CREATIVE_FORMAT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2745
2747
|
sort: VSortCreativeFormat,
|
|
2746
|
-
label:
|
|
2747
|
-
value:
|
|
2748
|
-
is_active:
|
|
2749
|
-
creator:
|
|
2748
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2749
|
+
value: v__namespace.optional(IsValidValue),
|
|
2750
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2751
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2750
2752
|
});
|
|
2751
|
-
var SCreateCreativeFormatDocument =
|
|
2753
|
+
var SCreateCreativeFormatDocument = v__namespace.object({
|
|
2752
2754
|
group: IsValidReferenceDocumentId,
|
|
2753
2755
|
creator: IsValidReferenceDocumentId,
|
|
2754
2756
|
label: IsValidLabel,
|
|
@@ -2756,65 +2758,65 @@ var SCreateCreativeFormatDocument = v62__namespace.object({
|
|
|
2756
2758
|
description: IsValidDescription,
|
|
2757
2759
|
is_active: IsValidIsActive
|
|
2758
2760
|
});
|
|
2759
|
-
var SCreateMultipleCreativeFormatDocuments =
|
|
2760
|
-
creative_formats:
|
|
2761
|
-
|
|
2762
|
-
|
|
2761
|
+
var SCreateMultipleCreativeFormatDocuments = v__namespace.object({
|
|
2762
|
+
creative_formats: v__namespace.pipe(
|
|
2763
|
+
v__namespace.array(SCreateCreativeFormatDocument),
|
|
2764
|
+
v__namespace.minLength(1, "At least one creative format is required")
|
|
2763
2765
|
)
|
|
2764
2766
|
});
|
|
2765
|
-
var SReadCreativeFormatDocumentById =
|
|
2767
|
+
var SReadCreativeFormatDocumentById = v__namespace.object({
|
|
2766
2768
|
id: IsValidReferenceId
|
|
2767
2769
|
});
|
|
2768
|
-
var SReadCreativeFormatDocumentByDocumentId =
|
|
2770
|
+
var SReadCreativeFormatDocumentByDocumentId = v__namespace.object({
|
|
2769
2771
|
documentId: IsValidReferenceDocumentId
|
|
2770
2772
|
});
|
|
2771
|
-
var SUpdateAsCreatorCreativeFormatDocument =
|
|
2773
|
+
var SUpdateAsCreatorCreativeFormatDocument = v__namespace.object({
|
|
2772
2774
|
label: IsValidOrUndefinedLabel,
|
|
2773
2775
|
value: IsValidOrUndefinedValue,
|
|
2774
2776
|
description: IsValidOrUndefinedDescription,
|
|
2775
2777
|
is_active: IsValidOrUndefinedIsActive
|
|
2776
2778
|
});
|
|
2777
|
-
var SUpdateAsCreatorCreativeFormatDocumentRequest =
|
|
2779
|
+
var SUpdateAsCreatorCreativeFormatDocumentRequest = v__namespace.object({
|
|
2778
2780
|
documentId: IsValidReferenceDocumentId,
|
|
2779
2781
|
data: SUpdateAsCreatorCreativeFormatDocument
|
|
2780
2782
|
});
|
|
2781
|
-
var SUpdateAsInvitedCreativeFormatDocument =
|
|
2783
|
+
var SUpdateAsInvitedCreativeFormatDocument = v__namespace.object({
|
|
2782
2784
|
label: IsValidOrUndefinedLabel,
|
|
2783
2785
|
description: IsValidDescription,
|
|
2784
2786
|
is_active: IsValidOrUndefinedIsActive
|
|
2785
2787
|
});
|
|
2786
|
-
var SUpdateAsInvitedCreativeFormatDocumentRequest =
|
|
2788
|
+
var SUpdateAsInvitedCreativeFormatDocumentRequest = v__namespace.object({
|
|
2787
2789
|
documentId: IsValidReferenceDocumentId,
|
|
2788
2790
|
data: SUpdateAsInvitedCreativeFormatDocument
|
|
2789
2791
|
});
|
|
2790
|
-
var SUpdateCreativeFormatDocumentRequest =
|
|
2792
|
+
var SUpdateCreativeFormatDocumentRequest = v__namespace.union([
|
|
2791
2793
|
SUpdateAsCreatorCreativeFormatDocument,
|
|
2792
2794
|
SUpdateAsInvitedCreativeFormatDocument
|
|
2793
2795
|
]);
|
|
2794
|
-
var SDeleteCreativeFormatDocument =
|
|
2796
|
+
var SDeleteCreativeFormatDocument = v__namespace.object({
|
|
2795
2797
|
documentId: IsValidReferenceDocumentId
|
|
2796
2798
|
});
|
|
2797
|
-
var SQueryParamsMediumDocuments =
|
|
2799
|
+
var SQueryParamsMediumDocuments = v__namespace.object({
|
|
2798
2800
|
page: VPage(),
|
|
2799
2801
|
size: VSize(MEDIUM_PAGINATION_MAX_SIZE_LIMIT),
|
|
2800
2802
|
sort: VSortMedium,
|
|
2801
|
-
label:
|
|
2802
|
-
value:
|
|
2803
|
-
is_active:
|
|
2804
|
-
group:
|
|
2805
|
-
creator:
|
|
2803
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2804
|
+
value: v__namespace.optional(IsValidValue),
|
|
2805
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2806
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2807
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2806
2808
|
});
|
|
2807
|
-
var SQuerySearchMediumDocuments =
|
|
2809
|
+
var SQuerySearchMediumDocuments = v__namespace.object({
|
|
2808
2810
|
group: IsValidReferenceDocumentId,
|
|
2809
|
-
page:
|
|
2810
|
-
size:
|
|
2811
|
+
page: VPageRequired(),
|
|
2812
|
+
size: VSizeRequired(MEDIUM_PAGINATION_MAX_SIZE_LIMIT),
|
|
2811
2813
|
sort: VSortMedium,
|
|
2812
|
-
label:
|
|
2813
|
-
value:
|
|
2814
|
-
is_active:
|
|
2815
|
-
creator:
|
|
2814
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2815
|
+
value: v__namespace.optional(IsValidValue),
|
|
2816
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2817
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2816
2818
|
});
|
|
2817
|
-
var SCreateMediumDocument =
|
|
2819
|
+
var SCreateMediumDocument = v__namespace.object({
|
|
2818
2820
|
group: IsValidReferenceDocumentId,
|
|
2819
2821
|
creator: IsValidReferenceDocumentId,
|
|
2820
2822
|
label: IsValidLabel,
|
|
@@ -2822,65 +2824,65 @@ var SCreateMediumDocument = v62__namespace.object({
|
|
|
2822
2824
|
description: IsValidDescription,
|
|
2823
2825
|
is_active: IsValidIsActive
|
|
2824
2826
|
});
|
|
2825
|
-
var SCreateMultipleMediumDocuments =
|
|
2826
|
-
mediums:
|
|
2827
|
-
|
|
2828
|
-
|
|
2827
|
+
var SCreateMultipleMediumDocuments = v__namespace.object({
|
|
2828
|
+
mediums: v__namespace.pipe(
|
|
2829
|
+
v__namespace.array(SCreateMediumDocument),
|
|
2830
|
+
v__namespace.minLength(1, "At least one medium is required")
|
|
2829
2831
|
)
|
|
2830
2832
|
});
|
|
2831
|
-
var SReadMediumDocumentById =
|
|
2833
|
+
var SReadMediumDocumentById = v__namespace.object({
|
|
2832
2834
|
id: IsValidReferenceId
|
|
2833
2835
|
});
|
|
2834
|
-
var SReadMediumDocumentByDocumentId =
|
|
2836
|
+
var SReadMediumDocumentByDocumentId = v__namespace.object({
|
|
2835
2837
|
documentId: IsValidReferenceDocumentId
|
|
2836
2838
|
});
|
|
2837
|
-
var SUpdateAsCreatorMediumDocument =
|
|
2839
|
+
var SUpdateAsCreatorMediumDocument = v__namespace.object({
|
|
2838
2840
|
label: IsValidOrUndefinedLabel,
|
|
2839
2841
|
value: IsValidOrUndefinedValue,
|
|
2840
2842
|
description: IsValidOrUndefinedDescription,
|
|
2841
2843
|
is_active: IsValidOrUndefinedIsActive
|
|
2842
2844
|
});
|
|
2843
|
-
var SUpdateAsCreatorMediumDocumentRequest =
|
|
2845
|
+
var SUpdateAsCreatorMediumDocumentRequest = v__namespace.object({
|
|
2844
2846
|
documentId: IsValidReferenceDocumentId,
|
|
2845
2847
|
data: SUpdateAsCreatorMediumDocument
|
|
2846
2848
|
});
|
|
2847
|
-
var SUpdateAsInvitedMediumDocument =
|
|
2849
|
+
var SUpdateAsInvitedMediumDocument = v__namespace.object({
|
|
2848
2850
|
label: IsValidOrUndefinedLabel,
|
|
2849
2851
|
description: IsValidDescription,
|
|
2850
2852
|
is_active: IsValidOrUndefinedIsActive
|
|
2851
2853
|
});
|
|
2852
|
-
var SUpdateAsInvitedMediumDocumentRequest =
|
|
2854
|
+
var SUpdateAsInvitedMediumDocumentRequest = v__namespace.object({
|
|
2853
2855
|
documentId: IsValidReferenceDocumentId,
|
|
2854
2856
|
data: SUpdateAsInvitedMediumDocument
|
|
2855
2857
|
});
|
|
2856
|
-
var SUpdateMediumDocumentRequest =
|
|
2858
|
+
var SUpdateMediumDocumentRequest = v__namespace.union([
|
|
2857
2859
|
SUpdateAsCreatorMediumDocument,
|
|
2858
2860
|
SUpdateAsInvitedMediumDocument
|
|
2859
2861
|
]);
|
|
2860
|
-
var SDeleteMediumDocument =
|
|
2862
|
+
var SDeleteMediumDocument = v__namespace.object({
|
|
2861
2863
|
documentId: IsValidReferenceDocumentId
|
|
2862
2864
|
});
|
|
2863
|
-
var SQueryParamsSourceDocuments =
|
|
2865
|
+
var SQueryParamsSourceDocuments = v__namespace.object({
|
|
2864
2866
|
page: VPage(),
|
|
2865
2867
|
size: VSize(SOURCE_PAGINATION_MAX_SIZE_LIMIT),
|
|
2866
2868
|
sort: VSortSource,
|
|
2867
|
-
label:
|
|
2868
|
-
value:
|
|
2869
|
-
is_active:
|
|
2870
|
-
group:
|
|
2871
|
-
creator:
|
|
2869
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2870
|
+
value: v__namespace.optional(IsValidValue),
|
|
2871
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2872
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2873
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2872
2874
|
});
|
|
2873
|
-
var SQuerySearchSourceDocuments =
|
|
2875
|
+
var SQuerySearchSourceDocuments = v__namespace.object({
|
|
2874
2876
|
group: IsValidReferenceDocumentId,
|
|
2875
|
-
page:
|
|
2876
|
-
size:
|
|
2877
|
+
page: VPageRequired(),
|
|
2878
|
+
size: VSizeRequired(SOURCE_PAGINATION_MAX_SIZE_LIMIT),
|
|
2877
2879
|
sort: VSortSource,
|
|
2878
|
-
label:
|
|
2879
|
-
value:
|
|
2880
|
-
is_active:
|
|
2881
|
-
creator:
|
|
2880
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2881
|
+
value: v__namespace.optional(IsValidValue),
|
|
2882
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2883
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2882
2884
|
});
|
|
2883
|
-
var SCreateSourceDocument =
|
|
2885
|
+
var SCreateSourceDocument = v__namespace.object({
|
|
2884
2886
|
group: IsValidReferenceDocumentId,
|
|
2885
2887
|
creator: IsValidReferenceDocumentId,
|
|
2886
2888
|
label: IsValidLabel,
|
|
@@ -2888,65 +2890,65 @@ var SCreateSourceDocument = v62__namespace.object({
|
|
|
2888
2890
|
description: IsValidDescription,
|
|
2889
2891
|
is_active: IsValidIsActive
|
|
2890
2892
|
});
|
|
2891
|
-
var SCreateMultipleSourceDocuments =
|
|
2892
|
-
sources:
|
|
2893
|
-
|
|
2894
|
-
|
|
2893
|
+
var SCreateMultipleSourceDocuments = v__namespace.object({
|
|
2894
|
+
sources: v__namespace.pipe(
|
|
2895
|
+
v__namespace.array(SCreateSourceDocument),
|
|
2896
|
+
v__namespace.minLength(1, "At least one source is required")
|
|
2895
2897
|
)
|
|
2896
2898
|
});
|
|
2897
|
-
var SReadSourceDocumentById =
|
|
2899
|
+
var SReadSourceDocumentById = v__namespace.object({
|
|
2898
2900
|
id: IsValidReferenceId
|
|
2899
2901
|
});
|
|
2900
|
-
var SReadSourceDocumentByDocumentId =
|
|
2902
|
+
var SReadSourceDocumentByDocumentId = v__namespace.object({
|
|
2901
2903
|
documentId: IsValidReferenceDocumentId
|
|
2902
2904
|
});
|
|
2903
|
-
var SUpdateAsCreatorSourceDocument =
|
|
2905
|
+
var SUpdateAsCreatorSourceDocument = v__namespace.object({
|
|
2904
2906
|
label: IsValidOrUndefinedLabel,
|
|
2905
2907
|
value: IsValidOrUndefinedValue,
|
|
2906
2908
|
description: IsValidOrUndefinedDescription,
|
|
2907
2909
|
is_active: IsValidOrUndefinedIsActive
|
|
2908
2910
|
});
|
|
2909
|
-
var SUpdateAsCreatorSourceDocumentRequest =
|
|
2911
|
+
var SUpdateAsCreatorSourceDocumentRequest = v__namespace.object({
|
|
2910
2912
|
documentId: IsValidReferenceDocumentId,
|
|
2911
2913
|
data: SUpdateAsCreatorSourceDocument
|
|
2912
2914
|
});
|
|
2913
|
-
var SUpdateAsInvitedSourceDocument =
|
|
2915
|
+
var SUpdateAsInvitedSourceDocument = v__namespace.object({
|
|
2914
2916
|
label: IsValidOrUndefinedLabel,
|
|
2915
2917
|
description: IsValidDescription,
|
|
2916
2918
|
is_active: IsValidOrUndefinedIsActive
|
|
2917
2919
|
});
|
|
2918
|
-
var SUpdateAsInvitedSourceDocumentRequest =
|
|
2920
|
+
var SUpdateAsInvitedSourceDocumentRequest = v__namespace.object({
|
|
2919
2921
|
documentId: IsValidReferenceDocumentId,
|
|
2920
2922
|
data: SUpdateAsInvitedSourceDocument
|
|
2921
2923
|
});
|
|
2922
|
-
var SUpdateSourceDocumentRequest =
|
|
2924
|
+
var SUpdateSourceDocumentRequest = v__namespace.union([
|
|
2923
2925
|
SUpdateAsCreatorSourceDocument,
|
|
2924
2926
|
SUpdateAsInvitedSourceDocument
|
|
2925
2927
|
]);
|
|
2926
|
-
var SDeleteSourceDocument =
|
|
2928
|
+
var SDeleteSourceDocument = v__namespace.object({
|
|
2927
2929
|
documentId: IsValidReferenceDocumentId
|
|
2928
2930
|
});
|
|
2929
|
-
var SQueryParamsTermDocuments =
|
|
2931
|
+
var SQueryParamsTermDocuments = v__namespace.object({
|
|
2930
2932
|
page: VPage(),
|
|
2931
2933
|
size: VSize(TERM_PAGINATION_MAX_SIZE_LIMIT),
|
|
2932
2934
|
sort: VSortTerm,
|
|
2933
|
-
label:
|
|
2934
|
-
value:
|
|
2935
|
-
is_active:
|
|
2936
|
-
group:
|
|
2937
|
-
creator:
|
|
2935
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2936
|
+
value: v__namespace.optional(IsValidValue),
|
|
2937
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2938
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2939
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2938
2940
|
});
|
|
2939
|
-
var SQuerySearchTermDocuments =
|
|
2941
|
+
var SQuerySearchTermDocuments = v__namespace.object({
|
|
2940
2942
|
group: IsValidReferenceDocumentId,
|
|
2941
|
-
page:
|
|
2942
|
-
size:
|
|
2943
|
+
page: VPageRequired(),
|
|
2944
|
+
size: VSizeRequired(TERM_PAGINATION_MAX_SIZE_LIMIT),
|
|
2943
2945
|
sort: VSortTerm,
|
|
2944
|
-
label:
|
|
2945
|
-
value:
|
|
2946
|
-
is_active:
|
|
2947
|
-
creator:
|
|
2946
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2947
|
+
value: v__namespace.optional(IsValidValue),
|
|
2948
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2949
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2948
2950
|
});
|
|
2949
|
-
var SCreateTermDocument =
|
|
2951
|
+
var SCreateTermDocument = v__namespace.object({
|
|
2950
2952
|
group: IsValidReferenceDocumentId,
|
|
2951
2953
|
creator: IsValidReferenceDocumentId,
|
|
2952
2954
|
label: IsValidLabel,
|
|
@@ -2954,65 +2956,65 @@ var SCreateTermDocument = v62__namespace.object({
|
|
|
2954
2956
|
description: IsValidDescription,
|
|
2955
2957
|
is_active: IsValidIsActive
|
|
2956
2958
|
});
|
|
2957
|
-
var SCreateMultipleTermDocuments =
|
|
2958
|
-
terms:
|
|
2959
|
-
|
|
2960
|
-
|
|
2959
|
+
var SCreateMultipleTermDocuments = v__namespace.object({
|
|
2960
|
+
terms: v__namespace.pipe(
|
|
2961
|
+
v__namespace.array(SCreateTermDocument),
|
|
2962
|
+
v__namespace.minLength(1, "At least one term is required")
|
|
2961
2963
|
)
|
|
2962
2964
|
});
|
|
2963
|
-
var SReadTermDocumentById =
|
|
2965
|
+
var SReadTermDocumentById = v__namespace.object({
|
|
2964
2966
|
id: IsValidReferenceId
|
|
2965
2967
|
});
|
|
2966
|
-
var SReadTermDocumentByDocumentId =
|
|
2968
|
+
var SReadTermDocumentByDocumentId = v__namespace.object({
|
|
2967
2969
|
documentId: IsValidReferenceDocumentId
|
|
2968
2970
|
});
|
|
2969
|
-
var SUpdateAsCreatorTermDocument =
|
|
2971
|
+
var SUpdateAsCreatorTermDocument = v__namespace.object({
|
|
2970
2972
|
label: IsValidOrUndefinedLabel,
|
|
2971
2973
|
value: IsValidOrUndefinedValue,
|
|
2972
2974
|
description: IsValidOrUndefinedDescription,
|
|
2973
2975
|
is_active: IsValidOrUndefinedIsActive
|
|
2974
2976
|
});
|
|
2975
|
-
var SUpdateAsCreatorTermDocumentRequest =
|
|
2977
|
+
var SUpdateAsCreatorTermDocumentRequest = v__namespace.object({
|
|
2976
2978
|
documentId: IsValidReferenceDocumentId,
|
|
2977
2979
|
data: SUpdateAsCreatorTermDocument
|
|
2978
2980
|
});
|
|
2979
|
-
var SUpdateAsInvitedTermDocument =
|
|
2981
|
+
var SUpdateAsInvitedTermDocument = v__namespace.object({
|
|
2980
2982
|
label: IsValidOrUndefinedLabel,
|
|
2981
2983
|
description: IsValidDescription,
|
|
2982
2984
|
is_active: IsValidOrUndefinedIsActive
|
|
2983
2985
|
});
|
|
2984
|
-
var SUpdateAsInvitedTermDocumentRequest =
|
|
2986
|
+
var SUpdateAsInvitedTermDocumentRequest = v__namespace.object({
|
|
2985
2987
|
documentId: IsValidReferenceDocumentId,
|
|
2986
2988
|
data: SUpdateAsInvitedTermDocument
|
|
2987
2989
|
});
|
|
2988
|
-
var SUpdateTermDocumentRequest =
|
|
2990
|
+
var SUpdateTermDocumentRequest = v__namespace.union([
|
|
2989
2991
|
SUpdateAsCreatorTermDocument,
|
|
2990
2992
|
SUpdateAsInvitedTermDocument
|
|
2991
2993
|
]);
|
|
2992
|
-
var SDeleteTermDocument =
|
|
2994
|
+
var SDeleteTermDocument = v__namespace.object({
|
|
2993
2995
|
documentId: IsValidReferenceDocumentId
|
|
2994
2996
|
});
|
|
2995
|
-
var SQueryParamsWebsiteDocuments =
|
|
2997
|
+
var SQueryParamsWebsiteDocuments = v__namespace.object({
|
|
2996
2998
|
page: VPage(),
|
|
2997
2999
|
size: VSize(WEBSITE_PAGINATION_MAX_SIZE_LIMIT),
|
|
2998
3000
|
sort: VSortWebsite,
|
|
2999
|
-
domain:
|
|
3000
|
-
is_active:
|
|
3001
|
-
is_secure:
|
|
3002
|
-
group:
|
|
3003
|
-
creator:
|
|
3001
|
+
domain: v__namespace.optional(IsValidUrlDomain),
|
|
3002
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
3003
|
+
is_secure: v__namespace.optional(IsValidIsSecure),
|
|
3004
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
3005
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
3004
3006
|
});
|
|
3005
|
-
var SQuerySearchWebsiteDocuments =
|
|
3007
|
+
var SQuerySearchWebsiteDocuments = v__namespace.object({
|
|
3006
3008
|
group: IsValidReferenceDocumentId,
|
|
3007
|
-
page:
|
|
3008
|
-
size:
|
|
3009
|
+
page: VPageRequired(),
|
|
3010
|
+
size: VSizeRequired(WEBSITE_PAGINATION_MAX_SIZE_LIMIT),
|
|
3009
3011
|
sort: VSortWebsite,
|
|
3010
|
-
domain:
|
|
3011
|
-
is_active:
|
|
3012
|
-
is_secure:
|
|
3013
|
-
creator:
|
|
3012
|
+
domain: v__namespace.optional(IsValidUrlDomain),
|
|
3013
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
3014
|
+
is_secure: v__namespace.optional(IsValidIsSecure),
|
|
3015
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
3014
3016
|
});
|
|
3015
|
-
var SCreateWebsiteDocument =
|
|
3017
|
+
var SCreateWebsiteDocument = v__namespace.object({
|
|
3016
3018
|
group: IsValidReferenceDocumentId,
|
|
3017
3019
|
creator: IsValidReferenceDocumentId,
|
|
3018
3020
|
domain: IsValidUrlDomain,
|
|
@@ -3020,158 +3022,158 @@ var SCreateWebsiteDocument = v62__namespace.object({
|
|
|
3020
3022
|
is_secure: IsValidIsSecure,
|
|
3021
3023
|
is_active: IsValidIsActive
|
|
3022
3024
|
});
|
|
3023
|
-
var SCreateMultipleWebsiteDocuments =
|
|
3024
|
-
websites:
|
|
3025
|
-
|
|
3026
|
-
|
|
3025
|
+
var SCreateMultipleWebsiteDocuments = v__namespace.object({
|
|
3026
|
+
websites: v__namespace.pipe(
|
|
3027
|
+
v__namespace.array(SCreateWebsiteDocument),
|
|
3028
|
+
v__namespace.minLength(1, "At least one website is required")
|
|
3027
3029
|
)
|
|
3028
3030
|
});
|
|
3029
|
-
var SReadWebsiteDocumentById =
|
|
3031
|
+
var SReadWebsiteDocumentById = v__namespace.object({
|
|
3030
3032
|
id: IsValidReferenceId
|
|
3031
3033
|
});
|
|
3032
|
-
var SReadWebsiteDocumentByDocumentId =
|
|
3034
|
+
var SReadWebsiteDocumentByDocumentId = v__namespace.object({
|
|
3033
3035
|
documentId: IsValidReferenceDocumentId
|
|
3034
3036
|
});
|
|
3035
|
-
var SUpdateAsCreatorWebsiteDocument =
|
|
3037
|
+
var SUpdateAsCreatorWebsiteDocument = v__namespace.object({
|
|
3036
3038
|
domain: IsValidOrUndefinedUrlDomain,
|
|
3037
3039
|
description: IsValidOrUndefinedDescription,
|
|
3038
3040
|
is_secure: IsValidOrUndefinedIsSecure,
|
|
3039
3041
|
is_active: IsValidOrUndefinedIsActive
|
|
3040
3042
|
});
|
|
3041
|
-
var SUpdateAsCreatorWebsiteDocumentRequest =
|
|
3043
|
+
var SUpdateAsCreatorWebsiteDocumentRequest = v__namespace.object({
|
|
3042
3044
|
documentId: IsValidReferenceDocumentId,
|
|
3043
3045
|
data: SUpdateAsCreatorWebsiteDocument
|
|
3044
3046
|
});
|
|
3045
|
-
var SUpdateAsInvitedWebsiteDocument =
|
|
3047
|
+
var SUpdateAsInvitedWebsiteDocument = v__namespace.object({
|
|
3046
3048
|
description: IsValidOrUndefinedDescription
|
|
3047
3049
|
});
|
|
3048
|
-
var SUpdateAsInvitedWebsiteDocumentRequest =
|
|
3050
|
+
var SUpdateAsInvitedWebsiteDocumentRequest = v__namespace.object({
|
|
3049
3051
|
documentId: IsValidReferenceDocumentId,
|
|
3050
3052
|
data: SUpdateAsInvitedWebsiteDocument
|
|
3051
3053
|
});
|
|
3052
|
-
var SUpdateWebsiteDocumentRequest =
|
|
3054
|
+
var SUpdateWebsiteDocumentRequest = v__namespace.union([
|
|
3053
3055
|
SUpdateAsCreatorWebsiteDocument,
|
|
3054
3056
|
SUpdateAsInvitedWebsiteDocument
|
|
3055
3057
|
]);
|
|
3056
|
-
var SDeleteWebsiteDocument =
|
|
3058
|
+
var SDeleteWebsiteDocument = v__namespace.object({
|
|
3057
3059
|
documentId: IsValidReferenceDocumentId
|
|
3058
3060
|
});
|
|
3059
|
-
var SGroupUserDocumentWithRelations =
|
|
3061
|
+
var SGroupUserDocumentWithRelations = v__namespace.object({
|
|
3060
3062
|
...SBaseDocument.entries,
|
|
3061
3063
|
...SBaseGroupUserDocument.entries,
|
|
3062
3064
|
...SGroupUserRelationsDocument.entries
|
|
3063
3065
|
});
|
|
3064
|
-
var SGroupUserDocumentReqRelations =
|
|
3066
|
+
var SGroupUserDocumentReqRelations = v__namespace.object({
|
|
3065
3067
|
...SBaseDocument.entries,
|
|
3066
3068
|
...SBaseGroupUserDocument.entries,
|
|
3067
3069
|
...SGroupUserRelationsReqDocument.entries
|
|
3068
3070
|
});
|
|
3069
|
-
var SGroupDocumentWithRelations =
|
|
3071
|
+
var SGroupDocumentWithRelations = v__namespace.object({
|
|
3070
3072
|
...SBaseDocument.entries,
|
|
3071
3073
|
...SBaseGroupDocument.entries,
|
|
3072
3074
|
...SGroupRelationsDocument.entries
|
|
3073
3075
|
});
|
|
3074
|
-
var SRoleDocumentWithRelations =
|
|
3076
|
+
var SRoleDocumentWithRelations = v__namespace.object({
|
|
3075
3077
|
...SBaseDocument.entries,
|
|
3076
3078
|
...SBaseRoleDocument.entries,
|
|
3077
3079
|
...SRoleRelationsDocument.entries
|
|
3078
3080
|
});
|
|
3079
|
-
var STrackingLinkDocumentWithRelations =
|
|
3081
|
+
var STrackingLinkDocumentWithRelations = v__namespace.object({
|
|
3080
3082
|
...SBaseDocument.entries,
|
|
3081
3083
|
...SBaseTrackingLinkDocument.entries,
|
|
3082
3084
|
...STrackingLinkRelationsDocument.entries
|
|
3083
3085
|
});
|
|
3084
|
-
var SUserAccountDocumentWithRelations =
|
|
3086
|
+
var SUserAccountDocumentWithRelations = v__namespace.object({
|
|
3085
3087
|
...SBaseDocument.entries,
|
|
3086
3088
|
...SBaseUserAccountDocument.entries,
|
|
3087
3089
|
...SUserAccountRelationsDocument.entries
|
|
3088
3090
|
});
|
|
3089
|
-
var SUserAccountDocumentReqRelations =
|
|
3091
|
+
var SUserAccountDocumentReqRelations = v__namespace.object({
|
|
3090
3092
|
...SBaseDocument.entries,
|
|
3091
3093
|
...SBaseUserAccountDocument.entries,
|
|
3092
3094
|
...SUserAccountRelationsReqDocument.entries
|
|
3093
3095
|
});
|
|
3094
|
-
var SUserLimitationsDocumentWithRelations =
|
|
3096
|
+
var SUserLimitationsDocumentWithRelations = v__namespace.object({
|
|
3095
3097
|
...SBaseDocument.entries,
|
|
3096
3098
|
...SBaseUserLimitationsDocument.entries,
|
|
3097
3099
|
...SUserLimitationsRelationsDocument.entries
|
|
3098
3100
|
});
|
|
3099
|
-
var SUserDocumentWithRelations =
|
|
3101
|
+
var SUserDocumentWithRelations = v__namespace.object({
|
|
3100
3102
|
...SBaseDocument.entries,
|
|
3101
3103
|
...SBaseUserDocument.entries,
|
|
3102
3104
|
...SUserRelationsDocument.entries
|
|
3103
3105
|
});
|
|
3104
|
-
var SUserDocumentWithAccountRelations =
|
|
3106
|
+
var SUserDocumentWithAccountRelations = v__namespace.object({
|
|
3105
3107
|
...SBaseDocument.entries,
|
|
3106
3108
|
...SBaseUserDocument.entries,
|
|
3107
3109
|
...SUserRelationReqAccount.entries
|
|
3108
3110
|
});
|
|
3109
|
-
var SUserDocumentWithAccountAndRoleRelations =
|
|
3111
|
+
var SUserDocumentWithAccountAndRoleRelations = v__namespace.object({
|
|
3110
3112
|
...SBaseDocument.entries,
|
|
3111
3113
|
...SBaseUserDocument.entries,
|
|
3112
3114
|
...SUserRelationReqRole.entries,
|
|
3113
3115
|
...SUserRelationReqAccount.entries
|
|
3114
3116
|
});
|
|
3115
|
-
var SUserAuthorizationSuccessResponse =
|
|
3116
|
-
jwt:
|
|
3117
|
+
var SUserAuthorizationSuccessResponse = v__namespace.object({
|
|
3118
|
+
jwt: v__namespace.string(),
|
|
3117
3119
|
user: SUserDocumentWithAccountAndRoleRelations
|
|
3118
3120
|
});
|
|
3119
|
-
var SCampaignIdDocumentWithRelations =
|
|
3121
|
+
var SCampaignIdDocumentWithRelations = v__namespace.object({
|
|
3120
3122
|
...SBaseDocument.entries,
|
|
3121
3123
|
...SBaseCampaignIdDocument.entries,
|
|
3122
3124
|
...SCampaignIdRelationsDocument.entries
|
|
3123
3125
|
});
|
|
3124
|
-
var SCampaignPhaseDocumentWithRelations =
|
|
3126
|
+
var SCampaignPhaseDocumentWithRelations = v__namespace.object({
|
|
3125
3127
|
...SBaseDocument.entries,
|
|
3126
3128
|
...SBaseCampaignPhaseDocument.entries,
|
|
3127
3129
|
...SCampaignPhaseRelationsDocument.entries
|
|
3128
3130
|
});
|
|
3129
|
-
var SCampaignProductDocumentWithRelations =
|
|
3131
|
+
var SCampaignProductDocumentWithRelations = v__namespace.object({
|
|
3130
3132
|
...SBaseDocument.entries,
|
|
3131
3133
|
...SBaseCampaignProductDocument.entries,
|
|
3132
3134
|
...SCampaignProductRelationsDocument.entries
|
|
3133
3135
|
});
|
|
3134
|
-
var SCampaignTargetDocumentWithRelations =
|
|
3136
|
+
var SCampaignTargetDocumentWithRelations = v__namespace.object({
|
|
3135
3137
|
...SBaseDocument.entries,
|
|
3136
3138
|
...SBaseCampaignTargetDocument.entries,
|
|
3137
3139
|
...SCampaignTargetRelationsDocument.entries
|
|
3138
3140
|
});
|
|
3139
|
-
var SCampaignKeyDocumentWithRelations =
|
|
3141
|
+
var SCampaignKeyDocumentWithRelations = v__namespace.object({
|
|
3140
3142
|
...SBaseDocument.entries,
|
|
3141
3143
|
...SBaseCampaignKeyDocument.entries,
|
|
3142
3144
|
...SCampaignKeyRelationsDocument.entries
|
|
3143
3145
|
});
|
|
3144
|
-
var SSourceDocumentWithRelations =
|
|
3146
|
+
var SSourceDocumentWithRelations = v__namespace.object({
|
|
3145
3147
|
...SBaseDocument.entries,
|
|
3146
3148
|
...SBaseSourceDocument.entries,
|
|
3147
3149
|
...SSourceRelationsDocument.entries
|
|
3148
3150
|
});
|
|
3149
|
-
var SMediumDocumentWithRelations =
|
|
3151
|
+
var SMediumDocumentWithRelations = v__namespace.object({
|
|
3150
3152
|
...SBaseDocument.entries,
|
|
3151
3153
|
...SBaseMediumDocument.entries,
|
|
3152
3154
|
...SMediumRelationsDocument.entries
|
|
3153
3155
|
});
|
|
3154
|
-
var SContentDocumentWithRelations =
|
|
3156
|
+
var SContentDocumentWithRelations = v__namespace.object({
|
|
3155
3157
|
...SBaseDocument.entries,
|
|
3156
3158
|
...SBaseContentDocument.entries,
|
|
3157
3159
|
...SContentRelationsDocument.entries
|
|
3158
3160
|
});
|
|
3159
|
-
var SCreativeFormatDocumentWithRelations =
|
|
3161
|
+
var SCreativeFormatDocumentWithRelations = v__namespace.object({
|
|
3160
3162
|
...SBaseDocument.entries,
|
|
3161
3163
|
...SBaseCreativeFormatDocument.entries,
|
|
3162
3164
|
...SCreativeFormatRelationsDocument.entries
|
|
3163
3165
|
});
|
|
3164
|
-
var SCreativeFormatVariantDocumentWithRelations =
|
|
3166
|
+
var SCreativeFormatVariantDocumentWithRelations = v__namespace.object({
|
|
3165
3167
|
...SBaseDocument.entries,
|
|
3166
3168
|
...SBaseCreativeFormatVariantDocument.entries,
|
|
3167
3169
|
...SCreativeFormatVariantRelationsDocument.entries
|
|
3168
3170
|
});
|
|
3169
|
-
var STermDocumentWithRelations =
|
|
3171
|
+
var STermDocumentWithRelations = v__namespace.object({
|
|
3170
3172
|
...SBaseDocument.entries,
|
|
3171
3173
|
...SBaseTermDocument.entries,
|
|
3172
3174
|
...STermRelationsDocument.entries
|
|
3173
3175
|
});
|
|
3174
|
-
var SWebsiteDocumentWithRelations =
|
|
3176
|
+
var SWebsiteDocumentWithRelations = v__namespace.object({
|
|
3175
3177
|
...SBaseDocument.entries,
|
|
3176
3178
|
...SBaseWebsiteDocument.entries,
|
|
3177
3179
|
...SWebsiteRelationsDocument.entries
|
|
@@ -3806,10 +3808,10 @@ function isStrapiStandardError(result) {
|
|
|
3806
3808
|
function validateAndClean(schema, input) {
|
|
3807
3809
|
var _a, _b;
|
|
3808
3810
|
try {
|
|
3809
|
-
const parsed =
|
|
3811
|
+
const parsed = v__namespace.parse(schema, input);
|
|
3810
3812
|
return { data: parsed, error: null, errors: null };
|
|
3811
3813
|
} catch (err) {
|
|
3812
|
-
if (err instanceof
|
|
3814
|
+
if (err instanceof v__namespace.ValiError) {
|
|
3813
3815
|
const errors = {};
|
|
3814
3816
|
for (const issue of err.issues) {
|
|
3815
3817
|
const field = ((_b = (_a = issue.path) == null ? void 0 : _a[0]) == null ? void 0 : _b.key) || "unknown";
|
|
@@ -4402,7 +4404,9 @@ exports.UserAccountSortKeys = UserAccountSortKeys;
|
|
|
4402
4404
|
exports.UserLimitationsSortKeys = UserLimitationsSortKeys;
|
|
4403
4405
|
exports.UserSortKeys = UserSortKeys;
|
|
4404
4406
|
exports.VPage = VPage;
|
|
4407
|
+
exports.VPageRequired = VPageRequired;
|
|
4405
4408
|
exports.VSize = VSize;
|
|
4409
|
+
exports.VSizeRequired = VSizeRequired;
|
|
4406
4410
|
exports.VSortCampaignId = VSortCampaignId;
|
|
4407
4411
|
exports.VSortCampaignKey = VSortCampaignKey;
|
|
4408
4412
|
exports.VSortCampaignPhase = VSortCampaignPhase;
|