@streamlayer/sl-eslib 5.96.0 → 5.97.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/sl-eslib",
3
- "version": "5.96.0",
3
+ "version": "5.97.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -168,6 +168,56 @@ export declare enum QuestionImages {
168
168
  CENTERED = 4,
169
169
  }
170
170
 
171
+ /**
172
+ * @generated from enum streamlayer.interactive.NotificationPromotionImagePozition
173
+ */
174
+ export declare enum NotificationPromotionImagePozition {
175
+ /**
176
+ * @generated from enum value: NOTIFICATION_PROMOTION_IMAGE_POZITION_UNSET = 0;
177
+ */
178
+ UNSET = 0,
179
+
180
+ /**
181
+ * @generated from enum value: NOTIFICATION_PROMOTION_IMAGE_POZITION_INSIDE = 1;
182
+ */
183
+ INSIDE = 1,
184
+
185
+ /**
186
+ * @generated from enum value: NOTIFICATION_PROMOTION_IMAGE_POZITION_OUTSIDE_CENTER = 2;
187
+ */
188
+ OUTSIDE_CENTER = 2,
189
+
190
+ /**
191
+ * @generated from enum value: NOTIFICATION_PROMOTION_IMAGE_POZITION_OUTSIDE_BOTTOM = 3;
192
+ */
193
+ OUTSIDE_BOTTOM = 3,
194
+
195
+ /**
196
+ * @generated from enum value: NOTIFICATION_PROMOTION_IMAGE_POZITION_FILL = 4;
197
+ */
198
+ FILL = 4,
199
+ }
200
+
201
+ /**
202
+ * @generated from enum streamlayer.interactive.NotificationSponsorLogoPosition
203
+ */
204
+ export declare enum NotificationSponsorLogoPosition {
205
+ /**
206
+ * @generated from enum value: NOTIFICATION_SPONSOR_LOGO_POSITION_UNSET = 0;
207
+ */
208
+ UNSET = 0,
209
+
210
+ /**
211
+ * @generated from enum value: NOTIFICATION_SPONSOR_LOGO_POSITION_INSIDE = 1;
212
+ */
213
+ INSIDE = 1,
214
+
215
+ /**
216
+ * @generated from enum value: NOTIFICATION_SPONSOR_LOGO_POSITION_OUTSIDE = 2;
217
+ */
218
+ OUTSIDE = 2,
219
+ }
220
+
171
221
  /**
172
222
  * @generated from enum streamlayer.interactive.ImagePosition
173
223
  */
@@ -489,6 +539,45 @@ export declare class Sponsorship extends Message<Sponsorship> {
489
539
  static equals(a: Sponsorship | PlainMessage<Sponsorship> | undefined, b: Sponsorship | PlainMessage<Sponsorship> | undefined): boolean;
490
540
  }
491
541
 
542
+ /**
543
+ * @generated from message streamlayer.interactive.PromotionNotification
544
+ */
545
+ export declare class PromotionNotification extends Message<PromotionNotification> {
546
+ /**
547
+ * @generated from field: string sponsor_logo = 1;
548
+ */
549
+ sponsorLogo: string;
550
+
551
+ /**
552
+ * @generated from field: streamlayer.interactive.NotificationSponsorLogoPosition sponsor_logo_position = 2;
553
+ */
554
+ sponsorLogoPosition: NotificationSponsorLogoPosition;
555
+
556
+ /**
557
+ * @generated from field: streamlayer.interactive.CTAButton cta_button = 3;
558
+ */
559
+ ctaButton?: CTAButton;
560
+
561
+ /**
562
+ * @generated from field: streamlayer.interactive.NotificationPromotionImagePozition image_pozition = 4;
563
+ */
564
+ imagePozition: NotificationPromotionImagePozition;
565
+
566
+ constructor(data?: PartialMessage<PromotionNotification>);
567
+
568
+ static readonly runtime: typeof proto3;
569
+ static readonly typeName = "streamlayer.interactive.PromotionNotification";
570
+ static readonly fields: FieldList;
571
+
572
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PromotionNotification;
573
+
574
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PromotionNotification;
575
+
576
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PromotionNotification;
577
+
578
+ static equals(a: PromotionNotification | PlainMessage<PromotionNotification> | undefined, b: PromotionNotification | PlainMessage<PromotionNotification> | undefined): boolean;
579
+ }
580
+
492
581
  /**
493
582
  * @generated from message streamlayer.interactive.QuestionNotification
494
583
  */
@@ -524,25 +613,9 @@ export declare class QuestionNotification extends Message<QuestionNotification>
524
613
  imageMode: QuestionImages;
525
614
 
526
615
  /**
527
- * for promotion
528
- *
529
- * @generated from field: optional string sponsor_logo = 7;
530
- */
531
- sponsorLogo?: string;
532
-
533
- /**
534
- * for promotion
535
- *
536
- * @generated from field: optional streamlayer.interactive.QuestionImages sponsor_logo_mode = 8;
537
- */
538
- sponsorLogoMode?: QuestionImages;
539
-
540
- /**
541
- * for promotion
542
- *
543
- * @generated from field: optional streamlayer.interactive.CTAButton cta_button = 9;
616
+ * @generated from field: streamlayer.interactive.PromotionNotification promotion = 7;
544
617
  */
545
- ctaButton?: CTAButton;
618
+ promotion?: PromotionNotification;
546
619
 
547
620
  constructor(data?: PartialMessage<QuestionNotification>);
548
621
 
@@ -1163,6 +1236,20 @@ export declare class QuestionOptions_PromotionOptions extends Message<QuestionOp
1163
1236
  */
1164
1237
  logoMode: PromotionLogoMode;
1165
1238
 
1239
+ /**
1240
+ * save coupon from loaded from constructor url
1241
+ *
1242
+ * @generated from field: string coupon_zip = 8;
1243
+ */
1244
+ couponZip: string;
1245
+
1246
+ /**
1247
+ * url to navigate from barcode
1248
+ *
1249
+ * @generated from field: string coupon_barcode_url = 9;
1250
+ */
1251
+ couponBarcodeUrl: string;
1252
+
1166
1253
  constructor(data?: PartialMessage<QuestionOptions_PromotionOptions>);
1167
1254
 
1168
1255
  static readonly runtime: typeof proto3;
@@ -87,6 +87,32 @@ export const QuestionImages = proto3.makeEnum(
87
87
  ],
88
88
  );
89
89
 
90
+ /**
91
+ * @generated from enum streamlayer.interactive.NotificationPromotionImagePozition
92
+ */
93
+ export const NotificationPromotionImagePozition = proto3.makeEnum(
94
+ "streamlayer.interactive.NotificationPromotionImagePozition",
95
+ [
96
+ {no: 0, name: "NOTIFICATION_PROMOTION_IMAGE_POZITION_UNSET", localName: "UNSET"},
97
+ {no: 1, name: "NOTIFICATION_PROMOTION_IMAGE_POZITION_INSIDE", localName: "INSIDE"},
98
+ {no: 2, name: "NOTIFICATION_PROMOTION_IMAGE_POZITION_OUTSIDE_CENTER", localName: "OUTSIDE_CENTER"},
99
+ {no: 3, name: "NOTIFICATION_PROMOTION_IMAGE_POZITION_OUTSIDE_BOTTOM", localName: "OUTSIDE_BOTTOM"},
100
+ {no: 4, name: "NOTIFICATION_PROMOTION_IMAGE_POZITION_FILL", localName: "FILL"},
101
+ ],
102
+ );
103
+
104
+ /**
105
+ * @generated from enum streamlayer.interactive.NotificationSponsorLogoPosition
106
+ */
107
+ export const NotificationSponsorLogoPosition = proto3.makeEnum(
108
+ "streamlayer.interactive.NotificationSponsorLogoPosition",
109
+ [
110
+ {no: 0, name: "NOTIFICATION_SPONSOR_LOGO_POSITION_UNSET", localName: "UNSET"},
111
+ {no: 1, name: "NOTIFICATION_SPONSOR_LOGO_POSITION_INSIDE", localName: "INSIDE"},
112
+ {no: 2, name: "NOTIFICATION_SPONSOR_LOGO_POSITION_OUTSIDE", localName: "OUTSIDE"},
113
+ ],
114
+ );
115
+
90
116
  /**
91
117
  * @generated from enum streamlayer.interactive.ImagePosition
92
118
  */
@@ -242,6 +268,19 @@ export const Sponsorship = proto3.makeMessageType(
242
268
  ],
243
269
  );
244
270
 
271
+ /**
272
+ * @generated from message streamlayer.interactive.PromotionNotification
273
+ */
274
+ export const PromotionNotification = proto3.makeMessageType(
275
+ "streamlayer.interactive.PromotionNotification",
276
+ () => [
277
+ { no: 1, name: "sponsor_logo", kind: "scalar", T: 9 /* ScalarType.STRING */ },
278
+ { no: 2, name: "sponsor_logo_position", kind: "enum", T: proto3.getEnumType(NotificationSponsorLogoPosition) },
279
+ { no: 3, name: "cta_button", kind: "message", T: CTAButton },
280
+ { no: 4, name: "image_pozition", kind: "enum", T: proto3.getEnumType(NotificationPromotionImagePozition) },
281
+ ],
282
+ );
283
+
245
284
  /**
246
285
  * @generated from message streamlayer.interactive.QuestionNotification
247
286
  */
@@ -254,9 +293,7 @@ export const QuestionNotification = proto3.makeMessageType(
254
293
  { no: 4, name: "image_position", kind: "enum", T: proto3.getEnumType(ImagePosition) },
255
294
  { no: 5, name: "body", kind: "scalar", T: 9 /* ScalarType.STRING */ },
256
295
  { no: 6, name: "image_mode", kind: "enum", T: proto3.getEnumType(QuestionImages) },
257
- { no: 7, name: "sponsor_logo", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
258
- { no: 8, name: "sponsor_logo_mode", kind: "enum", T: proto3.getEnumType(QuestionImages), opt: true },
259
- { no: 9, name: "cta_button", kind: "message", T: CTAButton, opt: true },
296
+ { no: 7, name: "promotion", kind: "message", T: PromotionNotification },
260
297
  ],
261
298
  );
262
299
 
@@ -459,6 +496,8 @@ export const QuestionOptions_PromotionOptions = proto3.makeMessageType(
459
496
  { no: 5, name: "additional_banner", kind: "message", T: Banner },
460
497
  { no: 6, name: "coupon", kind: "scalar", T: 9 /* ScalarType.STRING */ },
461
498
  { no: 7, name: "logo_mode", kind: "enum", T: proto3.getEnumType(PromotionLogoMode) },
499
+ { no: 8, name: "coupon_zip", kind: "scalar", T: 9 /* ScalarType.STRING */ },
500
+ { no: 9, name: "coupon_barcode_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
462
501
  ],
463
502
  {localName: "QuestionOptions_PromotionOptions"},
464
503
  );
@@ -15,6 +15,11 @@ export declare class GenerateRequest extends Message<GenerateRequest> {
15
15
  */
16
16
  url: string;
17
17
 
18
+ /**
19
+ * @generated from field: string barcode_url = 2;
20
+ */
21
+ barcodeUrl: string;
22
+
18
23
  constructor(data?: PartialMessage<GenerateRequest>);
19
24
 
20
25
  static readonly runtime: typeof proto3;
@@ -63,6 +68,11 @@ export declare class GenerateResponse_GenerateResponseData extends Message<Gener
63
68
  */
64
69
  link: string;
65
70
 
71
+ /**
72
+ * @generated from field: string barcode_url = 2;
73
+ */
74
+ barcodeUrl: string;
75
+
66
76
  constructor(data?: PartialMessage<GenerateResponse_GenerateResponseData>);
67
77
 
68
78
  static readonly runtime: typeof proto3;
@@ -12,6 +12,7 @@ export const GenerateRequest = proto3.makeMessageType(
12
12
  "streamlayer.pass.GenerateRequest",
13
13
  () => [
14
14
  { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
15
+ { no: 2, name: "barcode_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
15
16
  ],
16
17
  );
17
18
 
@@ -32,6 +33,7 @@ export const GenerateResponse_GenerateResponseData = proto3.makeMessageType(
32
33
  "streamlayer.pass.GenerateResponse.GenerateResponseData",
33
34
  () => [
34
35
  { no: 1, name: "link", kind: "scalar", T: 9 /* ScalarType.STRING */ },
36
+ { no: 2, name: "barcode_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
35
37
  ],
36
38
  {localName: "GenerateResponse_GenerateResponseData"},
37
39
  );