@shopify/cli-kit 3.32.1 → 3.33.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.
- package/dist/constants.d.ts +0 -1
- package/dist/constants.js +0 -1
- package/dist/constants.js.map +1 -1
- package/dist/environment/local.d.ts +0 -1
- package/dist/environment/local.js +0 -3
- package/dist/environment/local.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/private/common/array.d.ts +1 -0
- package/dist/private/common/array.js +4 -0
- package/dist/private/common/array.js.map +1 -0
- package/dist/private/node/api/rest.d.ts +6 -0
- package/dist/private/node/api/rest.js +27 -0
- package/dist/private/node/api/rest.js.map +1 -0
- package/dist/private/node/ui/components/Subdued.d.ts +9 -0
- package/dist/private/node/ui/components/Subdued.js +10 -0
- package/dist/private/node/ui/components/Subdued.js.map +1 -0
- package/dist/private/node/ui/components/Subdued.test.d.ts +1 -0
- package/dist/private/node/ui/components/Subdued.test.js +11 -0
- package/dist/private/node/ui/components/Subdued.test.js.map +1 -0
- package/dist/private/node/ui/components/TokenizedText.d.ts +4 -1
- package/dist/private/node/ui/components/TokenizedText.js +4 -0
- package/dist/private/node/ui/components/TokenizedText.js.map +1 -1
- package/dist/private/node/ui/components/TokenizedText.test.js +4 -1
- package/dist/private/node/ui/components/TokenizedText.test.js.map +1 -1
- package/dist/public/common/array.d.ts +4 -0
- package/dist/public/common/array.js +4 -0
- package/dist/public/common/array.js.map +1 -1
- package/dist/public/common/object.d.ts +3 -3
- package/dist/public/common/object.js +5 -7
- package/dist/public/common/object.js.map +1 -1
- package/dist/public/common/url.d.ts +2 -1
- package/dist/public/common/url.js +3 -2
- package/dist/public/common/url.js.map +1 -1
- package/dist/public/node/api/admin.d.ts +30 -0
- package/dist/public/node/api/admin.js +28 -0
- package/dist/public/node/api/admin.js.map +1 -1
- package/dist/public/node/api/partners.js +6 -1
- package/dist/public/node/api/partners.js.map +1 -1
- package/dist/public/node/ruby.js +1 -1
- package/dist/public/node/ruby.js.map +1 -1
- package/dist/public/node/ui.d.ts +1 -1
- package/dist/public/node/ui.js.map +1 -1
- package/dist/session/validate.js +2 -2
- package/dist/session/validate.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -2
- package/dist/api/graphql/all_app_extension_registrations.d.ts +0 -20
- package/dist/api/graphql/all_app_extension_registrations.js +0 -20
- package/dist/api/graphql/all_app_extension_registrations.js.map +0 -1
- package/dist/api/graphql/all_dev_stores_by_org.d.ts +0 -18
- package/dist/api/graphql/all_dev_stores_by_org.js +0 -21
- package/dist/api/graphql/all_dev_stores_by_org.js.map +0 -1
- package/dist/api/graphql/all_orgs.d.ts +0 -12
- package/dist/api/graphql/all_orgs.js +0 -14
- package/dist/api/graphql/all_orgs.js.map +0 -1
- package/dist/api/graphql/convert_dev_to_test_store.d.ts +0 -16
- package/dist/api/graphql/convert_dev_to_test_store.js +0 -13
- package/dist/api/graphql/convert_dev_to_test_store.js.map +0 -1
- package/dist/api/graphql/create_app.d.ts +0 -29
- package/dist/api/graphql/create_app.js +0 -33
- package/dist/api/graphql/create_app.js.map +0 -1
- package/dist/api/graphql/create_deployment.d.ts +0 -33
- package/dist/api/graphql/create_deployment.js +0 -25
- package/dist/api/graphql/create_deployment.js.map +0 -1
- package/dist/api/graphql/extension_create.d.ts +0 -30
- package/dist/api/graphql/extension_create.js +0 -26
- package/dist/api/graphql/extension_create.js.map +0 -1
- package/dist/api/graphql/extension_specifications.d.ts +0 -27
- package/dist/api/graphql/extension_specifications.js +0 -22
- package/dist/api/graphql/extension_specifications.js.map +0 -1
- package/dist/api/graphql/find_app.d.ts +0 -14
- package/dist/api/graphql/find_app.js +0 -17
- package/dist/api/graphql/find_app.js.map +0 -1
- package/dist/api/graphql/find_org.d.ts +0 -18
- package/dist/api/graphql/find_org.js +0 -21
- package/dist/api/graphql/find_org.js.map +0 -1
- package/dist/api/graphql/find_org_basic.d.ts +0 -11
- package/dist/api/graphql/find_org_basic.js +0 -14
- package/dist/api/graphql/find_org_basic.js.map +0 -1
- package/dist/api/graphql/find_store_by_domain.d.ts +0 -21
- package/dist/api/graphql/find_store_by_domain.js +0 -24
- package/dist/api/graphql/find_store_by_domain.js.map +0 -1
- package/dist/api/graphql/functions/api_schema_definition.d.ts +0 -9
- package/dist/api/graphql/functions/api_schema_definition.js +0 -7
- package/dist/api/graphql/functions/api_schema_definition.js.map +0 -1
- package/dist/api/graphql/functions/app_function_set.d.ts +0 -30
- package/dist/api/graphql/functions/app_function_set.js +0 -38
- package/dist/api/graphql/functions/app_function_set.js.map +0 -1
- package/dist/api/graphql/functions/function_service_proxy.d.ts +0 -4
- package/dist/api/graphql/functions/function_service_proxy.js +0 -7
- package/dist/api/graphql/functions/function_service_proxy.js.map +0 -1
- package/dist/api/graphql/functions/upload_url_generate.d.ts +0 -12
- package/dist/api/graphql/functions/upload_url_generate.js +0 -11
- package/dist/api/graphql/functions/upload_url_generate.js.map +0 -1
- package/dist/api/graphql/generate_signed_upload_url.d.ts +0 -15
- package/dist/api/graphql/generate_signed_upload_url.js +0 -15
- package/dist/api/graphql/generate_signed_upload_url.js.map +0 -1
- package/dist/api/graphql/get_urls.d.ts +0 -10
- package/dist/api/graphql/get_urls.js +0 -10
- package/dist/api/graphql/get_urls.js.map +0 -1
- package/dist/api/graphql/get_variant_id.d.ts +0 -17
- package/dist/api/graphql/get_variant_id.js +0 -20
- package/dist/api/graphql/get_variant_id.js.map +0 -1
- package/dist/api/graphql/index.d.ts +0 -21
- package/dist/api/graphql/index.js +0 -22
- package/dist/api/graphql/index.js.map +0 -1
- package/dist/api/graphql/update_draft.d.ts +0 -33
- package/dist/api/graphql/update_draft.js +0 -24
- package/dist/api/graphql/update_draft.js.map +0 -1
- package/dist/api/graphql/update_urls.d.ts +0 -14
- package/dist/api/graphql/update_urls.js +0 -12
- package/dist/api/graphql/update_urls.js.map +0 -1
- package/dist/api.d.ts +0 -3
- package/dist/api.js +0 -4
- package/dist/api.js.map +0 -1
- package/dist/public/node/checksum.d.ts +0 -20
- package/dist/public/node/checksum.js +0 -32
- package/dist/public/node/checksum.js.map +0 -1
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare const AppFunctionSetMutation: string;
|
|
2
|
-
export interface AppFunctionSetMutationSchema {
|
|
3
|
-
data: {
|
|
4
|
-
functionSet: {
|
|
5
|
-
userErrors: {
|
|
6
|
-
field: string;
|
|
7
|
-
message: string;
|
|
8
|
-
tag: string;
|
|
9
|
-
}[];
|
|
10
|
-
function?: {
|
|
11
|
-
id: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export interface AppFunctionSetVariables {
|
|
17
|
-
id?: string;
|
|
18
|
-
legacyUuid?: string;
|
|
19
|
-
title: string;
|
|
20
|
-
description?: string;
|
|
21
|
-
apiType: string;
|
|
22
|
-
apiVersion?: string;
|
|
23
|
-
inputQuery?: string;
|
|
24
|
-
appBridge?: {
|
|
25
|
-
createPath?: string;
|
|
26
|
-
detailsPath?: string;
|
|
27
|
-
};
|
|
28
|
-
enableCreationUi: boolean;
|
|
29
|
-
moduleUploadUrl: string;
|
|
30
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-request';
|
|
2
|
-
export const AppFunctionSetMutation = gql `
|
|
3
|
-
mutation FunctionSet(
|
|
4
|
-
$id: FunctionId
|
|
5
|
-
$legacyUuid: String
|
|
6
|
-
$title: String!
|
|
7
|
-
$description: String
|
|
8
|
-
$apiType: String!
|
|
9
|
-
$apiVersion: String!
|
|
10
|
-
$inputQuery: String
|
|
11
|
-
$appBridge: AppBridgeInput
|
|
12
|
-
$enableCreationUi: Boolean
|
|
13
|
-
$moduleUploadUrl: String!
|
|
14
|
-
) {
|
|
15
|
-
functionSet(
|
|
16
|
-
id: $id
|
|
17
|
-
legacyUuid: $legacyUuid
|
|
18
|
-
title: $title
|
|
19
|
-
description: $description
|
|
20
|
-
apiType: $apiType
|
|
21
|
-
apiVersion: $apiVersion
|
|
22
|
-
inputQuery: $inputQuery
|
|
23
|
-
appBridge: $appBridge
|
|
24
|
-
enableCreationUi: $enableCreationUi
|
|
25
|
-
moduleUploadUrl: $moduleUploadUrl
|
|
26
|
-
) {
|
|
27
|
-
userErrors {
|
|
28
|
-
field
|
|
29
|
-
message
|
|
30
|
-
tag
|
|
31
|
-
}
|
|
32
|
-
function {
|
|
33
|
-
id
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
`;
|
|
38
|
-
//# sourceMappingURL=app_function_set.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app_function_set.js","sourceRoot":"","sources":["../../../../src/api/graphql/functions/app_function_set.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,iBAAiB,CAAA;AAEnC,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCxC,CAAA","sourcesContent":["import {gql} from 'graphql-request'\n\nexport const AppFunctionSetMutation = gql`\n mutation FunctionSet(\n $id: FunctionId\n $legacyUuid: String\n $title: String!\n $description: String\n $apiType: String!\n $apiVersion: String!\n $inputQuery: String\n $appBridge: AppBridgeInput\n $enableCreationUi: Boolean\n $moduleUploadUrl: String!\n ) {\n functionSet(\n id: $id\n legacyUuid: $legacyUuid\n title: $title\n description: $description\n apiType: $apiType\n apiVersion: $apiVersion\n inputQuery: $inputQuery\n appBridge: $appBridge\n enableCreationUi: $enableCreationUi\n moduleUploadUrl: $moduleUploadUrl\n ) {\n userErrors {\n field\n message\n tag\n }\n function {\n id\n }\n }\n }\n`\n\nexport interface AppFunctionSetMutationSchema {\n data: {\n functionSet: {\n userErrors: {\n field: string\n message: string\n tag: string\n }[]\n function?: {\n id: string\n }\n }\n }\n}\n\nexport interface AppFunctionSetVariables {\n id?: string\n legacyUuid?: string\n title: string\n description?: string\n apiType: string\n apiVersion?: string\n inputQuery?: string\n appBridge?: {\n createPath?: string\n detailsPath?: string\n }\n enableCreationUi: boolean\n moduleUploadUrl: string\n}\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-request';
|
|
2
|
-
export const ScriptServiceProxyQuery = gql `
|
|
3
|
-
query ProxyRequest($api_key: String, $query: String!, $variables: String) {
|
|
4
|
-
scriptServiceProxy(apiKey: $api_key, query: $query, variables: $variables)
|
|
5
|
-
}
|
|
6
|
-
`;
|
|
7
|
-
//# sourceMappingURL=function_service_proxy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"function_service_proxy.js","sourceRoot":"","sources":["../../../../src/api/graphql/functions/function_service_proxy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,iBAAiB,CAAA;AAEnC,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAA;;;;CAIzC,CAAA","sourcesContent":["import {gql} from 'graphql-request'\n\nexport const ScriptServiceProxyQuery = gql`\n query ProxyRequest($api_key: String, $query: String!, $variables: String) {\n scriptServiceProxy(apiKey: $api_key, query: $query, variables: $variables)\n }\n`\n\nexport interface ScriptServiceProxyQuerySchema {\n scriptServiceProxy: unknown\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upload_url_generate.js","sourceRoot":"","sources":["../../../../src/api/graphql/functions/upload_url_generate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,iBAAiB,CAAA;AAEnC,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAA;;;;;;;;CAQ3C,CAAA","sourcesContent":["import {gql} from 'graphql-request'\n\nexport const UploadUrlGenerateMutation = gql`\n mutation uploadUrlGenerate {\n uploadUrlGenerate {\n url\n headers\n maxSize\n }\n }\n`\n\nexport interface UploadUrlGenerateMutationSchema {\n data: {\n uploadUrlGenerate: {\n url: string\n headers: {[key: string]: string}\n maxSize: string\n }\n }\n}\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare const GenerateSignedUploadUrl: string;
|
|
2
|
-
export interface GenerateSignedUploadUrlVariables {
|
|
3
|
-
apiKey: string;
|
|
4
|
-
deploymentUuid: string;
|
|
5
|
-
bundleFormat: number;
|
|
6
|
-
}
|
|
7
|
-
export interface GenerateSignedUploadUrlSchema {
|
|
8
|
-
deploymentGenerateSignedUploadUrl: {
|
|
9
|
-
signedUploadUrl: string;
|
|
10
|
-
userErrors: {
|
|
11
|
-
field: string[];
|
|
12
|
-
message: string;
|
|
13
|
-
}[];
|
|
14
|
-
};
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-request';
|
|
2
|
-
export const GenerateSignedUploadUrl = gql `
|
|
3
|
-
mutation GenerateSignedUploadUrl($apiKey: String!, $deploymentUuid: String!, $bundleFormat: Int!) {
|
|
4
|
-
deploymentGenerateSignedUploadUrl(
|
|
5
|
-
input: {apiKey: $apiKey, deploymentUuid: $deploymentUuid, bundleFormat: $bundleFormat}
|
|
6
|
-
) {
|
|
7
|
-
signedUploadUrl
|
|
8
|
-
userErrors {
|
|
9
|
-
field
|
|
10
|
-
message
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
`;
|
|
15
|
-
//# sourceMappingURL=generate_signed_upload_url.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generate_signed_upload_url.js","sourceRoot":"","sources":["../../../src/api/graphql/generate_signed_upload_url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,iBAAiB,CAAA;AAEnC,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAA;;;;;;;;;;;;CAYzC,CAAA","sourcesContent":["import {gql} from 'graphql-request'\n\nexport const GenerateSignedUploadUrl = gql`\n mutation GenerateSignedUploadUrl($apiKey: String!, $deploymentUuid: String!, $bundleFormat: Int!) {\n deploymentGenerateSignedUploadUrl(\n input: {apiKey: $apiKey, deploymentUuid: $deploymentUuid, bundleFormat: $bundleFormat}\n ) {\n signedUploadUrl\n userErrors {\n field\n message\n }\n }\n }\n`\n\nexport interface GenerateSignedUploadUrlVariables {\n apiKey: string\n deploymentUuid: string\n bundleFormat: number\n}\n\nexport interface GenerateSignedUploadUrlSchema {\n deploymentGenerateSignedUploadUrl: {\n signedUploadUrl: string\n userErrors: {\n field: string[]\n message: string\n }[]\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get_urls.js","sourceRoot":"","sources":["../../../src/api/graphql/get_urls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,iBAAiB,CAAA;AAEnC,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAA;;;;;;;CAO9B,CAAA","sourcesContent":["import {gql} from 'graphql-request'\n\nexport const GetURLsQuery = gql`\n query getApp($apiKey: String!) {\n app(apiKey: $apiKey) {\n applicationUrl\n redirectUrlWhitelist\n }\n }\n`\n\nexport interface GetURLsQueryVariables {\n apiKey: string\n}\n\nexport interface GetURLsQuerySchema {\n app: {\n applicationUrl: string\n redirectUrlWhitelist: string[]\n }\n}\n"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-request';
|
|
2
|
-
export const FindProductVariantQuery = gql `
|
|
3
|
-
query {
|
|
4
|
-
products(first: 1) {
|
|
5
|
-
edges {
|
|
6
|
-
node {
|
|
7
|
-
id
|
|
8
|
-
variants(first: 1) {
|
|
9
|
-
edges {
|
|
10
|
-
node {
|
|
11
|
-
id
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
`;
|
|
20
|
-
//# sourceMappingURL=get_variant_id.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get_variant_id.js","sourceRoot":"","sources":["../../../src/api/graphql/get_variant_id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,iBAAiB,CAAA;AAEnC,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;CAiBzC,CAAA","sourcesContent":["import {gql} from 'graphql-request'\n\nexport const FindProductVariantQuery = gql`\n query {\n products(first: 1) {\n edges {\n node {\n id\n variants(first: 1) {\n edges {\n node {\n id\n }\n }\n }\n }\n }\n }\n }\n`\n\nexport interface FindProductVariantSchema {\n products: {\n edges: {\n node: {\n id: string\n variants: {\n edges: {\n node: {\n id: string\n }\n }[]\n }\n }\n }[]\n }\n}\n"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export * from './all_app_extension_registrations.js';
|
|
2
|
-
export * from './all_orgs.js';
|
|
3
|
-
export * from './all_dev_stores_by_org.js';
|
|
4
|
-
export * from './convert_dev_to_test_store.js';
|
|
5
|
-
export * from './create_app.js';
|
|
6
|
-
export * from './create_deployment.js';
|
|
7
|
-
export * from './extension_create.js';
|
|
8
|
-
export * from './extension_specifications.js';
|
|
9
|
-
export * from './find_app.js';
|
|
10
|
-
export * from './find_org_basic.js';
|
|
11
|
-
export * from './find_org.js';
|
|
12
|
-
export * from './find_store_by_domain.js';
|
|
13
|
-
export * from './functions/app_function_set.js';
|
|
14
|
-
export * from './functions/api_schema_definition.js';
|
|
15
|
-
export * from './functions/function_service_proxy.js';
|
|
16
|
-
export * from './functions/upload_url_generate.js';
|
|
17
|
-
export * from './generate_signed_upload_url.js';
|
|
18
|
-
export * from './get_urls.js';
|
|
19
|
-
export * from './get_variant_id.js';
|
|
20
|
-
export * from './update_draft.js';
|
|
21
|
-
export * from './update_urls.js';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export * from './all_app_extension_registrations.js';
|
|
2
|
-
export * from './all_orgs.js';
|
|
3
|
-
export * from './all_dev_stores_by_org.js';
|
|
4
|
-
export * from './convert_dev_to_test_store.js';
|
|
5
|
-
export * from './create_app.js';
|
|
6
|
-
export * from './create_deployment.js';
|
|
7
|
-
export * from './extension_create.js';
|
|
8
|
-
export * from './extension_specifications.js';
|
|
9
|
-
export * from './find_app.js';
|
|
10
|
-
export * from './find_org_basic.js';
|
|
11
|
-
export * from './find_org.js';
|
|
12
|
-
export * from './find_store_by_domain.js';
|
|
13
|
-
export * from './functions/app_function_set.js';
|
|
14
|
-
export * from './functions/api_schema_definition.js';
|
|
15
|
-
export * from './functions/function_service_proxy.js';
|
|
16
|
-
export * from './functions/upload_url_generate.js';
|
|
17
|
-
export * from './generate_signed_upload_url.js';
|
|
18
|
-
export * from './get_urls.js';
|
|
19
|
-
export * from './get_variant_id.js';
|
|
20
|
-
export * from './update_draft.js';
|
|
21
|
-
export * from './update_urls.js';
|
|
22
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/graphql/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAA;AACpD,cAAc,eAAe,CAAA;AAC7B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,eAAe,CAAA;AAC7B,cAAc,2BAA2B,CAAA;AACzC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,sCAAsC,CAAA;AACpD,cAAc,uCAAuC,CAAA;AACrD,cAAc,oCAAoC,CAAA;AAClD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA","sourcesContent":["export * from './all_app_extension_registrations.js'\nexport * from './all_orgs.js'\nexport * from './all_dev_stores_by_org.js'\nexport * from './convert_dev_to_test_store.js'\nexport * from './create_app.js'\nexport * from './create_deployment.js'\nexport * from './extension_create.js'\nexport * from './extension_specifications.js'\nexport * from './find_app.js'\nexport * from './find_org_basic.js'\nexport * from './find_org.js'\nexport * from './find_store_by_domain.js'\nexport * from './functions/app_function_set.js'\nexport * from './functions/api_schema_definition.js'\nexport * from './functions/function_service_proxy.js'\nexport * from './functions/upload_url_generate.js'\nexport * from './generate_signed_upload_url.js'\nexport * from './get_urls.js'\nexport * from './get_variant_id.js'\nexport * from './update_draft.js'\nexport * from './update_urls.js'\n"]}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export declare const ExtensionUpdateDraftMutation: string;
|
|
2
|
-
export interface ExtensionUpdateDraftInput {
|
|
3
|
-
apiKey: string;
|
|
4
|
-
config: string;
|
|
5
|
-
context: string | undefined;
|
|
6
|
-
registrationId: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ExtensionUpdateDraftPayload {
|
|
9
|
-
clientMutationId: string;
|
|
10
|
-
extensionVersion: ExtensionVersion;
|
|
11
|
-
userErrors: {
|
|
12
|
-
field: string[];
|
|
13
|
-
message: string;
|
|
14
|
-
}[];
|
|
15
|
-
}
|
|
16
|
-
export interface ExtensionVersion {
|
|
17
|
-
config: string;
|
|
18
|
-
context: string;
|
|
19
|
-
id: string;
|
|
20
|
-
lastUserInteractionAt: string;
|
|
21
|
-
location: string;
|
|
22
|
-
registrationId: string;
|
|
23
|
-
registrationUuid: string;
|
|
24
|
-
uuid: string;
|
|
25
|
-
validationErrors: {
|
|
26
|
-
field: string[];
|
|
27
|
-
message: string;
|
|
28
|
-
}[];
|
|
29
|
-
versionTag: string;
|
|
30
|
-
}
|
|
31
|
-
export interface ExtensionUpdateSchema {
|
|
32
|
-
extensionUpdateDraft: ExtensionUpdateDraftPayload;
|
|
33
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-request';
|
|
2
|
-
export const ExtensionUpdateDraftMutation = gql `
|
|
3
|
-
mutation ExtensionUpdateDraft($apiKey: String!, $registrationId: ID!, $config: JSON!, $context: String) {
|
|
4
|
-
extensionUpdateDraft(
|
|
5
|
-
input: {apiKey: $apiKey, registrationId: $registrationId, config: $config, context: $context}
|
|
6
|
-
) {
|
|
7
|
-
extensionVersion {
|
|
8
|
-
registrationId
|
|
9
|
-
context
|
|
10
|
-
lastUserInteractionAt
|
|
11
|
-
location
|
|
12
|
-
validationErrors {
|
|
13
|
-
field
|
|
14
|
-
message
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
userErrors {
|
|
18
|
-
field
|
|
19
|
-
message
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
`;
|
|
24
|
-
//# sourceMappingURL=update_draft.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update_draft.js","sourceRoot":"","sources":["../../../src/api/graphql/update_draft.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,iBAAiB,CAAA;AAEnC,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;CAqB9C,CAAA","sourcesContent":["import {gql} from 'graphql-request'\n\nexport const ExtensionUpdateDraftMutation = gql`\n mutation ExtensionUpdateDraft($apiKey: String!, $registrationId: ID!, $config: JSON!, $context: String) {\n extensionUpdateDraft(\n input: {apiKey: $apiKey, registrationId: $registrationId, config: $config, context: $context}\n ) {\n extensionVersion {\n registrationId\n context\n lastUserInteractionAt\n location\n validationErrors {\n field\n message\n }\n }\n userErrors {\n field\n message\n }\n }\n }\n`\n\nexport interface ExtensionUpdateDraftInput {\n apiKey: string\n config: string\n // not all extensions require configs, e.g. subscription\n context: string | undefined\n registrationId: string\n}\n\n// \"\"\"\n// Autogenerated return type of ExtensionUpdateDraft\n// \"\"\"\nexport interface ExtensionUpdateDraftPayload {\n // \"\"\"\n // A unique identifier for the client performing the mutation.\n // \"\"\"\n clientMutationId: string\n extensionVersion: ExtensionVersion\n // userErrors: [UserError]\n userErrors: {\n field: string[]\n message: string\n }[]\n}\n\n// \"\"\"\n// A particular version of an extension belonging to a Shopify Partner App.\n// \"\"\"\nexport interface ExtensionVersion {\n // \"\"\"\n // The serialized JSON config for the extension version\n // \"\"\"\n config: string\n\n // \"\"\"\n // The context of an extension version, indicating where it will be rendered\n // \"\"\"\n context: string\n\n // \"\"\"\n // The unique identifier of the extension version\n // \"\"\"\n // id: ID\n id: string\n\n // \"\"\"\n // The last time a user updated an extension version\n // \"\"\"\n // lastUserInteractionAt: DateTime\n lastUserInteractionAt: string\n\n // \"\"\"\n // The URL to view the app extension version in the Partners Dashboard\n // \"\"\"\n // location: Url\n location: string\n\n // \"\"\"\n // The unique identifier of the extension registration this version belongs to\n // \"\"\"\n // registrationId: ID\n registrationId: string\n\n // \"\"\"\n // The uuid of the extension registration this version belongs to\n // \"\"\"\n registrationUuid: string\n\n // \"\"\"\n // The uuid of the extension version\n // \"\"\"\n uuid: string\n\n // \"\"\"\n // The validation errors for an extension version\n // \"\"\"\n // validationErrors: [ValidationError]\n validationErrors: {\n field: string[]\n message: string\n }[]\n\n // \"\"\"\n // The version tag of the extension version\n // \"\"\"\n versionTag: string\n}\n\nexport interface ExtensionUpdateSchema {\n extensionUpdateDraft: ExtensionUpdateDraftPayload\n}\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const UpdateURLsQuery: string;
|
|
2
|
-
export interface UpdateURLsQueryVariables {
|
|
3
|
-
apiKey: string;
|
|
4
|
-
applicationUrl: string;
|
|
5
|
-
redirectUrlWhitelist: string[];
|
|
6
|
-
}
|
|
7
|
-
export interface UpdateURLsQuerySchema {
|
|
8
|
-
appUpdate: {
|
|
9
|
-
userErrors: {
|
|
10
|
-
field: string[];
|
|
11
|
-
message: string;
|
|
12
|
-
}[];
|
|
13
|
-
};
|
|
14
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-request';
|
|
2
|
-
export const UpdateURLsQuery = gql `
|
|
3
|
-
mutation appUpdate($apiKey: String!, $applicationUrl: Url!, $redirectUrlWhitelist: [Url]!) {
|
|
4
|
-
appUpdate(input: {apiKey: $apiKey, applicationUrl: $applicationUrl, redirectUrlWhitelist: $redirectUrlWhitelist}) {
|
|
5
|
-
userErrors {
|
|
6
|
-
message
|
|
7
|
-
field
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
`;
|
|
12
|
-
//# sourceMappingURL=update_urls.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update_urls.js","sourceRoot":"","sources":["../../../src/api/graphql/update_urls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,iBAAiB,CAAA;AAEnC,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;CASjC,CAAA","sourcesContent":["import {gql} from 'graphql-request'\n\nexport const UpdateURLsQuery = gql`\n mutation appUpdate($apiKey: String!, $applicationUrl: Url!, $redirectUrlWhitelist: [Url]!) {\n appUpdate(input: {apiKey: $apiKey, applicationUrl: $applicationUrl, redirectUrlWhitelist: $redirectUrlWhitelist}) {\n userErrors {\n message\n field\n }\n }\n }\n`\n\nexport interface UpdateURLsQueryVariables {\n apiKey: string\n applicationUrl: string\n redirectUrlWhitelist: string[]\n}\n\nexport interface UpdateURLsQuerySchema {\n appUpdate: {\n userErrors: {\n field: string[]\n message: string\n }[]\n }\n}\n"]}
|
package/dist/api.d.ts
DELETED
package/dist/api.js
DELETED
package/dist/api.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAA;AACjD,OAAO,KAAK,QAAQ,MAAM,wCAAwC,CAAA;AAElE,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,CAAA","sourcesContent":["import * as graphql from './api/graphql/index.js'\nimport * as identity from './session/identity-token-validation.js'\n\nexport {graphql, identity}\n"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { AbortError } from './error.js';
|
|
2
|
-
/**
|
|
3
|
-
* An error that's thrown when a file's MD5 doesn't match the expected value.
|
|
4
|
-
* @param options - An options object that includes the file path, and the expected and actual MD5.
|
|
5
|
-
* @returns An instance of Abort.
|
|
6
|
-
*/
|
|
7
|
-
export declare const InvalidChecksumError: ({ file, expected, got, }: {
|
|
8
|
-
file: string;
|
|
9
|
-
expected: string;
|
|
10
|
-
got: string;
|
|
11
|
-
}) => AbortError;
|
|
12
|
-
/**
|
|
13
|
-
* Given a local file and a URL pointing to a remote file representing the MD5 of a local file,
|
|
14
|
-
* it validates the authenticity of the binary using an MD5 checksum.
|
|
15
|
-
* @param options - The file to validate and the URL that points to the file containing the MD5.
|
|
16
|
-
*/
|
|
17
|
-
export declare function validateMD5({ file, md5FileURL }: {
|
|
18
|
-
file: string;
|
|
19
|
-
md5FileURL: string;
|
|
20
|
-
}): Promise<void>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { AbortError } from './error.js';
|
|
2
|
-
import { fetch } from '../../http.js';
|
|
3
|
-
import { debug, token } from '../../output.js';
|
|
4
|
-
import md5File from 'md5-file';
|
|
5
|
-
/**
|
|
6
|
-
* An error that's thrown when a file's MD5 doesn't match the expected value.
|
|
7
|
-
* @param options - An options object that includes the file path, and the expected and actual MD5.
|
|
8
|
-
* @returns An instance of Abort.
|
|
9
|
-
*/
|
|
10
|
-
export const InvalidChecksumError = ({ file, expected, got, }) => {
|
|
11
|
-
return new AbortError(`The validation of ${file} failed. We expected the checksum ${expected}, but got ${got})`);
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Given a local file and a URL pointing to a remote file representing the MD5 of a local file,
|
|
15
|
-
* it validates the authenticity of the binary using an MD5 checksum.
|
|
16
|
-
* @param options - The file to validate and the URL that points to the file containing the MD5.
|
|
17
|
-
*/
|
|
18
|
-
export async function validateMD5({ file, md5FileURL }) {
|
|
19
|
-
debug(`Checking MD5 of file ${token.path(file)} against the MD5 in ${token.link('URL', md5FileURL)}`);
|
|
20
|
-
const md5Digest = await md5File(file);
|
|
21
|
-
const md5Response = await fetch(md5FileURL);
|
|
22
|
-
const md5Contents = await md5Response.text();
|
|
23
|
-
const canonicalMD5 = md5Contents.split(' ')[0];
|
|
24
|
-
if (!(canonicalMD5 === md5Digest)) {
|
|
25
|
-
throw InvalidChecksumError({
|
|
26
|
-
file,
|
|
27
|
-
got: md5Digest,
|
|
28
|
-
expected: canonicalMD5,
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=checksum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checksum.js","sourceRoot":"","sources":["../../../src/public/node/checksum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,YAAY,CAAA;AACrC,OAAO,EAAC,KAAK,EAAC,MAAM,eAAe,CAAA;AACnC,OAAO,EAAC,KAAK,EAAE,KAAK,EAAC,MAAM,iBAAiB,CAAA;AAC5C,OAAO,OAAO,MAAM,UAAU,CAAA;AAE9B;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EACnC,IAAI,EACJ,QAAQ,EACR,GAAG,GAKJ,EAAc,EAAE;IACf,OAAO,IAAI,UAAU,CAAC,qBAAqB,IAAI,qCAAqC,QAAQ,aAAa,GAAG,GAAG,CAAC,CAAA;AAClH,CAAC,CAAA;AACD;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,EAAC,IAAI,EAAE,UAAU,EAAqC;IACtF,KAAK,CAAC,wBAAwB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,uBAAuB,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,CAAC,CAAA;IACrG,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IACrC,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,UAAU,CAAC,CAAA;IAC3C,MAAM,WAAW,GAAG,MAAM,WAAW,CAAC,IAAI,EAAE,CAAA;IAC5C,MAAM,YAAY,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAE,CAAA;IAC/C,IAAI,CAAC,CAAC,YAAY,KAAK,SAAS,CAAC,EAAE;QACjC,MAAM,oBAAoB,CAAC;YACzB,IAAI;YACJ,GAAG,EAAE,SAAS;YACd,QAAQ,EAAE,YAAY;SACvB,CAAC,CAAA;KACH;AACH,CAAC","sourcesContent":["import {AbortError} from './error.js'\nimport {fetch} from '../../http.js'\nimport {debug, token} from '../../output.js'\nimport md5File from 'md5-file'\n\n/**\n * An error that's thrown when a file's MD5 doesn't match the expected value.\n * @param options - An options object that includes the file path, and the expected and actual MD5.\n * @returns An instance of Abort.\n */\nexport const InvalidChecksumError = ({\n file,\n expected,\n got,\n}: {\n file: string\n expected: string\n got: string\n}): AbortError => {\n return new AbortError(`The validation of ${file} failed. We expected the checksum ${expected}, but got ${got})`)\n}\n/**\n * Given a local file and a URL pointing to a remote file representing the MD5 of a local file,\n * it validates the authenticity of the binary using an MD5 checksum.\n * @param options - The file to validate and the URL that points to the file containing the MD5.\n */\nexport async function validateMD5({file, md5FileURL}: {file: string; md5FileURL: string}): Promise<void> {\n debug(`Checking MD5 of file ${token.path(file)} against the MD5 in ${token.link('URL', md5FileURL)}`)\n const md5Digest = await md5File(file)\n const md5Response = await fetch(md5FileURL)\n const md5Contents = await md5Response.text()\n const canonicalMD5 = md5Contents.split(' ')[0]!\n if (!(canonicalMD5 === md5Digest)) {\n throw InvalidChecksumError({\n file,\n got: md5Digest,\n expected: canonicalMD5,\n })\n }\n}\n"]}
|