@shopify/shop-minis-cli 0.0.182 → 0.0.184
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/build/data/partners/query.d.ts +1 -27
- package/build/data/partners/query.js +0 -28
- package/build/data/partners/query.js.map +1 -1
- package/build/data/partners/types.d.ts +0 -6
- package/build/data/types/autogenerated/shop-minis-admin-api/gql.d.ts +0 -23
- package/build/data/types/autogenerated/shop-minis-admin-api/gql.js +0 -3
- package/build/data/types/autogenerated/shop-minis-admin-api/gql.js.map +1 -1
- package/build/data/types/autogenerated/shop-minis-admin-api/graphql.d.ts +83 -143
- package/build/data/types/autogenerated/shop-minis-admin-api/graphql.js +16 -244
- package/build/data/types/autogenerated/shop-minis-admin-api/graphql.js.map +1 -1
- package/build/program.js +0 -2
- package/build/program.js.map +1 -1
- package/build/utils/allowed-dependencies.js +6 -0
- package/build/utils/allowed-dependencies.js.map +1 -1
- package/package.json +1 -1
- package/build/commands/app/index.d.ts +0 -2
- package/build/commands/app/index.js +0 -17
- package/build/commands/app/index.js.map +0 -1
- package/build/commands/app/link.d.ts +0 -2
- package/build/commands/app/link.js +0 -62
- package/build/commands/app/link.js.map +0 -1
- package/build/commands/app/list.d.ts +0 -2
- package/build/commands/app/list.js +0 -45
- package/build/commands/app/list.js.map +0 -1
- package/build/commands/app/unlink.d.ts +0 -2
- package/build/commands/app/unlink.js +0 -55
- package/build/commands/app/unlink.js.map +0 -1
- package/build/data/get-linked-apps.d.ts +0 -13
- package/build/data/get-linked-apps.js +0 -21
- package/build/data/get-linked-apps.js.map +0 -1
- package/build/data/mini-link-app.d.ts +0 -20
- package/build/data/mini-link-app.js +0 -35
- package/build/data/mini-link-app.js.map +0 -1
- package/build/data/mini-unlink-app.d.ts +0 -18
- package/build/data/mini-unlink-app.js +0 -25
- package/build/data/mini-unlink-app.js.map +0 -1
- package/build/utils/extract-id-gid.d.ts +0 -1
- package/build/utils/extract-id-gid.js +0 -16
- package/build/utils/extract-id-gid.js.map +0 -1
|
@@ -1,32 +1,6 @@
|
|
|
1
|
-
import { AccountInfo,
|
|
1
|
+
import { AccountInfo, Organization } from './types.js';
|
|
2
2
|
export declare const token: () => Promise<string>;
|
|
3
3
|
export declare const CurrentAccountInfoQuery: string;
|
|
4
4
|
export declare const AllOrgsQuery: string;
|
|
5
5
|
export declare function fetchCurrentAccountInformation(): Promise<AccountInfo>;
|
|
6
6
|
export declare function fetchAllOrgs(): Promise<Organization[]>;
|
|
7
|
-
export declare const FindOrganizationQuery: string;
|
|
8
|
-
export interface FindOrganizationQueryVariables {
|
|
9
|
-
id: string;
|
|
10
|
-
title?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface FindOrganizationQuerySchema {
|
|
13
|
-
organizations: {
|
|
14
|
-
nodes: {
|
|
15
|
-
id: string;
|
|
16
|
-
businessName: string;
|
|
17
|
-
apps: {
|
|
18
|
-
pageInfo: {
|
|
19
|
-
hasNextPage: boolean;
|
|
20
|
-
};
|
|
21
|
-
nodes: {
|
|
22
|
-
id: string;
|
|
23
|
-
title: string;
|
|
24
|
-
apiKey: string;
|
|
25
|
-
}[];
|
|
26
|
-
};
|
|
27
|
-
}[];
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export declare const fetchAppsForOrg: (organizationId: string) => Promise<Paginateable<{
|
|
31
|
-
apps: MinimalOrganizationApp[];
|
|
32
|
-
}>>;
|
|
@@ -75,34 +75,6 @@ export async function fetchAllOrgs() {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
export const FindOrganizationQuery = gql `
|
|
79
|
-
query FindOrganization($id: ID!, $title: String) {
|
|
80
|
-
organizations(id: $id, first: 1) {
|
|
81
|
-
nodes {
|
|
82
|
-
id
|
|
83
|
-
businessName
|
|
84
|
-
apps(first: 25, title: $title) {
|
|
85
|
-
pageInfo {
|
|
86
|
-
hasNextPage
|
|
87
|
-
}
|
|
88
|
-
nodes {
|
|
89
|
-
id
|
|
90
|
-
title
|
|
91
|
-
apiKey
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
`;
|
|
98
|
-
export const fetchAppsForOrg = async (organizationId) => {
|
|
99
|
-
const params = { id: organizationId };
|
|
100
|
-
const result = await request(FindOrganizationQuery, params);
|
|
101
|
-
return {
|
|
102
|
-
apps: result.organizations.nodes[0].apps.nodes,
|
|
103
|
-
hasMorePages: result.organizations.nodes[0].apps.pageInfo.hasNextPage,
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
78
|
function mapAccountInfo(accountInfo) {
|
|
107
79
|
if (accountInfo.__typename === 'UserAccount') {
|
|
108
80
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/data/partners/query.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe;AACf,wBAAwB;EACzB,MAAM,oCAAoC,CAAA;AAE3C,OAAO,EAAC,2BAA2B,EAAC,MAAM,+BAA+B,CAAA;AACzE,OAAO,EAAC,GAAG,EAAC,MAAM,iBAAiB,CAAA;AAEnC,OAAO,
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/data/partners/query.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe;AACf,wBAAwB;EACzB,MAAM,oCAAoC,CAAA;AAE3C,OAAO,EAAC,2BAA2B,EAAC,MAAM,+BAA+B,CAAA;AACzE,OAAO,EAAC,GAAG,EAAC,MAAM,iBAAiB,CAAA;AAEnC,OAAO,EAML,kBAAkB,GAEnB,MAAM,YAAY,CAAA;AAEnB,IAAI,QAAqC,CAAA;AACzC,IAAI,0BAAmD,CAAA;AAEvD,MAAM,OAAO,GAAG,KAAK,IAA8B,EAAE;IACnD,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,EAAC,KAAK,EAAE,MAAM,EAAC,GAAG,MAAM,2BAA2B,EAAE,CAAA;QAC3D,kDAAkD;QAClD,QAAQ,GAAG;YACT,KAAK;YACL,WAAW,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;YACrC,MAAM;SACP,CAAA;QACD,MAAM,WAAW,GAAG,MAAM,8BAA8B,EAAE,CAAA;QAC1D,kDAAkD;QAClD,QAAQ,GAAG,EAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAC,CAAA;KACxC;IAED,OAAO,QAAQ,CAAA;AACjB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,IAAqB,EAAE;IAC/C,OAAO,CAAC,MAAM,OAAO,EAAE,CAAC,CAAC,KAAK,CAAA;AAChC,CAAC,CAAA;AAED,MAAM,OAAO,GAAG,KAAK,EACnB,KAAa,EACb,YAA0C,SAAS,EACvC,EAAE;IACd,OAAO,eAAe,CAAC,KAAK,EAAE,MAAM,KAAK,EAAE,EAAE,SAAS,CAAC,CAAA;AACzD,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAA;;;;;;;;;;;;CAYzC,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAA;;;;;;;;;;;CAW9B,CAAA;AAED,MAAM,CAAC,KAAK,UAAU,8BAA8B;IAClD,MAAM,QAAQ,GAAG,MAAM,OAAO,CAC5B,uBAAuB,CACxB,CAAA;IAED,0BAA0B,GAAG,cAAc,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAA;IAExE,OAAO,0BAA0B,CAAA;AACnC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,YAAY;IAChC,IAAI;QACF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAgB,YAAY,CAAC,CAAA;QAC3D,OAAO,QAAQ,CAAC,aAAa,CAAC,KAAM,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YAC/C,EAAE,EAAE,GAAI,CAAC,EAAE;YACX,YAAY,EAAE,GAAI,CAAC,YAAY;YAC/B,MAAM,EAAE,kBAAkB,CAAC,QAAQ;SACpC,CAAC,CAAC,CAAA;KACJ;IAAC,OAAO,KAAc,EAAE;QACvB,IAAK,KAA+B,CAAC,UAAU,KAAK,GAAG,EAAE;YACvD,OAAO,EAAE,CAAA;SACV;aAAM;YACL,MAAM,KAAK,CAAA;SACZ;KACF;AACH,CAAC;AAED,SAAS,cAAc,CAAC,WAA8B;IACpD,IAAI,WAAW,CAAC,UAAU,KAAK,aAAa,EAAE;QAC5C,OAAO;YACL,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,WAAW,CAAC,KAAK;SACzB,CAAA;KACF;SAAM,IAAI,WAAW,CAAC,UAAU,KAAK,gBAAgB,EAAE;QACtD,OAAO;YACL,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,WAAW,CAAC,OAAO;SAC7B,CAAA;KACF;SAAM;QACL,OAAO,EAAC,IAAI,EAAE,gBAAgB,EAAC,CAAA;KAChC;AACH,CAAC"}
|
|
@@ -43,13 +43,7 @@ export interface Organization {
|
|
|
43
43
|
businessName: string;
|
|
44
44
|
source?: OrganizationSource;
|
|
45
45
|
}
|
|
46
|
-
export type Paginateable<T> = T & {
|
|
47
|
-
hasMorePages: boolean;
|
|
48
|
-
};
|
|
49
46
|
export interface MinimalAppIdentifiers {
|
|
50
47
|
id: string;
|
|
51
48
|
apiKey: string;
|
|
52
49
|
}
|
|
53
|
-
export type MinimalOrganizationApp = MinimalAppIdentifiers & {
|
|
54
|
-
title: string;
|
|
55
|
-
};
|
|
@@ -25,9 +25,6 @@ declare const documents: {
|
|
|
25
25
|
checksum: string;
|
|
26
26
|
mimeType: string;
|
|
27
27
|
}>>;
|
|
28
|
-
'\n query LinkedApps {\n mini {\n productionShopifyApp {\n id\n title\n }\n developmentShopifyApps {\n id\n title\n }\n }\n }\n': DocumentNode<types.LinkedAppsQuery, types.Exact<{
|
|
29
|
-
[key: string]: never;
|
|
30
|
-
}>>;
|
|
31
28
|
'\n query Submissions($first: Int) {\n submissions(first: $first) {\n nodes {\n reference\n description\n status\n submittedAt\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n': DocumentNode<types.SubmissionsQuery, types.Exact<{
|
|
32
29
|
first?: types.InputMaybe<number> | undefined;
|
|
33
30
|
}>>;
|
|
@@ -36,14 +33,6 @@ declare const documents: {
|
|
|
36
33
|
organizationId: string;
|
|
37
34
|
partnersAccessToken: string;
|
|
38
35
|
}>>;
|
|
39
|
-
'\n mutation MiniLinkApp(\n $appApiKey: String!\n $partnersAccessToken: String!\n $primary: Boolean\n ) {\n miniLinkApp(\n appApiKey: $appApiKey\n partnersAccessToken: $partnersAccessToken\n primary: $primary\n ) {\n mini {\n handle\n productionShopifyAppId\n developmentShopifyAppIds\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n': DocumentNode<types.MiniLinkAppMutation, types.Exact<{
|
|
40
|
-
appApiKey: string;
|
|
41
|
-
partnersAccessToken: string;
|
|
42
|
-
primary?: types.InputMaybe<boolean> | undefined;
|
|
43
|
-
}>>;
|
|
44
|
-
'\n mutation MiniUnlinkApp($appId: ID!) {\n miniUnlinkApp(appId: $appId) {\n mini {\n handle\n productionShopifyAppId\n developmentShopifyAppIds\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n': DocumentNode<types.MiniUnlinkAppMutation, types.Exact<{
|
|
45
|
-
appId: string;
|
|
46
|
-
}>>;
|
|
47
36
|
'\n query Mini {\n mini {\n handle\n productionShopifyAppId\n developmentShopifyAppIds\n }\n }\n': DocumentNode<types.MiniQuery, types.Exact<{
|
|
48
37
|
[key: string]: never;
|
|
49
38
|
}>>;
|
|
@@ -98,10 +87,6 @@ export declare function graphql(source: '\n mutation CreateSubmission(\n $de
|
|
|
98
87
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
99
88
|
*/
|
|
100
89
|
export declare function graphql(source: '\n mutation CreateUpload(\n $filename: String!\n $fileSize: Int!\n $checksum: String!\n $mimeType: String!\n ) {\n submissionUploadCreate(\n input: {\n filename: $filename\n fileSize: $fileSize\n checksum: $checksum\n mimeType: $mimeType\n }\n ) {\n upload {\n url\n headers\n id\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n'): (typeof documents)['\n mutation CreateUpload(\n $filename: String!\n $fileSize: Int!\n $checksum: String!\n $mimeType: String!\n ) {\n submissionUploadCreate(\n input: {\n filename: $filename\n fileSize: $fileSize\n checksum: $checksum\n mimeType: $mimeType\n }\n ) {\n upload {\n url\n headers\n id\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n'];
|
|
101
|
-
/**
|
|
102
|
-
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
103
|
-
*/
|
|
104
|
-
export declare function graphql(source: '\n query LinkedApps {\n mini {\n productionShopifyApp {\n id\n title\n }\n developmentShopifyApps {\n id\n title\n }\n }\n }\n'): (typeof documents)['\n query LinkedApps {\n mini {\n productionShopifyApp {\n id\n title\n }\n developmentShopifyApps {\n id\n title\n }\n }\n }\n'];
|
|
105
90
|
/**
|
|
106
91
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
107
92
|
*/
|
|
@@ -110,14 +95,6 @@ export declare function graphql(source: '\n query Submissions($first: Int) {\n
|
|
|
110
95
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
111
96
|
*/
|
|
112
97
|
export declare function graphql(source: '\n mutation MiniCreate(\n $name: String!\n $organizationId: ID!\n $partnersAccessToken: String!\n ) {\n miniCreate(\n name: $name\n organizationId: $organizationId\n partnersAccessToken: $partnersAccessToken\n ) {\n mini {\n handle\n }\n token\n userErrors {\n code\n message\n field\n }\n }\n }\n'): (typeof documents)['\n mutation MiniCreate(\n $name: String!\n $organizationId: ID!\n $partnersAccessToken: String!\n ) {\n miniCreate(\n name: $name\n organizationId: $organizationId\n partnersAccessToken: $partnersAccessToken\n ) {\n mini {\n handle\n }\n token\n userErrors {\n code\n message\n field\n }\n }\n }\n'];
|
|
113
|
-
/**
|
|
114
|
-
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
115
|
-
*/
|
|
116
|
-
export declare function graphql(source: '\n mutation MiniLinkApp(\n $appApiKey: String!\n $partnersAccessToken: String!\n $primary: Boolean\n ) {\n miniLinkApp(\n appApiKey: $appApiKey\n partnersAccessToken: $partnersAccessToken\n primary: $primary\n ) {\n mini {\n handle\n productionShopifyAppId\n developmentShopifyAppIds\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n'): (typeof documents)['\n mutation MiniLinkApp(\n $appApiKey: String!\n $partnersAccessToken: String!\n $primary: Boolean\n ) {\n miniLinkApp(\n appApiKey: $appApiKey\n partnersAccessToken: $partnersAccessToken\n primary: $primary\n ) {\n mini {\n handle\n productionShopifyAppId\n developmentShopifyAppIds\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n'];
|
|
117
|
-
/**
|
|
118
|
-
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
119
|
-
*/
|
|
120
|
-
export declare function graphql(source: '\n mutation MiniUnlinkApp($appId: ID!) {\n miniUnlinkApp(appId: $appId) {\n mini {\n handle\n productionShopifyAppId\n developmentShopifyAppIds\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n'): (typeof documents)['\n mutation MiniUnlinkApp($appId: ID!) {\n miniUnlinkApp(appId: $appId) {\n mini {\n handle\n productionShopifyAppId\n developmentShopifyAppIds\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n'];
|
|
121
98
|
/**
|
|
122
99
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
123
100
|
*/
|
|
@@ -14,11 +14,8 @@ const documents = {
|
|
|
14
14
|
'\n mutation CancelSubmission($reference: String!) {\n submissionCancel(reference: $reference) {\n submission {\n reference\n description\n status\n submittedAt\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n': types.CancelSubmissionDocument,
|
|
15
15
|
'\n mutation CreateSubmission(\n $description: String!\n $uploadId: ID!\n $partnersAccessToken: String!\n ) {\n submissionCreate(\n description: $description\n uploadId: $uploadId\n partnersAccessToken: $partnersAccessToken\n ) {\n submission {\n reference\n description\n status\n submittedAt\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n': types.CreateSubmissionDocument,
|
|
16
16
|
'\n mutation CreateUpload(\n $filename: String!\n $fileSize: Int!\n $checksum: String!\n $mimeType: String!\n ) {\n submissionUploadCreate(\n input: {\n filename: $filename\n fileSize: $fileSize\n checksum: $checksum\n mimeType: $mimeType\n }\n ) {\n upload {\n url\n headers\n id\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n': types.CreateUploadDocument,
|
|
17
|
-
'\n query LinkedApps {\n mini {\n productionShopifyApp {\n id\n title\n }\n developmentShopifyApps {\n id\n title\n }\n }\n }\n': types.LinkedAppsDocument,
|
|
18
17
|
'\n query Submissions($first: Int) {\n submissions(first: $first) {\n nodes {\n reference\n description\n status\n submittedAt\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n': types.SubmissionsDocument,
|
|
19
18
|
'\n mutation MiniCreate(\n $name: String!\n $organizationId: ID!\n $partnersAccessToken: String!\n ) {\n miniCreate(\n name: $name\n organizationId: $organizationId\n partnersAccessToken: $partnersAccessToken\n ) {\n mini {\n handle\n }\n token\n userErrors {\n code\n message\n field\n }\n }\n }\n': types.MiniCreateDocument,
|
|
20
|
-
'\n mutation MiniLinkApp(\n $appApiKey: String!\n $partnersAccessToken: String!\n $primary: Boolean\n ) {\n miniLinkApp(\n appApiKey: $appApiKey\n partnersAccessToken: $partnersAccessToken\n primary: $primary\n ) {\n mini {\n handle\n productionShopifyAppId\n developmentShopifyAppIds\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n': types.MiniLinkAppDocument,
|
|
21
|
-
'\n mutation MiniUnlinkApp($appId: ID!) {\n miniUnlinkApp(appId: $appId) {\n mini {\n handle\n productionShopifyAppId\n developmentShopifyAppIds\n }\n userErrors {\n code\n message\n field\n }\n }\n }\n': types.MiniUnlinkAppDocument,
|
|
22
19
|
'\n query Mini {\n mini {\n handle\n productionShopifyAppId\n developmentShopifyAppIds\n }\n }\n': types.MiniDocument,
|
|
23
20
|
'\n query Proxies {\n proxies {\n allowedMethods\n appendedHeaders\n bodyJsonSchema\n targetUrlPattern\n userRateLimitInterval\n userRateLimitRequests\n }\n }\n': types.ProxiesDocument,
|
|
24
21
|
'\n mutation ProxiesSet($proxies: [ProxyInput!]!) {\n proxiesSet(proxies: $proxies) {\n proxies {\n targetUrlPattern\n }\n userErrors {\n code\n message\n }\n }\n }\n': types.ProxiesSetDocument,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gql.js","sourceRoot":"","sources":["../../../../../src/data/types/autogenerated/shop-minis-admin-api/gql.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAGrC;;;;;;;;;GASG;AACH,MAAM,SAAS,GAAG;IAChB,wSAAwS,EACtS,KAAK,CAAC,wBAAwB;IAChC,ycAAyc,EACvc,KAAK,CAAC,wBAAwB;IAChC,+cAA+c,EAC7c,KAAK,CAAC,oBAAoB;IAC5B,
|
|
1
|
+
{"version":3,"file":"gql.js","sourceRoot":"","sources":["../../../../../src/data/types/autogenerated/shop-minis-admin-api/gql.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAGrC;;;;;;;;;GASG;AACH,MAAM,SAAS,GAAG;IAChB,wSAAwS,EACtS,KAAK,CAAC,wBAAwB;IAChC,ycAAyc,EACvc,KAAK,CAAC,wBAAwB;IAChC,+cAA+c,EAC7c,KAAK,CAAC,oBAAoB;IAC5B,4SAA4S,EAC1S,KAAK,CAAC,mBAAmB;IAC3B,oYAAoY,EAClY,KAAK,CAAC,kBAAkB;IAC1B,wHAAwH,EACtH,KAAK,CAAC,YAAY;IACpB,uMAAuM,EACrM,KAAK,CAAC,eAAe;IACvB,wNAAwN,EACtN,KAAK,CAAC,kBAAkB;IAC1B,oKAAoK,EAClK,KAAK,CAAC,oBAAoB;IAC5B,qKAAqK,EACnK,KAAK,CAAC,iBAAiB;IACzB,6DAA6D,EAC3D,KAAK,CAAC,eAAe;IACvB,qVAAqV,EACnV,KAAK,CAAC,qCAAqC;IAC7C,qQAAqQ,EACnQ,KAAK,CAAC,qCAAqC;IAC7C,0KAA0K,EACxK,KAAK,CAAC,gCAAgC;CACzC,CAAA;AAqGD,MAAM,UAAU,OAAO,CAAC,MAAc;IACpC,OAAQ,SAAiB,CAAC,MAAM,CAAC,IAAI,EAAE,CAAA;AACzC,CAAC"}
|
|
@@ -35,6 +35,56 @@ export type Scalars = {
|
|
|
35
35
|
*/
|
|
36
36
|
URL: any;
|
|
37
37
|
};
|
|
38
|
+
/** Return type for the `apiKeyGenerate` mutation. */
|
|
39
|
+
export type ApiKeyGeneratePayload = {
|
|
40
|
+
__typename?: 'ApiKeyGeneratePayload';
|
|
41
|
+
/** The title of the API key that was created. */
|
|
42
|
+
title?: Maybe<Scalars['String']>;
|
|
43
|
+
/** The API key token that was created. */
|
|
44
|
+
token?: Maybe<Scalars['String']>;
|
|
45
|
+
/** List of errors that occured while executing the mutation. */
|
|
46
|
+
userErrors: Array<ApiKeyGenerateUserError>;
|
|
47
|
+
};
|
|
48
|
+
/** A user or client error that could occur during the execution of the `apiKeyGenerate` mutation. */
|
|
49
|
+
export type ApiKeyGenerateUserError = {
|
|
50
|
+
__typename?: 'ApiKeyGenerateUserError';
|
|
51
|
+
/** Error code associated with the error. */
|
|
52
|
+
code: ApiKeyGenerateUserErrorCode;
|
|
53
|
+
/** Which input value this error came from. */
|
|
54
|
+
field?: Maybe<Array<Scalars['String']>>;
|
|
55
|
+
/** A description of the error. */
|
|
56
|
+
message: Scalars['String'];
|
|
57
|
+
};
|
|
58
|
+
/** Possible error codes that can be returned by ApiKeyGenerateUserError. */
|
|
59
|
+
export declare enum ApiKeyGenerateUserErrorCode {
|
|
60
|
+
/** Error code when the Mini is not found. */
|
|
61
|
+
MiniNotFound = "MINI_NOT_FOUND",
|
|
62
|
+
/** Error code when the organization has too many API keys. */
|
|
63
|
+
TooManyApiKeys = "TOO_MANY_API_KEYS",
|
|
64
|
+
/** Error code when verification failed. */
|
|
65
|
+
VerificationFailed = "VERIFICATION_FAILED"
|
|
66
|
+
}
|
|
67
|
+
/** Return type for the `apiKeyRevoke` mutation. */
|
|
68
|
+
export type ApiKeyRevokePayload = {
|
|
69
|
+
__typename?: 'ApiKeyRevokePayload';
|
|
70
|
+
/** List of errors that occured while executing the mutation. */
|
|
71
|
+
userErrors: Array<ApiKeyRevokeUserError>;
|
|
72
|
+
};
|
|
73
|
+
/** A user or client error that could occur during the execution of the `apiKeyRevoke` mutation. */
|
|
74
|
+
export type ApiKeyRevokeUserError = {
|
|
75
|
+
__typename?: 'ApiKeyRevokeUserError';
|
|
76
|
+
/** Error code associated with the error. */
|
|
77
|
+
code: ApiKeyRevokeUserErrorCode;
|
|
78
|
+
/** Which input value this error came from. */
|
|
79
|
+
field?: Maybe<Array<Scalars['String']>>;
|
|
80
|
+
/** A description of the error. */
|
|
81
|
+
message: Scalars['String'];
|
|
82
|
+
};
|
|
83
|
+
/** Possible error codes that can be returned by ApiKeyRevokeUserError. */
|
|
84
|
+
export declare enum ApiKeyRevokeUserErrorCode {
|
|
85
|
+
/** Error code when the API key is not found. */
|
|
86
|
+
UnknownApiKey = "UNKNOWN_API_KEY"
|
|
87
|
+
}
|
|
38
88
|
/** Represents attribution details for a line item in an order. */
|
|
39
89
|
export type Attribution = {
|
|
40
90
|
__typename?: 'Attribution';
|
|
@@ -1134,17 +1184,29 @@ export type LinkEntryPointSetInput = {
|
|
|
1134
1184
|
/** Information about a Shop Mini. */
|
|
1135
1185
|
export type Mini = {
|
|
1136
1186
|
__typename?: 'Mini';
|
|
1137
|
-
/**
|
|
1187
|
+
/**
|
|
1188
|
+
* The development Shopify app IDs.
|
|
1189
|
+
* @deprecated App linking functionality is being removed. This field will be removed in a future version.
|
|
1190
|
+
*/
|
|
1138
1191
|
developmentShopifyAppIds: Array<Scalars['ID']>;
|
|
1139
|
-
/**
|
|
1192
|
+
/**
|
|
1193
|
+
* The development Shopify apps linked to the Mini.
|
|
1194
|
+
* @deprecated App linking functionality is being removed. This field will be removed in a future version.
|
|
1195
|
+
*/
|
|
1140
1196
|
developmentShopifyApps: Array<ShopifyApp>;
|
|
1141
1197
|
/** The mini handle. */
|
|
1142
1198
|
handle: Scalars['ID'];
|
|
1143
1199
|
/** The partner name. */
|
|
1144
1200
|
partnerName: Scalars['String'];
|
|
1145
|
-
/**
|
|
1201
|
+
/**
|
|
1202
|
+
* The production Shopify app linked to the Mini.
|
|
1203
|
+
* @deprecated App linking functionality is being removed. This field will be removed in a future version.
|
|
1204
|
+
*/
|
|
1146
1205
|
productionShopifyApp?: Maybe<ShopifyApp>;
|
|
1147
|
-
/**
|
|
1206
|
+
/**
|
|
1207
|
+
* The production Shopify app ID.
|
|
1208
|
+
* @deprecated App linking functionality is being removed. This field will be removed in a future version.
|
|
1209
|
+
*/
|
|
1148
1210
|
productionShopifyAppId?: Maybe<Scalars['ID']>;
|
|
1149
1211
|
};
|
|
1150
1212
|
/** Return type for the `miniCreate` mutation. */
|
|
@@ -1176,64 +1238,12 @@ export declare enum MiniCreateUserErrorCode {
|
|
|
1176
1238
|
/** Error code when verification failed. */
|
|
1177
1239
|
VerificationFailed = "VERIFICATION_FAILED"
|
|
1178
1240
|
}
|
|
1179
|
-
/** Return type for the `miniLinkApp` mutation. */
|
|
1180
|
-
export type MiniLinkAppPayload = {
|
|
1181
|
-
__typename?: 'MiniLinkAppPayload';
|
|
1182
|
-
/** The Mini. */
|
|
1183
|
-
mini?: Maybe<Mini>;
|
|
1184
|
-
/** List of errors that occured while executing the mutation. */
|
|
1185
|
-
userErrors: Array<MiniLinkAppUserError>;
|
|
1186
|
-
};
|
|
1187
|
-
/** A user or client error that could occur during the execution of the `miniLinkApp` mutation. */
|
|
1188
|
-
export type MiniLinkAppUserError = {
|
|
1189
|
-
__typename?: 'MiniLinkAppUserError';
|
|
1190
|
-
/** Error code associated with the error. */
|
|
1191
|
-
code: MiniLinkAppUserErrorCode;
|
|
1192
|
-
/** Which input value this error came from. */
|
|
1193
|
-
field?: Maybe<Array<Scalars['String']>>;
|
|
1194
|
-
/** A description of the error. */
|
|
1195
|
-
message: Scalars['String'];
|
|
1196
|
-
};
|
|
1197
|
-
/** Possible error codes that can be returned by MiniLinkAppUserError. */
|
|
1198
|
-
export declare enum MiniLinkAppUserErrorCode {
|
|
1199
|
-
/** Error code when the app is already linked to a Mini. */
|
|
1200
|
-
AppAlreadyLinked = "APP_ALREADY_LINKED",
|
|
1201
|
-
/** Error code when the primary app is already set. */
|
|
1202
|
-
PrimaryAppAlreadySet = "PRIMARY_APP_ALREADY_SET",
|
|
1203
|
-
/** Error code when verification failed. */
|
|
1204
|
-
VerificationFailed = "VERIFICATION_FAILED"
|
|
1205
|
-
}
|
|
1206
1241
|
/** Return type for the `miniToggle` mutation. */
|
|
1207
1242
|
export type MiniTogglePayload = {
|
|
1208
1243
|
__typename?: 'MiniTogglePayload';
|
|
1209
1244
|
/** The flag whether the Mini is enabled or disabled. */
|
|
1210
1245
|
enabled?: Maybe<Scalars['Boolean']>;
|
|
1211
1246
|
};
|
|
1212
|
-
/** Return type for the `miniUnlinkApp` mutation. */
|
|
1213
|
-
export type MiniUnlinkAppPayload = {
|
|
1214
|
-
__typename?: 'MiniUnlinkAppPayload';
|
|
1215
|
-
/** The Mini. */
|
|
1216
|
-
mini?: Maybe<Mini>;
|
|
1217
|
-
/** List of errors that occured while executing the mutation. */
|
|
1218
|
-
userErrors: Array<MiniUnlinkAppUserError>;
|
|
1219
|
-
};
|
|
1220
|
-
/** A user or client error that could occur during the execution of the `miniUnlinkApp` mutation. */
|
|
1221
|
-
export type MiniUnlinkAppUserError = {
|
|
1222
|
-
__typename?: 'MiniUnlinkAppUserError';
|
|
1223
|
-
/** Error code associated with the error. */
|
|
1224
|
-
code: MiniUnlinkAppUserErrorCode;
|
|
1225
|
-
/** Which input value this error came from. */
|
|
1226
|
-
field?: Maybe<Array<Scalars['String']>>;
|
|
1227
|
-
/** A description of the error. */
|
|
1228
|
-
message: Scalars['String'];
|
|
1229
|
-
};
|
|
1230
|
-
/** Possible error codes that can be returned by MiniUnlinkAppUserError. */
|
|
1231
|
-
export declare enum MiniUnlinkAppUserErrorCode {
|
|
1232
|
-
/** Error code when the app is not linked to the Mini. */
|
|
1233
|
-
AppNotLinked = "APP_NOT_LINKED",
|
|
1234
|
-
/** Error code when the app is used as the production app. */
|
|
1235
|
-
CannotUnlinkProductionApp = "CANNOT_UNLINK_PRODUCTION_APP"
|
|
1236
|
-
}
|
|
1237
1247
|
/** The information needed to create a new money. */
|
|
1238
1248
|
export type MoneyInput = {
|
|
1239
1249
|
/** Decimal money amount. */
|
|
@@ -1261,6 +1271,10 @@ export type MoneyV2 = {
|
|
|
1261
1271
|
};
|
|
1262
1272
|
export type Mutation = {
|
|
1263
1273
|
__typename?: 'Mutation';
|
|
1274
|
+
/** Generates an API key for a Mini. */
|
|
1275
|
+
apiKeyGenerate: ApiKeyGeneratePayload;
|
|
1276
|
+
/** Revokes an API key for a Mini. */
|
|
1277
|
+
apiKeyRevoke: ApiKeyRevokePayload;
|
|
1264
1278
|
/** Creates a new content. */
|
|
1265
1279
|
contentCreate: ContentCreatePayload;
|
|
1266
1280
|
/** Asynchronously deletes all entry points for the given shopDomain. Entry points created or updated after performing the mutation will not be deleted. */
|
|
@@ -1277,12 +1291,8 @@ export type Mutation = {
|
|
|
1277
1291
|
entryPointSetByRule: EntryPointSetByRulePayload;
|
|
1278
1292
|
/** Creates a new Mini. */
|
|
1279
1293
|
miniCreate: MiniCreatePayload;
|
|
1280
|
-
/** Links a Shopify app to a Mini. */
|
|
1281
|
-
miniLinkApp: MiniLinkAppPayload;
|
|
1282
1294
|
/** Enables or disables the Mini by partner. */
|
|
1283
1295
|
miniToggle: MiniTogglePayload;
|
|
1284
|
-
/** Unlinks a Shopify app from a Mini. */
|
|
1285
|
-
miniUnlinkApp: MiniUnlinkAppPayload;
|
|
1286
1296
|
/** Triggers a notification. */
|
|
1287
1297
|
notificationTrigger: NotificationTriggerPayload;
|
|
1288
1298
|
/** Sets the proxies for the Mini. */
|
|
@@ -1306,6 +1316,13 @@ export type Mutation = {
|
|
|
1306
1316
|
/** Verifies a user token. */
|
|
1307
1317
|
userTokenVerify: UserTokenVerifyPayload;
|
|
1308
1318
|
};
|
|
1319
|
+
export type MutationApiKeyGenerateArgs = {
|
|
1320
|
+
miniHandle: Scalars['String'];
|
|
1321
|
+
partnersAccessToken: Scalars['String'];
|
|
1322
|
+
};
|
|
1323
|
+
export type MutationApiKeyRevokeArgs = {
|
|
1324
|
+
title: Scalars['String'];
|
|
1325
|
+
};
|
|
1309
1326
|
export type MutationContentCreateArgs = {
|
|
1310
1327
|
description?: InputMaybe<Scalars['String']>;
|
|
1311
1328
|
externalId?: InputMaybe<Scalars['ID']>;
|
|
@@ -1349,17 +1366,9 @@ export type MutationMiniCreateArgs = {
|
|
|
1349
1366
|
partnersAccessToken: Scalars['String'];
|
|
1350
1367
|
web?: InputMaybe<Scalars['Boolean']>;
|
|
1351
1368
|
};
|
|
1352
|
-
export type MutationMiniLinkAppArgs = {
|
|
1353
|
-
appApiKey: Scalars['String'];
|
|
1354
|
-
partnersAccessToken: Scalars['String'];
|
|
1355
|
-
primary?: InputMaybe<Scalars['Boolean']>;
|
|
1356
|
-
};
|
|
1357
1369
|
export type MutationMiniToggleArgs = {
|
|
1358
1370
|
enable: Scalars['Boolean'];
|
|
1359
1371
|
};
|
|
1360
|
-
export type MutationMiniUnlinkAppArgs = {
|
|
1361
|
-
appId: Scalars['ID'];
|
|
1362
|
-
};
|
|
1363
1372
|
export type MutationNotificationTriggerArgs = {
|
|
1364
1373
|
scopedEntityId: Scalars['ID'];
|
|
1365
1374
|
shopDomain?: InputMaybe<Scalars['String']>;
|
|
@@ -2020,11 +2029,16 @@ export declare enum UserState {
|
|
|
2020
2029
|
/** Return type for the `userTokenVerify` mutation. */
|
|
2021
2030
|
export type UserTokenVerifyPayload = {
|
|
2022
2031
|
__typename?: 'UserTokenVerifyPayload';
|
|
2032
|
+
/** The public ID of the user. */
|
|
2033
|
+
publicId?: Maybe<Scalars['String']>;
|
|
2023
2034
|
/** The expiration date of the token. */
|
|
2024
2035
|
tokenExpiresAt?: Maybe<Scalars['ISO8601DateTime']>;
|
|
2025
2036
|
/** List of errors that occured while executing the mutation. */
|
|
2026
2037
|
userErrors: Array<UserTokenVerifyUserError>;
|
|
2027
|
-
/**
|
|
2038
|
+
/**
|
|
2039
|
+
* A permanent identifier for the user.
|
|
2040
|
+
* @deprecated Use publicId instead.
|
|
2041
|
+
*/
|
|
2028
2042
|
userIdentifier?: Maybe<Scalars['String']>;
|
|
2029
2043
|
/** The state of the user. */
|
|
2030
2044
|
userState?: Maybe<UserState>;
|
|
@@ -2255,25 +2269,6 @@ export type CreateUploadMutation = {
|
|
|
2255
2269
|
}>;
|
|
2256
2270
|
};
|
|
2257
2271
|
};
|
|
2258
|
-
export type LinkedAppsQueryVariables = Exact<{
|
|
2259
|
-
[key: string]: never;
|
|
2260
|
-
}>;
|
|
2261
|
-
export type LinkedAppsQuery = {
|
|
2262
|
-
__typename?: 'Query';
|
|
2263
|
-
mini?: {
|
|
2264
|
-
__typename?: 'Mini';
|
|
2265
|
-
productionShopifyApp?: {
|
|
2266
|
-
__typename?: 'ShopifyApp';
|
|
2267
|
-
id: string;
|
|
2268
|
-
title: string;
|
|
2269
|
-
} | null;
|
|
2270
|
-
developmentShopifyApps: Array<{
|
|
2271
|
-
__typename?: 'ShopifyApp';
|
|
2272
|
-
id: string;
|
|
2273
|
-
title: string;
|
|
2274
|
-
}>;
|
|
2275
|
-
} | null;
|
|
2276
|
-
};
|
|
2277
2272
|
export type SubmissionsQueryVariables = Exact<{
|
|
2278
2273
|
first?: InputMaybe<Scalars['Int']>;
|
|
2279
2274
|
}>;
|
|
@@ -2319,50 +2314,6 @@ export type MiniCreateMutation = {
|
|
|
2319
2314
|
}>;
|
|
2320
2315
|
};
|
|
2321
2316
|
};
|
|
2322
|
-
export type MiniLinkAppMutationVariables = Exact<{
|
|
2323
|
-
appApiKey: Scalars['String'];
|
|
2324
|
-
partnersAccessToken: Scalars['String'];
|
|
2325
|
-
primary?: InputMaybe<Scalars['Boolean']>;
|
|
2326
|
-
}>;
|
|
2327
|
-
export type MiniLinkAppMutation = {
|
|
2328
|
-
__typename?: 'Mutation';
|
|
2329
|
-
miniLinkApp: {
|
|
2330
|
-
__typename?: 'MiniLinkAppPayload';
|
|
2331
|
-
mini?: {
|
|
2332
|
-
__typename?: 'Mini';
|
|
2333
|
-
handle: string;
|
|
2334
|
-
productionShopifyAppId?: string | null;
|
|
2335
|
-
developmentShopifyAppIds: Array<string>;
|
|
2336
|
-
} | null;
|
|
2337
|
-
userErrors: Array<{
|
|
2338
|
-
__typename?: 'MiniLinkAppUserError';
|
|
2339
|
-
code: MiniLinkAppUserErrorCode;
|
|
2340
|
-
message: string;
|
|
2341
|
-
field?: Array<string> | null;
|
|
2342
|
-
}>;
|
|
2343
|
-
};
|
|
2344
|
-
};
|
|
2345
|
-
export type MiniUnlinkAppMutationVariables = Exact<{
|
|
2346
|
-
appId: Scalars['ID'];
|
|
2347
|
-
}>;
|
|
2348
|
-
export type MiniUnlinkAppMutation = {
|
|
2349
|
-
__typename?: 'Mutation';
|
|
2350
|
-
miniUnlinkApp: {
|
|
2351
|
-
__typename?: 'MiniUnlinkAppPayload';
|
|
2352
|
-
mini?: {
|
|
2353
|
-
__typename?: 'Mini';
|
|
2354
|
-
handle: string;
|
|
2355
|
-
productionShopifyAppId?: string | null;
|
|
2356
|
-
developmentShopifyAppIds: Array<string>;
|
|
2357
|
-
} | null;
|
|
2358
|
-
userErrors: Array<{
|
|
2359
|
-
__typename?: 'MiniUnlinkAppUserError';
|
|
2360
|
-
code: MiniUnlinkAppUserErrorCode;
|
|
2361
|
-
message: string;
|
|
2362
|
-
field?: Array<string> | null;
|
|
2363
|
-
}>;
|
|
2364
|
-
};
|
|
2365
|
-
};
|
|
2366
2317
|
export type MiniQueryVariables = Exact<{
|
|
2367
2318
|
[key: string]: never;
|
|
2368
2319
|
}>;
|
|
@@ -2517,9 +2468,6 @@ export declare const CreateUploadDocument: DocumentNode<CreateUploadMutation, Ex
|
|
|
2517
2468
|
checksum: Scalars['String'];
|
|
2518
2469
|
mimeType: Scalars['String'];
|
|
2519
2470
|
}>>;
|
|
2520
|
-
export declare const LinkedAppsDocument: DocumentNode<LinkedAppsQuery, Exact<{
|
|
2521
|
-
[key: string]: never;
|
|
2522
|
-
}>>;
|
|
2523
2471
|
export declare const SubmissionsDocument: DocumentNode<SubmissionsQuery, Exact<{
|
|
2524
2472
|
first?: InputMaybe<number> | undefined;
|
|
2525
2473
|
}>>;
|
|
@@ -2528,14 +2476,6 @@ export declare const MiniCreateDocument: DocumentNode<MiniCreateMutation, Exact<
|
|
|
2528
2476
|
organizationId: Scalars['ID'];
|
|
2529
2477
|
partnersAccessToken: Scalars['String'];
|
|
2530
2478
|
}>>;
|
|
2531
|
-
export declare const MiniLinkAppDocument: DocumentNode<MiniLinkAppMutation, Exact<{
|
|
2532
|
-
appApiKey: Scalars['String'];
|
|
2533
|
-
partnersAccessToken: Scalars['String'];
|
|
2534
|
-
primary?: InputMaybe<boolean> | undefined;
|
|
2535
|
-
}>>;
|
|
2536
|
-
export declare const MiniUnlinkAppDocument: DocumentNode<MiniUnlinkAppMutation, Exact<{
|
|
2537
|
-
appId: Scalars['ID'];
|
|
2538
|
-
}>>;
|
|
2539
2479
|
export declare const MiniDocument: DocumentNode<MiniQuery, Exact<{
|
|
2540
2480
|
[key: string]: never;
|
|
2541
2481
|
}>>;
|