@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,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/inventory.d.ts
6
5
  declare const listInventoryItems: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -19,26 +18,20 @@ declare const listInventoryItems: _keystrokehq_core0.Operation<z.ZodObject<{
19
18
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
19
  endCursor: z.ZodNullable<z.ZodString>;
21
20
  }, z.core.$strip>;
22
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
21
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
23
22
  SHOPIFY_STORE_DOMAIN: z.ZodString;
24
23
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
25
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
26
- SHOPIFY_STORE_DOMAIN: z.ZodString;
27
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
28
- }, z.core.$strip>>[] | undefined>], undefined>;
24
+ }, z.core.$strip>>], undefined>;
29
25
  declare const getInventoryItem: _keystrokehq_core0.Operation<z.ZodObject<{
30
26
  id: z.ZodString;
31
27
  }, z.core.$strip>, z.ZodObject<{
32
28
  id: z.ZodString;
33
29
  sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
30
  tracked: z.ZodOptional<z.ZodBoolean>;
35
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
36
- SHOPIFY_STORE_DOMAIN: z.ZodString;
37
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
38
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
31
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
39
32
  SHOPIFY_STORE_DOMAIN: z.ZodString;
40
33
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
41
- }, z.core.$strip>>[] | undefined>], undefined>;
34
+ }, z.core.$strip>>], undefined>;
42
35
  declare const getInventoryLevelsForItem: _keystrokehq_core0.Operation<z.ZodObject<{
43
36
  inventoryItemId: z.ZodString;
44
37
  first: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -68,13 +61,10 @@ declare const getInventoryLevelsForItem: _keystrokehq_core0.Operation<z.ZodObjec
68
61
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
62
  endCursor: z.ZodNullable<z.ZodString>;
70
63
  }, z.core.$strip>;
71
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
72
- SHOPIFY_STORE_DOMAIN: z.ZodString;
73
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
74
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
64
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
75
65
  SHOPIFY_STORE_DOMAIN: z.ZodString;
76
66
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
77
- }, z.core.$strip>>[] | undefined>], undefined>;
67
+ }, z.core.$strip>>], undefined>;
78
68
  declare const adjustInventoryQuantities: _keystrokehq_core0.Operation<z.ZodObject<{
79
69
  name: z.ZodDefault<z.ZodString>;
80
70
  reason: z.ZodString;
@@ -92,12 +82,9 @@ declare const adjustInventoryQuantities: _keystrokehq_core0.Operation<z.ZodObjec
92
82
  name: z.ZodString;
93
83
  delta: z.ZodNumber;
94
84
  }, z.core.$strip>>;
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
  //#endregion
103
90
  export { adjustInventoryQuantities, getInventoryItem, getInventoryLevelsForItem, listInventoryItems };
@@ -1,6 +1,6 @@
1
1
  import { shopifyConnectionNodesSchema, shopifyGlobalIdSchema, shopifyInventoryItemSchema, shopifyInventoryLevelSchema, 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 { r as shopifyPageInputSchema, t as assertNoUserErrors } from "./operation-helpers-CKEDIx0o.mjs";
5
5
  import { z } from "zod";
6
6
 
@@ -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/locations.d.ts
6
5
  declare const listLocations: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -22,13 +21,10 @@ declare const listLocations: _keystrokehq_core0.Operation<z.ZodObject<{
22
21
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
22
  endCursor: z.ZodNullable<z.ZodString>;
24
23
  }, z.core.$strip>;
25
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
26
- SHOPIFY_STORE_DOMAIN: z.ZodString;
27
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
28
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
24
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
29
25
  SHOPIFY_STORE_DOMAIN: z.ZodString;
30
26
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
31
- }, z.core.$strip>>[] | undefined>], undefined>;
27
+ }, z.core.$strip>>], undefined>;
32
28
  declare const getLocation: _keystrokehq_core0.Operation<z.ZodObject<{
33
29
  id: z.ZodString;
34
30
  }, z.core.$strip>, z.ZodObject<{
@@ -36,12 +32,9 @@ declare const getLocation: _keystrokehq_core0.Operation<z.ZodObject<{
36
32
  name: z.ZodString;
37
33
  isActive: z.ZodOptional<z.ZodBoolean>;
38
34
  fulfillsOnlineOrders: z.ZodOptional<z.ZodBoolean>;
39
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
40
- SHOPIFY_STORE_DOMAIN: z.ZodString;
41
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
42
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
35
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
43
36
  SHOPIFY_STORE_DOMAIN: z.ZodString;
44
37
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
45
- }, z.core.$strip>>[] | undefined>], undefined>;
38
+ }, z.core.$strip>>], undefined>;
46
39
  //#endregion
47
40
  export { getLocation, listLocations };
@@ -1,6 +1,6 @@
1
1
  import { shopifyConnectionNodesSchema, shopifyGlobalIdSchema, shopifyLocationSchema } 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 { r as shopifyPageInputSchema } from "./operation-helpers-CKEDIx0o.mjs";
5
5
  import { z } from "zod";
6
6
 
package/dist/orders.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/orders.d.ts
6
5
  declare const listOrders: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -46,13 +45,10 @@ declare const listOrders: _keystrokehq_core0.Operation<z.ZodObject<{
46
45
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
46
  endCursor: z.ZodNullable<z.ZodString>;
48
47
  }, z.core.$strip>;
49
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
50
- SHOPIFY_STORE_DOMAIN: z.ZodString;
51
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
52
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
48
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
53
49
  SHOPIFY_STORE_DOMAIN: z.ZodString;
54
50
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
55
- }, z.core.$strip>>[] | undefined>], undefined>;
51
+ }, z.core.$strip>>], undefined>;
56
52
  declare const getOrder: _keystrokehq_core0.Operation<z.ZodObject<{
57
53
  id: z.ZodString;
58
54
  }, z.core.$strip>, z.ZodObject<{
@@ -86,13 +82,10 @@ declare const getOrder: _keystrokehq_core0.Operation<z.ZodObject<{
86
82
  createdAt: z.ZodOptional<z.ZodISODateTime>;
87
83
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
88
84
  }, z.core.$strip>>>;
89
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
90
- SHOPIFY_STORE_DOMAIN: z.ZodString;
91
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
92
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
85
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
93
86
  SHOPIFY_STORE_DOMAIN: z.ZodString;
94
87
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
95
- }, z.core.$strip>>[] | undefined>], undefined>;
88
+ }, z.core.$strip>>], undefined>;
96
89
  declare const createOrder: _keystrokehq_core0.Operation<z.ZodObject<{
97
90
  currency: z.ZodString;
98
91
  email: z.ZodOptional<z.ZodEmail>;
@@ -138,13 +131,10 @@ declare const createOrder: _keystrokehq_core0.Operation<z.ZodObject<{
138
131
  createdAt: z.ZodOptional<z.ZodISODateTime>;
139
132
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
140
133
  }, z.core.$strip>>>;
141
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
134
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
142
135
  SHOPIFY_STORE_DOMAIN: z.ZodString;
143
136
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
144
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
145
- SHOPIFY_STORE_DOMAIN: z.ZodString;
146
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
147
- }, z.core.$strip>>[] | undefined>], undefined>;
137
+ }, z.core.$strip>>], undefined>;
148
138
  declare const updateOrder: _keystrokehq_core0.Operation<z.ZodObject<{
149
139
  id: z.ZodString;
150
140
  email: z.ZodOptional<z.ZodEmail>;
@@ -192,13 +182,10 @@ declare const updateOrder: _keystrokehq_core0.Operation<z.ZodObject<{
192
182
  createdAt: z.ZodOptional<z.ZodISODateTime>;
193
183
  updatedAt: z.ZodOptional<z.ZodISODateTime>;
194
184
  }, z.core.$strip>>>;
195
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
196
- SHOPIFY_STORE_DOMAIN: z.ZodString;
197
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
198
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
185
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
199
186
  SHOPIFY_STORE_DOMAIN: z.ZodString;
200
187
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
201
- }, z.core.$strip>>[] | undefined>], undefined>;
188
+ }, z.core.$strip>>], undefined>;
202
189
  declare const cancelOrder: _keystrokehq_core0.Operation<z.ZodObject<{
203
190
  orderId: z.ZodString;
204
191
  reason: z.ZodEnum<{
@@ -218,12 +205,9 @@ declare const cancelOrder: _keystrokehq_core0.Operation<z.ZodObject<{
218
205
  }, z.core.$strip>, z.ZodObject<{
219
206
  id: z.ZodString;
220
207
  done: z.ZodOptional<z.ZodBoolean>;
221
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
222
- SHOPIFY_STORE_DOMAIN: z.ZodString;
223
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
224
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
208
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
225
209
  SHOPIFY_STORE_DOMAIN: z.ZodString;
226
210
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
227
- }, z.core.$strip>>[] | undefined>], undefined>;
211
+ }, z.core.$strip>>], undefined>;
228
212
  //#endregion
229
213
  export { cancelOrder, createOrder, getOrder, listOrders, updateOrder };
package/dist/orders.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { shopifyConnectionNodesSchema, shopifyGlobalIdSchema, shopifyJobSchema, 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
 
@@ -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/products.d.ts
6
5
  declare const listProducts: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -35,13 +34,10 @@ declare const listProducts: _keystrokehq_core0.Operation<z.ZodObject<{
35
34
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
35
  endCursor: z.ZodNullable<z.ZodString>;
37
36
  }, z.core.$strip>;
38
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
39
- SHOPIFY_STORE_DOMAIN: z.ZodString;
40
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
41
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
37
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
42
38
  SHOPIFY_STORE_DOMAIN: z.ZodString;
43
39
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
44
- }, z.core.$strip>>[] | undefined>], undefined>;
40
+ }, z.core.$strip>>], undefined>;
45
41
  declare const getProduct: _keystrokehq_core0.Operation<z.ZodObject<{
46
42
  id: z.ZodString;
47
43
  }, z.core.$strip>, z.ZodObject<{
@@ -64,13 +60,10 @@ declare const getProduct: _keystrokehq_core0.Operation<z.ZodObject<{
64
60
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
61
  }, z.core.$strip>>>;
66
62
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
67
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
68
- SHOPIFY_STORE_DOMAIN: z.ZodString;
69
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
70
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
63
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
71
64
  SHOPIFY_STORE_DOMAIN: z.ZodString;
72
65
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
73
- }, z.core.$strip>>[] | undefined>], undefined>;
66
+ }, z.core.$strip>>], undefined>;
74
67
  declare const createProduct: _keystrokehq_core0.Operation<z.ZodObject<{
75
68
  handle: z.ZodOptional<z.ZodString>;
76
69
  descriptionHtml: z.ZodOptional<z.ZodString>;
@@ -98,13 +91,10 @@ declare const createProduct: _keystrokehq_core0.Operation<z.ZodObject<{
98
91
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
92
  }, z.core.$strip>>>;
100
93
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
101
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
94
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
102
95
  SHOPIFY_STORE_DOMAIN: z.ZodString;
103
96
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
104
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
105
- SHOPIFY_STORE_DOMAIN: z.ZodString;
106
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
107
- }, z.core.$strip>>[] | undefined>], undefined>;
97
+ }, z.core.$strip>>], undefined>;
108
98
  declare const updateProduct: _keystrokehq_core0.Operation<z.ZodObject<{
109
99
  title: z.ZodOptional<z.ZodString>;
110
100
  handle: z.ZodOptional<z.ZodString>;
@@ -133,23 +123,17 @@ declare const updateProduct: _keystrokehq_core0.Operation<z.ZodObject<{
133
123
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
124
  }, z.core.$strip>>>;
135
125
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
136
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
137
- SHOPIFY_STORE_DOMAIN: z.ZodString;
138
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
139
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
126
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
140
127
  SHOPIFY_STORE_DOMAIN: z.ZodString;
141
128
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
142
- }, z.core.$strip>>[] | undefined>], undefined>;
129
+ }, z.core.$strip>>], undefined>;
143
130
  declare const deleteProduct: _keystrokehq_core0.Operation<z.ZodObject<{
144
131
  id: z.ZodString;
145
132
  }, z.core.$strip>, z.ZodObject<{
146
133
  deletedProductId: z.ZodString;
147
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
148
- SHOPIFY_STORE_DOMAIN: z.ZodString;
149
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
150
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
134
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
151
135
  SHOPIFY_STORE_DOMAIN: z.ZodString;
152
136
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
153
- }, z.core.$strip>>[] | undefined>], undefined>;
137
+ }, z.core.$strip>>], undefined>;
154
138
  //#endregion
155
139
  export { createProduct, deleteProduct, getProduct, listProducts, updateProduct };
package/dist/products.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { shopifyConnectionNodesSchema, shopifyGlobalIdSchema, shopifyProductSchema, 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/schemas.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { i as shopifyStoreDomainSchema } from "./integration-vSl3XHTG.mjs";
1
+ import { i as shopifyStoreDomainSchema } from "./integration-B5LK_0eR.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/schemas.ts
package/dist/shop.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/shop.d.ts
6
5
  declare const getShop: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
@@ -9,12 +8,9 @@ declare const getShop: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$stri
9
8
  myshopifyDomain: z.ZodString;
10
9
  contactEmail: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
11
10
  currencyCode: z.ZodOptional<z.ZodString>;
12
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
13
- SHOPIFY_STORE_DOMAIN: z.ZodString;
14
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
15
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
11
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:shopify", z.ZodObject<{
16
12
  SHOPIFY_STORE_DOMAIN: z.ZodString;
17
13
  SHOPIFY_ACCESS_TOKEN: z.ZodString;
18
- }, z.core.$strip>>[] | undefined>], undefined>;
14
+ }, z.core.$strip>>], undefined>;
19
15
  //#endregion
20
16
  export { getShop };
package/dist/shop.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { shopifyShopSchema } 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 { z } from "zod";
5
5
 
6
6
  //#region src/shop.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/shopify",
3
- "version": "0.0.11",
3
+ "version": "0.0.15",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -84,22 +84,21 @@
84
84
  "LICENSE"
85
85
  ],
86
86
  "dependencies": {
87
+ "@keystrokehq/integration-authoring": "^0.0.9",
87
88
  "@shopify/admin-api-client": "^1.1.2",
88
89
  "zod": "^4.3.6"
89
90
  },
90
91
  "peerDependencies": {
91
- "@keystrokehq/core": ">=0.0.8 <0.1.0"
92
+ "@keystrokehq/core": ">=0.0.13 <0.1.0"
92
93
  },
93
94
  "devDependencies": {
94
95
  "@types/node": "^22.19.11",
95
96
  "tsdown": "^0.20.3",
96
97
  "typescript": "^5.9.3",
97
98
  "vitest": "^4.0.18",
98
- "@keystrokehq/core": "^0.0.12",
99
+ "@keystrokehq/core": "^0.0.13",
99
100
  "@keystrokehq/test-utils": "0.0.0",
100
- "@keystrokehq/integration-authoring": "0.0.9",
101
- "@keystrokehq/typescript-config": "0.0.0",
102
- "@keystrokehq/credential-connection": "1.0.0"
101
+ "@keystrokehq/typescript-config": "0.0.0"
103
102
  },
104
103
  "keywords": [
105
104
  "shopify",
@@ -1,7 +0,0 @@
1
- import { s as createOfficialOperationFactory, t as shopify } from "./integration-vSl3XHTG.mjs";
2
-
3
- //#region src/factory.ts
4
- const shopifyOperation = createOfficialOperationFactory(shopify);
5
-
6
- //#endregion
7
- export { shopifyOperation as t };
@@ -1,70 +0,0 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
- import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
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
- connections: {
16
- kind: "oauth";
17
- tokenType: "refreshable";
18
- authUrl: "https://{shop}.myshopify.com/admin/oauth/authorize";
19
- tokenUrl: "https://{shop}.myshopify.com/admin/oauth/access_token";
20
- revokeUrl: null;
21
- scopes: readonly ["read_products", "write_products", "read_orders", "write_orders", "read_customers", "write_customers", "read_inventory", "write_inventory", "read_locations", "read_fulfillments", "write_fulfillments", "read_content", "write_content", "read_webhooks", "write_webhooks"];
22
- vault: {
23
- readonly accessToken: "SHOPIFY_ACCESS_TOKEN";
24
- readonly raw: {
25
- readonly SHOPIFY_STORE_DOMAIN: "_shopifyShopDomain";
26
- };
27
- };
28
- buildAuthUrl: ({
29
- oauthClient,
30
- redirectUri,
31
- state,
32
- connection,
33
- initiateInput,
34
- requestedScopes
35
- }: _keystrokehq_core_credential_set0.BuildAuthUrlContext) => string;
36
- exchangeCode: ({
37
- oauthClient,
38
- code,
39
- queryParams
40
- }: _keystrokehq_core_credential_set0.ExchangeCodeContext) => Promise<_keystrokehq_core_credential_set0.TokenResult>;
41
- refreshToken: ({
42
- oauthClient,
43
- refreshToken
44
- }: _keystrokehq_core_credential_set0.RefreshTokenContext) => Promise<_keystrokehq_core_credential_set0.TokenResult>;
45
- extractInstallationInfo: ({
46
- tokenResult
47
- }: _keystrokehq_core_credential_set0.ExtractInstallationContext) => {
48
- externalInstallationId: string | undefined;
49
- externalWorkspaceId: string | undefined;
50
- metadata: {
51
- shopDomain: string;
52
- } | undefined;
53
- };
54
- id: string;
55
- }[];
56
- };
57
- declare const shopifyBundle: undefined<"shopify", z.ZodObject<{
58
- SHOPIFY_STORE_DOMAIN: z.ZodString;
59
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
60
- }, z.core.$strip>>;
61
- declare const shopify: _keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
62
- SHOPIFY_STORE_DOMAIN: z.ZodString;
63
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
64
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
65
- SHOPIFY_STORE_DOMAIN: z.ZodString;
66
- SHOPIFY_ACCESS_TOKEN: z.ZodString;
67
- }, z.core.$strip>>[] | undefined>;
68
- type ShopifyCredentials = InferCredentialSetAuth<typeof shopify>;
69
- //#endregion
70
- export { shopifyOfficialIntegration as i, shopify as n, shopifyBundle as r, ShopifyCredentials as t };