@shopify/shopify-app-remix 4.2.0 → 4.2.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/dist/cjs/react/components/AppProvider/AppProvider.js.map +1 -1
- package/dist/cjs/react/components/AppProxyForm/AppProxyForm.js +4 -3
- package/dist/cjs/react/components/AppProxyForm/AppProxyForm.js.map +1 -1
- package/dist/cjs/react/components/AppProxyLink/AppProxyLink.js +4 -3
- package/dist/cjs/react/components/AppProxyLink/AppProxyLink.js.map +1 -1
- package/dist/cjs/react/components/AppProxyProvider/AppProxyProvider.js.map +1 -1
- package/dist/cjs/server/authenticate/admin/helpers/redirect.js +2 -2
- package/dist/cjs/server/authenticate/admin/helpers/redirect.js.map +1 -1
- package/dist/cjs/server/authenticate/webhooks/authenticate.js +1 -1
- package/dist/cjs/server/authenticate/webhooks/authenticate.js.map +1 -1
- package/dist/cjs/server/future/flags.js.map +1 -1
- package/dist/cjs/server/shopify-app.js +1 -0
- package/dist/cjs/server/shopify-app.js.map +1 -1
- package/dist/cjs/server/version.js +1 -1
- package/dist/cjs/server/version.js.map +1 -1
- package/dist/esm/react/components/AppProvider/AppProvider.mjs.map +1 -1
- package/dist/esm/react/components/AppProxyForm/AppProxyForm.mjs +5 -4
- package/dist/esm/react/components/AppProxyForm/AppProxyForm.mjs.map +1 -1
- package/dist/esm/react/components/AppProxyLink/AppProxyLink.mjs +5 -4
- package/dist/esm/react/components/AppProxyLink/AppProxyLink.mjs.map +1 -1
- package/dist/esm/react/components/AppProxyProvider/AppProxyProvider.mjs.map +1 -1
- package/dist/esm/server/authenticate/admin/helpers/redirect.mjs +2 -2
- package/dist/esm/server/authenticate/admin/helpers/redirect.mjs.map +1 -1
- package/dist/esm/server/authenticate/webhooks/authenticate.mjs +1 -1
- package/dist/esm/server/authenticate/webhooks/authenticate.mjs.map +1 -1
- package/dist/esm/server/future/flags.mjs.map +1 -1
- package/dist/esm/server/shopify-app.mjs +1 -0
- package/dist/esm/server/shopify-app.mjs.map +1 -1
- package/dist/esm/server/version.mjs +1 -1
- package/dist/esm/server/version.mjs.map +1 -1
- package/dist/ts/react/components/AppProvider/AppProvider.d.ts +5 -1
- package/dist/ts/react/components/AppProvider/AppProvider.d.ts.map +1 -1
- package/dist/ts/react/components/AppProxyForm/AppProxyForm.d.ts +2 -1
- package/dist/ts/react/components/AppProxyForm/AppProxyForm.d.ts.map +1 -1
- package/dist/ts/react/components/AppProxyLink/AppProxyLink.d.ts +2 -1
- package/dist/ts/react/components/AppProxyLink/AppProxyLink.d.ts.map +1 -1
- package/dist/ts/react/components/AppProxyProvider/AppProxyProvider.d.ts +5 -1
- package/dist/ts/react/components/AppProxyProvider/AppProxyProvider.d.ts.map +1 -1
- package/dist/ts/server/authenticate/admin/billing/types.d.ts +4 -0
- package/dist/ts/server/authenticate/admin/billing/types.d.ts.map +1 -1
- package/dist/ts/server/authenticate/admin/scope/types.d.ts +2 -1
- package/dist/ts/server/authenticate/admin/scope/types.d.ts.map +1 -1
- package/dist/ts/server/authenticate/admin/types.d.ts +10 -0
- package/dist/ts/server/authenticate/admin/types.d.ts.map +1 -1
- package/dist/ts/server/authenticate/flow/types.d.ts +4 -0
- package/dist/ts/server/authenticate/flow/types.d.ts.map +1 -1
- package/dist/ts/server/authenticate/fulfillment-service/types.d.ts +4 -0
- package/dist/ts/server/authenticate/fulfillment-service/types.d.ts.map +1 -1
- package/dist/ts/server/authenticate/public/appProxy/types.d.ts +4 -0
- package/dist/ts/server/authenticate/public/appProxy/types.d.ts.map +1 -1
- package/dist/ts/server/authenticate/public/checkout/types.d.ts +4 -0
- package/dist/ts/server/authenticate/public/checkout/types.d.ts.map +1 -1
- package/dist/ts/server/authenticate/public/customer-account/types.d.ts +4 -0
- package/dist/ts/server/authenticate/public/customer-account/types.d.ts.map +1 -1
- package/dist/ts/server/authenticate/webhooks/types.d.ts +6 -5
- package/dist/ts/server/authenticate/webhooks/types.d.ts.map +1 -1
- package/dist/ts/server/boundary/error.d.ts +1 -1
- package/dist/ts/server/boundary/error.d.ts.map +1 -1
- package/dist/ts/server/clients/admin/types.d.ts +4 -0
- package/dist/ts/server/clients/admin/types.d.ts.map +1 -1
- package/dist/ts/server/clients/storefront/types.d.ts +4 -0
- package/dist/ts/server/clients/storefront/types.d.ts.map +1 -1
- package/dist/ts/server/future/flags.d.ts +6 -0
- package/dist/ts/server/future/flags.d.ts.map +1 -1
- package/dist/ts/server/shopify-app.d.ts +1 -0
- package/dist/ts/server/shopify-app.d.ts.map +1 -1
- package/dist/ts/server/unauthenticated/admin/types.d.ts +4 -0
- package/dist/ts/server/unauthenticated/admin/types.d.ts.map +1 -1
- package/dist/ts/server/unauthenticated/storefront/types.d.ts +4 -0
- package/dist/ts/server/unauthenticated/storefront/types.d.ts.map +1 -1
- package/dist/ts/server/version.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +12 -12
- package/src/react/components/AppProvider/AppProvider.tsx +4 -0
- package/src/react/components/AppProxyForm/AppProxyForm.tsx +18 -15
- package/src/react/components/AppProxyLink/AppProxyLink.tsx +18 -15
- package/src/react/components/AppProxyProvider/AppProxyProvider.tsx +4 -0
- package/src/server/__test-helpers/setup-non-embedded-flow.ts +1 -1
- package/src/server/__test-helpers/sign-request-cookie.ts +21 -10
- package/src/server/authenticate/admin/billing/types.ts +4 -0
- package/src/server/authenticate/admin/helpers/redirect.ts +2 -2
- package/src/server/authenticate/admin/scope/types.ts +2 -1
- package/src/server/authenticate/admin/types.ts +10 -0
- package/src/server/authenticate/flow/types.ts +4 -0
- package/src/server/authenticate/fulfillment-service/types.ts +4 -0
- package/src/server/authenticate/public/appProxy/types.ts +4 -0
- package/src/server/authenticate/public/checkout/types.ts +4 -0
- package/src/server/authenticate/public/customer-account/types.ts +4 -0
- package/src/server/authenticate/webhooks/authenticate.ts +1 -1
- package/src/server/authenticate/webhooks/types.ts +6 -5
- package/src/server/clients/admin/types.ts +4 -0
- package/src/server/clients/storefront/types.ts +4 -0
- package/src/server/future/flags.ts +6 -0
- package/src/server/shopify-app.ts +1 -0
- package/src/server/unauthenticated/admin/types.ts +4 -0
- package/src/server/unauthenticated/storefront/types.ts +4 -0
- package/src/server/version.ts +1 -1
- package/dist/ts/react/components/AppProvider/AppProvider.doc.d.ts +0 -4
- package/dist/ts/react/components/AppProvider/AppProvider.doc.d.ts.map +0 -1
- package/dist/ts/react/components/AppProxyForm/AppProxyForm.doc.d.ts +0 -4
- package/dist/ts/react/components/AppProxyForm/AppProxyForm.doc.d.ts.map +0 -1
- package/dist/ts/react/components/AppProxyLink/AppProxyLink.doc.d.ts +0 -4
- package/dist/ts/react/components/AppProxyLink/AppProxyLink.doc.d.ts.map +0 -1
- package/dist/ts/react/components/AppProxyProvider/AppProxyProvider.doc.d.ts +0 -4
- package/dist/ts/react/components/AppProxyProvider/AppProxyProvider.doc.d.ts.map +0 -1
- package/dist/ts/server/authenticate/admin/authenticate.admin.doc.d.ts +0 -4
- package/dist/ts/server/authenticate/admin/authenticate.admin.doc.d.ts.map +0 -1
- package/dist/ts/server/authenticate/admin/billing/authenticate.admin.billing.doc.d.ts +0 -4
- package/dist/ts/server/authenticate/admin/billing/authenticate.admin.billing.doc.d.ts.map +0 -1
- package/dist/ts/server/authenticate/admin/scope/authenticate.admin.scopes.doc.d.ts +0 -4
- package/dist/ts/server/authenticate/admin/scope/authenticate.admin.scopes.doc.d.ts.map +0 -1
- package/dist/ts/server/authenticate/flow/authenticate.flow.doc.d.ts +0 -4
- package/dist/ts/server/authenticate/flow/authenticate.flow.doc.d.ts.map +0 -1
- package/dist/ts/server/authenticate/fulfillment-service/authenticate.fulfillment-service.doc.d.ts +0 -4
- package/dist/ts/server/authenticate/fulfillment-service/authenticate.fulfillment-service.doc.d.ts.map +0 -1
- package/dist/ts/server/authenticate/public/appProxy/authenticate.public.app-proxy.doc.d.ts +0 -4
- package/dist/ts/server/authenticate/public/appProxy/authenticate.public.app-proxy.doc.d.ts.map +0 -1
- package/dist/ts/server/authenticate/public/checkout/authenticate.public.checkout.doc.d.ts +0 -4
- package/dist/ts/server/authenticate/public/checkout/authenticate.public.checkout.doc.d.ts.map +0 -1
- package/dist/ts/server/authenticate/public/customer-account/authenticate.public.customerAccount.doc.d.ts +0 -4
- package/dist/ts/server/authenticate/public/customer-account/authenticate.public.customerAccount.doc.d.ts.map +0 -1
- package/dist/ts/server/authenticate/webhooks/authenticate.webhooks.doc.d.ts +0 -4
- package/dist/ts/server/authenticate/webhooks/authenticate.webhooks.doc.d.ts.map +0 -1
- package/dist/ts/server/clients/admin/authenticate.admin.api.doc.d.ts +0 -4
- package/dist/ts/server/clients/admin/authenticate.admin.api.doc.d.ts.map +0 -1
- package/dist/ts/server/clients/storefront/authenticate.storefront.api.doc.d.ts +0 -4
- package/dist/ts/server/clients/storefront/authenticate.storefront.api.doc.d.ts.map +0 -1
- package/dist/ts/server/shopify-app.doc.d.ts +0 -4
- package/dist/ts/server/shopify-app.doc.d.ts.map +0 -1
- package/dist/ts/server/unauthenticated/admin/unauthenticated.admin.doc.d.ts +0 -4
- package/dist/ts/server/unauthenticated/admin/unauthenticated.admin.doc.d.ts.map +0 -1
- package/dist/ts/server/unauthenticated/storefront/unauthenticated.storefront.doc.d.ts +0 -4
- package/dist/ts/server/unauthenticated/storefront/unauthenticated.storefront.doc.d.ts.map +0 -1
- package/src/react/components/AppProvider/AppProvider.doc.ts +0 -35
- package/src/react/components/AppProxyForm/AppProxyForm.doc.ts +0 -28
- package/src/react/components/AppProxyLink/AppProxyLink.doc.ts +0 -28
- package/src/react/components/AppProxyProvider/AppProxyProvider.doc.ts +0 -40
- package/src/server/authenticate/admin/authenticate.admin.doc.ts +0 -51
- package/src/server/authenticate/admin/billing/authenticate.admin.billing.doc.ts +0 -29
- package/src/server/authenticate/admin/scope/authenticate.admin.scopes.doc.ts +0 -28
- package/src/server/authenticate/flow/authenticate.flow.doc.ts +0 -47
- package/src/server/authenticate/fulfillment-service/authenticate.fulfillment-service.doc.ts +0 -48
- package/src/server/authenticate/public/appProxy/authenticate.public.app-proxy.doc.ts +0 -55
- package/src/server/authenticate/public/checkout/authenticate.public.checkout.doc.ts +0 -49
- package/src/server/authenticate/public/customer-account/authenticate.public.customerAccount.doc.ts +0 -49
- package/src/server/authenticate/webhooks/authenticate.webhooks.doc.ts +0 -39
- package/src/server/clients/admin/authenticate.admin.api.doc.ts +0 -34
- package/src/server/clients/storefront/authenticate.storefront.api.doc.ts +0 -34
- package/src/server/shopify-app.doc.ts +0 -45
- package/src/server/unauthenticated/admin/unauthenticated.admin.doc.ts +0 -40
- package/src/server/unauthenticated/storefront/unauthenticated.storefront.doc.ts +0 -40
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
2
|
-
|
|
3
|
-
const data: ReferenceEntityTemplateSchema = {
|
|
4
|
-
name: 'AppProvider',
|
|
5
|
-
descriptionType: 'AppProviderGeneratedType',
|
|
6
|
-
description: '',
|
|
7
|
-
category: 'Entrypoints',
|
|
8
|
-
type: 'component',
|
|
9
|
-
isVisualComponent: false,
|
|
10
|
-
definitions: [
|
|
11
|
-
{
|
|
12
|
-
title: 'AppProviderProps',
|
|
13
|
-
description: 'Props for the `AppProvider` component.',
|
|
14
|
-
type: 'AppProviderProps',
|
|
15
|
-
filePath: 'src/react/components/AppProvider/AppProvider.tsx',
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
jsDocTypeExamples: ['AppProviderGeneratedType'],
|
|
19
|
-
related: [
|
|
20
|
-
{
|
|
21
|
-
name: 'App bridge',
|
|
22
|
-
subtitle: 'Learn more about App Bridge.',
|
|
23
|
-
url: '/docs/api/app-bridge-library',
|
|
24
|
-
type: 'shopify',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
name: 'Polaris',
|
|
28
|
-
subtitle: 'Learn more about Polaris.',
|
|
29
|
-
url: '/docs/apps/tools/polaris',
|
|
30
|
-
type: 'shopify',
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export default data;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
2
|
-
|
|
3
|
-
const data: ReferenceEntityTemplateSchema = {
|
|
4
|
-
name: 'AppProxyForm',
|
|
5
|
-
descriptionType: 'AppProxyFormGeneratedType',
|
|
6
|
-
description: '',
|
|
7
|
-
category: 'App proxy components',
|
|
8
|
-
type: 'component',
|
|
9
|
-
isVisualComponent: false,
|
|
10
|
-
definitions: [],
|
|
11
|
-
jsDocTypeExamples: ['AppProxyFormGeneratedType'],
|
|
12
|
-
related: [
|
|
13
|
-
{
|
|
14
|
-
name: 'authenticate.public.appProxy',
|
|
15
|
-
subtitle: 'Authenticating app proxy requests.',
|
|
16
|
-
url: '/docs/api/shopify-app-remix/authenticate/public/app-proxy',
|
|
17
|
-
type: 'remix',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
name: 'AppProxyProvider',
|
|
21
|
-
subtitle: 'Enable JavaScript in pages loaded through app proxies.',
|
|
22
|
-
url: '/docs/api/shopify-app-remix/app-proxy-components/appproxyprovider',
|
|
23
|
-
type: 'remix',
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export default data;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
2
|
-
|
|
3
|
-
const data: ReferenceEntityTemplateSchema = {
|
|
4
|
-
name: 'AppProxyLink',
|
|
5
|
-
descriptionType: 'AppProxyLinkGeneratedType',
|
|
6
|
-
description: '',
|
|
7
|
-
category: 'App proxy components',
|
|
8
|
-
type: 'component',
|
|
9
|
-
isVisualComponent: false,
|
|
10
|
-
definitions: [],
|
|
11
|
-
jsDocTypeExamples: ['AppProxyLinkGeneratedType'],
|
|
12
|
-
related: [
|
|
13
|
-
{
|
|
14
|
-
name: 'authenticate.public.appProxy',
|
|
15
|
-
subtitle: 'Authenticating app proxy requests.',
|
|
16
|
-
url: '/docs/api/shopify-app-remix/authenticate/public/app-proxy',
|
|
17
|
-
type: 'remix',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
name: 'AppProxyProvider',
|
|
21
|
-
subtitle: 'Enable JavaScript in pages loaded through app proxies.',
|
|
22
|
-
url: '/docs/api/shopify-app-remix/app-proxy-components/appproxyprovider',
|
|
23
|
-
type: 'remix',
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export default data;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
2
|
-
|
|
3
|
-
const data: ReferenceEntityTemplateSchema = {
|
|
4
|
-
name: 'AppProxyProvider',
|
|
5
|
-
descriptionType: 'AppProxyProviderGeneratedType',
|
|
6
|
-
description: '',
|
|
7
|
-
category: 'Entrypoints',
|
|
8
|
-
type: 'component',
|
|
9
|
-
isVisualComponent: false,
|
|
10
|
-
definitions: [
|
|
11
|
-
{
|
|
12
|
-
title: 'AppProxyProviderProps',
|
|
13
|
-
description: 'Props for the `AppProxyProvider` component.',
|
|
14
|
-
type: 'AppProxyProviderProps',
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
jsDocTypeExamples: ['AppProxyProviderGeneratedType'],
|
|
18
|
-
related: [
|
|
19
|
-
{
|
|
20
|
-
name: 'authenticate.public.appProxy',
|
|
21
|
-
subtitle: 'Authenticate app proxy requests.',
|
|
22
|
-
url: '/docs/api/shopify-app-remix/authenticate/public/app-proxy',
|
|
23
|
-
type: 'remix',
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
name: 'AppProxyForm',
|
|
27
|
-
subtitle: 'Render form elements in proxies.',
|
|
28
|
-
url: '/docs/api/shopify-app-remix/app-proxy-components/appproxyform',
|
|
29
|
-
type: 'remix',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
name: 'AppProxyLink',
|
|
33
|
-
subtitle: 'Render link elements in proxies.',
|
|
34
|
-
url: '/docs/api/shopify-app-remix/app-proxy-components/appproxylink',
|
|
35
|
-
type: 'remix',
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export default data;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
2
|
-
|
|
3
|
-
const data: ReferenceEntityTemplateSchema = {
|
|
4
|
-
name: 'Admin',
|
|
5
|
-
description:
|
|
6
|
-
'Contains methods for authenticating and interacting with the Admin API.\n\nThis function can handle requests for apps embedded in the Admin, Admin extensions, or non-embedded apps.',
|
|
7
|
-
category: 'Authenticate',
|
|
8
|
-
type: 'object',
|
|
9
|
-
isVisualComponent: false,
|
|
10
|
-
definitions: [
|
|
11
|
-
{
|
|
12
|
-
title: 'authenticate.admin',
|
|
13
|
-
description:
|
|
14
|
-
'Authenticates requests coming from the Shopify admin.\n\nThe shape of the returned object changes depending on the `isEmbeddedApp` config.',
|
|
15
|
-
type: 'AuthenticateAdmin',
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
defaultExample: {
|
|
19
|
-
description: 'Authenticate, run API mutation, and redirect',
|
|
20
|
-
codeblock: {
|
|
21
|
-
title: 'Authenticate, run API mutation, and redirect',
|
|
22
|
-
tabs: [
|
|
23
|
-
{
|
|
24
|
-
title: '/app/routes/**.ts',
|
|
25
|
-
language: 'typescript',
|
|
26
|
-
code: './authenticate.admin.doc.example.ts',
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
jsDocTypeExamples: [
|
|
32
|
-
'EmbeddedAdminContext',
|
|
33
|
-
'AdminApiContext',
|
|
34
|
-
'BillingContext',
|
|
35
|
-
'ScopesApiContext',
|
|
36
|
-
],
|
|
37
|
-
related: [
|
|
38
|
-
{
|
|
39
|
-
name: 'API context',
|
|
40
|
-
subtitle: 'Interact with the Admin API.',
|
|
41
|
-
url: '/docs/api/shopify-app-remix/apis/admin-api',
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
name: 'Billing context',
|
|
45
|
-
subtitle: 'Bill merchants for your app using the Admin API.',
|
|
46
|
-
url: '/docs/api/shopify-app-remix/apis/billing',
|
|
47
|
-
},
|
|
48
|
-
],
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export default data;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
2
|
-
|
|
3
|
-
const data: ReferenceEntityTemplateSchema = {
|
|
4
|
-
name: 'Billing',
|
|
5
|
-
description:
|
|
6
|
-
'Contains function used to bill merchants for your app with the Billing API.\n\nThis object is returned on authenticated Admin requests.' +
|
|
7
|
-
'\n\n> Note: [Managed App Pricing](/docs/apps/launch/billing/managed-pricing) is now available. Define your app’s pricing plans directly in the Shopify Partner Dashboard, without needing to use the Billing API.',
|
|
8
|
-
category: 'APIs',
|
|
9
|
-
type: 'object',
|
|
10
|
-
isVisualComponent: false,
|
|
11
|
-
definitions: [
|
|
12
|
-
{
|
|
13
|
-
title: 'billing',
|
|
14
|
-
description:
|
|
15
|
-
'Provides utilities that apps can use to request billing for the app using the Admin API.',
|
|
16
|
-
type: 'BillingContext',
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
-
jsDocTypeExamples: ['BillingContext'],
|
|
20
|
-
related: [
|
|
21
|
-
{
|
|
22
|
-
name: 'Admin context',
|
|
23
|
-
subtitle: 'Authenticate requests from Shopify Admin.',
|
|
24
|
-
url: '/docs/api/shopify-app-remix/authenticate/admin',
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export default data;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
2
|
-
|
|
3
|
-
const data: ReferenceEntityTemplateSchema = {
|
|
4
|
-
name: 'Scopes',
|
|
5
|
-
description:
|
|
6
|
-
'Contains functions used to manage scopes for your app.\n\nThis object is returned on authenticated Admin requests.',
|
|
7
|
-
category: 'APIs',
|
|
8
|
-
type: 'object',
|
|
9
|
-
isVisualComponent: false,
|
|
10
|
-
definitions: [
|
|
11
|
-
{
|
|
12
|
-
title: 'scopes',
|
|
13
|
-
description:
|
|
14
|
-
'Provides utilities that apps can use to [manage scopes](https://shopify.dev/docs/apps/build/authentication-authorization/app-installation/manage-access-scopes) for the app using the Admin API.',
|
|
15
|
-
type: 'ScopesApiContext',
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
jsDocTypeExamples: ['ScopesApiContext'],
|
|
19
|
-
related: [
|
|
20
|
-
{
|
|
21
|
-
name: 'Admin context',
|
|
22
|
-
subtitle: 'Authenticate requests from Shopify Admin.',
|
|
23
|
-
url: '/docs/api/shopify-app-remix/authenticate/admin',
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export default data;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
2
|
-
|
|
3
|
-
const data: ReferenceEntityTemplateSchema = {
|
|
4
|
-
name: 'Flow',
|
|
5
|
-
description:
|
|
6
|
-
'Contains functions for verifying Shopify Flow extensions.' +
|
|
7
|
-
'\n\nSee the [Flow documentation](https://shopify.dev/docs/apps/flow/actions/endpoints) for more information.',
|
|
8
|
-
category: 'Authenticate',
|
|
9
|
-
type: 'object',
|
|
10
|
-
isVisualComponent: false,
|
|
11
|
-
definitions: [
|
|
12
|
-
{
|
|
13
|
-
title: 'authenticate.flow',
|
|
14
|
-
description: 'Verifies requests coming from Shopify Flow extensions.',
|
|
15
|
-
type: 'AuthenticateFlow',
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
defaultExample: {
|
|
19
|
-
description: 'Handle a flow action call',
|
|
20
|
-
codeblock: {
|
|
21
|
-
title: 'Set a metafield on a customer after a flow call',
|
|
22
|
-
tabs: [
|
|
23
|
-
{
|
|
24
|
-
title: '/app/routes/**.ts',
|
|
25
|
-
language: 'typescript',
|
|
26
|
-
code: './authenticate.flow.doc.example.ts',
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
jsDocTypeExamples: ['FlowContext'],
|
|
32
|
-
related: [
|
|
33
|
-
{
|
|
34
|
-
name: 'Admin API context',
|
|
35
|
-
subtitle: 'Interact with the Admin API.',
|
|
36
|
-
url: '/docs/api/shopify-app-remix/apis/admin-api',
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: 'Flow action endpoints',
|
|
40
|
-
subtitle: 'Receive requests from Flow.',
|
|
41
|
-
url: '/docs/apps/flow/actions/endpoints',
|
|
42
|
-
type: 'shopify',
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export default data;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
|
|
2
|
-
|
|
3
|
-
const data: ReferenceEntityTemplateSchema = {
|
|
4
|
-
name: 'Fulfillment Service',
|
|
5
|
-
description:
|
|
6
|
-
'Contains functions for verifying fulfillment service requests.' +
|
|
7
|
-
'\n\nSee the [fulfillment service documentation](https://shopify.dev/docs/apps/fulfillment/fulfillment-service-apps) for more information.',
|
|
8
|
-
category: 'Authenticate',
|
|
9
|
-
type: 'object',
|
|
10
|
-
isVisualComponent: false,
|
|
11
|
-
definitions: [
|
|
12
|
-
{
|
|
13
|
-
title: 'authenticate.fulfillmentService',
|
|
14
|
-
description:
|
|
15
|
-
'Verifies requests coming from Shopify to fulfillment service apps',
|
|
16
|
-
type: 'AuthenticateFulfillmentService',
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
-
defaultExample: {
|
|
20
|
-
description: 'Handle a fulfillment service notification call',
|
|
21
|
-
codeblock: {
|
|
22
|
-
title: 'Consume a fulfillment service notification request',
|
|
23
|
-
tabs: [
|
|
24
|
-
{
|
|
25
|
-
title: '/app/routes/**.ts',
|
|
26
|
-
language: 'typescript',
|
|
27
|
-
code: './authenticate.fulfillment-service.doc.example.ts',
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
jsDocTypeExamples: ['FulfillmentServiceContext'],
|
|
33
|
-
related: [
|
|
34
|
-
{
|
|
35
|
-
name: 'Admin API context',
|
|
36
|
-
subtitle: 'Interact with the Admin API.',
|
|
37
|
-
url: '/docs/api/shopify-app-remix/apis/admin-api',
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
name: 'Manage Fulfillments',
|
|
41
|
-
subtitle: 'Receive fulfillment requests and cancellations.',
|
|
42
|
-
url: '/docs/apps/fulfillment/fulfillment-service-apps/manage-fulfillments',
|
|
43
|
-
type: 'shopify',
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export default data;
|
|
@@ -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;
|
package/src/server/authenticate/public/customer-account/authenticate.public.customerAccount.doc.ts
DELETED
|
@@ -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;
|