@keystrokehq/shopify 0.0.5 → 0.0.6-rename-t1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/_official/index.d.mts +8 -8
- package/dist/_official/index.mjs +2 -2
- package/dist/articles.mjs +1 -1
- package/dist/blogs.mjs +1 -1
- package/dist/client.mjs +1 -1
- package/dist/collections.mjs +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/customers.mjs +1 -1
- package/dist/{factory-DgZsA1YB.mjs → factory-BQsdrC0B.mjs} +1 -1
- package/dist/fulfillments.mjs +1 -1
- package/dist/{integration-Bo2QSs3C.mjs → integration-CTvqYMCL.mjs} +14 -14
- package/dist/inventory.mjs +1 -1
- package/dist/locations.mjs +1 -1
- package/dist/orders.mjs +1 -1
- package/dist/products.mjs +1 -1
- package/dist/schemas.mjs +1 -1
- package/dist/shop.mjs +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -155,10 +155,10 @@ Set up `.env.test` with at least:
|
|
|
155
155
|
- `SHOPIFY_LIVE_ACCESS_TOKEN`
|
|
156
156
|
- `SHOPIFY_LIVE_REFRESH_TOKEN` for control-plane refresh coverage
|
|
157
157
|
- `PUBLIC_SERVER_URL` for webhook subscription coverage
|
|
158
|
-
- `
|
|
159
|
-
- `
|
|
160
|
-
- `
|
|
161
|
-
- `
|
|
158
|
+
- `KEYSTROKE_OFFICIAL_SHOPIFY_APP_ID`
|
|
159
|
+
- `KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_ID`
|
|
160
|
+
- `KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_SECRET`
|
|
161
|
+
- `KEYSTROKE_OFFICIAL_SHOPIFY_WEBHOOK_SECRET`
|
|
162
162
|
|
|
163
163
|
Recommended execution flow:
|
|
164
164
|
|
|
@@ -14,19 +14,19 @@ declare const shopifyAppCredentialSet: CredentialSet<"keystroke:shopify-app", z.
|
|
|
14
14
|
clientSecret: z.ZodString;
|
|
15
15
|
webhookSecret: z.ZodString;
|
|
16
16
|
}, z.core.$strip>>[] | undefined>;
|
|
17
|
-
declare const
|
|
17
|
+
declare const shopifyOfficialProviderSeed: {
|
|
18
18
|
readonly provider: "shopify";
|
|
19
19
|
readonly appRef: "shopify-platform";
|
|
20
20
|
readonly displayName: "Shopify Platform";
|
|
21
21
|
readonly credentialSetName: "Keystroke Shopify Platform App";
|
|
22
22
|
readonly envShape: {
|
|
23
|
-
readonly
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
23
|
+
readonly KEYSTROKE_OFFICIAL_SHOPIFY_APP_ID: z.ZodOptional<z.ZodString>;
|
|
24
|
+
readonly KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_ID: z.ZodOptional<z.ZodString>;
|
|
25
|
+
readonly KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_SECRET: z.ZodOptional<z.ZodString>;
|
|
26
|
+
readonly KEYSTROKE_OFFICIAL_SHOPIFY_WEBHOOK_SECRET: z.ZodOptional<z.ZodString>;
|
|
27
27
|
};
|
|
28
|
-
readonly requiredEnvKeys: readonly ["
|
|
29
|
-
readonly externalAppIdEnvKey: "
|
|
28
|
+
readonly requiredEnvKeys: readonly ["KEYSTROKE_OFFICIAL_SHOPIFY_APP_ID", "KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_ID", "KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_SECRET", "KEYSTROKE_OFFICIAL_SHOPIFY_WEBHOOK_SECRET"];
|
|
29
|
+
readonly externalAppIdEnvKey: "KEYSTROKE_OFFICIAL_SHOPIFY_APP_ID";
|
|
30
30
|
readonly buildCredentials: (env: Record<string, string | undefined>) => {
|
|
31
31
|
clientId: string | undefined;
|
|
32
32
|
clientSecret: string | undefined;
|
|
@@ -35,4 +35,4 @@ declare const shopifyPlatformProviderSeed: {
|
|
|
35
35
|
};
|
|
36
36
|
type ShopifyAppCredentials = InferCredentialSetAuth<typeof shopifyAppCredentialSet>;
|
|
37
37
|
//#endregion
|
|
38
|
-
export { type ShopifyAppCredentials, type ShopifyCredentials, shopify, shopifyAppCredentialSet, shopifyBundle, shopifyOfficialIntegration,
|
|
38
|
+
export { type ShopifyAppCredentials, type ShopifyCredentials, shopify, shopifyAppCredentialSet, shopifyBundle, shopifyOfficialIntegration, shopifyOfficialProviderSeed };
|
package/dist/_official/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as shopifyAppCredentialSet, n as shopifyBundle, o as
|
|
1
|
+
import { a as shopifyAppCredentialSet, n as shopifyBundle, o as shopifyOfficialProviderSeed, r as shopifyOfficialIntegration, t as shopify } from "../integration-CTvqYMCL.mjs";
|
|
2
2
|
|
|
3
|
-
export { shopify, shopifyAppCredentialSet, shopifyBundle, shopifyOfficialIntegration,
|
|
3
|
+
export { shopify, shopifyAppCredentialSet, shopifyBundle, shopifyOfficialIntegration, shopifyOfficialProviderSeed };
|
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-BQsdrC0B.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.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-BQsdrC0B.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.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as shopify } from "./integration-
|
|
1
|
+
import { t as shopify } from "./integration-CTvqYMCL.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.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-BQsdrC0B.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.mjs
CHANGED
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-BQsdrC0B.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.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-BQsdrC0B.mjs";
|
|
4
4
|
import { t as assertNoUserErrors } from "./operation-helpers-CKEDIx0o.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
@@ -15,28 +15,28 @@ const shopifyAppCredentialSet = new CredentialSet({
|
|
|
15
15
|
webhookSecret: z.string()
|
|
16
16
|
})
|
|
17
17
|
});
|
|
18
|
-
const
|
|
18
|
+
const shopifyOfficialProviderSeed = {
|
|
19
19
|
provider: "shopify",
|
|
20
20
|
appRef: "shopify-platform",
|
|
21
21
|
displayName: "Shopify Platform",
|
|
22
22
|
credentialSetName: "Keystroke Shopify Platform App",
|
|
23
23
|
envShape: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
KEYSTROKE_OFFICIAL_SHOPIFY_APP_ID: z.string().optional(),
|
|
25
|
+
KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_ID: z.string().optional(),
|
|
26
|
+
KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_SECRET: z.string().optional(),
|
|
27
|
+
KEYSTROKE_OFFICIAL_SHOPIFY_WEBHOOK_SECRET: z.string().optional()
|
|
28
28
|
},
|
|
29
29
|
requiredEnvKeys: [
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
30
|
+
"KEYSTROKE_OFFICIAL_SHOPIFY_APP_ID",
|
|
31
|
+
"KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_ID",
|
|
32
|
+
"KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_SECRET",
|
|
33
|
+
"KEYSTROKE_OFFICIAL_SHOPIFY_WEBHOOK_SECRET"
|
|
34
34
|
],
|
|
35
|
-
externalAppIdEnvKey: "
|
|
35
|
+
externalAppIdEnvKey: "KEYSTROKE_OFFICIAL_SHOPIFY_APP_ID",
|
|
36
36
|
buildCredentials: (env) => ({
|
|
37
|
-
clientId: env.
|
|
38
|
-
clientSecret: env.
|
|
39
|
-
webhookSecret: env.
|
|
37
|
+
clientId: env.KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_ID,
|
|
38
|
+
clientSecret: env.KEYSTROKE_OFFICIAL_SHOPIFY_CLIENT_SECRET,
|
|
39
|
+
webhookSecret: env.KEYSTROKE_OFFICIAL_SHOPIFY_WEBHOOK_SECRET
|
|
40
40
|
})
|
|
41
41
|
};
|
|
42
42
|
|
|
@@ -201,4 +201,4 @@ const shopifyBundle = defineOfficialIntegration({
|
|
|
201
201
|
const shopify = shopifyBundle.credentialSet;
|
|
202
202
|
|
|
203
203
|
//#endregion
|
|
204
|
-
export { shopifyAppCredentialSet as a, shopifyStoreDomainSchema as i, shopifyBundle as n,
|
|
204
|
+
export { shopifyAppCredentialSet as a, shopifyStoreDomainSchema as i, shopifyBundle as n, shopifyOfficialProviderSeed as o, shopifyOfficialIntegration as r, shopify as t };
|
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-BQsdrC0B.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.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-BQsdrC0B.mjs";
|
|
4
4
|
import { r as shopifyPageInputSchema } from "./operation-helpers-CKEDIx0o.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
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-BQsdrC0B.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.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-BQsdrC0B.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.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-BQsdrC0B.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.6-rename-t1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"LICENSE"
|
|
85
85
|
],
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@keystrokehq/credential-connection": "^0.0.
|
|
88
|
-
"@keystrokehq/integration-authoring": "^0.0.
|
|
87
|
+
"@keystrokehq/credential-connection": "^0.0.5-rename-t1.0",
|
|
88
|
+
"@keystrokehq/integration-authoring": "^0.0.6-rename-t1.0",
|
|
89
89
|
"@shopify/admin-api-client": "^1.1.2",
|
|
90
90
|
"zod": "^4.3.6"
|
|
91
91
|
},
|