-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraphql-operations.ts
5083 lines (4379 loc) · 152 KB
/
graphql-operations.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string; }
String: { input: string; output: string; }
Boolean: { input: boolean; output: boolean; }
Int: { input: number; output: number; }
Float: { input: number; output: number; }
/** A date string with the format `YYYY-MM-DD`, e.g. `2011-05-23`. */
Date: { input: any; output: any; }
/**
* "A datetime string with the format YYYY-MM-DD\TH:i:s.uP,
* e.g. 2020-04-20T16:20:04+04:00, 2020-04-20T16:20:04Z."
*/
DateTime: { input: any; output: any; }
/** A RFC 5321 compliant email string. */
EmailString: { input: any; output: any; }
/** JavaScript Object Notation. */
JSON: { input: any; output: any; }
/**
* Loose type that allows any value. Be careful when passing in large `Int` or `Float` literals,
* as they may not be parsed correctly on the server side. Use `String` literals if you are
* dealing with really large numbers to be on the safe side.
*/
Mixed: { input: any; output: any; }
/** Can be used as an argument to upload files using https://github.com/jaydenseric/graphql-multipart-request-spec */
Upload: { input: any; output: any; }
};
/** add author to article form */
export type AddAuthorToArticleInput = {
/** article id */
id: Scalars['ID']['input'];
/** user id(author id) */
user_id: Scalars['ID']['input'];
};
export type AddSlackChannelsInput = {
/** notify channels */
channels: Array<Scalars['String']['input']>;
/** notify condition */
key: Scalars['ID']['input'];
};
/** add tag to article form */
export type AddTagToArticleInput = {
/** article id */
id: Scalars['ID']['input'];
/** tag id */
tag_id: Scalars['ID']['input'];
};
export type AppSubscriptionPlans = {
__typename?: 'AppSubscriptionPlans';
/** price currency */
currency: Scalars['String']['output'];
/**
* plan group,
* possible values: blogger, publisher
*/
group: Scalars['String']['output'];
/**
* price id, use in price_id field when calling
* createAppSubscription or updateAppSubscription
*/
id: Scalars['ID']['output'];
/**
* billing period type,
* possible values: month, year
*/
interval: Scalars['String']['output'];
/** billing period value */
interval_count: Scalars['Int']['output'];
/**
* price value, string type of integer with two decimal points,
* e.g. 1800 means $18.00
*/
price: Scalars['String']['output'];
/** possible values: licensed, metered */
usage_type: Scalars['String']['output'];
};
export type ApplyCouponCodeToAppSubscriptionInput = {
promotion_code: Scalars['String']['input'];
};
export type ApplyViededingueCodeInput = {
code: Scalars['String']['input'];
};
/** Publication Articles */
export type Article = {
__typename?: 'Article';
/** article's authors */
authors: Array<User>;
/** auto post data */
auto_posting?: Maybe<Scalars['JSON']['output']>;
/** article description */
blurb?: Maybe<Scalars['String']['output']>;
/** custom fields for content block */
content_blocks: Array<CustomField>;
/** cover image and its properties */
cover?: Maybe<Scalars['JSON']['output']>;
/** article created time */
created_at: Scalars['DateTime']['output'];
/** article desk */
desk: Desk;
/** article content, prosemirror format */
document?: Maybe<Scalars['JSON']['output']>;
/** determinate article is in draft stage or not */
draft: Scalars['Boolean']['output'];
/** article content encryption key */
encryption_key: Scalars['String']['output'];
/** determinate article is featured or not */
featured: Scalars['Boolean']['output'];
/** article content, html format */
html: Scalars['String']['output'];
/** article id */
id: Scalars['ID']['output'];
/** layout this article used */
layout?: Maybe<Layout>;
/** custom fields for metafield */
metafields: Array<CustomField>;
/** newsletter is on or not for this article */
newsletter: Scalars['Boolean']['output'];
/** when the newsletter is on, the time that the email has been sent */
newsletter_at?: Maybe<Scalars['DateTime']['output']>;
/** use for kanban sorting, group with desk_id field */
order: Scalars['Int']['output'];
/** article url pathname history */
pathnames?: Maybe<Scalars['JSON']['output']>;
/** article content, plaintext format */
plaintext: Scalars['String']['output'];
/** determinate article is free, member or subscriber */
plan: ArticlePlan;
/** determinate article publish type is right now, schedule or none */
publish_type: ArticlePublishType;
/** determinate article is in published stage or not */
published: Scalars['Boolean']['output'];
/** article published time */
published_at?: Maybe<Scalars['DateTime']['output']>;
/** related articles */
relevances: Array<Article>;
resolvedSEO: ResolvedSeo;
/** determinate article is in scheduled stage or not */
scheduled: Scalars['Boolean']['output'];
/** seo meta data */
seo?: Maybe<Scalars['JSON']['output']>;
/** article shadow authors(no real account authors) */
shadow_authors?: Maybe<Array<Scalars['String']['output']>>;
/** article string id */
sid: Scalars['ID']['output'];
/**
* use for article url,
* e.g. /posts/{slug}
*/
slug: Scalars['String']['output'];
/** current article stage */
stage: Stage;
/** article's tags */
tags: Array<Tag>;
/** editing note threads */
threads: Array<ArticleThread>;
/** article title */
title: Scalars['String']['output'];
/** article last updated time, all modified opteration will update this field */
updated_at: Scalars['DateTime']['output'];
/** article url */
url: Scalars['String']['output'];
};
/** A paginated list of Article edges. */
export type ArticleConnection = {
__typename?: 'ArticleConnection';
/** A list of Article edges. */
edges: Array<ArticleEdge>;
/** Pagination information about the list of edges. */
pageInfo: PageInfo;
};
/** An edge that contains a node of type Article and a cursor. */
export type ArticleEdge = {
__typename?: 'ArticleEdge';
/** A unique cursor that can be used for pagination. */
cursor: Scalars['String']['output'];
/** The Article node. */
node: Article;
};
/** A paginated list of Article items. */
export type ArticlePaginator = {
__typename?: 'ArticlePaginator';
/** A list of Article items. */
data: Array<Article>;
/** Pagination information about the list of items. */
paginatorInfo: PaginatorInfo;
};
/** Plan */
export enum ArticlePlan {
/** public accessible article */
Free = 'free',
/** login required article */
Member = 'member',
/** paid member only article */
Subscriber = 'subscriber'
}
/** Publish type */
export enum ArticlePublishType {
/** Immediate */
Immediate = 'immediate',
/** None */
None = 'none',
/** Schedule */
Schedule = 'schedule'
}
/** Sort by */
export enum ArticleSortBy {
/** Article name */
ArticleName = 'articleName',
/** Article name desc */
ArticleNameDesc = 'articleNameDesc',
/** Date created */
DateCreated = 'dateCreated',
/** Date created desc */
DateCreatedDesc = 'dateCreatedDesc',
/** Date updated */
DateUpdated = 'dateUpdated',
/** Date updated desc */
DateUpdatedDesc = 'dateUpdatedDesc'
}
export type ArticleThread = {
__typename?: 'ArticleThread';
/** article id */
article_id: Scalars['ID']['output'];
/** thread create time */
created_at: Scalars['DateTime']['output'];
/** thread id */
id: Scalars['ID']['output'];
/** notes owned by the article's thread */
notes: Array<ArticleThreadNote>;
/** thread position in document */
position: Scalars['JSON']['output'];
/** thread resolve(delete) time */
resolved_at?: Maybe<Scalars['DateTime']['output']>;
/** thread last update time */
updated_at: Scalars['DateTime']['output'];
};
export type ArticleThreadNotesArgs = {
hasThread?: InputMaybe<WhereConditions>;
};
/** article thread note */
export type ArticleThreadNote = {
__typename?: 'ArticleThreadNote';
/** article which owns this note */
article: Article;
/** note content */
content: Scalars['String']['output'];
/** note create time */
created_at: Scalars['DateTime']['output'];
/** note id */
id: Scalars['ID']['output'];
/** article thread which owns this note */
thread: ArticleThread;
/** note last update time */
updated_at: Scalars['DateTime']['output'];
/** user who owns this note */
user: User;
};
/** article thread note */
export type ArticleThreadNoteArticleArgs = {
trashed?: InputMaybe<Trashed>;
};
/** article thread note */
export type ArticleThreadNoteThreadArgs = {
trashed?: InputMaybe<Trashed>;
};
export type AssignUserToDeskInput = {
/** desk id */
desk_id: Scalars['ID']['input'];
/** user id */
user_id: Scalars['ID']['input'];
};
export type AuthToken = {
__typename?: 'AuthToken';
/** access token */
access_token: Scalars['String']['output'];
expires_in: Scalars['Int']['output'];
token_type: Scalars['String']['output'];
user_id: Scalars['ID']['output'];
};
/** State */
export enum AutoPostingState {
/** the auto posting was aborted */
Aborted = 'aborted',
/** the auto posting was cancelled */
Cancelled = 'cancelled',
/** the auto posting was initialized */
Initialized = 'initialized',
/** the auto posting was past */
None = 'none',
/** the auto posting was posted */
Posted = 'posted',
/** the auto posting was waiting for post */
Waiting = 'waiting'
}
export type Billing = {
__typename?: 'Billing';
/**
* user's stripe account balance
* @deprecated No longer supported
*/
account_balance: Scalars['String']['output'];
/** subscription is canceled or not */
canceled: Scalars['Boolean']['output'];
/** user's storipress credit balance */
credit_balance: Scalars['String']['output'];
/**
* discount(coupon) applies to current invoice
* @deprecated use next_pm_discounts
*/
discount: Scalars['String']['output'];
/** subscription ending time */
ends_at?: Maybe<Scalars['DateTime']['output']>;
has_historical_subscriptions: Scalars['Boolean']['output'];
/** user has a payment method or not */
has_pm: Scalars['Boolean']['output'];
/** user id */
id: Scalars['ID']['output'];
/**
* billing cycle,
* possible values: monthly(stripe), yearly(stripe), lifetime(appsumo)
*/
interval?: Maybe<Scalars['String']['output']>;
/** next upcoming invoice time */
next_pm_date?: Maybe<Scalars['DateTime']['output']>;
/** next upcoming invoice discounts */
next_pm_discounts: Array<BillingDiscount>;
/** next upcoming invoice total price(tax excluded) */
next_pm_subtotal?: Maybe<Scalars['String']['output']>;
/** next upcoming invoice tax price */
next_pm_tax?: Maybe<Scalars['String']['output']>;
/** next upcoming invoice taxes details */
next_pm_taxes: Array<BillingTax>;
/** next upcoming invoice total price(tax included) */
next_pm_total?: Maybe<Scalars['String']['output']>;
/** canceled subscription is still in grace period or not */
on_grace_period: Scalars['Boolean']['output'];
/** user is during the trial period or not */
on_trial: Scalars['Boolean']['output'];
/**
* subscription plan info:
* - blogger(stripe)
* - publisher(stripe)
* - storipress_tier1(appsumo)
* - storipress_tier2(appsumo)
* - storipress_tier3(appsumo)
* - storipress_bf_tier1(appsumo)
* - storipress_bf_tier2(appsumo)
* - storipress_bf_tier3(appsumo)
*/
plan?: Maybe<Scalars['String']['output']>;
/** subscription plan id */
plan_id?: Maybe<Scalars['String']['output']>;
/** card last 4 number */
pm_last_four?: Maybe<Scalars['String']['output']>;
/** card brand */
pm_type?: Maybe<Scalars['String']['output']>;
/** user's publications number */
publications_count: Scalars['Int']['output'];
/** user's publications quota */
publications_quota: Scalars['Int']['output'];
/** subscription editor seats */
quantity?: Maybe<Scalars['Int']['output']>;
/** possible values: viededingue, appsumo, stripe */
referer?: Maybe<Scalars['String']['output']>;
/** in used editors number */
seats_in_use: Scalars['Int']['output'];
/**
* subscription source,
* possible values: stripe, appsumo
*/
source?: Maybe<Scalars['String']['output']>;
/** user has active subscription or not */
subscribed: Scalars['Boolean']['output'];
/** free trail ending time */
trial_ends_at?: Maybe<Scalars['DateTime']['output']>;
};
export type BillingDiscount = {
__typename?: 'BillingDiscount';
/**
* discount amount,
* e.g. 500
*/
amount?: Maybe<Scalars['String']['output']>;
/**
* fixed type of discount value,
* e.g. 300 means $3.00
*/
amount_off?: Maybe<Scalars['String']['output']>;
/**
* discount name,
* e.g. 10% off for 3 months
*/
name: Scalars['String']['output'];
/**
* percentage type of discount value,
* e.g. 10.0 means 10%
*/
percent_off?: Maybe<Scalars['Float']['output']>;
};
export type BillingTax = {
__typename?: 'BillingTax';
/**
* the total tax that will be paid,
* e.g. 1650
*/
amount: Scalars['String']['output'];
/**
* the jurisdiction for the tax rate,
* e.g. Australia
*/
jurisdiction?: Maybe<Scalars['String']['output']>;
/**
* tax name,
* e.g. GST
*/
name: Scalars['String']['output'];
/**
* the tax rate percent out of 100,
* e.g. 10.0
*/
percentage?: Maybe<Scalars['Float']['output']>;
};
export type Block = {
__typename?: 'Block';
/** block create time */
created_at: Scalars['DateTime']['output'];
/** block id */
id: Scalars['ID']['output'];
/** block last update time */
updated_at: Scalars['DateTime']['output'];
/** block uuid */
uuid: Scalars['String']['output'];
};
/** A paginated list of Block items. */
export type BlockPaginator = {
__typename?: 'BlockPaginator';
/** A list of Block items. */
data: Array<Block>;
/** Pagination information about the list of items. */
paginatorInfo: PaginatorInfo;
};
/** email update form */
export type ChangeAccountEmailInput = {
/** new account email field */
email: Scalars['EmailString']['input'];
/** current password field */
password: Scalars['String']['input'];
};
export type ChangeArticleStageInput = {
/** article id */
id: Scalars['ID']['input'];
/** stage id */
stage_id: Scalars['ID']['input'];
};
export type ChangeRoleInput = {
/** user id */
id: Scalars['ID']['input'];
/** role id */
role_id: Scalars['ID']['input'];
};
export type CheckCustomDomainAvailabilityInput = {
/** domain name */
value: Scalars['String']['input'];
};
export type CheckCustomDomainAvailabilityResponse = {
__typename?: 'CheckCustomDomainAvailabilityResponse';
/** whether this domain is available or not */
available: Scalars['Boolean']['output'];
/** whether this domain is available for mailing or not */
mail: Scalars['Boolean']['output'];
/** whether this domain is available for redirect or not */
redirect: Scalars['Boolean']['output'];
/** whether this domain is available for static site or not */
site: Scalars['Boolean']['output'];
};
/** email confirm form */
export type ConfirmEmailInput = {
/** email field */
email: Scalars['EmailString']['input'];
/** link expired time field */
expire_on: Scalars['Int']['input'];
/** hmac for inputs */
signature: Scalars['String']['input'];
};
export type CreateAppSubscriptionInput = {
price_id: Scalars['String']['input'];
promotion_code?: InputMaybe<Scalars['String']['input']>;
quantity?: InputMaybe<Scalars['Int']['input']>;
};
export type CreateArticleInput = {
/** author ids(user id) */
author_ids?: InputMaybe<Array<Scalars['ID']['input']>>;
/** article description */
blurb?: InputMaybe<Scalars['String']['input']>;
/** desk id */
desk_id: Scalars['ID']['input'];
/** article published_at */
published_at?: InputMaybe<Scalars['DateTime']['input']>;
/** article title */
title?: InputMaybe<Scalars['String']['input']>;
};
export type CreateArticleThreadInput = {
/** article id */
article_id: Scalars['ID']['input'];
/** position in article document */
position: Scalars['JSON']['input'];
};
export type CreateBlockInput = {
/** block archive file */
file?: InputMaybe<Scalars['Upload']['input']>;
/** presigned upload url key */
key?: InputMaybe<Scalars['ID']['input']>;
/** signature of the request */
signature?: InputMaybe<Scalars['String']['input']>;
};
export type CreateCustomFieldGroupInput = {
description?: InputMaybe<Scalars['String']['input']>;
/** custom field group key */
key: Scalars['String']['input'];
/** custom field group name */
name: Scalars['String']['input'];
/** custom field group type */
type: CustomFieldGroupType;
};
export type CreateCustomFieldInput = {
/** custom field group id */
custom_field_group_id: Scalars['ID']['input'];
description?: InputMaybe<Scalars['String']['input']>;
/** custom field key */
key: Scalars['String']['input'];
/** custom field name */
name: Scalars['String']['input'];
/** custom field options */
options?: InputMaybe<Scalars['JSON']['input']>;
/** custom field type */
type: CustomFieldType;
};
export type CreateCustomFieldValueInput = {
/** custom field id */
id: Scalars['ID']['input'];
/** target id */
target_id: Scalars['ID']['input'];
/** custom field value */
value?: InputMaybe<Scalars['Mixed']['input']>;
};
export type CreateDeskInput = {
/** desk description */
description?: InputMaybe<Scalars['String']['input']>;
/** parent desk id */
desk_id?: InputMaybe<Scalars['ID']['input']>;
/** layout id */
layout_id?: InputMaybe<Scalars['ID']['input']>;
/** desk name */
name: Scalars['String']['input'];
/** determinate desk is open_access or not */
open_access?: InputMaybe<Scalars['Boolean']['input']>;
/** seo meta data */
seo?: InputMaybe<Scalars['JSON']['input']>;
};
export type CreateInvitationInput = {
/** desk id */
desk_id: Array<Scalars['ID']['input']>;
/** email */
email: Scalars['EmailString']['input'];
/** role id */
role_id: Scalars['ID']['input'];
};
export type CreateLayoutInput = {
/** layout data */
data?: InputMaybe<Scalars['JSON']['input']>;
/** layout name */
name: Scalars['String']['input'];
/** template id */
template: Scalars['String']['input'];
};
export type CreateLinkInput = {
source: LinkSource;
target_id?: InputMaybe<Scalars['ID']['input']>;
target_type?: InputMaybe<LinkTarget>;
value?: InputMaybe<Scalars['String']['input']>;
};
export type CreateNoteInput = {
/** note content */
content: Scalars['String']['input'];
/** thread id */
thread_id: Scalars['ID']['input'];
};
export type CreatePageInput = {
/** live content */
current?: InputMaybe<Scalars['JSON']['input']>;
/** draft content */
draft?: InputMaybe<Scalars['JSON']['input']>;
/** layout id */
layout_id?: InputMaybe<Scalars['ID']['input']>;
/** seo meta data */
seo?: InputMaybe<Scalars['JSON']['input']>;
/**
* page title,
* e.g. About Us
*/
title: Scalars['String']['input'];
};
export type CreateRedirectionInput = {
/** path */
path: Scalars['String']['input'];
/** target */
target: Scalars['String']['input'];
};
export type CreateScraperArticleInput = {
/** articles' path */
path: Array<Scalars['String']['input']>;
/** scraper token */
token: Scalars['String']['input'];
};
export type CreateScraperSelectorInput = {
/** arbitrary data */
data?: InputMaybe<Scalars['JSON']['input']>;
/** scraper token */
token: Scalars['String']['input'];
/** selector type */
type: Scalars['String']['input'];
/** selector value */
value?: InputMaybe<Scalars['String']['input']>;
};
export type CreateSiteInput = {
/** emails which will be invited to current publication */
invites: Array<Scalars['EmailString']['input']>;
/** publication name */
name: Scalars['String']['input'];
/** publication timezone */
timezone?: InputMaybe<Scalars['String']['input']>;
};
export type CreateStageInput = {
/** target stage id, place new stage after target stage id */
after: Scalars['ID']['input'];
/** stage color */
color: Scalars['String']['input'];
/** stage icon */
icon: Scalars['String']['input'];
/** stage name */
name: Scalars['String']['input'];
};
export type CreateTagInput = {
/** tag description */
description?: InputMaybe<Scalars['String']['input']>;
/** tag name */
name: Scalars['String']['input'];
};
export type CreateWebflowCollectionInput = {
/** collection Type */
type: WebflowCollectionType;
};
export type Credit = {
__typename?: 'Credit';
/** credit amount */
amount: Scalars['String']['output'];
/** credit remark */
data?: Maybe<Scalars['JSON']['output']>;
/**
* credit earned at
* (the time that state was from draft to available)
*/
earned_at?: Maybe<Scalars['DateTime']['output']>;
/**
* credit earned source,
* e.g. invitation
*/
earned_from: Scalars['String']['output'];
/** credit id */
id: Scalars['ID']['output'];
/** credit initialized at */
initialized_at: Scalars['DateTime']['output'];
/** credit state */
state: CreditState;
/** credit used or not */
used: Scalars['Boolean']['output'];
/** credit used at */
used_at?: Maybe<Scalars['DateTime']['output']>;
};
/** A paginated list of Credit items. */
export type CreditPaginator = {
__typename?: 'CreditPaginator';
/** A list of Credit items. */
data: Array<Credit>;
/** Pagination information about the list of items. */
paginatorInfo: PaginatorInfo;
};
/** State */
export enum CreditState {
/** Available */
Available = 'available',
/** Draft */
Draft = 'draft',
/** Used */
Used = 'used',
/** Void */
Void = 'void'
}
export type CreditsOverview = {
__typename?: 'CreditsOverview';
/** default credit amount of current type */
amount: Scalars['String']['output'];
/** available credit number */
count: Scalars['Int']['output'];
/** total amount */
total: Scalars['String']['output'];
/**
* type of credit,
* e.g. invitation
*/
type: Scalars['String']['output'];
};
export type CustomDomain = {
__typename?: 'CustomDomain';
domain: Scalars['String']['output'];
error?: Maybe<Scalars['String']['output']>;
group: CustomDomainGroup;
hostname: Scalars['String']['output'];
ok: Scalars['Boolean']['output'];
type: Scalars['String']['output'];
value: Scalars['String']['output'];
};
export type CustomDomainDnsStatus = {
__typename?: 'CustomDomainDnsStatus';
mail: Array<CustomDomain>;
redirect: Array<CustomDomain>;
site: Array<CustomDomain>;
};
/** Group */
export enum CustomDomainGroup {
/** Mail */
Mail = 'mail',
/** Redirect */
Redirect = 'redirect',
/** Site */
Site = 'site'
}
export type CustomField = {
__typename?: 'CustomField';
description?: Maybe<Scalars['String']['output']>;
group: CustomFieldGroup;
id: Scalars['ID']['output'];
key: Scalars['ID']['output'];
name: Scalars['String']['output'];
options?: Maybe<CustomFieldOptions>;
type: CustomFieldType;
values: Array<CustomFieldValue>;
};
export type CustomFieldBooleanOptions = {
__typename?: 'CustomFieldBooleanOptions';
placeholder?: Maybe<Scalars['String']['output']>;
repeat?: Maybe<Scalars['Boolean']['output']>;
required?: Maybe<Scalars['Boolean']['output']>;
type: CustomFieldType;
};
export type CustomFieldBooleanValue = {
__typename?: 'CustomFieldBooleanValue';
id: Scalars['ID']['output'];
value?: Maybe<Scalars['Boolean']['output']>;
};
export type CustomFieldColorOptions = {
__typename?: 'CustomFieldColorOptions';
placeholder?: Maybe<Scalars['String']['output']>;
repeat?: Maybe<Scalars['Boolean']['output']>;
required?: Maybe<Scalars['Boolean']['output']>;
type: CustomFieldType;
};
export type CustomFieldColorValue = {
__typename?: 'CustomFieldColorValue';
id: Scalars['ID']['output'];
value?: Maybe<Scalars['String']['output']>;
};
export type CustomFieldDateOptions = {
__typename?: 'CustomFieldDateOptions';
placeholder?: Maybe<Scalars['String']['output']>;
repeat?: Maybe<Scalars['Boolean']['output']>;
required?: Maybe<Scalars['Boolean']['output']>;
time?: Maybe<Scalars['Boolean']['output']>;
type: CustomFieldType;
};
export type CustomFieldDateValue = {
__typename?: 'CustomFieldDateValue';
id: Scalars['ID']['output'];
value?: Maybe<Scalars['DateTime']['output']>;
};
export type CustomFieldFileOptions = {
__typename?: 'CustomFieldFileOptions';
placeholder?: Maybe<Scalars['String']['output']>;
repeat?: Maybe<Scalars['Boolean']['output']>;
required?: Maybe<Scalars['Boolean']['output']>;
type: CustomFieldType;
};
export type CustomFieldFileValue = {
__typename?: 'CustomFieldFileValue';
id: Scalars['ID']['output'];
value?: Maybe<CustomFieldFileValueAttributes>;
};
export type CustomFieldFileValueAttributes = {
__typename?: 'CustomFieldFileValueAttributes';
key: Scalars['ID']['output'];
mime_type: Scalars['String']['output'];
size: Scalars['Int']['output'];
url: Scalars['String']['output'];
};
export type CustomFieldGroup = {
__typename?: 'CustomFieldGroup';
description?: Maybe<Scalars['String']['output']>;
/** @deprecated https://github.com/nuwave/lighthouse/issues/332 */
desks: Array<Desk>;
fields: Array<CustomField>;
id: Scalars['ID']['output'];
key: Scalars['ID']['output'];
name: Scalars['String']['output'];
/** @deprecated https://github.com/nuwave/lighthouse/issues/332 */
tags: Array<Tag>;
type: CustomFieldGroupType;
};
/** A paginated list of CustomFieldGroup items. */
export type CustomFieldGroupPaginator = {
__typename?: 'CustomFieldGroupPaginator';
/** A list of CustomFieldGroup items. */
data: Array<CustomFieldGroup>;
/** Pagination information about the list of items. */
paginatorInfo: PaginatorInfo;
};
/** Group type */
export enum CustomFieldGroupType {
/** Article content block */
ArticleContentBlock = 'articleContentBlock',
/** Article metafield */
ArticleMetafield = 'articleMetafield',
/** Desk metafield */
DeskMetafield = 'deskMetafield',
/** Publication metafield */
PublicationMetafield = 'publicationMetafield',
/** Tag metafield */
TagMetafield = 'tagMetafield'
}
export type CustomFieldIgnoreOptions = {
__typename?: 'CustomFieldIgnoreOptions';
placeholder?: Maybe<Scalars['String']['output']>;
repeat?: Maybe<Scalars['Boolean']['output']>;
required?: Maybe<Scalars['Boolean']['output']>;
type: CustomFieldType;
};
export type CustomFieldJsonOptions = {
__typename?: 'CustomFieldJsonOptions';
placeholder?: Maybe<Scalars['String']['output']>;
repeat?: Maybe<Scalars['Boolean']['output']>;
required?: Maybe<Scalars['Boolean']['output']>;
type: CustomFieldType;
};
export type CustomFieldJsonValue = {
__typename?: 'CustomFieldJsonValue';
id: Scalars['ID']['output'];
value?: Maybe<Scalars['String']['output']>;
};
export type CustomFieldNumberOptions = {
__typename?: 'CustomFieldNumberOptions';
float?: Maybe<Scalars['Boolean']['output']>;
max?: Maybe<Scalars['Float']['output']>;
min?: Maybe<Scalars['Float']['output']>;
placeholder?: Maybe<Scalars['String']['output']>;
repeat?: Maybe<Scalars['Boolean']['output']>;
required?: Maybe<Scalars['Boolean']['output']>;
type: CustomFieldType;
};
export type CustomFieldNumberValue = {
__typename?: 'CustomFieldNumberValue';
id: Scalars['ID']['output'];
value?: Maybe<Scalars['Float']['output']>;
};
export type CustomFieldOptions = CustomFieldBooleanOptions | CustomFieldColorOptions | CustomFieldDateOptions | CustomFieldFileOptions | CustomFieldIgnoreOptions | CustomFieldJsonOptions | CustomFieldNumberOptions | CustomFieldReferenceOptions | CustomFieldRichTextOptions | CustomFieldSelectOptions | CustomFieldTextOptions | CustomFieldUrlOptions;
export type CustomFieldReferenceOptions = {
__typename?: 'CustomFieldReferenceOptions';
multiple?: Maybe<Scalars['Boolean']['output']>;
placeholder?: Maybe<Scalars['String']['output']>;
repeat?: Maybe<Scalars['Boolean']['output']>;
required?: Maybe<Scalars['Boolean']['output']>;
target: CustomFieldReferenceTarget;
type: CustomFieldType;
};
/** Reference target */
export enum CustomFieldReferenceTarget {
/** Article */
Article = 'article',
/** Desk */
Desk = 'desk',
/** Tag */
Tag = 'tag',
/** User */
User = 'user'
}
export type CustomFieldReferenceTargetValue = Article | Desk | Tag | User;
export type CustomFieldReferenceValue = {
__typename?: 'CustomFieldReferenceValue';
id: Scalars['ID']['output'];
value?: Maybe<Array<CustomFieldReferenceTargetValue>>;
};
export type CustomFieldRichTextOptions = {
__typename?: 'CustomFieldRichTextOptions';
placeholder?: Maybe<Scalars['String']['output']>;
repeat?: Maybe<Scalars['Boolean']['output']>;
required?: Maybe<Scalars['Boolean']['output']>;
type: CustomFieldType;
};