@gem-sdk/core 2.0.0-dev.175 → 2.0.0-dev.178

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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const ArticlesDocument = `
3
+ /* eslint-disable */ const ArticlesDocument = `
4
4
  query articles($after: Cursor, $before: Cursor, $first: Int, $last: Int, $orderBy: ArticleOrder, $where: ArticleWhereInput) {
5
5
  articles(
6
6
  after: $after
@@ -25,13 +25,14 @@ const ArticlesDocument = `
25
25
  tags {
26
26
  name
27
27
  }
28
+ content {
29
+ excerptHtml
30
+ }
28
31
  isSample
29
32
  platformCreatedAt
30
33
  platformUpdatedAt
34
+ publishedAt
31
35
  author
32
- content {
33
- excerptHtml
34
- }
35
36
  blogs {
36
37
  edges {
37
38
  node {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const BlogsDocument = `
3
+ /* eslint-disable */ const BlogsDocument = `
4
4
  query blogs($after: Cursor, $before: Cursor, $first: Int, $last: Int, $orderBy: BlogOrder, $where: BlogWhereInput, $articlesOrderBy: ArticleOrder) {
5
5
  blogs(
6
6
  after: $after
@@ -32,13 +32,14 @@ const BlogsDocument = `
32
32
  tags {
33
33
  name
34
34
  }
35
+ content {
36
+ excerptHtml
37
+ }
35
38
  isSample
36
39
  platformCreatedAt
37
40
  platformUpdatedAt
41
+ publishedAt
38
42
  author
39
- content {
40
- excerptHtml
41
- }
42
43
  media {
43
44
  width
44
45
  src
@@ -1,4 +1,4 @@
1
- const ArticlesDocument = `
1
+ /* eslint-disable */ const ArticlesDocument = `
2
2
  query articles($after: Cursor, $before: Cursor, $first: Int, $last: Int, $orderBy: ArticleOrder, $where: ArticleWhereInput) {
3
3
  articles(
4
4
  after: $after
@@ -23,13 +23,14 @@ const ArticlesDocument = `
23
23
  tags {
24
24
  name
25
25
  }
26
+ content {
27
+ excerptHtml
28
+ }
26
29
  isSample
27
30
  platformCreatedAt
28
31
  platformUpdatedAt
32
+ publishedAt
29
33
  author
30
- content {
31
- excerptHtml
32
- }
33
34
  blogs {
34
35
  edges {
35
36
  node {
@@ -1,4 +1,4 @@
1
- const BlogsDocument = `
1
+ /* eslint-disable */ const BlogsDocument = `
2
2
  query blogs($after: Cursor, $before: Cursor, $first: Int, $last: Int, $orderBy: BlogOrder, $where: BlogWhereInput, $articlesOrderBy: ArticleOrder) {
3
3
  blogs(
4
4
  after: $after
@@ -30,13 +30,14 @@ const BlogsDocument = `
30
30
  tags {
31
31
  name
32
32
  }
33
+ content {
34
+ excerptHtml
35
+ }
33
36
  isSample
34
37
  platformCreatedAt
35
38
  platformUpdatedAt
39
+ publishedAt
36
40
  author
37
- content {
38
- excerptHtml
39
- }
40
41
  media {
41
42
  width
42
43
  src
@@ -75,6 +75,7 @@ type Article$2 = {
75
75
  platform?: Maybe$1<ArticlePlatform$1>;
76
76
  platformCreatedAt?: Maybe$1<Scalars$2['Time']>;
77
77
  platformUpdatedAt?: Maybe$1<Scalars$2['Time']>;
78
+ publishedAt?: Maybe$1<Scalars$2['Time']>;
78
79
  tags?: Maybe$1<Array<Maybe$1<Tag$1>>>;
79
80
  templateSuffix?: Maybe$1<Scalars$2['String']>;
80
81
  title?: Maybe$1<Scalars$2['String']>;
@@ -221,7 +222,7 @@ type ArticleOrder$1 = {
221
222
  direction: OrderDirection$1;
222
223
  field?: InputMaybe$1<ArticleOrderField$1>;
223
224
  };
224
- type ArticleOrderField$1 = 'CREATED_AT' | 'PLATFORM_CREATED_AT' | 'PLATFORM_UPDATED_AT' | 'TITLE' | 'UPDATED_AT';
225
+ type ArticleOrderField$1 = 'CREATED_AT' | 'PLATFORM_CREATED_AT' | 'PLATFORM_UPDATED_AT' | 'PUBLISHED_AT' | 'TITLE' | 'UPDATED_AT';
225
226
  type ArticlePlatform$1 = 'BIG' | 'SHOPIFY' | 'WOO';
226
227
  /**
227
228
  * ArticleTagWhereInput is used for filtering ArticleTag objects.
@@ -405,6 +406,17 @@ type ArticleWhereInput$1 = {
405
406
  platformUpdatedAtNEQ?: InputMaybe$1<Scalars$2['Time']>;
406
407
  platformUpdatedAtNotIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
407
408
  platformUpdatedAtNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
409
+ /** published_at field predicates */
410
+ publishedAt?: InputMaybe$1<Scalars$2['Time']>;
411
+ publishedAtGT?: InputMaybe$1<Scalars$2['Time']>;
412
+ publishedAtGTE?: InputMaybe$1<Scalars$2['Time']>;
413
+ publishedAtIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
414
+ publishedAtIsNil?: InputMaybe$1<Scalars$2['Boolean']>;
415
+ publishedAtLT?: InputMaybe$1<Scalars$2['Time']>;
416
+ publishedAtLTE?: InputMaybe$1<Scalars$2['Time']>;
417
+ publishedAtNEQ?: InputMaybe$1<Scalars$2['Time']>;
418
+ publishedAtNotIn?: InputMaybe$1<Array<Scalars$2['Time']>>;
419
+ publishedAtNotNil?: InputMaybe$1<Scalars$2['Boolean']>;
408
420
  /** template_suffix field predicates */
409
421
  templateSuffix?: InputMaybe$1<Scalars$2['String']>;
410
422
  templateSuffixContains?: InputMaybe$1<Scalars$2['String']>;
@@ -3706,6 +3718,7 @@ type Product$1 = {
3706
3718
  descriptionHtml?: Maybe$1<Scalars$2['String']>;
3707
3719
  descriptionMeta?: Maybe$1<Scalars$2['String']>;
3708
3720
  featuredImage?: Maybe$1<Media$1>;
3721
+ /** @deprecated Use featuredImage instead */
3709
3722
  featuredImageId?: Maybe$1<Scalars$2['ID']>;
3710
3723
  handle?: Maybe$1<Scalars$2['String']>;
3711
3724
  id: Scalars$2['ID'];
@@ -47994,8 +48007,8 @@ type ArticlesQueryVariables = Exact$1<{
47994
48007
  type ArticlesQueryResponse = {
47995
48008
  articles?: Maybe$1<(Pick<ArticleConnection$1, 'totalCount'> & {
47996
48009
  edges: Array<(Pick<ArticleEdge$1, 'cursor'> & {
47997
- node?: Maybe$1<(Pick<Article$2, 'id' | 'title' | 'handle' | 'description' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'platform' | 'isSample' | 'platformCreatedAt' | 'platformUpdatedAt' | 'author'> & {
47998
- tags: Array<never>;
48010
+ node?: Maybe$1<(Pick<Article$2, 'id' | 'title' | 'handle' | 'description' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'platform' | 'isSample' | 'platformCreatedAt' | 'platformUpdatedAt' | 'publishedAt' | 'author'> & {
48011
+ tags?: Maybe$1<Array<Maybe$1<Pick<Tag$1, 'name'>>>>;
47999
48012
  content?: Maybe$1<Pick<ArticleContent$1, 'excerptHtml'>>;
48000
48013
  blogs?: Maybe$1<{
48001
48014
  edges: Array<{
@@ -48019,27 +48032,22 @@ type BlogsQueryVariables = Exact$1<{
48019
48032
  articlesOrderBy?: InputMaybe$1<ArticleOrder$1>;
48020
48033
  }>;
48021
48034
  type BlogsQueryResponse = {
48022
- blogs?: Maybe$1<Pick<BlogConnection$1, 'totalCount'> & {
48023
- edges: Array<Pick<BlogEdge$1, 'cursor'> & {
48024
- node?: Maybe$1<Pick<Blog$1, 'baseID' | 'description' | 'descriptionMeta' | 'handle' | 'id' | 'platform' | 'tags' | 'templateSuffix' | 'title' | 'titleMeta'> & {
48025
- articles?: Maybe$1<Pick<ArticleConnection$1, 'totalCount'> & {
48026
- edges: Array<Pick<ArticleEdge$1, 'cursor'> & {
48027
- node?: Maybe$1<Pick<Article$2, 'id' | 'title' | 'handle' | 'description' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'platform' | 'isSample' | 'platformCreatedAt' | 'platformUpdatedAt' | 'author'> & {
48028
- tags: Array<never>;
48035
+ blogs?: Maybe$1<(Pick<BlogConnection$1, 'totalCount'> & {
48036
+ edges: Array<(Pick<BlogEdge$1, 'cursor'> & {
48037
+ node?: Maybe$1<(Pick<Blog$1, 'baseID' | 'description' | 'descriptionMeta' | 'handle' | 'id' | 'platform' | 'tags' | 'templateSuffix' | 'title' | 'titleMeta'> & {
48038
+ articles?: Maybe$1<(Pick<ArticleConnection$1, 'totalCount'> & {
48039
+ edges: Array<(Pick<ArticleEdge$1, 'cursor'> & {
48040
+ node?: Maybe$1<(Pick<Article$2, 'id' | 'title' | 'handle' | 'description' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'isSample' | 'platformCreatedAt' | 'platformUpdatedAt' | 'publishedAt' | 'author'> & {
48041
+ tags?: Maybe$1<Array<Maybe$1<Pick<Tag$1, 'name'>>>>;
48029
48042
  content?: Maybe$1<Pick<ArticleContent$1, 'excerptHtml'>>;
48030
- blogs?: Maybe$1<{
48031
- edges: Array<{
48032
- node?: Maybe$1<Pick<Blog$1, 'title' | 'handle'>>;
48033
- }>;
48034
- }>;
48035
- media?: Maybe$1<Pick<Media$1, 'alt' | 'width' | 'src' | 'height'>>;
48036
- }>;
48037
- }>;
48038
- }>;
48039
- }>;
48040
- }>;
48043
+ media?: Maybe$1<Pick<Media$1, 'width' | 'src' | 'height'>>;
48044
+ })>;
48045
+ })>;
48046
+ })>;
48047
+ })>;
48048
+ })>;
48041
48049
  pageInfo?: Maybe$1<Pick<PageInfo$1, 'endCursor' | 'hasNextPage' | 'hasPreviousPage' | 'startCursor'>>;
48042
- }>;
48050
+ })>;
48043
48051
  };
48044
48052
 
48045
48053
  declare const useArticlesQuery: (variables: ArticlesQueryVariables | null, options?: SWRConfiguration<ArticlesQueryResponse>) => swr__internal.SWRResponse<ArticlesQueryResponse, any, Partial<swr__internal.PublicConfiguration<ArticlesQueryResponse, any, (arg: ["query/articles", any]) => swr__internal.FetcherResponse<ArticlesQueryResponse>>> | undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "2.0.0-dev.175",
3
+ "version": "2.0.0-dev.178",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",