@promoboxx/graphql-gateway-types 1.761.0 → 1.763.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -326,6 +326,21 @@ export type AdChildAttachment = {
326
326
  url?: Maybe<Scalars['String']['output']>;
327
327
  };
328
328
 
329
+ export type AdChildAttachmentInput = {
330
+ allow_call_to_action?: InputMaybe<Scalars['Boolean']['input']>;
331
+ allow_url_override?: InputMaybe<Scalars['Boolean']['input']>;
332
+ call_to_action?: InputMaybe<CallToActionInput>;
333
+ created_at?: InputMaybe<Scalars['String']['input']>;
334
+ description?: InputMaybe<Scalars['String']['input']>;
335
+ link?: InputMaybe<UpdateLink>;
336
+ media?: InputMaybe<UpdateMedia>;
337
+ message?: InputMaybe<Scalars['String']['input']>;
338
+ multi_share_end_card?: InputMaybe<Scalars['Boolean']['input']>;
339
+ multi_share_optimized?: InputMaybe<Scalars['Boolean']['input']>;
340
+ name?: InputMaybe<Scalars['String']['input']>;
341
+ updated_at?: InputMaybe<Scalars['String']['input']>;
342
+ };
343
+
329
344
  export type AdCreativeTemplateParams = {
330
345
  facebook_page_id?: InputMaybe<Scalars['ID']['input']>;
331
346
  retailer_id: Scalars['ID']['input'];
@@ -368,6 +383,13 @@ export type AdSettings = {
368
383
  mobile?: Maybe<Scalars['String']['output']>;
369
384
  };
370
385
 
386
+ export type AdTemplate = {
387
+ __typename?: 'AdTemplate';
388
+ adcreative_template_id?: Maybe<Scalars['ID']['output']>;
389
+ adset_template_id?: Maybe<Scalars['ID']['output']>;
390
+ id: Scalars['ID']['output'];
391
+ };
392
+
371
393
  export type AdcreativeTemplate = {
372
394
  __typename?: 'AdcreativeTemplate';
373
395
  allow_call_to_action_override?: Maybe<Scalars['Boolean']['output']>;
@@ -1170,6 +1192,11 @@ export type CallToAction = {
1170
1192
  link?: Maybe<Link>;
1171
1193
  };
1172
1194
 
1195
+ export type CallToActionInput = {
1196
+ cta_type: Scalars['String']['input'];
1197
+ link: UpdateLink;
1198
+ };
1199
+
1173
1200
  export type CallToActionItem = {
1174
1201
  __typename?: 'CallToActionItem';
1175
1202
  code?: Maybe<Scalars['String']['output']>;
@@ -1499,8 +1526,11 @@ export type CancelContractData = {
1499
1526
 
1500
1527
  export type ChannelCampaign = {
1501
1528
  __typename?: 'ChannelCampaign';
1529
+ ad_account_id?: Maybe<Scalars['String']['output']>;
1502
1530
  ad_set_templates?: Maybe<Array<AdsetTemplate>>;
1503
1531
  adcreative_templates?: Maybe<Array<AdcreativeTemplate>>;
1532
+ ads?: Maybe<Array<AdTemplate>>;
1533
+ brand_id?: Maybe<Scalars['ID']['output']>;
1504
1534
  id: Scalars['ID']['output'];
1505
1535
  objective?: Maybe<AdvertisingObjective>;
1506
1536
  special_ad_categories: Array<SpecialAdCategories>;
@@ -1943,6 +1973,27 @@ export type CreateAdCampaignResponse = {
1943
1973
  campaign_id: Scalars['ID']['output'];
1944
1974
  };
1945
1975
 
1976
+ export type CreateAdCreativeTemplateParams = {
1977
+ allow_call_to_action_override?: InputMaybe<Scalars['Boolean']['input']>;
1978
+ allow_url_override?: InputMaybe<Scalars['Boolean']['input']>;
1979
+ brand_id: Scalars['ID']['input'];
1980
+ creative: UpdateCreative;
1981
+ creative_type: Scalars['String']['input'];
1982
+ };
1983
+
1984
+ export type CreateAdSetTemplateParams = {
1985
+ brand_id: Scalars['ID']['input'];
1986
+ channel_campaign_id: Scalars['ID']['input'];
1987
+ optimization_goal?: InputMaybe<Scalars['String']['input']>;
1988
+ targeting?: InputMaybe<TargetingInput>;
1989
+ };
1990
+
1991
+ export type CreateAdTemplateParams = {
1992
+ ad_set_template_id: Scalars['ID']['input'];
1993
+ adcreative_template_id: Scalars['ID']['input'];
1994
+ brand_id: Scalars['ID']['input'];
1995
+ };
1996
+
1946
1997
  export type CreateAutomationInput = {
1947
1998
  automationableId?: InputMaybe<Scalars['ID']['input']>;
1948
1999
  automationableType?: InputMaybe<Scalars['String']['input']>;
@@ -4276,6 +4327,12 @@ export type ImageCrops = {
4276
4327
  right_bottom?: Maybe<Array<Scalars['Int']['output']>>;
4277
4328
  };
4278
4329
 
4330
+ export type ImageCropsListInput = {
4331
+ crop_name: Scalars['String']['input'];
4332
+ left_top: Array<Scalars['Int']['input']>;
4333
+ right_bottom: Array<Scalars['Int']['input']>;
4334
+ };
4335
+
4279
4336
  export type Import = {
4280
4337
  __typename?: 'Import';
4281
4338
  brand_id?: Maybe<Scalars['ID']['output']>;
@@ -4397,8 +4454,15 @@ export type Int_Comparison_Exp = {
4397
4454
 
4398
4455
  export type Interests = {
4399
4456
  __typename?: 'Interests';
4457
+ audience_size?: Maybe<Scalars['Int']['output']>;
4400
4458
  id: Scalars['ID']['output'];
4401
4459
  name?: Maybe<Scalars['String']['output']>;
4460
+ path?: Maybe<Array<Scalars['String']['output']>>;
4461
+ };
4462
+
4463
+ export type InterestsInput = {
4464
+ id?: InputMaybe<Scalars['ID']['input']>;
4465
+ name: Scalars['String']['input'];
4402
4466
  };
4403
4467
 
4404
4468
  export type InternalStats = {
@@ -5022,6 +5086,9 @@ export type Mutation = {
5022
5086
  createAdAutomation?: Maybe<AdAutomation>;
5023
5087
  createAdAutomations?: Maybe<Array<AdAutomation>>;
5024
5088
  createAdCampaign?: Maybe<CreateAdCampaignResponse>;
5089
+ createAdCreativeTemplate?: Maybe<CreateAdCreativeTemplateResponse>;
5090
+ createAdSetTemplate?: Maybe<Scalars['ID']['output']>;
5091
+ createAdTemplate?: Maybe<Scalars['ID']['output']>;
5025
5092
  createAutomation?: Maybe<Automation>;
5026
5093
  createAutomations?: Maybe<Array<Automation>>;
5027
5094
  createBrandRequest: BrandRequest;
@@ -5328,6 +5395,7 @@ export type Mutation = {
5328
5395
  updateAdAutomation?: Maybe<AdAutomation>;
5329
5396
  updateAdAutomations?: Maybe<Array<AdAutomation>>;
5330
5397
  updateAdCreativeTemplate?: Maybe<Scalars['ID']['output']>;
5398
+ updateAdSetTemplate?: Maybe<Scalars['ID']['output']>;
5331
5399
  updateAlert: Alert;
5332
5400
  updateAlerts: Array<Alert>;
5333
5401
  updateAutomation?: Maybe<UpdateAutomationResponse>;
@@ -5728,6 +5796,25 @@ export type MutationCreateAdCampaignArgs = {
5728
5796
  };
5729
5797
 
5730
5798
 
5799
+ /** mutation root */
5800
+ export type MutationCreateAdCreativeTemplateArgs = {
5801
+ params: CreateAdCreativeTemplateParams;
5802
+ };
5803
+
5804
+
5805
+ /** mutation root */
5806
+ export type MutationCreateAdSetTemplateArgs = {
5807
+ brand_id: Scalars['ID']['input'];
5808
+ params: CreateAdSetTemplateParams;
5809
+ };
5810
+
5811
+
5812
+ /** mutation root */
5813
+ export type MutationCreateAdTemplateArgs = {
5814
+ params: CreateAdTemplateParams;
5815
+ };
5816
+
5817
+
5731
5818
  /** mutation root */
5732
5819
  export type MutationCreateAutomationArgs = {
5733
5820
  automation: CreateAutomationInput;
@@ -7097,6 +7184,14 @@ export type MutationUpdateAdCreativeTemplateArgs = {
7097
7184
  };
7098
7185
 
7099
7186
 
7187
+ /** mutation root */
7188
+ export type MutationUpdateAdSetTemplateArgs = {
7189
+ ad_set_template_id: Scalars['ID']['input'];
7190
+ brand_id: Scalars['ID']['input'];
7191
+ params: UpdateAdSetTemplateParams;
7192
+ };
7193
+
7194
+
7100
7195
  /** mutation root */
7101
7196
  export type MutationUpdateAlertArgs = {
7102
7197
  params: UpdateAlertParams;
@@ -8335,6 +8430,7 @@ export type Query = {
8335
8430
  */
8336
8431
  getRetailersBulk?: Maybe<Array<Retailer>>;
8337
8432
  getRetailersBulkPaginated?: Maybe<GetRetailerBulkPaginatedResponse>;
8433
+ getSearchInterests?: Maybe<Array<Interests>>;
8338
8434
  getShare: Share;
8339
8435
  getShareSetting: ShareSetting;
8340
8436
  getShareSettingRetailer: ShareSetting;
@@ -9401,6 +9497,11 @@ export type QueryGetRetailersBulkPaginatedArgs = {
9401
9497
  };
9402
9498
 
9403
9499
 
9500
+ export type QueryGetSearchInterestsArgs = {
9501
+ params: SearchInterestsParams;
9502
+ };
9503
+
9504
+
9404
9505
  export type QueryGetShareArgs = {
9405
9506
  params?: InputMaybe<ShareParams>;
9406
9507
  shareId: Scalars['ID']['input'];
@@ -10251,6 +10352,10 @@ export type SalespersonStats = {
10251
10352
  retailerAssignmentRatio?: Maybe<Chart>;
10252
10353
  };
10253
10354
 
10355
+ export type SearchInterestsParams = {
10356
+ query: Scalars['String']['input'];
10357
+ };
10358
+
10254
10359
  export type SearchUserResponse = {
10255
10360
  __typename?: 'SearchUserResponse';
10256
10361
  data: Array<User>;
@@ -11759,6 +11864,28 @@ export type Targeting = {
11759
11864
  messenger_positions?: Maybe<Array<Scalars['String']['output']>>;
11760
11865
  optimization_goal?: Maybe<OptimizationGoal>;
11761
11866
  platforms?: Maybe<Array<Scalars['String']['output']>>;
11867
+ targeting_automation?: Maybe<TargetingAutomation>;
11868
+ };
11869
+
11870
+ export type TargetingAutomation = {
11871
+ __typename?: 'TargetingAutomation';
11872
+ advantage_audience?: Maybe<Scalars['Int']['output']>;
11873
+ };
11874
+
11875
+ export type TargetingAutomationInput = {
11876
+ advantage_audience?: InputMaybe<Scalars['Int']['input']>;
11877
+ };
11878
+
11879
+ export type TargetingInput = {
11880
+ age_max?: InputMaybe<Scalars['Int']['input']>;
11881
+ age_min?: InputMaybe<Scalars['Int']['input']>;
11882
+ facebook_positions?: InputMaybe<Array<Scalars['String']['input']>>;
11883
+ genders?: InputMaybe<Array<Scalars['Int']['input']>>;
11884
+ instagram_positions?: InputMaybe<Array<Scalars['String']['input']>>;
11885
+ interests?: InputMaybe<Array<InterestsInput>>;
11886
+ messenger_positions?: InputMaybe<Array<Scalars['String']['input']>>;
11887
+ platforms?: InputMaybe<Array<Scalars['String']['input']>>;
11888
+ targeting_automation?: InputMaybe<TargetingAutomationInput>;
11762
11889
  };
11763
11890
 
11764
11891
  export type Thumbnail = {
@@ -11928,6 +12055,13 @@ export type UpdateAdCreativeTemplateParams = {
11928
12055
  creative_type: Scalars['String']['input'];
11929
12056
  };
11930
12057
 
12058
+ export type UpdateAdSetTemplateParams = {
12059
+ brand_id: Scalars['ID']['input'];
12060
+ channel_campaign_id: Scalars['ID']['input'];
12061
+ optimization_goal?: InputMaybe<Scalars['String']['input']>;
12062
+ targeting?: InputMaybe<TargetingInput>;
12063
+ };
12064
+
11931
12065
  export type UpdateAlertParams = {
11932
12066
  status: AlertStatus;
11933
12067
  };
@@ -12072,7 +12206,8 @@ export type UpdateContractData = {
12072
12206
  export type UpdateCreative = {
12073
12207
  allow_call_to_action?: InputMaybe<Scalars['Boolean']['input']>;
12074
12208
  allow_url_override?: InputMaybe<Scalars['Boolean']['input']>;
12075
- call_to_action?: InputMaybe<Scalars['String']['input']>;
12209
+ call_to_action?: InputMaybe<CallToActionInput>;
12210
+ child_attachments?: InputMaybe<Array<AdChildAttachmentInput>>;
12076
12211
  created_at?: InputMaybe<Scalars['String']['input']>;
12077
12212
  description?: InputMaybe<Scalars['String']['input']>;
12078
12213
  link?: InputMaybe<UpdateLink>;
@@ -12156,6 +12291,7 @@ export type UpdateLocationInput = {
12156
12291
  };
12157
12292
 
12158
12293
  export type UpdateMedia = {
12294
+ image_crop_list?: InputMaybe<Array<ImageCropsListInput>>;
12159
12295
  image_crops?: InputMaybe<UpdateImageCrops>;
12160
12296
  media_type?: InputMaybe<Scalars['String']['input']>;
12161
12297
  source_id: Scalars['ID']['input'];
@@ -13726,6 +13862,11 @@ export type Asset_Summary_Content_Ids_Variance_Order_By = {
13726
13862
  digital_asset_id?: InputMaybe<Order_By>;
13727
13863
  };
13728
13864
 
13865
+ export type CreateAdCreativeTemplateResponse = {
13866
+ __typename?: 'createAdCreativeTemplateResponse';
13867
+ id: Scalars['ID']['output'];
13868
+ };
13869
+
13729
13870
  /** ordering argument of a cursor */
13730
13871
  export type Cursor_Ordering =
13731
13872
  /** ascending ordering of the cursor */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promoboxx/graphql-gateway-types",
3
- "version": "1.761.0",
3
+ "version": "1.763.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/schema.graphql CHANGED
@@ -293,6 +293,21 @@ type AdChildAttachment {
293
293
  url: String
294
294
  }
295
295
 
296
+ input AdChildAttachmentInput {
297
+ allow_call_to_action: Boolean
298
+ allow_url_override: Boolean
299
+ call_to_action: CallToActionInput
300
+ created_at: String
301
+ description: String
302
+ link: UpdateLink
303
+ media: UpdateMedia
304
+ message: String
305
+ multi_share_end_card: Boolean
306
+ multi_share_optimized: Boolean
307
+ name: String
308
+ updated_at: String
309
+ }
310
+
296
311
  input AdCreativeTemplateParams {
297
312
  facebook_page_id: ID
298
313
  retailer_id: ID!
@@ -331,6 +346,12 @@ type AdSettings {
331
346
  mobile: String
332
347
  }
333
348
 
349
+ type AdTemplate {
350
+ adcreative_template_id: ID
351
+ adset_template_id: ID
352
+ id: ID!
353
+ }
354
+
334
355
  type AdcreativeTemplate {
335
356
  allow_call_to_action_override: Boolean
336
357
  allow_url_override: Boolean
@@ -1128,6 +1149,11 @@ type CallToAction {
1128
1149
  link: Link
1129
1150
  }
1130
1151
 
1152
+ input CallToActionInput {
1153
+ cta_type: String!
1154
+ link: UpdateLink!
1155
+ }
1156
+
1131
1157
  type CallToActionItem {
1132
1158
  code: String
1133
1159
  status: String
@@ -1427,8 +1453,11 @@ input CancelContractData {
1427
1453
  }
1428
1454
 
1429
1455
  type ChannelCampaign {
1456
+ ad_account_id: String
1430
1457
  ad_set_templates: [AdsetTemplate!]
1431
1458
  adcreative_templates: [AdcreativeTemplate!]
1459
+ ads: [AdTemplate!]
1460
+ brand_id: ID
1432
1461
  id: ID!
1433
1462
  objective: AdvertisingObjective
1434
1463
  special_ad_categories: [SpecialAdCategories!]!
@@ -1844,6 +1873,27 @@ type CreateAdCampaignResponse {
1844
1873
  campaign_id: ID!
1845
1874
  }
1846
1875
 
1876
+ input CreateAdCreativeTemplateParams {
1877
+ allow_call_to_action_override: Boolean
1878
+ allow_url_override: Boolean
1879
+ brand_id: ID!
1880
+ creative: UpdateCreative!
1881
+ creative_type: String!
1882
+ }
1883
+
1884
+ input CreateAdSetTemplateParams {
1885
+ brand_id: ID!
1886
+ channel_campaign_id: ID!
1887
+ optimization_goal: String
1888
+ targeting: TargetingInput
1889
+ }
1890
+
1891
+ input CreateAdTemplateParams {
1892
+ ad_set_template_id: ID!
1893
+ adcreative_template_id: ID!
1894
+ brand_id: ID!
1895
+ }
1896
+
1847
1897
  input CreateAutomationInput {
1848
1898
  automationableId: ID
1849
1899
  automationableType: String
@@ -4101,6 +4151,12 @@ type ImageCrops {
4101
4151
  right_bottom: [Int!]
4102
4152
  }
4103
4153
 
4154
+ input ImageCropsListInput {
4155
+ crop_name: String!
4156
+ left_top: [Int!]!
4157
+ right_bottom: [Int!]!
4158
+ }
4159
+
4104
4160
  type Import {
4105
4161
  brand_id: ID
4106
4162
  campaign_id: ID
@@ -4212,8 +4268,15 @@ input Int_comparison_exp {
4212
4268
  }
4213
4269
 
4214
4270
  type Interests {
4271
+ audience_size: Int
4215
4272
  id: ID!
4216
4273
  name: String
4274
+ path: [String!]
4275
+ }
4276
+
4277
+ input InterestsInput {
4278
+ id: ID
4279
+ name: String!
4217
4280
  }
4218
4281
 
4219
4282
  type InternalStats {
@@ -4815,6 +4878,9 @@ type Mutation {
4815
4878
  createAdAutomation(automation: CreateAdAutomationInput!): AdAutomation
4816
4879
  createAdAutomations(params: [CreateAdAutomationsInput!]!): [AdAutomation!]
4817
4880
  createAdCampaign(params: CreateAdCampaignInput!): CreateAdCampaignResponse
4881
+ createAdCreativeTemplate(params: CreateAdCreativeTemplateParams!): createAdCreativeTemplateResponse
4882
+ createAdSetTemplate(brand_id: ID!, params: CreateAdSetTemplateParams!): ID
4883
+ createAdTemplate(params: CreateAdTemplateParams!): ID
4818
4884
  createAutomation(automation: CreateAutomationInput!, retailerId: ID!): Automation
4819
4885
  createAutomations(params: [CreateAutomationsInput!]!): [Automation!]
4820
4886
  createBrandRequest(brand_request: CreateBrandRequestBrandRequest!, fields: [String!]): BrandRequest!
@@ -5697,6 +5763,7 @@ type Mutation {
5697
5763
  updateAdAutomation(automation: UpdateAdAutomationInput!, automationId: ID!, retailerId: ID!): AdAutomation
5698
5764
  updateAdAutomations(params: [UpdateAdAutomationsInput!]!): [AdAutomation!]
5699
5765
  updateAdCreativeTemplate(params: UpdateAdCreativeTemplateParams!): ID
5766
+ updateAdSetTemplate(ad_set_template_id: ID!, brand_id: ID!, params: UpdateAdSetTemplateParams!): ID
5700
5767
  updateAlert(params: UpdateAlertParams!, resourceId: ID!): Alert!
5701
5768
  updateAlerts(params: UpdateAlertsParams!): [Alert!]!
5702
5769
  updateAutomation(automationId: ID!, state: AutomationState!): UpdateAutomationResponse
@@ -7596,6 +7663,7 @@ type Query {
7596
7663
  """Get retailer information form a list of ids"""
7597
7664
  getRetailersBulk(params: GetRetailersBulkParams!): [Retailer!] @deprecated(reason: "Use getRetailersBulkPaginated instead")
7598
7665
  getRetailersBulkPaginated(params: GetRetailersBulkParams!): GetRetailerBulkPaginatedResponse
7666
+ getSearchInterests(params: SearchInterestsParams!): [Interests!]
7599
7667
  getShare(params: ShareParams, shareId: ID!, shareType: ShareTypeParam!): Share!
7600
7668
  getShareSetting(fields: [String!], id: ID!): ShareSetting!
7601
7669
  getShareSettingRetailer(fields: [String!], id: ID!, retailer_id: ID!): ShareSetting!
@@ -8633,6 +8701,10 @@ type SalespersonStats {
8633
8701
  retailerAssignmentRatio: Chart
8634
8702
  }
8635
8703
 
8704
+ input SearchInterestsParams {
8705
+ query: String!
8706
+ }
8707
+
8636
8708
  type SearchUserResponse {
8637
8709
  data: [User!]!
8638
8710
  paging: Paging!
@@ -10580,6 +10652,27 @@ type Targeting {
10580
10652
  messenger_positions: [String!]
10581
10653
  optimization_goal: OptimizationGoal
10582
10654
  platforms: [String!]
10655
+ targeting_automation: TargetingAutomation
10656
+ }
10657
+
10658
+ type TargetingAutomation {
10659
+ advantage_audience: Int
10660
+ }
10661
+
10662
+ input TargetingAutomationInput {
10663
+ advantage_audience: Int
10664
+ }
10665
+
10666
+ input TargetingInput {
10667
+ age_max: Int
10668
+ age_min: Int
10669
+ facebook_positions: [String!]
10670
+ genders: [Int!]
10671
+ instagram_positions: [String!]
10672
+ interests: [InterestsInput!]
10673
+ messenger_positions: [String!]
10674
+ platforms: [String!]
10675
+ targeting_automation: TargetingAutomationInput
10583
10676
  }
10584
10677
 
10585
10678
  input Thumbnail {
@@ -10744,6 +10837,13 @@ input UpdateAdCreativeTemplateParams {
10744
10837
  creative_type: String!
10745
10838
  }
10746
10839
 
10840
+ input UpdateAdSetTemplateParams {
10841
+ brand_id: ID!
10842
+ channel_campaign_id: ID!
10843
+ optimization_goal: String
10844
+ targeting: TargetingInput
10845
+ }
10846
+
10747
10847
  input UpdateAlertParams {
10748
10848
  status: AlertStatus!
10749
10849
  }
@@ -10884,7 +10984,8 @@ input UpdateContractData {
10884
10984
  input UpdateCreative {
10885
10985
  allow_call_to_action: Boolean
10886
10986
  allow_url_override: Boolean
10887
- call_to_action: String
10987
+ call_to_action: CallToActionInput
10988
+ child_attachments: [AdChildAttachmentInput!]
10888
10989
  created_at: String
10889
10990
  description: String
10890
10991
  link: UpdateLink
@@ -10968,6 +11069,7 @@ input UpdateLocationInput {
10968
11069
  }
10969
11070
 
10970
11071
  input UpdateMedia {
11072
+ image_crop_list: [ImageCropsListInput!]
10971
11073
  image_crops: UpdateImageCrops
10972
11074
  media_type: String
10973
11075
  source_id: ID!
@@ -12740,6 +12842,10 @@ input asset_summary_content_ids_variance_order_by {
12740
12842
  digital_asset_id: order_by
12741
12843
  }
12742
12844
 
12845
+ type createAdCreativeTemplateResponse {
12846
+ id: ID!
12847
+ }
12848
+
12743
12849
  """ordering argument of a cursor"""
12744
12850
  enum cursor_ordering {
12745
12851
  """ascending ordering of the cursor"""