@keystrokehq/shopify 0.0.11 → 0.0.15

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,7 +1,6 @@
1
- import { i as shopifyOfficialIntegration, n as shopify, r as shopifyBundle, t as ShopifyCredentials } from "../integration-HrSKAMfF.mjs";
2
- import { CredentialSet } from "@keystrokehq/core";
1
+ import { i as shopifyOfficialIntegration, n as shopify, r as shopifyBundle, t as ShopifyCredentials } from "../integration-DrHCkXco.mjs";
3
2
  import { z } from "zod";
4
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
3
+ import { CredentialSet } from "@keystrokehq/core";
5
4
  import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
6
5
 
7
6
  //#region src/_official/provider-app.d.ts
@@ -9,11 +8,7 @@ declare const shopifyAppCredentialSet: CredentialSet<"keystroke:shopify-app", z.
9
8
  clientId: z.ZodString;
10
9
  clientSecret: z.ZodString;
11
10
  webhookSecret: z.ZodString;
12
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
13
- clientId: z.ZodString;
14
- clientSecret: z.ZodString;
15
- webhookSecret: z.ZodString;
16
- }, z.core.$strip>>[] | undefined>;
11
+ }, z.core.$strip>>;
17
12
  declare const shopifyOfficialProviderSeed: {
18
13
  readonly provider: "shopify";
19
14
  readonly appRef: "shopify-platform";
@@ -1,3 +1,3 @@
1
- import { a as shopifyAppCredentialSet, n as shopifyBundle, o as shopifyOfficialProviderSeed, r as shopifyOfficialIntegration, t as shopify } from "../integration-vSl3XHTG.mjs";
1
+ import { a as shopifyAppCredentialSet, n as shopifyBundle, o as shopifyOfficialProviderSeed, r as shopifyOfficialIntegration, t as shopify } from "../integration-B5LK_0eR.mjs";
2
2
 
3
3
  export { shopify, shopifyAppCredentialSet, shopifyBundle, shopifyOfficialIntegration, shopifyOfficialProviderSeed };
@@ -1,4 +1,4 @@
1
- import { t as ShopifyCredentials } from "../integration-HrSKAMfF.mjs";
1
+ import { t as ShopifyCredentials } from "../integration-DrHCkXco.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/webhook-management.d.ts
@@ -1,6 +1,5 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
1
  import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
2
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
4
3
 
5
4
  //#region src/articles.d.ts
6
5
  declare const listArticles: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -38,13 +37,10 @@ declare const listArticles: _keystrokehq_core0.Operation<z.ZodObject<{
38
37
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
38
  endCursor: z.ZodNullable<z.ZodString>;
40
39
  }, z.core.$strip>;
41
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
42
- SHOPIFY_STORE_DOMAIN: z.ZodString;
43
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
44
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
40
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
45
41
  SHOPIFY_STORE_DOMAIN: z.ZodString;
46
42
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
47
- }, z.core.$strip>>[] | undefined>], undefined>;
43
+ }, z.core.$strip>>], undefined>;
48
44
  declare const getArticle: _keystrokehq_core0.Operation<z.ZodObject<{
49
45
  id: z.ZodString;
50
46
  }, z.core.$strip>, z.ZodObject<{
@@ -70,13 +66,10 @@ declare const getArticle: _keystrokehq_core0.Operation<z.ZodObject<{
70
66
  }, z.core.$strip>>>;
71
67
  publishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
72
68
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
73
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
74
- SHOPIFY_STORE_DOMAIN: z.ZodString;
75
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
76
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
69
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
77
70
  SHOPIFY_STORE_DOMAIN: z.ZodString;
78
71
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
79
- }, z.core.$strip>>[] | undefined>], undefined>;
72
+ }, z.core.$strip>>], undefined>;
80
73
  declare const createArticle: _keystrokehq_core0.Operation<z.ZodObject<{
81
74
  handle: z.ZodOptional<z.ZodString>;
82
75
  body: z.ZodOptional<z.ZodString>;
@@ -110,13 +103,10 @@ declare const createArticle: _keystrokehq_core0.Operation<z.ZodObject<{
110
103
  }, z.core.$strip>>>;
111
104
  publishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
112
105
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
113
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
106
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
114
107
  SHOPIFY_STORE_DOMAIN: z.ZodString;
115
108
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
116
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
117
- SHOPIFY_STORE_DOMAIN: z.ZodString;
118
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
119
- }, z.core.$strip>>[] | undefined>], undefined>;
109
+ }, z.core.$strip>>], undefined>;
120
110
  declare const updateArticle: _keystrokehq_core0.Operation<z.ZodObject<{
121
111
  blogId: z.ZodOptional<z.ZodString>;
122
112
  title: z.ZodOptional<z.ZodString>;
@@ -152,23 +142,17 @@ declare const updateArticle: _keystrokehq_core0.Operation<z.ZodObject<{
152
142
  }, z.core.$strip>>>;
153
143
  publishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
154
144
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
155
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
156
- SHOPIFY_STORE_DOMAIN: z.ZodString;
157
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
158
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
145
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
159
146
  SHOPIFY_STORE_DOMAIN: z.ZodString;
160
147
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
161
- }, z.core.$strip>>[] | undefined>], undefined>;
148
+ }, z.core.$strip>>], undefined>;
162
149
  declare const deleteArticle: _keystrokehq_core0.Operation<z.ZodObject<{
163
150
  id: z.ZodString;
164
151
  }, z.core.$strip>, z.ZodObject<{
165
152
  deletedArticleId: z.ZodString;
166
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
167
- SHOPIFY_STORE_DOMAIN: z.ZodString;
168
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
169
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
153
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
170
154
  SHOPIFY_STORE_DOMAIN: z.ZodString;
171
155
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
172
- }, z.core.$strip>>[] | undefined>], undefined>;
156
+ }, z.core.$strip>>], undefined>;
173
157
  //#endregion
174
158
  export { createArticle, deleteArticle, getArticle, listArticles, updateArticle };
package/dist/articles.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { shopifyArticleSchema, shopifyConnectionNodesSchema, shopifyGlobalIdSchema, shopifyUserErrorSchema } from "./schemas.mjs";
2
2
  import { createShopifyClient } from "./client.mjs";
3
- import { t as shopifyOperation } from "./factory-BKmxl2-8.mjs";
3
+ import { t as shopifyOperation } from "./factory-DwZJl9JC.mjs";
4
4
  import { n as omitUndefined, r as shopifyPageInputSchema, t as assertNoUserErrors } from "./operation-helpers-CKEDIx0o.mjs";
5
5
  import { z } from "zod";
6
6
 
package/dist/blogs.d.mts CHANGED
@@ -1,6 +1,5 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
1
  import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
2
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
4
3
 
5
4
  //#region src/blogs.d.ts
6
5
  declare const listBlogs: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -23,13 +22,10 @@ declare const listBlogs: _keystrokehq_core0.Operation<z.ZodObject<{
23
22
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
23
  endCursor: z.ZodNullable<z.ZodString>;
25
24
  }, z.core.$strip>;
26
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
27
- SHOPIFY_STORE_DOMAIN: z.ZodString;
28
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
29
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
25
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
30
26
  SHOPIFY_STORE_DOMAIN: z.ZodString;
31
27
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
32
- }, z.core.$strip>>[] | undefined>], undefined>;
28
+ }, z.core.$strip>>], undefined>;
33
29
  declare const getBlog: _keystrokehq_core0.Operation<z.ZodObject<{
34
30
  id: z.ZodString;
35
31
  }, z.core.$strip>, z.ZodObject<{
@@ -40,13 +36,10 @@ declare const getBlog: _keystrokehq_core0.Operation<z.ZodObject<{
40
36
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
41
37
  commentPolicy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
38
  templateSuffix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
44
- SHOPIFY_STORE_DOMAIN: z.ZodString;
45
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
46
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
39
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
47
40
  SHOPIFY_STORE_DOMAIN: z.ZodString;
48
41
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
49
- }, z.core.$strip>>[] | undefined>], undefined>;
42
+ }, z.core.$strip>>], undefined>;
50
43
  declare const createBlog: _keystrokehq_core0.Operation<z.ZodObject<{
51
44
  handle: z.ZodOptional<z.ZodString>;
52
45
  templateSuffix: z.ZodOptional<z.ZodString>;
@@ -65,13 +58,10 @@ declare const createBlog: _keystrokehq_core0.Operation<z.ZodObject<{
65
58
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
66
59
  commentPolicy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
60
  templateSuffix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
61
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
69
62
  SHOPIFY_STORE_DOMAIN: z.ZodString;
70
63
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
71
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
72
- SHOPIFY_STORE_DOMAIN: z.ZodString;
73
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
74
- }, z.core.$strip>>[] | undefined>], undefined>;
64
+ }, z.core.$strip>>], undefined>;
75
65
  declare const updateBlog: _keystrokehq_core0.Operation<z.ZodObject<{
76
66
  title: z.ZodOptional<z.ZodString>;
77
67
  handle: z.ZodOptional<z.ZodString>;
@@ -91,23 +81,17 @@ declare const updateBlog: _keystrokehq_core0.Operation<z.ZodObject<{
91
81
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
92
82
  commentPolicy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
83
  templateSuffix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
95
- SHOPIFY_STORE_DOMAIN: z.ZodString;
96
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
97
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
84
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
98
85
  SHOPIFY_STORE_DOMAIN: z.ZodString;
99
86
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
100
- }, z.core.$strip>>[] | undefined>], undefined>;
87
+ }, z.core.$strip>>], undefined>;
101
88
  declare const deleteBlog: _keystrokehq_core0.Operation<z.ZodObject<{
102
89
  id: z.ZodString;
103
90
  }, z.core.$strip>, z.ZodObject<{
104
91
  deletedBlogId: z.ZodString;
105
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
106
- SHOPIFY_STORE_DOMAIN: z.ZodString;
107
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
108
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
92
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
109
93
  SHOPIFY_STORE_DOMAIN: z.ZodString;
110
94
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
111
- }, z.core.$strip>>[] | undefined>], undefined>;
95
+ }, z.core.$strip>>], undefined>;
112
96
  //#endregion
113
97
  export { createBlog, deleteBlog, getBlog, listBlogs, updateBlog };
package/dist/blogs.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { shopifyBlogSchema, shopifyConnectionNodesSchema, shopifyGlobalIdSchema, shopifyUserErrorSchema } from "./schemas.mjs";
2
2
  import { createShopifyClient } from "./client.mjs";
3
- import { t as shopifyOperation } from "./factory-BKmxl2-8.mjs";
3
+ import { t as shopifyOperation } from "./factory-DwZJl9JC.mjs";
4
4
  import { n as omitUndefined, r as shopifyPageInputSchema, t as assertNoUserErrors } from "./operation-helpers-CKEDIx0o.mjs";
5
5
  import { z } from "zod";
6
6
 
package/dist/client.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as ShopifyCredentials } from "./integration-HrSKAMfF.mjs";
1
+ import { t as ShopifyCredentials } from "./integration-DrHCkXco.mjs";
2
2
  import { z } from "zod";
3
3
  import { ClientResponse, SearchParams } from "@shopify/admin-api-client";
4
4
 
package/dist/client.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as shopify } from "./integration-vSl3XHTG.mjs";
1
+ import { t as shopify } from "./integration-B5LK_0eR.mjs";
2
2
  import { shopifyGraphqlErrorSchema } from "./schemas.mjs";
3
3
  import { CredentialRevokedError } from "@keystrokehq/core/errors";
4
4
  import { createAdminApiClient, createAdminRestApiClient } from "@shopify/admin-api-client";
@@ -1,6 +1,5 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
1
  import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
2
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
4
3
 
5
4
  //#region src/collections.d.ts
6
5
  declare const listCollections: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -29,13 +28,10 @@ declare const listCollections: _keystrokehq_core0.Operation<z.ZodObject<{
29
28
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
29
  endCursor: z.ZodNullable<z.ZodString>;
31
30
  }, z.core.$strip>;
32
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
33
- SHOPIFY_STORE_DOMAIN: z.ZodString;
34
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
35
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
31
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
36
32
  SHOPIFY_STORE_DOMAIN: z.ZodString;
37
33
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
38
- }, z.core.$strip>>[] | undefined>], undefined>;
34
+ }, z.core.$strip>>], undefined>;
39
35
  declare const getCollection: _keystrokehq_core0.Operation<z.ZodObject<{
40
36
  id: z.ZodString;
41
37
  }, z.core.$strip>, z.ZodObject<{
@@ -52,13 +48,10 @@ declare const getCollection: _keystrokehq_core0.Operation<z.ZodObject<{
52
48
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
49
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
50
  }, z.core.$strip>>>;
55
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
51
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
56
52
  SHOPIFY_STORE_DOMAIN: z.ZodString;
57
53
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
58
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
59
- SHOPIFY_STORE_DOMAIN: z.ZodString;
60
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
61
- }, z.core.$strip>>[] | undefined>], undefined>;
54
+ }, z.core.$strip>>], undefined>;
62
55
  declare const createCollection: _keystrokehq_core0.Operation<z.ZodObject<{
63
56
  handle: z.ZodOptional<z.ZodString>;
64
57
  descriptionHtml: z.ZodOptional<z.ZodString>;
@@ -81,24 +74,18 @@ declare const createCollection: _keystrokehq_core0.Operation<z.ZodObject<{
81
74
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
75
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
76
  }, z.core.$strip>>>;
84
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
85
- SHOPIFY_STORE_DOMAIN: z.ZodString;
86
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
87
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
77
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
88
78
  SHOPIFY_STORE_DOMAIN: z.ZodString;
89
79
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
90
- }, z.core.$strip>>[] | undefined>], undefined>;
80
+ }, z.core.$strip>>], undefined>;
91
81
  declare const deleteCollection: _keystrokehq_core0.Operation<z.ZodObject<{
92
82
  id: z.ZodString;
93
83
  }, z.core.$strip>, z.ZodObject<{
94
84
  deletedCollectionId: z.ZodString;
95
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
96
- SHOPIFY_STORE_DOMAIN: z.ZodString;
97
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
98
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
85
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
99
86
  SHOPIFY_STORE_DOMAIN: z.ZodString;
100
87
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
101
- }, z.core.$strip>>[] | undefined>], undefined>;
88
+ }, z.core.$strip>>], undefined>;
102
89
  declare const addProductsToCollection: _keystrokehq_core0.Operation<z.ZodObject<{
103
90
  id: z.ZodString;
104
91
  productIds: z.ZodArray<z.ZodString>;
@@ -116,25 +103,19 @@ declare const addProductsToCollection: _keystrokehq_core0.Operation<z.ZodObject<
116
103
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
104
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
105
  }, z.core.$strip>>>;
119
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
106
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
120
107
  SHOPIFY_STORE_DOMAIN: z.ZodString;
121
108
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
122
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
123
- SHOPIFY_STORE_DOMAIN: z.ZodString;
124
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
125
- }, z.core.$strip>>[] | undefined>], undefined>;
109
+ }, z.core.$strip>>], undefined>;
126
110
  declare const removeProductsFromCollection: _keystrokehq_core0.Operation<z.ZodObject<{
127
111
  id: z.ZodString;
128
112
  productIds: z.ZodArray<z.ZodString>;
129
113
  }, z.core.$strip>, z.ZodObject<{
130
114
  id: z.ZodString;
131
115
  done: z.ZodOptional<z.ZodBoolean>;
132
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
133
- SHOPIFY_STORE_DOMAIN: z.ZodString;
134
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
135
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
116
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
136
117
  SHOPIFY_STORE_DOMAIN: z.ZodString;
137
118
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
138
- }, z.core.$strip>>[] | undefined>], undefined>;
119
+ }, z.core.$strip>>], undefined>;
139
120
  //#endregion
140
121
  export { addProductsToCollection, createCollection, deleteCollection, getCollection, listCollections, removeProductsFromCollection };
@@ -1,6 +1,6 @@
1
1
  import { shopifyCollectionSchema, shopifyConnectionNodesSchema, shopifyGlobalIdSchema, shopifyJobSchema, shopifyUserErrorSchema } from "./schemas.mjs";
2
2
  import { createShopifyClient } from "./client.mjs";
3
- import { t as shopifyOperation } from "./factory-BKmxl2-8.mjs";
3
+ import { t as shopifyOperation } from "./factory-DwZJl9JC.mjs";
4
4
  import { i as shopifyProductIdsInputSchema, n as omitUndefined, r as shopifyPageInputSchema, t as assertNoUserErrors } from "./operation-helpers-CKEDIx0o.mjs";
5
5
  import { z } from "zod";
6
6
 
@@ -1,2 +1,2 @@
1
- import { n as shopify, t as ShopifyCredentials } from "./integration-HrSKAMfF.mjs";
1
+ import { n as shopify, t as ShopifyCredentials } from "./integration-DrHCkXco.mjs";
2
2
  export { type ShopifyCredentials, shopify };
@@ -1,3 +1,3 @@
1
- import { t as shopify } from "./integration-vSl3XHTG.mjs";
1
+ import { t as shopify } from "./integration-B5LK_0eR.mjs";
2
2
 
3
3
  export { shopify };
@@ -1,6 +1,5 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
1
  import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
2
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
4
3
 
5
4
  //#region src/customers.d.ts
6
5
  declare const listCustomers: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -24,13 +23,10 @@ declare const listCustomers: _keystrokehq_core0.Operation<z.ZodObject<{
24
23
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
24
  endCursor: z.ZodNullable<z.ZodString>;
26
25
  }, z.core.$strip>;
27
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
28
- SHOPIFY_STORE_DOMAIN: z.ZodString;
29
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
30
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
26
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
31
27
  SHOPIFY_STORE_DOMAIN: z.ZodString;
32
28
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
33
- }, z.core.$strip>>[] | undefined>], undefined>;
29
+ }, z.core.$strip>>], undefined>;
34
30
  declare const getCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
35
31
  id: z.ZodString;
36
32
  }, z.core.$strip>, z.ZodObject<{
@@ -42,13 +38,10 @@ declare const getCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
42
38
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
39
  createdAt: z.ZodOptional<z.ZodISODateTime>;
44
40
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
45
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
41
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
46
42
  SHOPIFY_STORE_DOMAIN: z.ZodString;
47
43
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
48
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
49
- SHOPIFY_STORE_DOMAIN: z.ZodString;
50
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
51
- }, z.core.$strip>>[] | undefined>], undefined>;
44
+ }, z.core.$strip>>], undefined>;
52
45
  declare const createCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
53
46
  email: z.ZodOptional<z.ZodEmail>;
54
47
  firstName: z.ZodOptional<z.ZodString>;
@@ -65,13 +58,10 @@ declare const createCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
65
58
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
59
  createdAt: z.ZodOptional<z.ZodISODateTime>;
67
60
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
68
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
69
- SHOPIFY_STORE_DOMAIN: z.ZodString;
70
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
71
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
61
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
72
62
  SHOPIFY_STORE_DOMAIN: z.ZodString;
73
63
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
74
- }, z.core.$strip>>[] | undefined>], undefined>;
64
+ }, z.core.$strip>>], undefined>;
75
65
  declare const updateCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
76
66
  email: z.ZodOptional<z.ZodEmail>;
77
67
  firstName: z.ZodOptional<z.ZodString>;
@@ -89,24 +79,18 @@ declare const updateCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
89
79
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
80
  createdAt: z.ZodOptional<z.ZodISODateTime>;
91
81
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
92
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
93
- SHOPIFY_STORE_DOMAIN: z.ZodString;
94
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
95
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
82
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
96
83
  SHOPIFY_STORE_DOMAIN: z.ZodString;
97
84
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
98
- }, z.core.$strip>>[] | undefined>], undefined>;
85
+ }, z.core.$strip>>], undefined>;
99
86
  declare const deleteCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
100
87
  id: z.ZodString;
101
88
  }, z.core.$strip>, z.ZodObject<{
102
89
  deletedCustomerId: z.ZodString;
103
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
90
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
104
91
  SHOPIFY_STORE_DOMAIN: z.ZodString;
105
92
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
106
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
107
- SHOPIFY_STORE_DOMAIN: z.ZodString;
108
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
109
- }, z.core.$strip>>[] | undefined>], undefined>;
93
+ }, z.core.$strip>>], undefined>;
110
94
  declare const getCustomerOrders: _keystrokehq_core0.Operation<z.ZodObject<{
111
95
  id: z.ZodString;
112
96
  first: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -150,12 +134,9 @@ declare const getCustomerOrders: _keystrokehq_core0.Operation<z.ZodObject<{
150
134
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
151
135
  endCursor: z.ZodNullable<z.ZodString>;
152
136
  }, z.core.$strip>;
153
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
154
- SHOPIFY_STORE_DOMAIN: z.ZodString;
155
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
156
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
137
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
157
138
  SHOPIFY_STORE_DOMAIN: z.ZodString;
158
139
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
159
- }, z.core.$strip>>[] | undefined>], undefined>;
140
+ }, z.core.$strip>>], undefined>;
160
141
  //#endregion
161
142
  export { createCustomer, deleteCustomer, getCustomer, getCustomerOrders, listCustomers, updateCustomer };
@@ -1,6 +1,6 @@
1
1
  import { shopifyConnectionNodesSchema, shopifyCustomerSchema, shopifyGlobalIdSchema, shopifyOrderSchema, shopifyUserErrorSchema } from "./schemas.mjs";
2
2
  import { createShopifyClient } from "./client.mjs";
3
- import { t as shopifyOperation } from "./factory-BKmxl2-8.mjs";
3
+ import { t as shopifyOperation } from "./factory-DwZJl9JC.mjs";
4
4
  import { n as omitUndefined, r as shopifyPageInputSchema, t as assertNoUserErrors } from "./operation-helpers-CKEDIx0o.mjs";
5
5
  import { z } from "zod";
6
6
 
@@ -0,0 +1,8 @@
1
+ import { t as shopify } from "./integration-B5LK_0eR.mjs";
2
+ import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
3
+
4
+ //#region src/factory.ts
5
+ const shopifyOperation = createOfficialOperationFactory(shopify);
6
+
7
+ //#endregion
8
+ export { shopifyOperation as t };
@@ -1,6 +1,5 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
1
  import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
2
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
4
3
 
5
4
  //#region src/fulfillments.d.ts
6
5
  declare const listFulfillmentOrdersForOrder: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -43,13 +42,10 @@ declare const listFulfillmentOrdersForOrder: _keystrokehq_core0.Operation<z.ZodO
43
42
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
43
  endCursor: z.ZodNullable<z.ZodString>;
45
44
  }, z.core.$strip>;
46
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
47
- SHOPIFY_STORE_DOMAIN: z.ZodString;
48
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
49
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
45
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
50
46
  SHOPIFY_STORE_DOMAIN: z.ZodString;
51
47
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
52
- }, z.core.$strip>>[] | undefined>], undefined>;
48
+ }, z.core.$strip>>], undefined>;
53
49
  declare const getFulfillment: _keystrokehq_core0.Operation<z.ZodObject<{
54
50
  id: z.ZodString;
55
51
  }, z.core.$strip>, z.ZodObject<{
@@ -59,13 +55,10 @@ declare const getFulfillment: _keystrokehq_core0.Operation<z.ZodObject<{
59
55
  number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
56
  url: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
61
57
  }, z.core.$strip>>>;
62
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
58
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
63
59
  SHOPIFY_STORE_DOMAIN: z.ZodString;
64
60
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
65
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
66
- SHOPIFY_STORE_DOMAIN: z.ZodString;
67
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
68
- }, z.core.$strip>>[] | undefined>], undefined>;
61
+ }, z.core.$strip>>], undefined>;
69
62
  declare const createFulfillment: _keystrokehq_core0.Operation<z.ZodObject<{
70
63
  lineItemsByFulfillmentOrder: z.ZodArray<z.ZodObject<{
71
64
  fulfillmentOrderId: z.ZodString;
@@ -88,12 +81,9 @@ declare const createFulfillment: _keystrokehq_core0.Operation<z.ZodObject<{
88
81
  number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
82
  url: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
90
83
  }, z.core.$strip>>>;
91
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
92
- SHOPIFY_STORE_DOMAIN: z.ZodString;
93
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
94
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
84
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
95
85
  SHOPIFY_STORE_DOMAIN: z.ZodString;
96
86
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
97
- }, z.core.$strip>>[] | undefined>], undefined>;
87
+ }, z.core.$strip>>], undefined>;
98
88
  //#endregion
99
89
  export { createFulfillment, getFulfillment, listFulfillmentOrdersForOrder };
@@ -1,6 +1,6 @@
1
1
  import { shopifyConnectionNodesSchema, shopifyFulfillmentSchema, shopifyGlobalIdSchema, shopifyLocationSchema, shopifyUserErrorSchema } from "./schemas.mjs";
2
2
  import { createShopifyClient } from "./client.mjs";
3
- import { t as shopifyOperation } from "./factory-BKmxl2-8.mjs";
3
+ import { t as shopifyOperation } from "./factory-DwZJl9JC.mjs";
4
4
  import { t as assertNoUserErrors } from "./operation-helpers-CKEDIx0o.mjs";
5
5
  import { z } from "zod";
6
6
 
@@ -0,0 +1,63 @@
1
+ import { defineOfficialIntegration, officialCredentialSetId } from "@keystrokehq/integration-authoring/official";
2
+ import { z } from "zod";
3
+ import { CredentialSet } from "@keystrokehq/core";
4
+
5
+ //#region src/_official/provider-app.ts
6
+ const shopifyAppCredentialSet = new CredentialSet({
7
+ id: officialCredentialSetId("shopify-app"),
8
+ credentialType: "manual",
9
+ exposure: "platform-only",
10
+ name: "Shopify App",
11
+ auth: z.object({
12
+ clientId: z.string(),
13
+ clientSecret: z.string(),
14
+ webhookSecret: z.string()
15
+ })
16
+ });
17
+ const shopifyOfficialProviderSeed = {
18
+ provider: "shopify",
19
+ appRef: "shopify-platform",
20
+ displayName: "Shopify Platform",
21
+ credentialSetName: "Keystroke Shopify Platform App",
22
+ envShape: {
23
+ KEYSTROKE_OFFICIAL_SHOPIFY_APP_ID: z.string().optional(),
24
+ KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_ID: z.string().optional(),
25
+ KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_SECRET: z.string().optional(),
26
+ KEYSTROKE_OFFICIAL_SHOPIFY_WEBHOOK_SECRET: z.string().optional()
27
+ },
28
+ requiredEnvKeys: [
29
+ "KEYSTROKE_OFFICIAL_SHOPIFY_APP_ID",
30
+ "KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_ID",
31
+ "KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_SECRET",
32
+ "KEYSTROKE_OFFICIAL_SHOPIFY_WEBHOOK_SECRET"
33
+ ],
34
+ externalAppIdEnvKey: "KEYSTROKE_OFFICIAL_SHOPIFY_APP_ID",
35
+ buildCredentials: (env) => ({
36
+ clientId: env.KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_ID,
37
+ clientSecret: env.KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_SECRET,
38
+ webhookSecret: env.KEYSTROKE_OFFICIAL_SHOPIFY_WEBHOOK_SECRET
39
+ })
40
+ };
41
+
42
+ //#endregion
43
+ //#region src/integration.ts
44
+ const shopifyStoreDomainSchema = z.string().min(1).regex(/^[a-z0-9][a-z0-9-]*\.myshopify\.com$/i, "Shopify store domain must look like \"example.myshopify.com\".");
45
+ const shopifyAuthSchema = z.object({
46
+ SHOPIFY_STORE_DOMAIN: shopifyStoreDomainSchema,
47
+ SHOPIFY_ACCESS_TOKEN: z.string().min(1)
48
+ });
49
+ const shopifyOfficialIntegration = {
50
+ id: "shopify",
51
+ name: "Shopify",
52
+ description: "Shopify Admin API — stores, products, orders, customers, and webhooks",
53
+ auth: shopifyAuthSchema,
54
+ credentialType: "oauth"
55
+ };
56
+ const shopifyBundle = defineOfficialIntegration({
57
+ ...shopifyOfficialIntegration,
58
+ internal: { providerApp: shopifyAppCredentialSet }
59
+ });
60
+ const shopify = shopifyBundle.credentialSet;
61
+
62
+ //#endregion
63
+ export { shopifyAppCredentialSet as a, shopifyStoreDomainSchema as i, shopifyBundle as n, shopifyOfficialProviderSeed as o, shopifyOfficialIntegration as r, shopify as t };
@@ -0,0 +1,27 @@
1
+ import * as _keystrokehq_integration_authoring_official0 from "@keystrokehq/integration-authoring/official";
2
+ import { z } from "zod";
3
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
4
+ import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
5
+
6
+ //#region src/integration.d.ts
7
+ declare const shopifyOfficialIntegration: {
8
+ id: "shopify";
9
+ name: string;
10
+ description: string;
11
+ auth: z.ZodObject<{
12
+ SHOPIFY_STORE_DOMAIN: z.ZodString;
13
+ SHOPIFY_ACCESS_TOKEN: z.ZodString;
14
+ }, z.core.$strip>;
15
+ credentialType: "oauth";
16
+ };
17
+ declare const shopifyBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"shopify", z.ZodObject<{
18
+ SHOPIFY_STORE_DOMAIN: z.ZodString;
19
+ SHOPIFY_ACCESS_TOKEN: z.ZodString;
20
+ }, z.core.$strip>>;
21
+ declare const shopify: _keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
22
+ SHOPIFY_STORE_DOMAIN: z.ZodString;
23
+ SHOPIFY_ACCESS_TOKEN: z.ZodString;
24
+ }, z.core.$strip>>;
25
+ type ShopifyCredentials = InferCredentialSetAuth<typeof shopify>;
26
+ //#endregion
27
+ export { shopifyOfficialIntegration as i, shopify as n, shopifyBundle as r, ShopifyCredentials as t };