@shopify/shop-minis-cli 0.0.42 → 0.0.44
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/cancel-submission/cancel-submission.js +3 -2
- package/build/commands/cancel-submission/cancel-submission.js.map +1 -1
- package/build/commands/check-submission/index.js +39 -6
- package/build/commands/check-submission/index.js.map +1 -1
- package/build/commands/check-submission/types.d.ts +1 -1
- package/build/commands/config.d.ts +5 -0
- package/build/commands/config.js +20 -0
- package/build/commands/config.js.map +1 -1
- package/build/commands/data/cancel-submission.d.ts +22 -0
- package/build/commands/data/cancel-submission.js +26 -0
- package/build/commands/data/cancel-submission.js.map +1 -0
- package/build/commands/data/client.d.ts +7 -0
- package/build/commands/data/client.js +8 -0
- package/build/commands/data/client.js.map +1 -0
- package/build/commands/data/create-submission.d.ts +20 -0
- package/build/commands/data/create-submission.js +27 -0
- package/build/commands/data/create-submission.js.map +1 -0
- package/build/commands/data/create-upload.d.ts +21 -0
- package/build/commands/data/create-upload.js +40 -0
- package/build/commands/data/create-upload.js.map +1 -0
- package/build/commands/data/get-submissions.d.ts +27 -0
- package/build/commands/data/get-submissions.js +33 -0
- package/build/commands/data/get-submissions.js.map +1 -0
- package/build/commands/dev/index.d.ts +2 -0
- package/build/commands/dev/index.js +8 -2
- package/build/commands/dev/index.js.map +1 -1
- package/build/commands/dev/utils/android.d.ts +6 -4
- package/build/commands/dev/utils/android.js +29 -29
- package/build/commands/dev/utils/android.js.map +1 -1
- package/build/commands/dev/utils/binaries.d.ts +2 -59
- package/build/commands/dev/utils/binaries.js +7 -84
- package/build/commands/dev/utils/binaries.js.map +1 -1
- package/build/commands/dev/utils/build-type.d.ts +2 -0
- package/build/commands/dev/utils/build-type.js +14 -0
- package/build/commands/dev/utils/build-type.js.map +1 -0
- package/build/commands/dev/utils/deeplink.d.ts +2 -2
- package/build/commands/dev/utils/deeplink.js +5 -5
- package/build/commands/dev/utils/deeplink.js.map +1 -1
- package/build/commands/dev/utils/interactive-terminal.d.ts +3 -1
- package/build/commands/dev/utils/interactive-terminal.js +37 -78
- package/build/commands/dev/utils/interactive-terminal.js.map +1 -1
- package/build/commands/dev/utils/metro/metro-server.d.ts +1 -1
- package/build/commands/dev/utils/metro/metro-server.js +1 -1
- package/build/commands/dev/utils/metro/metro-server.js.map +1 -1
- package/build/commands/dev/utils/network.d.ts +8 -8
- package/build/commands/dev/utils/network.js +69 -23
- package/build/commands/dev/utils/network.js.map +1 -1
- package/build/commands/dev/utils/patch-package.d.ts +4 -0
- package/build/commands/dev/utils/patch-package.js +72 -0
- package/build/commands/dev/utils/patch-package.js.map +1 -0
- package/build/commands/dev/utils/platform.d.ts +18 -0
- package/build/commands/dev/utils/platform.js +41 -0
- package/build/commands/dev/utils/platform.js.map +1 -0
- package/build/commands/dev/utils/simulator.d.ts +5 -2
- package/build/commands/dev/utils/simulator.js +27 -13
- package/build/commands/dev/utils/simulator.js.map +1 -1
- package/build/commands/dev/utils/start-app.d.ts +23 -0
- package/build/commands/dev/utils/start-app.js +85 -0
- package/build/commands/dev/utils/start-app.js.map +1 -0
- package/build/commands/dev/utils/types.d.ts +24 -1
- package/build/commands/dev/utils/types.js +6 -1
- package/build/commands/dev/utils/types.js.map +1 -1
- package/build/commands/dev/utils/version.d.ts +64 -0
- package/build/commands/dev/utils/version.js +101 -0
- package/build/commands/dev/utils/version.js.map +1 -0
- package/build/commands/submit/errors.d.ts +1 -1
- package/build/commands/submit/errors.js +1 -1
- package/build/commands/submit/errors.js.map +1 -1
- package/build/commands/submit/submit.js +2 -1
- package/build/commands/submit/submit.js.map +1 -1
- package/build/commands/submit/tasks.d.ts +0 -1
- package/build/commands/submit/tasks.js +4 -48
- package/build/commands/submit/tasks.js.map +1 -1
- package/build/commands/types/autogenerated/shop-minis-admin-api/gql.d.ts +9 -9
- package/build/commands/types/autogenerated/shop-minis-admin-api/gql.js +2 -2
- package/build/commands/types/autogenerated/shop-minis-admin-api/gql.js.map +1 -1
- package/build/commands/types/autogenerated/shop-minis-admin-api/graphql.d.ts +301 -65
- package/build/commands/types/autogenerated/shop-minis-admin-api/graphql.js +155 -97
- package/build/commands/types/autogenerated/shop-minis-admin-api/graphql.js.map +1 -1
- package/build/commands/utils/common-tasks.d.ts +1 -0
- package/build/commands/utils/common-tasks.js +49 -0
- package/build/commands/utils/common-tasks.js.map +1 -0
- package/build/index.js +2 -1
- package/build/index.js.map +1 -1
- package/jest.config.ts +2 -2
- package/package.json +3 -1
- package/templates/__template_common/.eslintrc.js +29 -0
- package/templates/__template_common/index.tsx +0 -2
- package/templates/__template_common/package.json +4 -33
- package/templates/__template_common/patches/react-native+0.71.4.patch +78 -0
- package/templates/__template_common/src/manifest.json +1 -27
- package/templates/__template_hello_world/src/components/ComponentLink.ts +4 -0
- package/templates/__template_hello_world/src/components/ComponentListItem.tsx +1 -0
- package/templates/__template_hello_world/src/components/FeaturedComponents.tsx +2 -0
- package/templates/__template_hello_world/src/components/quiz/QuizSlide.tsx +6 -3
- package/templates/__template_hello_world/src/components/quiz/TextFieldSlide.tsx +88 -7
- package/templates/__template_hello_world/src/routes.tsx +6 -0
- package/templates/__template_hello_world/src/screens/AccordionScreen.tsx +73 -0
- package/templates/__template_hello_world/src/screens/InputScreen.tsx +4 -10
- package/templates/__template_hello_world/src/types.ts +1 -0
- package/templates/__template_hello_world/src/utils/mockQuizData.ts +19 -0
- package/build/commands/utils/graphql.d.ts +0 -92
- package/build/commands/utils/graphql.js +0 -123
- package/build/commands/utils/graphql.js.map +0 -1
- package/templates/__template_common/.eslintrc.json +0 -15
- package/templates/__template_common/patches/react-native+0.68.5.patch +0 -173
|
@@ -85,6 +85,14 @@ export type CallToActionEntryPointSetInput = {
|
|
|
85
85
|
/** The text of the call to action. */
|
|
86
86
|
text: Scalars['String'];
|
|
87
87
|
};
|
|
88
|
+
/** This is a content creator that may appear next to a Mini entry point. */
|
|
89
|
+
export type ContentCreator = {
|
|
90
|
+
__typename?: 'ContentCreator';
|
|
91
|
+
/** The avatar of the content creator. */
|
|
92
|
+
avatar: Image;
|
|
93
|
+
/** The name of the content creator. */
|
|
94
|
+
name: Scalars['String'];
|
|
95
|
+
};
|
|
88
96
|
/** Content creator that may appear next to a Mini entry point. */
|
|
89
97
|
export type ContentCreatorInput = {
|
|
90
98
|
/** The avatar of the content creator. */
|
|
@@ -106,6 +114,60 @@ export type EntryPointDebug = {
|
|
|
106
114
|
/** The issues with the entry point. */
|
|
107
115
|
issues: Array<Scalars['String']>;
|
|
108
116
|
};
|
|
117
|
+
/** Return type for the `entryPointDeleteByOwner` mutation. */
|
|
118
|
+
export type EntryPointDeleteByOwnerPayload = {
|
|
119
|
+
__typename?: 'EntryPointDeleteByOwnerPayload';
|
|
120
|
+
/** The entry point id that was deleted. */
|
|
121
|
+
deletedEntryPointId?: Maybe<Scalars['ID']>;
|
|
122
|
+
/** List of errors that occured while executing the mutation. */
|
|
123
|
+
userErrors: Array<EntryPointDeleteByOwnerUserError>;
|
|
124
|
+
};
|
|
125
|
+
/** A user or client error that could occur during the execution of the `entryPointDeleteByOwner` mutation. */
|
|
126
|
+
export type EntryPointDeleteByOwnerUserError = {
|
|
127
|
+
__typename?: 'EntryPointDeleteByOwnerUserError';
|
|
128
|
+
/** Error code associated with the error. */
|
|
129
|
+
code: EntryPointDeleteByOwnerUserErrorCode;
|
|
130
|
+
/** Which input value this error came from. */
|
|
131
|
+
field?: Maybe<Array<Scalars['String']>>;
|
|
132
|
+
/** A description of the error. */
|
|
133
|
+
message: Scalars['String'];
|
|
134
|
+
};
|
|
135
|
+
/** Possible error codes that can be returned by EntryPointDeleteByOwnerUserError. */
|
|
136
|
+
export declare enum EntryPointDeleteByOwnerUserErrorCode {
|
|
137
|
+
/** Error code when the entry point definition is not found from the manifest. */
|
|
138
|
+
DefinitionNotFound = "DEFINITION_NOT_FOUND",
|
|
139
|
+
/** Error code when the entry point to be deleted is not found. */
|
|
140
|
+
EntryPointNotFound = "ENTRY_POINT_NOT_FOUND",
|
|
141
|
+
/** Error code when the shop is not found. */
|
|
142
|
+
ShopNotFound = "SHOP_NOT_FOUND"
|
|
143
|
+
}
|
|
144
|
+
/** Return type for the `entryPointDeleteByRule` mutation. */
|
|
145
|
+
export type EntryPointDeleteByRulePayload = {
|
|
146
|
+
__typename?: 'EntryPointDeleteByRulePayload';
|
|
147
|
+
/** The entry point id that was deleted. */
|
|
148
|
+
deletedEntryPointId?: Maybe<Scalars['ID']>;
|
|
149
|
+
/** List of errors that occured while executing the mutation. */
|
|
150
|
+
userErrors: Array<EntryPointDeleteByRuleUserError>;
|
|
151
|
+
};
|
|
152
|
+
/** A user or client error that could occur during the execution of the `entryPointDeleteByRule` mutation. */
|
|
153
|
+
export type EntryPointDeleteByRuleUserError = {
|
|
154
|
+
__typename?: 'EntryPointDeleteByRuleUserError';
|
|
155
|
+
/** Error code associated with the error. */
|
|
156
|
+
code: EntryPointDeleteByRuleUserErrorCode;
|
|
157
|
+
/** Which input value this error came from. */
|
|
158
|
+
field?: Maybe<Array<Scalars['String']>>;
|
|
159
|
+
/** A description of the error. */
|
|
160
|
+
message: Scalars['String'];
|
|
161
|
+
};
|
|
162
|
+
/** Possible error codes that can be returned by EntryPointDeleteByRuleUserError. */
|
|
163
|
+
export declare enum EntryPointDeleteByRuleUserErrorCode {
|
|
164
|
+
/** Error code when the entry point definition is not found from the manifest. */
|
|
165
|
+
DefinitionNotFound = "DEFINITION_NOT_FOUND",
|
|
166
|
+
/** Error code when the entry point to be deleted is not found. */
|
|
167
|
+
EntryPointNotFound = "ENTRY_POINT_NOT_FOUND",
|
|
168
|
+
/** Error code when the shop is not found. */
|
|
169
|
+
ShopNotFound = "SHOP_NOT_FOUND"
|
|
170
|
+
}
|
|
109
171
|
/** The event status enum for an entry point. */
|
|
110
172
|
export declare enum EntryPointEventStatus {
|
|
111
173
|
/** The active status for Mini entry point event type. */
|
|
@@ -153,43 +215,38 @@ export declare enum EntryPointLocation {
|
|
|
153
215
|
/** The Mini should be displayed on the store page. */
|
|
154
216
|
StorePage = "STORE_PAGE"
|
|
155
217
|
}
|
|
156
|
-
/**
|
|
157
|
-
export type
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
productImageCollectionSetInput?: InputMaybe<ProductImageCollectionEntryPointSetInput>;
|
|
166
|
-
/** The product video collection entry point set input. */
|
|
167
|
-
productVideoCollectionSetInput?: InputMaybe<ProductVideoCollectionEntryPointSetInput>;
|
|
218
|
+
/** This is a product used for rendering a Mini entry point. */
|
|
219
|
+
export type EntryPointProduct = {
|
|
220
|
+
__typename?: 'EntryPointProduct';
|
|
221
|
+
/** The image of the product. */
|
|
222
|
+
image: Image;
|
|
223
|
+
/** The shop name. */
|
|
224
|
+
shopName: Scalars['String'];
|
|
225
|
+
/** The title of the product. */
|
|
226
|
+
title: Scalars['String'];
|
|
168
227
|
};
|
|
169
|
-
/** Return type for the `
|
|
170
|
-
export type
|
|
171
|
-
__typename?: '
|
|
228
|
+
/** Return type for the `entryPointSetByOwner` mutation. */
|
|
229
|
+
export type EntryPointSetByOwnerPayload = {
|
|
230
|
+
__typename?: 'EntryPointSetByOwnerPayload';
|
|
172
231
|
/** The entry point that was created or updated. */
|
|
173
232
|
entryPoint?: Maybe<EntryPoint>;
|
|
174
233
|
/** List of errors that occured while executing the mutation. */
|
|
175
|
-
userErrors: Array<
|
|
234
|
+
userErrors: Array<EntryPointSetByOwnerUserError>;
|
|
176
235
|
};
|
|
177
|
-
/** A user or client error that could occur during the execution of the `
|
|
178
|
-
export type
|
|
179
|
-
__typename?: '
|
|
236
|
+
/** A user or client error that could occur during the execution of the `entryPointSetByOwner` mutation. */
|
|
237
|
+
export type EntryPointSetByOwnerUserError = {
|
|
238
|
+
__typename?: 'EntryPointSetByOwnerUserError';
|
|
180
239
|
/** Error code associated with the error. */
|
|
181
|
-
code:
|
|
240
|
+
code: EntryPointSetByOwnerUserErrorCode;
|
|
182
241
|
/** Which input value this error came from. */
|
|
183
242
|
field?: Maybe<Array<Scalars['String']>>;
|
|
184
243
|
/** A description of the error. */
|
|
185
244
|
message: Scalars['String'];
|
|
186
245
|
};
|
|
187
|
-
/** Possible error codes that can be returned by
|
|
188
|
-
export declare enum
|
|
246
|
+
/** Possible error codes that can be returned by EntryPointSetByOwnerUserError. */
|
|
247
|
+
export declare enum EntryPointSetByOwnerUserErrorCode {
|
|
189
248
|
/** Error code when the entry point definition is not found from the manifest. */
|
|
190
249
|
DefinitionNotFound = "DEFINITION_NOT_FOUND",
|
|
191
|
-
/** Error code when the product ID is not provided when setting a Product Details Page entry point. */
|
|
192
|
-
MissingProductId = "MISSING_PRODUCT_ID",
|
|
193
250
|
/** Error code when the product is not eligible for Shop Minis. */
|
|
194
251
|
ProductNotEligible = "PRODUCT_NOT_ELIGIBLE",
|
|
195
252
|
/** Error code when the shop is not eligible for Shop Minis. */
|
|
@@ -197,6 +254,67 @@ export declare enum EntryPointSetUserErrorCode {
|
|
|
197
254
|
/** Error code when the shop is not found. */
|
|
198
255
|
ShopNotFound = "SHOP_NOT_FOUND"
|
|
199
256
|
}
|
|
257
|
+
/** Return type for the `entryPointSetByRule` mutation. */
|
|
258
|
+
export type EntryPointSetByRulePayload = {
|
|
259
|
+
__typename?: 'EntryPointSetByRulePayload';
|
|
260
|
+
/** The entry point that was created or updated. */
|
|
261
|
+
entryPoint?: Maybe<EntryPoint>;
|
|
262
|
+
/** List of errors that occured while executing the mutation. */
|
|
263
|
+
userErrors: Array<EntryPointSetByRuleUserError>;
|
|
264
|
+
};
|
|
265
|
+
/** A user or client error that could occur during the execution of the `entryPointSetByRule` mutation. */
|
|
266
|
+
export type EntryPointSetByRuleUserError = {
|
|
267
|
+
__typename?: 'EntryPointSetByRuleUserError';
|
|
268
|
+
/** Error code associated with the error. */
|
|
269
|
+
code: EntryPointSetByRuleUserErrorCode;
|
|
270
|
+
/** Which input value this error came from. */
|
|
271
|
+
field?: Maybe<Array<Scalars['String']>>;
|
|
272
|
+
/** A description of the error. */
|
|
273
|
+
message: Scalars['String'];
|
|
274
|
+
};
|
|
275
|
+
/** Possible error codes that can be returned by EntryPointSetByRuleUserError. */
|
|
276
|
+
export declare enum EntryPointSetByRuleUserErrorCode {
|
|
277
|
+
/** The entry point definition is not found from the manifest. */
|
|
278
|
+
DefinitionNotFound = "DEFINITION_NOT_FOUND",
|
|
279
|
+
/** The visibility rule is invalid. */
|
|
280
|
+
InvalidVisibilityRule = "INVALID_VISIBILITY_RULE",
|
|
281
|
+
/** The shop is not eligible for Shop Minis. */
|
|
282
|
+
ShopNotEligible = "SHOP_NOT_ELIGIBLE",
|
|
283
|
+
/** The shop is not found. */
|
|
284
|
+
ShopNotFound = "SHOP_NOT_FOUND"
|
|
285
|
+
}
|
|
286
|
+
/** The information needed to create a new entry point. */
|
|
287
|
+
export type EntryPointSetInput = {
|
|
288
|
+
/** The call to action entry point set input. */
|
|
289
|
+
callToActionSetInput?: InputMaybe<CallToActionEntryPointSetInput>;
|
|
290
|
+
/** The image content card entry point set input. */
|
|
291
|
+
imageContentCardSetInput?: InputMaybe<ImageContentCardEntryPointSetInput>;
|
|
292
|
+
/** The live event entry point set input. */
|
|
293
|
+
liveEventSetInput?: InputMaybe<LiveEventEntryPointSetInput>;
|
|
294
|
+
/** The product image collection entry point set input. */
|
|
295
|
+
productImageCollectionSetInput?: InputMaybe<ProductImageCollectionEntryPointSetInput>;
|
|
296
|
+
/** The product video collection entry point set input. */
|
|
297
|
+
productVideoCollectionSetInput?: InputMaybe<ProductVideoCollectionEntryPointSetInput>;
|
|
298
|
+
};
|
|
299
|
+
/** The entry point type of a Mini. */
|
|
300
|
+
export declare enum EntryPointType {
|
|
301
|
+
/** The Mini should be displayed as an action button. */
|
|
302
|
+
ActionButton = "ACTION_BUTTON",
|
|
303
|
+
/** The Mini should be displayed as a call to action. */
|
|
304
|
+
CallToAction = "CALL_TO_ACTION",
|
|
305
|
+
/** The Mini should be displayed as a card with content. */
|
|
306
|
+
ContentCard = "CONTENT_CARD",
|
|
307
|
+
/** The Mini should be displayed as a card with a reminder button. */
|
|
308
|
+
EventCard = "EVENT_CARD",
|
|
309
|
+
/** The Mini should be displayed as a card with an image and content. */
|
|
310
|
+
ImageContentCard = "IMAGE_CONTENT_CARD",
|
|
311
|
+
/** The Mini should be displayed as a live event. */
|
|
312
|
+
LiveEvent = "LIVE_EVENT",
|
|
313
|
+
/** The Mini should be displayed as a collection of images. */
|
|
314
|
+
ProductImageCollection = "PRODUCT_IMAGE_COLLECTION",
|
|
315
|
+
/** The Mini should be displayed as a collection of videos. */
|
|
316
|
+
ProductVideoCollection = "PRODUCT_VIDEO_COLLECTION"
|
|
317
|
+
}
|
|
200
318
|
/** Represents the validity of an entry point visibility rule. */
|
|
201
319
|
export type EntryPointVisibilityRuleValidity = {
|
|
202
320
|
__typename?: 'EntryPointVisibilityRuleValidity';
|
|
@@ -236,6 +354,16 @@ export type EntryPointVisibilityRuleValidityUserError = {
|
|
|
236
354
|
message: Scalars['String'];
|
|
237
355
|
};
|
|
238
356
|
/** Represents a video hosted outside of Shopify. */
|
|
357
|
+
export type ExternalVideo = {
|
|
358
|
+
__typename?: 'ExternalVideo';
|
|
359
|
+
/** The alt text for the media. */
|
|
360
|
+
alt?: Maybe<Scalars['String']>;
|
|
361
|
+
/** The embed URL of the video for the respective host. */
|
|
362
|
+
embedUrl: Scalars['URL'];
|
|
363
|
+
/** The preview image for the media. */
|
|
364
|
+
previewImage?: Maybe<Image>;
|
|
365
|
+
};
|
|
366
|
+
/** Represents a video hosted outside of Shopify. */
|
|
239
367
|
export type ExternalVideoInput = {
|
|
240
368
|
/** A word or phrase to share the nature or contents of a media. */
|
|
241
369
|
alt?: InputMaybe<Scalars['String']>;
|
|
@@ -244,6 +372,24 @@ export type ExternalVideoInput = {
|
|
|
244
372
|
/** The preview image for the media. */
|
|
245
373
|
previewImage?: InputMaybe<ImageInput>;
|
|
246
374
|
};
|
|
375
|
+
/** The image for the entry point. */
|
|
376
|
+
export type Image = {
|
|
377
|
+
__typename?: 'Image';
|
|
378
|
+
/** URL of the image. */
|
|
379
|
+
url: Scalars['URL'];
|
|
380
|
+
};
|
|
381
|
+
/** This is a Mini Image Content Card entry point for the Minis Admin API. */
|
|
382
|
+
export type ImageContentCardEntryPoint = EntryPoint & {
|
|
383
|
+
__typename?: 'ImageContentCardEntryPoint';
|
|
384
|
+
/** The ID of the entry point. */
|
|
385
|
+
id?: Maybe<Scalars['ID']>;
|
|
386
|
+
/** The images for the card. */
|
|
387
|
+
images: Array<Image>;
|
|
388
|
+
/** The subtitle of the card. */
|
|
389
|
+
subtitle?: Maybe<Scalars['String']>;
|
|
390
|
+
/** The title of the card. */
|
|
391
|
+
title: Scalars['String'];
|
|
392
|
+
};
|
|
247
393
|
/** The information needed to create a new image content card entry point. */
|
|
248
394
|
export type ImageContentCardEntryPointSetInput = {
|
|
249
395
|
/** The images of the image content card. */
|
|
@@ -258,6 +404,26 @@ export type ImageInput = {
|
|
|
258
404
|
/** The URL of the image. */
|
|
259
405
|
url: Scalars['URL'];
|
|
260
406
|
};
|
|
407
|
+
/** This is a Mini Live Event entry point. */
|
|
408
|
+
export type LiveEventEntryPoint = EntryPoint & {
|
|
409
|
+
__typename?: 'LiveEventEntryPoint';
|
|
410
|
+
/** The start time of the event. */
|
|
411
|
+
eventStartTime: Scalars['ISO8601DateTime'];
|
|
412
|
+
/** The status of the event. */
|
|
413
|
+
eventStatus: Scalars['String'];
|
|
414
|
+
/** The ID of the entry point. */
|
|
415
|
+
id?: Maybe<Scalars['ID']>;
|
|
416
|
+
/** The images for the card. */
|
|
417
|
+
image?: Maybe<Image>;
|
|
418
|
+
/** The topic to subscribe to for notifications. */
|
|
419
|
+
notificationTopic: Scalars['String'];
|
|
420
|
+
/** The primary text of the card. */
|
|
421
|
+
primaryText: Scalars['String'];
|
|
422
|
+
/** The secondary text of the card. */
|
|
423
|
+
secondaryText?: Maybe<Scalars['String']>;
|
|
424
|
+
/** The video for the card. */
|
|
425
|
+
video?: Maybe<ExternalVideo>;
|
|
426
|
+
};
|
|
261
427
|
/** The event status of the Mini live event entry point. */
|
|
262
428
|
export declare enum LiveEventEntryPointEventStatusEnum {
|
|
263
429
|
/** The active status for Mini entry point event type. */
|
|
@@ -269,8 +435,8 @@ export declare enum LiveEventEntryPointEventStatusEnum {
|
|
|
269
435
|
}
|
|
270
436
|
/** The information needed to create a new live event entry point. */
|
|
271
437
|
export type LiveEventEntryPointSetInput = {
|
|
272
|
-
/** The event start
|
|
273
|
-
|
|
438
|
+
/** The event start time for the live event entry point. */
|
|
439
|
+
eventStartTime: Scalars['ISO8601DateTime'];
|
|
274
440
|
/** The event status for the live event entry point. */
|
|
275
441
|
eventStatus: LiveEventEntryPointEventStatusEnum;
|
|
276
442
|
/** The image for the live event entry point. */
|
|
@@ -313,10 +479,16 @@ export type MiniProductVideoCollectionEntryPointItemInput = {
|
|
|
313
479
|
};
|
|
314
480
|
export type Mutation = {
|
|
315
481
|
__typename?: 'Mutation';
|
|
482
|
+
/** Deletes an entry point by using its ownerId. */
|
|
483
|
+
entryPointDeleteByOwner: EntryPointDeleteByOwnerPayload;
|
|
484
|
+
/** Deletes an entry point with a visibility rule. */
|
|
485
|
+
entryPointDeleteByRule: EntryPointDeleteByRulePayload;
|
|
316
486
|
/** Updates the status of an event entry point. */
|
|
317
487
|
entryPointEventStatusUpdate: EntryPointEventStatusUpdatePayload;
|
|
318
488
|
/** Creates or updates an entry point. */
|
|
319
|
-
|
|
489
|
+
entryPointSetByOwner: EntryPointSetByOwnerPayload;
|
|
490
|
+
/** Creates or updates entry point by setting a visibility rule. */
|
|
491
|
+
entryPointSetByRule: EntryPointSetByRulePayload;
|
|
320
492
|
/** Triggers a notification. */
|
|
321
493
|
notificationTrigger: NotificationTriggerPayload;
|
|
322
494
|
/** Cancels a pending submission. */
|
|
@@ -326,17 +498,34 @@ export type Mutation = {
|
|
|
326
498
|
/** Creates a new staged upload for a submission. */
|
|
327
499
|
submissionUploadCreate: SubmissionUploadCreatePayload;
|
|
328
500
|
};
|
|
501
|
+
export type MutationEntryPointDeleteByOwnerArgs = {
|
|
502
|
+
location: EntryPointLocation;
|
|
503
|
+
ownerId: Scalars['ID'];
|
|
504
|
+
shopDomain: Scalars['String'];
|
|
505
|
+
type: EntryPointType;
|
|
506
|
+
};
|
|
507
|
+
export type MutationEntryPointDeleteByRuleArgs = {
|
|
508
|
+
location: EntryPointLocation;
|
|
509
|
+
shopDomain: Scalars['String'];
|
|
510
|
+
type: EntryPointType;
|
|
511
|
+
};
|
|
329
512
|
export type MutationEntryPointEventStatusUpdateArgs = {
|
|
330
513
|
productId?: InputMaybe<Scalars['ID']>;
|
|
331
514
|
shopDomain?: InputMaybe<Scalars['String']>;
|
|
332
515
|
status: EntryPointEventStatus;
|
|
333
516
|
};
|
|
334
|
-
export type
|
|
335
|
-
|
|
517
|
+
export type MutationEntryPointSetByOwnerArgs = {
|
|
518
|
+
input: EntryPointSetInput;
|
|
336
519
|
location: EntryPointLocation;
|
|
337
|
-
|
|
520
|
+
ownerId: Scalars['ID'];
|
|
338
521
|
shopDomain: Scalars['String'];
|
|
339
522
|
};
|
|
523
|
+
export type MutationEntryPointSetByRuleArgs = {
|
|
524
|
+
input: EntryPointSetInput;
|
|
525
|
+
location: EntryPointLocation;
|
|
526
|
+
shopDomain: Scalars['String'];
|
|
527
|
+
visibilityRule: Scalars['String'];
|
|
528
|
+
};
|
|
340
529
|
export type MutationNotificationTriggerArgs = {
|
|
341
530
|
scopedEntityId: Scalars['ID'];
|
|
342
531
|
shopDomain?: InputMaybe<Scalars['String']>;
|
|
@@ -410,6 +599,31 @@ export declare enum ProductEligibilityStatus {
|
|
|
410
599
|
/** The product is ineligible to appear in Shop. */
|
|
411
600
|
Ineligible = "INELIGIBLE"
|
|
412
601
|
}
|
|
602
|
+
/** This is a Mini Product Image Collection entry point. */
|
|
603
|
+
export type ProductImageCollectionEntryPoint = EntryPoint & {
|
|
604
|
+
__typename?: 'ProductImageCollectionEntryPoint';
|
|
605
|
+
/** The ID of the entry point. */
|
|
606
|
+
id?: Maybe<Scalars['ID']>;
|
|
607
|
+
/** The items for the entry point. */
|
|
608
|
+
items: Array<ProductImageCollectionEntryPointItem>;
|
|
609
|
+
/** The layout for the entry point. */
|
|
610
|
+
layout: ProductImageCollectionEntryPointLayoutEnum;
|
|
611
|
+
};
|
|
612
|
+
/** This is a Mini Product Image Collection entry point item. */
|
|
613
|
+
export type ProductImageCollectionEntryPointItem = {
|
|
614
|
+
__typename?: 'ProductImageCollectionEntryPointItem';
|
|
615
|
+
/** The external ID for the item. Provided by the partner and opaque to the Shop app. */
|
|
616
|
+
externalId?: Maybe<Scalars['ID']>;
|
|
617
|
+
/** The image for the item. */
|
|
618
|
+
image: Image;
|
|
619
|
+
};
|
|
620
|
+
/** The layout of the Mini product image collection entry point. */
|
|
621
|
+
export declare enum ProductImageCollectionEntryPointLayoutEnum {
|
|
622
|
+
/** The layout is a carousel. */
|
|
623
|
+
Carousel = "CAROUSEL",
|
|
624
|
+
/** The layout is a grid. */
|
|
625
|
+
Grid = "GRID"
|
|
626
|
+
}
|
|
413
627
|
/** The information needed to create a new product image collection entry point. */
|
|
414
628
|
export type ProductImageCollectionEntryPointSetInput = {
|
|
415
629
|
/** The items for the entry point. */
|
|
@@ -417,6 +631,28 @@ export type ProductImageCollectionEntryPointSetInput = {
|
|
|
417
631
|
/** The layout for the entry point. */
|
|
418
632
|
layout: MiniProductImageCollectionEntryPointLayoutEnum;
|
|
419
633
|
};
|
|
634
|
+
/** This is a Mini Product Video Collection entry point. */
|
|
635
|
+
export type ProductVideoCollectionEntryPoint = EntryPoint & {
|
|
636
|
+
__typename?: 'ProductVideoCollectionEntryPoint';
|
|
637
|
+
/** The ID of the entry point. */
|
|
638
|
+
id?: Maybe<Scalars['ID']>;
|
|
639
|
+
/** The items for the entry point. */
|
|
640
|
+
items: Array<ProductVideoCollectionEntryPointItem>;
|
|
641
|
+
};
|
|
642
|
+
/** This is a Mini Product Video Collection entry point item. */
|
|
643
|
+
export type ProductVideoCollectionEntryPointItem = {
|
|
644
|
+
__typename?: 'ProductVideoCollectionEntryPointItem';
|
|
645
|
+
/** The content creator for the item. */
|
|
646
|
+
contentCreator?: Maybe<ContentCreator>;
|
|
647
|
+
/** The external ID for the item. Provided by the partner and opaque to the Shop app. */
|
|
648
|
+
externalId?: Maybe<Scalars['ID']>;
|
|
649
|
+
/** The image for the item. */
|
|
650
|
+
image: Image;
|
|
651
|
+
/** The product for the item. */
|
|
652
|
+
product?: Maybe<EntryPointProduct>;
|
|
653
|
+
/** The video for the item. */
|
|
654
|
+
video?: Maybe<ExternalVideo>;
|
|
655
|
+
};
|
|
420
656
|
/** The information needed to create or update a product video collection entry point. */
|
|
421
657
|
export type ProductVideoCollectionEntryPointSetInput = {
|
|
422
658
|
/** The items for the entry point. */
|
|
@@ -633,25 +869,23 @@ export type Warning = {
|
|
|
633
869
|
/** Description of the warning. */
|
|
634
870
|
message: Scalars['String'];
|
|
635
871
|
};
|
|
636
|
-
export type
|
|
637
|
-
|
|
638
|
-
fileSize: Scalars['Int'];
|
|
639
|
-
checksum: Scalars['String'];
|
|
640
|
-
mimeType: Scalars['String'];
|
|
872
|
+
export type CancelSubmissionMutationVariables = Exact<{
|
|
873
|
+
reference: Scalars['String'];
|
|
641
874
|
}>;
|
|
642
|
-
export type
|
|
875
|
+
export type CancelSubmissionMutation = {
|
|
643
876
|
__typename?: 'Mutation';
|
|
644
|
-
|
|
645
|
-
__typename?: '
|
|
646
|
-
|
|
647
|
-
__typename?: '
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
877
|
+
submissionCancel: {
|
|
878
|
+
__typename?: 'SubmissionCancelPayload';
|
|
879
|
+
submission?: {
|
|
880
|
+
__typename?: 'Submission';
|
|
881
|
+
reference: string;
|
|
882
|
+
description: string;
|
|
883
|
+
status: SubmissionStatus;
|
|
884
|
+
submittedAt: any;
|
|
651
885
|
} | null;
|
|
652
886
|
userErrors: Array<{
|
|
653
|
-
__typename?: '
|
|
654
|
-
code:
|
|
887
|
+
__typename?: 'SubmissionCancelUserError';
|
|
888
|
+
code: SubmissionCancelUserErrorCode;
|
|
655
889
|
message: string;
|
|
656
890
|
field?: Array<string> | null;
|
|
657
891
|
}>;
|
|
@@ -680,23 +914,25 @@ export type CreateSubmissionMutation = {
|
|
|
680
914
|
}>;
|
|
681
915
|
};
|
|
682
916
|
};
|
|
683
|
-
export type
|
|
684
|
-
|
|
917
|
+
export type CreateUploadMutationVariables = Exact<{
|
|
918
|
+
filename: Scalars['String'];
|
|
919
|
+
fileSize: Scalars['Int'];
|
|
920
|
+
checksum: Scalars['String'];
|
|
921
|
+
mimeType: Scalars['String'];
|
|
685
922
|
}>;
|
|
686
|
-
export type
|
|
923
|
+
export type CreateUploadMutation = {
|
|
687
924
|
__typename?: 'Mutation';
|
|
688
|
-
|
|
689
|
-
__typename?: '
|
|
690
|
-
|
|
691
|
-
__typename?: '
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
submittedAt: any;
|
|
925
|
+
submissionUploadCreate: {
|
|
926
|
+
__typename?: 'SubmissionUploadCreatePayload';
|
|
927
|
+
upload?: {
|
|
928
|
+
__typename?: 'StagedUpload';
|
|
929
|
+
url: any;
|
|
930
|
+
headers: string;
|
|
931
|
+
id: string;
|
|
696
932
|
} | null;
|
|
697
933
|
userErrors: Array<{
|
|
698
|
-
__typename?: '
|
|
699
|
-
code:
|
|
934
|
+
__typename?: 'SubmissionUploadCreateUserError';
|
|
935
|
+
code: SubmissionUploadCreateUserErrorCode;
|
|
700
936
|
message: string;
|
|
701
937
|
field?: Array<string> | null;
|
|
702
938
|
}>;
|
|
@@ -725,18 +961,18 @@ export type SubmissionsQuery = {
|
|
|
725
961
|
};
|
|
726
962
|
};
|
|
727
963
|
};
|
|
728
|
-
export declare const
|
|
729
|
-
|
|
730
|
-
fileSize: Scalars['Int'];
|
|
731
|
-
checksum: Scalars['String'];
|
|
732
|
-
mimeType: Scalars['String'];
|
|
964
|
+
export declare const CancelSubmissionDocument: DocumentNode<CancelSubmissionMutation, Exact<{
|
|
965
|
+
reference: Scalars['String'];
|
|
733
966
|
}>>;
|
|
734
967
|
export declare const CreateSubmissionDocument: DocumentNode<CreateSubmissionMutation, Exact<{
|
|
735
968
|
description: Scalars['String'];
|
|
736
969
|
uploadId: Scalars['ID'];
|
|
737
970
|
}>>;
|
|
738
|
-
export declare const
|
|
739
|
-
|
|
971
|
+
export declare const CreateUploadDocument: DocumentNode<CreateUploadMutation, Exact<{
|
|
972
|
+
filename: Scalars['String'];
|
|
973
|
+
fileSize: Scalars['Int'];
|
|
974
|
+
checksum: Scalars['String'];
|
|
975
|
+
mimeType: Scalars['String'];
|
|
740
976
|
}>>;
|
|
741
977
|
export declare const SubmissionsDocument: DocumentNode<SubmissionsQuery, Exact<{
|
|
742
978
|
first?: InputMaybe<number> | undefined;
|