@promoboxx/graphql-gateway-types 1.100.0 → 1.101.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.
@@ -78,13 +78,9 @@
78
78
  "description": null,
79
79
  "args": [],
80
80
  "type": {
81
- "kind": "NON_NULL",
82
- "name": null,
83
- "ofType": {
84
- "kind": "SCALAR",
85
- "name": "ID",
86
- "ofType": null
87
- }
81
+ "kind": "SCALAR",
82
+ "name": "ID",
83
+ "ofType": null
88
84
  },
89
85
  "isDeprecated": false,
90
86
  "deprecationReason": null
@@ -353,6 +349,18 @@
353
349
  "name": "AccessRequest",
354
350
  "description": null,
355
351
  "fields": [
352
+ {
353
+ "name": "brand",
354
+ "description": null,
355
+ "args": [],
356
+ "type": {
357
+ "kind": "OBJECT",
358
+ "name": "Brand",
359
+ "ofType": null
360
+ },
361
+ "isDeprecated": false,
362
+ "deprecationReason": null
363
+ },
356
364
  {
357
365
  "name": "created_at",
358
366
  "description": null,
@@ -413,6 +421,18 @@
413
421
  "isDeprecated": false,
414
422
  "deprecationReason": null
415
423
  },
424
+ {
425
+ "name": "requestable",
426
+ "description": null,
427
+ "args": [],
428
+ "type": {
429
+ "kind": "UNION",
430
+ "name": "AccessRequestRequestable",
431
+ "ofType": null
432
+ },
433
+ "isDeprecated": false,
434
+ "deprecationReason": null
435
+ },
416
436
  {
417
437
  "name": "requestable_id",
418
438
  "description": null,
@@ -437,6 +457,18 @@
437
457
  "isDeprecated": false,
438
458
  "deprecationReason": null
439
459
  },
460
+ {
461
+ "name": "requester",
462
+ "description": null,
463
+ "args": [],
464
+ "type": {
465
+ "kind": "OBJECT",
466
+ "name": "User",
467
+ "ofType": null
468
+ },
469
+ "isDeprecated": false,
470
+ "deprecationReason": null
471
+ },
440
472
  {
441
473
  "name": "requester_id",
442
474
  "description": null,
@@ -515,6 +547,27 @@
515
547
  "enumValues": null,
516
548
  "possibleTypes": null
517
549
  },
550
+ {
551
+ "kind": "UNION",
552
+ "name": "AccessRequestRequestable",
553
+ "description": null,
554
+ "fields": null,
555
+ "inputFields": null,
556
+ "interfaces": null,
557
+ "enumValues": null,
558
+ "possibleTypes": [
559
+ {
560
+ "kind": "OBJECT",
561
+ "name": "Retailer",
562
+ "ofType": null
563
+ },
564
+ {
565
+ "kind": "OBJECT",
566
+ "name": "RetailerAccount",
567
+ "ofType": null
568
+ }
569
+ ]
570
+ },
518
571
  {
519
572
  "kind": "UNION",
520
573
  "name": "Accessible",
@@ -15518,9 +15571,41 @@
15518
15571
  "isDeprecated": false,
15519
15572
  "deprecationReason": null
15520
15573
  },
15574
+ {
15575
+ "name": "accessible_type",
15576
+ "description": null,
15577
+ "type": {
15578
+ "kind": "NON_NULL",
15579
+ "name": null,
15580
+ "ofType": {
15581
+ "kind": "SCALAR",
15582
+ "name": "String",
15583
+ "ofType": null
15584
+ }
15585
+ },
15586
+ "defaultValue": null,
15587
+ "isDeprecated": false,
15588
+ "deprecationReason": null
15589
+ },
15521
15590
  {
15522
15591
  "name": "name",
15523
15592
  "description": null,
15593
+ "type": {
15594
+ "kind": "NON_NULL",
15595
+ "name": null,
15596
+ "ofType": {
15597
+ "kind": "SCALAR",
15598
+ "name": "String",
15599
+ "ofType": null
15600
+ }
15601
+ },
15602
+ "defaultValue": null,
15603
+ "isDeprecated": false,
15604
+ "deprecationReason": null
15605
+ },
15606
+ {
15607
+ "name": "recipient_email_address",
15608
+ "description": null,
15524
15609
  "type": {
15525
15610
  "kind": "SCALAR",
15526
15611
  "name": "String",
@@ -15529,6 +15614,42 @@
15529
15614
  "defaultValue": null,
15530
15615
  "isDeprecated": false,
15531
15616
  "deprecationReason": null
15617
+ },
15618
+ {
15619
+ "name": "recipient_user_id",
15620
+ "description": null,
15621
+ "type": {
15622
+ "kind": "SCALAR",
15623
+ "name": "ID",
15624
+ "ofType": null
15625
+ },
15626
+ "defaultValue": null,
15627
+ "isDeprecated": false,
15628
+ "deprecationReason": null
15629
+ },
15630
+ {
15631
+ "name": "sender_email_address_id",
15632
+ "description": null,
15633
+ "type": {
15634
+ "kind": "SCALAR",
15635
+ "name": "String",
15636
+ "ofType": null
15637
+ },
15638
+ "defaultValue": null,
15639
+ "isDeprecated": false,
15640
+ "deprecationReason": null
15641
+ },
15642
+ {
15643
+ "name": "sender_user_id",
15644
+ "description": null,
15645
+ "type": {
15646
+ "kind": "SCALAR",
15647
+ "name": "ID",
15648
+ "ofType": null
15649
+ },
15650
+ "defaultValue": null,
15651
+ "isDeprecated": false,
15652
+ "deprecationReason": null
15532
15653
  }
15533
15654
  ],
15534
15655
  "interfaces": null,
@@ -15562,6 +15683,97 @@
15562
15683
  "enumValues": null,
15563
15684
  "possibleTypes": null
15564
15685
  },
15686
+ {
15687
+ "kind": "INPUT_OBJECT",
15688
+ "name": "CreateAccessRequestInput",
15689
+ "description": null,
15690
+ "fields": null,
15691
+ "inputFields": [
15692
+ {
15693
+ "name": "message",
15694
+ "description": null,
15695
+ "type": {
15696
+ "kind": "NON_NULL",
15697
+ "name": null,
15698
+ "ofType": {
15699
+ "kind": "SCALAR",
15700
+ "name": "String",
15701
+ "ofType": null
15702
+ }
15703
+ },
15704
+ "defaultValue": null,
15705
+ "isDeprecated": false,
15706
+ "deprecationReason": null
15707
+ },
15708
+ {
15709
+ "name": "requestable_id",
15710
+ "description": null,
15711
+ "type": {
15712
+ "kind": "NON_NULL",
15713
+ "name": null,
15714
+ "ofType": {
15715
+ "kind": "SCALAR",
15716
+ "name": "ID",
15717
+ "ofType": null
15718
+ }
15719
+ },
15720
+ "defaultValue": null,
15721
+ "isDeprecated": false,
15722
+ "deprecationReason": null
15723
+ },
15724
+ {
15725
+ "name": "requestable_type",
15726
+ "description": null,
15727
+ "type": {
15728
+ "kind": "NON_NULL",
15729
+ "name": null,
15730
+ "ofType": {
15731
+ "kind": "SCALAR",
15732
+ "name": "String",
15733
+ "ofType": null
15734
+ }
15735
+ },
15736
+ "defaultValue": null,
15737
+ "isDeprecated": false,
15738
+ "deprecationReason": null
15739
+ },
15740
+ {
15741
+ "name": "requester_id",
15742
+ "description": null,
15743
+ "type": {
15744
+ "kind": "NON_NULL",
15745
+ "name": null,
15746
+ "ofType": {
15747
+ "kind": "SCALAR",
15748
+ "name": "ID",
15749
+ "ofType": null
15750
+ }
15751
+ },
15752
+ "defaultValue": null,
15753
+ "isDeprecated": false,
15754
+ "deprecationReason": null
15755
+ },
15756
+ {
15757
+ "name": "requester_name",
15758
+ "description": null,
15759
+ "type": {
15760
+ "kind": "NON_NULL",
15761
+ "name": null,
15762
+ "ofType": {
15763
+ "kind": "SCALAR",
15764
+ "name": "String",
15765
+ "ofType": null
15766
+ }
15767
+ },
15768
+ "defaultValue": null,
15769
+ "isDeprecated": false,
15770
+ "deprecationReason": null
15771
+ }
15772
+ ],
15773
+ "interfaces": null,
15774
+ "enumValues": null,
15775
+ "possibleTypes": null
15776
+ },
15565
15777
  {
15566
15778
  "kind": "INPUT_OBJECT",
15567
15779
  "name": "CreateAdAccountParams",
@@ -37963,6 +38175,39 @@
37963
38175
  "isDeprecated": false,
37964
38176
  "deprecationReason": null
37965
38177
  },
38178
+ {
38179
+ "name": "closeAccessInvitation",
38180
+ "description": null,
38181
+ "args": [
38182
+ {
38183
+ "name": "id",
38184
+ "description": null,
38185
+ "type": {
38186
+ "kind": "NON_NULL",
38187
+ "name": null,
38188
+ "ofType": {
38189
+ "kind": "SCALAR",
38190
+ "name": "ID",
38191
+ "ofType": null
38192
+ }
38193
+ },
38194
+ "defaultValue": null,
38195
+ "isDeprecated": false,
38196
+ "deprecationReason": null
38197
+ }
38198
+ ],
38199
+ "type": {
38200
+ "kind": "NON_NULL",
38201
+ "name": null,
38202
+ "ofType": {
38203
+ "kind": "SCALAR",
38204
+ "name": "ID",
38205
+ "ofType": null
38206
+ }
38207
+ },
38208
+ "isDeprecated": false,
38209
+ "deprecationReason": null
38210
+ },
37966
38211
  {
37967
38212
  "name": "createAccessInvitation",
37968
38213
  "description": null,
@@ -37992,6 +38237,59 @@
37992
38237
  "isDeprecated": false,
37993
38238
  "deprecationReason": null
37994
38239
  },
38240
+ {
38241
+ "name": "createAccessRequest",
38242
+ "description": null,
38243
+ "args": [
38244
+ {
38245
+ "name": "access_request",
38246
+ "description": null,
38247
+ "type": {
38248
+ "kind": "NON_NULL",
38249
+ "name": null,
38250
+ "ofType": {
38251
+ "kind": "INPUT_OBJECT",
38252
+ "name": "CreateAccessRequestInput",
38253
+ "ofType": null
38254
+ }
38255
+ },
38256
+ "defaultValue": null,
38257
+ "isDeprecated": false,
38258
+ "deprecationReason": null
38259
+ },
38260
+ {
38261
+ "name": "fields",
38262
+ "description": null,
38263
+ "type": {
38264
+ "kind": "LIST",
38265
+ "name": null,
38266
+ "ofType": {
38267
+ "kind": "NON_NULL",
38268
+ "name": null,
38269
+ "ofType": {
38270
+ "kind": "SCALAR",
38271
+ "name": "String",
38272
+ "ofType": null
38273
+ }
38274
+ }
38275
+ },
38276
+ "defaultValue": null,
38277
+ "isDeprecated": false,
38278
+ "deprecationReason": null
38279
+ }
38280
+ ],
38281
+ "type": {
38282
+ "kind": "NON_NULL",
38283
+ "name": null,
38284
+ "ofType": {
38285
+ "kind": "OBJECT",
38286
+ "name": "AccessRequest",
38287
+ "ofType": null
38288
+ }
38289
+ },
38290
+ "isDeprecated": false,
38291
+ "deprecationReason": null
38292
+ },
37995
38293
  {
37996
38294
  "name": "createAdAccount",
37997
38295
  "description": null,
@@ -40494,6 +40792,39 @@
40494
40792
  "isDeprecated": false,
40495
40793
  "deprecationReason": null
40496
40794
  },
40795
+ {
40796
+ "name": "denyAccessRequest",
40797
+ "description": null,
40798
+ "args": [
40799
+ {
40800
+ "name": "id",
40801
+ "description": null,
40802
+ "type": {
40803
+ "kind": "NON_NULL",
40804
+ "name": null,
40805
+ "ofType": {
40806
+ "kind": "SCALAR",
40807
+ "name": "ID",
40808
+ "ofType": null
40809
+ }
40810
+ },
40811
+ "defaultValue": null,
40812
+ "isDeprecated": false,
40813
+ "deprecationReason": null
40814
+ }
40815
+ ],
40816
+ "type": {
40817
+ "kind": "NON_NULL",
40818
+ "name": null,
40819
+ "ofType": {
40820
+ "kind": "SCALAR",
40821
+ "name": "ID",
40822
+ "ofType": null
40823
+ }
40824
+ },
40825
+ "isDeprecated": false,
40826
+ "deprecationReason": null
40827
+ },
40497
40828
  {
40498
40829
  "name": "disableRegistrationKey",
40499
40830
  "description": null,
@@ -40778,6 +41109,39 @@
40778
41109
  "isDeprecated": false,
40779
41110
  "deprecationReason": null
40780
41111
  },
41112
+ {
41113
+ "name": "grantAccessRequest",
41114
+ "description": null,
41115
+ "args": [
41116
+ {
41117
+ "name": "id",
41118
+ "description": null,
41119
+ "type": {
41120
+ "kind": "NON_NULL",
41121
+ "name": null,
41122
+ "ofType": {
41123
+ "kind": "SCALAR",
41124
+ "name": "ID",
41125
+ "ofType": null
41126
+ }
41127
+ },
41128
+ "defaultValue": null,
41129
+ "isDeprecated": false,
41130
+ "deprecationReason": null
41131
+ }
41132
+ ],
41133
+ "type": {
41134
+ "kind": "NON_NULL",
41135
+ "name": null,
41136
+ "ofType": {
41137
+ "kind": "SCALAR",
41138
+ "name": "ID",
41139
+ "ofType": null
41140
+ }
41141
+ },
41142
+ "isDeprecated": false,
41143
+ "deprecationReason": null
41144
+ },
40781
41145
  {
40782
41146
  "name": "inviteRetailers",
40783
41147
  "description": null,
@@ -41706,6 +42070,59 @@
41706
42070
  "isDeprecated": false,
41707
42071
  "deprecationReason": null
41708
42072
  },
42073
+ {
42074
+ "name": "resendAccessRequest",
42075
+ "description": null,
42076
+ "args": [
42077
+ {
42078
+ "name": "fields",
42079
+ "description": null,
42080
+ "type": {
42081
+ "kind": "LIST",
42082
+ "name": null,
42083
+ "ofType": {
42084
+ "kind": "NON_NULL",
42085
+ "name": null,
42086
+ "ofType": {
42087
+ "kind": "SCALAR",
42088
+ "name": "String",
42089
+ "ofType": null
42090
+ }
42091
+ }
42092
+ },
42093
+ "defaultValue": null,
42094
+ "isDeprecated": false,
42095
+ "deprecationReason": null
42096
+ },
42097
+ {
42098
+ "name": "id",
42099
+ "description": null,
42100
+ "type": {
42101
+ "kind": "NON_NULL",
42102
+ "name": null,
42103
+ "ofType": {
42104
+ "kind": "SCALAR",
42105
+ "name": "ID",
42106
+ "ofType": null
42107
+ }
42108
+ },
42109
+ "defaultValue": null,
42110
+ "isDeprecated": false,
42111
+ "deprecationReason": null
42112
+ }
42113
+ ],
42114
+ "type": {
42115
+ "kind": "NON_NULL",
42116
+ "name": null,
42117
+ "ofType": {
42118
+ "kind": "OBJECT",
42119
+ "name": "AccessRequest",
42120
+ "ofType": null
42121
+ }
42122
+ },
42123
+ "isDeprecated": false,
42124
+ "deprecationReason": null
42125
+ },
41709
42126
  {
41710
42127
  "name": "resetInvitations",
41711
42128
  "description": null,
@@ -45680,6 +46097,136 @@
45680
46097
  "isDeprecated": false,
45681
46098
  "deprecationReason": null
45682
46099
  },
46100
+ {
46101
+ "name": "getAccessRequest",
46102
+ "description": null,
46103
+ "args": [
46104
+ {
46105
+ "name": "fields",
46106
+ "description": null,
46107
+ "type": {
46108
+ "kind": "LIST",
46109
+ "name": null,
46110
+ "ofType": {
46111
+ "kind": "NON_NULL",
46112
+ "name": null,
46113
+ "ofType": {
46114
+ "kind": "SCALAR",
46115
+ "name": "String",
46116
+ "ofType": null
46117
+ }
46118
+ }
46119
+ },
46120
+ "defaultValue": null,
46121
+ "isDeprecated": false,
46122
+ "deprecationReason": null
46123
+ },
46124
+ {
46125
+ "name": "id",
46126
+ "description": null,
46127
+ "type": {
46128
+ "kind": "NON_NULL",
46129
+ "name": null,
46130
+ "ofType": {
46131
+ "kind": "SCALAR",
46132
+ "name": "ID",
46133
+ "ofType": null
46134
+ }
46135
+ },
46136
+ "defaultValue": null,
46137
+ "isDeprecated": false,
46138
+ "deprecationReason": null
46139
+ }
46140
+ ],
46141
+ "type": {
46142
+ "kind": "NON_NULL",
46143
+ "name": null,
46144
+ "ofType": {
46145
+ "kind": "OBJECT",
46146
+ "name": "AccessRequest",
46147
+ "ofType": null
46148
+ }
46149
+ },
46150
+ "isDeprecated": false,
46151
+ "deprecationReason": null
46152
+ },
46153
+ {
46154
+ "name": "getAccessRequests",
46155
+ "description": null,
46156
+ "args": [
46157
+ {
46158
+ "name": "fields",
46159
+ "description": null,
46160
+ "type": {
46161
+ "kind": "LIST",
46162
+ "name": null,
46163
+ "ofType": {
46164
+ "kind": "NON_NULL",
46165
+ "name": null,
46166
+ "ofType": {
46167
+ "kind": "SCALAR",
46168
+ "name": "String",
46169
+ "ofType": null
46170
+ }
46171
+ }
46172
+ },
46173
+ "defaultValue": null,
46174
+ "isDeprecated": false,
46175
+ "deprecationReason": null
46176
+ },
46177
+ {
46178
+ "name": "resource_id",
46179
+ "description": null,
46180
+ "type": {
46181
+ "kind": "NON_NULL",
46182
+ "name": null,
46183
+ "ofType": {
46184
+ "kind": "SCALAR",
46185
+ "name": "ID",
46186
+ "ofType": null
46187
+ }
46188
+ },
46189
+ "defaultValue": null,
46190
+ "isDeprecated": false,
46191
+ "deprecationReason": null
46192
+ },
46193
+ {
46194
+ "name": "resource_type",
46195
+ "description": null,
46196
+ "type": {
46197
+ "kind": "NON_NULL",
46198
+ "name": null,
46199
+ "ofType": {
46200
+ "kind": "SCALAR",
46201
+ "name": "String",
46202
+ "ofType": null
46203
+ }
46204
+ },
46205
+ "defaultValue": null,
46206
+ "isDeprecated": false,
46207
+ "deprecationReason": null
46208
+ }
46209
+ ],
46210
+ "type": {
46211
+ "kind": "NON_NULL",
46212
+ "name": null,
46213
+ "ofType": {
46214
+ "kind": "LIST",
46215
+ "name": null,
46216
+ "ofType": {
46217
+ "kind": "NON_NULL",
46218
+ "name": null,
46219
+ "ofType": {
46220
+ "kind": "OBJECT",
46221
+ "name": "AccessRequest",
46222
+ "ofType": null
46223
+ }
46224
+ }
46225
+ }
46226
+ },
46227
+ "isDeprecated": false,
46228
+ "deprecationReason": null
46229
+ },
45683
46230
  {
45684
46231
  "name": "getAd",
45685
46232
  "description": null,
package/index.d.ts CHANGED
@@ -22,7 +22,7 @@ export type AccessInvitation = {
22
22
  accessible?: Maybe<Accessible>;
23
23
  accessible_id?: Maybe<Scalars['ID']['output']>;
24
24
  accessible_type?: Maybe<Scalars['String']['output']>;
25
- brand_id: Scalars['ID']['output'];
25
+ brand_id?: Maybe<Scalars['ID']['output']>;
26
26
  created_at?: Maybe<Scalars['String']['output']>;
27
27
  created_by_id?: Maybe<Scalars['ID']['output']>;
28
28
  delivery_status?: Maybe<AccessInvitationDeliveryStatus>;
@@ -55,13 +55,16 @@ export type AccessInvitationState =
55
55
 
56
56
  export type AccessRequest = {
57
57
  __typename?: 'AccessRequest';
58
+ brand?: Maybe<Brand>;
58
59
  created_at?: Maybe<Scalars['String']['output']>;
59
60
  created_by_id?: Maybe<Scalars['ID']['output']>;
60
61
  deleted_at?: Maybe<Scalars['String']['output']>;
61
62
  id?: Maybe<Scalars['ID']['output']>;
62
63
  message?: Maybe<Scalars['String']['output']>;
64
+ requestable?: Maybe<AccessRequestRequestable>;
63
65
  requestable_id?: Maybe<Scalars['ID']['output']>;
64
66
  requestable_type?: Maybe<RequestableType>;
67
+ requester?: Maybe<User>;
65
68
  requester_id?: Maybe<Scalars['ID']['output']>;
66
69
  requester_name?: Maybe<Scalars['String']['output']>;
67
70
  status?: Maybe<Scalars['String']['output']>;
@@ -70,6 +73,8 @@ export type AccessRequest = {
70
73
  updated_by_id?: Maybe<Scalars['ID']['output']>;
71
74
  };
72
75
 
76
+ export type AccessRequestRequestable = Retailer | RetailerAccount;
77
+
73
78
  export type Accessible = Division | Retailer | RetailerAccount;
74
79
 
75
80
  export type ActionStat = {
@@ -1701,13 +1706,26 @@ export type CopyOption = {
1701
1706
 
1702
1707
  export type CreateAccessInvitation = {
1703
1708
  accessible_id: Scalars['ID']['input'];
1704
- name?: InputMaybe<Scalars['String']['input']>;
1709
+ accessible_type: Scalars['String']['input'];
1710
+ name: Scalars['String']['input'];
1711
+ recipient_email_address?: InputMaybe<Scalars['String']['input']>;
1712
+ recipient_user_id?: InputMaybe<Scalars['ID']['input']>;
1713
+ sender_email_address_id?: InputMaybe<Scalars['String']['input']>;
1714
+ sender_user_id?: InputMaybe<Scalars['ID']['input']>;
1705
1715
  };
1706
1716
 
1707
1717
  export type CreateAccessInvitationParams = {
1708
1718
  access_invitation: CreateAccessInvitation;
1709
1719
  };
1710
1720
 
1721
+ export type CreateAccessRequestInput = {
1722
+ message: Scalars['String']['input'];
1723
+ requestable_id: Scalars['ID']['input'];
1724
+ requestable_type: Scalars['String']['input'];
1725
+ requester_id: Scalars['ID']['input'];
1726
+ requester_name: Scalars['String']['input'];
1727
+ };
1728
+
1711
1729
  export type CreateAdAccountParams = {
1712
1730
  ad_account_name?: InputMaybe<Scalars['String']['input']>;
1713
1731
  id: Scalars['ID']['input'];
@@ -4147,7 +4165,9 @@ export type Mutation = {
4147
4165
  bulkUpdateRetailerData?: Maybe<UploadCsvResponse>;
4148
4166
  cancelContract?: Maybe<Contract>;
4149
4167
  cancelPaymentIntent?: Maybe<Scalars['Boolean']['output']>;
4168
+ closeAccessInvitation: Scalars['ID']['output'];
4150
4169
  createAccessInvitation?: Maybe<AccessInvitation>;
4170
+ createAccessRequest: AccessRequest;
4151
4171
  createAdAccount: AdAccount;
4152
4172
  createAdAutomation?: Maybe<AdAutomation>;
4153
4173
  createAdAutomations?: Maybe<Array<AdAutomation>>;
@@ -4211,6 +4231,7 @@ export type Mutation = {
4211
4231
  deleteShare: DeleteShareResponse;
4212
4232
  deleteSsoConnection: Scalars['String']['output'];
4213
4233
  deleteTwitterAccount?: Maybe<Scalars['ID']['output']>;
4234
+ denyAccessRequest: Scalars['ID']['output'];
4214
4235
  disableRegistrationKey: RegistrationKey;
4215
4236
  disproveContentRequest: ContentRequest;
4216
4237
  duplicateCampaign?: Maybe<Scalars['ID']['output']>;
@@ -4219,6 +4240,7 @@ export type Mutation = {
4219
4240
  exportLeads: Scalars['ID']['output'];
4220
4241
  exportUsersForDivisionByBrand: Scalars['ID']['output'];
4221
4242
  extendJwt: ExtendJwtResponse;
4243
+ grantAccessRequest: Scalars['ID']['output'];
4222
4244
  inviteRetailers?: Maybe<Scalars['ID']['output']>;
4223
4245
  inviteRetailersAndPublishPaidAd: Scalars['ID']['output'];
4224
4246
  joinRetailer: Permission;
@@ -4253,6 +4275,7 @@ export type Mutation = {
4253
4275
  rejectBrandRequest: BrandRequest;
4254
4276
  requestPasswordReset: Scalars['String']['output'];
4255
4277
  resendAccessInvitation: Scalars['ID']['output'];
4278
+ resendAccessRequest: AccessRequest;
4256
4279
  resetInvitations: Array<Invitations>;
4257
4280
  /** Reset a transfer given an idempotency key */
4258
4281
  reset_transfer?: Maybe<Transaction>;
@@ -4418,11 +4441,22 @@ export type MutationCancelPaymentIntentArgs = {
4418
4441
  };
4419
4442
 
4420
4443
 
4444
+ export type MutationCloseAccessInvitationArgs = {
4445
+ id: Scalars['ID']['input'];
4446
+ };
4447
+
4448
+
4421
4449
  export type MutationCreateAccessInvitationArgs = {
4422
4450
  params: CreateAccessInvitationParams;
4423
4451
  };
4424
4452
 
4425
4453
 
4454
+ export type MutationCreateAccessRequestArgs = {
4455
+ access_request: CreateAccessRequestInput;
4456
+ fields?: InputMaybe<Array<Scalars['String']['input']>>;
4457
+ };
4458
+
4459
+
4426
4460
  export type MutationCreateAdAccountArgs = {
4427
4461
  params: CreateAdAccountParams;
4428
4462
  };
@@ -4754,6 +4788,11 @@ export type MutationDeleteTwitterAccountArgs = {
4754
4788
  };
4755
4789
 
4756
4790
 
4791
+ export type MutationDenyAccessRequestArgs = {
4792
+ id: Scalars['ID']['input'];
4793
+ };
4794
+
4795
+
4757
4796
  export type MutationDisableRegistrationKeyArgs = {
4758
4797
  id: Scalars['ID']['input'];
4759
4798
  };
@@ -4796,6 +4835,11 @@ export type MutationExtendJwtArgs = {
4796
4835
  };
4797
4836
 
4798
4837
 
4838
+ export type MutationGrantAccessRequestArgs = {
4839
+ id: Scalars['ID']['input'];
4840
+ };
4841
+
4842
+
4799
4843
  export type MutationInviteRetailersArgs = {
4800
4844
  params: InviteRetailersParams;
4801
4845
  };
@@ -4926,6 +4970,12 @@ export type MutationResendAccessInvitationArgs = {
4926
4970
  };
4927
4971
 
4928
4972
 
4973
+ export type MutationResendAccessRequestArgs = {
4974
+ fields?: InputMaybe<Array<Scalars['String']['input']>>;
4975
+ id: Scalars['ID']['input'];
4976
+ };
4977
+
4978
+
4929
4979
  export type MutationResetInvitationsArgs = {
4930
4980
  params: ResetInvitationsParams;
4931
4981
  };
@@ -5426,6 +5476,8 @@ export type Query = {
5426
5476
  bulkGetUsersByUuidAndBrandId: BulkGetUsersByUuidAndBrandIdResponse;
5427
5477
  getAccessInvitation?: Maybe<AccessInvitation>;
5428
5478
  getAccessInvitations?: Maybe<GetAccessInvitationsResponse>;
5479
+ getAccessRequest: AccessRequest;
5480
+ getAccessRequests: Array<AccessRequest>;
5429
5481
  getAd: AdCampaignData;
5430
5482
  getAdAutomationsByBrandId: Array<AdAutomation>;
5431
5483
  getAdAutomationsByRetailerIds: Array<AdAutomation>;
@@ -5597,6 +5649,19 @@ export type QueryGetAccessInvitationsArgs = {
5597
5649
  };
5598
5650
 
5599
5651
 
5652
+ export type QueryGetAccessRequestArgs = {
5653
+ fields?: InputMaybe<Array<Scalars['String']['input']>>;
5654
+ id: Scalars['ID']['input'];
5655
+ };
5656
+
5657
+
5658
+ export type QueryGetAccessRequestsArgs = {
5659
+ fields?: InputMaybe<Array<Scalars['String']['input']>>;
5660
+ resource_id: Scalars['ID']['input'];
5661
+ resource_type: Scalars['String']['input'];
5662
+ };
5663
+
5664
+
5600
5665
  export type QueryGetAdArgs = {
5601
5666
  params: AdParams;
5602
5667
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promoboxx/graphql-gateway-types",
3
- "version": "1.100.0",
3
+ "version": "1.101.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/schema.graphql CHANGED
@@ -6,7 +6,7 @@ type AccessInvitation {
6
6
  accessible: Accessible
7
7
  accessible_id: ID
8
8
  accessible_type: String
9
- brand_id: ID!
9
+ brand_id: ID
10
10
  created_at: String
11
11
  created_by_id: ID
12
12
  delivery_status: AccessInvitationDeliveryStatus
@@ -41,13 +41,16 @@ enum AccessInvitationState {
41
41
  }
42
42
 
43
43
  type AccessRequest {
44
+ brand: Brand
44
45
  created_at: String
45
46
  created_by_id: ID
46
47
  deleted_at: String
47
48
  id: ID
48
49
  message: String
50
+ requestable: AccessRequestRequestable
49
51
  requestable_id: ID
50
52
  requestable_type: RequestableType
53
+ requester: User
51
54
  requester_id: ID
52
55
  requester_name: String
53
56
  status: String
@@ -56,6 +59,8 @@ type AccessRequest {
56
59
  updated_by_id: ID
57
60
  }
58
61
 
62
+ union AccessRequestRequestable = Retailer | RetailerAccount
63
+
59
64
  union Accessible = Division | Retailer | RetailerAccount
60
65
 
61
66
  type ActionStat {
@@ -1626,13 +1631,26 @@ type CopyOption {
1626
1631
 
1627
1632
  input CreateAccessInvitation {
1628
1633
  accessible_id: ID!
1629
- name: String
1634
+ accessible_type: String!
1635
+ name: String!
1636
+ recipient_email_address: String
1637
+ recipient_user_id: ID
1638
+ sender_email_address_id: String
1639
+ sender_user_id: ID
1630
1640
  }
1631
1641
 
1632
1642
  input CreateAccessInvitationParams {
1633
1643
  access_invitation: CreateAccessInvitation!
1634
1644
  }
1635
1645
 
1646
+ input CreateAccessRequestInput {
1647
+ message: String!
1648
+ requestable_id: ID!
1649
+ requestable_type: String!
1650
+ requester_id: ID!
1651
+ requester_name: String!
1652
+ }
1653
+
1636
1654
  input CreateAdAccountParams {
1637
1655
  ad_account_name: String
1638
1656
  id: ID!
@@ -4000,7 +4018,9 @@ type Mutation {
4000
4018
  bulkUpdateRetailerData(brandId: String!, dryrun: Boolean, file: Upload!): UploadCsvResponse @deprecated(reason: "We want to remove all use cases were a File is required as input. Please use an alternative method.")
4001
4019
  cancelContract(contractId: ID!, data: CancelContractData!): Contract
4002
4020
  cancelPaymentIntent(id: ID!): Boolean
4021
+ closeAccessInvitation(id: ID!): ID!
4003
4022
  createAccessInvitation(params: CreateAccessInvitationParams!): AccessInvitation
4023
+ createAccessRequest(access_request: CreateAccessRequestInput!, fields: [String!]): AccessRequest!
4004
4024
  createAdAccount(params: CreateAdAccountParams!): AdAccount!
4005
4025
  createAdAutomation(automation: CreateAdAutomationInput!): AdAutomation
4006
4026
  createAdAutomations(params: [CreateAdAutomationsInput!]!): [AdAutomation!]
@@ -4068,6 +4088,7 @@ type Mutation {
4068
4088
  deleteShare(shareId: ID!, shareType: ShareTypeParam): DeleteShareResponse!
4069
4089
  deleteSsoConnection(id: ID!, user_id: ID!): String!
4070
4090
  deleteTwitterAccount(id: ID!, resourceId: ID!, resourceType: String!): ID
4091
+ denyAccessRequest(id: ID!): ID!
4071
4092
  disableRegistrationKey(id: ID!): RegistrationKey!
4072
4093
  disproveContentRequest(campaign_request_id: ID!): ContentRequest!
4073
4094
  duplicateCampaign(campaignId: ID!): ID
@@ -4076,6 +4097,7 @@ type Mutation {
4076
4097
  exportLeads(params: LeadExportInput, resource_id: ID!, resource_type: String!): ID!
4077
4098
  exportUsersForDivisionByBrand(brandId: ID!): ID!
4078
4099
  extendJwt(jwt: String!): ExtendJwtResponse!
4100
+ grantAccessRequest(id: ID!): ID!
4079
4101
  inviteRetailers(params: InviteRetailersParams!): ID
4080
4102
  inviteRetailersAndPublishPaidAd(inviteParams: InviteRetailersParams!, publishParams: PublishPaidAdParams!): ID!
4081
4103
  joinRetailer(brandId: ID!, linkId: ID!): Permission!
@@ -4114,6 +4136,7 @@ type Mutation {
4114
4136
  rejectBrandRequest(brand_request: RejectBrandRequestBrandRequest, id: ID!): BrandRequest!
4115
4137
  requestPasswordReset(email: String!, redirect_url: String!): String!
4116
4138
  resendAccessInvitation(id: ID!): ID!
4139
+ resendAccessRequest(fields: [String!], id: ID!): AccessRequest!
4117
4140
  resetInvitations(params: ResetInvitationsParams!): [Invitations!]!
4118
4141
 
4119
4142
  """Reset a transfer given an idempotency key"""
@@ -4438,6 +4461,8 @@ type Query {
4438
4461
  bulkGetUsersByUuidAndBrandId(brand_id: ID!, strict_ordering: Boolean, uuids: [String!]!): BulkGetUsersByUuidAndBrandIdResponse!
4439
4462
  getAccessInvitation(id: ID!, params: GetAccessInvitationParams): AccessInvitation
4440
4463
  getAccessInvitations(params: GetAccessInvitationsParams, resourceId: ID!, resourceType: AccessInvitationResourceType!): GetAccessInvitationsResponse
4464
+ getAccessRequest(fields: [String!], id: ID!): AccessRequest!
4465
+ getAccessRequests(fields: [String!], resource_id: ID!, resource_type: String!): [AccessRequest!]!
4441
4466
  getAd(params: AdParams!): AdCampaignData!
4442
4467
  getAdAutomationsByBrandId(brandId: ID!): [AdAutomation!]!
4443
4468
  getAdAutomationsByRetailerIds(brandId: ID, retailerIds: [ID!]!): [AdAutomation!]!