@getcommunity/gc-validators 0.0.216 → 0.0.218

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.
Files changed (86) hide show
  1. package/dist/chunk-CKQMccvm.cjs +28 -0
  2. package/dist/constants.cjs +461 -438
  3. package/dist/constants.cjs.map +1 -1
  4. package/dist/constants.d.cts +2 -233
  5. package/dist/constants.d.mts +2 -0
  6. package/dist/constants.mjs +355 -0
  7. package/dist/constants.mjs.map +1 -0
  8. package/dist/index-B6pNPQrV.d.mts +4192 -0
  9. package/dist/index-CQtazKyX.d.cts +4192 -0
  10. package/dist/index-CiWVYf_f.d.cts +292 -0
  11. package/dist/index-DOR_It7I.d.mts +292 -0
  12. package/dist/index.cjs +350 -1388
  13. package/dist/index.d.cts +3 -10
  14. package/dist/index.d.mts +3 -0
  15. package/dist/index.mjs +6 -0
  16. package/dist/permissions.cjs +757 -30
  17. package/dist/permissions.cjs.map +1 -1
  18. package/dist/permissions.d.cts +2 -747
  19. package/dist/permissions.d.mts +2 -0
  20. package/dist/permissions.mjs +753 -0
  21. package/dist/permissions.mjs.map +1 -0
  22. package/dist/schemas.cjs +1781 -896
  23. package/dist/schemas.cjs.map +1 -1
  24. package/dist/schemas.d.cts +2 -1935
  25. package/dist/schemas.d.mts +2 -0
  26. package/dist/schemas.mjs +1559 -0
  27. package/dist/schemas.mjs.map +1 -0
  28. package/dist/types.cjs +0 -6
  29. package/dist/types.d.cts +2 -851
  30. package/dist/types.d.mts +2 -0
  31. package/dist/types.mjs +1 -0
  32. package/dist/utilities.cjs +76 -38
  33. package/dist/utilities.cjs.map +1 -1
  34. package/dist/utilities.d.cts +2 -26
  35. package/dist/utilities.d.mts +2 -0
  36. package/dist/utilities.mjs +68 -0
  37. package/dist/utilities.mjs.map +1 -0
  38. package/package.json +4 -4
  39. package/dist/chunk-57PRSDKM.cjs +0 -368
  40. package/dist/chunk-57PRSDKM.cjs.map +0 -1
  41. package/dist/chunk-7CI3M2JM.js +0 -3
  42. package/dist/chunk-7CI3M2JM.js.map +0 -1
  43. package/dist/chunk-ABPKJ5AP.js +0 -259
  44. package/dist/chunk-ABPKJ5AP.js.map +0 -1
  45. package/dist/chunk-BYTL5J7D.js +0 -2606
  46. package/dist/chunk-BYTL5J7D.js.map +0 -1
  47. package/dist/chunk-CDBT3J75.cjs +0 -4
  48. package/dist/chunk-CDBT3J75.cjs.map +0 -1
  49. package/dist/chunk-DU5WCXJJ.js +0 -685
  50. package/dist/chunk-DU5WCXJJ.js.map +0 -1
  51. package/dist/chunk-IMI6XEMX.cjs +0 -2849
  52. package/dist/chunk-IMI6XEMX.cjs.map +0 -1
  53. package/dist/chunk-NMDMJZPF.cjs +0 -692
  54. package/dist/chunk-NMDMJZPF.cjs.map +0 -1
  55. package/dist/chunk-NNLSUHMQ.js +0 -63
  56. package/dist/chunk-NNLSUHMQ.js.map +0 -1
  57. package/dist/chunk-UAQWYRXG.cjs +0 -92
  58. package/dist/chunk-UAQWYRXG.cjs.map +0 -1
  59. package/dist/comment.document-HT6qJLh5.d.cts +0 -468
  60. package/dist/comment.document-xCsfHOer.d.ts +0 -468
  61. package/dist/constants.d.ts +0 -233
  62. package/dist/constants.js +0 -3
  63. package/dist/constants.js.map +0 -1
  64. package/dist/font.constants-BVwxlH3J.d.cts +0 -52
  65. package/dist/font.constants-BVwxlH3J.d.ts +0 -52
  66. package/dist/index.cjs.map +0 -1
  67. package/dist/index.d.ts +0 -10
  68. package/dist/index.js +0 -7
  69. package/dist/index.js.map +0 -1
  70. package/dist/permission.constants-B99nobws.d.cts +0 -30
  71. package/dist/permission.constants-B99nobws.d.ts +0 -30
  72. package/dist/permissions.d.ts +0 -747
  73. package/dist/permissions.js +0 -3
  74. package/dist/permissions.js.map +0 -1
  75. package/dist/response-8Bkawql4.d.cts +0 -56
  76. package/dist/response-8Bkawql4.d.ts +0 -56
  77. package/dist/schemas.d.ts +0 -1935
  78. package/dist/schemas.js +0 -5
  79. package/dist/schemas.js.map +0 -1
  80. package/dist/types.cjs.map +0 -1
  81. package/dist/types.d.ts +0 -851
  82. package/dist/types.js +0 -3
  83. package/dist/types.js.map +0 -1
  84. package/dist/utilities.d.ts +0 -26
  85. package/dist/utilities.js +0 -3
  86. package/dist/utilities.js.map +0 -1
@@ -1,468 +0,0 @@
1
- import { i as WebSafeFont, C as ClientProjectStatusOptions, b as ClientProjectPhaseOptions, d as CommentApprovalStatus, R as ReportCommentReason } from './font.constants-BVwxlH3J.cjs';
2
- import { c as ClientEntityScope } from './permission.constants-B99nobws.cjs';
3
-
4
- type BaseDocument = {
5
- id: number;
6
- documentId: string;
7
- publishedAt: string;
8
- createdAt: string;
9
- updatedAt: string;
10
- };
11
-
12
- type MediaFormat = {
13
- ext: string;
14
- url: string;
15
- hash: string;
16
- mime: string;
17
- name: string;
18
- path: string | null;
19
- size: number;
20
- width: number;
21
- height: number;
22
- sizeInBytes: number;
23
- };
24
- type MediaFormats = {
25
- large?: MediaFormat;
26
- small?: MediaFormat;
27
- medium?: MediaFormat;
28
- thumbnail?: MediaFormat;
29
- };
30
- type MediaUploadDocument = {
31
- name: string;
32
- alternativeText: string | null;
33
- caption: string | null;
34
- width: number;
35
- height: number;
36
- formats?: MediaFormats | null;
37
- hash: string;
38
- ext: string;
39
- mime: string;
40
- size: number;
41
- url: string;
42
- previewUrl: string | null;
43
- provider: string;
44
- provider_metadata: null;
45
- } & BaseDocument;
46
-
47
- type RichTextBlockChildren = {
48
- type: string;
49
- url?: string;
50
- text?: string;
51
- bold?: boolean;
52
- italic?: boolean;
53
- underline?: boolean;
54
- };
55
- type RichTextBlock = {
56
- type: string;
57
- children: RichTextBlockChildren[];
58
- };
59
- type SharedRichTextBlock = {
60
- id: number;
61
- content?: RichTextBlock[] | null;
62
- };
63
- type ComponentSharedRichTextBlock = {
64
- __component: string;
65
- } & SharedRichTextBlock;
66
-
67
- type OpenGraph = {
68
- ogTitle: string;
69
- ogDescription: string;
70
- ogType: string | null;
71
- ogUrl: string | null;
72
- ogImage?: MediaUploadDocument | null;
73
- };
74
- type ComponentOpenGraph = {
75
- __component: string;
76
- } & OpenGraph;
77
- type MetaSocialNetwork = "Facebook" | "Twitter";
78
- type MetaSocial = {
79
- socialNetwork: MetaSocialNetwork;
80
- title: string;
81
- description: string;
82
- image?: MediaUploadDocument | null;
83
- };
84
- type ComponentMetaSocial = {
85
- __component: string;
86
- } & MetaSocial;
87
- type SeoMeta = {
88
- metaTitle: string;
89
- metaDescription: string;
90
- metaImage?: MediaUploadDocument | null;
91
- openGraph?: OpenGraph | null;
92
- metaSocial?: MetaSocial[] | null;
93
- keywords: string | null;
94
- metaRobots: string | null;
95
- metaViewport: string | null;
96
- canonicalURL: string | null;
97
- structuredData: {
98
- [key: string]: string;
99
- } | null;
100
- };
101
- type ComponentSeoMeta = {
102
- __component: string;
103
- } & SeoMeta;
104
-
105
- type BlockBrandLogos = {
106
- id: number;
107
- light: MediaUploadDocument;
108
- dark: MediaUploadDocument;
109
- color: MediaUploadDocument;
110
- };
111
- type ComponentBlockBrandLogos = {
112
- __component: string;
113
- } & BlockBrandLogos;
114
-
115
- type BlockVideoEmbed = {
116
- id: number;
117
- video_source: "youtube" | "upload";
118
- video_id: string | null;
119
- video_upload?: MediaUploadDocument | null;
120
- };
121
- type ComponentBlockVideo = {
122
- __component: string;
123
- } & BlockVideoEmbed;
124
-
125
- type BlockFullscreenContentType = "zoomable-image" | "video" | "html" | "website";
126
- type BlockFullscreenContent = {
127
- id: number;
128
- fullscreen_type: BlockFullscreenContentType;
129
- fullscreen_img?: MediaUploadDocument | null;
130
- website_url: string | null;
131
- html_content: string | null;
132
- video?: BlockVideoEmbed | null;
133
- };
134
- type ComponentBlockFullscreenContent = {
135
- __component: string;
136
- } & BlockFullscreenContent;
137
-
138
- type BrandStyleguideColor = {
139
- id: number;
140
- title: string;
141
- slug: string;
142
- hex: string;
143
- };
144
- type ComponentBrandStyleguideColor = {
145
- __component: string;
146
- } & BrandStyleguideColor;
147
-
148
- type BrandStyleguideFont = {
149
- id: number;
150
- title: string;
151
- slug: string;
152
- fallbacks: Array<WebSafeFont>;
153
- src: MediaUploadDocument;
154
- font_files: Array<MediaUploadDocument>;
155
- };
156
- type ComponentBrandStyleguideFont = {
157
- __component: string;
158
- } & BrandStyleguideFont;
159
-
160
- type UtmClassificationKey = "organic" | "paid";
161
- type UtmSourceKey = "all" | "meta" | "meta_facebook" | "meta_instagram" | "tiktok" | "twitter" | "linkedin" | "pinterest" | "google" | "youtube" | "bing" | "sms" | "email" | "realtor" | "zillow" | "bdx_nhs" | "yelp" | "qr_code" | "stackadapt" | "newswire" | "propellant" | "mobile_app" | "gcflytour" | "referral";
162
- type UtmOption = {
163
- id: number;
164
- label: string;
165
- value: string;
166
- description: string | null;
167
- is_active: boolean;
168
- active_by_classification: Array<UtmClassificationKey>;
169
- active_by_source: Array<UtmSourceKey>;
170
- };
171
- type ComponentUtmOption = {
172
- __component: string;
173
- } & UtmOption;
174
-
175
- type TagDocument = {
176
- label: string;
177
- slug: string;
178
- } & BaseDocument;
179
-
180
- type ClientMediaPlatformContentTypeDocument = {
181
- is_active: boolean;
182
- is_organic_social: boolean;
183
- is_paid_media: boolean;
184
- client_media_platform?: ClientMediaPlatformDocument;
185
- media_content_type?: MediaContentTypeDocument;
186
- } & BaseDocument;
187
-
188
- type MediaPlatformDocument = {
189
- title: string;
190
- slug: string;
191
- utm_key: string | null;
192
- is_active: boolean;
193
- is_organic_social: boolean;
194
- is_paid_media: boolean;
195
- logos: BlockBrandLogos | null;
196
- description: string | null;
197
- information: RichTextBlock[] | null;
198
- clients?: ClientMediaPlatformDocument[];
199
- media_content_types?: MediaContentTypeDocument[];
200
- } & BaseDocument;
201
-
202
- type MediaContentTypeDocument = {
203
- title: string;
204
- slug: string;
205
- utm_key: string | null;
206
- is_active: boolean;
207
- is_organic_social: boolean;
208
- is_paid_media: boolean;
209
- description: string | null;
210
- information: RichTextBlock[] | null;
211
- media_platforms?: MediaPlatformDocument[];
212
- client_media_platform_content_types?: ClientMediaPlatformContentTypeDocument[];
213
- } & BaseDocument;
214
-
215
- type ClientMediaPlatformDocument = {
216
- is_active: boolean;
217
- client?: ClientDocument;
218
- media_platform?: MediaPlatformDocument;
219
- media_content_types?: MediaContentTypeDocument[];
220
- } & BaseDocument;
221
-
222
- type ClientProjectDocument = {
223
- clients?: ClientDocument[];
224
- title: string;
225
- slug: string;
226
- featured_image?: MediaUploadDocument | null;
227
- is_active: boolean;
228
- is_hidden: boolean;
229
- project_status: (typeof ClientProjectStatusOptions)[number][];
230
- project_phase: (typeof ClientProjectPhaseOptions)[number];
231
- project_url: string | null;
232
- project_type: string | null;
233
- project_pricing: string | null;
234
- project_address: string | null;
235
- phone_number: string | null;
236
- num_of_models: number | null;
237
- num_of_units_remain: number | null;
238
- buyer_profile: string | null;
239
- social_organic_start_date: string | null;
240
- paid_media_start_date: string | null;
241
- go_date: string | null;
242
- } & BaseDocument;
243
-
244
- type ClientReportDocument = {
245
- title: string;
246
- report_id: string;
247
- is_active: boolean;
248
- is_external: boolean;
249
- is_hidden: boolean;
250
- clients?: ClientDocument[];
251
- scopes: string[];
252
- } & BaseDocument;
253
-
254
- type ClientStyleguideDocument = {
255
- client?: ClientDocument;
256
- title: string;
257
- is_active: boolean;
258
- introduction: RichTextBlock[];
259
- voice: RichTextBlock[];
260
- communication: RichTextBlock[];
261
- brand_elements: RichTextBlock[];
262
- brand_intention: RichTextBlock[];
263
- mood?: MediaUploadDocument[];
264
- logos?: MediaUploadDocument[];
265
- brand_colors?: ComponentBrandStyleguideColor[];
266
- brand_fonts?: ComponentBrandStyleguideFont[];
267
- brand_application?: MediaUploadDocument[];
268
- } & BaseDocument;
269
-
270
- type PermissionDocument = {
271
- action: string;
272
- role?: RoleDocument;
273
- } & BaseDocument;
274
-
275
- type RoleType = "authenticated" | "public" | "employee" | "manager" | "client";
276
- type RoleDocument = {
277
- type: RoleType;
278
- name: string;
279
- description: string | null;
280
- permissions?: PermissionDocument[];
281
- users?: UserDocument[];
282
- } & BaseDocument;
283
-
284
- type UserAccountDocument = {
285
- user?: UserDocument;
286
- preferred_name: string | null;
287
- first_name: string;
288
- last_name: string;
289
- } & BaseDocument;
290
-
291
- type UtmTrackingLinkDocument = {
292
- creator?: UserDocument;
293
- client?: ClientDocument;
294
- url_destination: string;
295
- utm_medium: string;
296
- utm_source: string;
297
- utm_campaign: string;
298
- utm_content: string | null;
299
- utm_creative_format: string | null;
300
- utm_id: string | null;
301
- campaign_phase: string;
302
- campaign_product: string | null;
303
- campaign_targeting: string | null;
304
- campaign_key: string | null;
305
- creative_format: string | null;
306
- creative_format_variants: string | null;
307
- url: string;
308
- is_active: boolean;
309
- notes: string | null;
310
- } & BaseDocument;
311
-
312
- type UserDocument = {
313
- username: string;
314
- email: string;
315
- provider: string;
316
- confirmed: boolean;
317
- blocked: boolean;
318
- clerk_user_id: string | null;
319
- role?: RoleDocument;
320
- account?: UserAccountDocument;
321
- clients?: ClientUserDocument[];
322
- utm_tracking_links?: UtmTrackingLinkDocument[];
323
- } & BaseDocument;
324
- type AuthorizedUserDocument = Pick<UserDocument, "id" | "documentId" | "createdAt" | "updatedAt" | "publishedAt" | "username" | "email" | "provider" | "confirmed" | "blocked" | "clerk_user_id"> & {
325
- account: UserAccountDocument;
326
- role: RoleDocument;
327
- };
328
- type UserAuthorizationLoginResponse = {
329
- jwt: string;
330
- user: AuthorizedUserDocument;
331
- };
332
- type UserAuthorizationSuccessResponse = {
333
- jwt: string;
334
- user: Pick<UserDocument, "id" | "documentId" | "createdAt" | "updatedAt" | "publishedAt" | "username" | "email" | "provider" | "confirmed" | "blocked" | "clerk_user_id">;
335
- };
336
-
337
- type ClientUserDocument = {
338
- client: Partial<ClientDocument>;
339
- user: Partial<UserDocument>;
340
- scopes: ClientEntityScope[];
341
- } & BaseDocument;
342
- type ClientUserDocumentStatus = {
343
- verified: boolean;
344
- clientUser: ClientUserDocument | null;
345
- scopes: ClientEntityScope[];
346
- };
347
-
348
- type GCFlyTourSnapDocument = {
349
- title: string;
350
- slug: string;
351
- description: string | null;
352
- utm_key: string | null;
353
- is_active: boolean;
354
- is_hidden: boolean;
355
- gcflytour?: GCFlyTourDocument;
356
- } & BaseDocument;
357
-
358
- type GCFlyTourDocument = {
359
- title: string;
360
- slug: string;
361
- description: string | null;
362
- utm_key: string | null;
363
- is_active: boolean;
364
- is_hidden: boolean;
365
- clients?: ClientDocument[];
366
- gcflytour_snaps?: GCFlyTourSnapDocument[];
367
- } & BaseDocument;
368
-
369
- type MondayWorkspaceDocument = {
370
- clients?: ClientDocument[];
371
- title: string;
372
- workspace_id: string;
373
- } & BaseDocument;
374
-
375
- type ProductDocument = {
376
- seo?: SeoMeta;
377
- title: string;
378
- slug: string;
379
- introduction: string;
380
- flyer_link: string | null;
381
- featured_image: MediaUploadDocument;
382
- cta_text: string;
383
- cta_form_caption: string;
384
- order: number;
385
- } & BaseDocument;
386
-
387
- type ProductHighlightDocument = {
388
- title: string;
389
- title_line_1: string;
390
- title_line_2: string;
391
- introduction: string;
392
- highlight?: BlockFullscreenContent;
393
- products: ProductDocument[] | null;
394
- clients: ClientDocument[] | null;
395
- tags: TagDocument[] | null;
396
- featured_image: MediaUploadDocument;
397
- background_color: string;
398
- order: number;
399
- text_invert: boolean;
400
- } & BaseDocument;
401
-
402
- type ClientDocument = {
403
- title: string;
404
- is_featured: boolean;
405
- logos?: BlockBrandLogos | null;
406
- teamwork_id: string;
407
- teamwork_name: string;
408
- gainapp_id: string | null;
409
- utm_sheet_id: string;
410
- allow_create_utm_link: boolean;
411
- is_organic_social: boolean;
412
- is_paid_media: boolean;
413
- is_active: boolean;
414
- is_hidden: boolean;
415
- classification: UtmClassificationKey[];
416
- product_highlights?: ProductHighlightDocument[];
417
- client_projects?: ClientProjectDocument[];
418
- client_reports?: ClientReportDocument[];
419
- users?: ClientUserDocument[];
420
- monday_workspaces?: MondayWorkspaceDocument[];
421
- utm_tracking_links?: UtmTrackingLinkDocument[];
422
- styleguides?: ClientStyleguideDocument[];
423
- media_platforms?: ClientMediaPlatformDocument[];
424
- content_pillars?: ClientContentPillarDocument[];
425
- gcflytours?: GCFlyTourDocument[];
426
- } & BaseDocument;
427
-
428
- type ContentPillarDocument = {
429
- title: string;
430
- slug: string;
431
- description: string | null;
432
- information: RichTextBlock[] | null;
433
- clients?: ClientContentPillarDocument[] | null;
434
- } & BaseDocument;
435
-
436
- type ClientContentPillarDocument = {
437
- client?: ClientDocument;
438
- content_pillar?: ContentPillarDocument;
439
- is_active: boolean;
440
- } & BaseDocument;
441
-
442
- type CommentReportDocument = {
443
- content: string;
444
- reason: keyof typeof ReportCommentReason | null;
445
- related: CommentDocument[] | null;
446
- resolved?: boolean | null;
447
- } & BaseDocument;
448
- type CommentDocument = {
449
- id: string;
450
- documentId: string;
451
- createdAt: string;
452
- updatedAt: string;
453
- content: string;
454
- blocked: boolean | null;
455
- blockedThread: boolean | null;
456
- removed: boolean | null;
457
- approvalStatus: keyof typeof CommentApprovalStatus | null;
458
- author: {
459
- id: string;
460
- name: string;
461
- } | null;
462
- threadOf: {
463
- id: string;
464
- } | null;
465
- children: CommentDocument[] | null;
466
- };
467
-
468
- export type { UserAccountDocument as $, ClientProjectDocument as A, BlockBrandLogos as B, ComponentBlockBrandLogos as C, ClientReportDocument as D, ClientStyleguideDocument as E, ClientUserDocument as F, ClientUserDocumentStatus as G, ClientDocument as H, CommentReportDocument as I, CommentDocument as J, ContentPillarDocument as K, GCFlyTourSnapDocument as L, MetaSocialNetwork as M, GCFlyTourDocument as N, OpenGraph as O, MediaContentTypeDocument as P, MediaPlatformDocument as Q, RichTextBlockChildren as R, SharedRichTextBlock as S, MondayWorkspaceDocument as T, UtmClassificationKey as U, PermissionDocument as V, ProductHighlightDocument as W, ProductDocument as X, RoleType as Y, RoleDocument as Z, TagDocument as _, BlockFullscreenContentType as a, UserDocument as a0, AuthorizedUserDocument as a1, UserAuthorizationLoginResponse as a2, UserAuthorizationSuccessResponse as a3, UtmTrackingLinkDocument as a4, BlockFullscreenContent as b, ComponentBlockFullscreenContent as c, BlockVideoEmbed as d, ComponentBlockVideo as e, BrandStyleguideColor as f, ComponentBrandStyleguideColor as g, BrandStyleguideFont as h, ComponentBrandStyleguideFont as i, RichTextBlock as j, ComponentSharedRichTextBlock as k, ComponentOpenGraph as l, MetaSocial as m, ComponentMetaSocial as n, SeoMeta as o, ComponentSeoMeta as p, UtmSourceKey as q, UtmOption as r, ComponentUtmOption as s, BaseDocument as t, MediaFormat as u, MediaFormats as v, MediaUploadDocument as w, ClientContentPillarDocument as x, ClientMediaPlatformContentTypeDocument as y, ClientMediaPlatformDocument as z };