@keystrokehq/shopify 0.0.10 → 0.0.11
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/dist/_official/index.d.mts +2 -2
- package/dist/_official/index.mjs +1 -1
- package/dist/_runtime/index.d.mts +1 -1
- package/dist/articles.d.mts +6 -6
- package/dist/articles.mjs +1 -1
- package/dist/blogs.d.mts +6 -6
- package/dist/blogs.mjs +1 -1
- package/dist/client.d.mts +1 -1
- package/dist/client.mjs +1 -1
- package/dist/collections.d.mts +7 -7
- package/dist/collections.mjs +1 -1
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/customers.d.mts +7 -7
- package/dist/customers.mjs +1 -1
- package/dist/factory-BKmxl2-8.mjs +7 -0
- package/dist/fulfillments.d.mts +4 -4
- package/dist/fulfillments.mjs +1 -1
- package/dist/{integration-D5cqyAen.d.mts → integration-HrSKAMfF.d.mts} +3 -4
- package/dist/{integration-CTvqYMCL.mjs → integration-vSl3XHTG.mjs} +140 -4
- package/dist/inventory.d.mts +5 -5
- package/dist/inventory.mjs +1 -1
- package/dist/locations.d.mts +3 -3
- package/dist/locations.mjs +1 -1
- package/dist/orders.d.mts +6 -6
- package/dist/orders.mjs +1 -1
- package/dist/products.d.mts +6 -6
- package/dist/products.mjs +1 -1
- package/dist/schemas.mjs +1 -1
- package/dist/shop.d.mts +2 -2
- package/dist/shop.mjs +1 -1
- package/package.json +5 -5
- package/dist/factory-BQsdrC0B.mjs +0 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as shopifyOfficialIntegration, n as shopify, r as shopifyBundle, t as ShopifyCredentials } from "../integration-
|
|
2
|
-
import { z } from "zod";
|
|
1
|
+
import { i as shopifyOfficialIntegration, n as shopify, r as shopifyBundle, t as ShopifyCredentials } from "../integration-HrSKAMfF.mjs";
|
|
3
2
|
import { CredentialSet } from "@keystrokehq/core";
|
|
3
|
+
import { z } from "zod";
|
|
4
4
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
5
5
|
import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
|
|
6
6
|
|
package/dist/_official/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as shopifyAppCredentialSet, n as shopifyBundle, o as shopifyOfficialProviderSeed, r as shopifyOfficialIntegration, t as shopify } from "../integration-
|
|
1
|
+
import { a as shopifyAppCredentialSet, n as shopifyBundle, o as shopifyOfficialProviderSeed, r as shopifyOfficialIntegration, t as shopify } from "../integration-vSl3XHTG.mjs";
|
|
2
2
|
|
|
3
3
|
export { shopify, shopifyAppCredentialSet, shopifyBundle, shopifyOfficialIntegration, shopifyOfficialProviderSeed };
|
package/dist/articles.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/articles.d.ts
|
|
@@ -38,7 +38,7 @@ declare const listArticles: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
38
38
|
startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
39
|
endCursor: z.ZodNullable<z.ZodString>;
|
|
40
40
|
}, z.core.$strip>;
|
|
41
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
41
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
42
42
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
43
43
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
44
44
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -70,7 +70,7 @@ declare const getArticle: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
70
70
|
}, z.core.$strip>>>;
|
|
71
71
|
publishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
72
72
|
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
73
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
73
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
74
74
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
75
75
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
76
76
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -110,7 +110,7 @@ declare const createArticle: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
110
110
|
}, z.core.$strip>>>;
|
|
111
111
|
publishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
112
112
|
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
113
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
113
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
114
114
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
115
115
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
116
116
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -152,7 +152,7 @@ declare const updateArticle: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
152
152
|
}, z.core.$strip>>>;
|
|
153
153
|
publishedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
154
154
|
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
155
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
155
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
156
156
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
157
157
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
158
158
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -163,7 +163,7 @@ declare const deleteArticle: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
163
163
|
id: z.ZodString;
|
|
164
164
|
}, z.core.$strip>, z.ZodObject<{
|
|
165
165
|
deletedArticleId: z.ZodString;
|
|
166
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
166
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
167
167
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
168
168
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
169
169
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
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-
|
|
3
|
+
import { t as shopifyOperation } from "./factory-BKmxl2-8.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,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/blogs.d.ts
|
|
@@ -23,7 +23,7 @@ declare const listBlogs: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
23
23
|
startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
endCursor: z.ZodNullable<z.ZodString>;
|
|
25
25
|
}, z.core.$strip>;
|
|
26
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
26
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
27
27
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
28
28
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
29
29
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -40,7 +40,7 @@ declare const getBlog: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
40
40
|
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
41
41
|
commentPolicy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
42
|
templateSuffix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
43
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
44
44
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
45
45
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
46
46
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -65,7 +65,7 @@ declare const createBlog: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
65
65
|
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
66
66
|
commentPolicy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
67
|
templateSuffix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
68
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
69
69
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
70
70
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
71
71
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -91,7 +91,7 @@ declare const updateBlog: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
91
91
|
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
92
92
|
commentPolicy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
93
|
templateSuffix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
94
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
95
95
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
96
96
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
97
97
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -102,7 +102,7 @@ declare const deleteBlog: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
102
102
|
id: z.ZodString;
|
|
103
103
|
}, z.core.$strip>, z.ZodObject<{
|
|
104
104
|
deletedBlogId: z.ZodString;
|
|
105
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
105
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
106
106
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
107
107
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
108
108
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
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-
|
|
3
|
+
import { t as shopifyOperation } from "./factory-BKmxl2-8.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
package/dist/client.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as shopify } from "./integration-
|
|
1
|
+
import { t as shopify } from "./integration-vSl3XHTG.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";
|
package/dist/collections.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/collections.d.ts
|
|
@@ -29,7 +29,7 @@ declare const listCollections: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
29
29
|
startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
endCursor: z.ZodNullable<z.ZodString>;
|
|
31
31
|
}, z.core.$strip>;
|
|
32
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
32
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
33
33
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
34
34
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
35
35
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -52,7 +52,7 @@ declare const getCollection: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
52
52
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
53
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
54
|
}, z.core.$strip>>>;
|
|
55
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
55
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
56
56
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
57
57
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
58
58
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -81,7 +81,7 @@ declare const createCollection: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
81
81
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
82
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
83
|
}, z.core.$strip>>>;
|
|
84
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
84
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
85
85
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
86
86
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
87
87
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -92,7 +92,7 @@ declare const deleteCollection: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
92
92
|
id: z.ZodString;
|
|
93
93
|
}, z.core.$strip>, z.ZodObject<{
|
|
94
94
|
deletedCollectionId: z.ZodString;
|
|
95
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
95
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
96
96
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
97
97
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
98
98
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -116,7 +116,7 @@ declare const addProductsToCollection: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
116
116
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
117
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
118
|
}, z.core.$strip>>>;
|
|
119
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
119
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
120
120
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
121
121
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
122
122
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -129,7 +129,7 @@ declare const removeProductsFromCollection: _keystrokehq_core0.Operation<z.ZodOb
|
|
|
129
129
|
}, z.core.$strip>, z.ZodObject<{
|
|
130
130
|
id: z.ZodString;
|
|
131
131
|
done: z.ZodOptional<z.ZodBoolean>;
|
|
132
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
132
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
133
133
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
134
134
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
135
135
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
package/dist/collections.mjs
CHANGED
|
@@ -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-
|
|
3
|
+
import { t as shopifyOperation } from "./factory-BKmxl2-8.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
|
|
package/dist/connection.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as shopify, t as ShopifyCredentials } from "./integration-
|
|
1
|
+
import { n as shopify, t as ShopifyCredentials } from "./integration-HrSKAMfF.mjs";
|
|
2
2
|
export { type ShopifyCredentials, shopify };
|
package/dist/connection.mjs
CHANGED
package/dist/customers.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/customers.d.ts
|
|
@@ -24,7 +24,7 @@ declare const listCustomers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
24
24
|
startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
endCursor: z.ZodNullable<z.ZodString>;
|
|
26
26
|
}, z.core.$strip>;
|
|
27
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
27
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
28
28
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
29
29
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
30
30
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -42,7 +42,7 @@ declare const getCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
42
42
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
43
|
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
44
44
|
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
45
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
45
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
46
46
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
47
47
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
48
48
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -65,7 +65,7 @@ declare const createCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
65
65
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
66
|
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
67
67
|
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
68
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
68
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
69
69
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
70
70
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
71
71
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -89,7 +89,7 @@ declare const updateCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
89
89
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
90
|
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
91
91
|
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
92
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
92
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
93
93
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
94
94
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
95
95
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -100,7 +100,7 @@ declare const deleteCustomer: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
100
100
|
id: z.ZodString;
|
|
101
101
|
}, z.core.$strip>, z.ZodObject<{
|
|
102
102
|
deletedCustomerId: z.ZodString;
|
|
103
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
103
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
104
104
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
105
105
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
106
106
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -150,7 +150,7 @@ declare const getCustomerOrders: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
150
150
|
startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
151
151
|
endCursor: z.ZodNullable<z.ZodString>;
|
|
152
152
|
}, z.core.$strip>;
|
|
153
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
153
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
154
154
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
155
155
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
156
156
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
package/dist/customers.mjs
CHANGED
|
@@ -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-
|
|
3
|
+
import { t as shopifyOperation } from "./factory-BKmxl2-8.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/fulfillments.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/fulfillments.d.ts
|
|
@@ -43,7 +43,7 @@ declare const listFulfillmentOrdersForOrder: _keystrokehq_core0.Operation<z.ZodO
|
|
|
43
43
|
startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
44
|
endCursor: z.ZodNullable<z.ZodString>;
|
|
45
45
|
}, z.core.$strip>;
|
|
46
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
46
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
47
47
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
48
48
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
49
49
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -59,7 +59,7 @@ declare const getFulfillment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
59
59
|
number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
60
|
url: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
61
61
|
}, z.core.$strip>>>;
|
|
62
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
62
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
63
63
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
64
64
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
65
65
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -88,7 +88,7 @@ declare const createFulfillment: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
88
88
|
number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
89
|
url: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
90
90
|
}, z.core.$strip>>>;
|
|
91
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
91
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
92
92
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
93
93
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
94
94
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
package/dist/fulfillments.mjs
CHANGED
|
@@ -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-
|
|
3
|
+
import { t as shopifyOperation } from "./factory-BKmxl2-8.mjs";
|
|
4
4
|
import { t as assertNoUserErrors } from "./operation-helpers-CKEDIx0o.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as _keystrokehq_integration_authoring_official0 from "@keystrokehq/integration-authoring/official";
|
|
2
|
-
import { z } from "zod";
|
|
3
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
4
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
5
4
|
import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
|
|
6
5
|
|
|
@@ -55,11 +54,11 @@ declare const shopifyOfficialIntegration: {
|
|
|
55
54
|
id: string;
|
|
56
55
|
}[];
|
|
57
56
|
};
|
|
58
|
-
declare const shopifyBundle:
|
|
57
|
+
declare const shopifyBundle: undefined<"shopify", z.ZodObject<{
|
|
59
58
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
60
59
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
61
60
|
}, z.core.$strip>>;
|
|
62
|
-
declare const shopify: _keystrokehq_core0.CredentialSet<"
|
|
61
|
+
declare const shopify: _keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
63
62
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
64
63
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
65
64
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -1,9 +1,100 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CredentialSet, Operation } from "@keystrokehq/core";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { CredentialSet } from "@keystrokehq/core";
|
|
4
3
|
import { createHmac, timingSafeEqual } from "node:crypto";
|
|
5
|
-
import { TokenExchangeError, normalizeOAuthTokens, parseOAuthTokenResponse } from "@keystrokehq/credential-connection";
|
|
6
4
|
|
|
5
|
+
//#region ../../packages/integration-authoring/dist/official/runtime.mjs
|
|
6
|
+
const REGISTRY_KEY = "__ks_official_integration_metadata_registry";
|
|
7
|
+
function getRegistry() {
|
|
8
|
+
const globalStore = globalThis;
|
|
9
|
+
if (!globalStore[REGISTRY_KEY]) globalStore[REGISTRY_KEY] = /* @__PURE__ */ new WeakMap();
|
|
10
|
+
return globalStore[REGISTRY_KEY];
|
|
11
|
+
}
|
|
12
|
+
function registerOfficialOperation(operation, metadata) {
|
|
13
|
+
getRegistry().set(operation, Object.freeze({ ...metadata }));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region ../../packages/integration-authoring/dist/official/index.mjs
|
|
18
|
+
const OFFICIAL_CREDENTIAL_SET_ID_PREFIX = "keystroke:";
|
|
19
|
+
function officialCredentialSetId(id) {
|
|
20
|
+
return `${OFFICIAL_CREDENTIAL_SET_ID_PREFIX}${id}`;
|
|
21
|
+
}
|
|
22
|
+
function stripOfficialCredentialSetIdPrefix(id) {
|
|
23
|
+
return id.startsWith(OFFICIAL_CREDENTIAL_SET_ID_PREFIX) ? id.slice(10) : id;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Creates a factory for Keystroke-official integration operations.
|
|
27
|
+
*
|
|
28
|
+
* It keeps the same flat `run(input, credentials)` ergonomics as the generic
|
|
29
|
+
* operation factory, while registering official metadata for builder/runtime
|
|
30
|
+
* operation metadata.
|
|
31
|
+
*/
|
|
32
|
+
function createOfficialOperationFactory(credentialSet) {
|
|
33
|
+
const integrationId = stripOfficialCredentialSetIdPrefix(credentialSet.id);
|
|
34
|
+
return (config) => {
|
|
35
|
+
const wrappedRun = async (input, ctx) => {
|
|
36
|
+
const creds = ctx.credentials[credentialSet.id];
|
|
37
|
+
return config.run(input, creds);
|
|
38
|
+
};
|
|
39
|
+
const operation = new Operation({
|
|
40
|
+
id: config.id,
|
|
41
|
+
name: config.name,
|
|
42
|
+
description: config.description,
|
|
43
|
+
input: config.input,
|
|
44
|
+
output: config.output,
|
|
45
|
+
credentialSets: [credentialSet],
|
|
46
|
+
...config.tags !== void 0 ? { tags: config.tags } : {},
|
|
47
|
+
...config.needsApproval !== void 0 ? { needsApproval: config.needsApproval } : {},
|
|
48
|
+
...config.requiredOAuthScopes !== void 0 ? { requiredOAuthScopes: config.requiredOAuthScopes } : {},
|
|
49
|
+
...config.retries !== void 0 ? { retries: config.retries } : {},
|
|
50
|
+
...config.timeout !== void 0 ? { timeout: config.timeout } : {},
|
|
51
|
+
...config.maxDurationMs !== void 0 ? { maxDurationMs: config.maxDurationMs } : {},
|
|
52
|
+
run: wrappedRun
|
|
53
|
+
});
|
|
54
|
+
registerOfficialOperation(operation, { integrationId });
|
|
55
|
+
return operation;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Creates an official integration bundle from a single config object.
|
|
60
|
+
*
|
|
61
|
+
* - Creates the public `CredentialSet` internally.
|
|
62
|
+
* - Accepts optional `internal` fields for Keystroke-owned platform credentials.
|
|
63
|
+
*/
|
|
64
|
+
function defineOfficialIntegration(config) {
|
|
65
|
+
const internalCredentialSets = config.internal ?? {};
|
|
66
|
+
const allInternalCredentialSets = [
|
|
67
|
+
...internalCredentialSets.providerApp ? [internalCredentialSets.providerApp] : [],
|
|
68
|
+
...internalCredentialSets.providerAppVariants ?? [],
|
|
69
|
+
...internalCredentialSets.webhookVerification ? [internalCredentialSets.webhookVerification] : [],
|
|
70
|
+
...internalCredentialSets.other ?? []
|
|
71
|
+
];
|
|
72
|
+
const credentialSet = new CredentialSet({
|
|
73
|
+
id: config.id,
|
|
74
|
+
name: config.name,
|
|
75
|
+
description: config.description,
|
|
76
|
+
auth: config.auth,
|
|
77
|
+
...config.connections ? { connections: config.connections } : {},
|
|
78
|
+
...config.proxy ? { proxy: config.proxy } : {},
|
|
79
|
+
...config.needsRawSecret === true ? { needsRawSecret: true } : {}
|
|
80
|
+
});
|
|
81
|
+
return Object.freeze({
|
|
82
|
+
integration: {
|
|
83
|
+
id: config.id,
|
|
84
|
+
name: config.name,
|
|
85
|
+
...config.description !== void 0 ? { description: config.description } : {},
|
|
86
|
+
auth: config.auth,
|
|
87
|
+
...config.proxy ? { proxy: config.proxy } : {},
|
|
88
|
+
...config.needsRawSecret === true ? { needsRawSecret: true } : {},
|
|
89
|
+
...config.connections ? { connections: config.connections } : {}
|
|
90
|
+
},
|
|
91
|
+
credentialSet,
|
|
92
|
+
internalCredentialSets,
|
|
93
|
+
allInternalCredentialSets
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
//#endregion
|
|
7
98
|
//#region src/_official/provider-app.ts
|
|
8
99
|
const shopifyAppCredentialSet = new CredentialSet({
|
|
9
100
|
id: officialCredentialSetId("shopify-app"),
|
|
@@ -40,6 +131,51 @@ const shopifyOfficialProviderSeed = {
|
|
|
40
131
|
})
|
|
41
132
|
};
|
|
42
133
|
|
|
134
|
+
//#endregion
|
|
135
|
+
//#region ../../packages/credential-connection/dist/defaults-YE9AvLIc.mjs
|
|
136
|
+
/**
|
|
137
|
+
* Shared OAuth 2.0 token-response plumbing.
|
|
138
|
+
*
|
|
139
|
+
* `parseOAuthTokenResponse` handles the two common wire formats (JSON and
|
|
140
|
+
* form-urlencoded, the latter used by GitHub unless you explicitly ask for
|
|
141
|
+
* JSON). `normalizeOAuthTokens` pulls the standard fields out of the parsed
|
|
142
|
+
* body in both the flat form and Slack's nested `authed_user.access_token`
|
|
143
|
+
* form. These helpers are exposed so integration authors overriding
|
|
144
|
+
* `exchangeCode` / `refreshToken` do not have to re-implement them.
|
|
145
|
+
*/
|
|
146
|
+
var TokenExchangeError = class extends Error {
|
|
147
|
+
httpStatus;
|
|
148
|
+
constructor(httpStatus) {
|
|
149
|
+
super(`Token exchange failed: HTTP ${httpStatus}`);
|
|
150
|
+
this.name = "TokenExchangeError";
|
|
151
|
+
this.httpStatus = httpStatus;
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
async function parseOAuthTokenResponse(response) {
|
|
155
|
+
const contentType = response.headers.get("content-type")?.toLowerCase() ?? "";
|
|
156
|
+
if (contentType.includes("application/json")) return await response.json();
|
|
157
|
+
const text = await response.text();
|
|
158
|
+
if (!text.trim()) return {};
|
|
159
|
+
if (contentType.includes("application/x-www-form-urlencoded") || text.includes("=")) {
|
|
160
|
+
const params = new URLSearchParams(text);
|
|
161
|
+
return Object.fromEntries(params.entries());
|
|
162
|
+
}
|
|
163
|
+
throw new Error(`Unsupported OAuth token response content type: ${contentType || "unknown"}`);
|
|
164
|
+
}
|
|
165
|
+
function normalizeOAuthTokens(tokenData) {
|
|
166
|
+
const authedUser = tokenData.authed_user;
|
|
167
|
+
const rawAccessToken = tokenData.access_token ?? authedUser?.access_token;
|
|
168
|
+
const rawRefreshToken = tokenData.refresh_token;
|
|
169
|
+
const rawExpiresIn = tokenData.expires_in;
|
|
170
|
+
const rawInstanceUrl = tokenData.instance_url;
|
|
171
|
+
return {
|
|
172
|
+
accessToken: typeof rawAccessToken === "string" ? rawAccessToken : void 0,
|
|
173
|
+
refreshToken: typeof rawRefreshToken === "string" ? rawRefreshToken : void 0,
|
|
174
|
+
expiresIn: typeof rawExpiresIn === "number" ? rawExpiresIn : typeof rawExpiresIn === "string" ? Number(rawExpiresIn) || void 0 : void 0,
|
|
175
|
+
instanceUrl: typeof rawInstanceUrl === "string" ? rawInstanceUrl : void 0
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
|
|
43
179
|
//#endregion
|
|
44
180
|
//#region src/oauth-connection.ts
|
|
45
181
|
/**
|
|
@@ -201,4 +337,4 @@ const shopifyBundle = defineOfficialIntegration({
|
|
|
201
337
|
const shopify = shopifyBundle.credentialSet;
|
|
202
338
|
|
|
203
339
|
//#endregion
|
|
204
|
-
export { shopifyAppCredentialSet as a, shopifyStoreDomainSchema as i, shopifyBundle as n, shopifyOfficialProviderSeed as o, shopifyOfficialIntegration as r, shopify as t };
|
|
340
|
+
export { shopifyAppCredentialSet as a, shopifyStoreDomainSchema as i, shopifyBundle as n, shopifyOfficialProviderSeed as o, shopifyOfficialIntegration as r, createOfficialOperationFactory as s, shopify as t };
|
package/dist/inventory.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/inventory.d.ts
|
|
@@ -19,7 +19,7 @@ declare const listInventoryItems: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
19
19
|
startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
endCursor: z.ZodNullable<z.ZodString>;
|
|
21
21
|
}, z.core.$strip>;
|
|
22
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
22
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
23
23
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
24
24
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
25
25
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -32,7 +32,7 @@ declare const getInventoryItem: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
32
32
|
id: z.ZodString;
|
|
33
33
|
sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
34
|
tracked: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
35
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
36
36
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
37
37
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
38
38
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -68,7 +68,7 @@ declare const getInventoryLevelsForItem: _keystrokehq_core0.Operation<z.ZodObjec
|
|
|
68
68
|
startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
69
|
endCursor: z.ZodNullable<z.ZodString>;
|
|
70
70
|
}, z.core.$strip>;
|
|
71
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
71
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
72
72
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
73
73
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
74
74
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -92,7 +92,7 @@ declare const adjustInventoryQuantities: _keystrokehq_core0.Operation<z.ZodObjec
|
|
|
92
92
|
name: z.ZodString;
|
|
93
93
|
delta: z.ZodNumber;
|
|
94
94
|
}, z.core.$strip>>;
|
|
95
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
95
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
96
96
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
97
97
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
98
98
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
package/dist/inventory.mjs
CHANGED
|
@@ -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-
|
|
3
|
+
import { t as shopifyOperation } from "./factory-BKmxl2-8.mjs";
|
|
4
4
|
import { r as shopifyPageInputSchema, t as assertNoUserErrors } from "./operation-helpers-CKEDIx0o.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
package/dist/locations.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/locations.d.ts
|
|
@@ -22,7 +22,7 @@ declare const listLocations: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
22
22
|
startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
23
|
endCursor: z.ZodNullable<z.ZodString>;
|
|
24
24
|
}, z.core.$strip>;
|
|
25
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
25
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
26
26
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
27
27
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
28
28
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -36,7 +36,7 @@ declare const getLocation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
36
36
|
name: z.ZodString;
|
|
37
37
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
38
38
|
fulfillsOnlineOrders: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
39
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
40
40
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
41
41
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
42
42
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
package/dist/locations.mjs
CHANGED
|
@@ -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-
|
|
3
|
+
import { t as shopifyOperation } from "./factory-BKmxl2-8.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,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/orders.d.ts
|
|
@@ -46,7 +46,7 @@ declare const listOrders: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
46
46
|
startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
47
|
endCursor: z.ZodNullable<z.ZodString>;
|
|
48
48
|
}, z.core.$strip>;
|
|
49
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
49
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
50
50
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
51
51
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
52
52
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -86,7 +86,7 @@ declare const getOrder: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
86
86
|
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
87
87
|
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
88
88
|
}, z.core.$strip>>>;
|
|
89
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
89
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
90
90
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
91
91
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
92
92
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -138,7 +138,7 @@ declare const createOrder: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
138
138
|
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
139
139
|
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
140
140
|
}, z.core.$strip>>>;
|
|
141
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
141
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
142
142
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
143
143
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
144
144
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -192,7 +192,7 @@ declare const updateOrder: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
192
192
|
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
193
193
|
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
194
194
|
}, z.core.$strip>>>;
|
|
195
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
195
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
196
196
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
197
197
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
198
198
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -218,7 +218,7 @@ declare const cancelOrder: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
218
218
|
}, z.core.$strip>, z.ZodObject<{
|
|
219
219
|
id: z.ZodString;
|
|
220
220
|
done: z.ZodOptional<z.ZodBoolean>;
|
|
221
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
221
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
222
222
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
223
223
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
224
224
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
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-
|
|
3
|
+
import { t as shopifyOperation } from "./factory-BKmxl2-8.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/products.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/products.d.ts
|
|
@@ -35,7 +35,7 @@ declare const listProducts: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
35
35
|
startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
36
|
endCursor: z.ZodNullable<z.ZodString>;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
38
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
39
39
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
40
40
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
41
41
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -64,7 +64,7 @@ declare const getProduct: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
64
64
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
65
|
}, z.core.$strip>>>;
|
|
66
66
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
67
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
67
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
68
68
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
69
69
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
70
70
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -98,7 +98,7 @@ declare const createProduct: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
98
98
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
99
|
}, z.core.$strip>>>;
|
|
100
100
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
101
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
101
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
102
102
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
103
103
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
104
104
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -133,7 +133,7 @@ declare const updateProduct: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
133
133
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
134
134
|
}, z.core.$strip>>>;
|
|
135
135
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
136
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
136
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
137
137
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
138
138
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
139
139
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -144,7 +144,7 @@ declare const deleteProduct: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
144
144
|
id: z.ZodString;
|
|
145
145
|
}, z.core.$strip>, z.ZodObject<{
|
|
146
146
|
deletedProductId: z.ZodString;
|
|
147
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
147
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
148
148
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
149
149
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
150
150
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
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-
|
|
3
|
+
import { t as shopifyOperation } from "./factory-BKmxl2-8.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
package/dist/shop.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/shop.d.ts
|
|
@@ -9,7 +9,7 @@ declare const getShop: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$stri
|
|
|
9
9
|
myshopifyDomain: z.ZodString;
|
|
10
10
|
contactEmail: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
|
|
11
11
|
currencyCode: z.ZodOptional<z.ZodString>;
|
|
12
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
12
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"shopify", z.ZodObject<{
|
|
13
13
|
SHOPIFY_STORE_DOMAIN: z.ZodString;
|
|
14
14
|
SHOPIFY_ACCESS_TOKEN: z.ZodString;
|
|
15
15
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
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-
|
|
3
|
+
import { t as shopifyOperation } from "./factory-BKmxl2-8.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.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -84,8 +84,6 @@
|
|
|
84
84
|
"LICENSE"
|
|
85
85
|
],
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@keystrokehq/credential-connection": "^1.0.0",
|
|
88
|
-
"@keystrokehq/integration-authoring": "^0.0.8",
|
|
89
87
|
"@shopify/admin-api-client": "^1.1.2",
|
|
90
88
|
"zod": "^4.3.6"
|
|
91
89
|
},
|
|
@@ -97,9 +95,11 @@
|
|
|
97
95
|
"tsdown": "^0.20.3",
|
|
98
96
|
"typescript": "^5.9.3",
|
|
99
97
|
"vitest": "^4.0.18",
|
|
100
|
-
"@keystrokehq/core": "^0.0.
|
|
98
|
+
"@keystrokehq/core": "^0.0.12",
|
|
101
99
|
"@keystrokehq/test-utils": "0.0.0",
|
|
102
|
-
"@keystrokehq/
|
|
100
|
+
"@keystrokehq/integration-authoring": "0.0.9",
|
|
101
|
+
"@keystrokehq/typescript-config": "0.0.0",
|
|
102
|
+
"@keystrokehq/credential-connection": "1.0.0"
|
|
103
103
|
},
|
|
104
104
|
"keywords": [
|
|
105
105
|
"shopify",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { t as shopify } from "./integration-CTvqYMCL.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 };
|