@keystrokehq/shopify 0.1.3 → 0.1.4

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.
@@ -7,6 +7,7 @@ declare const ShopifyCreateAMetafieldInput: z.ZodObject<{
7
7
  value: z.ZodString;
8
8
  resource: z.ZodEnum<{
9
9
  products: "products";
10
+ shop: "shop";
10
11
  customers: "customers";
11
12
  blogs: "blogs";
12
13
  collections: "collections";
@@ -18,7 +19,6 @@ declare const ShopifyCreateAMetafieldInput: z.ZodObject<{
18
19
  locations: "locations";
19
20
  product_images: "product_images";
20
21
  smart_collections: "smart_collections";
21
- shop: "shop";
22
22
  }>;
23
23
  namespace: z.ZodString;
24
24
  description: z.ZodOptional<z.ZodString>;
@@ -43,7 +43,7 @@ declare const shopifyCreateAMetafield: import("@keystrokehq/action").WorkflowAct
43
43
  key: string;
44
44
  type: string;
45
45
  value: string;
46
- resource: "products" | "customers" | "blogs" | "collections" | "orders" | "pages" | "variants" | "articles" | "draft_orders" | "locations" | "product_images" | "smart_collections" | "shop";
46
+ resource: "products" | "shop" | "customers" | "blogs" | "collections" | "orders" | "pages" | "variants" | "articles" | "draft_orders" | "locations" | "product_images" | "smart_collections";
47
47
  namespace: string;
48
48
  description?: string | undefined;
49
49
  resource_id?: string | undefined;
@@ -7,6 +7,7 @@ declare const ShopifyCreateAMetafieldInput: z.ZodObject<{
7
7
  value: z.ZodString;
8
8
  resource: z.ZodEnum<{
9
9
  products: "products";
10
+ shop: "shop";
10
11
  customers: "customers";
11
12
  blogs: "blogs";
12
13
  collections: "collections";
@@ -18,7 +19,6 @@ declare const ShopifyCreateAMetafieldInput: z.ZodObject<{
18
19
  locations: "locations";
19
20
  product_images: "product_images";
20
21
  smart_collections: "smart_collections";
21
- shop: "shop";
22
22
  }>;
23
23
  namespace: z.ZodString;
24
24
  description: z.ZodOptional<z.ZodString>;
@@ -43,7 +43,7 @@ declare const shopifyCreateAMetafield: import("@keystrokehq/action").WorkflowAct
43
43
  key: string;
44
44
  type: string;
45
45
  value: string;
46
- resource: "products" | "customers" | "blogs" | "collections" | "orders" | "pages" | "variants" | "articles" | "draft_orders" | "locations" | "product_images" | "smart_collections" | "shop";
46
+ resource: "products" | "shop" | "customers" | "blogs" | "collections" | "orders" | "pages" | "variants" | "articles" | "draft_orders" | "locations" | "product_images" | "smart_collections";
47
47
  namespace: string;
48
48
  description?: string | undefined;
49
49
  resource_id?: string | undefined;
@@ -101,8 +101,8 @@ declare const ShopifyCreateCustomerOutput: z.ZodObject<{
101
101
  multipass_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
102
  sms_marketing_consent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
103
103
  state: z.ZodNullable<z.ZodEnum<{
104
- not_subscribed: "not_subscribed";
105
104
  pending: "pending";
105
+ not_subscribed: "not_subscribed";
106
106
  subscribed: "subscribed";
107
107
  unsubscribed: "unsubscribed";
108
108
  }>>;
@@ -120,8 +120,8 @@ declare const ShopifyCreateCustomerOutput: z.ZodObject<{
120
120
  marketing_opt_in_level: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
121
  email_marketing_consent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
122
122
  state: z.ZodNullable<z.ZodEnum<{
123
- not_subscribed: "not_subscribed";
124
123
  pending: "pending";
124
+ not_subscribed: "not_subscribed";
125
125
  subscribed: "subscribed";
126
126
  unsubscribed: "unsubscribed";
127
127
  }>>;
@@ -101,8 +101,8 @@ declare const ShopifyCreateCustomerOutput: z.ZodObject<{
101
101
  multipass_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
102
  sms_marketing_consent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
103
103
  state: z.ZodNullable<z.ZodEnum<{
104
- not_subscribed: "not_subscribed";
105
104
  pending: "pending";
105
+ not_subscribed: "not_subscribed";
106
106
  subscribed: "subscribed";
107
107
  unsubscribed: "unsubscribed";
108
108
  }>>;
@@ -120,8 +120,8 @@ declare const ShopifyCreateCustomerOutput: z.ZodObject<{
120
120
  marketing_opt_in_level: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
121
  email_marketing_consent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
122
122
  state: z.ZodNullable<z.ZodEnum<{
123
- not_subscribed: "not_subscribed";
124
123
  pending: "pending";
124
+ not_subscribed: "not_subscribed";
125
125
  subscribed: "subscribed";
126
126
  unsubscribed: "unsubscribed";
127
127
  }>>;
@@ -39,9 +39,9 @@ declare const ShopifyCreateOrderInput: z.ZodObject<{
39
39
  }, z.core.$strip>>;
40
40
  financial_status: z.ZodOptional<z.ZodEnum<{
41
41
  pending: "pending";
42
- paid: "paid";
43
42
  authorized: "authorized";
44
43
  partially_paid: "partially_paid";
44
+ paid: "paid";
45
45
  partially_refunded: "partially_refunded";
46
46
  refunded: "refunded";
47
47
  voided: "voided";
@@ -402,7 +402,7 @@ declare const shopifyCreateOrder: import("@keystrokehq/action").WorkflowActionDe
402
402
  country_code?: string | undefined;
403
403
  province_code?: string | undefined;
404
404
  } | undefined;
405
- financial_status?: "pending" | "paid" | "authorized" | "partially_paid" | "partially_refunded" | "refunded" | "voided" | undefined;
405
+ financial_status?: "pending" | "authorized" | "partially_paid" | "paid" | "partially_refunded" | "refunded" | "voided" | undefined;
406
406
  shipping_address?: {
407
407
  zip?: string | undefined;
408
408
  city?: string | undefined;
@@ -39,9 +39,9 @@ declare const ShopifyCreateOrderInput: z.ZodObject<{
39
39
  }, z.core.$strip>>;
40
40
  financial_status: z.ZodOptional<z.ZodEnum<{
41
41
  pending: "pending";
42
- paid: "paid";
43
42
  authorized: "authorized";
44
43
  partially_paid: "partially_paid";
44
+ paid: "paid";
45
45
  partially_refunded: "partially_refunded";
46
46
  refunded: "refunded";
47
47
  voided: "voided";
@@ -402,7 +402,7 @@ declare const shopifyCreateOrder: import("@keystrokehq/action").WorkflowActionDe
402
402
  country_code?: string | undefined;
403
403
  province_code?: string | undefined;
404
404
  } | undefined;
405
- financial_status?: "pending" | "paid" | "authorized" | "partially_paid" | "partially_refunded" | "refunded" | "voided" | undefined;
405
+ financial_status?: "pending" | "authorized" | "partially_paid" | "paid" | "partially_refunded" | "refunded" | "voided" | undefined;
406
406
  shipping_address?: {
407
407
  zip?: string | undefined;
408
408
  city?: string | undefined;
@@ -29,8 +29,8 @@ declare const ShopifyCreateRefundInput: z.ZodObject<{
29
29
  }, z.core.$loose>>>;
30
30
  discrepancy_reason: z.ZodOptional<z.ZodEnum<{
31
31
  other: "other";
32
- restock: "restock";
33
32
  customer: "customer";
33
+ restock: "restock";
34
34
  damage: "damage";
35
35
  }>>;
36
36
  }, z.core.$strip>;
@@ -159,7 +159,7 @@ declare const shopifyCreateRefund: import("@keystrokehq/action").WorkflowActionD
159
159
  restock_type: "no_restock" | "cancel" | "return";
160
160
  location_id?: number | undefined;
161
161
  }[] | undefined;
162
- discrepancy_reason?: "other" | "restock" | "customer" | "damage" | undefined;
162
+ discrepancy_reason?: "other" | "customer" | "restock" | "damage" | undefined;
163
163
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
164
164
  //#endregion
165
165
  export { shopifyCreateRefund };
@@ -29,8 +29,8 @@ declare const ShopifyCreateRefundInput: z.ZodObject<{
29
29
  }, z.core.$loose>>>;
30
30
  discrepancy_reason: z.ZodOptional<z.ZodEnum<{
31
31
  other: "other";
32
- restock: "restock";
33
32
  customer: "customer";
33
+ restock: "restock";
34
34
  damage: "damage";
35
35
  }>>;
36
36
  }, z.core.$strip>;
@@ -159,7 +159,7 @@ declare const shopifyCreateRefund: import("@keystrokehq/action").WorkflowActionD
159
159
  restock_type: "no_restock" | "cancel" | "return";
160
160
  location_id?: number | undefined;
161
161
  }[] | undefined;
162
- discrepancy_reason?: "other" | "restock" | "customer" | "damage" | undefined;
162
+ discrepancy_reason?: "other" | "customer" | "restock" | "damage" | undefined;
163
163
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
164
164
  //#endregion
165
165
  export { shopifyCreateRefund };
package/dist/catalog.cjs CHANGED
@@ -9,11 +9,11 @@ const shopifyCatalog = {
9
9
  "authKind": "keystroke",
10
10
  "oauthScopes": [],
11
11
  "credentialFields": {
12
- "shop": {
12
+ "subdomain": {
13
13
  "label": "Store Subdomain",
14
14
  "description": "Your store's permanent myshopify.com name — the 'acme' in acme.myshopify.com. Find it under Settings → Domains; enter this name, not your custom domain."
15
15
  },
16
- "admin_api_access_token": {
16
+ "generic_api_key": {
17
17
  "label": "Admin Api Access Token",
18
18
  "secret": true,
19
19
  "description": "Your Admin API access token (starts with 'shpat_'). Create a custom app with the scopes you need, install it, then click 'Reveal token once' under API credentials."
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const shopifyCatalog = {\n \"slug\": \"shopify\",\n \"name\": \"Shopify\",\n \"description\": \"Shopify is an e-commerce platform. This toolkit is GraphQL-first for new Admin API automations while retaining legacy REST compatibility actions for older workflows and numeric-ID interoperability\",\n \"category\": \"eCommerce\",\n \"logo\": \"https://logos.composio.dev/api/shopify\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"shop\": {\n \"label\": \"Store Subdomain\",\n \"description\": \"Your store's permanent myshopify.com name — the 'acme' in acme.myshopify.com. Find it under Settings → Domains; enter this name, not your custom domain.\"\n },\n \"admin_api_access_token\": {\n \"label\": \"Admin Api Access Token\",\n \"secret\": true,\n \"description\": \"Your Admin API access token (starts with 'shpat_'). Create a custom app with the scopes you need, install it, then click 'Reveal token once' under API credentials.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,QAAQ;GACN,SAAS;GACT,eAAe;EACjB;EACA,0BAA0B;GACxB,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const shopifyCatalog = {\n \"slug\": \"shopify\",\n \"name\": \"Shopify\",\n \"description\": \"Shopify is an e-commerce platform. This toolkit is GraphQL-first for new Admin API automations while retaining legacy REST compatibility actions for older workflows and numeric-ID interoperability\",\n \"category\": \"eCommerce\",\n \"logo\": \"https://logos.composio.dev/api/shopify\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"subdomain\": {\n \"label\": \"Store Subdomain\",\n \"description\": \"Your store's permanent myshopify.com name — the 'acme' in acme.myshopify.com. Find it under Settings → Domains; enter this name, not your custom domain.\"\n },\n \"generic_api_key\": {\n \"label\": \"Admin Api Access Token\",\n \"secret\": true,\n \"description\": \"Your Admin API access token (starts with 'shpat_'). Create a custom app with the scopes you need, install it, then click 'Reveal token once' under API credentials.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,aAAa;GACX,SAAS;GACT,eAAe;EACjB;EACA,mBAAmB;GACjB,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
@@ -9,11 +9,11 @@ declare const shopifyCatalog: {
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
11
  readonly credentialFields: {
12
- readonly shop: {
12
+ readonly subdomain: {
13
13
  readonly label: "Store Subdomain";
14
14
  readonly description: "Your store's permanent myshopify.com name — the 'acme' in acme.myshopify.com. Find it under Settings → Domains; enter this name, not your custom domain.";
15
15
  };
16
- readonly admin_api_access_token: {
16
+ readonly generic_api_key: {
17
17
  readonly label: "Admin Api Access Token";
18
18
  readonly secret: true;
19
19
  readonly description: "Your Admin API access token (starts with 'shpat_'). Create a custom app with the scopes you need, install it, then click 'Reveal token once' under API credentials.";
@@ -9,11 +9,11 @@ declare const shopifyCatalog: {
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
11
  readonly credentialFields: {
12
- readonly shop: {
12
+ readonly subdomain: {
13
13
  readonly label: "Store Subdomain";
14
14
  readonly description: "Your store's permanent myshopify.com name — the 'acme' in acme.myshopify.com. Find it under Settings → Domains; enter this name, not your custom domain.";
15
15
  };
16
- readonly admin_api_access_token: {
16
+ readonly generic_api_key: {
17
17
  readonly label: "Admin Api Access Token";
18
18
  readonly secret: true;
19
19
  readonly description: "Your Admin API access token (starts with 'shpat_'). Create a custom app with the scopes you need, install it, then click 'Reveal token once' under API credentials.";
package/dist/catalog.mjs CHANGED
@@ -9,11 +9,11 @@ const shopifyCatalog = {
9
9
  "authKind": "keystroke",
10
10
  "oauthScopes": [],
11
11
  "credentialFields": {
12
- "shop": {
12
+ "subdomain": {
13
13
  "label": "Store Subdomain",
14
14
  "description": "Your store's permanent myshopify.com name — the 'acme' in acme.myshopify.com. Find it under Settings → Domains; enter this name, not your custom domain."
15
15
  },
16
- "admin_api_access_token": {
16
+ "generic_api_key": {
17
17
  "label": "Admin Api Access Token",
18
18
  "secret": true,
19
19
  "description": "Your Admin API access token (starts with 'shpat_'). Create a custom app with the scopes you need, install it, then click 'Reveal token once' under API credentials."
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const shopifyCatalog = {\n \"slug\": \"shopify\",\n \"name\": \"Shopify\",\n \"description\": \"Shopify is an e-commerce platform. This toolkit is GraphQL-first for new Admin API automations while retaining legacy REST compatibility actions for older workflows and numeric-ID interoperability\",\n \"category\": \"eCommerce\",\n \"logo\": \"https://logos.composio.dev/api/shopify\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"shop\": {\n \"label\": \"Store Subdomain\",\n \"description\": \"Your store's permanent myshopify.com name — the 'acme' in acme.myshopify.com. Find it under Settings → Domains; enter this name, not your custom domain.\"\n },\n \"admin_api_access_token\": {\n \"label\": \"Admin Api Access Token\",\n \"secret\": true,\n \"description\": \"Your Admin API access token (starts with 'shpat_'). Create a custom app with the scopes you need, install it, then click 'Reveal token once' under API credentials.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,QAAQ;GACN,SAAS;GACT,eAAe;EACjB;EACA,0BAA0B;GACxB,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const shopifyCatalog = {\n \"slug\": \"shopify\",\n \"name\": \"Shopify\",\n \"description\": \"Shopify is an e-commerce platform. This toolkit is GraphQL-first for new Admin API automations while retaining legacy REST compatibility actions for older workflows and numeric-ID interoperability\",\n \"category\": \"eCommerce\",\n \"logo\": \"https://logos.composio.dev/api/shopify\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"subdomain\": {\n \"label\": \"Store Subdomain\",\n \"description\": \"Your store's permanent myshopify.com name — the 'acme' in acme.myshopify.com. Find it under Settings → Domains; enter this name, not your custom domain.\"\n },\n \"generic_api_key\": {\n \"label\": \"Admin Api Access Token\",\n \"secret\": true,\n \"description\": \"Your Admin API access token (starts with 'shpat_'). Create a custom app with the scopes you need, install it, then click 'Reveal token once' under API credentials.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,aAAa;GACX,SAAS;GACT,eAAe;EACjB;EACA,mBAAmB;GACjB,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/shopify",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"