@shopify/cli-kit 3.32.0 → 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/http/fetch.js +1 -1
- package/dist/http/fetch.js.map +1 -1
- package/dist/http.d.ts +0 -1
- package/dist/http.js +0 -1
- package/dist/http.js.map +1 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -6
- package/dist/index.js.map +1 -1
- package/dist/npm.js +1 -1
- package/dist/npm.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/analytics.js +2 -2
- package/dist/private/node/analytics.js.map +1 -1
- package/dist/private/node/api/graphql.d.ts +5 -0
- package/dist/private/node/api/graphql.js +63 -0
- package/dist/private/node/api/graphql.js.map +1 -0
- package/dist/{api/common.d.ts → private/node/api/headers.d.ts} +3 -8
- package/dist/{api/common.js → private/node/api/headers.js} +20 -60
- package/dist/private/node/api/headers.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/FullScreen.js +11 -9
- package/dist/private/node/ui/components/FullScreen.js.map +1 -1
- package/dist/private/node/ui/components/SelectPrompt.js +15 -3
- package/dist/private/node/ui/components/SelectPrompt.js.map +1 -1
- 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/Table.js +1 -1
- package/dist/private/node/ui/components/Table.js.map +1 -1
- 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/collection.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/string.d.ts +55 -1
- package/dist/public/common/string.js +93 -1
- package/dist/public/common/string.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 +41 -0
- package/dist/public/node/api/admin.js +98 -0
- package/dist/public/node/api/admin.js.map +1 -0
- package/dist/public/node/api/oxygen.d.ts +22 -0
- package/dist/public/node/api/oxygen.js +40 -0
- package/dist/public/node/api/oxygen.js.map +1 -0
- package/dist/{api → public/node/api}/partners.d.ts +11 -3
- package/dist/public/node/api/partners.js +45 -0
- package/dist/public/node/api/partners.js.map +1 -0
- package/dist/public/node/base-command.js +1 -1
- package/dist/public/node/base-command.js.map +1 -1
- package/dist/public/node/crypto.d.ts +42 -0
- package/dist/public/node/crypto.js +55 -0
- package/dist/public/node/crypto.js.map +1 -0
- package/dist/{template.d.ts → public/node/liquid.d.ts} +10 -2
- package/dist/{template.js → public/node/liquid.js} +18 -13
- package/dist/public/node/liquid.js.map +1 -0
- package/dist/public/node/os.d.ts +16 -0
- package/dist/{os.js → public/node/os.js} +33 -28
- package/dist/public/node/os.js.map +1 -0
- package/dist/public/node/presets.js +2 -2
- package/dist/public/node/presets.js.map +1 -1
- package/dist/public/node/ruby.d.ts +11 -7
- package/dist/public/node/ruby.js +90 -22
- package/dist/public/node/ruby.js.map +1 -1
- package/dist/public/node/tcp.d.ts +2 -0
- package/dist/public/node/tcp.js +9 -0
- package/dist/public/node/tcp.js.map +1 -1
- package/dist/public/node/toml.d.ts +15 -0
- package/dist/public/node/toml.js +20 -0
- package/dist/public/node/toml.js.map +1 -0
- package/dist/public/node/ui.d.ts +1 -1
- package/dist/public/node/ui.js.map +1 -1
- package/dist/public/node/vscode.d.ts +14 -0
- package/dist/{vscode.js → public/node/vscode.js} +13 -7
- package/dist/public/node/vscode.js.map +1 -0
- package/dist/session/authorize.d.ts +4 -0
- package/dist/session/authorize.js +7 -2
- package/dist/session/authorize.js.map +1 -1
- package/dist/{api/identity.d.ts → session/identity-token-validation.d.ts} +0 -0
- package/dist/{api/identity.js → session/identity-token-validation.js} +1 -1
- package/dist/session/identity-token-validation.js.map +1 -0
- package/dist/session/schema.d.ts +18 -18
- package/dist/session/store.js +1 -1
- package/dist/session/store.js.map +1 -1
- package/dist/session/validate.js +2 -2
- package/dist/session/validate.js.map +1 -1
- package/dist/session.js +3 -3
- package/dist/session.js.map +1 -1
- package/dist/system.js +1 -1
- package/dist/system.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/inquirer/autocomplete.js +1 -1
- package/dist/ui/inquirer/autocomplete.js.map +1 -1
- package/package.json +2 -2
- package/dist/api/admin.d.ts +0 -3
- package/dist/api/admin.js +0 -56
- package/dist/api/admin.js.map +0 -1
- package/dist/api/common.js.map +0 -1
- 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/identity.js.map +0 -1
- package/dist/api/oxygen.d.ts +0 -5
- package/dist/api/oxygen.js +0 -30
- package/dist/api/oxygen.js.map +0 -1
- package/dist/api/partners.js +0 -44
- package/dist/api/partners.js.map +0 -1
- package/dist/api.d.ts +0 -6
- package/dist/api.js +0 -7
- package/dist/api.js.map +0 -1
- package/dist/http/graphql.d.ts +0 -13
- package/dist/http/graphql.js +0 -12
- package/dist/http/graphql.js.map +0 -1
- package/dist/os.d.ts +0 -11
- package/dist/os.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
- package/dist/string.d.ts +0 -28
- package/dist/string.js +0 -77
- package/dist/string.js.map +0 -1
- package/dist/template.js.map +0 -1
- package/dist/toml.d.ts +0 -3
- package/dist/toml.js +0 -8
- package/dist/toml.js.map +0 -1
- package/dist/vscode.d.ts +0 -8
- package/dist/vscode.js.map +0 -1
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare const FindOrganizationQuery: string;
|
|
2
|
-
export interface FindOrganizationQuerySchema {
|
|
3
|
-
organizations: {
|
|
4
|
-
nodes: {
|
|
5
|
-
id: string;
|
|
6
|
-
businessName: string;
|
|
7
|
-
website: string;
|
|
8
|
-
appsNext: boolean;
|
|
9
|
-
apps: {
|
|
10
|
-
nodes: {
|
|
11
|
-
id: string;
|
|
12
|
-
title: string;
|
|
13
|
-
apiKey: string;
|
|
14
|
-
}[];
|
|
15
|
-
};
|
|
16
|
-
}[];
|
|
17
|
-
};
|
|
18
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-request';
|
|
2
|
-
export const FindOrganizationQuery = gql `
|
|
3
|
-
query FindOrganization($id: ID!, $title: String) {
|
|
4
|
-
organizations(id: $id, first: 1) {
|
|
5
|
-
nodes {
|
|
6
|
-
id
|
|
7
|
-
businessName
|
|
8
|
-
website
|
|
9
|
-
appsNext
|
|
10
|
-
apps(first: 100, title: $title) {
|
|
11
|
-
nodes {
|
|
12
|
-
id
|
|
13
|
-
title
|
|
14
|
-
apiKey
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
`;
|
|
21
|
-
//# sourceMappingURL=find_org.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find_org.js","sourceRoot":"","sources":["../../../src/api/graphql/find_org.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,iBAAiB,CAAA;AAEnC,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;CAkBvC,CAAA","sourcesContent":["import {gql} from 'graphql-request'\n\nexport const FindOrganizationQuery = gql`\n query FindOrganization($id: ID!, $title: String) {\n organizations(id: $id, first: 1) {\n nodes {\n id\n businessName\n website\n appsNext\n apps(first: 100, title: $title) {\n nodes {\n id\n title\n apiKey\n }\n }\n }\n }\n }\n`\n\nexport interface FindOrganizationQuerySchema {\n organizations: {\n nodes: {\n id: string\n businessName: string\n website: string\n appsNext: boolean\n apps: {\n nodes: {\n id: string\n title: string\n apiKey: string\n }[]\n }\n }[]\n }\n}\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-request';
|
|
2
|
-
export const FindOrganizationBasicQuery = gql `
|
|
3
|
-
query FindOrganization($id: ID!) {
|
|
4
|
-
organizations(id: $id, first: 1) {
|
|
5
|
-
nodes {
|
|
6
|
-
id
|
|
7
|
-
businessName
|
|
8
|
-
website
|
|
9
|
-
appsNext
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
14
|
-
//# sourceMappingURL=find_org_basic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find_org_basic.js","sourceRoot":"","sources":["../../../src/api/graphql/find_org_basic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,iBAAiB,CAAA;AAEnC,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAAA;;;;;;;;;;;CAW5C,CAAA","sourcesContent":["import {gql} from 'graphql-request'\n\nexport const FindOrganizationBasicQuery = gql`\n query FindOrganization($id: ID!) {\n organizations(id: $id, first: 1) {\n nodes {\n id\n businessName\n website\n appsNext\n }\n }\n }\n`\n\nexport interface FindOrganizationBasicQuerySchema {\n organizations: {\n nodes: {\n id: string\n businessName: string\n website: string\n appsNext: boolean\n }[]\n }\n}\n"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const FindStoreByDomainQuery: string;
|
|
2
|
-
export interface FindStoreByDomainSchema {
|
|
3
|
-
organizations: {
|
|
4
|
-
nodes: {
|
|
5
|
-
id: string;
|
|
6
|
-
businessName: string;
|
|
7
|
-
website: string;
|
|
8
|
-
appsNext: boolean;
|
|
9
|
-
stores: {
|
|
10
|
-
nodes: {
|
|
11
|
-
shopId: string;
|
|
12
|
-
link: string;
|
|
13
|
-
shopDomain: string;
|
|
14
|
-
shopName: string;
|
|
15
|
-
transferDisabled: boolean;
|
|
16
|
-
convertableToPartnerTest: boolean;
|
|
17
|
-
}[];
|
|
18
|
-
};
|
|
19
|
-
}[];
|
|
20
|
-
};
|
|
21
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-request';
|
|
2
|
-
export const FindStoreByDomainQuery = gql `
|
|
3
|
-
query FindOrganization($id: ID!, $shopDomain: String) {
|
|
4
|
-
organizations(id: $id, first: 1) {
|
|
5
|
-
nodes {
|
|
6
|
-
id
|
|
7
|
-
businessName
|
|
8
|
-
website
|
|
9
|
-
appsNext
|
|
10
|
-
stores(shopDomain: $shopDomain, first: 1, archived: false) {
|
|
11
|
-
nodes {
|
|
12
|
-
shopId
|
|
13
|
-
link
|
|
14
|
-
shopDomain
|
|
15
|
-
shopName
|
|
16
|
-
transferDisabled
|
|
17
|
-
convertableToPartnerTest
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
`;
|
|
24
|
-
//# sourceMappingURL=find_store_by_domain.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find_store_by_domain.js","sourceRoot":"","sources":["../../../src/api/graphql/find_store_by_domain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,iBAAiB,CAAA;AAEnC,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;CAqBxC,CAAA","sourcesContent":["import {gql} from 'graphql-request'\n\nexport const FindStoreByDomainQuery = gql`\n query FindOrganization($id: ID!, $shopDomain: String) {\n organizations(id: $id, first: 1) {\n nodes {\n id\n businessName\n website\n appsNext\n stores(shopDomain: $shopDomain, first: 1, archived: false) {\n nodes {\n shopId\n link\n shopDomain\n shopName\n transferDisabled\n convertableToPartnerTest\n }\n }\n }\n }\n }\n`\n\nexport interface FindStoreByDomainSchema {\n organizations: {\n nodes: {\n id: string\n businessName: string\n website: string\n appsNext: boolean\n stores: {\n nodes: {\n shopId: string\n link: string\n shopDomain: string\n shopName: string\n transferDisabled: boolean\n convertableToPartnerTest: boolean\n }[]\n }\n }[]\n }\n}\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-request';
|
|
2
|
-
export const ApiSchemaDefinitionQuery = gql `
|
|
3
|
-
query ApiSchemaDefinitionQuery($apiKey: String!, $version: String!, $type: String!) {
|
|
4
|
-
definition: functionApiSchemaDefinition(apiKey: $apiKey, version: $version, type: $type)
|
|
5
|
-
}
|
|
6
|
-
`;
|
|
7
|
-
//# sourceMappingURL=api_schema_definition.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api_schema_definition.js","sourceRoot":"","sources":["../../../../src/api/graphql/functions/api_schema_definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,iBAAiB,CAAA;AAEnC,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAA;;;;CAI1C,CAAA","sourcesContent":["import {gql} from 'graphql-request'\n\nexport const ApiSchemaDefinitionQuery = gql`\n query ApiSchemaDefinitionQuery($apiKey: String!, $version: String!, $type: String!) {\n definition: functionApiSchemaDefinition(apiKey: $apiKey, version: $version, type: $type)\n }\n`\n\nexport interface ApiSchemaDefinitionQuerySchema {\n definition: string | null\n}\n\nexport interface ApiSchemaDefinitionQueryVariables {\n apiKey: string\n version: string\n type: string\n}\n"]}
|
|
@@ -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/identity.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"identity.js","sourceRoot":"","sources":["../../src/api/identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAC,KAAK,EAAC,MAAM,cAAc,CAAA;AAClC,OAAO,EAAC,YAAY,EAAC,MAAM,YAAY,CAAA;AAEvC,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,KAAa;IACvD,IAAI;QACF,MAAM,iBAAiB,GAAG,MAAM,yBAAyB,EAAE,CAAA;QAC3D,MAAM,OAAO,GAAG;YACd,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,EAAC,aAAa,EAAE,UAAU,KAAK,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAC;YAC/E,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAC,KAAK,EAAC,CAAC;SAC9B,CAAA;QACD,KAAK,CAAC,kDAAkD,iBAAiB,EAAE,CAAC,CAAA;QAE5E,MAAM,QAAQ,GAAG,MAAM,YAAY,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAA;QAE/D,IAAI,QAAQ,CAAC,EAAE,IAAI,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE;YACzE,8DAA8D;YAC9D,MAAM,IAAI,GAAQ,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;YACvC,KAAK,CAAC,gCAAgC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAA;YACnD,OAAO,IAAI,CAAC,KAAK,CAAA;SAClB;aAAM;YACL,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;YAClC,KAAK,CAAC;aACC,QAAQ,CAAC,MAAM;8BACE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;WAC3E,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;YAC5B,OAAO,KAAK,CAAA;SACb;QACD,qDAAqD;KACtD;IAAC,OAAO,KAAK,EAAE;QACd,KAAK,CAAC,kCAAkC,KAAK,EAAE,CAAC,CAAA;QAChD,OAAO,KAAK,CAAA;KACb;AACH,CAAC;AAED,KAAK,UAAU,yBAAyB;IACtC,MAAM,QAAQ,GAAG,MAAM,YAAY,CAAC,WAAW,MAAM,QAAQ,EAAE,wCAAwC,CAAC,CAAA;IACxG,8DAA8D;IAC9D,MAAM,IAAI,GAAQ,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;IACvC,OAAO,IAAI,CAAC,sBAAsB,CAAA;AACpC,CAAC","sourcesContent":["import {identity} from '../environment/fqdn.js'\nimport {debug} from '../output.js'\nimport {shopifyFetch} from '../http.js'\n\nexport async function validateIdentityToken(token: string) {\n try {\n const instrospectionURL = await getInstrospectionEndpoint()\n const options = {\n method: 'POST',\n headers: {Authorization: `Bearer ${token}`, 'Content-Type': 'application/json'},\n body: JSON.stringify({token}),\n }\n debug(`Sending Identity Introspection request to URL: ${instrospectionURL}`)\n\n const response = await shopifyFetch(instrospectionURL, options)\n\n if (response.ok && response.headers.get('content-type')?.includes('json')) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const json: any = await response.json()\n debug(`The identity token is valid: ${json.valid}`)\n return json.valid\n } else {\n const text = await response.text()\n debug(`The Introspection request failed with:\n - status: ${response.status}\n - www-authenticate header: ${JSON.stringify(response.headers.get('www-authenticate'))}\n - body: ${JSON.stringify(text)}`)\n return false\n }\n // eslint-disable-next-line no-catch-all/no-catch-all\n } catch (error) {\n debug(`The identity token is invalid: ${error}`)\n return false\n }\n}\n\nasync function getInstrospectionEndpoint(): Promise<string> {\n const response = await shopifyFetch(`https://${await identity()}/.well-known/openid-configuration.json`)\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const json: any = await response.json()\n return json.introspection_endpoint\n}\n"]}
|
package/dist/api/oxygen.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Variables, RequestDocument } from 'graphql-request';
|
|
2
|
-
import FormData from 'form-data';
|
|
3
|
-
import { Response } from 'node-fetch';
|
|
4
|
-
export declare function request<T>(oxygenAddress: string, query: RequestDocument, token: string, variables?: Variables): Promise<T>;
|
|
5
|
-
export declare function uploadDeploymentFile(oxygenAddress: string, token: string, data: FormData): Promise<Response>;
|
package/dist/api/oxygen.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { buildHeaders, debugLogRequest } from './common.js';
|
|
2
|
-
import { graphqlClient } from '../http/graphql.js';
|
|
3
|
-
import { shopifyFetch } from '../http.js';
|
|
4
|
-
export async function request(oxygenAddress, query, token, variables) {
|
|
5
|
-
const headers = await buildHeaders(token);
|
|
6
|
-
debugLogRequest('Oxygen', query, variables, headers);
|
|
7
|
-
const client = await graphqlClient({
|
|
8
|
-
headers,
|
|
9
|
-
url: getOxygenAddress(oxygenAddress),
|
|
10
|
-
});
|
|
11
|
-
const response = await client.request(query, variables);
|
|
12
|
-
return response;
|
|
13
|
-
}
|
|
14
|
-
export async function uploadDeploymentFile(oxygenAddress, token, data) {
|
|
15
|
-
const headers = await buildHeaders(token);
|
|
16
|
-
delete headers['Content-Type'];
|
|
17
|
-
const response = await shopifyFetch(getOxygenAddress(oxygenAddress), {
|
|
18
|
-
method: 'POST',
|
|
19
|
-
body: data,
|
|
20
|
-
headers: {
|
|
21
|
-
...headers,
|
|
22
|
-
...data.getHeaders(),
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
return response;
|
|
26
|
-
}
|
|
27
|
-
const getOxygenAddress = (oxygenHost) => {
|
|
28
|
-
return `https://${oxygenHost}/api/graphql/deploy/v1`;
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=oxygen.js.map
|
package/dist/api/oxygen.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oxygen.js","sourceRoot":"","sources":["../../src/api/oxygen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAE,eAAe,EAAC,MAAM,aAAa,CAAA;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAC,YAAY,EAAC,MAAM,YAAY,CAAA;AAKvC,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,aAAqB,EACrB,KAAsB,EACtB,KAAa,EACb,SAAqB;IAErB,MAAM,OAAO,GAAG,MAAM,YAAY,CAAC,KAAK,CAAC,CAAA;IACzC,eAAe,CAAC,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,CAAA;IACpD,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC;QACjC,OAAO;QACP,GAAG,EAAE,gBAAgB,CAAC,aAAa,CAAC;KACrC,CAAC,CAAA;IAEF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAI,KAAK,EAAE,SAAS,CAAC,CAAA;IAC1D,OAAO,QAAQ,CAAA;AACjB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,aAAqB,EAAE,KAAa,EAAE,IAAc;IAC7F,MAAM,OAAO,GAAG,MAAM,YAAY,CAAC,KAAK,CAAC,CAAA;IACzC,OAAO,OAAO,CAAC,cAAc,CAAC,CAAA;IAE9B,MAAM,QAAQ,GAAG,MAAM,YAAY,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE;QACnE,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,IAAI;QACV,OAAO,EAAE;YACP,GAAG,OAAO;YACV,GAAG,IAAI,CAAC,UAAU,EAAE;SACrB;KACF,CAAC,CAAA;IAEF,OAAO,QAAQ,CAAA;AACjB,CAAC;AAED,MAAM,gBAAgB,GAAG,CAAC,UAAkB,EAAU,EAAE;IACtD,OAAO,WAAW,UAAU,wBAAwB,CAAA;AACtD,CAAC,CAAA","sourcesContent":["import {buildHeaders, debugLogRequest} from './common.js'\nimport {graphqlClient} from '../http/graphql.js'\nimport {shopifyFetch} from '../http.js'\nimport {Variables, RequestDocument} from 'graphql-request'\nimport FormData from 'form-data'\nimport {Response} from 'node-fetch'\n\nexport async function request<T>(\n oxygenAddress: string,\n query: RequestDocument,\n token: string,\n variables?: Variables,\n): Promise<T> {\n const headers = await buildHeaders(token)\n debugLogRequest('Oxygen', query, variables, headers)\n const client = await graphqlClient({\n headers,\n url: getOxygenAddress(oxygenAddress),\n })\n\n const response = await client.request<T>(query, variables)\n return response\n}\n\nexport async function uploadDeploymentFile(oxygenAddress: string, token: string, data: FormData): Promise<Response> {\n const headers = await buildHeaders(token)\n delete headers['Content-Type']\n\n const response = await shopifyFetch(getOxygenAddress(oxygenAddress), {\n method: 'POST',\n body: data,\n headers: {\n ...headers,\n ...data.getHeaders(),\n },\n })\n\n return response\n}\n\nconst getOxygenAddress = (oxygenHost: string): string => {\n return `https://${oxygenHost}/api/graphql/deploy/v1`\n}\n"]}
|