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