@getcommunity/gc-validators 0.0.290 → 0.0.292
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/constants/index.cjs +7 -0
- package/dist/constants/index.d.cts +10 -1
- package/dist/constants/index.d.mts +10 -1
- package/dist/constants/index.mjs +2 -1
- package/dist/{document-DFsCkKft.mjs → document-0ZHuVdfl.mjs} +9 -7
- package/dist/{document-0iyZU8AR.d.mts → document-BPkKpMtc.d.mts} +7 -5
- package/dist/{document-6DxC79Il.d.cts → document-BsK9rrGj.d.cts} +7 -5
- package/dist/{document-nEYkVJze.cjs → document-y3W3rg2J.cjs} +8 -6
- package/dist/entities/client/document.cjs +1 -1
- package/dist/entities/client/document.d.cts +1 -1
- package/dist/entities/client/document.d.mts +1 -1
- package/dist/entities/client/document.mjs +1 -1
- package/dist/entities/client-content-pillar/document.cjs +1 -1
- package/dist/entities/client-content-pillar/document.d.cts +1 -1
- package/dist/entities/client-content-pillar/document.d.mts +1 -1
- package/dist/entities/client-content-pillar/document.mjs +1 -1
- package/dist/entities/client-email/document.cjs +1 -1
- package/dist/entities/client-email/document.d.cts +1 -1
- package/dist/entities/client-email/document.d.mts +1 -1
- package/dist/entities/client-email/document.mjs +1 -1
- package/dist/entities/client-email/fields.cjs +13 -0
- package/dist/entities/client-email/fields.d.cts +8 -0
- package/dist/entities/client-email/fields.d.mts +8 -0
- package/dist/entities/client-email/fields.mjs +8 -0
- package/dist/entities/client-email/mutation.cjs +33 -12
- package/dist/entities/client-email/mutation.d.cts +49 -16
- package/dist/entities/client-email/mutation.d.mts +49 -16
- package/dist/entities/client-email/mutation.mjs +32 -14
- package/dist/entities/client-email/query.cjs +5 -6
- package/dist/entities/client-email/query.d.cts +4 -5
- package/dist/entities/client-email/query.d.mts +4 -5
- package/dist/entities/client-email/query.mjs +5 -6
- package/dist/entities/client-media-platform/document.cjs +1 -1
- package/dist/entities/client-media-platform/document.d.cts +1 -1
- package/dist/entities/client-media-platform/document.d.mts +1 -1
- package/dist/entities/client-media-platform/document.mjs +1 -1
- package/dist/entities/client-project/document.cjs +1 -1
- package/dist/entities/client-project/document.d.cts +1 -1
- package/dist/entities/client-project/document.d.mts +1 -1
- package/dist/entities/client-project/document.mjs +1 -1
- package/dist/entities/client-report/document.cjs +1 -1
- package/dist/entities/client-report/document.d.cts +1 -1
- package/dist/entities/client-report/document.d.mts +1 -1
- package/dist/entities/client-report/document.mjs +1 -1
- package/dist/entities/client-styleguide/document.cjs +1 -1
- package/dist/entities/client-styleguide/document.d.cts +1 -1
- package/dist/entities/client-styleguide/document.d.mts +1 -1
- package/dist/entities/client-styleguide/document.mjs +1 -1
- package/dist/entities/client-user/document.cjs +1 -1
- package/dist/entities/client-user/document.d.cts +1 -1
- package/dist/entities/client-user/document.d.mts +1 -1
- package/dist/entities/client-user/document.mjs +1 -1
- package/dist/entities/content-pillar/document.cjs +1 -1
- package/dist/entities/content-pillar/document.d.cts +1 -1
- package/dist/entities/content-pillar/document.d.mts +1 -1
- package/dist/entities/content-pillar/document.mjs +1 -1
- package/dist/entities/formatter/constants.cjs +5 -24
- package/dist/entities/formatter/constants.d.cts +2 -7
- package/dist/entities/formatter/constants.d.mts +2 -7
- package/dist/entities/formatter/constants.mjs +2 -17
- package/dist/entities/formatter/fields.d.cts +2 -2
- package/dist/entities/formatter/fields.d.mts +2 -2
- package/dist/entities/gcflytour/document.cjs +1 -1
- package/dist/entities/gcflytour/document.d.cts +1 -1
- package/dist/entities/gcflytour/document.d.mts +1 -1
- package/dist/entities/gcflytour/document.mjs +1 -1
- package/dist/entities/gcflytour-snap/document.cjs +1 -1
- package/dist/entities/gcflytour-snap/document.d.cts +1 -1
- package/dist/entities/gcflytour-snap/document.d.mts +1 -1
- package/dist/entities/gcflytour-snap/document.mjs +1 -1
- package/dist/entities/media-content-type/document.cjs +1 -1
- package/dist/entities/media-content-type/document.d.cts +1 -1
- package/dist/entities/media-content-type/document.d.mts +1 -1
- package/dist/entities/media-content-type/document.mjs +1 -1
- package/dist/entities/media-creative-format/document.cjs +1 -1
- package/dist/entities/media-creative-format/document.d.cts +1 -1
- package/dist/entities/media-creative-format/document.d.mts +1 -1
- package/dist/entities/media-creative-format/document.mjs +1 -1
- package/dist/entities/media-medium/document.cjs +1 -1
- package/dist/entities/media-medium/document.d.cts +1 -1
- package/dist/entities/media-medium/document.d.mts +1 -1
- package/dist/entities/media-medium/document.mjs +1 -1
- package/dist/entities/media-platform/document.cjs +1 -1
- package/dist/entities/media-platform/document.d.cts +1 -1
- package/dist/entities/media-platform/document.d.mts +1 -1
- package/dist/entities/media-platform/document.mjs +1 -1
- package/dist/entities/monday-workspace/document.cjs +1 -1
- package/dist/entities/monday-workspace/document.d.cts +1 -1
- package/dist/entities/monday-workspace/document.d.mts +1 -1
- package/dist/entities/monday-workspace/document.mjs +1 -1
- package/dist/entities/product-highlight/document.cjs +1 -1
- package/dist/entities/product-highlight/document.d.cts +1 -1
- package/dist/entities/product-highlight/document.d.mts +1 -1
- package/dist/entities/product-highlight/document.mjs +1 -1
- package/dist/entities/up-auth/mutation.d.cts +1 -1
- package/dist/entities/up-auth/mutation.d.mts +1 -1
- package/dist/entities/up-permission/document.cjs +1 -1
- package/dist/entities/up-permission/document.d.cts +1 -1
- package/dist/entities/up-permission/document.d.mts +1 -1
- package/dist/entities/up-permission/document.mjs +1 -1
- package/dist/entities/up-role/document.cjs +1 -1
- package/dist/entities/up-role/document.d.cts +1 -1
- package/dist/entities/up-role/document.d.mts +1 -1
- package/dist/entities/up-role/document.mjs +1 -1
- package/dist/entities/up-user/document.cjs +1 -1
- package/dist/entities/up-user/document.d.cts +1 -1
- package/dist/entities/up-user/document.d.mts +1 -1
- package/dist/entities/up-user/document.mjs +1 -1
- package/dist/entities/upload/mutation.cjs +9 -0
- package/dist/entities/upload/mutation.d.cts +10 -1
- package/dist/entities/upload/mutation.d.mts +10 -1
- package/dist/entities/upload/mutation.mjs +9 -1
- package/dist/entities/user-account/document.cjs +1 -1
- package/dist/entities/user-account/document.d.cts +1 -1
- package/dist/entities/user-account/document.d.mts +1 -1
- package/dist/entities/user-account/document.mjs +1 -1
- package/dist/entities/utm-tracking-link/document.cjs +1 -1
- package/dist/entities/utm-tracking-link/document.d.cts +1 -1
- package/dist/entities/utm-tracking-link/document.d.mts +1 -1
- package/dist/entities/utm-tracking-link/document.mjs +1 -1
- package/dist/mime-types-Czgq2Q_k.mjs +35 -0
- package/dist/mime-types-Ds7pD7ws.cjs +70 -0
- package/dist/permissions/index.d.cts +1 -1
- package/dist/permissions/index.d.mts +1 -1
- package/dist/utilities/index.d.cts +1 -1
- package/dist/utilities/index.d.mts +1 -1
- package/package.json +4 -1
package/dist/constants/index.cjs
CHANGED
|
@@ -4,6 +4,7 @@ const require_limits = require("../limits-Drbhufdn.cjs");
|
|
|
4
4
|
const require_regex = require("../regex-CyP06YBM.cjs");
|
|
5
5
|
const require_error_messages = require("../error-messages-CmNKheX2.cjs");
|
|
6
6
|
const require_pagination = require("../pagination-CDGlCs8j.cjs");
|
|
7
|
+
const require_mime_types = require("../mime-types-Ds7pD7ws.cjs");
|
|
7
8
|
//#region src/constants/form-generics.ts
|
|
8
9
|
const NUMBER_OF_EMPLOYEE_OPTIONS = [
|
|
9
10
|
{
|
|
@@ -196,7 +197,10 @@ exports.ERROR_MESSAGE_UTM_URL = require_error_messages.ERROR_MESSAGE_UTM_URL;
|
|
|
196
197
|
exports.GC_DESIRED_CONTENT_OPTIONS = GC_DESIRED_CONTENT_OPTIONS;
|
|
197
198
|
exports.GC_SERVICE_OPTIONS = GC_SERVICE_OPTIONS;
|
|
198
199
|
exports.GC_VIDEO_SERVICE_OPTIONS = GC_VIDEO_SERVICE_OPTIONS;
|
|
200
|
+
exports.HTML_MIME_TYPES = require_mime_types.HTML_MIME_TYPES;
|
|
201
|
+
exports.IMAGE_MIME_TYPES = require_mime_types.IMAGE_MIME_TYPES;
|
|
199
202
|
exports.JOB_ROLE_GROUP = JOB_ROLE_GROUP;
|
|
203
|
+
exports.JSON_MIME_TYPES = require_mime_types.JSON_MIME_TYPES;
|
|
200
204
|
exports.LIMIT_LONG_STRING_MAX_LENGTH = require_limits.LIMIT_LONG_STRING_MAX_LENGTH;
|
|
201
205
|
exports.LIMIT_MAX_DESTINATION = require_limits.LIMIT_MAX_DESTINATION;
|
|
202
206
|
exports.LIMIT_MAX_EMAIL = require_limits.LIMIT_MAX_EMAIL;
|
|
@@ -234,6 +238,7 @@ exports.LIMIT_VAL_20 = require_limits.LIMIT_VAL_20;
|
|
|
234
238
|
exports.LIMIT_VAL_255 = require_limits.LIMIT_VAL_255;
|
|
235
239
|
exports.LIMIT_VAL_32 = require_limits.LIMIT_VAL_32;
|
|
236
240
|
exports.LIMIT_VAL_64 = require_limits.LIMIT_VAL_64;
|
|
241
|
+
exports.MJML_MIME_TYPES = require_mime_types.MJML_MIME_TYPES;
|
|
237
242
|
exports.NUMBER_OF_EMPLOYEE_OPTIONS = NUMBER_OF_EMPLOYEE_OPTIONS;
|
|
238
243
|
exports.RATING_RANGE_5 = RATING_RANGE_5;
|
|
239
244
|
exports.REGEX_BRAND_COLOR_SLUG = require_regex.REGEX_BRAND_COLOR_SLUG;
|
|
@@ -244,4 +249,6 @@ exports.STRAPI_COLLECTION_ENTITY_ENDPOINTS = require_strapi.STRAPI_COLLECTION_EN
|
|
|
244
249
|
exports.STRAPI_ENTITY_UIDS = require_strapi.STRAPI_ENTITY_UIDS;
|
|
245
250
|
exports.STRAPI_SINGLE_ENTITY_ENDPOINTS = require_strapi.STRAPI_SINGLE_ENTITY_ENDPOINTS;
|
|
246
251
|
exports.STRAPI_SPECIAL_ENTITIES = require_strapi.STRAPI_SPECIAL_ENTITIES;
|
|
252
|
+
exports.TXT_MIME_TYPES = require_mime_types.TXT_MIME_TYPES;
|
|
253
|
+
exports.XML_MIME_TYPES = require_mime_types.XML_MIME_TYPES;
|
|
247
254
|
exports.getStrapiEntityValues = require_strapi.getStrapiEntityValues;
|
|
@@ -174,6 +174,15 @@ declare const LIMIT_MAX_UTM_TERM = 2028;
|
|
|
174
174
|
declare const LIMIT_MIN_UTM_ID = 1;
|
|
175
175
|
declare const LIMIT_MAX_UTM_ID = 2030;
|
|
176
176
|
//#endregion
|
|
177
|
+
//#region src/constants/mime-types.d.ts
|
|
178
|
+
type MimeType = `${string}/${string}`;
|
|
179
|
+
declare const IMAGE_MIME_TYPES: ["image/jpeg", "image/png", "image/gif", "image/webp"];
|
|
180
|
+
declare const MJML_MIME_TYPES: ["text/plain", "application/xml", "text/xml", "application/octet-stream"];
|
|
181
|
+
declare const HTML_MIME_TYPES: ["text/html", "application/xhtml+xml", "application/html"];
|
|
182
|
+
declare const XML_MIME_TYPES: ["text/xml", "application/xml", "application/rss+xml", "application/atom+xml"];
|
|
183
|
+
declare const JSON_MIME_TYPES: ["text/json", "application/json", "application/ld+json", "application/json5", "application/x-ndjson", "application/jsonlines"];
|
|
184
|
+
declare const TXT_MIME_TYPES: ["text/plain", "application/octet-stream"];
|
|
185
|
+
//#endregion
|
|
177
186
|
//#region src/constants/pagination.d.ts
|
|
178
187
|
declare const LIMIT_TABLE_PAGINATION_DEFAULT_SIZE = 10;
|
|
179
188
|
declare const LIMIT_PAGINATION_DEFAULT_SIZE = 20;
|
|
@@ -702,4 +711,4 @@ type StrapiEntity = (typeof STRAPI_ENTITY_UIDS)[keyof typeof STRAPI_ENTITY_UIDS]
|
|
|
702
711
|
declare const STRAPI_COLLECTION_ENTITY_ENDPOINTS: ("tags" | "clients" | "users" | "audit-logs" | "blog-posts" | "categories" | "client-users" | "client-content-pillars" | "client-emails" | "client-media-platforms" | "client-projects" | "client-reports" | "client-styleguides" | "comments" | "comment-reports" | "content-pillars" | "gc-fly-tours" | "gc-fly-tour-snaps" | "leads" | "media-content-types" | "media-creative-formats" | "media-mediums" | "media-platforms" | "monday-workspaces" | "newsletter-signups" | "products" | "product-highlights" | "resumes" | "team-members" | "trends" | "roles" | "user-accounts" | "url-redirections" | "utm-tracking-links")[];
|
|
703
712
|
declare const STRAPI_SINGLE_ENTITY_ENDPOINTS: ("faq" | "blog-page" | "careers-page" | "landing-page" | "privacy-policy" | "sms-policy" | "team-page" | "utm-meta")[];
|
|
704
713
|
//#endregion
|
|
705
|
-
export { CONTENT_STATUS, ERROR_MESSAGE_COMMA_SEPPARATED_URLS, ERROR_MESSAGE_INVALID_URL, ERROR_MESSAGE_ONE_PROJECT_STATUS, ERROR_MESSAGE_REGEX_PHONE, ERROR_MESSAGE_REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_UTM_VALUE, ERROR_MESSAGE_ROBOT, ERROR_MESSAGE_URL_NO_QUERY_PARAMS, ERROR_MESSAGE_URL_PREFIX, ERROR_MESSAGE_UTM_URL, GC_DESIRED_CONTENT_OPTIONS, GC_SERVICE_OPTIONS, GC_VIDEO_SERVICE_OPTIONS, JOB_ROLE_GROUP, LIMIT_LONG_STRING_MAX_LENGTH, LIMIT_MAX_DESTINATION, LIMIT_MAX_EMAIL, LIMIT_MAX_PASSWORD, LIMIT_MAX_PHONE, LIMIT_MAX_USERNAME, LIMIT_MAX_UTM_CAMPAIGN, LIMIT_MAX_UTM_CONTENT, LIMIT_MAX_UTM_CREATIVE_FORMAT, LIMIT_MAX_UTM_ID, LIMIT_MAX_UTM_MEDIUM, LIMIT_MAX_UTM_SOURCE, LIMIT_MAX_UTM_TERM, LIMIT_MEDIUM_STRING_MAX_LENGTH, LIMIT_MIN_DESTINATION, LIMIT_MIN_EMAIL, LIMIT_MIN_PASSWORD, LIMIT_MIN_PHONE, LIMIT_MIN_USERNAME, LIMIT_MIN_UTM_CAMPAIGN, LIMIT_MIN_UTM_CONTENT, LIMIT_MIN_UTM_CREATIVE_FORMAT, LIMIT_MIN_UTM_ID, LIMIT_MIN_UTM_MEDIUM, LIMIT_MIN_UTM_SOURCE, LIMIT_MIN_UTM_TERM, LIMIT_MIN_VALUE, LIMIT_PAGINATION_DEFAULT_SIZE, LIMIT_PAGINATION_MAX_SIZE, LIMIT_SHORT_STRING_MAX_LENGTH, LIMIT_TABLE_PAGINATION_DEFAULT_SIZE, LIMIT_VAL_10, LIMIT_VAL_100, LIMIT_VAL_20, LIMIT_VAL_255, LIMIT_VAL_32, LIMIT_VAL_64, NUMBER_OF_EMPLOYEE_OPTIONS, RATING_RANGE_5, REGEX_BRAND_COLOR_SLUG, REGEX_NANP_PHONE, REGEX_URL_SLUG, REGEX_UTM_VALUE, STRAPI_COLLECTION_ENTITY_ENDPOINTS, STRAPI_ENTITY_UIDS, STRAPI_SINGLE_ENTITY_ENDPOINTS, STRAPI_SPECIAL_ENTITIES, StrapiEntity, getStrapiEntityValues };
|
|
714
|
+
export { CONTENT_STATUS, ERROR_MESSAGE_COMMA_SEPPARATED_URLS, ERROR_MESSAGE_INVALID_URL, ERROR_MESSAGE_ONE_PROJECT_STATUS, ERROR_MESSAGE_REGEX_PHONE, ERROR_MESSAGE_REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_UTM_VALUE, ERROR_MESSAGE_ROBOT, ERROR_MESSAGE_URL_NO_QUERY_PARAMS, ERROR_MESSAGE_URL_PREFIX, ERROR_MESSAGE_UTM_URL, GC_DESIRED_CONTENT_OPTIONS, GC_SERVICE_OPTIONS, GC_VIDEO_SERVICE_OPTIONS, HTML_MIME_TYPES, IMAGE_MIME_TYPES, JOB_ROLE_GROUP, JSON_MIME_TYPES, LIMIT_LONG_STRING_MAX_LENGTH, LIMIT_MAX_DESTINATION, LIMIT_MAX_EMAIL, LIMIT_MAX_PASSWORD, LIMIT_MAX_PHONE, LIMIT_MAX_USERNAME, LIMIT_MAX_UTM_CAMPAIGN, LIMIT_MAX_UTM_CONTENT, LIMIT_MAX_UTM_CREATIVE_FORMAT, LIMIT_MAX_UTM_ID, LIMIT_MAX_UTM_MEDIUM, LIMIT_MAX_UTM_SOURCE, LIMIT_MAX_UTM_TERM, LIMIT_MEDIUM_STRING_MAX_LENGTH, LIMIT_MIN_DESTINATION, LIMIT_MIN_EMAIL, LIMIT_MIN_PASSWORD, LIMIT_MIN_PHONE, LIMIT_MIN_USERNAME, LIMIT_MIN_UTM_CAMPAIGN, LIMIT_MIN_UTM_CONTENT, LIMIT_MIN_UTM_CREATIVE_FORMAT, LIMIT_MIN_UTM_ID, LIMIT_MIN_UTM_MEDIUM, LIMIT_MIN_UTM_SOURCE, LIMIT_MIN_UTM_TERM, LIMIT_MIN_VALUE, LIMIT_PAGINATION_DEFAULT_SIZE, LIMIT_PAGINATION_MAX_SIZE, LIMIT_SHORT_STRING_MAX_LENGTH, LIMIT_TABLE_PAGINATION_DEFAULT_SIZE, LIMIT_VAL_10, LIMIT_VAL_100, LIMIT_VAL_20, LIMIT_VAL_255, LIMIT_VAL_32, LIMIT_VAL_64, MJML_MIME_TYPES, MimeType, NUMBER_OF_EMPLOYEE_OPTIONS, RATING_RANGE_5, REGEX_BRAND_COLOR_SLUG, REGEX_NANP_PHONE, REGEX_URL_SLUG, REGEX_UTM_VALUE, STRAPI_COLLECTION_ENTITY_ENDPOINTS, STRAPI_ENTITY_UIDS, STRAPI_SINGLE_ENTITY_ENDPOINTS, STRAPI_SPECIAL_ENTITIES, StrapiEntity, TXT_MIME_TYPES, XML_MIME_TYPES, getStrapiEntityValues };
|
|
@@ -174,6 +174,15 @@ declare const LIMIT_MAX_UTM_TERM = 2028;
|
|
|
174
174
|
declare const LIMIT_MIN_UTM_ID = 1;
|
|
175
175
|
declare const LIMIT_MAX_UTM_ID = 2030;
|
|
176
176
|
//#endregion
|
|
177
|
+
//#region src/constants/mime-types.d.ts
|
|
178
|
+
type MimeType = `${string}/${string}`;
|
|
179
|
+
declare const IMAGE_MIME_TYPES: ["image/jpeg", "image/png", "image/gif", "image/webp"];
|
|
180
|
+
declare const MJML_MIME_TYPES: ["text/plain", "application/xml", "text/xml", "application/octet-stream"];
|
|
181
|
+
declare const HTML_MIME_TYPES: ["text/html", "application/xhtml+xml", "application/html"];
|
|
182
|
+
declare const XML_MIME_TYPES: ["text/xml", "application/xml", "application/rss+xml", "application/atom+xml"];
|
|
183
|
+
declare const JSON_MIME_TYPES: ["text/json", "application/json", "application/ld+json", "application/json5", "application/x-ndjson", "application/jsonlines"];
|
|
184
|
+
declare const TXT_MIME_TYPES: ["text/plain", "application/octet-stream"];
|
|
185
|
+
//#endregion
|
|
177
186
|
//#region src/constants/pagination.d.ts
|
|
178
187
|
declare const LIMIT_TABLE_PAGINATION_DEFAULT_SIZE = 10;
|
|
179
188
|
declare const LIMIT_PAGINATION_DEFAULT_SIZE = 20;
|
|
@@ -702,4 +711,4 @@ type StrapiEntity = (typeof STRAPI_ENTITY_UIDS)[keyof typeof STRAPI_ENTITY_UIDS]
|
|
|
702
711
|
declare const STRAPI_COLLECTION_ENTITY_ENDPOINTS: ("tags" | "clients" | "users" | "audit-logs" | "blog-posts" | "categories" | "client-users" | "client-content-pillars" | "client-emails" | "client-media-platforms" | "client-projects" | "client-reports" | "client-styleguides" | "comments" | "comment-reports" | "content-pillars" | "gc-fly-tours" | "gc-fly-tour-snaps" | "leads" | "media-content-types" | "media-creative-formats" | "media-mediums" | "media-platforms" | "monday-workspaces" | "newsletter-signups" | "products" | "product-highlights" | "resumes" | "team-members" | "trends" | "roles" | "user-accounts" | "url-redirections" | "utm-tracking-links")[];
|
|
703
712
|
declare const STRAPI_SINGLE_ENTITY_ENDPOINTS: ("faq" | "blog-page" | "careers-page" | "landing-page" | "privacy-policy" | "sms-policy" | "team-page" | "utm-meta")[];
|
|
704
713
|
//#endregion
|
|
705
|
-
export { CONTENT_STATUS, ERROR_MESSAGE_COMMA_SEPPARATED_URLS, ERROR_MESSAGE_INVALID_URL, ERROR_MESSAGE_ONE_PROJECT_STATUS, ERROR_MESSAGE_REGEX_PHONE, ERROR_MESSAGE_REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_UTM_VALUE, ERROR_MESSAGE_ROBOT, ERROR_MESSAGE_URL_NO_QUERY_PARAMS, ERROR_MESSAGE_URL_PREFIX, ERROR_MESSAGE_UTM_URL, GC_DESIRED_CONTENT_OPTIONS, GC_SERVICE_OPTIONS, GC_VIDEO_SERVICE_OPTIONS, JOB_ROLE_GROUP, LIMIT_LONG_STRING_MAX_LENGTH, LIMIT_MAX_DESTINATION, LIMIT_MAX_EMAIL, LIMIT_MAX_PASSWORD, LIMIT_MAX_PHONE, LIMIT_MAX_USERNAME, LIMIT_MAX_UTM_CAMPAIGN, LIMIT_MAX_UTM_CONTENT, LIMIT_MAX_UTM_CREATIVE_FORMAT, LIMIT_MAX_UTM_ID, LIMIT_MAX_UTM_MEDIUM, LIMIT_MAX_UTM_SOURCE, LIMIT_MAX_UTM_TERM, LIMIT_MEDIUM_STRING_MAX_LENGTH, LIMIT_MIN_DESTINATION, LIMIT_MIN_EMAIL, LIMIT_MIN_PASSWORD, LIMIT_MIN_PHONE, LIMIT_MIN_USERNAME, LIMIT_MIN_UTM_CAMPAIGN, LIMIT_MIN_UTM_CONTENT, LIMIT_MIN_UTM_CREATIVE_FORMAT, LIMIT_MIN_UTM_ID, LIMIT_MIN_UTM_MEDIUM, LIMIT_MIN_UTM_SOURCE, LIMIT_MIN_UTM_TERM, LIMIT_MIN_VALUE, LIMIT_PAGINATION_DEFAULT_SIZE, LIMIT_PAGINATION_MAX_SIZE, LIMIT_SHORT_STRING_MAX_LENGTH, LIMIT_TABLE_PAGINATION_DEFAULT_SIZE, LIMIT_VAL_10, LIMIT_VAL_100, LIMIT_VAL_20, LIMIT_VAL_255, LIMIT_VAL_32, LIMIT_VAL_64, NUMBER_OF_EMPLOYEE_OPTIONS, RATING_RANGE_5, REGEX_BRAND_COLOR_SLUG, REGEX_NANP_PHONE, REGEX_URL_SLUG, REGEX_UTM_VALUE, STRAPI_COLLECTION_ENTITY_ENDPOINTS, STRAPI_ENTITY_UIDS, STRAPI_SINGLE_ENTITY_ENDPOINTS, STRAPI_SPECIAL_ENTITIES, StrapiEntity, getStrapiEntityValues };
|
|
714
|
+
export { CONTENT_STATUS, ERROR_MESSAGE_COMMA_SEPPARATED_URLS, ERROR_MESSAGE_INVALID_URL, ERROR_MESSAGE_ONE_PROJECT_STATUS, ERROR_MESSAGE_REGEX_PHONE, ERROR_MESSAGE_REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_UTM_VALUE, ERROR_MESSAGE_ROBOT, ERROR_MESSAGE_URL_NO_QUERY_PARAMS, ERROR_MESSAGE_URL_PREFIX, ERROR_MESSAGE_UTM_URL, GC_DESIRED_CONTENT_OPTIONS, GC_SERVICE_OPTIONS, GC_VIDEO_SERVICE_OPTIONS, HTML_MIME_TYPES, IMAGE_MIME_TYPES, JOB_ROLE_GROUP, JSON_MIME_TYPES, LIMIT_LONG_STRING_MAX_LENGTH, LIMIT_MAX_DESTINATION, LIMIT_MAX_EMAIL, LIMIT_MAX_PASSWORD, LIMIT_MAX_PHONE, LIMIT_MAX_USERNAME, LIMIT_MAX_UTM_CAMPAIGN, LIMIT_MAX_UTM_CONTENT, LIMIT_MAX_UTM_CREATIVE_FORMAT, LIMIT_MAX_UTM_ID, LIMIT_MAX_UTM_MEDIUM, LIMIT_MAX_UTM_SOURCE, LIMIT_MAX_UTM_TERM, LIMIT_MEDIUM_STRING_MAX_LENGTH, LIMIT_MIN_DESTINATION, LIMIT_MIN_EMAIL, LIMIT_MIN_PASSWORD, LIMIT_MIN_PHONE, LIMIT_MIN_USERNAME, LIMIT_MIN_UTM_CAMPAIGN, LIMIT_MIN_UTM_CONTENT, LIMIT_MIN_UTM_CREATIVE_FORMAT, LIMIT_MIN_UTM_ID, LIMIT_MIN_UTM_MEDIUM, LIMIT_MIN_UTM_SOURCE, LIMIT_MIN_UTM_TERM, LIMIT_MIN_VALUE, LIMIT_PAGINATION_DEFAULT_SIZE, LIMIT_PAGINATION_MAX_SIZE, LIMIT_SHORT_STRING_MAX_LENGTH, LIMIT_TABLE_PAGINATION_DEFAULT_SIZE, LIMIT_VAL_10, LIMIT_VAL_100, LIMIT_VAL_20, LIMIT_VAL_255, LIMIT_VAL_32, LIMIT_VAL_64, MJML_MIME_TYPES, MimeType, NUMBER_OF_EMPLOYEE_OPTIONS, RATING_RANGE_5, REGEX_BRAND_COLOR_SLUG, REGEX_NANP_PHONE, REGEX_URL_SLUG, REGEX_UTM_VALUE, STRAPI_COLLECTION_ENTITY_ENDPOINTS, STRAPI_ENTITY_UIDS, STRAPI_SINGLE_ENTITY_ENDPOINTS, STRAPI_SPECIAL_ENTITIES, StrapiEntity, TXT_MIME_TYPES, XML_MIME_TYPES, getStrapiEntityValues };
|
package/dist/constants/index.mjs
CHANGED
|
@@ -3,6 +3,7 @@ import { A as LIMIT_VAL_100, C as LIMIT_MIN_UTM_ID, D as LIMIT_MIN_VALUE, E as L
|
|
|
3
3
|
import { a as REGEX_NANP_PHONE, i as REGEX_BRAND_COLOR_SLUG, n as ERROR_MESSAGE_REGEX_URL_SLUG, o as REGEX_URL_SLUG, r as ERROR_MESSAGE_REGEX_UTM_VALUE, s as REGEX_UTM_VALUE, t as ERROR_MESSAGE_REGEX_PHONE } from "../regex-B0yrJN5-.mjs";
|
|
4
4
|
import { a as ERROR_MESSAGE_URL_NO_QUERY_PARAMS, i as ERROR_MESSAGE_ROBOT, n as ERROR_MESSAGE_INVALID_URL, o as ERROR_MESSAGE_URL_PREFIX, r as ERROR_MESSAGE_ONE_PROJECT_STATUS, s as ERROR_MESSAGE_UTM_URL, t as ERROR_MESSAGE_COMMA_SEPPARATED_URLS } from "../error-messages-DhQj-feN.mjs";
|
|
5
5
|
import { n as LIMIT_PAGINATION_MAX_SIZE, r as LIMIT_TABLE_PAGINATION_DEFAULT_SIZE, t as LIMIT_PAGINATION_DEFAULT_SIZE } from "../pagination-xZGVCCEK.mjs";
|
|
6
|
+
import { a as TXT_MIME_TYPES, i as MJML_MIME_TYPES, n as IMAGE_MIME_TYPES, o as XML_MIME_TYPES, r as JSON_MIME_TYPES, t as HTML_MIME_TYPES } from "../mime-types-Czgq2Q_k.mjs";
|
|
6
7
|
//#region src/constants/form-generics.ts
|
|
7
8
|
const NUMBER_OF_EMPLOYEE_OPTIONS = [
|
|
8
9
|
{
|
|
@@ -181,4 +182,4 @@ const RATING_RANGE_5 = [
|
|
|
181
182
|
}
|
|
182
183
|
];
|
|
183
184
|
//#endregion
|
|
184
|
-
export { CONTENT_STATUS, ERROR_MESSAGE_COMMA_SEPPARATED_URLS, ERROR_MESSAGE_INVALID_URL, ERROR_MESSAGE_ONE_PROJECT_STATUS, ERROR_MESSAGE_REGEX_PHONE, ERROR_MESSAGE_REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_UTM_VALUE, ERROR_MESSAGE_ROBOT, ERROR_MESSAGE_URL_NO_QUERY_PARAMS, ERROR_MESSAGE_URL_PREFIX, ERROR_MESSAGE_UTM_URL, GC_DESIRED_CONTENT_OPTIONS, GC_SERVICE_OPTIONS, GC_VIDEO_SERVICE_OPTIONS, JOB_ROLE_GROUP, LIMIT_LONG_STRING_MAX_LENGTH, LIMIT_MAX_DESTINATION, LIMIT_MAX_EMAIL, LIMIT_MAX_PASSWORD, LIMIT_MAX_PHONE, LIMIT_MAX_USERNAME, LIMIT_MAX_UTM_CAMPAIGN, LIMIT_MAX_UTM_CONTENT, LIMIT_MAX_UTM_CREATIVE_FORMAT, LIMIT_MAX_UTM_ID, LIMIT_MAX_UTM_MEDIUM, LIMIT_MAX_UTM_SOURCE, LIMIT_MAX_UTM_TERM, LIMIT_MEDIUM_STRING_MAX_LENGTH, LIMIT_MIN_DESTINATION, LIMIT_MIN_EMAIL, LIMIT_MIN_PASSWORD, LIMIT_MIN_PHONE, LIMIT_MIN_USERNAME, LIMIT_MIN_UTM_CAMPAIGN, LIMIT_MIN_UTM_CONTENT, LIMIT_MIN_UTM_CREATIVE_FORMAT, LIMIT_MIN_UTM_ID, LIMIT_MIN_UTM_MEDIUM, LIMIT_MIN_UTM_SOURCE, LIMIT_MIN_UTM_TERM, LIMIT_MIN_VALUE, LIMIT_PAGINATION_DEFAULT_SIZE, LIMIT_PAGINATION_MAX_SIZE, LIMIT_SHORT_STRING_MAX_LENGTH, LIMIT_TABLE_PAGINATION_DEFAULT_SIZE, LIMIT_VAL_10, LIMIT_VAL_100, LIMIT_VAL_20, LIMIT_VAL_255, LIMIT_VAL_32, LIMIT_VAL_64, NUMBER_OF_EMPLOYEE_OPTIONS, RATING_RANGE_5, REGEX_BRAND_COLOR_SLUG, REGEX_NANP_PHONE, REGEX_URL_SLUG, REGEX_UTM_VALUE, STRAPI_COLLECTION_ENTITY_ENDPOINTS, STRAPI_ENTITY_UIDS, STRAPI_SINGLE_ENTITY_ENDPOINTS, STRAPI_SPECIAL_ENTITIES, getStrapiEntityValues };
|
|
185
|
+
export { CONTENT_STATUS, ERROR_MESSAGE_COMMA_SEPPARATED_URLS, ERROR_MESSAGE_INVALID_URL, ERROR_MESSAGE_ONE_PROJECT_STATUS, ERROR_MESSAGE_REGEX_PHONE, ERROR_MESSAGE_REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_UTM_VALUE, ERROR_MESSAGE_ROBOT, ERROR_MESSAGE_URL_NO_QUERY_PARAMS, ERROR_MESSAGE_URL_PREFIX, ERROR_MESSAGE_UTM_URL, GC_DESIRED_CONTENT_OPTIONS, GC_SERVICE_OPTIONS, GC_VIDEO_SERVICE_OPTIONS, HTML_MIME_TYPES, IMAGE_MIME_TYPES, JOB_ROLE_GROUP, JSON_MIME_TYPES, LIMIT_LONG_STRING_MAX_LENGTH, LIMIT_MAX_DESTINATION, LIMIT_MAX_EMAIL, LIMIT_MAX_PASSWORD, LIMIT_MAX_PHONE, LIMIT_MAX_USERNAME, LIMIT_MAX_UTM_CAMPAIGN, LIMIT_MAX_UTM_CONTENT, LIMIT_MAX_UTM_CREATIVE_FORMAT, LIMIT_MAX_UTM_ID, LIMIT_MAX_UTM_MEDIUM, LIMIT_MAX_UTM_SOURCE, LIMIT_MAX_UTM_TERM, LIMIT_MEDIUM_STRING_MAX_LENGTH, LIMIT_MIN_DESTINATION, LIMIT_MIN_EMAIL, LIMIT_MIN_PASSWORD, LIMIT_MIN_PHONE, LIMIT_MIN_USERNAME, LIMIT_MIN_UTM_CAMPAIGN, LIMIT_MIN_UTM_CONTENT, LIMIT_MIN_UTM_CREATIVE_FORMAT, LIMIT_MIN_UTM_ID, LIMIT_MIN_UTM_MEDIUM, LIMIT_MIN_UTM_SOURCE, LIMIT_MIN_UTM_TERM, LIMIT_MIN_VALUE, LIMIT_PAGINATION_DEFAULT_SIZE, LIMIT_PAGINATION_MAX_SIZE, LIMIT_SHORT_STRING_MAX_LENGTH, LIMIT_TABLE_PAGINATION_DEFAULT_SIZE, LIMIT_VAL_10, LIMIT_VAL_100, LIMIT_VAL_20, LIMIT_VAL_255, LIMIT_VAL_32, LIMIT_VAL_64, MJML_MIME_TYPES, NUMBER_OF_EMPLOYEE_OPTIONS, RATING_RANGE_5, REGEX_BRAND_COLOR_SLUG, REGEX_NANP_PHONE, REGEX_URL_SLUG, REGEX_UTM_VALUE, STRAPI_COLLECTION_ENTITY_ENDPOINTS, STRAPI_ENTITY_UIDS, STRAPI_SINGLE_ENTITY_ENDPOINTS, STRAPI_SPECIAL_ENTITIES, TXT_MIME_TYPES, XML_MIME_TYPES, getStrapiEntityValues };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as BaseDocument } from "./document-CBGZr7I-.mjs";
|
|
2
|
-
import { i as VStringMax,
|
|
2
|
+
import { i as VStringMax, s as VStringShort } from "./string-v2gu3xz0.mjs";
|
|
3
3
|
import { r as MediaUploadDocument } from "./media-upload-CnRvtycg.mjs";
|
|
4
4
|
import { n as VDocumentRelationManyRequired, r as VDocumentRelationOne, t as VDocumentRelationMany } from "./relation-CleGc56b.mjs";
|
|
5
5
|
import { RichTextBlock } from "./components/shared/index.mjs";
|
|
@@ -58,14 +58,16 @@ const ClientProjectDocument = v.object({
|
|
|
58
58
|
//#region src/entities/client-email/document.ts
|
|
59
59
|
const ClientEmailDocument = v.object({
|
|
60
60
|
...BaseDocument.entries,
|
|
61
|
-
html: VString(),
|
|
62
|
-
mjml: v.nullable(v.pipe(v.string(), v.trim())),
|
|
63
|
-
subject_line: v.nullable(VStringMax(998)),
|
|
64
|
-
preheader_text: v.nullable(VStringMax()),
|
|
65
|
-
deploy_date: v.nullable(v.pipe(v.string(), v.isoDate())),
|
|
66
61
|
clients: VDocumentRelationMany(() => ClientDocument),
|
|
67
62
|
client_projects: VDocumentRelationMany(() => ClientProjectDocument),
|
|
68
|
-
email_variants: VDocumentRelationMany(() => ClientEmailDocument)
|
|
63
|
+
email_variants: VDocumentRelationMany(() => ClientEmailDocument),
|
|
64
|
+
slug: VStringShort(),
|
|
65
|
+
deploy_date: v.nullable(v.pipe(v.string(), v.isoDate())),
|
|
66
|
+
subject_line: v.nullable(VStringMax(998)),
|
|
67
|
+
preheader_text: v.nullable(VStringMax()),
|
|
68
|
+
html_file: v.nullable(v.lazy(() => MediaUploadDocument)),
|
|
69
|
+
mjml_file: v.nullable(v.lazy(() => MediaUploadDocument)),
|
|
70
|
+
preview_thumb: v.nullable(v.lazy(() => MediaUploadDocument))
|
|
69
71
|
});
|
|
70
72
|
//#endregion
|
|
71
73
|
//#region src/entities/media-creative-format/document.ts
|
|
@@ -49,14 +49,16 @@ type ClientEmailDocument = {
|
|
|
49
49
|
publishedAt?: string;
|
|
50
50
|
createdAt: string;
|
|
51
51
|
updatedAt: string;
|
|
52
|
-
html: string;
|
|
53
|
-
mjml: string | null;
|
|
54
|
-
subject_line: string | null;
|
|
55
|
-
preheader_text: string | null;
|
|
56
|
-
deploy_date: string | null;
|
|
57
52
|
clients?: ClientDocument[] | null;
|
|
58
53
|
client_projects?: ClientProjectDocument[] | null;
|
|
59
54
|
email_variants?: ClientEmailDocument[] | null;
|
|
55
|
+
slug: string;
|
|
56
|
+
deploy_date: string | null;
|
|
57
|
+
subject_line: string | null;
|
|
58
|
+
preheader_text: string | null;
|
|
59
|
+
html_file?: MediaUploadDocument | null;
|
|
60
|
+
mjml_file?: MediaUploadDocument | null;
|
|
61
|
+
preview_thumb?: MediaUploadDocument | null;
|
|
60
62
|
};
|
|
61
63
|
declare const ClientEmailDocument: v.GenericSchema<ClientEmailDocument>;
|
|
62
64
|
//#endregion
|
|
@@ -49,14 +49,16 @@ type ClientEmailDocument = {
|
|
|
49
49
|
publishedAt?: string;
|
|
50
50
|
createdAt: string;
|
|
51
51
|
updatedAt: string;
|
|
52
|
-
html: string;
|
|
53
|
-
mjml: string | null;
|
|
54
|
-
subject_line: string | null;
|
|
55
|
-
preheader_text: string | null;
|
|
56
|
-
deploy_date: string | null;
|
|
57
52
|
clients?: ClientDocument[] | null;
|
|
58
53
|
client_projects?: ClientProjectDocument[] | null;
|
|
59
54
|
email_variants?: ClientEmailDocument[] | null;
|
|
55
|
+
slug: string;
|
|
56
|
+
deploy_date: string | null;
|
|
57
|
+
subject_line: string | null;
|
|
58
|
+
preheader_text: string | null;
|
|
59
|
+
html_file?: MediaUploadDocument | null;
|
|
60
|
+
mjml_file?: MediaUploadDocument | null;
|
|
61
|
+
preview_thumb?: MediaUploadDocument | null;
|
|
60
62
|
};
|
|
61
63
|
declare const ClientEmailDocument: v.GenericSchema<ClientEmailDocument>;
|
|
62
64
|
//#endregion
|
|
@@ -60,14 +60,16 @@ const ClientProjectDocument = valibot.object({
|
|
|
60
60
|
//#region src/entities/client-email/document.ts
|
|
61
61
|
const ClientEmailDocument = valibot.object({
|
|
62
62
|
...require_document.BaseDocument.entries,
|
|
63
|
-
html: require_string.VString(),
|
|
64
|
-
mjml: valibot.nullable(valibot.pipe(valibot.string(), valibot.trim())),
|
|
65
|
-
subject_line: valibot.nullable(require_string.VStringMax(998)),
|
|
66
|
-
preheader_text: valibot.nullable(require_string.VStringMax()),
|
|
67
|
-
deploy_date: valibot.nullable(valibot.pipe(valibot.string(), valibot.isoDate())),
|
|
68
63
|
clients: require_relation.VDocumentRelationMany(() => ClientDocument),
|
|
69
64
|
client_projects: require_relation.VDocumentRelationMany(() => ClientProjectDocument),
|
|
70
|
-
email_variants: require_relation.VDocumentRelationMany(() => ClientEmailDocument)
|
|
65
|
+
email_variants: require_relation.VDocumentRelationMany(() => ClientEmailDocument),
|
|
66
|
+
slug: require_string.VStringShort(),
|
|
67
|
+
deploy_date: valibot.nullable(valibot.pipe(valibot.string(), valibot.isoDate())),
|
|
68
|
+
subject_line: valibot.nullable(require_string.VStringMax(998)),
|
|
69
|
+
preheader_text: valibot.nullable(require_string.VStringMax()),
|
|
70
|
+
html_file: valibot.nullable(valibot.lazy(() => require_media_upload.MediaUploadDocument)),
|
|
71
|
+
mjml_file: valibot.nullable(valibot.lazy(() => require_media_upload.MediaUploadDocument)),
|
|
72
|
+
preview_thumb: valibot.nullable(valibot.lazy(() => require_media_upload.MediaUploadDocument))
|
|
71
73
|
});
|
|
72
74
|
//#endregion
|
|
73
75
|
//#region src/entities/media-creative-format/document.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ClientDocument } from "../../document-
|
|
1
|
+
import { n as ClientDocument } from "../../document-BsK9rrGj.cjs";
|
|
2
2
|
export { ClientDocument };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ClientDocument } from "../../document-
|
|
1
|
+
import { n as ClientDocument } from "../../document-BPkKpMtc.mjs";
|
|
2
2
|
export { ClientDocument };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ClientDocument } from "../../document-
|
|
1
|
+
import { t as ClientDocument } from "../../document-0ZHuVdfl.mjs";
|
|
2
2
|
export { ClientDocument };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_document = require("../../document-
|
|
2
|
+
const require_document = require("../../document-y3W3rg2J.cjs");
|
|
3
3
|
exports.ClientContentPillarDocument = require_document.ClientContentPillarDocument;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ClientContentPillarDocument } from "../../document-
|
|
1
|
+
import { t as ClientContentPillarDocument } from "../../document-BsK9rrGj.cjs";
|
|
2
2
|
export { ClientContentPillarDocument };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ClientContentPillarDocument } from "../../document-
|
|
1
|
+
import { t as ClientContentPillarDocument } from "../../document-BPkKpMtc.mjs";
|
|
2
2
|
export { ClientContentPillarDocument };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as ClientContentPillarDocument } from "../../document-
|
|
1
|
+
import { S as ClientContentPillarDocument } from "../../document-0ZHuVdfl.mjs";
|
|
2
2
|
export { ClientContentPillarDocument };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_document = require("../../document-
|
|
2
|
+
const require_document = require("../../document-y3W3rg2J.cjs");
|
|
3
3
|
exports.ClientEmailDocument = require_document.ClientEmailDocument;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { H as ClientEmailDocument } from "../../document-
|
|
1
|
+
import { H as ClientEmailDocument } from "../../document-BsK9rrGj.cjs";
|
|
2
2
|
export { ClientEmailDocument };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { H as ClientEmailDocument } from "../../document-
|
|
1
|
+
import { H as ClientEmailDocument } from "../../document-BPkKpMtc.mjs";
|
|
2
2
|
export { ClientEmailDocument };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { b as ClientEmailDocument } from "../../document-
|
|
1
|
+
import { b as ClientEmailDocument } from "../../document-0ZHuVdfl.mjs";
|
|
2
2
|
export { ClientEmailDocument };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_chunk = require("../../chunk-D6vf50IK.cjs");
|
|
3
|
+
const require_mime_types = require("../../mime-types-Ds7pD7ws.cjs");
|
|
4
|
+
let valibot = require("valibot");
|
|
5
|
+
valibot = require_chunk.__toESM(valibot, 1);
|
|
6
|
+
//#region src/entities/client-email/fields.ts
|
|
7
|
+
const HtmlFileSchema = valibot.pipe(valibot.file(), valibot.mimeType(require_mime_types.HTML_MIME_TYPES, "Please upload a valid HTML file."), valibot.minSize(1), valibot.maxSize(10485760, `File size cannot exceed 10MB.`));
|
|
8
|
+
const MjmlFileSchema = valibot.pipe(valibot.file(), valibot.mimeType(require_mime_types.MJML_MIME_TYPES, "Please upload a valid MJML file."), valibot.minSize(1), valibot.maxSize(10485760, `File size cannot exceed 10MB.`));
|
|
9
|
+
const PreviewThumbSchema = valibot.pipe(valibot.file(), valibot.mimeType(require_mime_types.IMAGE_MIME_TYPES, "Please upload a valid image file."), valibot.minSize(1), valibot.maxSize(1048576, `File size cannot exceed 1MB.`));
|
|
10
|
+
//#endregion
|
|
11
|
+
exports.HtmlFileSchema = HtmlFileSchema;
|
|
12
|
+
exports.MjmlFileSchema = MjmlFileSchema;
|
|
13
|
+
exports.PreviewThumbSchema = PreviewThumbSchema;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
|
|
3
|
+
//#region src/entities/client-email/fields.d.ts
|
|
4
|
+
declare const HtmlFileSchema: v.SchemaWithPipe<readonly [v.FileSchema<undefined>, v.MimeTypeAction<any, ["text/html", "application/xhtml+xml", "application/html"], "Please upload a valid HTML file.">, v.MinSizeAction<any, 1, undefined>, v.MaxSizeAction<any, 10485760, "File size cannot exceed 10MB.">]>;
|
|
5
|
+
declare const MjmlFileSchema: v.SchemaWithPipe<readonly [v.FileSchema<undefined>, v.MimeTypeAction<any, ["text/plain", "application/xml", "text/xml", "application/octet-stream"], "Please upload a valid MJML file.">, v.MinSizeAction<any, 1, undefined>, v.MaxSizeAction<any, 10485760, "File size cannot exceed 10MB.">]>;
|
|
6
|
+
declare const PreviewThumbSchema: v.SchemaWithPipe<readonly [v.FileSchema<undefined>, v.MimeTypeAction<any, ["image/jpeg", "image/png", "image/gif", "image/webp"], "Please upload a valid image file.">, v.MinSizeAction<any, 1, undefined>, v.MaxSizeAction<any, 1048576, "File size cannot exceed 1MB.">]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { HtmlFileSchema, MjmlFileSchema, PreviewThumbSchema };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
|
|
3
|
+
//#region src/entities/client-email/fields.d.ts
|
|
4
|
+
declare const HtmlFileSchema: v.SchemaWithPipe<readonly [v.FileSchema<undefined>, v.MimeTypeAction<any, ["text/html", "application/xhtml+xml", "application/html"], "Please upload a valid HTML file.">, v.MinSizeAction<any, 1, undefined>, v.MaxSizeAction<any, 10485760, "File size cannot exceed 10MB.">]>;
|
|
5
|
+
declare const MjmlFileSchema: v.SchemaWithPipe<readonly [v.FileSchema<undefined>, v.MimeTypeAction<any, ["text/plain", "application/xml", "text/xml", "application/octet-stream"], "Please upload a valid MJML file.">, v.MinSizeAction<any, 1, undefined>, v.MaxSizeAction<any, 10485760, "File size cannot exceed 10MB.">]>;
|
|
6
|
+
declare const PreviewThumbSchema: v.SchemaWithPipe<readonly [v.FileSchema<undefined>, v.MimeTypeAction<any, ["image/jpeg", "image/png", "image/gif", "image/webp"], "Please upload a valid image file.">, v.MinSizeAction<any, 1, undefined>, v.MaxSizeAction<any, 1048576, "File size cannot exceed 1MB.">]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { HtmlFileSchema, MjmlFileSchema, PreviewThumbSchema };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { i as MJML_MIME_TYPES, n as IMAGE_MIME_TYPES, t as HTML_MIME_TYPES } from "../../mime-types-Czgq2Q_k.mjs";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
//#region src/entities/client-email/fields.ts
|
|
4
|
+
const HtmlFileSchema = v.pipe(v.file(), v.mimeType(HTML_MIME_TYPES, "Please upload a valid HTML file."), v.minSize(1), v.maxSize(10485760, `File size cannot exceed 10MB.`));
|
|
5
|
+
const MjmlFileSchema = v.pipe(v.file(), v.mimeType(MJML_MIME_TYPES, "Please upload a valid MJML file."), v.minSize(1), v.maxSize(10485760, `File size cannot exceed 10MB.`));
|
|
6
|
+
const PreviewThumbSchema = v.pipe(v.file(), v.mimeType(IMAGE_MIME_TYPES, "Please upload a valid image file."), v.minSize(1), v.maxSize(1048576, `File size cannot exceed 1MB.`));
|
|
7
|
+
//#endregion
|
|
8
|
+
export { HtmlFileSchema, MjmlFileSchema, PreviewThumbSchema };
|
|
@@ -2,28 +2,46 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_chunk = require("../../chunk-D6vf50IK.cjs");
|
|
3
3
|
const require_relationships = require("../../relationships-BiOl8YTc.cjs");
|
|
4
4
|
const require_string = require("../../string-AHrZ--r_.cjs");
|
|
5
|
+
const require_entities_client_email_fields = require("./fields.cjs");
|
|
6
|
+
const require_entities_upload_mutation = require("../upload/mutation.cjs");
|
|
5
7
|
let valibot = require("valibot");
|
|
6
8
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
7
9
|
//#region src/entities/client-email/mutation.ts
|
|
10
|
+
const CreateClientEmailHtmlFile = valibot.object({
|
|
11
|
+
file: valibot.nullable(require_entities_client_email_fields.HtmlFileSchema),
|
|
12
|
+
fileInfo: valibot.optional(require_entities_upload_mutation.CreateStrapiMediaUploadFileInfo)
|
|
13
|
+
});
|
|
14
|
+
const CreateClientEmailMjmlFile = valibot.object({
|
|
15
|
+
file: valibot.nullable(require_entities_client_email_fields.MjmlFileSchema),
|
|
16
|
+
fileInfo: valibot.optional(require_entities_upload_mutation.CreateStrapiMediaUploadFileInfo)
|
|
17
|
+
});
|
|
18
|
+
const CreateClientEmailPreviewThumbFile = valibot.object({
|
|
19
|
+
file: valibot.nullable(require_entities_client_email_fields.PreviewThumbSchema),
|
|
20
|
+
fileInfo: valibot.optional(require_entities_upload_mutation.CreateStrapiMediaUploadFileInfo)
|
|
21
|
+
});
|
|
8
22
|
const CreateClientEmailDocument = valibot.object({
|
|
9
|
-
html: require_string.VString(),
|
|
10
|
-
mjml: valibot.nullable(valibot.pipe(valibot.string(), valibot.trim())),
|
|
11
|
-
subject_line: valibot.nullable(require_string.VStringMax(998)),
|
|
12
|
-
preheader_text: valibot.nullable(require_string.VStringMax()),
|
|
13
|
-
deploy_date: valibot.nullable(valibot.pipe(valibot.string(), valibot.isoDate())),
|
|
14
23
|
clients: require_relationships.AssociateManyEntitiesOptional,
|
|
15
24
|
client_projects: require_relationships.AssociateManyEntitiesOptional,
|
|
16
|
-
email_variants: require_relationships.AssociateManyEntitiesOptional
|
|
25
|
+
email_variants: require_relationships.AssociateManyEntitiesOptional,
|
|
26
|
+
slug: require_string.VStringShort(),
|
|
27
|
+
deploy_date: valibot.nullable(valibot.pipe(valibot.string(), valibot.isoDate())),
|
|
28
|
+
subject_line: valibot.nullable(require_string.VStringMax(998)),
|
|
29
|
+
preheader_text: valibot.nullable(require_string.VStringMax()),
|
|
30
|
+
html_file: valibot.nullable(valibot.number()),
|
|
31
|
+
mjml_file: valibot.nullable(valibot.number()),
|
|
32
|
+
preview_thumb: valibot.nullable(valibot.number())
|
|
17
33
|
});
|
|
18
34
|
const UpdateClientEmailDocument = valibot.object({
|
|
19
|
-
html: valibot.optional(require_string.VString()),
|
|
20
|
-
mjml: valibot.optional(valibot.nullable(valibot.pipe(valibot.string(), valibot.trim()))),
|
|
21
|
-
subject_line: valibot.optional(valibot.nullable(require_string.VStringMax(998))),
|
|
22
|
-
preheader_text: valibot.optional(valibot.nullable(require_string.VStringMax())),
|
|
23
|
-
deploy_date: valibot.optional(valibot.nullable(valibot.pipe(valibot.string(), valibot.isoDate()))),
|
|
24
35
|
clients: require_relationships.AssociateManyEntitiesOptional,
|
|
25
36
|
client_projects: require_relationships.AssociateManyEntitiesOptional,
|
|
26
|
-
email_variants: require_relationships.AssociateManyEntitiesOptional
|
|
37
|
+
email_variants: require_relationships.AssociateManyEntitiesOptional,
|
|
38
|
+
slug: valibot.optional(require_string.VStringShort()),
|
|
39
|
+
deploy_date: valibot.optional(valibot.nullable(valibot.pipe(valibot.string(), valibot.isoDate()))),
|
|
40
|
+
subject_line: valibot.optional(valibot.nullable(require_string.VStringMax(998))),
|
|
41
|
+
preheader_text: valibot.optional(valibot.nullable(require_string.VStringMax())),
|
|
42
|
+
html_file: valibot.optional(valibot.nullable(valibot.number())),
|
|
43
|
+
mjml_file: valibot.optional(valibot.nullable(valibot.number())),
|
|
44
|
+
preview_thumb: valibot.optional(valibot.nullable(valibot.number()))
|
|
27
45
|
});
|
|
28
46
|
const UpdateClientEmailDocumentRequest = valibot.object({
|
|
29
47
|
documentId: require_relationships.AssociateOneEntity,
|
|
@@ -31,5 +49,8 @@ const UpdateClientEmailDocumentRequest = valibot.object({
|
|
|
31
49
|
});
|
|
32
50
|
//#endregion
|
|
33
51
|
exports.CreateClientEmailDocument = CreateClientEmailDocument;
|
|
52
|
+
exports.CreateClientEmailHtmlFile = CreateClientEmailHtmlFile;
|
|
53
|
+
exports.CreateClientEmailMjmlFile = CreateClientEmailMjmlFile;
|
|
54
|
+
exports.CreateClientEmailPreviewThumbFile = CreateClientEmailPreviewThumbFile;
|
|
34
55
|
exports.UpdateClientEmailDocument = UpdateClientEmailDocument;
|
|
35
56
|
exports.UpdateClientEmailDocumentRequest = UpdateClientEmailDocumentRequest;
|
|
@@ -1,41 +1,74 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/client-email/mutation.d.ts
|
|
4
|
+
declare const CreateClientEmailHtmlFile: v.ObjectSchema<{
|
|
5
|
+
readonly file: v.NullableSchema<v.SchemaWithPipe<readonly [v.FileSchema<undefined>, v.MimeTypeAction<any, ["text/html", "application/xhtml+xml", "application/html"], "Please upload a valid HTML file.">, v.MinSizeAction<any, 1, undefined>, v.MaxSizeAction<any, 10485760, "File size cannot exceed 10MB.">]>, undefined>;
|
|
6
|
+
readonly fileInfo: v.OptionalSchema<v.ObjectSchema<{
|
|
7
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
8
|
+
readonly alternativeText: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
9
|
+
readonly caption: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
10
|
+
}, undefined>, undefined>;
|
|
11
|
+
}, undefined>;
|
|
12
|
+
type CreateClientEmailHtmlFile = v.InferOutput<typeof CreateClientEmailHtmlFile>;
|
|
13
|
+
declare const CreateClientEmailMjmlFile: v.ObjectSchema<{
|
|
14
|
+
readonly file: v.NullableSchema<v.SchemaWithPipe<readonly [v.FileSchema<undefined>, v.MimeTypeAction<any, ["text/plain", "application/xml", "text/xml", "application/octet-stream"], "Please upload a valid MJML file.">, v.MinSizeAction<any, 1, undefined>, v.MaxSizeAction<any, 10485760, "File size cannot exceed 10MB.">]>, undefined>;
|
|
15
|
+
readonly fileInfo: v.OptionalSchema<v.ObjectSchema<{
|
|
16
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
17
|
+
readonly alternativeText: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
18
|
+
readonly caption: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
19
|
+
}, undefined>, undefined>;
|
|
20
|
+
}, undefined>;
|
|
21
|
+
type CreateClientEmailMjmlFile = v.InferOutput<typeof CreateClientEmailMjmlFile>;
|
|
22
|
+
declare const CreateClientEmailPreviewThumbFile: v.ObjectSchema<{
|
|
23
|
+
readonly file: v.NullableSchema<v.SchemaWithPipe<readonly [v.FileSchema<undefined>, v.MimeTypeAction<any, ["image/jpeg", "image/png", "image/gif", "image/webp"], "Please upload a valid image file.">, v.MinSizeAction<any, 1, undefined>, v.MaxSizeAction<any, 1048576, "File size cannot exceed 1MB.">]>, undefined>;
|
|
24
|
+
readonly fileInfo: v.OptionalSchema<v.ObjectSchema<{
|
|
25
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
26
|
+
readonly alternativeText: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
27
|
+
readonly caption: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
28
|
+
}, undefined>, undefined>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
type CreateClientEmailPreviewThumbFile = v.InferOutput<typeof CreateClientEmailPreviewThumbFile>;
|
|
4
31
|
declare const CreateClientEmailDocument: v.ObjectSchema<{
|
|
5
|
-
readonly html: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>]>;
|
|
6
|
-
readonly mjml: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>;
|
|
7
|
-
readonly subject_line: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
8
|
-
readonly preheader_text: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
9
|
-
readonly deploy_date: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
|
|
10
32
|
readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
11
33
|
readonly client_projects: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
12
34
|
readonly email_variants: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
35
|
+
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
36
|
+
readonly deploy_date: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
|
|
37
|
+
readonly subject_line: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
38
|
+
readonly preheader_text: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
39
|
+
readonly html_file: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
40
|
+
readonly mjml_file: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
41
|
+
readonly preview_thumb: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
13
42
|
}, undefined>;
|
|
14
43
|
type CreateClientEmailDocument = v.InferOutput<typeof CreateClientEmailDocument>;
|
|
15
44
|
declare const UpdateClientEmailDocument: v.ObjectSchema<{
|
|
16
|
-
readonly html: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>]>, undefined>;
|
|
17
|
-
readonly mjml: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, undefined>;
|
|
18
|
-
readonly subject_line: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
19
|
-
readonly preheader_text: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
20
|
-
readonly deploy_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
21
45
|
readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
22
46
|
readonly client_projects: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
23
47
|
readonly email_variants: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
48
|
+
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
49
|
+
readonly deploy_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
50
|
+
readonly subject_line: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
51
|
+
readonly preheader_text: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
52
|
+
readonly html_file: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
53
|
+
readonly mjml_file: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
54
|
+
readonly preview_thumb: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
24
55
|
}, undefined>;
|
|
25
56
|
type UpdateClientEmailDocument = v.InferOutput<typeof UpdateClientEmailDocument>;
|
|
26
57
|
declare const UpdateClientEmailDocumentRequest: v.ObjectSchema<{
|
|
27
58
|
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
28
59
|
readonly data: v.ObjectSchema<{
|
|
29
|
-
readonly html: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>]>, undefined>;
|
|
30
|
-
readonly mjml: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, undefined>;
|
|
31
|
-
readonly subject_line: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
32
|
-
readonly preheader_text: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
33
|
-
readonly deploy_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
34
60
|
readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
35
61
|
readonly client_projects: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
36
62
|
readonly email_variants: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
63
|
+
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
64
|
+
readonly deploy_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
65
|
+
readonly subject_line: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
66
|
+
readonly preheader_text: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
67
|
+
readonly html_file: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
68
|
+
readonly mjml_file: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
69
|
+
readonly preview_thumb: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
37
70
|
}, undefined>;
|
|
38
71
|
}, undefined>;
|
|
39
72
|
type UpdateClientEmailDocumentRequest = v.InferOutput<typeof UpdateClientEmailDocumentRequest>;
|
|
40
73
|
//#endregion
|
|
41
|
-
export { CreateClientEmailDocument, UpdateClientEmailDocument, UpdateClientEmailDocumentRequest };
|
|
74
|
+
export { CreateClientEmailDocument, CreateClientEmailHtmlFile, CreateClientEmailMjmlFile, CreateClientEmailPreviewThumbFile, UpdateClientEmailDocument, UpdateClientEmailDocumentRequest };
|
|
@@ -1,41 +1,74 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/client-email/mutation.d.ts
|
|
4
|
+
declare const CreateClientEmailHtmlFile: v.ObjectSchema<{
|
|
5
|
+
readonly file: v.NullableSchema<v.SchemaWithPipe<readonly [v.FileSchema<undefined>, v.MimeTypeAction<any, ["text/html", "application/xhtml+xml", "application/html"], "Please upload a valid HTML file.">, v.MinSizeAction<any, 1, undefined>, v.MaxSizeAction<any, 10485760, "File size cannot exceed 10MB.">]>, undefined>;
|
|
6
|
+
readonly fileInfo: v.OptionalSchema<v.ObjectSchema<{
|
|
7
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
8
|
+
readonly alternativeText: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
9
|
+
readonly caption: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
10
|
+
}, undefined>, undefined>;
|
|
11
|
+
}, undefined>;
|
|
12
|
+
type CreateClientEmailHtmlFile = v.InferOutput<typeof CreateClientEmailHtmlFile>;
|
|
13
|
+
declare const CreateClientEmailMjmlFile: v.ObjectSchema<{
|
|
14
|
+
readonly file: v.NullableSchema<v.SchemaWithPipe<readonly [v.FileSchema<undefined>, v.MimeTypeAction<any, ["text/plain", "application/xml", "text/xml", "application/octet-stream"], "Please upload a valid MJML file.">, v.MinSizeAction<any, 1, undefined>, v.MaxSizeAction<any, 10485760, "File size cannot exceed 10MB.">]>, undefined>;
|
|
15
|
+
readonly fileInfo: v.OptionalSchema<v.ObjectSchema<{
|
|
16
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
17
|
+
readonly alternativeText: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
18
|
+
readonly caption: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
19
|
+
}, undefined>, undefined>;
|
|
20
|
+
}, undefined>;
|
|
21
|
+
type CreateClientEmailMjmlFile = v.InferOutput<typeof CreateClientEmailMjmlFile>;
|
|
22
|
+
declare const CreateClientEmailPreviewThumbFile: v.ObjectSchema<{
|
|
23
|
+
readonly file: v.NullableSchema<v.SchemaWithPipe<readonly [v.FileSchema<undefined>, v.MimeTypeAction<any, ["image/jpeg", "image/png", "image/gif", "image/webp"], "Please upload a valid image file.">, v.MinSizeAction<any, 1, undefined>, v.MaxSizeAction<any, 1048576, "File size cannot exceed 1MB.">]>, undefined>;
|
|
24
|
+
readonly fileInfo: v.OptionalSchema<v.ObjectSchema<{
|
|
25
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
26
|
+
readonly alternativeText: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
27
|
+
readonly caption: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
28
|
+
}, undefined>, undefined>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
type CreateClientEmailPreviewThumbFile = v.InferOutput<typeof CreateClientEmailPreviewThumbFile>;
|
|
4
31
|
declare const CreateClientEmailDocument: v.ObjectSchema<{
|
|
5
|
-
readonly html: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>]>;
|
|
6
|
-
readonly mjml: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>;
|
|
7
|
-
readonly subject_line: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
8
|
-
readonly preheader_text: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
9
|
-
readonly deploy_date: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
|
|
10
32
|
readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
11
33
|
readonly client_projects: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
12
34
|
readonly email_variants: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
35
|
+
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
36
|
+
readonly deploy_date: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
|
|
37
|
+
readonly subject_line: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
38
|
+
readonly preheader_text: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
39
|
+
readonly html_file: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
40
|
+
readonly mjml_file: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
41
|
+
readonly preview_thumb: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
13
42
|
}, undefined>;
|
|
14
43
|
type CreateClientEmailDocument = v.InferOutput<typeof CreateClientEmailDocument>;
|
|
15
44
|
declare const UpdateClientEmailDocument: v.ObjectSchema<{
|
|
16
|
-
readonly html: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>]>, undefined>;
|
|
17
|
-
readonly mjml: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, undefined>;
|
|
18
|
-
readonly subject_line: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
19
|
-
readonly preheader_text: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
20
|
-
readonly deploy_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
21
45
|
readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
22
46
|
readonly client_projects: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
23
47
|
readonly email_variants: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
48
|
+
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
49
|
+
readonly deploy_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
50
|
+
readonly subject_line: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
51
|
+
readonly preheader_text: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
52
|
+
readonly html_file: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
53
|
+
readonly mjml_file: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
54
|
+
readonly preview_thumb: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
24
55
|
}, undefined>;
|
|
25
56
|
type UpdateClientEmailDocument = v.InferOutput<typeof UpdateClientEmailDocument>;
|
|
26
57
|
declare const UpdateClientEmailDocumentRequest: v.ObjectSchema<{
|
|
27
58
|
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
28
59
|
readonly data: v.ObjectSchema<{
|
|
29
|
-
readonly html: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>]>, undefined>;
|
|
30
|
-
readonly mjml: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, undefined>;
|
|
31
|
-
readonly subject_line: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
32
|
-
readonly preheader_text: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
33
|
-
readonly deploy_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
34
60
|
readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
35
61
|
readonly client_projects: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
36
62
|
readonly email_variants: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
63
|
+
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
64
|
+
readonly deploy_date: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>, undefined>;
|
|
65
|
+
readonly subject_line: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
66
|
+
readonly preheader_text: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
67
|
+
readonly html_file: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
68
|
+
readonly mjml_file: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
69
|
+
readonly preview_thumb: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
37
70
|
}, undefined>;
|
|
38
71
|
}, undefined>;
|
|
39
72
|
type UpdateClientEmailDocumentRequest = v.InferOutput<typeof UpdateClientEmailDocumentRequest>;
|
|
40
73
|
//#endregion
|
|
41
|
-
export { CreateClientEmailDocument, UpdateClientEmailDocument, UpdateClientEmailDocumentRequest };
|
|
74
|
+
export { CreateClientEmailDocument, CreateClientEmailHtmlFile, CreateClientEmailMjmlFile, CreateClientEmailPreviewThumbFile, UpdateClientEmailDocument, UpdateClientEmailDocumentRequest };
|