@laioutr/app-hygraph 1.4.0 → 1.5.0
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/README.md +10 -9
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/server/generated/graphql.d.ts +136 -56
- package/dist/runtime/server/generated/graphql.js +6 -4
- package/dist/runtime/server/orchestr/blog/blogCollectionPosts.link.js +8 -4
- package/dist/runtime/server/queries/blog.d.ts +1 -1
- package/dist/runtime/server/queries/blog.js +5 -0
- package/package.json +14 -15
package/README.md
CHANGED
|
@@ -39,11 +39,11 @@ export default defineNuxtConfig({
|
|
|
39
39
|
});
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
| Option | Description
|
|
43
|
-
| --------------- |
|
|
44
|
-
| `contentApiUrl` | Hygraph Content API endpoint
|
|
45
|
-
| `imageBaseUrl` | Hygraph image CDN base URL (used by `@nuxt/image`). Region-specific; find yours by querying `{ assets(first: 1) { url } }` against your Content API and taking the domain. |
|
|
46
|
-
| `token` | Permanent auth token for the Content API
|
|
42
|
+
| Option | Description |
|
|
43
|
+
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
44
|
+
| `contentApiUrl` | Hygraph Content API endpoint |
|
|
45
|
+
| `imageBaseUrl` | Hygraph image CDN base URL (used by [`@nuxt/image`](https://image.nuxt.com/providers/hygraph)). Region-specific; find yours by querying `{ assets(first: 1) { url } }` against your Content API and taking the domain + first path-segment, e.g. `https://eu-west-2.graphassets.com/cmh4jxx7w1fce07l80dils2d1` |
|
|
46
|
+
| `token` | Permanent auth token for the Content API |
|
|
47
47
|
|
|
48
48
|
## Exports
|
|
49
49
|
|
|
@@ -123,15 +123,16 @@ const MY_QUERY = /* GraphQL */ `
|
|
|
123
123
|
```bash
|
|
124
124
|
# 1. Copy .npmrc.config to .npmrc and fill in NPM_LAIOUTR_TOKEN
|
|
125
125
|
# 2. Install dependencies
|
|
126
|
-
pnpm
|
|
126
|
+
pnpm install
|
|
127
127
|
|
|
128
128
|
# 3. Fetch remote project config
|
|
129
129
|
npx @laioutr/cli rc fetch -p <org-slug>/<project-slug> -s <secret-key>
|
|
130
130
|
|
|
131
131
|
# 4. Prepare and start
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
132
|
+
export HYGRAPH_CONTENT_API_URL=<your-content-api-url>
|
|
133
|
+
export HYGRAPH_TOKEN=<your-token>
|
|
134
|
+
export HYGRAPH_IMAGE_BASE_URL=<your-image-base-url>
|
|
135
|
+
pnpm dev
|
|
135
136
|
```
|
|
136
137
|
|
|
137
138
|
## Publishing
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -2002,13 +2002,14 @@ export type EntityWhereInput = {
|
|
|
2002
2002
|
typename: EntityTypeName;
|
|
2003
2003
|
};
|
|
2004
2004
|
export type Event = Entity & Node & {
|
|
2005
|
-
content?: Maybe<
|
|
2005
|
+
content?: Maybe<RichText>;
|
|
2006
2006
|
/** The time the document was created */
|
|
2007
2007
|
createdAt: Scalars['DateTime']['output'];
|
|
2008
2008
|
/** User that created this document */
|
|
2009
2009
|
createdBy?: Maybe<User>;
|
|
2010
2010
|
/** Get the document in other stages */
|
|
2011
2011
|
documentInStages: Array<Event>;
|
|
2012
|
+
endDate?: Maybe<Scalars['Date']['output']>;
|
|
2012
2013
|
eventCollection?: Maybe<EventCollection>;
|
|
2013
2014
|
/** List of Event versions */
|
|
2014
2015
|
history: Array<Version>;
|
|
@@ -2027,6 +2028,8 @@ export type Event = Entity & Node & {
|
|
|
2027
2028
|
slug?: Maybe<Scalars['String']['output']>;
|
|
2028
2029
|
/** System stage field */
|
|
2029
2030
|
stage: Stage;
|
|
2031
|
+
/** If no end date is provided, whole day is used */
|
|
2032
|
+
startDate?: Maybe<Scalars['Date']['output']>;
|
|
2030
2033
|
title: Scalars['String']['output'];
|
|
2031
2034
|
topics: Array<Topic>;
|
|
2032
2035
|
/** The time the document was updated */
|
|
@@ -2625,20 +2628,22 @@ export type EventConnection = {
|
|
|
2625
2628
|
};
|
|
2626
2629
|
export type EventCreateInput = {
|
|
2627
2630
|
/** content input for default locale (en) */
|
|
2628
|
-
content?: InputMaybe<Scalars['
|
|
2631
|
+
content?: InputMaybe<Scalars['RichTextAST']['input']>;
|
|
2629
2632
|
createdAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
2633
|
+
endDate?: InputMaybe<Scalars['Date']['input']>;
|
|
2630
2634
|
eventCollection?: InputMaybe<EventCollectionCreateOneInlineInput>;
|
|
2631
2635
|
image?: InputMaybe<AssetCreateOneInlineInput>;
|
|
2632
2636
|
/** Inline mutations for managing document localizations excluding the default locale */
|
|
2633
2637
|
localizations?: InputMaybe<EventCreateLocalizationsInput>;
|
|
2634
2638
|
slug?: InputMaybe<Scalars['String']['input']>;
|
|
2639
|
+
startDate?: InputMaybe<Scalars['Date']['input']>;
|
|
2635
2640
|
/** title input for default locale (en) */
|
|
2636
2641
|
title: Scalars['String']['input'];
|
|
2637
2642
|
topics?: InputMaybe<TopicCreateManyInlineInput>;
|
|
2638
2643
|
updatedAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
2639
2644
|
};
|
|
2640
2645
|
export type EventCreateLocalizationDataInput = {
|
|
2641
|
-
content?: InputMaybe<Scalars['
|
|
2646
|
+
content?: InputMaybe<Scalars['RichTextAST']['input']>;
|
|
2642
2647
|
createdAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
2643
2648
|
title: Scalars['String']['input'];
|
|
2644
2649
|
updatedAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
@@ -2700,6 +2705,21 @@ export type EventManyWhereInput = {
|
|
|
2700
2705
|
documentInStages_every?: InputMaybe<EventWhereStageInput>;
|
|
2701
2706
|
documentInStages_none?: InputMaybe<EventWhereStageInput>;
|
|
2702
2707
|
documentInStages_some?: InputMaybe<EventWhereStageInput>;
|
|
2708
|
+
endDate?: InputMaybe<Scalars['Date']['input']>;
|
|
2709
|
+
/** All values greater than the given value. */
|
|
2710
|
+
endDate_gt?: InputMaybe<Scalars['Date']['input']>;
|
|
2711
|
+
/** All values greater than or equal the given value. */
|
|
2712
|
+
endDate_gte?: InputMaybe<Scalars['Date']['input']>;
|
|
2713
|
+
/** All values that are contained in given list. */
|
|
2714
|
+
endDate_in?: InputMaybe<Array<InputMaybe<Scalars['Date']['input']>>>;
|
|
2715
|
+
/** All values less than the given value. */
|
|
2716
|
+
endDate_lt?: InputMaybe<Scalars['Date']['input']>;
|
|
2717
|
+
/** All values less than or equal the given value. */
|
|
2718
|
+
endDate_lte?: InputMaybe<Scalars['Date']['input']>;
|
|
2719
|
+
/** Any other value that exists and is not equal to the given value. */
|
|
2720
|
+
endDate_not?: InputMaybe<Scalars['Date']['input']>;
|
|
2721
|
+
/** All values that are not contained in given list. */
|
|
2722
|
+
endDate_not_in?: InputMaybe<Array<InputMaybe<Scalars['Date']['input']>>>;
|
|
2703
2723
|
eventCollection?: InputMaybe<EventCollectionWhereInput>;
|
|
2704
2724
|
id?: InputMaybe<Scalars['ID']['input']>;
|
|
2705
2725
|
/** All values containing the given string. */
|
|
@@ -2759,6 +2779,21 @@ export type EventManyWhereInput = {
|
|
|
2759
2779
|
slug_not_starts_with?: InputMaybe<Scalars['String']['input']>;
|
|
2760
2780
|
/** All values starting with the given string. */
|
|
2761
2781
|
slug_starts_with?: InputMaybe<Scalars['String']['input']>;
|
|
2782
|
+
startDate?: InputMaybe<Scalars['Date']['input']>;
|
|
2783
|
+
/** All values greater than the given value. */
|
|
2784
|
+
startDate_gt?: InputMaybe<Scalars['Date']['input']>;
|
|
2785
|
+
/** All values greater than or equal the given value. */
|
|
2786
|
+
startDate_gte?: InputMaybe<Scalars['Date']['input']>;
|
|
2787
|
+
/** All values that are contained in given list. */
|
|
2788
|
+
startDate_in?: InputMaybe<Array<InputMaybe<Scalars['Date']['input']>>>;
|
|
2789
|
+
/** All values less than the given value. */
|
|
2790
|
+
startDate_lt?: InputMaybe<Scalars['Date']['input']>;
|
|
2791
|
+
/** All values less than or equal the given value. */
|
|
2792
|
+
startDate_lte?: InputMaybe<Scalars['Date']['input']>;
|
|
2793
|
+
/** Any other value that exists and is not equal to the given value. */
|
|
2794
|
+
startDate_not?: InputMaybe<Scalars['Date']['input']>;
|
|
2795
|
+
/** All values that are not contained in given list. */
|
|
2796
|
+
startDate_not_in?: InputMaybe<Array<InputMaybe<Scalars['Date']['input']>>>;
|
|
2762
2797
|
topics_every?: InputMaybe<TopicWhereInput>;
|
|
2763
2798
|
topics_none?: InputMaybe<TopicWhereInput>;
|
|
2764
2799
|
topics_some?: InputMaybe<TopicWhereInput>;
|
|
@@ -2780,16 +2815,18 @@ export type EventManyWhereInput = {
|
|
|
2780
2815
|
updatedBy?: InputMaybe<UserWhereInput>;
|
|
2781
2816
|
};
|
|
2782
2817
|
export declare enum EventOrderByInput {
|
|
2783
|
-
ContentAsc = "content_ASC",
|
|
2784
|
-
ContentDesc = "content_DESC",
|
|
2785
2818
|
CreatedAtAsc = "createdAt_ASC",
|
|
2786
2819
|
CreatedAtDesc = "createdAt_DESC",
|
|
2820
|
+
EndDateAsc = "endDate_ASC",
|
|
2821
|
+
EndDateDesc = "endDate_DESC",
|
|
2787
2822
|
IdAsc = "id_ASC",
|
|
2788
2823
|
IdDesc = "id_DESC",
|
|
2789
2824
|
PublishedAtAsc = "publishedAt_ASC",
|
|
2790
2825
|
PublishedAtDesc = "publishedAt_DESC",
|
|
2791
2826
|
SlugAsc = "slug_ASC",
|
|
2792
2827
|
SlugDesc = "slug_DESC",
|
|
2828
|
+
StartDateAsc = "startDate_ASC",
|
|
2829
|
+
StartDateDesc = "startDate_DESC",
|
|
2793
2830
|
TitleAsc = "title_ASC",
|
|
2794
2831
|
TitleDesc = "title_DESC",
|
|
2795
2832
|
UpdatedAtAsc = "updatedAt_ASC",
|
|
@@ -2797,18 +2834,20 @@ export declare enum EventOrderByInput {
|
|
|
2797
2834
|
}
|
|
2798
2835
|
export type EventUpdateInput = {
|
|
2799
2836
|
/** content input for default locale (en) */
|
|
2800
|
-
content?: InputMaybe<Scalars['
|
|
2837
|
+
content?: InputMaybe<Scalars['RichTextAST']['input']>;
|
|
2838
|
+
endDate?: InputMaybe<Scalars['Date']['input']>;
|
|
2801
2839
|
eventCollection?: InputMaybe<EventCollectionUpdateOneInlineInput>;
|
|
2802
2840
|
image?: InputMaybe<AssetUpdateOneInlineInput>;
|
|
2803
2841
|
/** Manage document localizations */
|
|
2804
2842
|
localizations?: InputMaybe<EventUpdateLocalizationsInput>;
|
|
2805
2843
|
slug?: InputMaybe<Scalars['String']['input']>;
|
|
2844
|
+
startDate?: InputMaybe<Scalars['Date']['input']>;
|
|
2806
2845
|
/** title input for default locale (en) */
|
|
2807
2846
|
title?: InputMaybe<Scalars['String']['input']>;
|
|
2808
2847
|
topics?: InputMaybe<TopicUpdateManyInlineInput>;
|
|
2809
2848
|
};
|
|
2810
2849
|
export type EventUpdateLocalizationDataInput = {
|
|
2811
|
-
content?: InputMaybe<Scalars['
|
|
2850
|
+
content?: InputMaybe<Scalars['RichTextAST']['input']>;
|
|
2812
2851
|
title?: InputMaybe<Scalars['String']['input']>;
|
|
2813
2852
|
};
|
|
2814
2853
|
export type EventUpdateLocalizationInput = {
|
|
@@ -2842,14 +2881,16 @@ export type EventUpdateManyInlineInput = {
|
|
|
2842
2881
|
};
|
|
2843
2882
|
export type EventUpdateManyInput = {
|
|
2844
2883
|
/** content input for default locale (en) */
|
|
2845
|
-
content?: InputMaybe<Scalars['
|
|
2884
|
+
content?: InputMaybe<Scalars['RichTextAST']['input']>;
|
|
2885
|
+
endDate?: InputMaybe<Scalars['Date']['input']>;
|
|
2846
2886
|
/** Optional updates to localizations */
|
|
2847
2887
|
localizations?: InputMaybe<EventUpdateManyLocalizationsInput>;
|
|
2888
|
+
startDate?: InputMaybe<Scalars['Date']['input']>;
|
|
2848
2889
|
/** title input for default locale (en) */
|
|
2849
2890
|
title?: InputMaybe<Scalars['String']['input']>;
|
|
2850
2891
|
};
|
|
2851
2892
|
export type EventUpdateManyLocalizationDataInput = {
|
|
2852
|
-
content?: InputMaybe<Scalars['
|
|
2893
|
+
content?: InputMaybe<Scalars['RichTextAST']['input']>;
|
|
2853
2894
|
title?: InputMaybe<Scalars['String']['input']>;
|
|
2854
2895
|
};
|
|
2855
2896
|
export type EventUpdateManyLocalizationInput = {
|
|
@@ -2918,25 +2959,6 @@ export type EventWhereInput = {
|
|
|
2918
2959
|
OR?: InputMaybe<Array<EventWhereInput>>;
|
|
2919
2960
|
/** Contains search across all appropriate fields. */
|
|
2920
2961
|
_search?: InputMaybe<Scalars['String']['input']>;
|
|
2921
|
-
content?: InputMaybe<Scalars['String']['input']>;
|
|
2922
|
-
/** All values containing the given string. */
|
|
2923
|
-
content_contains?: InputMaybe<Scalars['String']['input']>;
|
|
2924
|
-
/** All values ending with the given string. */
|
|
2925
|
-
content_ends_with?: InputMaybe<Scalars['String']['input']>;
|
|
2926
|
-
/** All values that are contained in given list. */
|
|
2927
|
-
content_in?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
2928
|
-
/** Any other value that exists and is not equal to the given value. */
|
|
2929
|
-
content_not?: InputMaybe<Scalars['String']['input']>;
|
|
2930
|
-
/** All values not containing the given string. */
|
|
2931
|
-
content_not_contains?: InputMaybe<Scalars['String']['input']>;
|
|
2932
|
-
/** All values not ending with the given string */
|
|
2933
|
-
content_not_ends_with?: InputMaybe<Scalars['String']['input']>;
|
|
2934
|
-
/** All values that are not contained in given list. */
|
|
2935
|
-
content_not_in?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
2936
|
-
/** All values not starting with the given string. */
|
|
2937
|
-
content_not_starts_with?: InputMaybe<Scalars['String']['input']>;
|
|
2938
|
-
/** All values starting with the given string. */
|
|
2939
|
-
content_starts_with?: InputMaybe<Scalars['String']['input']>;
|
|
2940
2962
|
createdAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
2941
2963
|
/** All values greater than the given value. */
|
|
2942
2964
|
createdAt_gt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
@@ -2956,6 +2978,21 @@ export type EventWhereInput = {
|
|
|
2956
2978
|
documentInStages_every?: InputMaybe<EventWhereStageInput>;
|
|
2957
2979
|
documentInStages_none?: InputMaybe<EventWhereStageInput>;
|
|
2958
2980
|
documentInStages_some?: InputMaybe<EventWhereStageInput>;
|
|
2981
|
+
endDate?: InputMaybe<Scalars['Date']['input']>;
|
|
2982
|
+
/** All values greater than the given value. */
|
|
2983
|
+
endDate_gt?: InputMaybe<Scalars['Date']['input']>;
|
|
2984
|
+
/** All values greater than or equal the given value. */
|
|
2985
|
+
endDate_gte?: InputMaybe<Scalars['Date']['input']>;
|
|
2986
|
+
/** All values that are contained in given list. */
|
|
2987
|
+
endDate_in?: InputMaybe<Array<InputMaybe<Scalars['Date']['input']>>>;
|
|
2988
|
+
/** All values less than the given value. */
|
|
2989
|
+
endDate_lt?: InputMaybe<Scalars['Date']['input']>;
|
|
2990
|
+
/** All values less than or equal the given value. */
|
|
2991
|
+
endDate_lte?: InputMaybe<Scalars['Date']['input']>;
|
|
2992
|
+
/** Any other value that exists and is not equal to the given value. */
|
|
2993
|
+
endDate_not?: InputMaybe<Scalars['Date']['input']>;
|
|
2994
|
+
/** All values that are not contained in given list. */
|
|
2995
|
+
endDate_not_in?: InputMaybe<Array<InputMaybe<Scalars['Date']['input']>>>;
|
|
2959
2996
|
eventCollection?: InputMaybe<EventCollectionWhereInput>;
|
|
2960
2997
|
id?: InputMaybe<Scalars['ID']['input']>;
|
|
2961
2998
|
/** All values containing the given string. */
|
|
@@ -3015,6 +3052,21 @@ export type EventWhereInput = {
|
|
|
3015
3052
|
slug_not_starts_with?: InputMaybe<Scalars['String']['input']>;
|
|
3016
3053
|
/** All values starting with the given string. */
|
|
3017
3054
|
slug_starts_with?: InputMaybe<Scalars['String']['input']>;
|
|
3055
|
+
startDate?: InputMaybe<Scalars['Date']['input']>;
|
|
3056
|
+
/** All values greater than the given value. */
|
|
3057
|
+
startDate_gt?: InputMaybe<Scalars['Date']['input']>;
|
|
3058
|
+
/** All values greater than or equal the given value. */
|
|
3059
|
+
startDate_gte?: InputMaybe<Scalars['Date']['input']>;
|
|
3060
|
+
/** All values that are contained in given list. */
|
|
3061
|
+
startDate_in?: InputMaybe<Array<InputMaybe<Scalars['Date']['input']>>>;
|
|
3062
|
+
/** All values less than the given value. */
|
|
3063
|
+
startDate_lt?: InputMaybe<Scalars['Date']['input']>;
|
|
3064
|
+
/** All values less than or equal the given value. */
|
|
3065
|
+
startDate_lte?: InputMaybe<Scalars['Date']['input']>;
|
|
3066
|
+
/** Any other value that exists and is not equal to the given value. */
|
|
3067
|
+
startDate_not?: InputMaybe<Scalars['Date']['input']>;
|
|
3068
|
+
/** All values that are not contained in given list. */
|
|
3069
|
+
startDate_not_in?: InputMaybe<Array<InputMaybe<Scalars['Date']['input']>>>;
|
|
3018
3070
|
title?: InputMaybe<Scalars['String']['input']>;
|
|
3019
3071
|
/** All values containing the given string. */
|
|
3020
3072
|
title_contains?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -3152,7 +3204,7 @@ export type ImageTransformationInput = {
|
|
|
3152
3204
|
sharpen?: InputMaybe<ImageSharpenInput>;
|
|
3153
3205
|
};
|
|
3154
3206
|
export type LearningResource = Entity & Node & {
|
|
3155
|
-
content?: Maybe<
|
|
3207
|
+
content?: Maybe<RichText>;
|
|
3156
3208
|
/** The time the document was created */
|
|
3157
3209
|
createdAt: Scalars['DateTime']['output'];
|
|
3158
3210
|
/** User that created this document */
|
|
@@ -3161,6 +3213,7 @@ export type LearningResource = Entity & Node & {
|
|
|
3161
3213
|
documentInStages: Array<LearningResource>;
|
|
3162
3214
|
/** List of LearningResource versions */
|
|
3163
3215
|
history: Array<Version>;
|
|
3216
|
+
hubspotFormId?: Maybe<Scalars['String']['output']>;
|
|
3164
3217
|
/** The unique identifier */
|
|
3165
3218
|
id: Scalars['ID']['output'];
|
|
3166
3219
|
image?: Maybe<Asset>;
|
|
@@ -3771,8 +3824,9 @@ export type LearningResourceConnection = {
|
|
|
3771
3824
|
};
|
|
3772
3825
|
export type LearningResourceCreateInput = {
|
|
3773
3826
|
/** content input for default locale (en) */
|
|
3774
|
-
content?: InputMaybe<Scalars['
|
|
3827
|
+
content?: InputMaybe<Scalars['RichTextAST']['input']>;
|
|
3775
3828
|
createdAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
3829
|
+
hubspotFormId?: InputMaybe<Scalars['String']['input']>;
|
|
3776
3830
|
image?: InputMaybe<AssetCreateOneInlineInput>;
|
|
3777
3831
|
learningResourceCollections?: InputMaybe<LearningResourceCollectionCreateManyInlineInput>;
|
|
3778
3832
|
/** Inline mutations for managing document localizations excluding the default locale */
|
|
@@ -3784,7 +3838,7 @@ export type LearningResourceCreateInput = {
|
|
|
3784
3838
|
updatedAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
3785
3839
|
};
|
|
3786
3840
|
export type LearningResourceCreateLocalizationDataInput = {
|
|
3787
|
-
content?: InputMaybe<Scalars['
|
|
3841
|
+
content?: InputMaybe<Scalars['RichTextAST']['input']>;
|
|
3788
3842
|
createdAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
3789
3843
|
title: Scalars['String']['input'];
|
|
3790
3844
|
updatedAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
@@ -3846,6 +3900,25 @@ export type LearningResourceManyWhereInput = {
|
|
|
3846
3900
|
documentInStages_every?: InputMaybe<LearningResourceWhereStageInput>;
|
|
3847
3901
|
documentInStages_none?: InputMaybe<LearningResourceWhereStageInput>;
|
|
3848
3902
|
documentInStages_some?: InputMaybe<LearningResourceWhereStageInput>;
|
|
3903
|
+
hubspotFormId?: InputMaybe<Scalars['String']['input']>;
|
|
3904
|
+
/** All values containing the given string. */
|
|
3905
|
+
hubspotFormId_contains?: InputMaybe<Scalars['String']['input']>;
|
|
3906
|
+
/** All values ending with the given string. */
|
|
3907
|
+
hubspotFormId_ends_with?: InputMaybe<Scalars['String']['input']>;
|
|
3908
|
+
/** All values that are contained in given list. */
|
|
3909
|
+
hubspotFormId_in?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
3910
|
+
/** Any other value that exists and is not equal to the given value. */
|
|
3911
|
+
hubspotFormId_not?: InputMaybe<Scalars['String']['input']>;
|
|
3912
|
+
/** All values not containing the given string. */
|
|
3913
|
+
hubspotFormId_not_contains?: InputMaybe<Scalars['String']['input']>;
|
|
3914
|
+
/** All values not ending with the given string */
|
|
3915
|
+
hubspotFormId_not_ends_with?: InputMaybe<Scalars['String']['input']>;
|
|
3916
|
+
/** All values that are not contained in given list. */
|
|
3917
|
+
hubspotFormId_not_in?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
3918
|
+
/** All values not starting with the given string. */
|
|
3919
|
+
hubspotFormId_not_starts_with?: InputMaybe<Scalars['String']['input']>;
|
|
3920
|
+
/** All values starting with the given string. */
|
|
3921
|
+
hubspotFormId_starts_with?: InputMaybe<Scalars['String']['input']>;
|
|
3849
3922
|
id?: InputMaybe<Scalars['ID']['input']>;
|
|
3850
3923
|
/** All values containing the given string. */
|
|
3851
3924
|
id_contains?: InputMaybe<Scalars['ID']['input']>;
|
|
@@ -3928,10 +4001,10 @@ export type LearningResourceManyWhereInput = {
|
|
|
3928
4001
|
updatedBy?: InputMaybe<UserWhereInput>;
|
|
3929
4002
|
};
|
|
3930
4003
|
export declare enum LearningResourceOrderByInput {
|
|
3931
|
-
ContentAsc = "content_ASC",
|
|
3932
|
-
ContentDesc = "content_DESC",
|
|
3933
4004
|
CreatedAtAsc = "createdAt_ASC",
|
|
3934
4005
|
CreatedAtDesc = "createdAt_DESC",
|
|
4006
|
+
HubspotFormIdAsc = "hubspotFormId_ASC",
|
|
4007
|
+
HubspotFormIdDesc = "hubspotFormId_DESC",
|
|
3935
4008
|
IdAsc = "id_ASC",
|
|
3936
4009
|
IdDesc = "id_DESC",
|
|
3937
4010
|
PublishedAtAsc = "publishedAt_ASC",
|
|
@@ -3945,7 +4018,8 @@ export declare enum LearningResourceOrderByInput {
|
|
|
3945
4018
|
}
|
|
3946
4019
|
export type LearningResourceUpdateInput = {
|
|
3947
4020
|
/** content input for default locale (en) */
|
|
3948
|
-
content?: InputMaybe<Scalars['
|
|
4021
|
+
content?: InputMaybe<Scalars['RichTextAST']['input']>;
|
|
4022
|
+
hubspotFormId?: InputMaybe<Scalars['String']['input']>;
|
|
3949
4023
|
image?: InputMaybe<AssetUpdateOneInlineInput>;
|
|
3950
4024
|
learningResourceCollections?: InputMaybe<LearningResourceCollectionUpdateManyInlineInput>;
|
|
3951
4025
|
/** Manage document localizations */
|
|
@@ -3956,7 +4030,7 @@ export type LearningResourceUpdateInput = {
|
|
|
3956
4030
|
topics?: InputMaybe<TopicUpdateManyInlineInput>;
|
|
3957
4031
|
};
|
|
3958
4032
|
export type LearningResourceUpdateLocalizationDataInput = {
|
|
3959
|
-
content?: InputMaybe<Scalars['
|
|
4033
|
+
content?: InputMaybe<Scalars['RichTextAST']['input']>;
|
|
3960
4034
|
title?: InputMaybe<Scalars['String']['input']>;
|
|
3961
4035
|
};
|
|
3962
4036
|
export type LearningResourceUpdateLocalizationInput = {
|
|
@@ -3990,14 +4064,15 @@ export type LearningResourceUpdateManyInlineInput = {
|
|
|
3990
4064
|
};
|
|
3991
4065
|
export type LearningResourceUpdateManyInput = {
|
|
3992
4066
|
/** content input for default locale (en) */
|
|
3993
|
-
content?: InputMaybe<Scalars['
|
|
4067
|
+
content?: InputMaybe<Scalars['RichTextAST']['input']>;
|
|
4068
|
+
hubspotFormId?: InputMaybe<Scalars['String']['input']>;
|
|
3994
4069
|
/** Optional updates to localizations */
|
|
3995
4070
|
localizations?: InputMaybe<LearningResourceUpdateManyLocalizationsInput>;
|
|
3996
4071
|
/** title input for default locale (en) */
|
|
3997
4072
|
title?: InputMaybe<Scalars['String']['input']>;
|
|
3998
4073
|
};
|
|
3999
4074
|
export type LearningResourceUpdateManyLocalizationDataInput = {
|
|
4000
|
-
content?: InputMaybe<Scalars['
|
|
4075
|
+
content?: InputMaybe<Scalars['RichTextAST']['input']>;
|
|
4001
4076
|
title?: InputMaybe<Scalars['String']['input']>;
|
|
4002
4077
|
};
|
|
4003
4078
|
export type LearningResourceUpdateManyLocalizationInput = {
|
|
@@ -4066,25 +4141,6 @@ export type LearningResourceWhereInput = {
|
|
|
4066
4141
|
OR?: InputMaybe<Array<LearningResourceWhereInput>>;
|
|
4067
4142
|
/** Contains search across all appropriate fields. */
|
|
4068
4143
|
_search?: InputMaybe<Scalars['String']['input']>;
|
|
4069
|
-
content?: InputMaybe<Scalars['String']['input']>;
|
|
4070
|
-
/** All values containing the given string. */
|
|
4071
|
-
content_contains?: InputMaybe<Scalars['String']['input']>;
|
|
4072
|
-
/** All values ending with the given string. */
|
|
4073
|
-
content_ends_with?: InputMaybe<Scalars['String']['input']>;
|
|
4074
|
-
/** All values that are contained in given list. */
|
|
4075
|
-
content_in?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
4076
|
-
/** Any other value that exists and is not equal to the given value. */
|
|
4077
|
-
content_not?: InputMaybe<Scalars['String']['input']>;
|
|
4078
|
-
/** All values not containing the given string. */
|
|
4079
|
-
content_not_contains?: InputMaybe<Scalars['String']['input']>;
|
|
4080
|
-
/** All values not ending with the given string */
|
|
4081
|
-
content_not_ends_with?: InputMaybe<Scalars['String']['input']>;
|
|
4082
|
-
/** All values that are not contained in given list. */
|
|
4083
|
-
content_not_in?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
4084
|
-
/** All values not starting with the given string. */
|
|
4085
|
-
content_not_starts_with?: InputMaybe<Scalars['String']['input']>;
|
|
4086
|
-
/** All values starting with the given string. */
|
|
4087
|
-
content_starts_with?: InputMaybe<Scalars['String']['input']>;
|
|
4088
4144
|
createdAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
4089
4145
|
/** All values greater than the given value. */
|
|
4090
4146
|
createdAt_gt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
@@ -4104,6 +4160,25 @@ export type LearningResourceWhereInput = {
|
|
|
4104
4160
|
documentInStages_every?: InputMaybe<LearningResourceWhereStageInput>;
|
|
4105
4161
|
documentInStages_none?: InputMaybe<LearningResourceWhereStageInput>;
|
|
4106
4162
|
documentInStages_some?: InputMaybe<LearningResourceWhereStageInput>;
|
|
4163
|
+
hubspotFormId?: InputMaybe<Scalars['String']['input']>;
|
|
4164
|
+
/** All values containing the given string. */
|
|
4165
|
+
hubspotFormId_contains?: InputMaybe<Scalars['String']['input']>;
|
|
4166
|
+
/** All values ending with the given string. */
|
|
4167
|
+
hubspotFormId_ends_with?: InputMaybe<Scalars['String']['input']>;
|
|
4168
|
+
/** All values that are contained in given list. */
|
|
4169
|
+
hubspotFormId_in?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
4170
|
+
/** Any other value that exists and is not equal to the given value. */
|
|
4171
|
+
hubspotFormId_not?: InputMaybe<Scalars['String']['input']>;
|
|
4172
|
+
/** All values not containing the given string. */
|
|
4173
|
+
hubspotFormId_not_contains?: InputMaybe<Scalars['String']['input']>;
|
|
4174
|
+
/** All values not ending with the given string */
|
|
4175
|
+
hubspotFormId_not_ends_with?: InputMaybe<Scalars['String']['input']>;
|
|
4176
|
+
/** All values that are not contained in given list. */
|
|
4177
|
+
hubspotFormId_not_in?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
4178
|
+
/** All values not starting with the given string. */
|
|
4179
|
+
hubspotFormId_not_starts_with?: InputMaybe<Scalars['String']['input']>;
|
|
4180
|
+
/** All values starting with the given string. */
|
|
4181
|
+
hubspotFormId_starts_with?: InputMaybe<Scalars['String']['input']>;
|
|
4107
4182
|
id?: InputMaybe<Scalars['ID']['input']>;
|
|
4108
4183
|
/** All values containing the given string. */
|
|
4109
4184
|
id_contains?: InputMaybe<Scalars['ID']['input']>;
|
|
@@ -8003,6 +8078,11 @@ export type BlogsQuery = {
|
|
|
8003
8078
|
handle: string;
|
|
8004
8079
|
} | null;
|
|
8005
8080
|
}>;
|
|
8081
|
+
blogsConnection: {
|
|
8082
|
+
aggregate: {
|
|
8083
|
+
count: number;
|
|
8084
|
+
};
|
|
8085
|
+
};
|
|
8006
8086
|
};
|
|
8007
8087
|
export type BlogPostBySlugQueryVariables = Exact<{
|
|
8008
8088
|
slug: Scalars['String']['input'];
|
|
@@ -101,16 +101,18 @@ export var EventCollectionOrderByInput = /* @__PURE__ */ ((EventCollectionOrderB
|
|
|
101
101
|
return EventCollectionOrderByInput2;
|
|
102
102
|
})(EventCollectionOrderByInput || {});
|
|
103
103
|
export var EventOrderByInput = /* @__PURE__ */ ((EventOrderByInput2) => {
|
|
104
|
-
EventOrderByInput2["ContentAsc"] = "content_ASC";
|
|
105
|
-
EventOrderByInput2["ContentDesc"] = "content_DESC";
|
|
106
104
|
EventOrderByInput2["CreatedAtAsc"] = "createdAt_ASC";
|
|
107
105
|
EventOrderByInput2["CreatedAtDesc"] = "createdAt_DESC";
|
|
106
|
+
EventOrderByInput2["EndDateAsc"] = "endDate_ASC";
|
|
107
|
+
EventOrderByInput2["EndDateDesc"] = "endDate_DESC";
|
|
108
108
|
EventOrderByInput2["IdAsc"] = "id_ASC";
|
|
109
109
|
EventOrderByInput2["IdDesc"] = "id_DESC";
|
|
110
110
|
EventOrderByInput2["PublishedAtAsc"] = "publishedAt_ASC";
|
|
111
111
|
EventOrderByInput2["PublishedAtDesc"] = "publishedAt_DESC";
|
|
112
112
|
EventOrderByInput2["SlugAsc"] = "slug_ASC";
|
|
113
113
|
EventOrderByInput2["SlugDesc"] = "slug_DESC";
|
|
114
|
+
EventOrderByInput2["StartDateAsc"] = "startDate_ASC";
|
|
115
|
+
EventOrderByInput2["StartDateDesc"] = "startDate_DESC";
|
|
114
116
|
EventOrderByInput2["TitleAsc"] = "title_ASC";
|
|
115
117
|
EventOrderByInput2["TitleDesc"] = "title_DESC";
|
|
116
118
|
EventOrderByInput2["UpdatedAtAsc"] = "updatedAt_ASC";
|
|
@@ -140,10 +142,10 @@ export var LearningResourceCollectionOrderByInput = /* @__PURE__ */ ((LearningRe
|
|
|
140
142
|
return LearningResourceCollectionOrderByInput2;
|
|
141
143
|
})(LearningResourceCollectionOrderByInput || {});
|
|
142
144
|
export var LearningResourceOrderByInput = /* @__PURE__ */ ((LearningResourceOrderByInput2) => {
|
|
143
|
-
LearningResourceOrderByInput2["ContentAsc"] = "content_ASC";
|
|
144
|
-
LearningResourceOrderByInput2["ContentDesc"] = "content_DESC";
|
|
145
145
|
LearningResourceOrderByInput2["CreatedAtAsc"] = "createdAt_ASC";
|
|
146
146
|
LearningResourceOrderByInput2["CreatedAtDesc"] = "createdAt_DESC";
|
|
147
|
+
LearningResourceOrderByInput2["HubspotFormIdAsc"] = "hubspotFormId_ASC";
|
|
148
|
+
LearningResourceOrderByInput2["HubspotFormIdDesc"] = "hubspotFormId_DESC";
|
|
147
149
|
LearningResourceOrderByInput2["IdAsc"] = "id_ASC";
|
|
148
150
|
LearningResourceOrderByInput2["IdDesc"] = "id_DESC";
|
|
149
151
|
LearningResourceOrderByInput2["PublishedAtAsc"] = "publishedAt_ASC";
|
|
@@ -17,10 +17,14 @@ export default defineHygraph.linkHandler({
|
|
|
17
17
|
const allPosts = results.flatMap((r) => r.data.blogs);
|
|
18
18
|
passthrough.set(blogPostsToken, allPosts);
|
|
19
19
|
return {
|
|
20
|
-
links: entityIds.map((id, i) =>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
links: entityIds.map((id, i) => {
|
|
21
|
+
const data = results.at(i)?.data;
|
|
22
|
+
return {
|
|
23
|
+
sourceId: id,
|
|
24
|
+
targetIds: data?.blogs.map((blog) => blog.id) ?? [],
|
|
25
|
+
entityTotal: data?.blogsConnection.aggregate.count ?? data?.blogs.length ?? 0
|
|
26
|
+
};
|
|
27
|
+
})
|
|
24
28
|
};
|
|
25
29
|
}
|
|
26
30
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const BLOGS_QUERY = "\n #graphql\n \n #graphql\n \n #graphql\n fragment Asset on Asset {\n url\n fileName\n mimeType\n width\n height\n handle\n }\n\n fragment Blog on Blog {\n id\n title\n slug\n content {\n html\n }\n image {\n ...Asset\n }\n publishedAt\n }\n\n query Blogs($skip: Int, $first: Int, $collectionId: ID) {\n blogs(skip: $skip, first: $first, orderBy: createdAt_DESC, where: { blogCollection: { id: $collectionId } }) {\n ...Blog\n }\n }\n";
|
|
1
|
+
export declare const BLOGS_QUERY = "\n #graphql\n \n #graphql\n \n #graphql\n fragment Asset on Asset {\n url\n fileName\n mimeType\n width\n height\n handle\n }\n\n fragment Blog on Blog {\n id\n title\n slug\n content {\n html\n }\n image {\n ...Asset\n }\n publishedAt\n }\n\n query Blogs($skip: Int, $first: Int, $collectionId: ID) {\n blogs(skip: $skip, first: $first, orderBy: createdAt_DESC, where: { blogCollection: { id: $collectionId } }) {\n ...Blog\n }\n blogsConnection {\n aggregate {\n count\n }\n }\n }\n";
|
|
2
2
|
export declare const BLOG_POST_BY_SLUG_QUERY = "\n #graphql\n \n #graphql\n \n #graphql\n fragment Asset on Asset {\n url\n fileName\n mimeType\n width\n height\n handle\n }\n\n fragment Blog on Blog {\n id\n title\n slug\n content {\n html\n }\n image {\n ...Asset\n }\n publishedAt\n }\n\n query BlogPostBySlug($slug: String!) {\n blog(where: { slug: $slug }) {\n ...Blog\n }\n }\n";
|
|
3
3
|
export declare const BLOG_COLLECTION_BY_SLUG_QUERY = "\n #graphql\n query BlogCollectionBySlug($slug: String!) {\n blogCollection(where: { slug: $slug }) {\n id\n slug\n title\n }\n }\n";
|
|
4
4
|
export declare const BLOG_COLLECTIONS_QUERY = "\n #graphql\n query BlogCollections {\n blogCollections {\n slug\n title\n }\n }\n";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@laioutr/app-hygraph",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Laioutr Hygraph App",
|
|
5
5
|
"repository": "your-org/@laioutr/app-hygraph",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,6 +43,17 @@
|
|
|
43
43
|
"files": [
|
|
44
44
|
"dist"
|
|
45
45
|
],
|
|
46
|
+
"scripts": {
|
|
47
|
+
"dev": "npm run dev:prepare && nuxi dev playground",
|
|
48
|
+
"dev:build": "nuxi build playground",
|
|
49
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
50
|
+
"lint": "eslint .",
|
|
51
|
+
"prepack": "nuxt-module-build build",
|
|
52
|
+
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish --access public && git push --follow-tags",
|
|
53
|
+
"test": "vitest run",
|
|
54
|
+
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
|
|
55
|
+
"test:watch": "vitest watch"
|
|
56
|
+
},
|
|
46
57
|
"dependencies": {
|
|
47
58
|
"@nuxt/kit": "3.16.2",
|
|
48
59
|
"zod": "3.25.61"
|
|
@@ -52,7 +63,7 @@
|
|
|
52
63
|
"@graphql-codegen/typescript": "^5.0.9",
|
|
53
64
|
"@graphql-codegen/typescript-operations": "^5.0.9",
|
|
54
65
|
"@laioutr-app/ui": "^1.32.2",
|
|
55
|
-
"@laioutr-core/orchestr-devtools": "^1.
|
|
66
|
+
"@laioutr-core/orchestr-devtools": "^1.7.0-next.0",
|
|
56
67
|
"@laioutr/eslint-config": "^1.8.8",
|
|
57
68
|
"@laioutr/prettier-config": "^1.1.0",
|
|
58
69
|
"@nuxt/devtools": "^2.6.3",
|
|
@@ -92,17 +103,5 @@
|
|
|
92
103
|
"engines": {
|
|
93
104
|
"node": ">=22.12.0",
|
|
94
105
|
"pnpm": ">=10.15.0"
|
|
95
|
-
},
|
|
96
|
-
"scripts": {
|
|
97
|
-
"dev": "npm run dev:prepare && nuxi dev playground",
|
|
98
|
-
"dev:build": "nuxi build playground",
|
|
99
|
-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
100
|
-
"lint": "eslint .",
|
|
101
|
-
"orchestr-dev": "npm run orchestr-dev:prepare && nuxi dev orchestr-playground",
|
|
102
|
-
"orchestr-dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare orchestr-playground",
|
|
103
|
-
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish --access public && git push --follow-tags",
|
|
104
|
-
"test": "vitest run",
|
|
105
|
-
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
|
|
106
|
-
"test:watch": "vitest watch"
|
|
107
106
|
}
|
|
108
|
-
}
|
|
107
|
+
}
|