@shopify/shop-minis-cli 0.0.138 → 0.0.139
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/commands/app/index.d.ts +2 -0
- package/build/commands/app/index.js +14 -0
- package/build/commands/app/index.js.map +1 -0
- package/build/commands/app/link.d.ts +2 -0
- package/build/commands/app/link.js +55 -0
- package/build/commands/app/link.js.map +1 -0
- package/build/commands/app/list.d.ts +2 -0
- package/build/commands/app/list.js +37 -0
- package/build/commands/app/list.js.map +1 -0
- package/build/commands/app/unlink.d.ts +2 -0
- package/build/commands/app/unlink.js +47 -0
- package/build/commands/app/unlink.js.map +1 -0
- package/build/commands/codemod/releases/index.js +2 -0
- package/build/commands/codemod/releases/index.js.map +1 -1
- package/build/commands/codemod/releases/v0-0-139.d.ts +3 -0
- package/build/commands/codemod/releases/v0-0-139.js +26 -0
- package/build/commands/codemod/releases/v0-0-139.js.map +1 -0
- package/build/commands/dev/utils/cache-cleanup.d.ts +1 -0
- package/build/commands/dev/utils/cache-cleanup.js +45 -0
- package/build/commands/dev/utils/cache-cleanup.js.map +1 -0
- package/build/commands/dev/utils/default-screen.js +31 -16
- package/build/commands/dev/utils/default-screen.js.map +1 -1
- package/build/commands/dev/utils/simulator.js +4 -1
- package/build/commands/dev/utils/simulator.js.map +1 -1
- package/build/commands/setup/create.d.ts +2 -0
- package/build/commands/setup/create.js +77 -0
- package/build/commands/setup/create.js.map +1 -0
- package/build/commands/setup/index.js +2 -0
- package/build/commands/setup/index.js.map +1 -1
- package/build/data/get-linked-apps.d.ts +13 -0
- package/build/data/get-linked-apps.js +21 -0
- package/build/data/get-linked-apps.js.map +1 -0
- package/build/data/gql-client.js +6 -1
- package/build/data/gql-client.js.map +1 -1
- package/build/data/mini-create.d.ts +22 -0
- package/build/data/mini-create.js +39 -0
- package/build/data/mini-create.js.map +1 -0
- package/build/data/mini-link-app.d.ts +19 -0
- package/build/data/mini-link-app.js +29 -0
- package/build/data/mini-link-app.js.map +1 -0
- package/build/data/mini-unlink-app.d.ts +18 -0
- package/build/data/mini-unlink-app.js +25 -0
- package/build/data/mini-unlink-app.js.map +1 -0
- package/build/data/partners/query.d.ts +32 -0
- package/build/data/partners/query.js +123 -0
- package/build/data/partners/query.js.map +1 -0
- package/build/data/partners/types.d.ts +55 -0
- package/build/data/partners/types.js +6 -0
- package/build/data/partners/types.js.map +1 -0
- package/build/data/types/autogenerated/shop-minis-admin-api/gql.d.ts +32 -0
- package/build/data/types/autogenerated/shop-minis-admin-api/gql.js +4 -0
- 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 +213 -0
- package/build/data/types/autogenerated/shop-minis-admin-api/graphql.js +365 -0
- package/build/data/types/autogenerated/shop-minis-admin-api/graphql.js.map +1 -1
- package/build/index.js +2 -0
- package/build/index.js.map +1 -1
- package/build/schemas/manifest.schema.json +1 -7
- package/build/utils/sync-manifest.d.ts +5 -0
- package/build/utils/sync-manifest.js +23 -0
- package/build/utils/sync-manifest.js.map +1 -0
- package/package.json +2 -2
- package/scripts/graphql-codegen.ts +8 -2
|
@@ -1084,19 +1084,102 @@ export type Mini = {
|
|
|
1084
1084
|
__typename?: 'Mini';
|
|
1085
1085
|
/** The development Shopify app IDs. */
|
|
1086
1086
|
developmentShopifyAppIds: Array<Scalars['ID']>;
|
|
1087
|
+
/** The development Shopify apps linked to the Mini. */
|
|
1088
|
+
developmentShopifyApps: Array<ShopifyApp>;
|
|
1087
1089
|
/** The mini handle. */
|
|
1088
1090
|
handle: Scalars['ID'];
|
|
1089
1091
|
/** The partner name. */
|
|
1090
1092
|
partnerName: Scalars['String'];
|
|
1093
|
+
/** The production Shopify app linked to the Mini. */
|
|
1094
|
+
productionShopifyApp: ShopifyApp;
|
|
1091
1095
|
/** The production Shopify app ID. */
|
|
1092
1096
|
productionShopifyAppId: Scalars['ID'];
|
|
1093
1097
|
};
|
|
1098
|
+
/** Return type for the `miniCreate` mutation. */
|
|
1099
|
+
export type MiniCreatePayload = {
|
|
1100
|
+
__typename?: 'MiniCreatePayload';
|
|
1101
|
+
/** The created Mini. */
|
|
1102
|
+
mini?: Maybe<Mini>;
|
|
1103
|
+
/** The API key token that was created. */
|
|
1104
|
+
token?: Maybe<Scalars['String']>;
|
|
1105
|
+
/** List of errors that occured while executing the mutation. */
|
|
1106
|
+
userErrors: Array<MiniCreateUserError>;
|
|
1107
|
+
};
|
|
1108
|
+
/** A user or client error that could occur during the execution of the `miniCreate` mutation. */
|
|
1109
|
+
export type MiniCreateUserError = {
|
|
1110
|
+
__typename?: 'MiniCreateUserError';
|
|
1111
|
+
/** Error code associated with the error. */
|
|
1112
|
+
code: MiniCreateUserErrorCode;
|
|
1113
|
+
/** Which input value this error came from. */
|
|
1114
|
+
field?: Maybe<Array<Scalars['String']>>;
|
|
1115
|
+
/** A description of the error. */
|
|
1116
|
+
message: Scalars['String'];
|
|
1117
|
+
};
|
|
1118
|
+
/** Possible error codes that can be returned by MiniCreateUserError. */
|
|
1119
|
+
export declare enum MiniCreateUserErrorCode {
|
|
1120
|
+
/** Error code when the app is already linked to a Mini. */
|
|
1121
|
+
AppAlreadyLinked = "APP_ALREADY_LINKED",
|
|
1122
|
+
/** Error code when the handle is not unique. */
|
|
1123
|
+
HandleNotUnique = "HANDLE_NOT_UNIQUE",
|
|
1124
|
+
/** Error code when verification failed. */
|
|
1125
|
+
VerificationFailed = "VERIFICATION_FAILED"
|
|
1126
|
+
}
|
|
1127
|
+
/** Return type for the `miniLinkApp` mutation. */
|
|
1128
|
+
export type MiniLinkAppPayload = {
|
|
1129
|
+
__typename?: 'MiniLinkAppPayload';
|
|
1130
|
+
/** The Mini. */
|
|
1131
|
+
mini?: Maybe<Mini>;
|
|
1132
|
+
/** List of errors that occured while executing the mutation. */
|
|
1133
|
+
userErrors: Array<MiniLinkAppUserError>;
|
|
1134
|
+
};
|
|
1135
|
+
/** A user or client error that could occur during the execution of the `miniLinkApp` mutation. */
|
|
1136
|
+
export type MiniLinkAppUserError = {
|
|
1137
|
+
__typename?: 'MiniLinkAppUserError';
|
|
1138
|
+
/** Error code associated with the error. */
|
|
1139
|
+
code: MiniLinkAppUserErrorCode;
|
|
1140
|
+
/** Which input value this error came from. */
|
|
1141
|
+
field?: Maybe<Array<Scalars['String']>>;
|
|
1142
|
+
/** A description of the error. */
|
|
1143
|
+
message: Scalars['String'];
|
|
1144
|
+
};
|
|
1145
|
+
/** Possible error codes that can be returned by MiniLinkAppUserError. */
|
|
1146
|
+
export declare enum MiniLinkAppUserErrorCode {
|
|
1147
|
+
/** Error code when the app is already linked to a Mini. */
|
|
1148
|
+
AppAlreadyLinked = "APP_ALREADY_LINKED",
|
|
1149
|
+
/** Error code when verification failed. */
|
|
1150
|
+
VerificationFailed = "VERIFICATION_FAILED"
|
|
1151
|
+
}
|
|
1094
1152
|
/** Return type for the `miniToggle` mutation. */
|
|
1095
1153
|
export type MiniTogglePayload = {
|
|
1096
1154
|
__typename?: 'MiniTogglePayload';
|
|
1097
1155
|
/** The flag whether the Mini is enabled or disabled. */
|
|
1098
1156
|
enabled?: Maybe<Scalars['Boolean']>;
|
|
1099
1157
|
};
|
|
1158
|
+
/** Return type for the `miniUnlinkApp` mutation. */
|
|
1159
|
+
export type MiniUnlinkAppPayload = {
|
|
1160
|
+
__typename?: 'MiniUnlinkAppPayload';
|
|
1161
|
+
/** The Mini. */
|
|
1162
|
+
mini?: Maybe<Mini>;
|
|
1163
|
+
/** List of errors that occured while executing the mutation. */
|
|
1164
|
+
userErrors: Array<MiniUnlinkAppUserError>;
|
|
1165
|
+
};
|
|
1166
|
+
/** A user or client error that could occur during the execution of the `miniUnlinkApp` mutation. */
|
|
1167
|
+
export type MiniUnlinkAppUserError = {
|
|
1168
|
+
__typename?: 'MiniUnlinkAppUserError';
|
|
1169
|
+
/** Error code associated with the error. */
|
|
1170
|
+
code: MiniUnlinkAppUserErrorCode;
|
|
1171
|
+
/** Which input value this error came from. */
|
|
1172
|
+
field?: Maybe<Array<Scalars['String']>>;
|
|
1173
|
+
/** A description of the error. */
|
|
1174
|
+
message: Scalars['String'];
|
|
1175
|
+
};
|
|
1176
|
+
/** Possible error codes that can be returned by MiniUnlinkAppUserError. */
|
|
1177
|
+
export declare enum MiniUnlinkAppUserErrorCode {
|
|
1178
|
+
/** Error code when the app is not linked to the Mini. */
|
|
1179
|
+
AppNotLinked = "APP_NOT_LINKED",
|
|
1180
|
+
/** Error code when the app is used as the production app. */
|
|
1181
|
+
CannotUnlinkProductionApp = "CANNOT_UNLINK_PRODUCTION_APP"
|
|
1182
|
+
}
|
|
1100
1183
|
/** The information needed to create a new money. */
|
|
1101
1184
|
export type MoneyInput = {
|
|
1102
1185
|
/** Decimal money amount. */
|
|
@@ -1138,8 +1221,14 @@ export type Mutation = {
|
|
|
1138
1221
|
entryPointSetByRule: EntryPointSetByRulePayload;
|
|
1139
1222
|
/** Swap an invitation code for an API key. */
|
|
1140
1223
|
invitationAccept: InvitationAcceptPayload;
|
|
1224
|
+
/** Creates a new Mini. */
|
|
1225
|
+
miniCreate: MiniCreatePayload;
|
|
1226
|
+
/** Links a Shopify app to a Mini. */
|
|
1227
|
+
miniLinkApp: MiniLinkAppPayload;
|
|
1141
1228
|
/** Enables or disables the Mini by partner. */
|
|
1142
1229
|
miniToggle: MiniTogglePayload;
|
|
1230
|
+
/** Unlinks a Shopify app from a Mini. */
|
|
1231
|
+
miniUnlinkApp: MiniUnlinkAppPayload;
|
|
1143
1232
|
/** Triggers a notification. */
|
|
1144
1233
|
notificationTrigger: NotificationTriggerPayload;
|
|
1145
1234
|
/** Cancels a pending submission. */
|
|
@@ -1182,9 +1271,22 @@ export type MutationEntryPointSetByRuleArgs = {
|
|
|
1182
1271
|
export type MutationInvitationAcceptArgs = {
|
|
1183
1272
|
code: Scalars['String'];
|
|
1184
1273
|
};
|
|
1274
|
+
export type MutationMiniCreateArgs = {
|
|
1275
|
+
appApiKey: Scalars['String'];
|
|
1276
|
+
handle: Scalars['String'];
|
|
1277
|
+
name: Scalars['String'];
|
|
1278
|
+
partnersAccessToken: Scalars['String'];
|
|
1279
|
+
};
|
|
1280
|
+
export type MutationMiniLinkAppArgs = {
|
|
1281
|
+
appApiKey: Scalars['String'];
|
|
1282
|
+
partnersAccessToken: Scalars['String'];
|
|
1283
|
+
};
|
|
1185
1284
|
export type MutationMiniToggleArgs = {
|
|
1186
1285
|
enable: Scalars['Boolean'];
|
|
1187
1286
|
};
|
|
1287
|
+
export type MutationMiniUnlinkAppArgs = {
|
|
1288
|
+
appId: Scalars['ID'];
|
|
1289
|
+
};
|
|
1188
1290
|
export type MutationNotificationTriggerArgs = {
|
|
1189
1291
|
scopedEntityId: Scalars['ID'];
|
|
1190
1292
|
shopDomain?: InputMaybe<Scalars['String']>;
|
|
@@ -1381,6 +1483,14 @@ export declare enum ShopEligibilityStatus {
|
|
|
1381
1483
|
/** The shop is ineligible to appear in Shop. */
|
|
1382
1484
|
Ineligible = "INELIGIBLE"
|
|
1383
1485
|
}
|
|
1486
|
+
/** A Shopify app. */
|
|
1487
|
+
export type ShopifyApp = {
|
|
1488
|
+
__typename?: 'ShopifyApp';
|
|
1489
|
+
/** The Shopify app ID. */
|
|
1490
|
+
id: Scalars['ID'];
|
|
1491
|
+
/** The Shopify app title. */
|
|
1492
|
+
title: Scalars['String'];
|
|
1493
|
+
};
|
|
1384
1494
|
/** A staged upload where the file can be uploaded to and an id to identify it. */
|
|
1385
1495
|
export type StagedUpload = {
|
|
1386
1496
|
__typename?: 'StagedUpload';
|
|
@@ -1743,6 +1853,25 @@ export type CreateUploadMutation = {
|
|
|
1743
1853
|
}>;
|
|
1744
1854
|
};
|
|
1745
1855
|
};
|
|
1856
|
+
export type LinkedAppsQueryVariables = Exact<{
|
|
1857
|
+
[key: string]: never;
|
|
1858
|
+
}>;
|
|
1859
|
+
export type LinkedAppsQuery = {
|
|
1860
|
+
__typename?: 'Query';
|
|
1861
|
+
mini?: {
|
|
1862
|
+
__typename?: 'Mini';
|
|
1863
|
+
productionShopifyApp: {
|
|
1864
|
+
__typename?: 'ShopifyApp';
|
|
1865
|
+
id: string;
|
|
1866
|
+
title: string;
|
|
1867
|
+
};
|
|
1868
|
+
developmentShopifyApps: Array<{
|
|
1869
|
+
__typename?: 'ShopifyApp';
|
|
1870
|
+
id: string;
|
|
1871
|
+
title: string;
|
|
1872
|
+
}>;
|
|
1873
|
+
} | null;
|
|
1874
|
+
};
|
|
1746
1875
|
export type SubmissionsQueryVariables = Exact<{
|
|
1747
1876
|
first?: InputMaybe<Scalars['Int']>;
|
|
1748
1877
|
}>;
|
|
@@ -1766,6 +1895,74 @@ export type SubmissionsQuery = {
|
|
|
1766
1895
|
};
|
|
1767
1896
|
};
|
|
1768
1897
|
};
|
|
1898
|
+
export type MiniCreateMutationVariables = Exact<{
|
|
1899
|
+
name: Scalars['String'];
|
|
1900
|
+
handle: Scalars['String'];
|
|
1901
|
+
appApiKey: Scalars['String'];
|
|
1902
|
+
partnersAccessToken: Scalars['String'];
|
|
1903
|
+
}>;
|
|
1904
|
+
export type MiniCreateMutation = {
|
|
1905
|
+
__typename?: 'Mutation';
|
|
1906
|
+
miniCreate: {
|
|
1907
|
+
__typename?: 'MiniCreatePayload';
|
|
1908
|
+
token?: string | null;
|
|
1909
|
+
mini?: {
|
|
1910
|
+
__typename?: 'Mini';
|
|
1911
|
+
handle: string;
|
|
1912
|
+
productionShopifyAppId: string;
|
|
1913
|
+
developmentShopifyAppIds: Array<string>;
|
|
1914
|
+
} | null;
|
|
1915
|
+
userErrors: Array<{
|
|
1916
|
+
__typename?: 'MiniCreateUserError';
|
|
1917
|
+
code: MiniCreateUserErrorCode;
|
|
1918
|
+
message: string;
|
|
1919
|
+
field?: Array<string> | null;
|
|
1920
|
+
}>;
|
|
1921
|
+
};
|
|
1922
|
+
};
|
|
1923
|
+
export type MiniLinkAppMutationVariables = Exact<{
|
|
1924
|
+
appApiKey: Scalars['String'];
|
|
1925
|
+
partnersAccessToken: Scalars['String'];
|
|
1926
|
+
}>;
|
|
1927
|
+
export type MiniLinkAppMutation = {
|
|
1928
|
+
__typename?: 'Mutation';
|
|
1929
|
+
miniLinkApp: {
|
|
1930
|
+
__typename?: 'MiniLinkAppPayload';
|
|
1931
|
+
mini?: {
|
|
1932
|
+
__typename?: 'Mini';
|
|
1933
|
+
handle: string;
|
|
1934
|
+
productionShopifyAppId: string;
|
|
1935
|
+
developmentShopifyAppIds: Array<string>;
|
|
1936
|
+
} | null;
|
|
1937
|
+
userErrors: Array<{
|
|
1938
|
+
__typename?: 'MiniLinkAppUserError';
|
|
1939
|
+
code: MiniLinkAppUserErrorCode;
|
|
1940
|
+
message: string;
|
|
1941
|
+
field?: Array<string> | null;
|
|
1942
|
+
}>;
|
|
1943
|
+
};
|
|
1944
|
+
};
|
|
1945
|
+
export type MiniUnlinkAppMutationVariables = Exact<{
|
|
1946
|
+
appId: Scalars['ID'];
|
|
1947
|
+
}>;
|
|
1948
|
+
export type MiniUnlinkAppMutation = {
|
|
1949
|
+
__typename?: 'Mutation';
|
|
1950
|
+
miniUnlinkApp: {
|
|
1951
|
+
__typename?: 'MiniUnlinkAppPayload';
|
|
1952
|
+
mini?: {
|
|
1953
|
+
__typename?: 'Mini';
|
|
1954
|
+
handle: string;
|
|
1955
|
+
productionShopifyAppId: string;
|
|
1956
|
+
developmentShopifyAppIds: Array<string>;
|
|
1957
|
+
} | null;
|
|
1958
|
+
userErrors: Array<{
|
|
1959
|
+
__typename?: 'MiniUnlinkAppUserError';
|
|
1960
|
+
code: MiniUnlinkAppUserErrorCode;
|
|
1961
|
+
message: string;
|
|
1962
|
+
field?: Array<string> | null;
|
|
1963
|
+
}>;
|
|
1964
|
+
};
|
|
1965
|
+
};
|
|
1769
1966
|
export type MiniQueryVariables = Exact<{
|
|
1770
1967
|
[key: string]: never;
|
|
1771
1968
|
}>;
|
|
@@ -1794,9 +1991,25 @@ export declare const CreateUploadDocument: DocumentNode<CreateUploadMutation, Ex
|
|
|
1794
1991
|
checksum: Scalars['String'];
|
|
1795
1992
|
mimeType: Scalars['String'];
|
|
1796
1993
|
}>>;
|
|
1994
|
+
export declare const LinkedAppsDocument: DocumentNode<LinkedAppsQuery, Exact<{
|
|
1995
|
+
[key: string]: never;
|
|
1996
|
+
}>>;
|
|
1797
1997
|
export declare const SubmissionsDocument: DocumentNode<SubmissionsQuery, Exact<{
|
|
1798
1998
|
first?: InputMaybe<number> | undefined;
|
|
1799
1999
|
}>>;
|
|
2000
|
+
export declare const MiniCreateDocument: DocumentNode<MiniCreateMutation, Exact<{
|
|
2001
|
+
name: Scalars['String'];
|
|
2002
|
+
handle: Scalars['String'];
|
|
2003
|
+
appApiKey: Scalars['String'];
|
|
2004
|
+
partnersAccessToken: Scalars['String'];
|
|
2005
|
+
}>>;
|
|
2006
|
+
export declare const MiniLinkAppDocument: DocumentNode<MiniLinkAppMutation, Exact<{
|
|
2007
|
+
appApiKey: Scalars['String'];
|
|
2008
|
+
partnersAccessToken: Scalars['String'];
|
|
2009
|
+
}>>;
|
|
2010
|
+
export declare const MiniUnlinkAppDocument: DocumentNode<MiniUnlinkAppMutation, Exact<{
|
|
2011
|
+
appId: Scalars['ID'];
|
|
2012
|
+
}>>;
|
|
1800
2013
|
export declare const MiniDocument: DocumentNode<MiniQuery, Exact<{
|
|
1801
2014
|
[key: string]: never;
|
|
1802
2015
|
}>>;
|
|
@@ -558,6 +558,32 @@ export var InvitationAcceptUserErrorCode;
|
|
|
558
558
|
/** Error code when the invitation is not found. */
|
|
559
559
|
InvitationAcceptUserErrorCode["InvitationNotFound"] = "INVITATION_NOT_FOUND";
|
|
560
560
|
})(InvitationAcceptUserErrorCode || (InvitationAcceptUserErrorCode = {}));
|
|
561
|
+
/** Possible error codes that can be returned by MiniCreateUserError. */
|
|
562
|
+
export var MiniCreateUserErrorCode;
|
|
563
|
+
(function (MiniCreateUserErrorCode) {
|
|
564
|
+
/** Error code when the app is already linked to a Mini. */
|
|
565
|
+
MiniCreateUserErrorCode["AppAlreadyLinked"] = "APP_ALREADY_LINKED";
|
|
566
|
+
/** Error code when the handle is not unique. */
|
|
567
|
+
MiniCreateUserErrorCode["HandleNotUnique"] = "HANDLE_NOT_UNIQUE";
|
|
568
|
+
/** Error code when verification failed. */
|
|
569
|
+
MiniCreateUserErrorCode["VerificationFailed"] = "VERIFICATION_FAILED";
|
|
570
|
+
})(MiniCreateUserErrorCode || (MiniCreateUserErrorCode = {}));
|
|
571
|
+
/** Possible error codes that can be returned by MiniLinkAppUserError. */
|
|
572
|
+
export var MiniLinkAppUserErrorCode;
|
|
573
|
+
(function (MiniLinkAppUserErrorCode) {
|
|
574
|
+
/** Error code when the app is already linked to a Mini. */
|
|
575
|
+
MiniLinkAppUserErrorCode["AppAlreadyLinked"] = "APP_ALREADY_LINKED";
|
|
576
|
+
/** Error code when verification failed. */
|
|
577
|
+
MiniLinkAppUserErrorCode["VerificationFailed"] = "VERIFICATION_FAILED";
|
|
578
|
+
})(MiniLinkAppUserErrorCode || (MiniLinkAppUserErrorCode = {}));
|
|
579
|
+
/** Possible error codes that can be returned by MiniUnlinkAppUserError. */
|
|
580
|
+
export var MiniUnlinkAppUserErrorCode;
|
|
581
|
+
(function (MiniUnlinkAppUserErrorCode) {
|
|
582
|
+
/** Error code when the app is not linked to the Mini. */
|
|
583
|
+
MiniUnlinkAppUserErrorCode["AppNotLinked"] = "APP_NOT_LINKED";
|
|
584
|
+
/** Error code when the app is used as the production app. */
|
|
585
|
+
MiniUnlinkAppUserErrorCode["CannotUnlinkProductionApp"] = "CANNOT_UNLINK_PRODUCTION_APP";
|
|
586
|
+
})(MiniUnlinkAppUserErrorCode || (MiniUnlinkAppUserErrorCode = {}));
|
|
561
587
|
/** Possible error codes that can be returned by NotificationTriggerUserError. */
|
|
562
588
|
export var NotificationTriggerUserErrorCode;
|
|
563
589
|
(function (NotificationTriggerUserErrorCode) {
|
|
@@ -967,6 +993,52 @@ export const CreateUploadDocument = {
|
|
|
967
993
|
},
|
|
968
994
|
],
|
|
969
995
|
};
|
|
996
|
+
export const LinkedAppsDocument = {
|
|
997
|
+
kind: 'Document',
|
|
998
|
+
definitions: [
|
|
999
|
+
{
|
|
1000
|
+
kind: 'OperationDefinition',
|
|
1001
|
+
operation: 'query',
|
|
1002
|
+
name: { kind: 'Name', value: 'LinkedApps' },
|
|
1003
|
+
selectionSet: {
|
|
1004
|
+
kind: 'SelectionSet',
|
|
1005
|
+
selections: [
|
|
1006
|
+
{
|
|
1007
|
+
kind: 'Field',
|
|
1008
|
+
name: { kind: 'Name', value: 'mini' },
|
|
1009
|
+
selectionSet: {
|
|
1010
|
+
kind: 'SelectionSet',
|
|
1011
|
+
selections: [
|
|
1012
|
+
{
|
|
1013
|
+
kind: 'Field',
|
|
1014
|
+
name: { kind: 'Name', value: 'productionShopifyApp' },
|
|
1015
|
+
selectionSet: {
|
|
1016
|
+
kind: 'SelectionSet',
|
|
1017
|
+
selections: [
|
|
1018
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
1019
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'title' } },
|
|
1020
|
+
],
|
|
1021
|
+
},
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
kind: 'Field',
|
|
1025
|
+
name: { kind: 'Name', value: 'developmentShopifyApps' },
|
|
1026
|
+
selectionSet: {
|
|
1027
|
+
kind: 'SelectionSet',
|
|
1028
|
+
selections: [
|
|
1029
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
1030
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'title' } },
|
|
1031
|
+
],
|
|
1032
|
+
},
|
|
1033
|
+
},
|
|
1034
|
+
],
|
|
1035
|
+
},
|
|
1036
|
+
},
|
|
1037
|
+
],
|
|
1038
|
+
},
|
|
1039
|
+
},
|
|
1040
|
+
],
|
|
1041
|
+
};
|
|
970
1042
|
export const SubmissionsDocument = {
|
|
971
1043
|
kind: 'Document',
|
|
972
1044
|
definitions: [
|
|
@@ -1046,6 +1118,299 @@ export const SubmissionsDocument = {
|
|
|
1046
1118
|
},
|
|
1047
1119
|
],
|
|
1048
1120
|
};
|
|
1121
|
+
export const MiniCreateDocument = {
|
|
1122
|
+
kind: 'Document',
|
|
1123
|
+
definitions: [
|
|
1124
|
+
{
|
|
1125
|
+
kind: 'OperationDefinition',
|
|
1126
|
+
operation: 'mutation',
|
|
1127
|
+
name: { kind: 'Name', value: 'MiniCreate' },
|
|
1128
|
+
variableDefinitions: [
|
|
1129
|
+
{
|
|
1130
|
+
kind: 'VariableDefinition',
|
|
1131
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'name' } },
|
|
1132
|
+
type: {
|
|
1133
|
+
kind: 'NonNullType',
|
|
1134
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
1135
|
+
},
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
kind: 'VariableDefinition',
|
|
1139
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'handle' } },
|
|
1140
|
+
type: {
|
|
1141
|
+
kind: 'NonNullType',
|
|
1142
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
1143
|
+
},
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
kind: 'VariableDefinition',
|
|
1147
|
+
variable: {
|
|
1148
|
+
kind: 'Variable',
|
|
1149
|
+
name: { kind: 'Name', value: 'appApiKey' },
|
|
1150
|
+
},
|
|
1151
|
+
type: {
|
|
1152
|
+
kind: 'NonNullType',
|
|
1153
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
1154
|
+
},
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
kind: 'VariableDefinition',
|
|
1158
|
+
variable: {
|
|
1159
|
+
kind: 'Variable',
|
|
1160
|
+
name: { kind: 'Name', value: 'partnersAccessToken' },
|
|
1161
|
+
},
|
|
1162
|
+
type: {
|
|
1163
|
+
kind: 'NonNullType',
|
|
1164
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
1165
|
+
},
|
|
1166
|
+
},
|
|
1167
|
+
],
|
|
1168
|
+
selectionSet: {
|
|
1169
|
+
kind: 'SelectionSet',
|
|
1170
|
+
selections: [
|
|
1171
|
+
{
|
|
1172
|
+
kind: 'Field',
|
|
1173
|
+
name: { kind: 'Name', value: 'miniCreate' },
|
|
1174
|
+
arguments: [
|
|
1175
|
+
{
|
|
1176
|
+
kind: 'Argument',
|
|
1177
|
+
name: { kind: 'Name', value: 'name' },
|
|
1178
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'name' } },
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
kind: 'Argument',
|
|
1182
|
+
name: { kind: 'Name', value: 'handle' },
|
|
1183
|
+
value: {
|
|
1184
|
+
kind: 'Variable',
|
|
1185
|
+
name: { kind: 'Name', value: 'handle' },
|
|
1186
|
+
},
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
kind: 'Argument',
|
|
1190
|
+
name: { kind: 'Name', value: 'appApiKey' },
|
|
1191
|
+
value: {
|
|
1192
|
+
kind: 'Variable',
|
|
1193
|
+
name: { kind: 'Name', value: 'appApiKey' },
|
|
1194
|
+
},
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
kind: 'Argument',
|
|
1198
|
+
name: { kind: 'Name', value: 'partnersAccessToken' },
|
|
1199
|
+
value: {
|
|
1200
|
+
kind: 'Variable',
|
|
1201
|
+
name: { kind: 'Name', value: 'partnersAccessToken' },
|
|
1202
|
+
},
|
|
1203
|
+
},
|
|
1204
|
+
],
|
|
1205
|
+
selectionSet: {
|
|
1206
|
+
kind: 'SelectionSet',
|
|
1207
|
+
selections: [
|
|
1208
|
+
{
|
|
1209
|
+
kind: 'Field',
|
|
1210
|
+
name: { kind: 'Name', value: 'mini' },
|
|
1211
|
+
selectionSet: {
|
|
1212
|
+
kind: 'SelectionSet',
|
|
1213
|
+
selections: [
|
|
1214
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'handle' } },
|
|
1215
|
+
{
|
|
1216
|
+
kind: 'Field',
|
|
1217
|
+
name: { kind: 'Name', value: 'productionShopifyAppId' },
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
kind: 'Field',
|
|
1221
|
+
name: { kind: 'Name', value: 'developmentShopifyAppIds' },
|
|
1222
|
+
},
|
|
1223
|
+
],
|
|
1224
|
+
},
|
|
1225
|
+
},
|
|
1226
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'token' } },
|
|
1227
|
+
{
|
|
1228
|
+
kind: 'Field',
|
|
1229
|
+
name: { kind: 'Name', value: 'userErrors' },
|
|
1230
|
+
selectionSet: {
|
|
1231
|
+
kind: 'SelectionSet',
|
|
1232
|
+
selections: [
|
|
1233
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'code' } },
|
|
1234
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'message' } },
|
|
1235
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'field' } },
|
|
1236
|
+
],
|
|
1237
|
+
},
|
|
1238
|
+
},
|
|
1239
|
+
],
|
|
1240
|
+
},
|
|
1241
|
+
},
|
|
1242
|
+
],
|
|
1243
|
+
},
|
|
1244
|
+
},
|
|
1245
|
+
],
|
|
1246
|
+
};
|
|
1247
|
+
export const MiniLinkAppDocument = {
|
|
1248
|
+
kind: 'Document',
|
|
1249
|
+
definitions: [
|
|
1250
|
+
{
|
|
1251
|
+
kind: 'OperationDefinition',
|
|
1252
|
+
operation: 'mutation',
|
|
1253
|
+
name: { kind: 'Name', value: 'MiniLinkApp' },
|
|
1254
|
+
variableDefinitions: [
|
|
1255
|
+
{
|
|
1256
|
+
kind: 'VariableDefinition',
|
|
1257
|
+
variable: {
|
|
1258
|
+
kind: 'Variable',
|
|
1259
|
+
name: { kind: 'Name', value: 'appApiKey' },
|
|
1260
|
+
},
|
|
1261
|
+
type: {
|
|
1262
|
+
kind: 'NonNullType',
|
|
1263
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
1264
|
+
},
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
kind: 'VariableDefinition',
|
|
1268
|
+
variable: {
|
|
1269
|
+
kind: 'Variable',
|
|
1270
|
+
name: { kind: 'Name', value: 'partnersAccessToken' },
|
|
1271
|
+
},
|
|
1272
|
+
type: {
|
|
1273
|
+
kind: 'NonNullType',
|
|
1274
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
1275
|
+
},
|
|
1276
|
+
},
|
|
1277
|
+
],
|
|
1278
|
+
selectionSet: {
|
|
1279
|
+
kind: 'SelectionSet',
|
|
1280
|
+
selections: [
|
|
1281
|
+
{
|
|
1282
|
+
kind: 'Field',
|
|
1283
|
+
name: { kind: 'Name', value: 'miniLinkApp' },
|
|
1284
|
+
arguments: [
|
|
1285
|
+
{
|
|
1286
|
+
kind: 'Argument',
|
|
1287
|
+
name: { kind: 'Name', value: 'appApiKey' },
|
|
1288
|
+
value: {
|
|
1289
|
+
kind: 'Variable',
|
|
1290
|
+
name: { kind: 'Name', value: 'appApiKey' },
|
|
1291
|
+
},
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
kind: 'Argument',
|
|
1295
|
+
name: { kind: 'Name', value: 'partnersAccessToken' },
|
|
1296
|
+
value: {
|
|
1297
|
+
kind: 'Variable',
|
|
1298
|
+
name: { kind: 'Name', value: 'partnersAccessToken' },
|
|
1299
|
+
},
|
|
1300
|
+
},
|
|
1301
|
+
],
|
|
1302
|
+
selectionSet: {
|
|
1303
|
+
kind: 'SelectionSet',
|
|
1304
|
+
selections: [
|
|
1305
|
+
{
|
|
1306
|
+
kind: 'Field',
|
|
1307
|
+
name: { kind: 'Name', value: 'mini' },
|
|
1308
|
+
selectionSet: {
|
|
1309
|
+
kind: 'SelectionSet',
|
|
1310
|
+
selections: [
|
|
1311
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'handle' } },
|
|
1312
|
+
{
|
|
1313
|
+
kind: 'Field',
|
|
1314
|
+
name: { kind: 'Name', value: 'productionShopifyAppId' },
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
kind: 'Field',
|
|
1318
|
+
name: { kind: 'Name', value: 'developmentShopifyAppIds' },
|
|
1319
|
+
},
|
|
1320
|
+
],
|
|
1321
|
+
},
|
|
1322
|
+
},
|
|
1323
|
+
{
|
|
1324
|
+
kind: 'Field',
|
|
1325
|
+
name: { kind: 'Name', value: 'userErrors' },
|
|
1326
|
+
selectionSet: {
|
|
1327
|
+
kind: 'SelectionSet',
|
|
1328
|
+
selections: [
|
|
1329
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'code' } },
|
|
1330
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'message' } },
|
|
1331
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'field' } },
|
|
1332
|
+
],
|
|
1333
|
+
},
|
|
1334
|
+
},
|
|
1335
|
+
],
|
|
1336
|
+
},
|
|
1337
|
+
},
|
|
1338
|
+
],
|
|
1339
|
+
},
|
|
1340
|
+
},
|
|
1341
|
+
],
|
|
1342
|
+
};
|
|
1343
|
+
export const MiniUnlinkAppDocument = {
|
|
1344
|
+
kind: 'Document',
|
|
1345
|
+
definitions: [
|
|
1346
|
+
{
|
|
1347
|
+
kind: 'OperationDefinition',
|
|
1348
|
+
operation: 'mutation',
|
|
1349
|
+
name: { kind: 'Name', value: 'MiniUnlinkApp' },
|
|
1350
|
+
variableDefinitions: [
|
|
1351
|
+
{
|
|
1352
|
+
kind: 'VariableDefinition',
|
|
1353
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'appId' } },
|
|
1354
|
+
type: {
|
|
1355
|
+
kind: 'NonNullType',
|
|
1356
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
|
|
1357
|
+
},
|
|
1358
|
+
},
|
|
1359
|
+
],
|
|
1360
|
+
selectionSet: {
|
|
1361
|
+
kind: 'SelectionSet',
|
|
1362
|
+
selections: [
|
|
1363
|
+
{
|
|
1364
|
+
kind: 'Field',
|
|
1365
|
+
name: { kind: 'Name', value: 'miniUnlinkApp' },
|
|
1366
|
+
arguments: [
|
|
1367
|
+
{
|
|
1368
|
+
kind: 'Argument',
|
|
1369
|
+
name: { kind: 'Name', value: 'appId' },
|
|
1370
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'appId' } },
|
|
1371
|
+
},
|
|
1372
|
+
],
|
|
1373
|
+
selectionSet: {
|
|
1374
|
+
kind: 'SelectionSet',
|
|
1375
|
+
selections: [
|
|
1376
|
+
{
|
|
1377
|
+
kind: 'Field',
|
|
1378
|
+
name: { kind: 'Name', value: 'mini' },
|
|
1379
|
+
selectionSet: {
|
|
1380
|
+
kind: 'SelectionSet',
|
|
1381
|
+
selections: [
|
|
1382
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'handle' } },
|
|
1383
|
+
{
|
|
1384
|
+
kind: 'Field',
|
|
1385
|
+
name: { kind: 'Name', value: 'productionShopifyAppId' },
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
kind: 'Field',
|
|
1389
|
+
name: { kind: 'Name', value: 'developmentShopifyAppIds' },
|
|
1390
|
+
},
|
|
1391
|
+
],
|
|
1392
|
+
},
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
kind: 'Field',
|
|
1396
|
+
name: { kind: 'Name', value: 'userErrors' },
|
|
1397
|
+
selectionSet: {
|
|
1398
|
+
kind: 'SelectionSet',
|
|
1399
|
+
selections: [
|
|
1400
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'code' } },
|
|
1401
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'message' } },
|
|
1402
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'field' } },
|
|
1403
|
+
],
|
|
1404
|
+
},
|
|
1405
|
+
},
|
|
1406
|
+
],
|
|
1407
|
+
},
|
|
1408
|
+
},
|
|
1409
|
+
],
|
|
1410
|
+
},
|
|
1411
|
+
},
|
|
1412
|
+
],
|
|
1413
|
+
};
|
|
1049
1414
|
export const MiniDocument = {
|
|
1050
1415
|
kind: 'Document',
|
|
1051
1416
|
definitions: [
|