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