Skip to content

Commit dfb2d1a

Browse files
Pablo Vazquezlukas-reineke
authored andcommitted
T-603 Add syncCatalog mutation and campaignTemplatesWithCurrentGCPX
1 parent 514db29 commit dfb2d1a

File tree

8 files changed

+353
-17
lines changed

8 files changed

+353
-17
lines changed

index.node.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.web.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/generated/fields.d.ts

Lines changed: 27 additions & 10 deletions
Large diffs are not rendered by default.

src/generated/fields.ts

Lines changed: 63 additions & 0 deletions
Large diffs are not rendered by default.

src/generated/graphql.d.ts

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ export declare type Catalog = {
261261
remoteState: Scalars['JSONObject'];
262262
/** Facebook data feed id referenced by the product catalog */
263263
dataFeedId?: Maybe<Scalars['String']>;
264+
/** Facebook app and pixel ids associated to the product catalog */
265+
externalEventSourceIds: Array<Scalars['String']>;
264266
/** Validation errors of the product catalog */
265267
errors?: Maybe<Array<Scalars['JSONObject']>>;
266268
/** Warnings of the product catalog */
@@ -292,6 +294,8 @@ export declare type CatalogConnection = {
292294
export declare type CatalogCreateInput = {
293295
/** Name of the product catalog */
294296
name: Scalars['NonEmptyString'];
297+
/** Facebook app and pixel ids associated to the product catalog */
298+
externalEventSourceIds?: Maybe<Array<Scalars['String']>>;
295299
/** Media channel id referenced by the product catalog */
296300
mediaChannelId: Scalars['ObjectId'];
297301
/** Category of the products referenced by the catalog */
@@ -310,6 +314,11 @@ export declare type CatalogImportInput = {
310314
/** Id of the product catalog on the related platform */
311315
remoteId: Scalars['String'];
312316
};
317+
/** Product catalog sync input data */
318+
export declare type CatalogSyncInput = {
319+
/** The desired state to modify during sync operation. */
320+
reconcileState?: Maybe<ReconcileStateEnum>;
321+
};
313322
/** Category of the products referenced by the product catalog */
314323
export declare enum CatalogType {
315324
Bookable = "bookable",
@@ -327,6 +336,8 @@ export declare enum CatalogType {
327336
export declare type CatalogUpdateInput = {
328337
/** Name of the product catalog */
329338
name?: Maybe<Scalars['NonEmptyString']>;
339+
/** Facebook app and pixel ids associated to the product catalog */
340+
externalEventSourceIds?: Maybe<Array<Scalars['String']>>;
330341
};
331342
/**
332343
* Creative font is a collection of font properties and parameters associated with
@@ -1292,6 +1303,8 @@ export declare type Mutation = {
12921303
updateCatalog: Catalog;
12931304
/** Updates a collection of product catalogs */
12941305
updateCatalogs: CatalogConnection;
1306+
/** Attempt synchronization of the product catalog with mediaChannel platforms, removing all errors on success */
1307+
syncCatalog: Catalog;
12951308
/**
12961309
* Marks a product catalog and all its associated products by the catalog's given
12971310
* id as DELETED. The catalog resource will not be deleted on the remote platform
@@ -1442,6 +1455,10 @@ export declare type MutationUpdateCatalogsArgs = {
14421455
showDeleted?: Maybe<Scalars['Boolean']>;
14431456
input: CatalogUpdateInput;
14441457
};
1458+
export declare type MutationSyncCatalogArgs = {
1459+
input?: Maybe<CatalogSyncInput>;
1460+
id: Scalars['ObjectId'];
1461+
};
14451462
export declare type MutationDeleteCatalogArgs = {
14461463
id: Scalars['ObjectId'];
14471464
};
@@ -1727,6 +1744,8 @@ export declare type Notification = {
17271744
severity: Notification_Severity;
17281745
/** Code of the notification */
17291746
code: Notification_Code;
1747+
/** The source of the notification */
1748+
source: Scalars['String'];
17301749
/** Resource related to the notification */
17311750
resource: NotificationResource;
17321751
};
@@ -1948,6 +1967,8 @@ export declare type Query = {
19481967
campaignTemplate: CampaignTemplate;
19491968
/** Returns a collection of campaign templates */
19501969
campaignTemplates: CampaignTemplateConnection;
1970+
/** Returns a collection of campaign templates that have a current GCPX */
1971+
campaignTemplatesWithCurrentGCPX: CampaignTemplateConnection;
19511972
/** Returns a single product catalog identified by a given id */
19521973
catalog: Catalog;
19531974
/** Returns a collection of product catalogs */
@@ -2027,6 +2048,15 @@ export declare type QueryCampaignTemplatesArgs = {
20272048
filter?: Maybe<Scalars['FilterInput']>;
20282049
showDeleted?: Maybe<Scalars['Boolean']>;
20292050
};
2051+
export declare type QueryCampaignTemplatesWithCurrentGcpxArgs = {
2052+
first?: Maybe<Scalars['Int']>;
2053+
last?: Maybe<Scalars['Int']>;
2054+
after?: Maybe<Scalars['String']>;
2055+
before?: Maybe<Scalars['String']>;
2056+
sort?: Maybe<SortInput>;
2057+
filter?: Maybe<Scalars['FilterInput']>;
2058+
showDeleted?: Maybe<Scalars['Boolean']>;
2059+
};
20302060
export declare type QueryCatalogArgs = {
20312061
id: Scalars['ObjectId'];
20322062
};
@@ -2705,6 +2735,8 @@ export declare type ResolversTypes = {
27052735
CatalogCreateInput: CatalogCreateInput;
27062736
CatalogImportInput: CatalogImportInput;
27072737
CatalogUpdateInput: CatalogUpdateInput;
2738+
CatalogSyncInput: CatalogSyncInput;
2739+
ReconcileStateEnum: ReconcileStateEnum;
27082740
Deletion: ResolverTypeWrapper<Deletion>;
27092741
CreativeFontCreateInput: CreativeFontCreateInput;
27102742
CreativeFontUpdateInput: CreativeFontUpdateInput;
@@ -2719,7 +2751,6 @@ export declare type ResolversTypes = {
27192751
MarketingCampaignInput: MarketingCampaignInput;
27202752
MarketingCampaignUpdateInput: MarketingCampaignUpdateInput;
27212753
MarketingCampaignSyncInput: MarketingCampaignSyncInput;
2722-
ReconcileStateEnum: ReconcileStateEnum;
27232754
MarketplaceInput: MarketplaceInput;
27242755
MarketplaceUpdateInput: MarketplaceUpdateInput;
27252756
MediaChannelCreateInput: MediaChannelCreateInput;
@@ -2844,6 +2875,8 @@ export declare type ResolversParentTypes = {
28442875
CatalogCreateInput: CatalogCreateInput;
28452876
CatalogImportInput: CatalogImportInput;
28462877
CatalogUpdateInput: CatalogUpdateInput;
2878+
CatalogSyncInput: CatalogSyncInput;
2879+
ReconcileStateEnum: ReconcileStateEnum;
28472880
Deletion: Deletion;
28482881
CreativeFontCreateInput: CreativeFontCreateInput;
28492882
CreativeFontUpdateInput: CreativeFontUpdateInput;
@@ -2858,7 +2891,6 @@ export declare type ResolversParentTypes = {
28582891
MarketingCampaignInput: MarketingCampaignInput;
28592892
MarketingCampaignUpdateInput: MarketingCampaignUpdateInput;
28602893
MarketingCampaignSyncInput: MarketingCampaignSyncInput;
2861-
ReconcileStateEnum: ReconcileStateEnum;
28622894
MarketplaceInput: MarketplaceInput;
28632895
MarketplaceUpdateInput: MarketplaceUpdateInput;
28642896
MediaChannelCreateInput: MediaChannelCreateInput;
@@ -2926,6 +2958,7 @@ export declare type CatalogResolvers<ContextType = any, ParentType extends Resol
29262958
systemStatus?: Resolver<ResolversTypes['SystemStatus'], ParentType, ContextType>;
29272959
remoteState?: Resolver<ResolversTypes['JSONObject'], ParentType, ContextType>;
29282960
dataFeedId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
2961+
externalEventSourceIds?: Resolver<Array<ResolversTypes['String']>, ParentType, ContextType>;
29292962
errors?: Resolver<Maybe<Array<ResolversTypes['JSONObject']>>, ParentType, ContextType>;
29302963
warnings?: Resolver<Maybe<Array<ResolversTypes['JSONObject']>>, ParentType, ContextType>;
29312964
mediaChannel?: Resolver<ResolversTypes['MediaChannel'], ParentType, ContextType>;
@@ -3249,6 +3282,7 @@ export declare type MutationResolvers<ContextType = any, ParentType extends Reso
32493282
importCatalog?: Resolver<ResolversTypes['Catalog'], ParentType, ContextType, RequireFields<MutationImportCatalogArgs, 'input'>>;
32503283
updateCatalog?: Resolver<ResolversTypes['Catalog'], ParentType, ContextType, RequireFields<MutationUpdateCatalogArgs, 'input' | 'id'>>;
32513284
updateCatalogs?: Resolver<ResolversTypes['CatalogConnection'], ParentType, ContextType, RequireFields<MutationUpdateCatalogsArgs, 'showDeleted' | 'input'>>;
3285+
syncCatalog?: Resolver<ResolversTypes['Catalog'], ParentType, ContextType, RequireFields<MutationSyncCatalogArgs, 'id'>>;
32523286
deleteCatalog?: Resolver<ResolversTypes['Deletion'], ParentType, ContextType, RequireFields<MutationDeleteCatalogArgs, 'id'>>;
32533287
createCreativeFont?: Resolver<ResolversTypes['CreativeFont'], ParentType, ContextType, RequireFields<MutationCreateCreativeFontArgs, 'input'>>;
32543288
updateCreativeFont?: Resolver<ResolversTypes['CreativeFont'], ParentType, ContextType, RequireFields<MutationUpdateCreativeFontArgs, 'input' | 'id'>>;
@@ -3319,6 +3353,7 @@ export declare type NotificationResolvers<ContextType = any, ParentType extends
33193353
status?: Resolver<ResolversTypes['NOTIFICATION_STATUS'], ParentType, ContextType>;
33203354
severity?: Resolver<ResolversTypes['NOTIFICATION_SEVERITY'], ParentType, ContextType>;
33213355
code?: Resolver<ResolversTypes['NOTIFICATION_CODE'], ParentType, ContextType>;
3356+
source?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
33223357
resource?: Resolver<ResolversTypes['NotificationResource'], ParentType, ContextType>;
33233358
};
33243359
export declare type NotificationConnectionResolvers<ContextType = any, ParentType extends ResolversParentTypes['NotificationConnection'] = ResolversParentTypes['NotificationConnection']> = {
@@ -3396,6 +3431,7 @@ export declare type ProductEdgeResolvers<ContextType = any, ParentType extends R
33963431
export declare type QueryResolvers<ContextType = any, ParentType extends ResolversParentTypes['Query'] = ResolversParentTypes['Query']> = {
33973432
campaignTemplate?: Resolver<ResolversTypes['CampaignTemplate'], ParentType, ContextType, RequireFields<QueryCampaignTemplateArgs, 'id'>>;
33983433
campaignTemplates?: Resolver<ResolversTypes['CampaignTemplateConnection'], ParentType, ContextType, RequireFields<QueryCampaignTemplatesArgs, 'showDeleted'>>;
3434+
campaignTemplatesWithCurrentGCPX?: Resolver<ResolversTypes['CampaignTemplateConnection'], ParentType, ContextType, RequireFields<QueryCampaignTemplatesWithCurrentGcpxArgs, 'showDeleted'>>;
33993435
catalog?: Resolver<ResolversTypes['Catalog'], ParentType, ContextType, RequireFields<QueryCatalogArgs, 'id'>>;
34003436
catalogs?: Resolver<ResolversTypes['CatalogConnection'], ParentType, ContextType, RequireFields<QueryCatalogsArgs, 'showDeleted'>>;
34013437
creativeFont?: Resolver<ResolversTypes['CreativeFont'], ParentType, ContextType, RequireFields<QueryCreativeFontArgs, 'id'>>;

src/generated/graphql.ts

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,8 @@ export type Catalog = {
272272
remoteState: Scalars['JSONObject'];
273273
/** Facebook data feed id referenced by the product catalog */
274274
dataFeedId?: Maybe<Scalars['String']>;
275+
/** Facebook app and pixel ids associated to the product catalog */
276+
externalEventSourceIds: Array<Scalars['String']>;
275277
/** Validation errors of the product catalog */
276278
errors?: Maybe<Array<Scalars['JSONObject']>>;
277279
/** Warnings of the product catalog */
@@ -306,6 +308,8 @@ export type CatalogConnection = {
306308
export type CatalogCreateInput = {
307309
/** Name of the product catalog */
308310
name: Scalars['NonEmptyString'];
311+
/** Facebook app and pixel ids associated to the product catalog */
312+
externalEventSourceIds?: Maybe<Array<Scalars['String']>>;
309313
/** Media channel id referenced by the product catalog */
310314
mediaChannelId: Scalars['ObjectId'];
311315
/** Category of the products referenced by the catalog */
@@ -327,6 +331,12 @@ export type CatalogImportInput = {
327331
remoteId: Scalars['String'];
328332
};
329333

334+
/** Product catalog sync input data */
335+
export type CatalogSyncInput = {
336+
/** The desired state to modify during sync operation. */
337+
reconcileState?: Maybe<ReconcileStateEnum>;
338+
};
339+
330340
/** Category of the products referenced by the product catalog */
331341
export enum CatalogType {
332342
Bookable = 'bookable',
@@ -345,6 +355,8 @@ export enum CatalogType {
345355
export type CatalogUpdateInput = {
346356
/** Name of the product catalog */
347357
name?: Maybe<Scalars['NonEmptyString']>;
358+
/** Facebook app and pixel ids associated to the product catalog */
359+
externalEventSourceIds?: Maybe<Array<Scalars['String']>>;
348360
};
349361

350362
/**
@@ -1385,6 +1397,8 @@ export type Mutation = {
13851397
updateCatalog: Catalog;
13861398
/** Updates a collection of product catalogs */
13871399
updateCatalogs: CatalogConnection;
1400+
/** Attempt synchronization of the product catalog with mediaChannel platforms, removing all errors on success */
1401+
syncCatalog: Catalog;
13881402
/**
13891403
* Marks a product catalog and all its associated products by the catalog's given
13901404
* id as DELETED. The catalog resource will not be deleted on the remote platform
@@ -1542,6 +1556,11 @@ export type MutationUpdateCatalogsArgs = {
15421556
input: CatalogUpdateInput;
15431557
};
15441558

1559+
export type MutationSyncCatalogArgs = {
1560+
input?: Maybe<CatalogSyncInput>;
1561+
id: Scalars['ObjectId'];
1562+
};
1563+
15451564
export type MutationDeleteCatalogArgs = {
15461565
id: Scalars['ObjectId'];
15471566
};
@@ -1884,6 +1903,8 @@ export type Notification = {
18841903
severity: Notification_Severity;
18851904
/** Code of the notification */
18861905
code: Notification_Code;
1906+
/** The source of the notification */
1907+
source: Scalars['String'];
18871908
/** Resource related to the notification */
18881909
resource: NotificationResource;
18891910
};
@@ -2129,6 +2150,8 @@ export type Query = {
21292150
campaignTemplate: CampaignTemplate;
21302151
/** Returns a collection of campaign templates */
21312152
campaignTemplates: CampaignTemplateConnection;
2153+
/** Returns a collection of campaign templates that have a current GCPX */
2154+
campaignTemplatesWithCurrentGCPX: CampaignTemplateConnection;
21322155
/** Returns a single product catalog identified by a given id */
21332156
catalog: Catalog;
21342157
/** Returns a collection of product catalogs */
@@ -2211,6 +2234,16 @@ export type QueryCampaignTemplatesArgs = {
22112234
showDeleted?: Maybe<Scalars['Boolean']>;
22122235
};
22132236

2237+
export type QueryCampaignTemplatesWithCurrentGcpxArgs = {
2238+
first?: Maybe<Scalars['Int']>;
2239+
last?: Maybe<Scalars['Int']>;
2240+
after?: Maybe<Scalars['String']>;
2241+
before?: Maybe<Scalars['String']>;
2242+
sort?: Maybe<SortInput>;
2243+
filter?: Maybe<Scalars['FilterInput']>;
2244+
showDeleted?: Maybe<Scalars['Boolean']>;
2245+
};
2246+
22142247
export type QueryCatalogArgs = {
22152248
id: Scalars['ObjectId'];
22162249
};
@@ -3036,6 +3069,8 @@ export type ResolversTypes = {
30363069
CatalogCreateInput: CatalogCreateInput;
30373070
CatalogImportInput: CatalogImportInput;
30383071
CatalogUpdateInput: CatalogUpdateInput;
3072+
CatalogSyncInput: CatalogSyncInput;
3073+
ReconcileStateEnum: ReconcileStateEnum;
30393074
Deletion: ResolverTypeWrapper<Deletion>;
30403075
CreativeFontCreateInput: CreativeFontCreateInput;
30413076
CreativeFontUpdateInput: CreativeFontUpdateInput;
@@ -3050,7 +3085,6 @@ export type ResolversTypes = {
30503085
MarketingCampaignInput: MarketingCampaignInput;
30513086
MarketingCampaignUpdateInput: MarketingCampaignUpdateInput;
30523087
MarketingCampaignSyncInput: MarketingCampaignSyncInput;
3053-
ReconcileStateEnum: ReconcileStateEnum;
30543088
MarketplaceInput: MarketplaceInput;
30553089
MarketplaceUpdateInput: MarketplaceUpdateInput;
30563090
MediaChannelCreateInput: MediaChannelCreateInput;
@@ -3180,6 +3214,8 @@ export type ResolversParentTypes = {
31803214
CatalogCreateInput: CatalogCreateInput;
31813215
CatalogImportInput: CatalogImportInput;
31823216
CatalogUpdateInput: CatalogUpdateInput;
3217+
CatalogSyncInput: CatalogSyncInput;
3218+
ReconcileStateEnum: ReconcileStateEnum;
31833219
Deletion: Deletion;
31843220
CreativeFontCreateInput: CreativeFontCreateInput;
31853221
CreativeFontUpdateInput: CreativeFontUpdateInput;
@@ -3194,7 +3230,6 @@ export type ResolversParentTypes = {
31943230
MarketingCampaignInput: MarketingCampaignInput;
31953231
MarketingCampaignUpdateInput: MarketingCampaignUpdateInput;
31963232
MarketingCampaignSyncInput: MarketingCampaignSyncInput;
3197-
ReconcileStateEnum: ReconcileStateEnum;
31983233
MarketplaceInput: MarketplaceInput;
31993234
MarketplaceUpdateInput: MarketplaceUpdateInput;
32003235
MediaChannelCreateInput: MediaChannelCreateInput;
@@ -3352,6 +3387,11 @@ export type CatalogResolvers<
33523387
ParentType,
33533388
ContextType
33543389
>;
3390+
externalEventSourceIds?: Resolver<
3391+
Array<ResolversTypes['String']>,
3392+
ParentType,
3393+
ContextType
3394+
>;
33553395
errors?: Resolver<
33563396
Maybe<Array<ResolversTypes['JSONObject']>>,
33573397
ParentType,
@@ -4359,6 +4399,12 @@ export type MutationResolvers<
43594399
ContextType,
43604400
RequireFields<MutationUpdateCatalogsArgs, 'showDeleted' | 'input'>
43614401
>;
4402+
syncCatalog?: Resolver<
4403+
ResolversTypes['Catalog'],
4404+
ParentType,
4405+
ContextType,
4406+
RequireFields<MutationSyncCatalogArgs, 'id'>
4407+
>;
43624408
deleteCatalog?: Resolver<
43634409
ResolversTypes['Deletion'],
43644410
ParentType,
@@ -4745,6 +4791,7 @@ export type NotificationResolvers<
47454791
ParentType,
47464792
ContextType
47474793
>;
4794+
source?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
47484795
resource?: Resolver<
47494796
ResolversTypes['NotificationResource'],
47504797
ParentType,
@@ -4977,6 +5024,12 @@ export type QueryResolvers<
49775024
ContextType,
49785025
RequireFields<QueryCampaignTemplatesArgs, 'showDeleted'>
49795026
>;
5027+
campaignTemplatesWithCurrentGCPX?: Resolver<
5028+
ResolversTypes['CampaignTemplateConnection'],
5029+
ParentType,
5030+
ContextType,
5031+
RequireFields<QueryCampaignTemplatesWithCurrentGcpxArgs, 'showDeleted'>
5032+
>;
49805033
catalog?: Resolver<
49815034
ResolversTypes['Catalog'],
49825035
ParentType,

0 commit comments

Comments
 (0)