@shopify/shopify-app-remix 4.2.0 → 5.0.0

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.
Files changed (183) hide show
  1. package/dist/cjs/react/components/AppProvider/AppProvider.js.map +1 -1
  2. package/dist/cjs/react/components/AppProxyForm/AppProxyForm.js +4 -3
  3. package/dist/cjs/react/components/AppProxyForm/AppProxyForm.js.map +1 -1
  4. package/dist/cjs/react/components/AppProxyLink/AppProxyLink.js +4 -3
  5. package/dist/cjs/react/components/AppProxyLink/AppProxyLink.js.map +1 -1
  6. package/dist/cjs/react/components/AppProxyProvider/AppProxyProvider.js.map +1 -1
  7. package/dist/cjs/server/authenticate/admin/authenticate.js +1 -3
  8. package/dist/cjs/server/authenticate/admin/authenticate.js.map +1 -1
  9. package/dist/cjs/server/authenticate/admin/helpers/redirect.js +2 -2
  10. package/dist/cjs/server/authenticate/admin/helpers/redirect.js.map +1 -1
  11. package/dist/cjs/server/authenticate/admin/helpers/validate-redirect-url.js +1 -1
  12. package/dist/cjs/server/authenticate/admin/helpers/validate-redirect-url.js.map +1 -1
  13. package/dist/cjs/server/authenticate/public/appProxy/authenticate.js +9 -3
  14. package/dist/cjs/server/authenticate/public/appProxy/authenticate.js.map +1 -1
  15. package/dist/cjs/server/authenticate/webhooks/authenticate.js +1 -2
  16. package/dist/cjs/server/authenticate/webhooks/authenticate.js.map +1 -1
  17. package/dist/cjs/server/future/flags.js.map +1 -1
  18. package/dist/cjs/server/shopify-app.js +2 -1
  19. package/dist/cjs/server/shopify-app.js.map +1 -1
  20. package/dist/cjs/server/test-helpers/test-config.js.map +1 -1
  21. package/dist/cjs/server/version.js +1 -1
  22. package/dist/cjs/server/version.js.map +1 -1
  23. package/dist/esm/react/components/AppProvider/AppProvider.mjs.map +1 -1
  24. package/dist/esm/react/components/AppProxyForm/AppProxyForm.mjs +5 -4
  25. package/dist/esm/react/components/AppProxyForm/AppProxyForm.mjs.map +1 -1
  26. package/dist/esm/react/components/AppProxyLink/AppProxyLink.mjs +5 -4
  27. package/dist/esm/react/components/AppProxyLink/AppProxyLink.mjs.map +1 -1
  28. package/dist/esm/react/components/AppProxyProvider/AppProxyProvider.mjs.map +1 -1
  29. package/dist/esm/server/authenticate/admin/authenticate.mjs +1 -3
  30. package/dist/esm/server/authenticate/admin/authenticate.mjs.map +1 -1
  31. package/dist/esm/server/authenticate/admin/helpers/redirect.mjs +2 -2
  32. package/dist/esm/server/authenticate/admin/helpers/redirect.mjs.map +1 -1
  33. package/dist/esm/server/authenticate/admin/helpers/validate-redirect-url.mjs +1 -1
  34. package/dist/esm/server/authenticate/admin/helpers/validate-redirect-url.mjs.map +1 -1
  35. package/dist/esm/server/authenticate/public/appProxy/authenticate.mjs +9 -3
  36. package/dist/esm/server/authenticate/public/appProxy/authenticate.mjs.map +1 -1
  37. package/dist/esm/server/authenticate/webhooks/authenticate.mjs +1 -2
  38. package/dist/esm/server/authenticate/webhooks/authenticate.mjs.map +1 -1
  39. package/dist/esm/server/future/flags.mjs.map +1 -1
  40. package/dist/esm/server/shopify-app.mjs +2 -1
  41. package/dist/esm/server/shopify-app.mjs.map +1 -1
  42. package/dist/esm/server/test-helpers/test-config.mjs.map +1 -1
  43. package/dist/esm/server/version.mjs +1 -1
  44. package/dist/esm/server/version.mjs.map +1 -1
  45. package/dist/ts/react/components/AppProvider/AppProvider.d.ts +5 -1
  46. package/dist/ts/react/components/AppProvider/AppProvider.d.ts.map +1 -1
  47. package/dist/ts/react/components/AppProxyForm/AppProxyForm.d.ts +2 -1
  48. package/dist/ts/react/components/AppProxyForm/AppProxyForm.d.ts.map +1 -1
  49. package/dist/ts/react/components/AppProxyLink/AppProxyLink.d.ts +2 -1
  50. package/dist/ts/react/components/AppProxyLink/AppProxyLink.d.ts.map +1 -1
  51. package/dist/ts/react/components/AppProxyProvider/AppProxyProvider.d.ts +5 -1
  52. package/dist/ts/react/components/AppProxyProvider/AppProxyProvider.d.ts.map +1 -1
  53. package/dist/ts/server/authenticate/admin/authenticate.d.ts.map +1 -1
  54. package/dist/ts/server/authenticate/admin/billing/types.d.ts +4 -0
  55. package/dist/ts/server/authenticate/admin/billing/types.d.ts.map +1 -1
  56. package/dist/ts/server/authenticate/admin/scope/types.d.ts +2 -1
  57. package/dist/ts/server/authenticate/admin/scope/types.d.ts.map +1 -1
  58. package/dist/ts/server/authenticate/admin/types.d.ts +10 -0
  59. package/dist/ts/server/authenticate/admin/types.d.ts.map +1 -1
  60. package/dist/ts/server/authenticate/flow/types.d.ts +4 -0
  61. package/dist/ts/server/authenticate/flow/types.d.ts.map +1 -1
  62. package/dist/ts/server/authenticate/fulfillment-service/types.d.ts +4 -0
  63. package/dist/ts/server/authenticate/fulfillment-service/types.d.ts.map +1 -1
  64. package/dist/ts/server/authenticate/public/appProxy/types.d.ts +4 -0
  65. package/dist/ts/server/authenticate/public/appProxy/types.d.ts.map +1 -1
  66. package/dist/ts/server/authenticate/public/checkout/types.d.ts +4 -0
  67. package/dist/ts/server/authenticate/public/checkout/types.d.ts.map +1 -1
  68. package/dist/ts/server/authenticate/public/customer-account/types.d.ts +4 -0
  69. package/dist/ts/server/authenticate/public/customer-account/types.d.ts.map +1 -1
  70. package/dist/ts/server/authenticate/webhooks/authenticate.d.ts.map +1 -1
  71. package/dist/ts/server/authenticate/webhooks/types.d.ts +6 -24
  72. package/dist/ts/server/authenticate/webhooks/types.d.ts.map +1 -1
  73. package/dist/ts/server/boundary/error.d.ts +1 -1
  74. package/dist/ts/server/boundary/error.d.ts.map +1 -1
  75. package/dist/ts/server/clients/admin/types.d.ts +4 -0
  76. package/dist/ts/server/clients/admin/types.d.ts.map +1 -1
  77. package/dist/ts/server/clients/storefront/types.d.ts +4 -0
  78. package/dist/ts/server/clients/storefront/types.d.ts.map +1 -1
  79. package/dist/ts/server/config-types.d.ts +1 -1
  80. package/dist/ts/server/future/flags.d.ts +6 -0
  81. package/dist/ts/server/future/flags.d.ts.map +1 -1
  82. package/dist/ts/server/shopify-app.d.ts +1 -0
  83. package/dist/ts/server/shopify-app.d.ts.map +1 -1
  84. package/dist/ts/server/test-helpers/test-config.d.ts.map +1 -1
  85. package/dist/ts/server/unauthenticated/admin/types.d.ts +4 -0
  86. package/dist/ts/server/unauthenticated/admin/types.d.ts.map +1 -1
  87. package/dist/ts/server/unauthenticated/storefront/types.d.ts +4 -0
  88. package/dist/ts/server/unauthenticated/storefront/types.d.ts.map +1 -1
  89. package/dist/ts/server/version.d.ts +1 -1
  90. package/dist/tsconfig.build.tsbuildinfo +1 -1
  91. package/package.json +16 -17
  92. package/src/react/components/AppProvider/AppProvider.tsx +4 -0
  93. package/src/react/components/AppProxyForm/AppProxyForm.tsx +18 -15
  94. package/src/react/components/AppProxyLink/AppProxyLink.tsx +18 -15
  95. package/src/react/components/AppProxyProvider/AppProxyProvider.tsx +4 -0
  96. package/src/server/__test-helpers/const.ts +1 -1
  97. package/src/server/__test-helpers/expect-admin-api-client.ts +1 -1
  98. package/src/server/__test-helpers/expect-storefront-api-client.ts +1 -1
  99. package/src/server/__test-helpers/mock-graphql-request.ts +2 -2
  100. package/src/server/__test-helpers/request-mock.ts +1 -1
  101. package/src/server/__test-helpers/setup-non-embedded-flow.ts +1 -1
  102. package/src/server/__test-helpers/setup-valid-request.ts +1 -2
  103. package/src/server/__test-helpers/sign-request-cookie.ts +21 -10
  104. package/src/server/__test-helpers/test-config.ts +1 -1
  105. package/src/server/authenticate/admin/authenticate.ts +3 -6
  106. package/src/server/authenticate/admin/billing/types.ts +4 -0
  107. package/src/server/authenticate/admin/helpers/redirect.ts +2 -2
  108. package/src/server/authenticate/admin/helpers/validate-redirect-url.ts +1 -1
  109. package/src/server/authenticate/admin/scope/types.ts +2 -1
  110. package/src/server/authenticate/admin/types.ts +10 -0
  111. package/src/server/authenticate/flow/types.ts +4 -0
  112. package/src/server/authenticate/fulfillment-service/types.ts +4 -0
  113. package/src/server/authenticate/public/appProxy/authenticate.ts +9 -12
  114. package/src/server/authenticate/public/appProxy/types.ts +4 -0
  115. package/src/server/authenticate/public/checkout/types.ts +4 -0
  116. package/src/server/authenticate/public/customer-account/authenticate.public.customerAccount.doc.example.ts +2 -1
  117. package/src/server/authenticate/public/customer-account/types.ts +4 -0
  118. package/src/server/authenticate/webhooks/authenticate.ts +1 -2
  119. package/src/server/authenticate/webhooks/authenticate.webhooks.doc.example.ts +6 -6
  120. package/src/server/authenticate/webhooks/types.ts +7 -27
  121. package/src/server/clients/admin/types.ts +4 -0
  122. package/src/server/clients/storefront/types.ts +4 -0
  123. package/src/server/config-types.ts +1 -1
  124. package/src/server/future/flags.ts +6 -0
  125. package/src/server/shopify-app.ts +3 -4
  126. package/src/server/test-helpers/test-config.ts +3 -3
  127. package/src/server/unauthenticated/admin/types.ts +4 -0
  128. package/src/server/unauthenticated/storefront/types.ts +4 -0
  129. package/src/server/version.ts +1 -1
  130. package/dist/ts/react/components/AppProvider/AppProvider.doc.d.ts +0 -4
  131. package/dist/ts/react/components/AppProvider/AppProvider.doc.d.ts.map +0 -1
  132. package/dist/ts/react/components/AppProxyForm/AppProxyForm.doc.d.ts +0 -4
  133. package/dist/ts/react/components/AppProxyForm/AppProxyForm.doc.d.ts.map +0 -1
  134. package/dist/ts/react/components/AppProxyLink/AppProxyLink.doc.d.ts +0 -4
  135. package/dist/ts/react/components/AppProxyLink/AppProxyLink.doc.d.ts.map +0 -1
  136. package/dist/ts/react/components/AppProxyProvider/AppProxyProvider.doc.d.ts +0 -4
  137. package/dist/ts/react/components/AppProxyProvider/AppProxyProvider.doc.d.ts.map +0 -1
  138. package/dist/ts/server/authenticate/admin/authenticate.admin.doc.d.ts +0 -4
  139. package/dist/ts/server/authenticate/admin/authenticate.admin.doc.d.ts.map +0 -1
  140. package/dist/ts/server/authenticate/admin/billing/authenticate.admin.billing.doc.d.ts +0 -4
  141. package/dist/ts/server/authenticate/admin/billing/authenticate.admin.billing.doc.d.ts.map +0 -1
  142. package/dist/ts/server/authenticate/admin/scope/authenticate.admin.scopes.doc.d.ts +0 -4
  143. package/dist/ts/server/authenticate/admin/scope/authenticate.admin.scopes.doc.d.ts.map +0 -1
  144. package/dist/ts/server/authenticate/flow/authenticate.flow.doc.d.ts +0 -4
  145. package/dist/ts/server/authenticate/flow/authenticate.flow.doc.d.ts.map +0 -1
  146. package/dist/ts/server/authenticate/fulfillment-service/authenticate.fulfillment-service.doc.d.ts +0 -4
  147. package/dist/ts/server/authenticate/fulfillment-service/authenticate.fulfillment-service.doc.d.ts.map +0 -1
  148. package/dist/ts/server/authenticate/public/appProxy/authenticate.public.app-proxy.doc.d.ts +0 -4
  149. package/dist/ts/server/authenticate/public/appProxy/authenticate.public.app-proxy.doc.d.ts.map +0 -1
  150. package/dist/ts/server/authenticate/public/checkout/authenticate.public.checkout.doc.d.ts +0 -4
  151. package/dist/ts/server/authenticate/public/checkout/authenticate.public.checkout.doc.d.ts.map +0 -1
  152. package/dist/ts/server/authenticate/public/customer-account/authenticate.public.customerAccount.doc.d.ts +0 -4
  153. package/dist/ts/server/authenticate/public/customer-account/authenticate.public.customerAccount.doc.d.ts.map +0 -1
  154. package/dist/ts/server/authenticate/webhooks/authenticate.webhooks.doc.d.ts +0 -4
  155. package/dist/ts/server/authenticate/webhooks/authenticate.webhooks.doc.d.ts.map +0 -1
  156. package/dist/ts/server/clients/admin/authenticate.admin.api.doc.d.ts +0 -4
  157. package/dist/ts/server/clients/admin/authenticate.admin.api.doc.d.ts.map +0 -1
  158. package/dist/ts/server/clients/storefront/authenticate.storefront.api.doc.d.ts +0 -4
  159. package/dist/ts/server/clients/storefront/authenticate.storefront.api.doc.d.ts.map +0 -1
  160. package/dist/ts/server/shopify-app.doc.d.ts +0 -4
  161. package/dist/ts/server/shopify-app.doc.d.ts.map +0 -1
  162. package/dist/ts/server/unauthenticated/admin/unauthenticated.admin.doc.d.ts +0 -4
  163. package/dist/ts/server/unauthenticated/admin/unauthenticated.admin.doc.d.ts.map +0 -1
  164. package/dist/ts/server/unauthenticated/storefront/unauthenticated.storefront.doc.d.ts +0 -4
  165. package/dist/ts/server/unauthenticated/storefront/unauthenticated.storefront.doc.d.ts.map +0 -1
  166. package/src/react/components/AppProvider/AppProvider.doc.ts +0 -35
  167. package/src/react/components/AppProxyForm/AppProxyForm.doc.ts +0 -28
  168. package/src/react/components/AppProxyLink/AppProxyLink.doc.ts +0 -28
  169. package/src/react/components/AppProxyProvider/AppProxyProvider.doc.ts +0 -40
  170. package/src/server/authenticate/admin/authenticate.admin.doc.ts +0 -51
  171. package/src/server/authenticate/admin/billing/authenticate.admin.billing.doc.ts +0 -29
  172. package/src/server/authenticate/admin/scope/authenticate.admin.scopes.doc.ts +0 -28
  173. package/src/server/authenticate/flow/authenticate.flow.doc.ts +0 -47
  174. package/src/server/authenticate/fulfillment-service/authenticate.fulfillment-service.doc.ts +0 -48
  175. package/src/server/authenticate/public/appProxy/authenticate.public.app-proxy.doc.ts +0 -55
  176. package/src/server/authenticate/public/checkout/authenticate.public.checkout.doc.ts +0 -49
  177. package/src/server/authenticate/public/customer-account/authenticate.public.customerAccount.doc.ts +0 -49
  178. package/src/server/authenticate/webhooks/authenticate.webhooks.doc.ts +0 -39
  179. package/src/server/clients/admin/authenticate.admin.api.doc.ts +0 -34
  180. package/src/server/clients/storefront/authenticate.storefront.api.doc.ts +0 -34
  181. package/src/server/shopify-app.doc.ts +0 -45
  182. package/src/server/unauthenticated/admin/unauthenticated.admin.doc.ts +0 -40
  183. package/src/server/unauthenticated/storefront/unauthenticated.storefront.doc.ts +0 -40
@@ -1,55 +0,0 @@
1
- import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
2
-
3
- const data: ReferenceEntityTemplateSchema = {
4
- name: 'App proxy',
5
- description:
6
- '[App proxies](/docs/apps/online-store/app-proxies) take requests to Shopify links, and redirect them to external links.' +
7
- '\nThe `authenticate.public.appProxy` function validates requests made to app proxies, and returns a context to enable querying Shopify APIs.' +
8
- '\n\n> Note: If the store has not installed the app, store-related properties such as `admin` or `storefront` will be `undefined`',
9
- category: 'Authenticate',
10
- subCategory: 'Public',
11
- type: 'object',
12
- isVisualComponent: false,
13
- definitions: [
14
- {
15
- title: 'authenticate.public.appProxy',
16
- description:
17
- 'Authenticates requests coming to the app from Shopify app proxies.',
18
- type: 'AuthenticateAppProxy',
19
- },
20
- ],
21
- defaultExample: {
22
- description: 'Authenticate and fetch product information',
23
- codeblock: {
24
- title: 'Authenticate and fetch product information',
25
- tabs: [
26
- {
27
- title: '/app/routes/**.ts',
28
- language: 'typescript',
29
- code: './authenticate.public.app-proxy.doc.example.ts',
30
- },
31
- ],
32
- },
33
- },
34
- jsDocTypeExamples: ['AppProxyContextWithSession'],
35
- related: [
36
- {
37
- name: 'Admin API context',
38
- subtitle: 'Interact with the Admin API.',
39
- url: '/docs/api/shopify-app-remix/apis/admin-api',
40
- },
41
- {
42
- name: 'Storefront API context',
43
- subtitle: 'Interact with the Storefront API.',
44
- url: '/docs/api/shopify-app-remix/apis/storefront-api',
45
- },
46
- {
47
- name: 'Liquid reference',
48
- subtitle: "Use the shop's theme to render a template.",
49
- url: '/docs/api/liquid',
50
- type: 'liquid',
51
- },
52
- ],
53
- };
54
-
55
- export default data;
@@ -1,49 +0,0 @@
1
- import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
2
-
3
- const data: ReferenceEntityTemplateSchema = {
4
- name: 'Checkout',
5
- description:
6
- 'The `authenticate.public.checkout` function ensures that checkout extension requests are coming from Shopify, and returns helpers to respond with the correct headers.',
7
- category: 'Authenticate',
8
- subCategory: 'Public',
9
- type: 'object',
10
- isVisualComponent: false,
11
- definitions: [
12
- {
13
- title: 'authenticate.public.checkout',
14
- description:
15
- 'Authenticates requests coming from Shopify checkout extensions.',
16
- type: 'AuthenticateCheckout',
17
- },
18
- ],
19
- defaultExample: {
20
- description: 'Authenticate and return offers for the shop',
21
- codeblock: {
22
- title: 'Authenticate and return offers for the shop',
23
- tabs: [
24
- {
25
- title: '/app/routes/**.ts',
26
- language: 'typescript',
27
- code: './authenticate.public.checkout.doc.example.ts',
28
- },
29
- {
30
- title: '/app/offers.server.ts',
31
- language: 'typescript',
32
- code: './authenticate.public.checkout.doc.example.offers.ts',
33
- },
34
- ],
35
- },
36
- },
37
- jsDocTypeExamples: ['CheckoutContext'],
38
- related: [
39
- {
40
- name: 'Session token API',
41
- subtitle:
42
- 'Checkout UI extension API for interacting with session tokens.',
43
- url: '/docs/api/checkout-ui-extensions/latest/apis/session-token',
44
- type: 'shopify',
45
- },
46
- ],
47
- };
48
-
49
- export default data;
@@ -1,49 +0,0 @@
1
- import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
2
-
3
- const data: ReferenceEntityTemplateSchema = {
4
- name: 'Customer account',
5
- description:
6
- 'The `authenticate.public.customerAccount` function ensures that customer account extension requests are coming from Shopify, and returns helpers to respond with the correct headers.',
7
- category: 'Authenticate',
8
- subCategory: 'Public',
9
- type: 'object',
10
- isVisualComponent: false,
11
- definitions: [
12
- {
13
- title: 'authenticate.public.customerAccount',
14
- description:
15
- 'Authenticates requests coming from Shopify customer account extensions.',
16
- type: 'AuthenticateCustomerAccount',
17
- },
18
- ],
19
- defaultExample: {
20
- description: 'Authenticate and return offers for the customer',
21
- codeblock: {
22
- title: 'Authenticate and return offers for the customer',
23
- tabs: [
24
- {
25
- title: '/app/routes/**.ts',
26
- language: 'typescript',
27
- code: './authenticate.public.customerAccount.doc.example.ts',
28
- },
29
- {
30
- title: '/app/offers.server.ts',
31
- language: 'typescript',
32
- code: './authenticate.public.customerAccount.doc.example.offers.ts',
33
- },
34
- ],
35
- },
36
- },
37
- jsDocTypeExamples: ['CustomerAccountContext'],
38
- related: [
39
- {
40
- name: 'Session token API',
41
- subtitle:
42
- 'Customer account UI extensions API for interacting with session tokens.',
43
- url: '/docs/api/customer-account-ui-extensions/latest/apis/session-token',
44
- type: 'shopify',
45
- },
46
- ],
47
- };
48
-
49
- export default data;
@@ -1,39 +0,0 @@
1
- import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
2
-
3
- const data: ReferenceEntityTemplateSchema = {
4
- name: 'Webhook',
5
- description: 'Contains functions for verifying Shopify webhooks.',
6
- category: 'Authenticate',
7
- type: 'object',
8
- isVisualComponent: false,
9
- definitions: [
10
- {
11
- title: 'authenticate.webhook',
12
- description: 'Verifies requests coming from Shopify webhooks.',
13
- type: 'AuthenticateWebhook',
14
- },
15
- ],
16
- defaultExample: {
17
- description: 'Update a metafield when a product is updated',
18
- codeblock: {
19
- title: 'Update a metafield when a product is updated',
20
- tabs: [
21
- {
22
- title: '/app/routes/**.ts',
23
- language: 'typescript',
24
- code: './authenticate.webhooks.doc.example.ts',
25
- },
26
- ],
27
- },
28
- },
29
- jsDocTypeExamples: ['WebhookContextWithSession'],
30
- related: [
31
- {
32
- name: 'Admin API context',
33
- subtitle: 'Interact with the Admin API.',
34
- url: '/docs/api/shopify-app-remix/apis/admin-api',
35
- },
36
- ],
37
- };
38
-
39
- export default data;
@@ -1,34 +0,0 @@
1
- import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
2
-
3
- const data: ReferenceEntityTemplateSchema = {
4
- name: 'Admin API',
5
- description:
6
- 'Contains objects used to interact with the Admin API.' +
7
- '\n\nThis object is returned as part of different contexts, such as [`admin`](/docs/api/shopify-app-remix/authenticate/admin), [`unauthenticated.admin`](/docs/api/shopify-app-remix/unauthenticated/unauthenticated-admin), and [`webhook`](/docs/api/shopify-app-remix/authenticate/webhook).',
8
- category: 'APIs',
9
- type: 'object',
10
- isVisualComponent: false,
11
- definitions: [
12
- {
13
- title: 'admin',
14
- description:
15
- 'Provides utilities that apps can use to make requests to the Admin API.',
16
- type: 'AdminApiContext',
17
- },
18
- ],
19
- jsDocTypeExamples: ['AdminApiContext'],
20
- related: [
21
- {
22
- name: 'Authenticated context',
23
- subtitle: 'Authenticate requests from Shopify Admin.',
24
- url: '/docs/api/shopify-app-remix/authenticate/admin',
25
- },
26
- {
27
- name: 'Unauthenticated context',
28
- subtitle: 'Interact with the Admin API on non-Shopify requests.',
29
- url: '/docs/api/shopify-app-remix/unauthenticated/unauthenticated-admin',
30
- },
31
- ],
32
- };
33
-
34
- export default data;
@@ -1,34 +0,0 @@
1
- import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
2
-
3
- const data: ReferenceEntityTemplateSchema = {
4
- name: 'Storefront API',
5
- description:
6
- 'Contains objects used to interact with the Storefront API.' +
7
- '\n\nThis object is returned as part of different contexts, such as [`appProxy`](/docs/api/shopify-app-remix/authenticate/public/app-proxy), and [`unauthenticated.storefront`](/docs/api/shopify-app-remix/unauthenticated/unauthenticated-storefront).',
8
- category: 'APIs',
9
- type: 'object',
10
- isVisualComponent: false,
11
- definitions: [
12
- {
13
- title: 'storefront',
14
- description:
15
- 'Provides utilities that apps can use to make requests to the Storefront API.',
16
- type: 'StorefrontContext',
17
- },
18
- ],
19
- jsDocTypeExamples: ['StorefrontContext'],
20
- related: [
21
- {
22
- name: 'App proxy context',
23
- subtitle: 'Authenticate requests from Shopify app proxies.',
24
- url: '/docs/api/shopify-app-remix/authenticate/public/app-proxy',
25
- },
26
- {
27
- name: 'Unauthenticated context',
28
- subtitle: 'Interact with the Storefront API on non-Shopify requests.',
29
- url: '/docs/api/shopify-app-remix/unauthenticated/unauthenticated-storefront',
30
- },
31
- ],
32
- };
33
-
34
- export default data;
@@ -1,45 +0,0 @@
1
- import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
2
-
3
- const data: ReferenceEntityTemplateSchema = {
4
- name: 'shopifyApp',
5
- description:
6
- "Returns a set of functions that can be used by the app's backend to be able to respond to all Shopify requests." +
7
- '\n\nThe shape of the returned object changes depending on the value of `distribution`. If it is `AppDistribution.ShopifyAdmin`, then only `ShopifyAppBase` objects are returned, otherwise `ShopifyAppLogin` objects are included.',
8
- category: 'Entrypoints',
9
- type: 'function',
10
- isVisualComponent: false,
11
- definitions: [
12
- {
13
- title: 'shopifyApp',
14
- description: 'Function to create a new Shopify API object.',
15
- type: 'ShopifyAppGeneratedType',
16
- },
17
- {
18
- title: 'Future flags',
19
- description:
20
- 'Set future flags using the `future` configuration field to opt in to upcoming breaking changes.' +
21
- '\n\nWith this feature, you can prepare for major releases ahead of time, as well as try out new features before they are released.',
22
- type: 'FutureFlags',
23
- filePath: 'src/server/future/flags.ts',
24
- },
25
- ],
26
- jsDocTypeExamples: [
27
- 'ShopifyAppGeneratedType',
28
- 'ShopifyAppBase',
29
- 'ShopifyAppLogin',
30
- ],
31
- related: [
32
- {
33
- name: 'Authenticated contexts',
34
- subtitle: 'Authenticate requests coming from Shopify.',
35
- url: '/docs/api/shopify-app-remix/authenticate',
36
- },
37
- {
38
- name: 'Unauthenticated contexts',
39
- subtitle: 'Interact with the API on non-Shopify requests.',
40
- url: '/docs/api/shopify-app-remix/unauthenticated',
41
- },
42
- ],
43
- };
44
-
45
- export default data;
@@ -1,40 +0,0 @@
1
- import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
2
-
3
- const data: ReferenceEntityTemplateSchema = {
4
- name: 'Unauthenticated admin',
5
- description: `Allows interacting with the Admin API when working outside of Shopify requests.
6
- This enables apps to integrate with 3rd party services and perform background tasks.
7
-
8
- > Caution:
9
- > This function doesn't perform **any** validation and shouldn't rely on raw user input.
10
-
11
- When using this function, consider the following:
12
-
13
- #### Background tasks
14
-
15
- Apps should ensure that the shop domain is authenticated when enqueueing jobs.
16
-
17
- #### 3rd party service requests
18
-
19
- Apps must obtain the shop domain from the 3rd party service in a secure way.`,
20
- category: 'Unauthenticated',
21
- type: 'object',
22
- isVisualComponent: false,
23
- definitions: [
24
- {
25
- title: 'unauthenticated.admin',
26
- description: 'Creates an unauthenticated Admin context.',
27
- type: 'GetUnauthenticatedAdminContext',
28
- },
29
- ],
30
- jsDocTypeExamples: ['UnauthenticatedAdminContext'],
31
- related: [
32
- {
33
- name: 'API context',
34
- subtitle: 'Interact with the Admin API.',
35
- url: '/docs/api/shopify-app-remix/apis/admin-api',
36
- },
37
- ],
38
- };
39
-
40
- export default data;
@@ -1,40 +0,0 @@
1
- import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
2
-
3
- const data: ReferenceEntityTemplateSchema = {
4
- name: 'Unauthenticated storefront',
5
- description: `Allows interacting with the Storefront API when working outside of Shopify requests.
6
- This enables apps to integrate with 3rd party services and perform background tasks.
7
-
8
- > Caution:
9
- > This function doesn't perform **any** validation and shouldn't rely on raw user input.
10
-
11
- When using this function, consider the following:
12
-
13
- #### Background tasks
14
-
15
- Apps should ensure that the shop domain is authenticated when enqueueing jobs.
16
-
17
- #### 3rd party service requests
18
-
19
- Apps must obtain the shop domain from the 3rd party service in a secure way.`,
20
- category: 'Unauthenticated',
21
- type: 'object',
22
- isVisualComponent: false,
23
- definitions: [
24
- {
25
- title: 'unauthenticated.storefront',
26
- description: 'Creates an unauthenticated Storefront context.',
27
- type: 'GetUnauthenticatedStorefrontContext',
28
- },
29
- ],
30
- jsDocTypeExamples: ['UnauthenticatedStorefrontContext'],
31
- related: [
32
- {
33
- name: 'API context',
34
- subtitle: 'Interact with the Storefront API.',
35
- url: '/docs/api/shopify-app-remix/apis/storefront-api',
36
- },
37
- ],
38
- };
39
-
40
- export default data;