@meniga/insights-factory-bank-admin 1.19.0-alpha.2 → 1.19.0-alpha.24

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.
Files changed (2) hide show
  1. package/index.ts +32 -6
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -142,6 +142,13 @@ export interface ChannelPreviewUserSearchResponse
142
142
  users: ChannelPreviewUserDto[];
143
143
  totalCount: number;
144
144
  }
145
+ export interface ActiveContentVariant
146
+ {
147
+ name: string;
148
+ order: number;
149
+ condition?: string;
150
+ dataModel?: string;
151
+ }
145
152
  export interface ActiveInsightDefinition
146
153
  {
147
154
  versionId: number;
@@ -178,6 +185,7 @@ export interface InsightDefinitionContentTemplate
178
185
  validityPeriodUnit?: ExpirationDateTimeIntervalUnit;
179
186
  maximumExpirationDate?: string;
180
187
  sendOncePerIntervalUnit?: CalendarIntervalUnit;
188
+ contentVariants?: ActiveContentVariant[];
181
189
  }
182
190
  export interface TriggeringEvent
183
191
  {
@@ -1161,8 +1169,8 @@ export interface CreateInsightDefinitionContentTemplateRequest
1161
1169
  channelId: string;
1162
1170
  /** Content Template Identifier */
1163
1171
  contentTemplateId: number;
1164
- /** JSON containing data model presented on Insight Factory UI. It consists of fields' values and dynamic content. For detailed information please visit Dynamic Content rendering specification. Link can be found in the Swagger API description */
1165
- dataUi: string;
1172
+ /** JSON containing data model presented on Insight Factory UI. It consists of fields' values and dynamic content. For detailed information please visit Dynamic Content rendering specification. Link can be found in the Swagger API description. Use in single variant mode. */
1173
+ dataUi?: string;
1166
1174
  /**
1167
1175
  * If true, insight message created by this definition will be send to user only once via given channel, no matter how
1168
1176
  * many times an event matches the criteria.
@@ -1176,6 +1184,8 @@ export interface CreateInsightDefinitionContentTemplateRequest
1176
1184
  minimalTimeIntervalUnit?: TimeIntervalUnit;
1177
1185
  /** Message Expiration Policy. Defines the rules for how and when a message generated by the associated channel will expire and no longer be available to the user. */
1178
1186
  messageExpirationPolicy?: FixedMessageExpirationPolicyModel | RelativeMessageExpirationPolicyModel | FromFirstMessageExpirationPolicyModel;
1187
+ /** Variants of content template. Use in multi variant mode. */
1188
+ contentVariants?: InsightDefinitionContentVariantRequestModel[];
1179
1189
  }
1180
1190
  /**
1181
1191
  * Represents the schedule of insight definition being created. Scheduled definition could be either one-off or recurring event.
@@ -1236,8 +1246,8 @@ export interface CurrentInsightDefinitionContentTemplateReadModel
1236
1246
  channelId: string;
1237
1247
  /** Content Template Identifier */
1238
1248
  contentTemplateId: number;
1239
- /** JSON containing Dynamic or static content provided by the Bank Admin. For detailed information please visit Dynamic Content rendering specification. Link can be found in the Swagger API description */
1240
- dataUi: string;
1249
+ /** JSON containing Dynamic or static content provided by the Bank Admin. For detailed information please visit Dynamic Content rendering specification. Link can be found in the Swagger API description. Used in single variant mode. */
1250
+ dataUi?: string;
1241
1251
  /**
1242
1252
  * If true, insight message created by this definition will be send to user only once via given channel, no matter how
1243
1253
  * many times an event matches the criteria.
@@ -1251,6 +1261,8 @@ export interface CurrentInsightDefinitionContentTemplateReadModel
1251
1261
  minimalTimeIntervalUnit?: TimeIntervalUnit;
1252
1262
  /** Message Expiration Policy. Defines the rules for how and when a message generated by the associated channel will expire and no longer be available to the user. */
1253
1263
  messageExpirationPolicy?: FixedMessageExpirationPolicyModel | RelativeMessageExpirationPolicyModel | FromFirstMessageExpirationPolicyModel;
1264
+ /** Variants of content template. Used in multi variant mode. */
1265
+ contentVariants?: InsightDefinitionContentVariantRequestModel[];
1254
1266
  }
1255
1267
  export interface CurrentInsightDefinitionReadModel
1256
1268
  {
@@ -1416,6 +1428,18 @@ export interface InsightDefinitionAttributeIdNameReadModel
1416
1428
  */
1417
1429
  name: string;
1418
1430
  }
1431
+ /** Represents content variant in multiple variants mode for API requests */
1432
+ export interface InsightDefinitionContentVariantRequestModel
1433
+ {
1434
+ /** Variant name */
1435
+ name: string;
1436
+ /** Indicates if shared rules should be met */
1437
+ sharedRulesMet: boolean;
1438
+ /** UI representation of variant condition */
1439
+ conditionUI?: string;
1440
+ /** JSON containing data model for this variant */
1441
+ dataUI: string;
1442
+ }
1419
1443
  /** Represents possible values of insight definition attributes */
1420
1444
  export interface InsightsDefinitionAttributesReadModel
1421
1445
  {
@@ -1507,8 +1531,8 @@ export interface UpdateInsightDefinitionContentTemplateRequest
1507
1531
  channelId: string;
1508
1532
  /** Content Template Identifier */
1509
1533
  contentTemplateId: number;
1510
- /** JSON containing Dynamic or static content provided by the Bank Admin. For detailed information please visit Dynamic Content rendering specification. Link can be found in the Swagger API description */
1511
- dataUi: string;
1534
+ /** JSON containing Dynamic or static content provided by the Bank Admin. For detailed information please visit Dynamic Content rendering specification. Link can be found in the Swagger API description. Use in single variant mode. */
1535
+ dataUi?: string;
1512
1536
  /**
1513
1537
  * If true, insight message created by this definition will be send to user only once via given channel, no matter how
1514
1538
  * many times an event matches the criteria.
@@ -1522,6 +1546,8 @@ export interface UpdateInsightDefinitionContentTemplateRequest
1522
1546
  minimalTimeIntervalUnit?: TimeIntervalUnit;
1523
1547
  /** Message Expiration Policy. Defines the rules for how and when a message generated by the associated channel will expire and no longer be available to the user. */
1524
1548
  messageExpirationPolicy?: FixedMessageExpirationPolicyModel | RelativeMessageExpirationPolicyModel | FromFirstMessageExpirationPolicyModel;
1549
+ /** Variants of content template. Use in multi variant mode. */
1550
+ contentVariants?: InsightDefinitionContentVariantRequestModel[];
1525
1551
  }
1526
1552
  /**
1527
1553
  * Represents the schedule of insight definition being updated. Scheduled definition could be either one-off or recurring event.
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name": "@meniga/insights-factory-bank-admin","version": "1.19.0-alpha.2","main": "index.ts","scripts": {},"license": "ISC"}
1
+ {"name": "@meniga/insights-factory-bank-admin","version": "1.19.0-alpha.24","main": "index.ts","scripts": {},"license": "ISC"}