@promoboxx/graphql-gateway-types 1.1096.0 → 1.1098.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.
@@ -10444,11 +10444,11 @@
10444
10444
  "fields": null,
10445
10445
  "inputFields": [
10446
10446
  {
10447
- "name": "fragment",
10447
+ "name": "content",
10448
10448
  "description": null,
10449
10449
  "type": {
10450
- "kind": "INPUT_OBJECT",
10451
- "name": "CASvcFragmentInput",
10450
+ "kind": "SCALAR",
10451
+ "name": "String",
10452
10452
  "ofType": null
10453
10453
  },
10454
10454
  "defaultValue": null,
@@ -10496,7 +10496,7 @@
10496
10496
  "fields": null,
10497
10497
  "inputFields": [
10498
10498
  {
10499
- "name": "fragmentIds",
10499
+ "name": "contents",
10500
10500
  "description": null,
10501
10501
  "type": {
10502
10502
  "kind": "LIST",
@@ -10506,7 +10506,7 @@
10506
10506
  "name": null,
10507
10507
  "ofType": {
10508
10508
  "kind": "SCALAR",
10509
- "name": "ID",
10509
+ "name": "String",
10510
10510
  "ofType": null
10511
10511
  }
10512
10512
  }
@@ -10516,7 +10516,7 @@
10516
10516
  "deprecationReason": null
10517
10517
  },
10518
10518
  {
10519
- "name": "fragments",
10519
+ "name": "fragmentIds",
10520
10520
  "description": null,
10521
10521
  "type": {
10522
10522
  "kind": "LIST",
@@ -10525,8 +10525,8 @@
10525
10525
  "kind": "NON_NULL",
10526
10526
  "name": null,
10527
10527
  "ofType": {
10528
- "kind": "INPUT_OBJECT",
10529
- "name": "CASvcFragmentInput",
10528
+ "kind": "SCALAR",
10529
+ "name": "ID",
10530
10530
  "ofType": null
10531
10531
  }
10532
10532
  }
@@ -11106,6 +11106,18 @@
11106
11106
  "isDeprecated": false,
11107
11107
  "deprecationReason": null
11108
11108
  },
11109
+ {
11110
+ "name": "metadata",
11111
+ "description": null,
11112
+ "args": [],
11113
+ "type": {
11114
+ "kind": "SCALAR",
11115
+ "name": "Map",
11116
+ "ofType": null
11117
+ },
11118
+ "isDeprecated": false,
11119
+ "deprecationReason": null
11120
+ },
11109
11121
  {
11110
11122
  "name": "text",
11111
11123
  "description": null,
@@ -11135,6 +11147,18 @@
11135
11147
  "isOneOf": false,
11136
11148
  "fields": null,
11137
11149
  "inputFields": [
11150
+ {
11151
+ "name": "metadata",
11152
+ "description": null,
11153
+ "type": {
11154
+ "kind": "SCALAR",
11155
+ "name": "Map",
11156
+ "ofType": null
11157
+ },
11158
+ "defaultValue": null,
11159
+ "isDeprecated": false,
11160
+ "deprecationReason": null
11161
+ },
11138
11162
  {
11139
11163
  "name": "text",
11140
11164
  "description": null,
@@ -11156,6 +11180,126 @@
11156
11180
  "enumValues": null,
11157
11181
  "possibleTypes": null
11158
11182
  },
11183
+ {
11184
+ "kind": "OBJECT",
11185
+ "name": "CASvcFragmentTemplate",
11186
+ "description": null,
11187
+ "isOneOf": null,
11188
+ "fields": [
11189
+ {
11190
+ "name": "createdAt",
11191
+ "description": null,
11192
+ "args": [],
11193
+ "type": {
11194
+ "kind": "NON_NULL",
11195
+ "name": null,
11196
+ "ofType": {
11197
+ "kind": "SCALAR",
11198
+ "name": "String",
11199
+ "ofType": null
11200
+ }
11201
+ },
11202
+ "isDeprecated": false,
11203
+ "deprecationReason": null
11204
+ },
11205
+ {
11206
+ "name": "id",
11207
+ "description": null,
11208
+ "args": [],
11209
+ "type": {
11210
+ "kind": "NON_NULL",
11211
+ "name": null,
11212
+ "ofType": {
11213
+ "kind": "SCALAR",
11214
+ "name": "ID",
11215
+ "ofType": null
11216
+ }
11217
+ },
11218
+ "isDeprecated": false,
11219
+ "deprecationReason": null
11220
+ },
11221
+ {
11222
+ "name": "promptTemplateId",
11223
+ "description": null,
11224
+ "args": [],
11225
+ "type": {
11226
+ "kind": "NON_NULL",
11227
+ "name": null,
11228
+ "ofType": {
11229
+ "kind": "SCALAR",
11230
+ "name": "ID",
11231
+ "ofType": null
11232
+ }
11233
+ },
11234
+ "isDeprecated": false,
11235
+ "deprecationReason": null
11236
+ },
11237
+ {
11238
+ "name": "template",
11239
+ "description": null,
11240
+ "args": [],
11241
+ "type": {
11242
+ "kind": "NON_NULL",
11243
+ "name": null,
11244
+ "ofType": {
11245
+ "kind": "SCALAR",
11246
+ "name": "String",
11247
+ "ofType": null
11248
+ }
11249
+ },
11250
+ "isDeprecated": false,
11251
+ "deprecationReason": null
11252
+ }
11253
+ ],
11254
+ "inputFields": null,
11255
+ "interfaces": [],
11256
+ "enumValues": null,
11257
+ "possibleTypes": null
11258
+ },
11259
+ {
11260
+ "kind": "INPUT_OBJECT",
11261
+ "name": "CASvcFragmentTemplateInput",
11262
+ "description": null,
11263
+ "isOneOf": false,
11264
+ "fields": null,
11265
+ "inputFields": [
11266
+ {
11267
+ "name": "promptTemplateId",
11268
+ "description": null,
11269
+ "type": {
11270
+ "kind": "NON_NULL",
11271
+ "name": null,
11272
+ "ofType": {
11273
+ "kind": "SCALAR",
11274
+ "name": "ID",
11275
+ "ofType": null
11276
+ }
11277
+ },
11278
+ "defaultValue": null,
11279
+ "isDeprecated": false,
11280
+ "deprecationReason": null
11281
+ },
11282
+ {
11283
+ "name": "template",
11284
+ "description": null,
11285
+ "type": {
11286
+ "kind": "NON_NULL",
11287
+ "name": null,
11288
+ "ofType": {
11289
+ "kind": "SCALAR",
11290
+ "name": "String",
11291
+ "ofType": null
11292
+ }
11293
+ },
11294
+ "defaultValue": null,
11295
+ "isDeprecated": false,
11296
+ "deprecationReason": null
11297
+ }
11298
+ ],
11299
+ "interfaces": null,
11300
+ "enumValues": null,
11301
+ "possibleTypes": null
11302
+ },
11159
11303
  {
11160
11304
  "kind": "OBJECT",
11161
11305
  "name": "CASvcFragmentsCollection",
@@ -11330,6 +11474,22 @@
11330
11474
  "description": null,
11331
11475
  "isOneOf": null,
11332
11476
  "fields": [
11477
+ {
11478
+ "name": "brand_id",
11479
+ "description": null,
11480
+ "args": [],
11481
+ "type": {
11482
+ "kind": "NON_NULL",
11483
+ "name": null,
11484
+ "ofType": {
11485
+ "kind": "SCALAR",
11486
+ "name": "ID",
11487
+ "ofType": null
11488
+ }
11489
+ },
11490
+ "isDeprecated": false,
11491
+ "deprecationReason": null
11492
+ },
11333
11493
  {
11334
11494
  "name": "createdAt",
11335
11495
  "description": null,
@@ -11433,6 +11593,22 @@
11433
11593
  },
11434
11594
  "isDeprecated": false,
11435
11595
  "deprecationReason": null
11596
+ },
11597
+ {
11598
+ "name": "prompt_type",
11599
+ "description": null,
11600
+ "args": [],
11601
+ "type": {
11602
+ "kind": "NON_NULL",
11603
+ "name": null,
11604
+ "ofType": {
11605
+ "kind": "SCALAR",
11606
+ "name": "String",
11607
+ "ofType": null
11608
+ }
11609
+ },
11610
+ "isDeprecated": false,
11611
+ "deprecationReason": null
11436
11612
  }
11437
11613
  ],
11438
11614
  "inputFields": null,
@@ -11447,6 +11623,22 @@
11447
11623
  "isOneOf": false,
11448
11624
  "fields": null,
11449
11625
  "inputFields": [
11626
+ {
11627
+ "name": "brand_id",
11628
+ "description": null,
11629
+ "type": {
11630
+ "kind": "NON_NULL",
11631
+ "name": null,
11632
+ "ofType": {
11633
+ "kind": "SCALAR",
11634
+ "name": "ID",
11635
+ "ofType": null
11636
+ }
11637
+ },
11638
+ "defaultValue": null,
11639
+ "isDeprecated": false,
11640
+ "deprecationReason": null
11641
+ },
11450
11642
  {
11451
11643
  "name": "fragment_ids",
11452
11644
  "description": null,
@@ -11526,6 +11718,22 @@
11526
11718
  "defaultValue": null,
11527
11719
  "isDeprecated": false,
11528
11720
  "deprecationReason": null
11721
+ },
11722
+ {
11723
+ "name": "prompt_type",
11724
+ "description": null,
11725
+ "type": {
11726
+ "kind": "NON_NULL",
11727
+ "name": null,
11728
+ "ofType": {
11729
+ "kind": "SCALAR",
11730
+ "name": "String",
11731
+ "ofType": null
11732
+ }
11733
+ },
11734
+ "defaultValue": null,
11735
+ "isDeprecated": false,
11736
+ "deprecationReason": null
11529
11737
  }
11530
11738
  ],
11531
11739
  "interfaces": null,
@@ -50731,6 +50939,39 @@
50731
50939
  "isDeprecated": false,
50732
50940
  "deprecationReason": null
50733
50941
  },
50942
+ {
50943
+ "name": "caSvcCreateFragmentTemplate",
50944
+ "description": null,
50945
+ "args": [
50946
+ {
50947
+ "name": "input",
50948
+ "description": null,
50949
+ "type": {
50950
+ "kind": "NON_NULL",
50951
+ "name": null,
50952
+ "ofType": {
50953
+ "kind": "INPUT_OBJECT",
50954
+ "name": "CASvcFragmentTemplateInput",
50955
+ "ofType": null
50956
+ }
50957
+ },
50958
+ "defaultValue": null,
50959
+ "isDeprecated": false,
50960
+ "deprecationReason": null
50961
+ }
50962
+ ],
50963
+ "type": {
50964
+ "kind": "NON_NULL",
50965
+ "name": null,
50966
+ "ofType": {
50967
+ "kind": "OBJECT",
50968
+ "name": "CASvcFragmentTemplate",
50969
+ "ofType": null
50970
+ }
50971
+ },
50972
+ "isDeprecated": false,
50973
+ "deprecationReason": null
50974
+ },
50734
50975
  {
50735
50976
  "name": "caSvcCreatePrompt",
50736
50977
  "description": null,
@@ -69429,7 +69670,7 @@
69429
69670
  },
69430
69671
  {
69431
69672
  "name": "brand_retailer_ledgers",
69432
- "description": "get brand_retailer_ledgers\na list of business/retailer wallets that are associated to the requested brand. \nEach wallet contains the list of ledgers associated to the business/retailer and their expiration date if applicable.",
69673
+ "description": "get brand_retailer_ledgers\na list of business/retailer wallets that are associated to the requested brand.\nEach wallet contains the list of ledgers associated to the business/retailer and their expiration date if applicable.",
69433
69674
  "args": [
69434
69675
  {
69435
69676
  "name": "brand_id",
@@ -69844,6 +70085,51 @@
69844
70085
  "isDeprecated": false,
69845
70086
  "deprecationReason": null
69846
70087
  },
70088
+ {
70089
+ "name": "caSvcGetPromptByBrandAndType",
70090
+ "description": null,
70091
+ "args": [
70092
+ {
70093
+ "name": "brand_id",
70094
+ "description": null,
70095
+ "type": {
70096
+ "kind": "NON_NULL",
70097
+ "name": null,
70098
+ "ofType": {
70099
+ "kind": "SCALAR",
70100
+ "name": "ID",
70101
+ "ofType": null
70102
+ }
70103
+ },
70104
+ "defaultValue": null,
70105
+ "isDeprecated": false,
70106
+ "deprecationReason": null
70107
+ },
70108
+ {
70109
+ "name": "prompt_type",
70110
+ "description": null,
70111
+ "type": {
70112
+ "kind": "NON_NULL",
70113
+ "name": null,
70114
+ "ofType": {
70115
+ "kind": "SCALAR",
70116
+ "name": "String",
70117
+ "ofType": null
70118
+ }
70119
+ },
70120
+ "defaultValue": null,
70121
+ "isDeprecated": false,
70122
+ "deprecationReason": null
70123
+ }
70124
+ ],
70125
+ "type": {
70126
+ "kind": "OBJECT",
70127
+ "name": "CASvcPrompt",
70128
+ "ofType": null
70129
+ },
70130
+ "isDeprecated": false,
70131
+ "deprecationReason": null
70132
+ },
69847
70133
  {
69848
70134
  "name": "caSvcPromptTemplate",
69849
70135
  "description": null,
package/index.d.ts CHANGED
@@ -1151,14 +1151,14 @@ export type BulkUpdateDigitalAssetParams = {
1151
1151
  };
1152
1152
 
1153
1153
  export type CaSvcAddFragmentToPromptInput = {
1154
- fragment?: InputMaybe<CaSvcFragmentInput>;
1154
+ content?: InputMaybe<Scalars['String']['input']>;
1155
1155
  fragment_id?: InputMaybe<Scalars['ID']['input']>;
1156
1156
  prompt_id: Scalars['ID']['input'];
1157
1157
  };
1158
1158
 
1159
1159
  export type CaSvcAddFragmentsToPromptInput = {
1160
+ contents?: InputMaybe<Array<Scalars['String']['input']>>;
1160
1161
  fragmentIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1161
- fragments?: InputMaybe<Array<CaSvcFragmentInput>>;
1162
1162
  promptId: Scalars['ID']['input'];
1163
1163
  };
1164
1164
 
@@ -1222,13 +1222,28 @@ export type CaSvcFragment = {
1222
1222
  __typename?: 'CASvcFragment';
1223
1223
  createdAt: Scalars['String']['output'];
1224
1224
  id: Scalars['ID']['output'];
1225
+ metadata?: Maybe<Scalars['Map']['output']>;
1225
1226
  text: Scalars['String']['output'];
1226
1227
  };
1227
1228
 
1228
1229
  export type CaSvcFragmentInput = {
1230
+ metadata?: InputMaybe<Scalars['Map']['input']>;
1229
1231
  text: Scalars['String']['input'];
1230
1232
  };
1231
1233
 
1234
+ export type CaSvcFragmentTemplate = {
1235
+ __typename?: 'CASvcFragmentTemplate';
1236
+ createdAt: Scalars['String']['output'];
1237
+ id: Scalars['ID']['output'];
1238
+ promptTemplateId: Scalars['ID']['output'];
1239
+ template: Scalars['String']['output'];
1240
+ };
1241
+
1242
+ export type CaSvcFragmentTemplateInput = {
1243
+ promptTemplateId: Scalars['ID']['input'];
1244
+ template: Scalars['String']['input'];
1245
+ };
1246
+
1232
1247
  export type CaSvcFragmentsCollection = {
1233
1248
  __typename?: 'CASvcFragmentsCollection';
1234
1249
  data?: Maybe<Array<CaSvcFragment>>;
@@ -1247,20 +1262,24 @@ export type CaSvcGeneratePromptInput = {
1247
1262
 
1248
1263
  export type CaSvcPrompt = {
1249
1264
  __typename?: 'CASvcPrompt';
1265
+ brand_id: Scalars['ID']['output'];
1250
1266
  createdAt: Scalars['String']['output'];
1251
1267
  fragments: Array<CaSvcFragment>;
1252
1268
  id: Scalars['ID']['output'];
1253
1269
  prompt_name: Scalars['String']['output'];
1254
1270
  prompt_template: CaSvcPromptTemplate;
1255
1271
  prompt_template_id: Scalars['ID']['output'];
1272
+ prompt_type: Scalars['String']['output'];
1256
1273
  };
1257
1274
 
1258
1275
  export type CaSvcPromptInput = {
1276
+ brand_id: Scalars['ID']['input'];
1259
1277
  fragment_ids?: InputMaybe<Array<Scalars['ID']['input']>>;
1260
1278
  fragments?: InputMaybe<Array<CaSvcFragmentInput>>;
1261
1279
  prompt_name: Scalars['String']['input'];
1262
1280
  prompt_template?: InputMaybe<CaSvcPromptTemplateInput>;
1263
1281
  prompt_template_id?: InputMaybe<Scalars['ID']['input']>;
1282
+ prompt_type: Scalars['String']['input'];
1264
1283
  };
1265
1284
 
1266
1285
  export type CaSvcPromptTemplate = {
@@ -5338,6 +5357,7 @@ export type Mutation = {
5338
5357
  caSvcCreateAnalysisRun: CaSvcAnalysisRun;
5339
5358
  caSvcCreateAnalysisRunForGroup: CaSvcAnalysisRun;
5340
5359
  caSvcCreateFragment: CaSvcFragment;
5360
+ caSvcCreateFragmentTemplate: CaSvcFragmentTemplate;
5341
5361
  caSvcCreatePrompt: CaSvcPrompt;
5342
5362
  caSvcCreatePromptTemplate: CaSvcPromptTemplate;
5343
5363
  caSvcCreateResourceGroup: CaSvcResourceGroup;
@@ -6042,6 +6062,12 @@ export type MutationCaSvcCreateFragmentArgs = {
6042
6062
  };
6043
6063
 
6044
6064
 
6065
+ /** mutation root */
6066
+ export type MutationCaSvcCreateFragmentTemplateArgs = {
6067
+ input: CaSvcFragmentTemplateInput;
6068
+ };
6069
+
6070
+
6045
6071
  /** mutation root */
6046
6072
  export type MutationCaSvcCreatePromptArgs = {
6047
6073
  input: CaSvcPromptInput;
@@ -8749,6 +8775,7 @@ export type Query = {
8749
8775
  caSvcFragment?: Maybe<CaSvcFragment>;
8750
8776
  caSvcFragments: CaSvcFragmentsCollection;
8751
8777
  caSvcGetPrompt: CaSvcPrompt;
8778
+ caSvcGetPromptByBrandAndType?: Maybe<CaSvcPrompt>;
8752
8779
  caSvcPromptTemplate?: Maybe<CaSvcPromptTemplate>;
8753
8780
  caSvcPromptTemplates: CaSvcPromptTemplatesCollection;
8754
8781
  caSvcPrompts: CaSvcPromptsCollection;
@@ -9205,6 +9232,12 @@ export type QueryCaSvcGetPromptArgs = {
9205
9232
  };
9206
9233
 
9207
9234
 
9235
+ export type QueryCaSvcGetPromptByBrandAndTypeArgs = {
9236
+ brand_id: Scalars['ID']['input'];
9237
+ prompt_type: Scalars['String']['input'];
9238
+ };
9239
+
9240
+
9208
9241
  export type QueryCaSvcPromptTemplateArgs = {
9209
9242
  id: Scalars['ID']['input'];
9210
9243
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promoboxx/graphql-gateway-types",
3
- "version": "1.1096.0",
3
+ "version": "1.1098.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/schema.graphql CHANGED
@@ -1122,14 +1122,14 @@ input BulkUpdateDigitalAssetParams {
1122
1122
  }
1123
1123
 
1124
1124
  input CASvcAddFragmentToPromptInput {
1125
- fragment: CASvcFragmentInput
1125
+ content: String
1126
1126
  fragment_id: ID
1127
1127
  prompt_id: ID!
1128
1128
  }
1129
1129
 
1130
1130
  input CASvcAddFragmentsToPromptInput {
1131
+ contents: [String!]
1131
1132
  fragmentIds: [ID!]
1132
- fragments: [CASvcFragmentInput!]
1133
1133
  promptId: ID!
1134
1134
  }
1135
1135
 
@@ -1188,13 +1188,27 @@ type CASvcAnalysisRunsCollection {
1188
1188
  type CASvcFragment {
1189
1189
  createdAt: String!
1190
1190
  id: ID!
1191
+ metadata: Map
1191
1192
  text: String!
1192
1193
  }
1193
1194
 
1194
1195
  input CASvcFragmentInput {
1196
+ metadata: Map
1195
1197
  text: String!
1196
1198
  }
1197
1199
 
1200
+ type CASvcFragmentTemplate {
1201
+ createdAt: String!
1202
+ id: ID!
1203
+ promptTemplateId: ID!
1204
+ template: String!
1205
+ }
1206
+
1207
+ input CASvcFragmentTemplateInput {
1208
+ promptTemplateId: ID!
1209
+ template: String!
1210
+ }
1211
+
1198
1212
  type CASvcFragmentsCollection {
1199
1213
  data: [CASvcFragment!]
1200
1214
  hasNextPage: Boolean!
@@ -1211,20 +1225,24 @@ input CASvcGeneratePromptInput {
1211
1225
  }
1212
1226
 
1213
1227
  type CASvcPrompt {
1228
+ brand_id: ID!
1214
1229
  createdAt: String!
1215
1230
  fragments: [CASvcFragment!]!
1216
1231
  id: ID!
1217
1232
  prompt_name: String!
1218
1233
  prompt_template: CASvcPromptTemplate!
1219
1234
  prompt_template_id: ID!
1235
+ prompt_type: String!
1220
1236
  }
1221
1237
 
1222
1238
  input CASvcPromptInput {
1239
+ brand_id: ID!
1223
1240
  fragment_ids: [ID!]
1224
1241
  fragments: [CASvcFragmentInput!]
1225
1242
  prompt_name: String!
1226
1243
  prompt_template: CASvcPromptTemplateInput
1227
1244
  prompt_template_id: ID
1245
+ prompt_type: String!
1228
1246
  }
1229
1247
 
1230
1248
  type CASvcPromptTemplate {
@@ -5105,6 +5123,7 @@ type Mutation {
5105
5123
  caSvcCreateAnalysisRun(input: CASvcAnalysisRunInput!): CASvcAnalysisRun!
5106
5124
  caSvcCreateAnalysisRunForGroup(input: CASvcAnalysisRunGroupInput!): CASvcAnalysisRun!
5107
5125
  caSvcCreateFragment(input: CASvcFragmentInput!): CASvcFragment!
5126
+ caSvcCreateFragmentTemplate(input: CASvcFragmentTemplateInput!): CASvcFragmentTemplate!
5108
5127
  caSvcCreatePrompt(input: CASvcPromptInput!): CASvcPrompt!
5109
5128
  caSvcCreatePromptTemplate(input: CASvcPromptTemplateInput!): CASvcPromptTemplate!
5110
5129
  caSvcCreateResourceGroup(input: CASvcResourceGroupInput!): CASvcResourceGroup!
@@ -7562,7 +7581,7 @@ type Query {
7562
7581
 
7563
7582
  """
7564
7583
  get brand_retailer_ledgers
7565
- a list of business/retailer wallets that are associated to the requested brand.
7584
+ a list of business/retailer wallets that are associated to the requested brand.
7566
7585
  Each wallet contains the list of ledgers associated to the business/retailer and their expiration date if applicable.
7567
7586
  """
7568
7587
  brand_retailer_ledgers(brand_id: ID!, business_ids: [ID!]!, funded: Boolean): WalletsResponse!
@@ -7574,6 +7593,7 @@ type Query {
7574
7593
  caSvcFragment(id: ID!): CASvcFragment
7575
7594
  caSvcFragments(limit: Int, offset: Int): CASvcFragmentsCollection!
7576
7595
  caSvcGetPrompt(id: ID!): CASvcPrompt!
7596
+ caSvcGetPromptByBrandAndType(brand_id: ID!, prompt_type: String!): CASvcPrompt
7577
7597
  caSvcPromptTemplate(id: ID!): CASvcPromptTemplate
7578
7598
  caSvcPromptTemplates(limit: Int, offset: Int): CASvcPromptTemplatesCollection!
7579
7599
  caSvcPrompts(limit: Int, offset: Int): CASvcPromptsCollection!