@joeygrable94/utm-src-pub-validators 0.0.118 → 0.0.120
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 +1099 -1044
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +80 -29
- package/dist/index.d.ts +80 -29
- package/dist/index.js +1098 -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,307 @@ 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
|
|
1780
|
+
var SQuerySearchDocuments = v__namespace.optional(
|
|
1781
|
+
v__namespace.object({
|
|
1782
|
+
page: VPageRequired(),
|
|
1783
|
+
size: VSizeRequired(WEBSITE_PAGINATION_MAX_SIZE_LIMIT),
|
|
1784
|
+
sort: VSortDocument
|
|
1785
|
+
})
|
|
1786
|
+
);
|
|
1787
|
+
var SQueryParamsGroupUserDocuments = v__namespace.object({
|
|
1779
1788
|
page: VPage(),
|
|
1780
1789
|
size: VSize(GROUP_USER_PAGINATION_MAX_SIZE_LIMIT),
|
|
1781
1790
|
sort: VSortGroupUser,
|
|
1782
|
-
group:
|
|
1783
|
-
user:
|
|
1791
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
1792
|
+
user: v__namespace.optional(IsValidReferenceDocumentId)
|
|
1784
1793
|
});
|
|
1785
|
-
var SQuerySearchGroupUserDocuments =
|
|
1786
|
-
page:
|
|
1787
|
-
size:
|
|
1794
|
+
var SQuerySearchGroupUserDocuments = v__namespace.object({
|
|
1795
|
+
page: VPageRequired(),
|
|
1796
|
+
size: VSizeRequired(GROUP_USER_PAGINATION_MAX_SIZE_LIMIT),
|
|
1788
1797
|
sort: VSortGroupUser,
|
|
1789
1798
|
group: IsValidReferenceDocumentId,
|
|
1790
|
-
user:
|
|
1799
|
+
user: v__namespace.optional(IsValidReferenceDocumentId)
|
|
1791
1800
|
});
|
|
1792
|
-
var SCreateGroupUserDocument =
|
|
1801
|
+
var SCreateGroupUserDocument = v__namespace.object({
|
|
1793
1802
|
group: IsValidReferenceDocumentId,
|
|
1794
1803
|
user: IsValidReferenceDocumentId,
|
|
1795
1804
|
scopes: IsValidGroupUserScopes
|
|
1796
1805
|
});
|
|
1797
|
-
var SCreateGroupUserAssignMultipleUsers =
|
|
1806
|
+
var SCreateGroupUserAssignMultipleUsers = v__namespace.object({
|
|
1798
1807
|
group: IsValidReferenceDocumentId,
|
|
1799
|
-
user:
|
|
1800
|
-
|
|
1801
|
-
|
|
1808
|
+
user: v__namespace.pipe(
|
|
1809
|
+
v__namespace.array(IsValidReferenceDocumentId),
|
|
1810
|
+
v__namespace.minLength(1, "Please assign at least one user to this group")
|
|
1802
1811
|
),
|
|
1803
1812
|
scopes: IsValidGroupUserScopes
|
|
1804
1813
|
});
|
|
1805
|
-
var SReadGroupUserDocumentById =
|
|
1814
|
+
var SReadGroupUserDocumentById = v__namespace.object({
|
|
1806
1815
|
id: IsValidReferenceId
|
|
1807
1816
|
});
|
|
1808
|
-
var SReadGroupUserDocumentByDocumentId =
|
|
1817
|
+
var SReadGroupUserDocumentByDocumentId = v__namespace.object({
|
|
1809
1818
|
documentId: IsValidReferenceDocumentId
|
|
1810
1819
|
});
|
|
1811
|
-
var SUpdateGroupUserDocument =
|
|
1820
|
+
var SUpdateGroupUserDocument = v__namespace.object({
|
|
1812
1821
|
scopes: IsValidGroupUserScopes
|
|
1813
1822
|
});
|
|
1814
|
-
var SUpdateGroupUserDocumentRequest =
|
|
1823
|
+
var SUpdateGroupUserDocumentRequest = v__namespace.object({
|
|
1815
1824
|
documentId: IsValidReferenceDocumentId,
|
|
1816
1825
|
data: SUpdateGroupUserDocument
|
|
1817
1826
|
});
|
|
1818
|
-
var SDeleteGroupUserDocument =
|
|
1827
|
+
var SDeleteGroupUserDocument = v__namespace.object({
|
|
1819
1828
|
documentId: IsValidReferenceDocumentId
|
|
1820
1829
|
});
|
|
1821
|
-
var SVerifyGroupUserDocument =
|
|
1830
|
+
var SVerifyGroupUserDocument = v__namespace.object({
|
|
1822
1831
|
group: IsValidReferenceDocumentId,
|
|
1823
1832
|
user: IsValidReferenceDocumentId
|
|
1824
1833
|
});
|
|
1825
|
-
var SGroupUserDocumentStatus =
|
|
1826
|
-
verified:
|
|
1827
|
-
is_owner:
|
|
1828
|
-
groupUser:
|
|
1834
|
+
var SGroupUserDocumentStatus = v__namespace.object({
|
|
1835
|
+
verified: v__namespace.boolean(),
|
|
1836
|
+
is_owner: v__namespace.boolean(),
|
|
1837
|
+
groupUser: v__namespace.nullable(IsValidReferenceDocumentId),
|
|
1829
1838
|
scopes: IsValidGroupUserScopes
|
|
1830
1839
|
});
|
|
1831
|
-
var SQueryParamsGroupDocuments =
|
|
1840
|
+
var SQueryParamsGroupDocuments = v__namespace.object({
|
|
1832
1841
|
page: VPage(),
|
|
1833
1842
|
size: VSize(GROUP_PAGINATION_MAX_SIZE_LIMIT),
|
|
1834
1843
|
sort: VSortGroup,
|
|
1835
|
-
label:
|
|
1836
|
-
value:
|
|
1837
|
-
is_active:
|
|
1838
|
-
apply_value_to:
|
|
1839
|
-
apply_value_as:
|
|
1840
|
-
creator:
|
|
1841
|
-
});
|
|
1842
|
-
var
|
|
1844
|
+
label: v__namespace.optional(IsValidLabel),
|
|
1845
|
+
value: v__namespace.optional(IsValidGroupValue),
|
|
1846
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
1847
|
+
apply_value_to: v__namespace.optional(IsValidApplyValueTo),
|
|
1848
|
+
apply_value_as: v__namespace.optional(IsValidApplyValueAs),
|
|
1849
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
1850
|
+
});
|
|
1851
|
+
var SQuerySearchGroupDocuments = v__namespace.object({
|
|
1852
|
+
page: VPageRequired(),
|
|
1853
|
+
size: VSizeRequired(GROUP_PAGINATION_MAX_SIZE_LIMIT),
|
|
1854
|
+
sort: VSortGroup,
|
|
1855
|
+
label: v__namespace.optional(IsValidLabel),
|
|
1856
|
+
value: v__namespace.optional(IsValidGroupValue),
|
|
1857
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
1858
|
+
apply_value_to: v__namespace.optional(IsValidApplyValueTo),
|
|
1859
|
+
apply_value_as: v__namespace.optional(IsValidApplyValueAs),
|
|
1860
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
1861
|
+
});
|
|
1862
|
+
var SCreateGroupDocument = v__namespace.object({
|
|
1843
1863
|
creator: IsValidReferenceDocumentId,
|
|
1844
1864
|
label: IsValidLabel,
|
|
1845
1865
|
value: IsValidGroupValue,
|
|
@@ -1848,13 +1868,13 @@ var SCreateGroupDocument = v62__namespace.object({
|
|
|
1848
1868
|
apply_value_to: IsValidApplyValueTo,
|
|
1849
1869
|
apply_value_as: IsValidApplyValueAs
|
|
1850
1870
|
});
|
|
1851
|
-
var SReadGroupDocumentById =
|
|
1871
|
+
var SReadGroupDocumentById = v__namespace.object({
|
|
1852
1872
|
id: IsValidReferenceId
|
|
1853
1873
|
});
|
|
1854
|
-
var SReadGroupDocumentByDocumentId =
|
|
1874
|
+
var SReadGroupDocumentByDocumentId = v__namespace.object({
|
|
1855
1875
|
documentId: IsValidReferenceDocumentId
|
|
1856
1876
|
});
|
|
1857
|
-
var SUpdateAsCreatorGroupDocument =
|
|
1877
|
+
var SUpdateAsCreatorGroupDocument = v__namespace.object({
|
|
1858
1878
|
label: IsValidOrUndefinedLabel,
|
|
1859
1879
|
value: IsValidOrUndefinedGroupValue,
|
|
1860
1880
|
description: IsValidOrUndefinedDescription,
|
|
@@ -1862,42 +1882,42 @@ var SUpdateAsCreatorGroupDocument = v62__namespace.object({
|
|
|
1862
1882
|
apply_value_to: IsValidOrUndefinedApplyValueTo,
|
|
1863
1883
|
apply_value_as: IsValidOrUndefinedApplyValueAs
|
|
1864
1884
|
});
|
|
1865
|
-
var SUpdateAsCreatorGroupDocumentRequest =
|
|
1885
|
+
var SUpdateAsCreatorGroupDocumentRequest = v__namespace.object({
|
|
1866
1886
|
documentId: IsValidReferenceDocumentId,
|
|
1867
1887
|
data: SUpdateAsCreatorGroupDocument
|
|
1868
1888
|
});
|
|
1869
|
-
var SUpdateAsInvitedGroupDocument =
|
|
1889
|
+
var SUpdateAsInvitedGroupDocument = v__namespace.object({
|
|
1870
1890
|
label: IsValidOrUndefinedLabel,
|
|
1871
1891
|
description: IsValidOrUndefinedDescription
|
|
1872
1892
|
});
|
|
1873
|
-
var SUpdateAsInvitedGroupDocumentRequest =
|
|
1893
|
+
var SUpdateAsInvitedGroupDocumentRequest = v__namespace.object({
|
|
1874
1894
|
documentId: IsValidReferenceDocumentId,
|
|
1875
1895
|
data: SUpdateAsInvitedGroupDocument
|
|
1876
1896
|
});
|
|
1877
|
-
var SUpdateGroupDocumentRequest =
|
|
1897
|
+
var SUpdateGroupDocumentRequest = v__namespace.union([
|
|
1878
1898
|
SUpdateAsCreatorGroupDocument,
|
|
1879
1899
|
SUpdateAsInvitedGroupDocument
|
|
1880
1900
|
]);
|
|
1881
|
-
var SDeleteGroupDocument =
|
|
1901
|
+
var SDeleteGroupDocument = v__namespace.object({
|
|
1882
1902
|
documentId: IsValidReferenceDocumentId
|
|
1883
1903
|
});
|
|
1884
|
-
var SUtmLinkBuilderPartUrlObject =
|
|
1904
|
+
var SUtmLinkBuilderPartUrlObject = v__namespace.object({
|
|
1885
1905
|
url: IsValidUrlDestination
|
|
1886
1906
|
});
|
|
1887
|
-
var SUtmLinkBuilderPartUrlDestinations =
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1907
|
+
var SUtmLinkBuilderPartUrlDestinations = v__namespace.pipe(
|
|
1908
|
+
v__namespace.array(SUtmLinkBuilderPartUrlObject),
|
|
1909
|
+
v__namespace.minLength(1, "Please provide at least one destination URL."),
|
|
1910
|
+
v__namespace.maxLength(10, "You can provide up to 10 destination URLs.")
|
|
1891
1911
|
);
|
|
1892
|
-
var SUtmLinkBuilderPartSources =
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1912
|
+
var SUtmLinkBuilderPartSources = v__namespace.pipe(
|
|
1913
|
+
v__namespace.array(IsValidUrlUtmPart),
|
|
1914
|
+
v__namespace.minLength(1, "Please select at least one source."),
|
|
1915
|
+
v__namespace.maxLength(10, "You can select up to 10 sources.")
|
|
1896
1916
|
);
|
|
1897
|
-
var SUtmLinkBuilderPartMediums =
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1917
|
+
var SUtmLinkBuilderPartMediums = v__namespace.pipe(
|
|
1918
|
+
v__namespace.array(IsValidUrlUtmPart),
|
|
1919
|
+
v__namespace.minLength(1, "Please select at least one medium."),
|
|
1920
|
+
v__namespace.maxLength(10, "You can select up to 10 mediums.")
|
|
1901
1921
|
);
|
|
1902
1922
|
var SUtmLinkBuilderPartCampaignDateFormatOptions = [
|
|
1903
1923
|
"no date",
|
|
@@ -1906,81 +1926,81 @@ var SUtmLinkBuilderPartCampaignDateFormatOptions = [
|
|
|
1906
1926
|
"monthly",
|
|
1907
1927
|
"on a specific date"
|
|
1908
1928
|
];
|
|
1909
|
-
var SUtmLinkBuilderPartCampaignDateFormat =
|
|
1929
|
+
var SUtmLinkBuilderPartCampaignDateFormat = v__namespace.picklist(
|
|
1910
1930
|
SUtmLinkBuilderPartCampaignDateFormatOptions,
|
|
1911
1931
|
"Please select a valid campaign date format."
|
|
1912
1932
|
);
|
|
1913
|
-
var SUtmLinkBuilderPartCampaignDateValueYear =
|
|
1933
|
+
var SUtmLinkBuilderPartCampaignDateValueYear = v__namespace.number(
|
|
1914
1934
|
"Please provide a valid year."
|
|
1915
1935
|
);
|
|
1916
|
-
var SUtmLinkBuilderPartCampaignDateValueQuarter =
|
|
1917
|
-
|
|
1936
|
+
var SUtmLinkBuilderPartCampaignDateValueQuarter = v__namespace.optional(
|
|
1937
|
+
v__namespace.nullable(v__namespace.number())
|
|
1918
1938
|
);
|
|
1919
|
-
var SUtmLinkBuilderPartCampaignDateValueMonth =
|
|
1920
|
-
|
|
1939
|
+
var SUtmLinkBuilderPartCampaignDateValueMonth = v__namespace.optional(
|
|
1940
|
+
v__namespace.nullable(v__namespace.number())
|
|
1921
1941
|
);
|
|
1922
|
-
var SUtmLinkBuilderPartCampaignDateValueDay =
|
|
1923
|
-
|
|
1942
|
+
var SUtmLinkBuilderPartCampaignDateValueDay = v__namespace.optional(
|
|
1943
|
+
v__namespace.nullable(v__namespace.number())
|
|
1924
1944
|
);
|
|
1925
|
-
var SUtmLinkBuilderPartCampaignDateValue =
|
|
1945
|
+
var SUtmLinkBuilderPartCampaignDateValue = v__namespace.object({
|
|
1926
1946
|
year: SUtmLinkBuilderPartCampaignDateValueYear,
|
|
1927
1947
|
quarter: SUtmLinkBuilderPartCampaignDateValueQuarter,
|
|
1928
1948
|
month: SUtmLinkBuilderPartCampaignDateValueMonth,
|
|
1929
1949
|
day: SUtmLinkBuilderPartCampaignDateValueDay
|
|
1930
1950
|
});
|
|
1931
|
-
var SUtmLinkBuilderPartCampaignDateObject =
|
|
1951
|
+
var SUtmLinkBuilderPartCampaignDateObject = v__namespace.object({
|
|
1932
1952
|
format: SUtmLinkBuilderPartCampaignDateFormat,
|
|
1933
1953
|
value: SUtmLinkBuilderPartCampaignDateValue
|
|
1934
1954
|
});
|
|
1935
|
-
var SUtmLinkBuilderPartCampaignPhase =
|
|
1936
|
-
var SUtmLinkBuilderPartCampaignProduct =
|
|
1937
|
-
var SUtmLinkBuilderPartCampaignTargeting =
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1955
|
+
var SUtmLinkBuilderPartCampaignPhase = v__namespace.optional(IsValidUrlUtmPart);
|
|
1956
|
+
var SUtmLinkBuilderPartCampaignProduct = v__namespace.optional(IsValidUrlUtmPart);
|
|
1957
|
+
var SUtmLinkBuilderPartCampaignTargeting = v__namespace.optional(
|
|
1958
|
+
v__namespace.pipe(
|
|
1959
|
+
v__namespace.array(IsValidUrlUtmPart),
|
|
1960
|
+
v__namespace.maxLength(10, "You can select up to 10 targeting audiences.")
|
|
1941
1961
|
)
|
|
1942
1962
|
);
|
|
1943
|
-
var SUtmLinkBuilderPartCampaignKey =
|
|
1944
|
-
var SUtmLinkBuilderPartCampaignObject =
|
|
1963
|
+
var SUtmLinkBuilderPartCampaignKey = v__namespace.optional(IsValidUrlUtmPart);
|
|
1964
|
+
var SUtmLinkBuilderPartCampaignObject = v__namespace.object({
|
|
1945
1965
|
campaign_phase: SUtmLinkBuilderPartCampaignPhase,
|
|
1946
1966
|
campaign_product: SUtmLinkBuilderPartCampaignProduct,
|
|
1947
1967
|
campaign_targeting: SUtmLinkBuilderPartCampaignTargeting,
|
|
1948
1968
|
campaign_key: SUtmLinkBuilderPartCampaignKey,
|
|
1949
1969
|
campaign_date: SUtmLinkBuilderPartCampaignDateObject
|
|
1950
1970
|
});
|
|
1951
|
-
var SUtmLinkBuilderPartCampaigns =
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1971
|
+
var SUtmLinkBuilderPartCampaigns = v__namespace.pipe(
|
|
1972
|
+
v__namespace.array(SUtmLinkBuilderPartCampaignObject),
|
|
1973
|
+
v__namespace.minLength(1, "Please provide at least one campaign."),
|
|
1974
|
+
v__namespace.maxLength(10, "You can provide up to 10 campaigns.")
|
|
1955
1975
|
);
|
|
1956
|
-
var SUtmLinkBuilderPartContents =
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1976
|
+
var SUtmLinkBuilderPartContents = v__namespace.optional(
|
|
1977
|
+
v__namespace.pipe(
|
|
1978
|
+
v__namespace.array(IsValidUrlUtmPart),
|
|
1979
|
+
v__namespace.maxLength(10, "You can select up to 10 contents.")
|
|
1960
1980
|
)
|
|
1961
1981
|
);
|
|
1962
|
-
var SUtmLinkBuilderPartCreativeFormatValue =
|
|
1963
|
-
var SUtmLinkBuilderPartCreativeFormatVariantValue =
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1982
|
+
var SUtmLinkBuilderPartCreativeFormatValue = v__namespace.optional(IsValidUrlUtmPart);
|
|
1983
|
+
var SUtmLinkBuilderPartCreativeFormatVariantValue = v__namespace.optional(
|
|
1984
|
+
v__namespace.pipe(
|
|
1985
|
+
v__namespace.array(IsValidUrlUtmPart),
|
|
1986
|
+
v__namespace.maxLength(10, "You can select up to 10 creative format variations.")
|
|
1967
1987
|
)
|
|
1968
1988
|
);
|
|
1969
|
-
var SUtmLinkBuilderPartCreativeFormatObject =
|
|
1989
|
+
var SUtmLinkBuilderPartCreativeFormatObject = v__namespace.object({
|
|
1970
1990
|
creative_format: SUtmLinkBuilderPartCreativeFormatValue,
|
|
1971
1991
|
creative_format_variants: SUtmLinkBuilderPartCreativeFormatVariantValue
|
|
1972
1992
|
});
|
|
1973
|
-
var SUtmLinkBuilderPartCreativeFormats =
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1993
|
+
var SUtmLinkBuilderPartCreativeFormats = v__namespace.optional(
|
|
1994
|
+
v__namespace.pipe(
|
|
1995
|
+
v__namespace.array(SUtmLinkBuilderPartCreativeFormatObject),
|
|
1996
|
+
v__namespace.maxLength(10, "You can select up to 10 creative formats.")
|
|
1977
1997
|
)
|
|
1978
1998
|
);
|
|
1979
|
-
var SUtmLinkBuilderPartTerms =
|
|
1980
|
-
|
|
1999
|
+
var SUtmLinkBuilderPartTerms = v__namespace.optional(
|
|
2000
|
+
v__namespace.pipe(v__namespace.array(IsValidUrlUtmPart), v__namespace.maxLength(10, "You can select up to 10 terms."))
|
|
1981
2001
|
);
|
|
1982
|
-
var SUtmLinkBuilderPartCampaignId =
|
|
1983
|
-
var SUtmLinkBuilderTableForm =
|
|
2002
|
+
var SUtmLinkBuilderPartCampaignId = v__namespace.optional(IsValidUrlUtmPart);
|
|
2003
|
+
var SUtmLinkBuilderTableForm = v__namespace.object({
|
|
1984
2004
|
group: IsValidReferenceDocumentId,
|
|
1985
2005
|
url_destinations: SUtmLinkBuilderPartUrlDestinations,
|
|
1986
2006
|
sources: SUtmLinkBuilderPartSources,
|
|
@@ -1991,62 +2011,62 @@ var SUtmLinkBuilderTableForm = v62__namespace.object({
|
|
|
1991
2011
|
terms: SUtmLinkBuilderPartTerms,
|
|
1992
2012
|
campaign_id: SUtmLinkBuilderPartCampaignId
|
|
1993
2013
|
});
|
|
1994
|
-
var SStripeCheckoutLineItem =
|
|
2014
|
+
var SStripeCheckoutLineItem = v__namespace.object({
|
|
1995
2015
|
price: IsValidPriceId,
|
|
1996
|
-
quantity:
|
|
2016
|
+
quantity: v__namespace.pipe(v__namespace.number(), v__namespace.minValue(1), v__namespace.maxValue(1))
|
|
1997
2017
|
});
|
|
1998
|
-
var SStripeCheckoutCreateSession =
|
|
1999
|
-
line_items:
|
|
2000
|
-
mode:
|
|
2018
|
+
var SStripeCheckoutCreateSession = v__namespace.object({
|
|
2019
|
+
line_items: v__namespace.pipe(v__namespace.array(SStripeCheckoutLineItem), v__namespace.minLength(1), v__namespace.maxLength(10)),
|
|
2020
|
+
mode: v__namespace.picklist(["payment", "subscription"]),
|
|
2001
2021
|
success_url: IsValidOrUndefinedUrlDestination,
|
|
2002
2022
|
cancel_url: IsValidOrUndefinedUrlDestination
|
|
2003
2023
|
});
|
|
2004
|
-
var SQueryParamsTrackingLinkDocuments =
|
|
2024
|
+
var SQueryParamsTrackingLinkDocuments = v__namespace.object({
|
|
2005
2025
|
documentId: IsValidReferenceDocumentId,
|
|
2006
2026
|
page: VPage(),
|
|
2007
2027
|
size: VSize(TRACKING_LINK_PAGINATION_MAX_SIZE_LIMIT),
|
|
2008
2028
|
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 =
|
|
2029
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2030
|
+
value: v__namespace.optional(IsValidUrlDestination),
|
|
2031
|
+
destination: v__namespace.optional(IsValidUrlDestination),
|
|
2032
|
+
protocol: v__namespace.optional(IsValidUrlProtocol),
|
|
2033
|
+
domain: v__namespace.optional(IsValidUrlDomain),
|
|
2034
|
+
path: v__namespace.optional(IsValidUrlPath),
|
|
2035
|
+
query: v__namespace.optional(IsValidUrlQuery),
|
|
2036
|
+
fragment: v__namespace.optional(IsValidUrlFragment),
|
|
2037
|
+
utm_source: v__namespace.optional(IsValidUrlUtmSource),
|
|
2038
|
+
utm_medium: v__namespace.optional(IsValidUrlUtmMedium),
|
|
2039
|
+
utm_campaign: v__namespace.optional(IsValidUrlUtmCampaign),
|
|
2040
|
+
utm_creative_format: v__namespace.optional(IsValidUrlUtmCreativeFormat),
|
|
2041
|
+
utm_content: v__namespace.optional(IsValidUrlUtmContent),
|
|
2042
|
+
utm_term: v__namespace.optional(IsValidUrlUtmTerm),
|
|
2043
|
+
utm_id: v__namespace.optional(IsValidUrlUtmId),
|
|
2044
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2045
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2046
|
+
});
|
|
2047
|
+
var SQuerySearchTrackingLinkDocuments = v__namespace.object({
|
|
2028
2048
|
group: IsValidReferenceDocumentId,
|
|
2029
|
-
page:
|
|
2030
|
-
size:
|
|
2049
|
+
page: VPageRequired(),
|
|
2050
|
+
size: VSizeRequired(TRACKING_LINK_PAGINATION_MAX_SIZE_LIMIT),
|
|
2031
2051
|
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 =
|
|
2052
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2053
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2054
|
+
value: v__namespace.optional(IsValidUrlDestination),
|
|
2055
|
+
destination: v__namespace.optional(IsValidUrlDestination),
|
|
2056
|
+
protocol: v__namespace.optional(IsValidUrlProtocol),
|
|
2057
|
+
domain: v__namespace.optional(IsValidUrlDomain),
|
|
2058
|
+
path: v__namespace.optional(IsValidUrlPath),
|
|
2059
|
+
query: v__namespace.optional(IsValidUrlQuery),
|
|
2060
|
+
fragment: v__namespace.optional(IsValidUrlFragment),
|
|
2061
|
+
utm_source: v__namespace.optional(IsValidUrlUtmSource),
|
|
2062
|
+
utm_medium: v__namespace.optional(IsValidUrlUtmMedium),
|
|
2063
|
+
utm_campaign: v__namespace.optional(IsValidUrlUtmCampaign),
|
|
2064
|
+
utm_creative_format: v__namespace.optional(IsValidUrlUtmCreativeFormat),
|
|
2065
|
+
utm_content: v__namespace.optional(IsValidUrlUtmContent),
|
|
2066
|
+
utm_term: v__namespace.optional(IsValidUrlUtmTerm),
|
|
2067
|
+
utm_id: v__namespace.optional(IsValidUrlUtmId)
|
|
2068
|
+
});
|
|
2069
|
+
var SCreateTrackingLinkDocument = v__namespace.object({
|
|
2050
2070
|
group: IsValidReferenceDocumentId,
|
|
2051
2071
|
creator: IsValidReferenceDocumentId,
|
|
2052
2072
|
is_active: IsValidIsActive,
|
|
@@ -2065,30 +2085,30 @@ var SCreateTrackingLinkDocument = v62__namespace.object({
|
|
|
2065
2085
|
utm_term: IsValidUrlUtmTerm,
|
|
2066
2086
|
utm_id: IsValidUrlUtmId
|
|
2067
2087
|
});
|
|
2068
|
-
var SCreateMultipleTrackingLinkDocuments =
|
|
2069
|
-
tracking_links:
|
|
2070
|
-
|
|
2071
|
-
|
|
2088
|
+
var SCreateMultipleTrackingLinkDocuments = v__namespace.object({
|
|
2089
|
+
tracking_links: v__namespace.pipe(
|
|
2090
|
+
v__namespace.array(SCreateTrackingLinkDocument),
|
|
2091
|
+
v__namespace.minLength(1, "Please create at least one tracking link")
|
|
2072
2092
|
)
|
|
2073
2093
|
});
|
|
2074
|
-
var SCreatePreviewTrackingLinkDocument =
|
|
2094
|
+
var SCreatePreviewTrackingLinkDocument = v__namespace.object({
|
|
2075
2095
|
...SCreateTrackingLinkDocument.entries,
|
|
2076
|
-
is_duplicate:
|
|
2077
|
-
is_saved:
|
|
2096
|
+
is_duplicate: v__namespace.boolean(),
|
|
2097
|
+
is_saved: v__namespace.boolean()
|
|
2078
2098
|
});
|
|
2079
|
-
var SCreatePreviewMultipleTrackingLinkDocuments =
|
|
2080
|
-
tracking_links:
|
|
2081
|
-
|
|
2082
|
-
|
|
2099
|
+
var SCreatePreviewMultipleTrackingLinkDocuments = v__namespace.object({
|
|
2100
|
+
tracking_links: v__namespace.pipe(
|
|
2101
|
+
v__namespace.array(SCreatePreviewTrackingLinkDocument),
|
|
2102
|
+
v__namespace.minLength(1, "Please create at least one tracking link")
|
|
2083
2103
|
)
|
|
2084
2104
|
});
|
|
2085
|
-
var SReadTrackingLinkDocumentById =
|
|
2105
|
+
var SReadTrackingLinkDocumentById = v__namespace.object({
|
|
2086
2106
|
id: IsValidReferenceId
|
|
2087
2107
|
});
|
|
2088
|
-
var SReadTrackingLinkDocumentByDocumentId =
|
|
2108
|
+
var SReadTrackingLinkDocumentByDocumentId = v__namespace.object({
|
|
2089
2109
|
documentId: IsValidReferenceDocumentId
|
|
2090
2110
|
});
|
|
2091
|
-
var SUpdateAsCreatorTrackingLinkDocument =
|
|
2111
|
+
var SUpdateAsCreatorTrackingLinkDocument = v__namespace.object({
|
|
2092
2112
|
is_active: IsValidOrUndefinedIsActive,
|
|
2093
2113
|
value: IsValidOrUndefinedUrlDestination,
|
|
2094
2114
|
destination: IsValidOrUndefinedUrlDestination,
|
|
@@ -2105,11 +2125,11 @@ var SUpdateAsCreatorTrackingLinkDocument = v62__namespace.object({
|
|
|
2105
2125
|
utm_term: IsValidOrUndefinedUrlUtmTerm,
|
|
2106
2126
|
utm_id: IsValidOrUndefinedUrlUtmId
|
|
2107
2127
|
});
|
|
2108
|
-
var SUpdateAsCreatorTrackingLinkDocumentRequest =
|
|
2128
|
+
var SUpdateAsCreatorTrackingLinkDocumentRequest = v__namespace.object({
|
|
2109
2129
|
documentId: IsValidReferenceDocumentId,
|
|
2110
2130
|
data: SUpdateAsCreatorTrackingLinkDocument
|
|
2111
2131
|
});
|
|
2112
|
-
var SUpdateAsInvitedTrackingLinkDocument =
|
|
2132
|
+
var SUpdateAsInvitedTrackingLinkDocument = v__namespace.object({
|
|
2113
2133
|
is_active: IsValidOrUndefinedIsActive,
|
|
2114
2134
|
value: IsValidOrUndefinedUrlDestination,
|
|
2115
2135
|
destination: IsValidOrUndefinedUrlDestination,
|
|
@@ -2126,18 +2146,18 @@ var SUpdateAsInvitedTrackingLinkDocument = v62__namespace.object({
|
|
|
2126
2146
|
utm_term: IsValidOrUndefinedUrlUtmTerm,
|
|
2127
2147
|
utm_id: IsValidOrUndefinedUrlUtmId
|
|
2128
2148
|
});
|
|
2129
|
-
var SUpdateAsInvitedTrackingLinkDocumentRequest =
|
|
2149
|
+
var SUpdateAsInvitedTrackingLinkDocumentRequest = v__namespace.object({
|
|
2130
2150
|
documentId: IsValidReferenceDocumentId,
|
|
2131
2151
|
data: SUpdateAsInvitedTrackingLinkDocument
|
|
2132
2152
|
});
|
|
2133
|
-
var SUpdateTrackingLinkDocumentRequest =
|
|
2153
|
+
var SUpdateTrackingLinkDocumentRequest = v__namespace.union([
|
|
2134
2154
|
SUpdateAsCreatorTrackingLinkDocument,
|
|
2135
2155
|
SUpdateAsInvitedTrackingLinkDocument
|
|
2136
2156
|
]);
|
|
2137
|
-
var SDeleteTrackingLinkDocument =
|
|
2157
|
+
var SDeleteTrackingLinkDocument = v__namespace.object({
|
|
2138
2158
|
documentId: IsValidReferenceDocumentId
|
|
2139
2159
|
});
|
|
2140
|
-
var SQueryParamsUserAccountDocuments =
|
|
2160
|
+
var SQueryParamsUserAccountDocuments = v__namespace.object({
|
|
2141
2161
|
page: VPage(),
|
|
2142
2162
|
size: VSize(USER_ACCOUNT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2143
2163
|
sort: VSortUserAccount,
|
|
@@ -2151,7 +2171,21 @@ var SQueryParamsUserAccountDocuments = v62__namespace.object({
|
|
|
2151
2171
|
trial_period_end_after: IsValidOrUndefinedTrialPeriodEnd,
|
|
2152
2172
|
trial_period_end_before: IsValidOrUndefinedTrialPeriodEnd
|
|
2153
2173
|
});
|
|
2154
|
-
var
|
|
2174
|
+
var SQuerySearchUserAccountDocuments = v__namespace.object({
|
|
2175
|
+
page: VPageRequired(),
|
|
2176
|
+
size: VSizeRequired(USER_ACCOUNT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2177
|
+
sort: VSortUserAccount,
|
|
2178
|
+
customer_id: IsValidOrUndefinedCustomerId,
|
|
2179
|
+
subscription_id: IsValidOrUndefinedSubscriptionId,
|
|
2180
|
+
subscription_status: IsValidOrUndefinedSubscriptionStatus,
|
|
2181
|
+
current_period_start_after: IsValidOrUndefinedCurrentPeriodStart,
|
|
2182
|
+
current_period_start_before: IsValidOrUndefinedCurrentPeriodStart,
|
|
2183
|
+
current_period_end_after: IsValidOrUndefinedCurrentPeriodEnd,
|
|
2184
|
+
current_period_end_before: IsValidOrUndefinedCurrentPeriodEnd,
|
|
2185
|
+
trial_period_end_after: IsValidOrUndefinedTrialPeriodEnd,
|
|
2186
|
+
trial_period_end_before: IsValidOrUndefinedTrialPeriodEnd
|
|
2187
|
+
});
|
|
2188
|
+
var SCreateUserAccountDocument = v__namespace.object({
|
|
2155
2189
|
user: IsValidReferenceDocumentId,
|
|
2156
2190
|
customer_id: IsValidOrUndefinedCustomerId,
|
|
2157
2191
|
subscription_id: IsValidOrUndefinedSubscriptionId,
|
|
@@ -2160,13 +2194,13 @@ var SCreateUserAccountDocument = v62__namespace.object({
|
|
|
2160
2194
|
current_period_end: IsValidCurrentPeriodEnd,
|
|
2161
2195
|
trial_period_end: IsValidOrUndefinedTrialPeriodEnd
|
|
2162
2196
|
});
|
|
2163
|
-
var SReadUserAccountDocumentById =
|
|
2197
|
+
var SReadUserAccountDocumentById = v__namespace.object({
|
|
2164
2198
|
id: IsValidReferenceId
|
|
2165
2199
|
});
|
|
2166
|
-
var SReadUserAccountDocumentByDocumentId =
|
|
2200
|
+
var SReadUserAccountDocumentByDocumentId = v__namespace.object({
|
|
2167
2201
|
documentId: IsValidReferenceDocumentId
|
|
2168
2202
|
});
|
|
2169
|
-
var SUpdateUserAccountDocument =
|
|
2203
|
+
var SUpdateUserAccountDocument = v__namespace.object({
|
|
2170
2204
|
customer_id: IsValidOrUndefinedCustomerId,
|
|
2171
2205
|
subscription_id: IsValidOrUndefinedSubscriptionId,
|
|
2172
2206
|
subscription_status: IsValidOrUndefinedSubscriptionStatus,
|
|
@@ -2174,12 +2208,17 @@ var SUpdateUserAccountDocument = v62__namespace.object({
|
|
|
2174
2208
|
current_period_end: IsValidOrUndefinedCurrentPeriodEnd,
|
|
2175
2209
|
trial_period_end: IsValidOrUndefinedTrialPeriodEnd
|
|
2176
2210
|
});
|
|
2177
|
-
var SQueryParamsUserLimitationDocuments =
|
|
2211
|
+
var SQueryParamsUserLimitationDocuments = v__namespace.object({
|
|
2178
2212
|
page: VPage(),
|
|
2179
2213
|
size: VSize(USER_LIMITATION_PAGINATION_MAX_SIZE_LIMIT),
|
|
2180
2214
|
sort: VSortUserLimitations
|
|
2181
2215
|
});
|
|
2182
|
-
var
|
|
2216
|
+
var SQuerySearchUserLimitationDocuments = v__namespace.object({
|
|
2217
|
+
page: VPageRequired(),
|
|
2218
|
+
size: VSizeRequired(USER_LIMITATION_PAGINATION_MAX_SIZE_LIMIT),
|
|
2219
|
+
sort: VSortUserLimitations
|
|
2220
|
+
});
|
|
2221
|
+
var SCreateUserLimitationsDocument = v__namespace.object({
|
|
2183
2222
|
user: IsValidReferenceDocumentId,
|
|
2184
2223
|
limit_groups: IsValidUserLimitationNumberFallback,
|
|
2185
2224
|
limit_group_users: IsValidUserLimitationNumberFallback,
|
|
@@ -2197,13 +2236,13 @@ var SCreateUserLimitationsDocument = v62__namespace.object({
|
|
|
2197
2236
|
limit_creative_format_variants: IsValidUserLimitationNumberFallback,
|
|
2198
2237
|
limit_terms: IsValidUserLimitationNumberFallback
|
|
2199
2238
|
});
|
|
2200
|
-
var SReadUserLimitationsDocumentById =
|
|
2239
|
+
var SReadUserLimitationsDocumentById = v__namespace.object({
|
|
2201
2240
|
id: IsValidReferenceId
|
|
2202
2241
|
});
|
|
2203
|
-
var SReadUserLimitationsDocumentByDocumentId =
|
|
2242
|
+
var SReadUserLimitationsDocumentByDocumentId = v__namespace.object({
|
|
2204
2243
|
documentId: IsValidReferenceDocumentId
|
|
2205
2244
|
});
|
|
2206
|
-
var SUpdateUserLimitationsDocument =
|
|
2245
|
+
var SUpdateUserLimitationsDocument = v__namespace.object({
|
|
2207
2246
|
limit_groups: IsValidOrUndefinedUserLimitationNumber,
|
|
2208
2247
|
limit_group_users: IsValidOrUndefinedUserLimitationNumber,
|
|
2209
2248
|
limit_websites: IsValidOrUndefinedUserLimitationNumber,
|
|
@@ -2220,21 +2259,30 @@ var SUpdateUserLimitationsDocument = v62__namespace.object({
|
|
|
2220
2259
|
limit_creative_format_variants: IsValidOrUndefinedUserLimitationNumber,
|
|
2221
2260
|
limit_terms: IsValidOrUndefinedUserLimitationNumber
|
|
2222
2261
|
});
|
|
2223
|
-
var SQueryParamsUserDocuments =
|
|
2262
|
+
var SQueryParamsUserDocuments = v__namespace.object({
|
|
2224
2263
|
page: VPage(),
|
|
2225
2264
|
size: VSize(USER_PAGINATION_MAX_SIZE_LIMIT),
|
|
2226
2265
|
sort: VSortUser,
|
|
2227
|
-
email:
|
|
2228
|
-
username:
|
|
2229
|
-
confirmed:
|
|
2230
|
-
blocked:
|
|
2266
|
+
email: v__namespace.optional(IsValidEmail),
|
|
2267
|
+
username: v__namespace.optional(IsValidUsername),
|
|
2268
|
+
confirmed: v__namespace.optional(IsValidIsActive),
|
|
2269
|
+
blocked: v__namespace.optional(IsValidIsActive)
|
|
2270
|
+
});
|
|
2271
|
+
var SQuerySearchUserDocuments = v__namespace.object({
|
|
2272
|
+
page: VPageRequired(),
|
|
2273
|
+
size: VSizeRequired(USER_PAGINATION_MAX_SIZE_LIMIT),
|
|
2274
|
+
sort: VSortUser,
|
|
2275
|
+
email: v__namespace.optional(IsValidEmail),
|
|
2276
|
+
username: v__namespace.optional(IsValidUsername),
|
|
2277
|
+
confirmed: v__namespace.optional(IsValidIsActive),
|
|
2278
|
+
blocked: v__namespace.optional(IsValidIsActive)
|
|
2231
2279
|
});
|
|
2232
|
-
var SQueryParamsUserDocumentsByIdentifier =
|
|
2233
|
-
identifier:
|
|
2280
|
+
var SQueryParamsUserDocumentsByIdentifier = v__namespace.object({
|
|
2281
|
+
identifier: v__namespace.pipe(v__namespace.string(), v__namespace.maxLength(255)),
|
|
2234
2282
|
page: VPage(),
|
|
2235
2283
|
size: VSize(USER_PAGINATION_MAX_SIZE_LIMIT)
|
|
2236
2284
|
});
|
|
2237
|
-
var SCreateUserDocument =
|
|
2285
|
+
var SCreateUserDocument = v__namespace.object({
|
|
2238
2286
|
username: IsValidUsername,
|
|
2239
2287
|
email: IsValidEmail,
|
|
2240
2288
|
password: IsValidPassword,
|
|
@@ -2242,47 +2290,47 @@ var SCreateUserDocument = v62__namespace.object({
|
|
|
2242
2290
|
confirmed: IsValidIsBoolean,
|
|
2243
2291
|
role: IsValidReferenceId
|
|
2244
2292
|
});
|
|
2245
|
-
var SReadUserDocumentById =
|
|
2293
|
+
var SReadUserDocumentById = v__namespace.object({
|
|
2246
2294
|
id: IsValidReferenceId
|
|
2247
2295
|
});
|
|
2248
|
-
var SReadUserDocumentByDocumentId =
|
|
2296
|
+
var SReadUserDocumentByDocumentId = v__namespace.object({
|
|
2249
2297
|
documentId: IsValidReferenceDocumentId
|
|
2250
2298
|
});
|
|
2251
|
-
var SUpdateUserDocument =
|
|
2299
|
+
var SUpdateUserDocument = v__namespace.object({
|
|
2252
2300
|
username: IsValidOrUndefinedUsername,
|
|
2253
2301
|
email: IsValidOrUndefinedEmail,
|
|
2254
2302
|
password: IsValidOrUndefinedPassword,
|
|
2255
2303
|
blocked: IsValidOrUndefinedIsBoolean,
|
|
2256
2304
|
confirmed: IsValidOrUndefinedIsBoolean,
|
|
2257
|
-
role:
|
|
2305
|
+
role: v__namespace.optional(IsValidReferenceId)
|
|
2258
2306
|
});
|
|
2259
|
-
var SQueryParamsCampaignIdDocuments =
|
|
2307
|
+
var SQueryParamsCampaignIdDocuments = v__namespace.object({
|
|
2260
2308
|
page: VPage(),
|
|
2261
2309
|
size: VSize(CAMPAIGN_ID_PAGINATION_MAX_SIZE_LIMIT),
|
|
2262
2310
|
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 =
|
|
2311
|
+
cost: v__namespace.optional(IsValidCost),
|
|
2312
|
+
min_cost: v__namespace.optional(IsValidCost),
|
|
2313
|
+
max_cost: v__namespace.optional(IsValidCost),
|
|
2314
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2315
|
+
value: v__namespace.optional(IsValidValue),
|
|
2316
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2317
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2318
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2319
|
+
});
|
|
2320
|
+
var SQuerySearchCampaignIdDocuments = v__namespace.object({
|
|
2273
2321
|
group: IsValidReferenceDocumentId,
|
|
2274
|
-
page:
|
|
2275
|
-
size:
|
|
2322
|
+
page: VPageRequired(),
|
|
2323
|
+
size: VSizeRequired(CAMPAIGN_ID_PAGINATION_MAX_SIZE_LIMIT),
|
|
2276
2324
|
sort: VSortCampaignId,
|
|
2277
|
-
cost:
|
|
2278
|
-
min_cost:
|
|
2279
|
-
max_cost:
|
|
2280
|
-
label:
|
|
2281
|
-
value:
|
|
2282
|
-
is_active:
|
|
2283
|
-
creator:
|
|
2284
|
-
});
|
|
2285
|
-
var SCreateCampaignIdDocument =
|
|
2325
|
+
cost: v__namespace.optional(IsValidCost),
|
|
2326
|
+
min_cost: v__namespace.optional(IsValidCost),
|
|
2327
|
+
max_cost: v__namespace.optional(IsValidCost),
|
|
2328
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2329
|
+
value: v__namespace.optional(IsValidValue),
|
|
2330
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2331
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2332
|
+
});
|
|
2333
|
+
var SCreateCampaignIdDocument = v__namespace.object({
|
|
2286
2334
|
group: IsValidReferenceDocumentId,
|
|
2287
2335
|
creator: IsValidReferenceDocumentId,
|
|
2288
2336
|
cost: IsValidCost,
|
|
@@ -2291,66 +2339,66 @@ var SCreateCampaignIdDocument = v62__namespace.object({
|
|
|
2291
2339
|
description: IsValidDescription,
|
|
2292
2340
|
is_active: IsValidIsActive
|
|
2293
2341
|
});
|
|
2294
|
-
var SCreateMultipleCampaignIdDocuments =
|
|
2295
|
-
campaign_ids:
|
|
2296
|
-
|
|
2297
|
-
|
|
2342
|
+
var SCreateMultipleCampaignIdDocuments = v__namespace.object({
|
|
2343
|
+
campaign_ids: v__namespace.pipe(
|
|
2344
|
+
v__namespace.array(SCreateCampaignIdDocument),
|
|
2345
|
+
v__namespace.minLength(1, "At least one campaign ID is required")
|
|
2298
2346
|
)
|
|
2299
2347
|
});
|
|
2300
|
-
var SReadCampaignIdDocumentById =
|
|
2348
|
+
var SReadCampaignIdDocumentById = v__namespace.object({
|
|
2301
2349
|
id: IsValidReferenceId
|
|
2302
2350
|
});
|
|
2303
|
-
var SReadCampaignIdDocumentByDocumentId =
|
|
2351
|
+
var SReadCampaignIdDocumentByDocumentId = v__namespace.object({
|
|
2304
2352
|
documentId: IsValidReferenceDocumentId
|
|
2305
2353
|
});
|
|
2306
|
-
var SUpdateAsCreatorCampaignIdDocument =
|
|
2354
|
+
var SUpdateAsCreatorCampaignIdDocument = v__namespace.object({
|
|
2307
2355
|
cost: IsValidOrUndefinedCost,
|
|
2308
2356
|
label: IsValidOrUndefinedLabel,
|
|
2309
2357
|
value: IsValidOrUndefinedValue,
|
|
2310
2358
|
description: IsValidOrUndefinedDescription,
|
|
2311
2359
|
is_active: IsValidOrUndefinedIsActive
|
|
2312
2360
|
});
|
|
2313
|
-
var SUpdateAsCreatorCampaignIdDocumentRequest =
|
|
2361
|
+
var SUpdateAsCreatorCampaignIdDocumentRequest = v__namespace.object({
|
|
2314
2362
|
documentId: IsValidReferenceDocumentId,
|
|
2315
2363
|
data: SUpdateAsCreatorCampaignIdDocument
|
|
2316
2364
|
});
|
|
2317
|
-
var SUpdateAsInvitedCampaignIdDocument =
|
|
2365
|
+
var SUpdateAsInvitedCampaignIdDocument = v__namespace.object({
|
|
2318
2366
|
label: IsValidOrUndefinedLabel,
|
|
2319
2367
|
description: IsValidOrUndefinedDescription,
|
|
2320
2368
|
is_active: IsValidOrUndefinedIsActive
|
|
2321
2369
|
});
|
|
2322
|
-
var SUpdateAsInvitedCampaignIdDocumentRequest =
|
|
2370
|
+
var SUpdateAsInvitedCampaignIdDocumentRequest = v__namespace.object({
|
|
2323
2371
|
documentId: IsValidReferenceDocumentId,
|
|
2324
2372
|
data: SUpdateAsInvitedCampaignIdDocument
|
|
2325
2373
|
});
|
|
2326
|
-
var SUpdateCampaignIdDocumentRequest =
|
|
2374
|
+
var SUpdateCampaignIdDocumentRequest = v__namespace.union([
|
|
2327
2375
|
SUpdateAsCreatorCampaignIdDocument,
|
|
2328
2376
|
SUpdateAsInvitedCampaignIdDocument
|
|
2329
2377
|
]);
|
|
2330
|
-
var SDeleteCampaignIdDocument =
|
|
2378
|
+
var SDeleteCampaignIdDocument = v__namespace.object({
|
|
2331
2379
|
documentId: IsValidReferenceDocumentId
|
|
2332
2380
|
});
|
|
2333
|
-
var SQueryParamsCampaignKeyDocuments =
|
|
2381
|
+
var SQueryParamsCampaignKeyDocuments = v__namespace.object({
|
|
2334
2382
|
page: VPage(),
|
|
2335
2383
|
size: VSize(CAMPAIGN_KEY_PAGINATION_MAX_SIZE_LIMIT),
|
|
2336
2384
|
sort: VSortCampaignKey,
|
|
2337
|
-
label:
|
|
2338
|
-
value:
|
|
2339
|
-
is_active:
|
|
2340
|
-
group:
|
|
2341
|
-
creator:
|
|
2385
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2386
|
+
value: v__namespace.optional(IsValidValue),
|
|
2387
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2388
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2389
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2342
2390
|
});
|
|
2343
|
-
var SQuerySearchCampaignKeyDocuments =
|
|
2391
|
+
var SQuerySearchCampaignKeyDocuments = v__namespace.object({
|
|
2344
2392
|
group: IsValidReferenceDocumentId,
|
|
2345
|
-
page:
|
|
2346
|
-
size:
|
|
2393
|
+
page: VPageRequired(),
|
|
2394
|
+
size: VSizeRequired(CAMPAIGN_KEY_PAGINATION_MAX_SIZE_LIMIT),
|
|
2347
2395
|
sort: VSortCampaignKey,
|
|
2348
|
-
label:
|
|
2349
|
-
value:
|
|
2350
|
-
is_active:
|
|
2351
|
-
creator:
|
|
2396
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2397
|
+
value: v__namespace.optional(IsValidValue),
|
|
2398
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2399
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2352
2400
|
});
|
|
2353
|
-
var SCreateCampaignKeyDocument =
|
|
2401
|
+
var SCreateCampaignKeyDocument = v__namespace.object({
|
|
2354
2402
|
group: IsValidReferenceDocumentId,
|
|
2355
2403
|
creator: IsValidReferenceDocumentId,
|
|
2356
2404
|
label: IsValidLabel,
|
|
@@ -2358,66 +2406,66 @@ var SCreateCampaignKeyDocument = v62__namespace.object({
|
|
|
2358
2406
|
description: IsValidDescription,
|
|
2359
2407
|
is_active: IsValidIsActive
|
|
2360
2408
|
});
|
|
2361
|
-
var SCreateMultipleCampaignKeyDocuments =
|
|
2362
|
-
campaign_keys:
|
|
2363
|
-
|
|
2364
|
-
|
|
2409
|
+
var SCreateMultipleCampaignKeyDocuments = v__namespace.object({
|
|
2410
|
+
campaign_keys: v__namespace.pipe(
|
|
2411
|
+
v__namespace.array(SCreateCampaignKeyDocument),
|
|
2412
|
+
v__namespace.minLength(1, "At least one campaign key is required")
|
|
2365
2413
|
)
|
|
2366
2414
|
});
|
|
2367
|
-
var SReadCampaignKeyDocumentById =
|
|
2415
|
+
var SReadCampaignKeyDocumentById = v__namespace.object({
|
|
2368
2416
|
id: IsValidReferenceId
|
|
2369
2417
|
});
|
|
2370
|
-
var SReadCampaignKeyDocumentByDocumentId =
|
|
2418
|
+
var SReadCampaignKeyDocumentByDocumentId = v__namespace.object({
|
|
2371
2419
|
documentId: IsValidReferenceDocumentId
|
|
2372
2420
|
});
|
|
2373
|
-
var SUpdateAsCreatorCampaignKeyDocument =
|
|
2421
|
+
var SUpdateAsCreatorCampaignKeyDocument = v__namespace.object({
|
|
2374
2422
|
label: IsValidOrUndefinedLabel,
|
|
2375
2423
|
value: IsValidOrUndefinedValue,
|
|
2376
2424
|
description: IsValidOrUndefinedDescription,
|
|
2377
2425
|
is_active: IsValidOrUndefinedIsActive
|
|
2378
2426
|
});
|
|
2379
|
-
var SUpdateAsCreatorCampaignKeyDocumentRequest =
|
|
2427
|
+
var SUpdateAsCreatorCampaignKeyDocumentRequest = v__namespace.object({
|
|
2380
2428
|
documentId: IsValidReferenceDocumentId,
|
|
2381
2429
|
data: SUpdateAsCreatorCampaignKeyDocument
|
|
2382
2430
|
});
|
|
2383
|
-
var SUpdateAsInvitedCampaignKeyDocument =
|
|
2431
|
+
var SUpdateAsInvitedCampaignKeyDocument = v__namespace.object({
|
|
2384
2432
|
label: IsValidOrUndefinedLabel,
|
|
2385
2433
|
description: IsValidDescription,
|
|
2386
2434
|
is_active: IsValidOrUndefinedIsActive
|
|
2387
2435
|
});
|
|
2388
|
-
var SUpdateAsInvitedCampaignKeyDocumentRequest =
|
|
2436
|
+
var SUpdateAsInvitedCampaignKeyDocumentRequest = v__namespace.object({
|
|
2389
2437
|
documentId: IsValidReferenceDocumentId,
|
|
2390
2438
|
data: SUpdateAsInvitedCampaignKeyDocument
|
|
2391
2439
|
});
|
|
2392
|
-
var SUpdateCampaignKeyDocumentRequest =
|
|
2440
|
+
var SUpdateCampaignKeyDocumentRequest = v__namespace.union([
|
|
2393
2441
|
SUpdateAsCreatorCampaignKeyDocument,
|
|
2394
2442
|
SUpdateAsInvitedCampaignKeyDocument
|
|
2395
2443
|
]);
|
|
2396
|
-
var SDeleteCampaignKeyDocument =
|
|
2444
|
+
var SDeleteCampaignKeyDocument = v__namespace.object({
|
|
2397
2445
|
documentId: IsValidReferenceDocumentId
|
|
2398
2446
|
});
|
|
2399
|
-
var SQueryParamsCampaignPhaseDocuments =
|
|
2447
|
+
var SQueryParamsCampaignPhaseDocuments = v__namespace.object({
|
|
2400
2448
|
documentId: IsValidReferenceDocumentId,
|
|
2401
2449
|
page: VPage(),
|
|
2402
2450
|
size: VSize(CAMPAIGN_PHASE_PAGINATION_MAX_SIZE_LIMIT),
|
|
2403
2451
|
sort: VSortCampaignPhase,
|
|
2404
|
-
label:
|
|
2405
|
-
value:
|
|
2406
|
-
is_active:
|
|
2407
|
-
group:
|
|
2408
|
-
creator:
|
|
2452
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2453
|
+
value: v__namespace.optional(IsValidValue),
|
|
2454
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2455
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2456
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2409
2457
|
});
|
|
2410
|
-
var SQuerySearchCampaignPhaseDocuments =
|
|
2458
|
+
var SQuerySearchCampaignPhaseDocuments = v__namespace.object({
|
|
2411
2459
|
group: IsValidReferenceDocumentId,
|
|
2412
|
-
page:
|
|
2413
|
-
size:
|
|
2460
|
+
page: VPageRequired(),
|
|
2461
|
+
size: VSizeRequired(CAMPAIGN_PHASE_PAGINATION_MAX_SIZE_LIMIT),
|
|
2414
2462
|
sort: VSortCampaignPhase,
|
|
2415
|
-
label:
|
|
2416
|
-
value:
|
|
2417
|
-
is_active:
|
|
2418
|
-
creator:
|
|
2463
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2464
|
+
value: v__namespace.optional(IsValidValue),
|
|
2465
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2466
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2419
2467
|
});
|
|
2420
|
-
var SCreateCampaignPhaseDocument =
|
|
2468
|
+
var SCreateCampaignPhaseDocument = v__namespace.object({
|
|
2421
2469
|
group: IsValidReferenceDocumentId,
|
|
2422
2470
|
creator: IsValidReferenceDocumentId,
|
|
2423
2471
|
label: IsValidLabel,
|
|
@@ -2425,65 +2473,65 @@ var SCreateCampaignPhaseDocument = v62__namespace.object({
|
|
|
2425
2473
|
description: IsValidDescription,
|
|
2426
2474
|
is_active: IsValidIsActive
|
|
2427
2475
|
});
|
|
2428
|
-
var SCreateMultipleCampaignPhaseDocuments =
|
|
2429
|
-
campaign_phases:
|
|
2430
|
-
|
|
2431
|
-
|
|
2476
|
+
var SCreateMultipleCampaignPhaseDocuments = v__namespace.object({
|
|
2477
|
+
campaign_phases: v__namespace.pipe(
|
|
2478
|
+
v__namespace.array(SCreateCampaignPhaseDocument),
|
|
2479
|
+
v__namespace.minLength(1, "At least one campaign phase is required")
|
|
2432
2480
|
)
|
|
2433
2481
|
});
|
|
2434
|
-
var SReadCampaignPhaseDocumentById =
|
|
2482
|
+
var SReadCampaignPhaseDocumentById = v__namespace.object({
|
|
2435
2483
|
id: IsValidReferenceId
|
|
2436
2484
|
});
|
|
2437
|
-
var SReadCampaignPhaseDocumentByDocumentId =
|
|
2485
|
+
var SReadCampaignPhaseDocumentByDocumentId = v__namespace.object({
|
|
2438
2486
|
documentId: IsValidReferenceDocumentId
|
|
2439
2487
|
});
|
|
2440
|
-
var SUpdateAsCreatorCampaignPhaseDocument =
|
|
2488
|
+
var SUpdateAsCreatorCampaignPhaseDocument = v__namespace.object({
|
|
2441
2489
|
label: IsValidOrUndefinedLabel,
|
|
2442
2490
|
value: IsValidOrUndefinedValue,
|
|
2443
2491
|
description: IsValidOrUndefinedDescription,
|
|
2444
2492
|
is_active: IsValidOrUndefinedIsActive
|
|
2445
2493
|
});
|
|
2446
|
-
var SUpdateAsCreatorCampaignPhaseDocumentRequest =
|
|
2494
|
+
var SUpdateAsCreatorCampaignPhaseDocumentRequest = v__namespace.object({
|
|
2447
2495
|
documentId: IsValidReferenceDocumentId,
|
|
2448
2496
|
data: SUpdateAsCreatorCampaignPhaseDocument
|
|
2449
2497
|
});
|
|
2450
|
-
var SUpdateAsInvitedCampaignPhaseDocument =
|
|
2498
|
+
var SUpdateAsInvitedCampaignPhaseDocument = v__namespace.object({
|
|
2451
2499
|
label: IsValidOrUndefinedLabel,
|
|
2452
2500
|
description: IsValidDescription,
|
|
2453
2501
|
is_active: IsValidOrUndefinedIsActive
|
|
2454
2502
|
});
|
|
2455
|
-
var SUpdateAsInvitedCampaignPhaseDocumentRequest =
|
|
2503
|
+
var SUpdateAsInvitedCampaignPhaseDocumentRequest = v__namespace.object({
|
|
2456
2504
|
documentId: IsValidReferenceDocumentId,
|
|
2457
2505
|
data: SUpdateAsInvitedCampaignPhaseDocument
|
|
2458
2506
|
});
|
|
2459
|
-
var SUpdateCampaignPhaseDocumentRequest =
|
|
2507
|
+
var SUpdateCampaignPhaseDocumentRequest = v__namespace.union([
|
|
2460
2508
|
SUpdateAsCreatorCampaignPhaseDocument,
|
|
2461
2509
|
SUpdateAsInvitedCampaignPhaseDocument
|
|
2462
2510
|
]);
|
|
2463
|
-
var SDeleteCampaignPhaseDocument =
|
|
2511
|
+
var SDeleteCampaignPhaseDocument = v__namespace.object({
|
|
2464
2512
|
documentId: IsValidReferenceDocumentId
|
|
2465
2513
|
});
|
|
2466
|
-
var SQueryParamsCampaignProductDocuments =
|
|
2514
|
+
var SQueryParamsCampaignProductDocuments = v__namespace.object({
|
|
2467
2515
|
page: VPage(),
|
|
2468
2516
|
size: VSize(CAMPAIGN_PRODUCT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2469
2517
|
sort: VSortCampaignProduct,
|
|
2470
|
-
label:
|
|
2471
|
-
value:
|
|
2472
|
-
is_active:
|
|
2473
|
-
group:
|
|
2474
|
-
creator:
|
|
2518
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2519
|
+
value: v__namespace.optional(IsValidValue),
|
|
2520
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2521
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2522
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2475
2523
|
});
|
|
2476
|
-
var SQuerySearchCampaignProductDocuments =
|
|
2524
|
+
var SQuerySearchCampaignProductDocuments = v__namespace.object({
|
|
2477
2525
|
group: IsValidReferenceDocumentId,
|
|
2478
|
-
page:
|
|
2479
|
-
size:
|
|
2526
|
+
page: VPageRequired(),
|
|
2527
|
+
size: VSizeRequired(CAMPAIGN_PRODUCT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2480
2528
|
sort: VSortCampaignProduct,
|
|
2481
|
-
label:
|
|
2482
|
-
value:
|
|
2483
|
-
is_active:
|
|
2484
|
-
creator:
|
|
2529
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2530
|
+
value: v__namespace.optional(IsValidValue),
|
|
2531
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2532
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2485
2533
|
});
|
|
2486
|
-
var SCreateCampaignProductDocument =
|
|
2534
|
+
var SCreateCampaignProductDocument = v__namespace.object({
|
|
2487
2535
|
group: IsValidReferenceDocumentId,
|
|
2488
2536
|
creator: IsValidReferenceDocumentId,
|
|
2489
2537
|
label: IsValidLabel,
|
|
@@ -2491,66 +2539,66 @@ var SCreateCampaignProductDocument = v62__namespace.object({
|
|
|
2491
2539
|
description: IsValidDescription,
|
|
2492
2540
|
is_active: IsValidIsActive
|
|
2493
2541
|
});
|
|
2494
|
-
var SCreateMultipleCampaignProductDocuments =
|
|
2495
|
-
campaign_products:
|
|
2496
|
-
|
|
2497
|
-
|
|
2542
|
+
var SCreateMultipleCampaignProductDocuments = v__namespace.object({
|
|
2543
|
+
campaign_products: v__namespace.pipe(
|
|
2544
|
+
v__namespace.array(SCreateCampaignProductDocument),
|
|
2545
|
+
v__namespace.minLength(1, "At least one campaign product is required")
|
|
2498
2546
|
)
|
|
2499
2547
|
});
|
|
2500
|
-
var SReadCampaignProductDocumentById =
|
|
2548
|
+
var SReadCampaignProductDocumentById = v__namespace.object({
|
|
2501
2549
|
id: IsValidReferenceId
|
|
2502
2550
|
});
|
|
2503
|
-
var SReadCampaignProductDocumentByDocumentId =
|
|
2551
|
+
var SReadCampaignProductDocumentByDocumentId = v__namespace.object({
|
|
2504
2552
|
documentId: IsValidReferenceDocumentId
|
|
2505
2553
|
});
|
|
2506
|
-
var SUpdateAsCreatorCampaignProductDocument =
|
|
2554
|
+
var SUpdateAsCreatorCampaignProductDocument = v__namespace.object({
|
|
2507
2555
|
label: IsValidOrUndefinedLabel,
|
|
2508
2556
|
value: IsValidOrUndefinedValue,
|
|
2509
2557
|
description: IsValidOrUndefinedDescription,
|
|
2510
2558
|
is_active: IsValidOrUndefinedIsActive
|
|
2511
2559
|
});
|
|
2512
|
-
var SUpdateAsCreatorCampaignProductDocumentRequest =
|
|
2560
|
+
var SUpdateAsCreatorCampaignProductDocumentRequest = v__namespace.object({
|
|
2513
2561
|
documentId: IsValidReferenceDocumentId,
|
|
2514
2562
|
data: SUpdateAsCreatorCampaignProductDocument
|
|
2515
2563
|
});
|
|
2516
|
-
var SUpdateAsInvitedCampaignProductDocument =
|
|
2564
|
+
var SUpdateAsInvitedCampaignProductDocument = v__namespace.object({
|
|
2517
2565
|
label: IsValidOrUndefinedLabel,
|
|
2518
2566
|
description: IsValidDescription,
|
|
2519
2567
|
is_active: IsValidOrUndefinedIsActive
|
|
2520
2568
|
});
|
|
2521
|
-
var SUpdateAsInvitedCampaignProductDocumentRequest =
|
|
2569
|
+
var SUpdateAsInvitedCampaignProductDocumentRequest = v__namespace.object({
|
|
2522
2570
|
documentId: IsValidReferenceDocumentId,
|
|
2523
2571
|
data: SUpdateAsInvitedCampaignProductDocument
|
|
2524
2572
|
});
|
|
2525
|
-
var SUpdateCampaignProductDocumentRequest =
|
|
2573
|
+
var SUpdateCampaignProductDocumentRequest = v__namespace.union([
|
|
2526
2574
|
SUpdateAsCreatorCampaignProductDocument,
|
|
2527
2575
|
SUpdateAsInvitedCampaignProductDocument
|
|
2528
2576
|
]);
|
|
2529
|
-
var SDeleteCampaignProductDocument =
|
|
2577
|
+
var SDeleteCampaignProductDocument = v__namespace.object({
|
|
2530
2578
|
documentId: IsValidReferenceDocumentId
|
|
2531
2579
|
});
|
|
2532
|
-
var SQueryParamsCampaignTargetDocuments =
|
|
2580
|
+
var SQueryParamsCampaignTargetDocuments = v__namespace.object({
|
|
2533
2581
|
documentId: IsValidReferenceDocumentId,
|
|
2534
2582
|
page: VPage(),
|
|
2535
2583
|
size: VSize(CAMPAIGN_PRODUCT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2536
2584
|
sort: VSortCampaignTarget,
|
|
2537
|
-
label:
|
|
2538
|
-
value:
|
|
2539
|
-
is_active:
|
|
2540
|
-
group:
|
|
2541
|
-
creator:
|
|
2585
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2586
|
+
value: v__namespace.optional(IsValidValue),
|
|
2587
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2588
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2589
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2542
2590
|
});
|
|
2543
|
-
var SQuerySearchCampaignTargetDocuments =
|
|
2591
|
+
var SQuerySearchCampaignTargetDocuments = v__namespace.object({
|
|
2544
2592
|
group: IsValidReferenceDocumentId,
|
|
2545
|
-
page:
|
|
2546
|
-
size:
|
|
2593
|
+
page: VPageRequired(),
|
|
2594
|
+
size: VSizeRequired(CAMPAIGN_PRODUCT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2547
2595
|
sort: VSortCampaignTarget,
|
|
2548
|
-
label:
|
|
2549
|
-
value:
|
|
2550
|
-
is_active:
|
|
2551
|
-
creator:
|
|
2596
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2597
|
+
value: v__namespace.optional(IsValidValue),
|
|
2598
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2599
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2552
2600
|
});
|
|
2553
|
-
var SCreateCampaignTargetDocument =
|
|
2601
|
+
var SCreateCampaignTargetDocument = v__namespace.object({
|
|
2554
2602
|
group: IsValidReferenceDocumentId,
|
|
2555
2603
|
creator: IsValidReferenceDocumentId,
|
|
2556
2604
|
label: IsValidLabel,
|
|
@@ -2558,65 +2606,65 @@ var SCreateCampaignTargetDocument = v62__namespace.object({
|
|
|
2558
2606
|
description: IsValidDescription,
|
|
2559
2607
|
is_active: IsValidIsActive
|
|
2560
2608
|
});
|
|
2561
|
-
var SCreateMultipleCampaignTargetDocuments =
|
|
2562
|
-
campaign_targets:
|
|
2563
|
-
|
|
2564
|
-
|
|
2609
|
+
var SCreateMultipleCampaignTargetDocuments = v__namespace.object({
|
|
2610
|
+
campaign_targets: v__namespace.pipe(
|
|
2611
|
+
v__namespace.array(SCreateCampaignTargetDocument),
|
|
2612
|
+
v__namespace.minLength(1, "At least one campaign target is required")
|
|
2565
2613
|
)
|
|
2566
2614
|
});
|
|
2567
|
-
var SReadCampaignTargetDocumentById =
|
|
2615
|
+
var SReadCampaignTargetDocumentById = v__namespace.object({
|
|
2568
2616
|
id: IsValidReferenceId
|
|
2569
2617
|
});
|
|
2570
|
-
var SReadCampaignTargetDocumentByDocumentId =
|
|
2618
|
+
var SReadCampaignTargetDocumentByDocumentId = v__namespace.object({
|
|
2571
2619
|
documentId: IsValidReferenceDocumentId
|
|
2572
2620
|
});
|
|
2573
|
-
var SUpdateAsCreatorCampaignTargetDocument =
|
|
2621
|
+
var SUpdateAsCreatorCampaignTargetDocument = v__namespace.object({
|
|
2574
2622
|
label: IsValidOrUndefinedLabel,
|
|
2575
2623
|
value: IsValidOrUndefinedValue,
|
|
2576
2624
|
description: IsValidOrUndefinedDescription,
|
|
2577
2625
|
is_active: IsValidOrUndefinedIsActive
|
|
2578
2626
|
});
|
|
2579
|
-
var SUpdateAsCreatorCampaignTargetDocumentRequest =
|
|
2627
|
+
var SUpdateAsCreatorCampaignTargetDocumentRequest = v__namespace.object({
|
|
2580
2628
|
documentId: IsValidReferenceDocumentId,
|
|
2581
2629
|
data: SUpdateAsCreatorCampaignTargetDocument
|
|
2582
2630
|
});
|
|
2583
|
-
var SUpdateAsInvitedCampaignTargetDocument =
|
|
2631
|
+
var SUpdateAsInvitedCampaignTargetDocument = v__namespace.object({
|
|
2584
2632
|
label: IsValidOrUndefinedLabel,
|
|
2585
2633
|
description: IsValidDescription,
|
|
2586
2634
|
is_active: IsValidOrUndefinedIsActive
|
|
2587
2635
|
});
|
|
2588
|
-
var SUpdateAsInvitedCampaignTargetDocumentRequest =
|
|
2636
|
+
var SUpdateAsInvitedCampaignTargetDocumentRequest = v__namespace.object({
|
|
2589
2637
|
documentId: IsValidReferenceDocumentId,
|
|
2590
2638
|
data: SUpdateAsInvitedCampaignTargetDocument
|
|
2591
2639
|
});
|
|
2592
|
-
var SUpdateCampaignTargetDocumentRequest =
|
|
2640
|
+
var SUpdateCampaignTargetDocumentRequest = v__namespace.union([
|
|
2593
2641
|
SUpdateAsCreatorCampaignTargetDocument,
|
|
2594
2642
|
SUpdateAsInvitedCampaignTargetDocument
|
|
2595
2643
|
]);
|
|
2596
|
-
var SDeleteCampaignTargetDocument =
|
|
2644
|
+
var SDeleteCampaignTargetDocument = v__namespace.object({
|
|
2597
2645
|
documentId: IsValidReferenceDocumentId
|
|
2598
2646
|
});
|
|
2599
|
-
var SQueryParamsContentDocuments =
|
|
2647
|
+
var SQueryParamsContentDocuments = v__namespace.object({
|
|
2600
2648
|
page: VPage(),
|
|
2601
2649
|
size: VSize(CONTENT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2602
2650
|
sort: VSortContent,
|
|
2603
|
-
label:
|
|
2604
|
-
value:
|
|
2605
|
-
is_active:
|
|
2606
|
-
group:
|
|
2607
|
-
creator:
|
|
2651
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2652
|
+
value: v__namespace.optional(IsValidValue),
|
|
2653
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2654
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2655
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2608
2656
|
});
|
|
2609
|
-
var SQuerySearchContentDocuments =
|
|
2657
|
+
var SQuerySearchContentDocuments = v__namespace.object({
|
|
2610
2658
|
group: IsValidReferenceDocumentId,
|
|
2611
|
-
page:
|
|
2612
|
-
size:
|
|
2659
|
+
page: VPageRequired(),
|
|
2660
|
+
size: VSizeRequired(CONTENT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2613
2661
|
sort: VSortContent,
|
|
2614
|
-
label:
|
|
2615
|
-
value:
|
|
2616
|
-
is_active:
|
|
2617
|
-
creator:
|
|
2662
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2663
|
+
value: v__namespace.optional(IsValidValue),
|
|
2664
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2665
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2618
2666
|
});
|
|
2619
|
-
var SCreateContentDocument =
|
|
2667
|
+
var SCreateContentDocument = v__namespace.object({
|
|
2620
2668
|
group: IsValidReferenceDocumentId,
|
|
2621
2669
|
creator: IsValidReferenceDocumentId,
|
|
2622
2670
|
label: IsValidLabel,
|
|
@@ -2624,65 +2672,65 @@ var SCreateContentDocument = v62__namespace.object({
|
|
|
2624
2672
|
description: IsValidDescription,
|
|
2625
2673
|
is_active: IsValidIsActive
|
|
2626
2674
|
});
|
|
2627
|
-
var SCreateMultipleContentDocuments =
|
|
2628
|
-
contents:
|
|
2629
|
-
|
|
2630
|
-
|
|
2675
|
+
var SCreateMultipleContentDocuments = v__namespace.object({
|
|
2676
|
+
contents: v__namespace.pipe(
|
|
2677
|
+
v__namespace.array(SCreateContentDocument),
|
|
2678
|
+
v__namespace.minLength(1, "At least one term is required")
|
|
2631
2679
|
)
|
|
2632
2680
|
});
|
|
2633
|
-
var SReadContentDocumentById =
|
|
2681
|
+
var SReadContentDocumentById = v__namespace.object({
|
|
2634
2682
|
id: IsValidReferenceId
|
|
2635
2683
|
});
|
|
2636
|
-
var SReadContentDocumentByDocumentId =
|
|
2684
|
+
var SReadContentDocumentByDocumentId = v__namespace.object({
|
|
2637
2685
|
documentId: IsValidReferenceDocumentId
|
|
2638
2686
|
});
|
|
2639
|
-
var SUpdateAsCreatorContentDocument =
|
|
2687
|
+
var SUpdateAsCreatorContentDocument = v__namespace.object({
|
|
2640
2688
|
label: IsValidOrUndefinedLabel,
|
|
2641
2689
|
value: IsValidOrUndefinedValue,
|
|
2642
2690
|
description: IsValidOrUndefinedDescription,
|
|
2643
2691
|
is_active: IsValidOrUndefinedIsActive
|
|
2644
2692
|
});
|
|
2645
|
-
var SUpdateAsCreatorContentDocumentRequest =
|
|
2693
|
+
var SUpdateAsCreatorContentDocumentRequest = v__namespace.object({
|
|
2646
2694
|
documentId: IsValidReferenceDocumentId,
|
|
2647
2695
|
data: SUpdateAsCreatorContentDocument
|
|
2648
2696
|
});
|
|
2649
|
-
var SUpdateAsInvitedContentDocument =
|
|
2697
|
+
var SUpdateAsInvitedContentDocument = v__namespace.object({
|
|
2650
2698
|
label: IsValidOrUndefinedLabel,
|
|
2651
2699
|
description: IsValidDescription,
|
|
2652
2700
|
is_active: IsValidOrUndefinedIsActive
|
|
2653
2701
|
});
|
|
2654
|
-
var SUpdateAsInvitedContentDocumentRequest =
|
|
2702
|
+
var SUpdateAsInvitedContentDocumentRequest = v__namespace.object({
|
|
2655
2703
|
documentId: IsValidReferenceDocumentId,
|
|
2656
2704
|
data: SUpdateAsInvitedContentDocument
|
|
2657
2705
|
});
|
|
2658
|
-
var SUpdateContentDocumentRequest =
|
|
2706
|
+
var SUpdateContentDocumentRequest = v__namespace.union([
|
|
2659
2707
|
SUpdateAsCreatorContentDocument,
|
|
2660
2708
|
SUpdateAsInvitedContentDocument
|
|
2661
2709
|
]);
|
|
2662
|
-
var SDeleteContentDocument =
|
|
2710
|
+
var SDeleteContentDocument = v__namespace.object({
|
|
2663
2711
|
documentId: IsValidReferenceDocumentId
|
|
2664
2712
|
});
|
|
2665
|
-
var SQueryParamsCreativeFormatVariantDocuments =
|
|
2713
|
+
var SQueryParamsCreativeFormatVariantDocuments = v__namespace.object({
|
|
2666
2714
|
page: VPage(),
|
|
2667
2715
|
size: VSize(CREATIVE_FORMAT_VARIANT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2668
2716
|
sort: VSortCreativeFormatVariant,
|
|
2669
|
-
label:
|
|
2670
|
-
value:
|
|
2671
|
-
is_active:
|
|
2672
|
-
group:
|
|
2673
|
-
creator:
|
|
2717
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2718
|
+
value: v__namespace.optional(IsValidValue),
|
|
2719
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2720
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2721
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2674
2722
|
});
|
|
2675
|
-
var SQuerySearchCreativeFormatVariantDocuments =
|
|
2723
|
+
var SQuerySearchCreativeFormatVariantDocuments = v__namespace.object({
|
|
2676
2724
|
group: IsValidReferenceDocumentId,
|
|
2677
|
-
page:
|
|
2678
|
-
size:
|
|
2725
|
+
page: VPageRequired(),
|
|
2726
|
+
size: VSizeRequired(CREATIVE_FORMAT_VARIANT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2679
2727
|
sort: VSortCreativeFormatVariant,
|
|
2680
|
-
label:
|
|
2681
|
-
value:
|
|
2682
|
-
is_active:
|
|
2683
|
-
creator:
|
|
2728
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2729
|
+
value: v__namespace.optional(IsValidValue),
|
|
2730
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2731
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2684
2732
|
});
|
|
2685
|
-
var SCreateCreativeFormatVariantDocument =
|
|
2733
|
+
var SCreateCreativeFormatVariantDocument = v__namespace.object({
|
|
2686
2734
|
group: IsValidReferenceDocumentId,
|
|
2687
2735
|
creator: IsValidReferenceDocumentId,
|
|
2688
2736
|
label: IsValidLabel,
|
|
@@ -2690,65 +2738,65 @@ var SCreateCreativeFormatVariantDocument = v62__namespace.object({
|
|
|
2690
2738
|
description: IsValidDescription,
|
|
2691
2739
|
is_active: IsValidIsActive
|
|
2692
2740
|
});
|
|
2693
|
-
var SCreateMultipleCreativeFormatVariantDocuments =
|
|
2694
|
-
creative_format_variants:
|
|
2695
|
-
|
|
2696
|
-
|
|
2741
|
+
var SCreateMultipleCreativeFormatVariantDocuments = v__namespace.object({
|
|
2742
|
+
creative_format_variants: v__namespace.pipe(
|
|
2743
|
+
v__namespace.array(SCreateCreativeFormatVariantDocument),
|
|
2744
|
+
v__namespace.minLength(1, "At least one term is required")
|
|
2697
2745
|
)
|
|
2698
2746
|
});
|
|
2699
|
-
var SReadCreativeFormatVariantDocumentById =
|
|
2747
|
+
var SReadCreativeFormatVariantDocumentById = v__namespace.object({
|
|
2700
2748
|
id: IsValidReferenceId
|
|
2701
2749
|
});
|
|
2702
|
-
var SReadCreativeFormatVariantDocumentByDocumentId =
|
|
2750
|
+
var SReadCreativeFormatVariantDocumentByDocumentId = v__namespace.object({
|
|
2703
2751
|
documentId: IsValidReferenceDocumentId
|
|
2704
2752
|
});
|
|
2705
|
-
var SUpdateAsCreatorCreativeFormatVariantDocument =
|
|
2753
|
+
var SUpdateAsCreatorCreativeFormatVariantDocument = v__namespace.object({
|
|
2706
2754
|
label: IsValidOrUndefinedLabel,
|
|
2707
2755
|
value: IsValidOrUndefinedValue,
|
|
2708
2756
|
description: IsValidOrUndefinedDescription,
|
|
2709
2757
|
is_active: IsValidOrUndefinedIsActive
|
|
2710
2758
|
});
|
|
2711
|
-
var SUpdateAsCreatorCreativeFormatVariantDocumentRequest =
|
|
2759
|
+
var SUpdateAsCreatorCreativeFormatVariantDocumentRequest = v__namespace.object({
|
|
2712
2760
|
documentId: IsValidReferenceDocumentId,
|
|
2713
2761
|
data: SUpdateAsCreatorCreativeFormatVariantDocument
|
|
2714
2762
|
});
|
|
2715
|
-
var SUpdateAsInvitedCreativeFormatVariantDocument =
|
|
2763
|
+
var SUpdateAsInvitedCreativeFormatVariantDocument = v__namespace.object({
|
|
2716
2764
|
label: IsValidOrUndefinedLabel,
|
|
2717
2765
|
description: IsValidDescription,
|
|
2718
2766
|
is_active: IsValidOrUndefinedIsActive
|
|
2719
2767
|
});
|
|
2720
|
-
var SUpdateAsInvitedCreativeFormatVariantDocumentRequest =
|
|
2768
|
+
var SUpdateAsInvitedCreativeFormatVariantDocumentRequest = v__namespace.object({
|
|
2721
2769
|
documentId: IsValidReferenceDocumentId,
|
|
2722
2770
|
data: SUpdateAsInvitedCreativeFormatVariantDocument
|
|
2723
2771
|
});
|
|
2724
|
-
var SUpdateCreativeFormatVariantDocumentRequest =
|
|
2772
|
+
var SUpdateCreativeFormatVariantDocumentRequest = v__namespace.union([
|
|
2725
2773
|
SUpdateAsCreatorCreativeFormatVariantDocument,
|
|
2726
2774
|
SUpdateAsInvitedCreativeFormatVariantDocument
|
|
2727
2775
|
]);
|
|
2728
|
-
var SDeleteCreativeFormatVariantDocument =
|
|
2776
|
+
var SDeleteCreativeFormatVariantDocument = v__namespace.object({
|
|
2729
2777
|
documentId: IsValidReferenceDocumentId
|
|
2730
2778
|
});
|
|
2731
|
-
var SQueryParamsCreativeFormatDocuments =
|
|
2779
|
+
var SQueryParamsCreativeFormatDocuments = v__namespace.object({
|
|
2732
2780
|
page: VPage(),
|
|
2733
2781
|
size: VSize(CREATIVE_FORMAT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2734
2782
|
sort: VSortCreativeFormat,
|
|
2735
|
-
label:
|
|
2736
|
-
value:
|
|
2737
|
-
is_active:
|
|
2738
|
-
group:
|
|
2739
|
-
creator:
|
|
2783
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2784
|
+
value: v__namespace.optional(IsValidValue),
|
|
2785
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2786
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2787
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2740
2788
|
});
|
|
2741
|
-
var SQuerySearchCreativeFormatDocuments =
|
|
2789
|
+
var SQuerySearchCreativeFormatDocuments = v__namespace.object({
|
|
2742
2790
|
group: IsValidReferenceDocumentId,
|
|
2743
|
-
page:
|
|
2744
|
-
size:
|
|
2791
|
+
page: VPageRequired(),
|
|
2792
|
+
size: VSizeRequired(CREATIVE_FORMAT_PAGINATION_MAX_SIZE_LIMIT),
|
|
2745
2793
|
sort: VSortCreativeFormat,
|
|
2746
|
-
label:
|
|
2747
|
-
value:
|
|
2748
|
-
is_active:
|
|
2749
|
-
creator:
|
|
2794
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2795
|
+
value: v__namespace.optional(IsValidValue),
|
|
2796
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2797
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2750
2798
|
});
|
|
2751
|
-
var SCreateCreativeFormatDocument =
|
|
2799
|
+
var SCreateCreativeFormatDocument = v__namespace.object({
|
|
2752
2800
|
group: IsValidReferenceDocumentId,
|
|
2753
2801
|
creator: IsValidReferenceDocumentId,
|
|
2754
2802
|
label: IsValidLabel,
|
|
@@ -2756,65 +2804,65 @@ var SCreateCreativeFormatDocument = v62__namespace.object({
|
|
|
2756
2804
|
description: IsValidDescription,
|
|
2757
2805
|
is_active: IsValidIsActive
|
|
2758
2806
|
});
|
|
2759
|
-
var SCreateMultipleCreativeFormatDocuments =
|
|
2760
|
-
creative_formats:
|
|
2761
|
-
|
|
2762
|
-
|
|
2807
|
+
var SCreateMultipleCreativeFormatDocuments = v__namespace.object({
|
|
2808
|
+
creative_formats: v__namespace.pipe(
|
|
2809
|
+
v__namespace.array(SCreateCreativeFormatDocument),
|
|
2810
|
+
v__namespace.minLength(1, "At least one creative format is required")
|
|
2763
2811
|
)
|
|
2764
2812
|
});
|
|
2765
|
-
var SReadCreativeFormatDocumentById =
|
|
2813
|
+
var SReadCreativeFormatDocumentById = v__namespace.object({
|
|
2766
2814
|
id: IsValidReferenceId
|
|
2767
2815
|
});
|
|
2768
|
-
var SReadCreativeFormatDocumentByDocumentId =
|
|
2816
|
+
var SReadCreativeFormatDocumentByDocumentId = v__namespace.object({
|
|
2769
2817
|
documentId: IsValidReferenceDocumentId
|
|
2770
2818
|
});
|
|
2771
|
-
var SUpdateAsCreatorCreativeFormatDocument =
|
|
2819
|
+
var SUpdateAsCreatorCreativeFormatDocument = v__namespace.object({
|
|
2772
2820
|
label: IsValidOrUndefinedLabel,
|
|
2773
2821
|
value: IsValidOrUndefinedValue,
|
|
2774
2822
|
description: IsValidOrUndefinedDescription,
|
|
2775
2823
|
is_active: IsValidOrUndefinedIsActive
|
|
2776
2824
|
});
|
|
2777
|
-
var SUpdateAsCreatorCreativeFormatDocumentRequest =
|
|
2825
|
+
var SUpdateAsCreatorCreativeFormatDocumentRequest = v__namespace.object({
|
|
2778
2826
|
documentId: IsValidReferenceDocumentId,
|
|
2779
2827
|
data: SUpdateAsCreatorCreativeFormatDocument
|
|
2780
2828
|
});
|
|
2781
|
-
var SUpdateAsInvitedCreativeFormatDocument =
|
|
2829
|
+
var SUpdateAsInvitedCreativeFormatDocument = v__namespace.object({
|
|
2782
2830
|
label: IsValidOrUndefinedLabel,
|
|
2783
2831
|
description: IsValidDescription,
|
|
2784
2832
|
is_active: IsValidOrUndefinedIsActive
|
|
2785
2833
|
});
|
|
2786
|
-
var SUpdateAsInvitedCreativeFormatDocumentRequest =
|
|
2834
|
+
var SUpdateAsInvitedCreativeFormatDocumentRequest = v__namespace.object({
|
|
2787
2835
|
documentId: IsValidReferenceDocumentId,
|
|
2788
2836
|
data: SUpdateAsInvitedCreativeFormatDocument
|
|
2789
2837
|
});
|
|
2790
|
-
var SUpdateCreativeFormatDocumentRequest =
|
|
2838
|
+
var SUpdateCreativeFormatDocumentRequest = v__namespace.union([
|
|
2791
2839
|
SUpdateAsCreatorCreativeFormatDocument,
|
|
2792
2840
|
SUpdateAsInvitedCreativeFormatDocument
|
|
2793
2841
|
]);
|
|
2794
|
-
var SDeleteCreativeFormatDocument =
|
|
2842
|
+
var SDeleteCreativeFormatDocument = v__namespace.object({
|
|
2795
2843
|
documentId: IsValidReferenceDocumentId
|
|
2796
2844
|
});
|
|
2797
|
-
var SQueryParamsMediumDocuments =
|
|
2845
|
+
var SQueryParamsMediumDocuments = v__namespace.object({
|
|
2798
2846
|
page: VPage(),
|
|
2799
2847
|
size: VSize(MEDIUM_PAGINATION_MAX_SIZE_LIMIT),
|
|
2800
2848
|
sort: VSortMedium,
|
|
2801
|
-
label:
|
|
2802
|
-
value:
|
|
2803
|
-
is_active:
|
|
2804
|
-
group:
|
|
2805
|
-
creator:
|
|
2849
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2850
|
+
value: v__namespace.optional(IsValidValue),
|
|
2851
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2852
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2853
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2806
2854
|
});
|
|
2807
|
-
var SQuerySearchMediumDocuments =
|
|
2855
|
+
var SQuerySearchMediumDocuments = v__namespace.object({
|
|
2808
2856
|
group: IsValidReferenceDocumentId,
|
|
2809
|
-
page:
|
|
2810
|
-
size:
|
|
2857
|
+
page: VPageRequired(),
|
|
2858
|
+
size: VSizeRequired(MEDIUM_PAGINATION_MAX_SIZE_LIMIT),
|
|
2811
2859
|
sort: VSortMedium,
|
|
2812
|
-
label:
|
|
2813
|
-
value:
|
|
2814
|
-
is_active:
|
|
2815
|
-
creator:
|
|
2860
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2861
|
+
value: v__namespace.optional(IsValidValue),
|
|
2862
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2863
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2816
2864
|
});
|
|
2817
|
-
var SCreateMediumDocument =
|
|
2865
|
+
var SCreateMediumDocument = v__namespace.object({
|
|
2818
2866
|
group: IsValidReferenceDocumentId,
|
|
2819
2867
|
creator: IsValidReferenceDocumentId,
|
|
2820
2868
|
label: IsValidLabel,
|
|
@@ -2822,65 +2870,65 @@ var SCreateMediumDocument = v62__namespace.object({
|
|
|
2822
2870
|
description: IsValidDescription,
|
|
2823
2871
|
is_active: IsValidIsActive
|
|
2824
2872
|
});
|
|
2825
|
-
var SCreateMultipleMediumDocuments =
|
|
2826
|
-
mediums:
|
|
2827
|
-
|
|
2828
|
-
|
|
2873
|
+
var SCreateMultipleMediumDocuments = v__namespace.object({
|
|
2874
|
+
mediums: v__namespace.pipe(
|
|
2875
|
+
v__namespace.array(SCreateMediumDocument),
|
|
2876
|
+
v__namespace.minLength(1, "At least one medium is required")
|
|
2829
2877
|
)
|
|
2830
2878
|
});
|
|
2831
|
-
var SReadMediumDocumentById =
|
|
2879
|
+
var SReadMediumDocumentById = v__namespace.object({
|
|
2832
2880
|
id: IsValidReferenceId
|
|
2833
2881
|
});
|
|
2834
|
-
var SReadMediumDocumentByDocumentId =
|
|
2882
|
+
var SReadMediumDocumentByDocumentId = v__namespace.object({
|
|
2835
2883
|
documentId: IsValidReferenceDocumentId
|
|
2836
2884
|
});
|
|
2837
|
-
var SUpdateAsCreatorMediumDocument =
|
|
2885
|
+
var SUpdateAsCreatorMediumDocument = v__namespace.object({
|
|
2838
2886
|
label: IsValidOrUndefinedLabel,
|
|
2839
2887
|
value: IsValidOrUndefinedValue,
|
|
2840
2888
|
description: IsValidOrUndefinedDescription,
|
|
2841
2889
|
is_active: IsValidOrUndefinedIsActive
|
|
2842
2890
|
});
|
|
2843
|
-
var SUpdateAsCreatorMediumDocumentRequest =
|
|
2891
|
+
var SUpdateAsCreatorMediumDocumentRequest = v__namespace.object({
|
|
2844
2892
|
documentId: IsValidReferenceDocumentId,
|
|
2845
2893
|
data: SUpdateAsCreatorMediumDocument
|
|
2846
2894
|
});
|
|
2847
|
-
var SUpdateAsInvitedMediumDocument =
|
|
2895
|
+
var SUpdateAsInvitedMediumDocument = v__namespace.object({
|
|
2848
2896
|
label: IsValidOrUndefinedLabel,
|
|
2849
2897
|
description: IsValidDescription,
|
|
2850
2898
|
is_active: IsValidOrUndefinedIsActive
|
|
2851
2899
|
});
|
|
2852
|
-
var SUpdateAsInvitedMediumDocumentRequest =
|
|
2900
|
+
var SUpdateAsInvitedMediumDocumentRequest = v__namespace.object({
|
|
2853
2901
|
documentId: IsValidReferenceDocumentId,
|
|
2854
2902
|
data: SUpdateAsInvitedMediumDocument
|
|
2855
2903
|
});
|
|
2856
|
-
var SUpdateMediumDocumentRequest =
|
|
2904
|
+
var SUpdateMediumDocumentRequest = v__namespace.union([
|
|
2857
2905
|
SUpdateAsCreatorMediumDocument,
|
|
2858
2906
|
SUpdateAsInvitedMediumDocument
|
|
2859
2907
|
]);
|
|
2860
|
-
var SDeleteMediumDocument =
|
|
2908
|
+
var SDeleteMediumDocument = v__namespace.object({
|
|
2861
2909
|
documentId: IsValidReferenceDocumentId
|
|
2862
2910
|
});
|
|
2863
|
-
var SQueryParamsSourceDocuments =
|
|
2911
|
+
var SQueryParamsSourceDocuments = v__namespace.object({
|
|
2864
2912
|
page: VPage(),
|
|
2865
2913
|
size: VSize(SOURCE_PAGINATION_MAX_SIZE_LIMIT),
|
|
2866
2914
|
sort: VSortSource,
|
|
2867
|
-
label:
|
|
2868
|
-
value:
|
|
2869
|
-
is_active:
|
|
2870
|
-
group:
|
|
2871
|
-
creator:
|
|
2915
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2916
|
+
value: v__namespace.optional(IsValidValue),
|
|
2917
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2918
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2919
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2872
2920
|
});
|
|
2873
|
-
var SQuerySearchSourceDocuments =
|
|
2921
|
+
var SQuerySearchSourceDocuments = v__namespace.object({
|
|
2874
2922
|
group: IsValidReferenceDocumentId,
|
|
2875
|
-
page:
|
|
2876
|
-
size:
|
|
2923
|
+
page: VPageRequired(),
|
|
2924
|
+
size: VSizeRequired(SOURCE_PAGINATION_MAX_SIZE_LIMIT),
|
|
2877
2925
|
sort: VSortSource,
|
|
2878
|
-
label:
|
|
2879
|
-
value:
|
|
2880
|
-
is_active:
|
|
2881
|
-
creator:
|
|
2926
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2927
|
+
value: v__namespace.optional(IsValidValue),
|
|
2928
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2929
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2882
2930
|
});
|
|
2883
|
-
var SCreateSourceDocument =
|
|
2931
|
+
var SCreateSourceDocument = v__namespace.object({
|
|
2884
2932
|
group: IsValidReferenceDocumentId,
|
|
2885
2933
|
creator: IsValidReferenceDocumentId,
|
|
2886
2934
|
label: IsValidLabel,
|
|
@@ -2888,65 +2936,65 @@ var SCreateSourceDocument = v62__namespace.object({
|
|
|
2888
2936
|
description: IsValidDescription,
|
|
2889
2937
|
is_active: IsValidIsActive
|
|
2890
2938
|
});
|
|
2891
|
-
var SCreateMultipleSourceDocuments =
|
|
2892
|
-
sources:
|
|
2893
|
-
|
|
2894
|
-
|
|
2939
|
+
var SCreateMultipleSourceDocuments = v__namespace.object({
|
|
2940
|
+
sources: v__namespace.pipe(
|
|
2941
|
+
v__namespace.array(SCreateSourceDocument),
|
|
2942
|
+
v__namespace.minLength(1, "At least one source is required")
|
|
2895
2943
|
)
|
|
2896
2944
|
});
|
|
2897
|
-
var SReadSourceDocumentById =
|
|
2945
|
+
var SReadSourceDocumentById = v__namespace.object({
|
|
2898
2946
|
id: IsValidReferenceId
|
|
2899
2947
|
});
|
|
2900
|
-
var SReadSourceDocumentByDocumentId =
|
|
2948
|
+
var SReadSourceDocumentByDocumentId = v__namespace.object({
|
|
2901
2949
|
documentId: IsValidReferenceDocumentId
|
|
2902
2950
|
});
|
|
2903
|
-
var SUpdateAsCreatorSourceDocument =
|
|
2951
|
+
var SUpdateAsCreatorSourceDocument = v__namespace.object({
|
|
2904
2952
|
label: IsValidOrUndefinedLabel,
|
|
2905
2953
|
value: IsValidOrUndefinedValue,
|
|
2906
2954
|
description: IsValidOrUndefinedDescription,
|
|
2907
2955
|
is_active: IsValidOrUndefinedIsActive
|
|
2908
2956
|
});
|
|
2909
|
-
var SUpdateAsCreatorSourceDocumentRequest =
|
|
2957
|
+
var SUpdateAsCreatorSourceDocumentRequest = v__namespace.object({
|
|
2910
2958
|
documentId: IsValidReferenceDocumentId,
|
|
2911
2959
|
data: SUpdateAsCreatorSourceDocument
|
|
2912
2960
|
});
|
|
2913
|
-
var SUpdateAsInvitedSourceDocument =
|
|
2961
|
+
var SUpdateAsInvitedSourceDocument = v__namespace.object({
|
|
2914
2962
|
label: IsValidOrUndefinedLabel,
|
|
2915
2963
|
description: IsValidDescription,
|
|
2916
2964
|
is_active: IsValidOrUndefinedIsActive
|
|
2917
2965
|
});
|
|
2918
|
-
var SUpdateAsInvitedSourceDocumentRequest =
|
|
2966
|
+
var SUpdateAsInvitedSourceDocumentRequest = v__namespace.object({
|
|
2919
2967
|
documentId: IsValidReferenceDocumentId,
|
|
2920
2968
|
data: SUpdateAsInvitedSourceDocument
|
|
2921
2969
|
});
|
|
2922
|
-
var SUpdateSourceDocumentRequest =
|
|
2970
|
+
var SUpdateSourceDocumentRequest = v__namespace.union([
|
|
2923
2971
|
SUpdateAsCreatorSourceDocument,
|
|
2924
2972
|
SUpdateAsInvitedSourceDocument
|
|
2925
2973
|
]);
|
|
2926
|
-
var SDeleteSourceDocument =
|
|
2974
|
+
var SDeleteSourceDocument = v__namespace.object({
|
|
2927
2975
|
documentId: IsValidReferenceDocumentId
|
|
2928
2976
|
});
|
|
2929
|
-
var SQueryParamsTermDocuments =
|
|
2977
|
+
var SQueryParamsTermDocuments = v__namespace.object({
|
|
2930
2978
|
page: VPage(),
|
|
2931
2979
|
size: VSize(TERM_PAGINATION_MAX_SIZE_LIMIT),
|
|
2932
2980
|
sort: VSortTerm,
|
|
2933
|
-
label:
|
|
2934
|
-
value:
|
|
2935
|
-
is_active:
|
|
2936
|
-
group:
|
|
2937
|
-
creator:
|
|
2981
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2982
|
+
value: v__namespace.optional(IsValidValue),
|
|
2983
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2984
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
2985
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2938
2986
|
});
|
|
2939
|
-
var SQuerySearchTermDocuments =
|
|
2987
|
+
var SQuerySearchTermDocuments = v__namespace.object({
|
|
2940
2988
|
group: IsValidReferenceDocumentId,
|
|
2941
|
-
page:
|
|
2942
|
-
size:
|
|
2989
|
+
page: VPageRequired(),
|
|
2990
|
+
size: VSizeRequired(TERM_PAGINATION_MAX_SIZE_LIMIT),
|
|
2943
2991
|
sort: VSortTerm,
|
|
2944
|
-
label:
|
|
2945
|
-
value:
|
|
2946
|
-
is_active:
|
|
2947
|
-
creator:
|
|
2992
|
+
label: v__namespace.optional(IsValidLabel),
|
|
2993
|
+
value: v__namespace.optional(IsValidValue),
|
|
2994
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
2995
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
2948
2996
|
});
|
|
2949
|
-
var SCreateTermDocument =
|
|
2997
|
+
var SCreateTermDocument = v__namespace.object({
|
|
2950
2998
|
group: IsValidReferenceDocumentId,
|
|
2951
2999
|
creator: IsValidReferenceDocumentId,
|
|
2952
3000
|
label: IsValidLabel,
|
|
@@ -2954,65 +3002,65 @@ var SCreateTermDocument = v62__namespace.object({
|
|
|
2954
3002
|
description: IsValidDescription,
|
|
2955
3003
|
is_active: IsValidIsActive
|
|
2956
3004
|
});
|
|
2957
|
-
var SCreateMultipleTermDocuments =
|
|
2958
|
-
terms:
|
|
2959
|
-
|
|
2960
|
-
|
|
3005
|
+
var SCreateMultipleTermDocuments = v__namespace.object({
|
|
3006
|
+
terms: v__namespace.pipe(
|
|
3007
|
+
v__namespace.array(SCreateTermDocument),
|
|
3008
|
+
v__namespace.minLength(1, "At least one term is required")
|
|
2961
3009
|
)
|
|
2962
3010
|
});
|
|
2963
|
-
var SReadTermDocumentById =
|
|
3011
|
+
var SReadTermDocumentById = v__namespace.object({
|
|
2964
3012
|
id: IsValidReferenceId
|
|
2965
3013
|
});
|
|
2966
|
-
var SReadTermDocumentByDocumentId =
|
|
3014
|
+
var SReadTermDocumentByDocumentId = v__namespace.object({
|
|
2967
3015
|
documentId: IsValidReferenceDocumentId
|
|
2968
3016
|
});
|
|
2969
|
-
var SUpdateAsCreatorTermDocument =
|
|
3017
|
+
var SUpdateAsCreatorTermDocument = v__namespace.object({
|
|
2970
3018
|
label: IsValidOrUndefinedLabel,
|
|
2971
3019
|
value: IsValidOrUndefinedValue,
|
|
2972
3020
|
description: IsValidOrUndefinedDescription,
|
|
2973
3021
|
is_active: IsValidOrUndefinedIsActive
|
|
2974
3022
|
});
|
|
2975
|
-
var SUpdateAsCreatorTermDocumentRequest =
|
|
3023
|
+
var SUpdateAsCreatorTermDocumentRequest = v__namespace.object({
|
|
2976
3024
|
documentId: IsValidReferenceDocumentId,
|
|
2977
3025
|
data: SUpdateAsCreatorTermDocument
|
|
2978
3026
|
});
|
|
2979
|
-
var SUpdateAsInvitedTermDocument =
|
|
3027
|
+
var SUpdateAsInvitedTermDocument = v__namespace.object({
|
|
2980
3028
|
label: IsValidOrUndefinedLabel,
|
|
2981
3029
|
description: IsValidDescription,
|
|
2982
3030
|
is_active: IsValidOrUndefinedIsActive
|
|
2983
3031
|
});
|
|
2984
|
-
var SUpdateAsInvitedTermDocumentRequest =
|
|
3032
|
+
var SUpdateAsInvitedTermDocumentRequest = v__namespace.object({
|
|
2985
3033
|
documentId: IsValidReferenceDocumentId,
|
|
2986
3034
|
data: SUpdateAsInvitedTermDocument
|
|
2987
3035
|
});
|
|
2988
|
-
var SUpdateTermDocumentRequest =
|
|
3036
|
+
var SUpdateTermDocumentRequest = v__namespace.union([
|
|
2989
3037
|
SUpdateAsCreatorTermDocument,
|
|
2990
3038
|
SUpdateAsInvitedTermDocument
|
|
2991
3039
|
]);
|
|
2992
|
-
var SDeleteTermDocument =
|
|
3040
|
+
var SDeleteTermDocument = v__namespace.object({
|
|
2993
3041
|
documentId: IsValidReferenceDocumentId
|
|
2994
3042
|
});
|
|
2995
|
-
var SQueryParamsWebsiteDocuments =
|
|
3043
|
+
var SQueryParamsWebsiteDocuments = v__namespace.object({
|
|
2996
3044
|
page: VPage(),
|
|
2997
3045
|
size: VSize(WEBSITE_PAGINATION_MAX_SIZE_LIMIT),
|
|
2998
3046
|
sort: VSortWebsite,
|
|
2999
|
-
domain:
|
|
3000
|
-
is_active:
|
|
3001
|
-
is_secure:
|
|
3002
|
-
group:
|
|
3003
|
-
creator:
|
|
3047
|
+
domain: v__namespace.optional(IsValidUrlDomain),
|
|
3048
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
3049
|
+
is_secure: v__namespace.optional(IsValidIsSecure),
|
|
3050
|
+
group: v__namespace.optional(IsValidReferenceDocumentId),
|
|
3051
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
3004
3052
|
});
|
|
3005
|
-
var SQuerySearchWebsiteDocuments =
|
|
3053
|
+
var SQuerySearchWebsiteDocuments = v__namespace.object({
|
|
3006
3054
|
group: IsValidReferenceDocumentId,
|
|
3007
|
-
page:
|
|
3008
|
-
size:
|
|
3055
|
+
page: VPageRequired(),
|
|
3056
|
+
size: VSizeRequired(WEBSITE_PAGINATION_MAX_SIZE_LIMIT),
|
|
3009
3057
|
sort: VSortWebsite,
|
|
3010
|
-
domain:
|
|
3011
|
-
is_active:
|
|
3012
|
-
is_secure:
|
|
3013
|
-
creator:
|
|
3058
|
+
domain: v__namespace.optional(IsValidUrlDomain),
|
|
3059
|
+
is_active: v__namespace.optional(IsValidIsActive),
|
|
3060
|
+
is_secure: v__namespace.optional(IsValidIsSecure),
|
|
3061
|
+
creator: v__namespace.optional(IsValidReferenceDocumentId)
|
|
3014
3062
|
});
|
|
3015
|
-
var SCreateWebsiteDocument =
|
|
3063
|
+
var SCreateWebsiteDocument = v__namespace.object({
|
|
3016
3064
|
group: IsValidReferenceDocumentId,
|
|
3017
3065
|
creator: IsValidReferenceDocumentId,
|
|
3018
3066
|
domain: IsValidUrlDomain,
|
|
@@ -3020,158 +3068,158 @@ var SCreateWebsiteDocument = v62__namespace.object({
|
|
|
3020
3068
|
is_secure: IsValidIsSecure,
|
|
3021
3069
|
is_active: IsValidIsActive
|
|
3022
3070
|
});
|
|
3023
|
-
var SCreateMultipleWebsiteDocuments =
|
|
3024
|
-
websites:
|
|
3025
|
-
|
|
3026
|
-
|
|
3071
|
+
var SCreateMultipleWebsiteDocuments = v__namespace.object({
|
|
3072
|
+
websites: v__namespace.pipe(
|
|
3073
|
+
v__namespace.array(SCreateWebsiteDocument),
|
|
3074
|
+
v__namespace.minLength(1, "At least one website is required")
|
|
3027
3075
|
)
|
|
3028
3076
|
});
|
|
3029
|
-
var SReadWebsiteDocumentById =
|
|
3077
|
+
var SReadWebsiteDocumentById = v__namespace.object({
|
|
3030
3078
|
id: IsValidReferenceId
|
|
3031
3079
|
});
|
|
3032
|
-
var SReadWebsiteDocumentByDocumentId =
|
|
3080
|
+
var SReadWebsiteDocumentByDocumentId = v__namespace.object({
|
|
3033
3081
|
documentId: IsValidReferenceDocumentId
|
|
3034
3082
|
});
|
|
3035
|
-
var SUpdateAsCreatorWebsiteDocument =
|
|
3083
|
+
var SUpdateAsCreatorWebsiteDocument = v__namespace.object({
|
|
3036
3084
|
domain: IsValidOrUndefinedUrlDomain,
|
|
3037
3085
|
description: IsValidOrUndefinedDescription,
|
|
3038
3086
|
is_secure: IsValidOrUndefinedIsSecure,
|
|
3039
3087
|
is_active: IsValidOrUndefinedIsActive
|
|
3040
3088
|
});
|
|
3041
|
-
var SUpdateAsCreatorWebsiteDocumentRequest =
|
|
3089
|
+
var SUpdateAsCreatorWebsiteDocumentRequest = v__namespace.object({
|
|
3042
3090
|
documentId: IsValidReferenceDocumentId,
|
|
3043
3091
|
data: SUpdateAsCreatorWebsiteDocument
|
|
3044
3092
|
});
|
|
3045
|
-
var SUpdateAsInvitedWebsiteDocument =
|
|
3093
|
+
var SUpdateAsInvitedWebsiteDocument = v__namespace.object({
|
|
3046
3094
|
description: IsValidOrUndefinedDescription
|
|
3047
3095
|
});
|
|
3048
|
-
var SUpdateAsInvitedWebsiteDocumentRequest =
|
|
3096
|
+
var SUpdateAsInvitedWebsiteDocumentRequest = v__namespace.object({
|
|
3049
3097
|
documentId: IsValidReferenceDocumentId,
|
|
3050
3098
|
data: SUpdateAsInvitedWebsiteDocument
|
|
3051
3099
|
});
|
|
3052
|
-
var SUpdateWebsiteDocumentRequest =
|
|
3100
|
+
var SUpdateWebsiteDocumentRequest = v__namespace.union([
|
|
3053
3101
|
SUpdateAsCreatorWebsiteDocument,
|
|
3054
3102
|
SUpdateAsInvitedWebsiteDocument
|
|
3055
3103
|
]);
|
|
3056
|
-
var SDeleteWebsiteDocument =
|
|
3104
|
+
var SDeleteWebsiteDocument = v__namespace.object({
|
|
3057
3105
|
documentId: IsValidReferenceDocumentId
|
|
3058
3106
|
});
|
|
3059
|
-
var SGroupUserDocumentWithRelations =
|
|
3107
|
+
var SGroupUserDocumentWithRelations = v__namespace.object({
|
|
3060
3108
|
...SBaseDocument.entries,
|
|
3061
3109
|
...SBaseGroupUserDocument.entries,
|
|
3062
3110
|
...SGroupUserRelationsDocument.entries
|
|
3063
3111
|
});
|
|
3064
|
-
var SGroupUserDocumentReqRelations =
|
|
3112
|
+
var SGroupUserDocumentReqRelations = v__namespace.object({
|
|
3065
3113
|
...SBaseDocument.entries,
|
|
3066
3114
|
...SBaseGroupUserDocument.entries,
|
|
3067
3115
|
...SGroupUserRelationsReqDocument.entries
|
|
3068
3116
|
});
|
|
3069
|
-
var SGroupDocumentWithRelations =
|
|
3117
|
+
var SGroupDocumentWithRelations = v__namespace.object({
|
|
3070
3118
|
...SBaseDocument.entries,
|
|
3071
3119
|
...SBaseGroupDocument.entries,
|
|
3072
3120
|
...SGroupRelationsDocument.entries
|
|
3073
3121
|
});
|
|
3074
|
-
var SRoleDocumentWithRelations =
|
|
3122
|
+
var SRoleDocumentWithRelations = v__namespace.object({
|
|
3075
3123
|
...SBaseDocument.entries,
|
|
3076
3124
|
...SBaseRoleDocument.entries,
|
|
3077
3125
|
...SRoleRelationsDocument.entries
|
|
3078
3126
|
});
|
|
3079
|
-
var STrackingLinkDocumentWithRelations =
|
|
3127
|
+
var STrackingLinkDocumentWithRelations = v__namespace.object({
|
|
3080
3128
|
...SBaseDocument.entries,
|
|
3081
3129
|
...SBaseTrackingLinkDocument.entries,
|
|
3082
3130
|
...STrackingLinkRelationsDocument.entries
|
|
3083
3131
|
});
|
|
3084
|
-
var SUserAccountDocumentWithRelations =
|
|
3132
|
+
var SUserAccountDocumentWithRelations = v__namespace.object({
|
|
3085
3133
|
...SBaseDocument.entries,
|
|
3086
3134
|
...SBaseUserAccountDocument.entries,
|
|
3087
3135
|
...SUserAccountRelationsDocument.entries
|
|
3088
3136
|
});
|
|
3089
|
-
var SUserAccountDocumentReqRelations =
|
|
3137
|
+
var SUserAccountDocumentReqRelations = v__namespace.object({
|
|
3090
3138
|
...SBaseDocument.entries,
|
|
3091
3139
|
...SBaseUserAccountDocument.entries,
|
|
3092
3140
|
...SUserAccountRelationsReqDocument.entries
|
|
3093
3141
|
});
|
|
3094
|
-
var SUserLimitationsDocumentWithRelations =
|
|
3142
|
+
var SUserLimitationsDocumentWithRelations = v__namespace.object({
|
|
3095
3143
|
...SBaseDocument.entries,
|
|
3096
3144
|
...SBaseUserLimitationsDocument.entries,
|
|
3097
3145
|
...SUserLimitationsRelationsDocument.entries
|
|
3098
3146
|
});
|
|
3099
|
-
var SUserDocumentWithRelations =
|
|
3147
|
+
var SUserDocumentWithRelations = v__namespace.object({
|
|
3100
3148
|
...SBaseDocument.entries,
|
|
3101
3149
|
...SBaseUserDocument.entries,
|
|
3102
3150
|
...SUserRelationsDocument.entries
|
|
3103
3151
|
});
|
|
3104
|
-
var SUserDocumentWithAccountRelations =
|
|
3152
|
+
var SUserDocumentWithAccountRelations = v__namespace.object({
|
|
3105
3153
|
...SBaseDocument.entries,
|
|
3106
3154
|
...SBaseUserDocument.entries,
|
|
3107
3155
|
...SUserRelationReqAccount.entries
|
|
3108
3156
|
});
|
|
3109
|
-
var SUserDocumentWithAccountAndRoleRelations =
|
|
3157
|
+
var SUserDocumentWithAccountAndRoleRelations = v__namespace.object({
|
|
3110
3158
|
...SBaseDocument.entries,
|
|
3111
3159
|
...SBaseUserDocument.entries,
|
|
3112
3160
|
...SUserRelationReqRole.entries,
|
|
3113
3161
|
...SUserRelationReqAccount.entries
|
|
3114
3162
|
});
|
|
3115
|
-
var SUserAuthorizationSuccessResponse =
|
|
3116
|
-
jwt:
|
|
3163
|
+
var SUserAuthorizationSuccessResponse = v__namespace.object({
|
|
3164
|
+
jwt: v__namespace.string(),
|
|
3117
3165
|
user: SUserDocumentWithAccountAndRoleRelations
|
|
3118
3166
|
});
|
|
3119
|
-
var SCampaignIdDocumentWithRelations =
|
|
3167
|
+
var SCampaignIdDocumentWithRelations = v__namespace.object({
|
|
3120
3168
|
...SBaseDocument.entries,
|
|
3121
3169
|
...SBaseCampaignIdDocument.entries,
|
|
3122
3170
|
...SCampaignIdRelationsDocument.entries
|
|
3123
3171
|
});
|
|
3124
|
-
var SCampaignPhaseDocumentWithRelations =
|
|
3172
|
+
var SCampaignPhaseDocumentWithRelations = v__namespace.object({
|
|
3125
3173
|
...SBaseDocument.entries,
|
|
3126
3174
|
...SBaseCampaignPhaseDocument.entries,
|
|
3127
3175
|
...SCampaignPhaseRelationsDocument.entries
|
|
3128
3176
|
});
|
|
3129
|
-
var SCampaignProductDocumentWithRelations =
|
|
3177
|
+
var SCampaignProductDocumentWithRelations = v__namespace.object({
|
|
3130
3178
|
...SBaseDocument.entries,
|
|
3131
3179
|
...SBaseCampaignProductDocument.entries,
|
|
3132
3180
|
...SCampaignProductRelationsDocument.entries
|
|
3133
3181
|
});
|
|
3134
|
-
var SCampaignTargetDocumentWithRelations =
|
|
3182
|
+
var SCampaignTargetDocumentWithRelations = v__namespace.object({
|
|
3135
3183
|
...SBaseDocument.entries,
|
|
3136
3184
|
...SBaseCampaignTargetDocument.entries,
|
|
3137
3185
|
...SCampaignTargetRelationsDocument.entries
|
|
3138
3186
|
});
|
|
3139
|
-
var SCampaignKeyDocumentWithRelations =
|
|
3187
|
+
var SCampaignKeyDocumentWithRelations = v__namespace.object({
|
|
3140
3188
|
...SBaseDocument.entries,
|
|
3141
3189
|
...SBaseCampaignKeyDocument.entries,
|
|
3142
3190
|
...SCampaignKeyRelationsDocument.entries
|
|
3143
3191
|
});
|
|
3144
|
-
var SSourceDocumentWithRelations =
|
|
3192
|
+
var SSourceDocumentWithRelations = v__namespace.object({
|
|
3145
3193
|
...SBaseDocument.entries,
|
|
3146
3194
|
...SBaseSourceDocument.entries,
|
|
3147
3195
|
...SSourceRelationsDocument.entries
|
|
3148
3196
|
});
|
|
3149
|
-
var SMediumDocumentWithRelations =
|
|
3197
|
+
var SMediumDocumentWithRelations = v__namespace.object({
|
|
3150
3198
|
...SBaseDocument.entries,
|
|
3151
3199
|
...SBaseMediumDocument.entries,
|
|
3152
3200
|
...SMediumRelationsDocument.entries
|
|
3153
3201
|
});
|
|
3154
|
-
var SContentDocumentWithRelations =
|
|
3202
|
+
var SContentDocumentWithRelations = v__namespace.object({
|
|
3155
3203
|
...SBaseDocument.entries,
|
|
3156
3204
|
...SBaseContentDocument.entries,
|
|
3157
3205
|
...SContentRelationsDocument.entries
|
|
3158
3206
|
});
|
|
3159
|
-
var SCreativeFormatDocumentWithRelations =
|
|
3207
|
+
var SCreativeFormatDocumentWithRelations = v__namespace.object({
|
|
3160
3208
|
...SBaseDocument.entries,
|
|
3161
3209
|
...SBaseCreativeFormatDocument.entries,
|
|
3162
3210
|
...SCreativeFormatRelationsDocument.entries
|
|
3163
3211
|
});
|
|
3164
|
-
var SCreativeFormatVariantDocumentWithRelations =
|
|
3212
|
+
var SCreativeFormatVariantDocumentWithRelations = v__namespace.object({
|
|
3165
3213
|
...SBaseDocument.entries,
|
|
3166
3214
|
...SBaseCreativeFormatVariantDocument.entries,
|
|
3167
3215
|
...SCreativeFormatVariantRelationsDocument.entries
|
|
3168
3216
|
});
|
|
3169
|
-
var STermDocumentWithRelations =
|
|
3217
|
+
var STermDocumentWithRelations = v__namespace.object({
|
|
3170
3218
|
...SBaseDocument.entries,
|
|
3171
3219
|
...SBaseTermDocument.entries,
|
|
3172
3220
|
...STermRelationsDocument.entries
|
|
3173
3221
|
});
|
|
3174
|
-
var SWebsiteDocumentWithRelations =
|
|
3222
|
+
var SWebsiteDocumentWithRelations = v__namespace.object({
|
|
3175
3223
|
...SBaseDocument.entries,
|
|
3176
3224
|
...SBaseWebsiteDocument.entries,
|
|
3177
3225
|
...SWebsiteRelationsDocument.entries
|
|
@@ -3806,10 +3854,10 @@ function isStrapiStandardError(result) {
|
|
|
3806
3854
|
function validateAndClean(schema, input) {
|
|
3807
3855
|
var _a, _b;
|
|
3808
3856
|
try {
|
|
3809
|
-
const parsed =
|
|
3857
|
+
const parsed = v__namespace.parse(schema, input);
|
|
3810
3858
|
return { data: parsed, error: null, errors: null };
|
|
3811
3859
|
} catch (err) {
|
|
3812
|
-
if (err instanceof
|
|
3860
|
+
if (err instanceof v__namespace.ValiError) {
|
|
3813
3861
|
const errors = {};
|
|
3814
3862
|
for (const issue of err.issues) {
|
|
3815
3863
|
const field = ((_b = (_a = issue.path) == null ? void 0 : _a[0]) == null ? void 0 : _b.key) || "unknown";
|
|
@@ -4182,11 +4230,16 @@ exports.SQuerySearchCampaignTargetDocuments = SQuerySearchCampaignTargetDocument
|
|
|
4182
4230
|
exports.SQuerySearchContentDocuments = SQuerySearchContentDocuments;
|
|
4183
4231
|
exports.SQuerySearchCreativeFormatDocuments = SQuerySearchCreativeFormatDocuments;
|
|
4184
4232
|
exports.SQuerySearchCreativeFormatVariantDocuments = SQuerySearchCreativeFormatVariantDocuments;
|
|
4233
|
+
exports.SQuerySearchDocuments = SQuerySearchDocuments;
|
|
4234
|
+
exports.SQuerySearchGroupDocuments = SQuerySearchGroupDocuments;
|
|
4185
4235
|
exports.SQuerySearchGroupUserDocuments = SQuerySearchGroupUserDocuments;
|
|
4186
4236
|
exports.SQuerySearchMediumDocuments = SQuerySearchMediumDocuments;
|
|
4187
4237
|
exports.SQuerySearchSourceDocuments = SQuerySearchSourceDocuments;
|
|
4188
4238
|
exports.SQuerySearchTermDocuments = SQuerySearchTermDocuments;
|
|
4189
4239
|
exports.SQuerySearchTrackingLinkDocuments = SQuerySearchTrackingLinkDocuments;
|
|
4240
|
+
exports.SQuerySearchUserAccountDocuments = SQuerySearchUserAccountDocuments;
|
|
4241
|
+
exports.SQuerySearchUserDocuments = SQuerySearchUserDocuments;
|
|
4242
|
+
exports.SQuerySearchUserLimitationDocuments = SQuerySearchUserLimitationDocuments;
|
|
4190
4243
|
exports.SQuerySearchWebsiteDocuments = SQuerySearchWebsiteDocuments;
|
|
4191
4244
|
exports.SReadCampaignIdDocumentByDocumentId = SReadCampaignIdDocumentByDocumentId;
|
|
4192
4245
|
exports.SReadCampaignIdDocumentById = SReadCampaignIdDocumentById;
|
|
@@ -4402,7 +4455,9 @@ exports.UserAccountSortKeys = UserAccountSortKeys;
|
|
|
4402
4455
|
exports.UserLimitationsSortKeys = UserLimitationsSortKeys;
|
|
4403
4456
|
exports.UserSortKeys = UserSortKeys;
|
|
4404
4457
|
exports.VPage = VPage;
|
|
4458
|
+
exports.VPageRequired = VPageRequired;
|
|
4405
4459
|
exports.VSize = VSize;
|
|
4460
|
+
exports.VSizeRequired = VSizeRequired;
|
|
4406
4461
|
exports.VSortCampaignId = VSortCampaignId;
|
|
4407
4462
|
exports.VSortCampaignKey = VSortCampaignKey;
|
|
4408
4463
|
exports.VSortCampaignPhase = VSortCampaignPhase;
|