@promoboxx/graphql-gateway-types 1.26.0 → 1.28.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.
@@ -3165,113 +3165,6 @@
3165
3165
  "enumValues": null,
3166
3166
  "possibleTypes": null
3167
3167
  },
3168
- {
3169
- "kind": "INPUT_OBJECT",
3170
- "name": "AddStripePaymentIntent",
3171
- "description": null,
3172
- "fields": null,
3173
- "inputFields": [
3174
- {
3175
- "name": "id",
3176
- "description": null,
3177
- "type": {
3178
- "kind": "NON_NULL",
3179
- "name": null,
3180
- "ofType": {
3181
- "kind": "SCALAR",
3182
- "name": "ID",
3183
- "ofType": null
3184
- }
3185
- },
3186
- "defaultValue": null,
3187
- "isDeprecated": false,
3188
- "deprecationReason": null
3189
- },
3190
- {
3191
- "name": "payment_intent_id",
3192
- "description": null,
3193
- "type": {
3194
- "kind": "NON_NULL",
3195
- "name": null,
3196
- "ofType": {
3197
- "kind": "SCALAR",
3198
- "name": "String",
3199
- "ofType": null
3200
- }
3201
- },
3202
- "defaultValue": null,
3203
- "isDeprecated": false,
3204
- "deprecationReason": null
3205
- },
3206
- {
3207
- "name": "payment_intent_object",
3208
- "description": null,
3209
- "type": {
3210
- "kind": "NON_NULL",
3211
- "name": null,
3212
- "ofType": {
3213
- "kind": "SCALAR",
3214
- "name": "String",
3215
- "ofType": null
3216
- }
3217
- },
3218
- "defaultValue": null,
3219
- "isDeprecated": false,
3220
- "deprecationReason": null
3221
- },
3222
- {
3223
- "name": "status",
3224
- "description": null,
3225
- "type": {
3226
- "kind": "NON_NULL",
3227
- "name": null,
3228
- "ofType": {
3229
- "kind": "SCALAR",
3230
- "name": "String",
3231
- "ofType": null
3232
- }
3233
- },
3234
- "defaultValue": null,
3235
- "isDeprecated": false,
3236
- "deprecationReason": null
3237
- },
3238
- {
3239
- "name": "type_id",
3240
- "description": null,
3241
- "type": {
3242
- "kind": "NON_NULL",
3243
- "name": null,
3244
- "ofType": {
3245
- "kind": "SCALAR",
3246
- "name": "String",
3247
- "ofType": null
3248
- }
3249
- },
3250
- "defaultValue": null,
3251
- "isDeprecated": false,
3252
- "deprecationReason": null
3253
- },
3254
- {
3255
- "name": "wallet_type",
3256
- "description": null,
3257
- "type": {
3258
- "kind": "NON_NULL",
3259
- "name": null,
3260
- "ofType": {
3261
- "kind": "SCALAR",
3262
- "name": "String",
3263
- "ofType": null
3264
- }
3265
- },
3266
- "defaultValue": null,
3267
- "isDeprecated": false,
3268
- "deprecationReason": null
3269
- }
3270
- ],
3271
- "interfaces": null,
3272
- "enumValues": null,
3273
- "possibleTypes": null
3274
- },
3275
3168
  {
3276
3169
  "kind": "INPUT_OBJECT",
3277
3170
  "name": "AdsByBrandParams",
@@ -18858,6 +18751,97 @@
18858
18751
  "enumValues": null,
18859
18752
  "possibleTypes": null
18860
18753
  },
18754
+ {
18755
+ "kind": "INPUT_OBJECT",
18756
+ "name": "CreateStripePaymentIntentInput",
18757
+ "description": null,
18758
+ "fields": null,
18759
+ "inputFields": [
18760
+ {
18761
+ "name": "amount_cents",
18762
+ "description": null,
18763
+ "type": {
18764
+ "kind": "NON_NULL",
18765
+ "name": null,
18766
+ "ofType": {
18767
+ "kind": "SCALAR",
18768
+ "name": "String",
18769
+ "ofType": null
18770
+ }
18771
+ },
18772
+ "defaultValue": null,
18773
+ "isDeprecated": false,
18774
+ "deprecationReason": null
18775
+ },
18776
+ {
18777
+ "name": "currency",
18778
+ "description": null,
18779
+ "type": {
18780
+ "kind": "NON_NULL",
18781
+ "name": null,
18782
+ "ofType": {
18783
+ "kind": "SCALAR",
18784
+ "name": "String",
18785
+ "ofType": null
18786
+ }
18787
+ },
18788
+ "defaultValue": null,
18789
+ "isDeprecated": false,
18790
+ "deprecationReason": null
18791
+ },
18792
+ {
18793
+ "name": "payment_type",
18794
+ "description": null,
18795
+ "type": {
18796
+ "kind": "NON_NULL",
18797
+ "name": null,
18798
+ "ofType": {
18799
+ "kind": "SCALAR",
18800
+ "name": "String",
18801
+ "ofType": null
18802
+ }
18803
+ },
18804
+ "defaultValue": null,
18805
+ "isDeprecated": false,
18806
+ "deprecationReason": null
18807
+ },
18808
+ {
18809
+ "name": "type",
18810
+ "description": null,
18811
+ "type": {
18812
+ "kind": "NON_NULL",
18813
+ "name": null,
18814
+ "ofType": {
18815
+ "kind": "SCALAR",
18816
+ "name": "String",
18817
+ "ofType": null
18818
+ }
18819
+ },
18820
+ "defaultValue": null,
18821
+ "isDeprecated": false,
18822
+ "deprecationReason": null
18823
+ },
18824
+ {
18825
+ "name": "type_id",
18826
+ "description": null,
18827
+ "type": {
18828
+ "kind": "NON_NULL",
18829
+ "name": null,
18830
+ "ofType": {
18831
+ "kind": "SCALAR",
18832
+ "name": "ID",
18833
+ "ofType": null
18834
+ }
18835
+ },
18836
+ "defaultValue": null,
18837
+ "isDeprecated": false,
18838
+ "deprecationReason": null
18839
+ }
18840
+ ],
18841
+ "interfaces": null,
18842
+ "enumValues": null,
18843
+ "possibleTypes": null
18844
+ },
18861
18845
  {
18862
18846
  "kind": "INPUT_OBJECT",
18863
18847
  "name": "CreateSupportEmailRequest",
@@ -36951,35 +36935,6 @@
36951
36935
  "isDeprecated": false,
36952
36936
  "deprecationReason": null
36953
36937
  },
36954
- {
36955
- "name": "addPaymentIntent",
36956
- "description": null,
36957
- "args": [
36958
- {
36959
- "name": "data",
36960
- "description": null,
36961
- "type": {
36962
- "kind": "NON_NULL",
36963
- "name": null,
36964
- "ofType": {
36965
- "kind": "INPUT_OBJECT",
36966
- "name": "AddStripePaymentIntent",
36967
- "ofType": null
36968
- }
36969
- },
36970
- "defaultValue": null,
36971
- "isDeprecated": false,
36972
- "deprecationReason": null
36973
- }
36974
- ],
36975
- "type": {
36976
- "kind": "OBJECT",
36977
- "name": "StripePaymentIntent",
36978
- "ofType": null
36979
- },
36980
- "isDeprecated": false,
36981
- "deprecationReason": null
36982
- },
36983
36938
  {
36984
36939
  "name": "addRetailerToRetailerAccount",
36985
36940
  "description": null,
@@ -38809,6 +38764,35 @@
38809
38764
  "isDeprecated": false,
38810
38765
  "deprecationReason": null
38811
38766
  },
38767
+ {
38768
+ "name": "createPaymentIntent",
38769
+ "description": null,
38770
+ "args": [
38771
+ {
38772
+ "name": "req",
38773
+ "description": null,
38774
+ "type": {
38775
+ "kind": "NON_NULL",
38776
+ "name": null,
38777
+ "ofType": {
38778
+ "kind": "INPUT_OBJECT",
38779
+ "name": "CreateStripePaymentIntentInput",
38780
+ "ofType": null
38781
+ }
38782
+ },
38783
+ "defaultValue": null,
38784
+ "isDeprecated": false,
38785
+ "deprecationReason": null
38786
+ }
38787
+ ],
38788
+ "type": {
38789
+ "kind": "OBJECT",
38790
+ "name": "StripePaymentIntent",
38791
+ "ofType": null
38792
+ },
38793
+ "isDeprecated": false,
38794
+ "deprecationReason": null
38795
+ },
38812
38796
  {
38813
38797
  "name": "createPlatformAccessRequest",
38814
38798
  "description": null,
@@ -57345,11 +57329,102 @@
57345
57329
  "enumValues": null,
57346
57330
  "possibleTypes": null
57347
57331
  },
57332
+ {
57333
+ "kind": "OBJECT",
57334
+ "name": "StripePaymentClientSecretResponse",
57335
+ "description": null,
57336
+ "fields": [
57337
+ {
57338
+ "name": "client_secret",
57339
+ "description": null,
57340
+ "args": [],
57341
+ "type": {
57342
+ "kind": "NON_NULL",
57343
+ "name": null,
57344
+ "ofType": {
57345
+ "kind": "SCALAR",
57346
+ "name": "String",
57347
+ "ofType": null
57348
+ }
57349
+ },
57350
+ "isDeprecated": false,
57351
+ "deprecationReason": null
57352
+ },
57353
+ {
57354
+ "name": "id",
57355
+ "description": null,
57356
+ "args": [],
57357
+ "type": {
57358
+ "kind": "NON_NULL",
57359
+ "name": null,
57360
+ "ofType": {
57361
+ "kind": "SCALAR",
57362
+ "name": "String",
57363
+ "ofType": null
57364
+ }
57365
+ },
57366
+ "isDeprecated": false,
57367
+ "deprecationReason": null
57368
+ }
57369
+ ],
57370
+ "inputFields": null,
57371
+ "interfaces": [],
57372
+ "enumValues": null,
57373
+ "possibleTypes": null
57374
+ },
57348
57375
  {
57349
57376
  "kind": "OBJECT",
57350
57377
  "name": "StripePaymentIntent",
57351
57378
  "description": null,
57352
57379
  "fields": [
57380
+ {
57381
+ "name": "amount",
57382
+ "description": null,
57383
+ "args": [],
57384
+ "type": {
57385
+ "kind": "NON_NULL",
57386
+ "name": null,
57387
+ "ofType": {
57388
+ "kind": "SCALAR",
57389
+ "name": "String",
57390
+ "ofType": null
57391
+ }
57392
+ },
57393
+ "isDeprecated": false,
57394
+ "deprecationReason": null
57395
+ },
57396
+ {
57397
+ "name": "amount_stripe_fee",
57398
+ "description": null,
57399
+ "args": [],
57400
+ "type": {
57401
+ "kind": "NON_NULL",
57402
+ "name": null,
57403
+ "ofType": {
57404
+ "kind": "SCALAR",
57405
+ "name": "String",
57406
+ "ofType": null
57407
+ }
57408
+ },
57409
+ "isDeprecated": false,
57410
+ "deprecationReason": null
57411
+ },
57412
+ {
57413
+ "name": "client_secret",
57414
+ "description": null,
57415
+ "args": [],
57416
+ "type": {
57417
+ "kind": "NON_NULL",
57418
+ "name": null,
57419
+ "ofType": {
57420
+ "kind": "SCALAR",
57421
+ "name": "String",
57422
+ "ofType": null
57423
+ }
57424
+ },
57425
+ "isDeprecated": false,
57426
+ "deprecationReason": null
57427
+ },
57353
57428
  {
57354
57429
  "name": "created_at",
57355
57430
  "description": null,
package/index.d.ts CHANGED
@@ -366,15 +366,6 @@ export type AddRetailerToRetailerAccountResponse = {
366
366
  website?: Maybe<Scalars['String']['output']>;
367
367
  };
368
368
 
369
- export type AddStripePaymentIntent = {
370
- id: Scalars['ID']['input'];
371
- payment_intent_id: Scalars['String']['input'];
372
- payment_intent_object: Scalars['String']['input'];
373
- status: Scalars['String']['input'];
374
- type_id: Scalars['String']['input'];
375
- wallet_type: Scalars['String']['input'];
376
- };
377
-
378
369
  export type AdsByBrandParams = {
379
370
  brand_id: Scalars['ID']['input'];
380
371
  filter_paging_parameters?: InputMaybe<FilterPagingParams>;
@@ -2022,6 +2013,14 @@ export type CreateShareSettingCarouselShareSettingParams = {
2022
2013
  share_setting_copy_options_attributes?: InputMaybe<Array<SuggestedCopyInput>>;
2023
2014
  };
2024
2015
 
2016
+ export type CreateStripePaymentIntentInput = {
2017
+ amount_cents: Scalars['String']['input'];
2018
+ currency: Scalars['String']['input'];
2019
+ payment_type: Scalars['String']['input'];
2020
+ type: Scalars['String']['input'];
2021
+ type_id: Scalars['ID']['input'];
2022
+ };
2023
+
2025
2024
  export type CreateSupportEmailRequest = {
2026
2025
  email_address: Scalars['String']['input'];
2027
2026
  message: Scalars['String']['input'];
@@ -4088,7 +4087,6 @@ export type Mutation = {
4088
4087
  addBillboard?: Maybe<Billboard>;
4089
4088
  addContract?: Maybe<Contract>;
4090
4089
  addLogoToAdAccount: AdAccount;
4091
- addPaymentIntent?: Maybe<StripePaymentIntent>;
4092
4090
  addRetailerToRetailerAccount: AddRetailerToRetailerAccountResponse;
4093
4091
  approveContentRequest: ContentRequest;
4094
4092
  batchAcceptBrandRequests: Scalars['String']['output'];
@@ -4129,6 +4127,7 @@ export type Mutation = {
4129
4127
  createNote: Note;
4130
4128
  /** will create or update a goal set for a given brand, user must have internal permissions */
4131
4129
  createOrUpdateGoalSet: GoalSet;
4130
+ createPaymentIntent?: Maybe<StripePaymentIntent>;
4132
4131
  createPlatformAccessRequest?: Maybe<PlatformAccessRequest>;
4133
4132
  createRetailer: CreateRetailerResponse;
4134
4133
  createShareSettingBulk: Array<ShareSetting>;
@@ -4286,11 +4285,6 @@ export type MutationAddLogoToAdAccountArgs = {
4286
4285
  };
4287
4286
 
4288
4287
 
4289
- export type MutationAddPaymentIntentArgs = {
4290
- data: AddStripePaymentIntent;
4291
- };
4292
-
4293
-
4294
4288
  export type MutationAddRetailerToRetailerAccountArgs = {
4295
4289
  params: AddRetailerToRetailerAccountParams;
4296
4290
  };
@@ -4516,6 +4510,11 @@ export type MutationCreateOrUpdateGoalSetArgs = {
4516
4510
  };
4517
4511
 
4518
4512
 
4513
+ export type MutationCreatePaymentIntentArgs = {
4514
+ req: CreateStripePaymentIntentInput;
4515
+ };
4516
+
4517
+
4519
4518
  export type MutationCreatePlatformAccessRequestArgs = {
4520
4519
  platform_access_request: CreatePlatformAccessRequestParams;
4521
4520
  };
@@ -6900,8 +6899,17 @@ export type StatsType =
6900
6899
  | 'accelerate_retailer_campaign'
6901
6900
  | 'retailer_campaigns';
6902
6901
 
6902
+ export type StripePaymentClientSecretResponse = {
6903
+ __typename?: 'StripePaymentClientSecretResponse';
6904
+ client_secret: Scalars['String']['output'];
6905
+ id: Scalars['String']['output'];
6906
+ };
6907
+
6903
6908
  export type StripePaymentIntent = {
6904
6909
  __typename?: 'StripePaymentIntent';
6910
+ amount: Scalars['String']['output'];
6911
+ amount_stripe_fee: Scalars['String']['output'];
6912
+ client_secret: Scalars['String']['output'];
6905
6913
  created_at: Scalars['String']['output'];
6906
6914
  id: Scalars['ID']['output'];
6907
6915
  payment_intent_id: Scalars['String']['output'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promoboxx/graphql-gateway-types",
3
- "version": "1.26.0",
3
+ "version": "1.28.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/schema.graphql CHANGED
@@ -345,15 +345,6 @@ type AddRetailerToRetailerAccountResponse {
345
345
  website: String
346
346
  }
347
347
 
348
- input AddStripePaymentIntent {
349
- id: ID!
350
- payment_intent_id: String!
351
- payment_intent_object: String!
352
- status: String!
353
- type_id: String!
354
- wallet_type: String!
355
- }
356
-
357
348
  input AdsByBrandParams {
358
349
  brand_id: ID!
359
350
  filter_paging_parameters: FilterPagingParams
@@ -1946,6 +1937,14 @@ input CreateShareSettingCarouselShareSettingParams {
1946
1937
  share_setting_copy_options_attributes: [SuggestedCopyInput!]
1947
1938
  }
1948
1939
 
1940
+ input CreateStripePaymentIntentInput {
1941
+ amount_cents: String!
1942
+ currency: String!
1943
+ payment_type: String!
1944
+ type: String!
1945
+ type_id: ID!
1946
+ }
1947
+
1949
1948
  input CreateSupportEmailRequest {
1950
1949
  email_address: String!
1951
1950
  message: String!
@@ -3946,7 +3945,6 @@ type Mutation {
3946
3945
  addBillboard(data: AddBillboardData!): Billboard
3947
3946
  addContract(brandId: ID!, data: AddContractData!): Contract
3948
3947
  addLogoToAdAccount(params: AddLogoToAdAccountParams!): AdAccount!
3949
- addPaymentIntent(data: AddStripePaymentIntent!): StripePaymentIntent
3950
3948
  addRetailerToRetailerAccount(params: AddRetailerToRetailerAccountParams!): AddRetailerToRetailerAccountResponse!
3951
3949
  approveContentRequest(campaign_request_id: ID!): ContentRequest!
3952
3950
  batchAcceptBrandRequests(resource_id: ID!, resource_type: String!): String!
@@ -3988,6 +3986,7 @@ type Mutation {
3988
3986
  will create or update a goal set for a given brand, user must have internal permissions
3989
3987
  """
3990
3988
  createOrUpdateGoalSet(brand_id: String!, goals: [GoalMetricData!]!): GoalSet!
3989
+ createPaymentIntent(req: CreateStripePaymentIntentInput!): StripePaymentIntent
3991
3990
  createPlatformAccessRequest(platform_access_request: CreatePlatformAccessRequestParams!): PlatformAccessRequest
3992
3991
  createRetailer(params: CreateRetailerParams!): CreateRetailerResponse!
3993
3992
  createShareSettingBulk(campaign_id: ID!, params: CreateShareSettingBulkParams!): [ShareSetting!]!
@@ -5321,7 +5320,15 @@ enum StatsType {
5321
5320
  retailer_campaigns
5322
5321
  }
5323
5322
 
5323
+ type StripePaymentClientSecretResponse {
5324
+ client_secret: String!
5325
+ id: String!
5326
+ }
5327
+
5324
5328
  type StripePaymentIntent {
5329
+ amount: String!
5330
+ amount_stripe_fee: String!
5331
+ client_secret: String!
5325
5332
  created_at: String!
5326
5333
  id: ID!
5327
5334
  payment_intent_id: String!