@promoboxx/graphql-gateway-types 1.115.0 → 1.117.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.
@@ -18334,6 +18334,65 @@
18334
18334
  "enumValues": null,
18335
18335
  "possibleTypes": null
18336
18336
  },
18337
+ {
18338
+ "kind": "INPUT_OBJECT",
18339
+ "name": "CreatePermissionInput",
18340
+ "description": null,
18341
+ "fields": null,
18342
+ "inputFields": [
18343
+ {
18344
+ "name": "action",
18345
+ "description": null,
18346
+ "type": {
18347
+ "kind": "NON_NULL",
18348
+ "name": null,
18349
+ "ofType": {
18350
+ "kind": "SCALAR",
18351
+ "name": "String",
18352
+ "ofType": null
18353
+ }
18354
+ },
18355
+ "defaultValue": null,
18356
+ "isDeprecated": false,
18357
+ "deprecationReason": null
18358
+ },
18359
+ {
18360
+ "name": "permissionable_id",
18361
+ "description": null,
18362
+ "type": {
18363
+ "kind": "NON_NULL",
18364
+ "name": null,
18365
+ "ofType": {
18366
+ "kind": "SCALAR",
18367
+ "name": "ID",
18368
+ "ofType": null
18369
+ }
18370
+ },
18371
+ "defaultValue": null,
18372
+ "isDeprecated": false,
18373
+ "deprecationReason": null
18374
+ },
18375
+ {
18376
+ "name": "permissionable_type",
18377
+ "description": null,
18378
+ "type": {
18379
+ "kind": "NON_NULL",
18380
+ "name": null,
18381
+ "ofType": {
18382
+ "kind": "SCALAR",
18383
+ "name": "String",
18384
+ "ofType": null
18385
+ }
18386
+ },
18387
+ "defaultValue": null,
18388
+ "isDeprecated": false,
18389
+ "deprecationReason": null
18390
+ }
18391
+ ],
18392
+ "interfaces": null,
18393
+ "enumValues": null,
18394
+ "possibleTypes": null
18395
+ },
18337
18396
  {
18338
18397
  "kind": "INPUT_OBJECT",
18339
18398
  "name": "CreatePlatformAccessRequestParams",
@@ -39024,6 +39083,55 @@
39024
39083
  "isDeprecated": false,
39025
39084
  "deprecationReason": null
39026
39085
  },
39086
+ {
39087
+ "name": "copyPermissionsFromUser",
39088
+ "description": null,
39089
+ "args": [
39090
+ {
39091
+ "name": "existing_user_id",
39092
+ "description": null,
39093
+ "type": {
39094
+ "kind": "NON_NULL",
39095
+ "name": null,
39096
+ "ofType": {
39097
+ "kind": "SCALAR",
39098
+ "name": "ID",
39099
+ "ofType": null
39100
+ }
39101
+ },
39102
+ "defaultValue": null,
39103
+ "isDeprecated": false,
39104
+ "deprecationReason": null
39105
+ },
39106
+ {
39107
+ "name": "user_id",
39108
+ "description": null,
39109
+ "type": {
39110
+ "kind": "NON_NULL",
39111
+ "name": null,
39112
+ "ofType": {
39113
+ "kind": "SCALAR",
39114
+ "name": "ID",
39115
+ "ofType": null
39116
+ }
39117
+ },
39118
+ "defaultValue": null,
39119
+ "isDeprecated": false,
39120
+ "deprecationReason": null
39121
+ }
39122
+ ],
39123
+ "type": {
39124
+ "kind": "NON_NULL",
39125
+ "name": null,
39126
+ "ofType": {
39127
+ "kind": "SCALAR",
39128
+ "name": "String",
39129
+ "ofType": null
39130
+ }
39131
+ },
39132
+ "isDeprecated": false,
39133
+ "deprecationReason": null
39134
+ },
39027
39135
  {
39028
39136
  "name": "createAccessInvitation",
39029
39137
  "description": null,
@@ -40424,6 +40532,55 @@
40424
40532
  "isDeprecated": false,
40425
40533
  "deprecationReason": null
40426
40534
  },
40535
+ {
40536
+ "name": "createPermission",
40537
+ "description": null,
40538
+ "args": [
40539
+ {
40540
+ "name": "permission",
40541
+ "description": null,
40542
+ "type": {
40543
+ "kind": "NON_NULL",
40544
+ "name": null,
40545
+ "ofType": {
40546
+ "kind": "INPUT_OBJECT",
40547
+ "name": "CreatePermissionInput",
40548
+ "ofType": null
40549
+ }
40550
+ },
40551
+ "defaultValue": null,
40552
+ "isDeprecated": false,
40553
+ "deprecationReason": null
40554
+ },
40555
+ {
40556
+ "name": "user_id",
40557
+ "description": null,
40558
+ "type": {
40559
+ "kind": "NON_NULL",
40560
+ "name": null,
40561
+ "ofType": {
40562
+ "kind": "SCALAR",
40563
+ "name": "ID",
40564
+ "ofType": null
40565
+ }
40566
+ },
40567
+ "defaultValue": null,
40568
+ "isDeprecated": false,
40569
+ "deprecationReason": null
40570
+ }
40571
+ ],
40572
+ "type": {
40573
+ "kind": "NON_NULL",
40574
+ "name": null,
40575
+ "ofType": {
40576
+ "kind": "OBJECT",
40577
+ "name": "Permission",
40578
+ "ofType": null
40579
+ }
40580
+ },
40581
+ "isDeprecated": false,
40582
+ "deprecationReason": null
40583
+ },
40427
40584
  {
40428
40585
  "name": "createPlatformAccessRequest",
40429
40586
  "description": null,
@@ -41437,6 +41594,39 @@
41437
41594
  "isDeprecated": false,
41438
41595
  "deprecationReason": null
41439
41596
  },
41597
+ {
41598
+ "name": "deletePermission",
41599
+ "description": null,
41600
+ "args": [
41601
+ {
41602
+ "name": "id",
41603
+ "description": null,
41604
+ "type": {
41605
+ "kind": "NON_NULL",
41606
+ "name": null,
41607
+ "ofType": {
41608
+ "kind": "SCALAR",
41609
+ "name": "ID",
41610
+ "ofType": null
41611
+ }
41612
+ },
41613
+ "defaultValue": null,
41614
+ "isDeprecated": false,
41615
+ "deprecationReason": null
41616
+ }
41617
+ ],
41618
+ "type": {
41619
+ "kind": "NON_NULL",
41620
+ "name": null,
41621
+ "ofType": {
41622
+ "kind": "SCALAR",
41623
+ "name": "ID",
41624
+ "ofType": null
41625
+ }
41626
+ },
41627
+ "isDeprecated": false,
41628
+ "deprecationReason": null
41629
+ },
41440
41630
  {
41441
41631
  "name": "deleteResourceSpecificFacebookPage",
41442
41632
  "description": null,
@@ -51507,6 +51697,136 @@
51507
51697
  "isDeprecated": false,
51508
51698
  "deprecationReason": null
51509
51699
  },
51700
+ {
51701
+ "name": "getPermission",
51702
+ "description": null,
51703
+ "args": [
51704
+ {
51705
+ "name": "fields",
51706
+ "description": null,
51707
+ "type": {
51708
+ "kind": "LIST",
51709
+ "name": null,
51710
+ "ofType": {
51711
+ "kind": "NON_NULL",
51712
+ "name": null,
51713
+ "ofType": {
51714
+ "kind": "SCALAR",
51715
+ "name": "String",
51716
+ "ofType": null
51717
+ }
51718
+ }
51719
+ },
51720
+ "defaultValue": null,
51721
+ "isDeprecated": false,
51722
+ "deprecationReason": null
51723
+ },
51724
+ {
51725
+ "name": "id",
51726
+ "description": null,
51727
+ "type": {
51728
+ "kind": "NON_NULL",
51729
+ "name": null,
51730
+ "ofType": {
51731
+ "kind": "SCALAR",
51732
+ "name": "ID",
51733
+ "ofType": null
51734
+ }
51735
+ },
51736
+ "defaultValue": null,
51737
+ "isDeprecated": false,
51738
+ "deprecationReason": null
51739
+ }
51740
+ ],
51741
+ "type": {
51742
+ "kind": "NON_NULL",
51743
+ "name": null,
51744
+ "ofType": {
51745
+ "kind": "OBJECT",
51746
+ "name": "Permission",
51747
+ "ofType": null
51748
+ }
51749
+ },
51750
+ "isDeprecated": false,
51751
+ "deprecationReason": null
51752
+ },
51753
+ {
51754
+ "name": "getPermissions",
51755
+ "description": null,
51756
+ "args": [
51757
+ {
51758
+ "name": "fields",
51759
+ "description": null,
51760
+ "type": {
51761
+ "kind": "LIST",
51762
+ "name": null,
51763
+ "ofType": {
51764
+ "kind": "NON_NULL",
51765
+ "name": null,
51766
+ "ofType": {
51767
+ "kind": "SCALAR",
51768
+ "name": "String",
51769
+ "ofType": null
51770
+ }
51771
+ }
51772
+ },
51773
+ "defaultValue": null,
51774
+ "isDeprecated": false,
51775
+ "deprecationReason": null
51776
+ },
51777
+ {
51778
+ "name": "resource_id",
51779
+ "description": null,
51780
+ "type": {
51781
+ "kind": "NON_NULL",
51782
+ "name": null,
51783
+ "ofType": {
51784
+ "kind": "SCALAR",
51785
+ "name": "ID",
51786
+ "ofType": null
51787
+ }
51788
+ },
51789
+ "defaultValue": null,
51790
+ "isDeprecated": false,
51791
+ "deprecationReason": null
51792
+ },
51793
+ {
51794
+ "name": "resource_type",
51795
+ "description": null,
51796
+ "type": {
51797
+ "kind": "NON_NULL",
51798
+ "name": null,
51799
+ "ofType": {
51800
+ "kind": "SCALAR",
51801
+ "name": "String",
51802
+ "ofType": null
51803
+ }
51804
+ },
51805
+ "defaultValue": null,
51806
+ "isDeprecated": false,
51807
+ "deprecationReason": null
51808
+ }
51809
+ ],
51810
+ "type": {
51811
+ "kind": "NON_NULL",
51812
+ "name": null,
51813
+ "ofType": {
51814
+ "kind": "LIST",
51815
+ "name": null,
51816
+ "ofType": {
51817
+ "kind": "NON_NULL",
51818
+ "name": null,
51819
+ "ofType": {
51820
+ "kind": "OBJECT",
51821
+ "name": "Permission",
51822
+ "ofType": null
51823
+ }
51824
+ }
51825
+ }
51826
+ },
51827
+ "isDeprecated": false,
51828
+ "deprecationReason": null
51829
+ },
51510
51830
  {
51511
51831
  "name": "getPicAssetSearch",
51512
51832
  "description": null,
package/index.d.ts CHANGED
@@ -1980,6 +1980,12 @@ export type CreateOrUpdateLogoData = {
1980
1980
  name?: InputMaybe<Scalars['String']['input']>;
1981
1981
  };
1982
1982
 
1983
+ export type CreatePermissionInput = {
1984
+ action: Scalars['String']['input'];
1985
+ permissionable_id: Scalars['ID']['input'];
1986
+ permissionable_type: Scalars['String']['input'];
1987
+ };
1988
+
1983
1989
  export type CreatePlatformAccessRequestParams = {
1984
1990
  email_address: Scalars['String']['input'];
1985
1991
  industry?: InputMaybe<Scalars['String']['input']>;
@@ -4236,6 +4242,7 @@ export type Mutation = {
4236
4242
  cancelContract?: Maybe<Contract>;
4237
4243
  cancelPaymentIntent?: Maybe<Scalars['Boolean']['output']>;
4238
4244
  closeAccessInvitation: Scalars['ID']['output'];
4245
+ copyPermissionsFromUser: Scalars['String']['output'];
4239
4246
  createAccessInvitation?: Maybe<AccessInvitation>;
4240
4247
  createAccessRequest: AccessRequest;
4241
4248
  createAdAccount: AdAccount;
@@ -4265,6 +4272,7 @@ export type Mutation = {
4265
4272
  /** will create or update a goal set for a given brand, user must have internal permissions */
4266
4273
  createOrUpdateGoalSet: GoalSet;
4267
4274
  createPaymentIntent?: Maybe<StripePaymentIntent>;
4275
+ createPermission: Permission;
4268
4276
  createPlatformAccessRequest?: Maybe<PlatformAccessRequest>;
4269
4277
  createRetailer: CreateRetailerResponse;
4270
4278
  createShareSettingBulk: Array<ShareSetting>;
@@ -4298,6 +4306,7 @@ export type Mutation = {
4298
4306
  deleteLocations: Array<Maybe<Scalars['ID']['output']>>;
4299
4307
  deleteLogo: Scalars['ID']['output'];
4300
4308
  deletePaidAd?: Maybe<DeletePaidAdResponse>;
4309
+ deletePermission: Scalars['ID']['output'];
4301
4310
  deleteResourceSpecificFacebookPage?: Maybe<Scalars['ID']['output']>;
4302
4311
  deleteShare: DeleteShareResponse;
4303
4312
  deleteSsoConnection: Scalars['String']['output'];
@@ -4519,6 +4528,12 @@ export type MutationCloseAccessInvitationArgs = {
4519
4528
  };
4520
4529
 
4521
4530
 
4531
+ export type MutationCopyPermissionsFromUserArgs = {
4532
+ existing_user_id: Scalars['ID']['input'];
4533
+ user_id: Scalars['ID']['input'];
4534
+ };
4535
+
4536
+
4522
4537
  export type MutationCreateAccessInvitationArgs = {
4523
4538
  params: CreateAccessInvitationParams;
4524
4539
  };
@@ -4690,6 +4705,12 @@ export type MutationCreatePaymentIntentArgs = {
4690
4705
  };
4691
4706
 
4692
4707
 
4708
+ export type MutationCreatePermissionArgs = {
4709
+ permission: CreatePermissionInput;
4710
+ user_id: Scalars['ID']['input'];
4711
+ };
4712
+
4713
+
4693
4714
  export type MutationCreatePlatformAccessRequestArgs = {
4694
4715
  platform_access_request: CreatePlatformAccessRequestParams;
4695
4716
  };
@@ -4840,6 +4861,11 @@ export type MutationDeletePaidAdArgs = {
4840
4861
  };
4841
4862
 
4842
4863
 
4864
+ export type MutationDeletePermissionArgs = {
4865
+ id: Scalars['ID']['input'];
4866
+ };
4867
+
4868
+
4843
4869
  export type MutationDeleteResourceSpecificFacebookPageArgs = {
4844
4870
  facebookPageId: Scalars['ID']['input'];
4845
4871
  resourceId: Scalars['ID']['input'];
@@ -5664,6 +5690,8 @@ export type Query = {
5664
5690
  getLogos: GetLogosResponse;
5665
5691
  getNotes: Array<Note>;
5666
5692
  getNotesByResource: Array<Note>;
5693
+ getPermission: Permission;
5694
+ getPermissions: Array<Permission>;
5667
5695
  getPicAssetSearch: Array<DigitalAsset>;
5668
5696
  getRegistrationKey?: Maybe<RegistrationKey>;
5669
5697
  getResourceAssetSearch: Array<DigitalAsset>;
@@ -6266,6 +6294,19 @@ export type QueryGetNotesByResourceArgs = {
6266
6294
  };
6267
6295
 
6268
6296
 
6297
+ export type QueryGetPermissionArgs = {
6298
+ fields?: InputMaybe<Array<Scalars['String']['input']>>;
6299
+ id: Scalars['ID']['input'];
6300
+ };
6301
+
6302
+
6303
+ export type QueryGetPermissionsArgs = {
6304
+ fields?: InputMaybe<Array<Scalars['String']['input']>>;
6305
+ resource_id: Scalars['ID']['input'];
6306
+ resource_type: Scalars['String']['input'];
6307
+ };
6308
+
6309
+
6269
6310
  export type QueryGetPicAssetSearchArgs = {
6270
6311
  search_string: Scalars['String']['input'];
6271
6312
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promoboxx/graphql-gateway-types",
3
- "version": "1.115.0",
3
+ "version": "1.117.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/schema.graphql CHANGED
@@ -1905,6 +1905,12 @@ input CreateOrUpdateLogoData {
1905
1905
  name: String
1906
1906
  }
1907
1907
 
1908
+ input CreatePermissionInput {
1909
+ action: String!
1910
+ permissionable_id: ID!
1911
+ permissionable_type: String!
1912
+ }
1913
+
1908
1914
  input CreatePlatformAccessRequestParams {
1909
1915
  email_address: String!
1910
1916
  industry: String
@@ -4088,6 +4094,7 @@ type Mutation {
4088
4094
  cancelContract(contractId: ID!, data: CancelContractData!): Contract
4089
4095
  cancelPaymentIntent(id: ID!): Boolean
4090
4096
  closeAccessInvitation(id: ID!): ID!
4097
+ copyPermissionsFromUser(existing_user_id: ID!, user_id: ID!): String!
4091
4098
  createAccessInvitation(params: CreateAccessInvitationParams!): AccessInvitation
4092
4099
  createAccessRequest(access_request: CreateAccessRequestInput!, fields: [String!]): AccessRequest!
4093
4100
  createAdAccount(params: CreateAdAccountParams!): AdAccount!
@@ -4120,6 +4127,7 @@ type Mutation {
4120
4127
  """
4121
4128
  createOrUpdateGoalSet(brand_id: String!, goals: [GoalMetricData!]!): GoalSet!
4122
4129
  createPaymentIntent(req: CreateStripePaymentIntentInput!): StripePaymentIntent
4130
+ createPermission(permission: CreatePermissionInput!, user_id: ID!): Permission!
4123
4131
  createPlatformAccessRequest(platform_access_request: CreatePlatformAccessRequestParams!): PlatformAccessRequest
4124
4132
  createRetailer(params: CreateRetailerParams!): CreateRetailerResponse!
4125
4133
  createShareSettingBulk(campaign_id: ID!, params: CreateShareSettingBulkParams!): [ShareSetting!]!
@@ -4154,6 +4162,7 @@ type Mutation {
4154
4162
  deleteLocations(ids: [ID!]!): [ID]!
4155
4163
  deleteLogo(id: ID!): ID!
4156
4164
  deletePaidAd(params: DeletePaidAdParams!): DeletePaidAdResponse
4165
+ deletePermission(id: ID!): ID!
4157
4166
  deleteResourceSpecificFacebookPage(facebookPageId: ID!, resourceId: ID!, resourceType: FacebookPageResourceType!): ID
4158
4167
  deleteShare(shareId: ID!, shareType: ShareTypeParam): DeleteShareResponse!
4159
4168
  deleteSsoConnection(id: ID!, user_id: ID!): String!
@@ -4682,6 +4691,8 @@ type Query {
4682
4691
  getLogos(brand_id: ID!, filters: SubBrandLogosFilters, offset: Int, per_page: Int): GetLogosResponse!
4683
4692
  getNotes(data: GetNotesData): [Note!]!
4684
4693
  getNotesByResource(data: GetNotesByResourceData!): [Note!]!
4694
+ getPermission(fields: [String!], id: ID!): Permission!
4695
+ getPermissions(fields: [String!], resource_id: ID!, resource_type: String!): [Permission!]!
4685
4696
  getPicAssetSearch(search_string: String!): [DigitalAsset!]!
4686
4697
  getRegistrationKey(brandId: ID!, linkId: ID!): RegistrationKey
4687
4698
  getResourceAssetSearch(resource_id: ID!, resource_type: String!, search_string: String!): [DigitalAsset!]!