@streamlayer/sl-eslib 5.145.5 → 5.146.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.145.5",
3
+ "version": "5.146.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -518,6 +518,51 @@ export declare enum AutoPlayVideo {
518
518
  DISABLED = 2,
519
519
  }
520
520
 
521
+ /**
522
+ * @generated from enum streamlayer.interactive.ShopGender
523
+ */
524
+ export declare enum ShopGender {
525
+ /**
526
+ * @generated from enum value: SHOP_GENDER_UNSET = 0;
527
+ */
528
+ UNSET = 0,
529
+
530
+ /**
531
+ * @generated from enum value: SHOP_GENDER_MALE = 1;
532
+ */
533
+ MALE = 1,
534
+
535
+ /**
536
+ * @generated from enum value: SHOP_GENDER_FEMALE = 2;
537
+ */
538
+ FEMALE = 2,
539
+
540
+ /**
541
+ * @generated from enum value: SHOP_GENDER_UNISEX = 3;
542
+ */
543
+ UNISEX = 3,
544
+ }
545
+
546
+ /**
547
+ * @generated from enum streamlayer.interactive.SalePrice
548
+ */
549
+ export declare enum SalePrice {
550
+ /**
551
+ * @generated from enum value: SALE_PRICE_UNSET = 0;
552
+ */
553
+ UNSET = 0,
554
+
555
+ /**
556
+ * @generated from enum value: SALE_PRICE_ENABLED = 1;
557
+ */
558
+ ENABLED = 1,
559
+
560
+ /**
561
+ * @generated from enum value: SALE_PRICE_DISABLED = 2;
562
+ */
563
+ DISABLED = 2,
564
+ }
565
+
521
566
  /**
522
567
  * @generated from enum streamlayer.interactive.QuestionAutoPostState
523
568
  */
@@ -1186,6 +1231,118 @@ export declare class AdLoop extends Message<AdLoop> {
1186
1231
  static equals(a: AdLoop | PlainMessage<AdLoop> | undefined, b: AdLoop | PlainMessage<AdLoop> | undefined): boolean;
1187
1232
  }
1188
1233
 
1234
+ /**
1235
+ * @generated from message streamlayer.interactive.Price
1236
+ */
1237
+ export declare class Price extends Message<Price> {
1238
+ /**
1239
+ * @generated from field: string price = 1;
1240
+ */
1241
+ price: string;
1242
+
1243
+ /**
1244
+ * @generated from field: streamlayer.interactive.SalePrice sale_enabled = 2;
1245
+ */
1246
+ saleEnabled: SalePrice;
1247
+
1248
+ /**
1249
+ * @generated from field: string sale_price = 3;
1250
+ */
1251
+ salePrice: string;
1252
+
1253
+ constructor(data?: PartialMessage<Price>);
1254
+
1255
+ static readonly runtime: typeof proto3;
1256
+ static readonly typeName = "streamlayer.interactive.Price";
1257
+ static readonly fields: FieldList;
1258
+
1259
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Price;
1260
+
1261
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Price;
1262
+
1263
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Price;
1264
+
1265
+ static equals(a: Price | PlainMessage<Price> | undefined, b: Price | PlainMessage<Price> | undefined): boolean;
1266
+ }
1267
+
1268
+ /**
1269
+ * @generated from message streamlayer.interactive.Size
1270
+ */
1271
+ export declare class Size extends Message<Size> {
1272
+ /**
1273
+ * @generated from field: string label = 1;
1274
+ */
1275
+ label: string;
1276
+
1277
+ /**
1278
+ * @generated from field: string value = 2;
1279
+ */
1280
+ value: string;
1281
+
1282
+ constructor(data?: PartialMessage<Size>);
1283
+
1284
+ static readonly runtime: typeof proto3;
1285
+ static readonly typeName = "streamlayer.interactive.Size";
1286
+ static readonly fields: FieldList;
1287
+
1288
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Size;
1289
+
1290
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Size;
1291
+
1292
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Size;
1293
+
1294
+ static equals(a: Size | PlainMessage<Size> | undefined, b: Size | PlainMessage<Size> | undefined): boolean;
1295
+ }
1296
+
1297
+ /**
1298
+ * @generated from message streamlayer.interactive.Product
1299
+ */
1300
+ export declare class Product extends Message<Product> {
1301
+ /**
1302
+ * @generated from field: string id = 1;
1303
+ */
1304
+ id: string;
1305
+
1306
+ /**
1307
+ * @generated from field: string image_url = 2;
1308
+ */
1309
+ imageUrl: string;
1310
+
1311
+ /**
1312
+ * @generated from field: string title = 3;
1313
+ */
1314
+ title: string;
1315
+
1316
+ /**
1317
+ * @generated from field: string description = 4;
1318
+ */
1319
+ description: string;
1320
+
1321
+ /**
1322
+ * @generated from field: string color = 5;
1323
+ */
1324
+ color: string;
1325
+
1326
+ /**
1327
+ * @generated from field: string brand = 6;
1328
+ */
1329
+ brand: string;
1330
+
1331
+ constructor(data?: PartialMessage<Product>);
1332
+
1333
+ static readonly runtime: typeof proto3;
1334
+ static readonly typeName = "streamlayer.interactive.Product";
1335
+ static readonly fields: FieldList;
1336
+
1337
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Product;
1338
+
1339
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Product;
1340
+
1341
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Product;
1342
+
1343
+ static equals(a: Product | PlainMessage<Product> | undefined, b: Product | PlainMessage<Product> | undefined): boolean;
1344
+ }
1345
+
1189
1346
  /**
1190
1347
  * @generated from message streamlayer.interactive.QuestionOptions
1191
1348
  */
@@ -2037,6 +2194,50 @@ export declare class QuestionOptions_AdCampaigns extends Message<QuestionOptions
2037
2194
  static equals(a: QuestionOptions_AdCampaigns | PlainMessage<QuestionOptions_AdCampaigns> | undefined, b: QuestionOptions_AdCampaigns | PlainMessage<QuestionOptions_AdCampaigns> | undefined): boolean;
2038
2195
  }
2039
2196
 
2197
+ /**
2198
+ * @generated from message streamlayer.interactive.QuestionOptions.ShopOptions
2199
+ */
2200
+ export declare class QuestionOptions_ShopOptions extends Message<QuestionOptions_ShopOptions> {
2201
+ /**
2202
+ * @generated from field: streamlayer.interactive.Product product = 1;
2203
+ */
2204
+ product?: Product;
2205
+
2206
+ /**
2207
+ * @generated from field: streamlayer.interactive.Price price = 2;
2208
+ */
2209
+ price?: Price;
2210
+
2211
+ /**
2212
+ * @generated from field: repeated streamlayer.interactive.Size available_sizes = 3;
2213
+ */
2214
+ availableSizes: Size[];
2215
+
2216
+ /**
2217
+ * @generated from field: streamlayer.interactive.ShopGender gender = 4;
2218
+ */
2219
+ gender: ShopGender;
2220
+
2221
+ /**
2222
+ * @generated from field: string store_url = 5;
2223
+ */
2224
+ storeUrl: string;
2225
+
2226
+ constructor(data?: PartialMessage<QuestionOptions_ShopOptions>);
2227
+
2228
+ static readonly runtime: typeof proto3;
2229
+ static readonly typeName = "streamlayer.interactive.QuestionOptions.ShopOptions";
2230
+ static readonly fields: FieldList;
2231
+
2232
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QuestionOptions_ShopOptions;
2233
+
2234
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QuestionOptions_ShopOptions;
2235
+
2236
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QuestionOptions_ShopOptions;
2237
+
2238
+ static equals(a: QuestionOptions_ShopOptions | PlainMessage<QuestionOptions_ShopOptions> | undefined, b: QuestionOptions_ShopOptions | PlainMessage<QuestionOptions_ShopOptions> | undefined): boolean;
2239
+ }
2240
+
2040
2241
  /**
2041
2242
  * @generated from message streamlayer.interactive.QuestionOptions.PromotionOptions
2042
2243
  */
@@ -2147,6 +2348,11 @@ export declare class QuestionOptions_PromotionOptions extends Message<QuestionOp
2147
2348
  case: "sendToUserOptions";
2148
2349
  } | { case: undefined; value?: undefined };
2149
2350
 
2351
+ /**
2352
+ * @generated from field: optional streamlayer.interactive.QuestionOptions.ShopOptions shop_options = 18;
2353
+ */
2354
+ shopOptions?: QuestionOptions_ShopOptions;
2355
+
2150
2356
  constructor(data?: PartialMessage<QuestionOptions_PromotionOptions>);
2151
2357
 
2152
2358
  static readonly runtime: typeof proto3;
@@ -269,6 +269,31 @@ export const AutoPlayVideo = /*@__PURE__*/ proto3.makeEnum(
269
269
  ],
270
270
  );
271
271
 
272
+ /**
273
+ * @generated from enum streamlayer.interactive.ShopGender
274
+ */
275
+ export const ShopGender = /*@__PURE__*/ proto3.makeEnum(
276
+ "streamlayer.interactive.ShopGender",
277
+ [
278
+ {no: 0, name: "SHOP_GENDER_UNSET", localName: "UNSET"},
279
+ {no: 1, name: "SHOP_GENDER_MALE", localName: "MALE"},
280
+ {no: 2, name: "SHOP_GENDER_FEMALE", localName: "FEMALE"},
281
+ {no: 3, name: "SHOP_GENDER_UNISEX", localName: "UNISEX"},
282
+ ],
283
+ );
284
+
285
+ /**
286
+ * @generated from enum streamlayer.interactive.SalePrice
287
+ */
288
+ export const SalePrice = /*@__PURE__*/ proto3.makeEnum(
289
+ "streamlayer.interactive.SalePrice",
290
+ [
291
+ {no: 0, name: "SALE_PRICE_UNSET", localName: "UNSET"},
292
+ {no: 1, name: "SALE_PRICE_ENABLED", localName: "ENABLED"},
293
+ {no: 2, name: "SALE_PRICE_DISABLED", localName: "DISABLED"},
294
+ ],
295
+ );
296
+
272
297
  /**
273
298
  * @generated from enum streamlayer.interactive.QuestionAutoPostState
274
299
  */
@@ -508,6 +533,44 @@ export const AdLoop = /*@__PURE__*/ proto3.makeMessageType(
508
533
  ],
509
534
  );
510
535
 
536
+ /**
537
+ * @generated from message streamlayer.interactive.Price
538
+ */
539
+ export const Price = /*@__PURE__*/ proto3.makeMessageType(
540
+ "streamlayer.interactive.Price",
541
+ () => [
542
+ { no: 1, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
543
+ { no: 2, name: "sale_enabled", kind: "enum", T: proto3.getEnumType(SalePrice) },
544
+ { no: 3, name: "sale_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
545
+ ],
546
+ );
547
+
548
+ /**
549
+ * @generated from message streamlayer.interactive.Size
550
+ */
551
+ export const Size = /*@__PURE__*/ proto3.makeMessageType(
552
+ "streamlayer.interactive.Size",
553
+ () => [
554
+ { no: 1, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ },
555
+ { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
556
+ ],
557
+ );
558
+
559
+ /**
560
+ * @generated from message streamlayer.interactive.Product
561
+ */
562
+ export const Product = /*@__PURE__*/ proto3.makeMessageType(
563
+ "streamlayer.interactive.Product",
564
+ () => [
565
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
566
+ { no: 2, name: "image_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
567
+ { no: 3, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
568
+ { no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
569
+ { no: 5, name: "color", kind: "scalar", T: 9 /* ScalarType.STRING */ },
570
+ { no: 6, name: "brand", kind: "scalar", T: 9 /* ScalarType.STRING */ },
571
+ ],
572
+ );
573
+
511
574
  /**
512
575
  * @generated from message streamlayer.interactive.QuestionOptions
513
576
  */
@@ -701,6 +764,21 @@ export const QuestionOptions_AdCampaigns = /*@__PURE__*/ proto3.makeMessageType(
701
764
  {localName: "QuestionOptions_AdCampaigns"},
702
765
  );
703
766
 
767
+ /**
768
+ * @generated from message streamlayer.interactive.QuestionOptions.ShopOptions
769
+ */
770
+ export const QuestionOptions_ShopOptions = /*@__PURE__*/ proto3.makeMessageType(
771
+ "streamlayer.interactive.QuestionOptions.ShopOptions",
772
+ () => [
773
+ { no: 1, name: "product", kind: "message", T: Product },
774
+ { no: 2, name: "price", kind: "message", T: Price },
775
+ { no: 3, name: "available_sizes", kind: "message", T: Size, repeated: true },
776
+ { no: 4, name: "gender", kind: "enum", T: proto3.getEnumType(ShopGender) },
777
+ { no: 5, name: "store_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
778
+ ],
779
+ {localName: "QuestionOptions_ShopOptions"},
780
+ );
781
+
704
782
  /**
705
783
  * @generated from message streamlayer.interactive.QuestionOptions.PromotionOptions
706
784
  */
@@ -724,6 +802,7 @@ export const QuestionOptions_PromotionOptions = /*@__PURE__*/ proto3.makeMessage
724
802
  { no: 15, name: "background_image_portrait_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
725
803
  { no: 16, name: "add_to_wallet_options", kind: "message", T: QuestionOptions_PromotionOptions_AddToWalletOptions, oneof: "button_options" },
726
804
  { no: 17, name: "send_to_user_options", kind: "message", T: QuestionOptions_PromotionOptions_SendToUserOptions, oneof: "button_options" },
805
+ { no: 18, name: "shop_options", kind: "message", T: QuestionOptions_ShopOptions, opt: true },
727
806
  ],
728
807
  {localName: "QuestionOptions_PromotionOptions"},
729
808
  );
@@ -6,6 +6,26 @@
6
6
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
7
  import { Message, proto3 } from "@bufbuild/protobuf";
8
8
 
9
+ /**
10
+ * @generated from enum streamlayer.sdkSettings.organization.webhooks.WebhookToggle
11
+ */
12
+ export declare enum WebhookToggle {
13
+ /**
14
+ * @generated from enum value: WEBHOOK_TOGGLE_UNSET = 0;
15
+ */
16
+ UNSET = 0,
17
+
18
+ /**
19
+ * @generated from enum value: WEBHOOK_TOGGLE_ENABLED = 1;
20
+ */
21
+ ENABLED = 1,
22
+
23
+ /**
24
+ * @generated from enum value: WEBHOOK_TOGGLE_DISABLED = 2;
25
+ */
26
+ DISABLED = 2,
27
+ }
28
+
9
29
  /**
10
30
  * @generated from enum streamlayer.sdkSettings.organization.webhooks.WebhookStatus
11
31
  */
@@ -196,9 +216,9 @@ export declare class UpsertWebhookRequest extends Message<UpsertWebhookRequest>
196
216
  limit?: number;
197
217
 
198
218
  /**
199
- * @generated from field: optional bool is_disabled = 11;
219
+ * @generated from field: optional streamlayer.sdkSettings.organization.webhooks.WebhookToggle webhook_toggle = 11;
200
220
  */
201
- isDisabled?: boolean;
221
+ webhookToggle?: WebhookToggle;
202
222
 
203
223
  constructor(data?: PartialMessage<UpsertWebhookRequest>);
204
224
 
@@ -5,6 +5,18 @@
5
5
 
6
6
  import { proto3 } from "@bufbuild/protobuf";
7
7
 
8
+ /**
9
+ * @generated from enum streamlayer.sdkSettings.organization.webhooks.WebhookToggle
10
+ */
11
+ export const WebhookToggle = /*@__PURE__*/ proto3.makeEnum(
12
+ "streamlayer.sdkSettings.organization.webhooks.WebhookToggle",
13
+ [
14
+ {no: 0, name: "WEBHOOK_TOGGLE_UNSET", localName: "UNSET"},
15
+ {no: 1, name: "WEBHOOK_TOGGLE_ENABLED", localName: "ENABLED"},
16
+ {no: 2, name: "WEBHOOK_TOGGLE_DISABLED", localName: "DISABLED"},
17
+ ],
18
+ );
19
+
8
20
  /**
9
21
  * @generated from enum streamlayer.sdkSettings.organization.webhooks.WebhookStatus
10
22
  */
@@ -72,7 +84,7 @@ export const UpsertWebhookRequest = /*@__PURE__*/ proto3.makeMessageType(
72
84
  { no: 8, name: "api_key", kind: "message", T: ApiKey, opt: true },
73
85
  { no: 9, name: "duration", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
74
86
  { no: 10, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
75
- { no: 11, name: "is_disabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
87
+ { no: 11, name: "webhook_toggle", kind: "enum", T: proto3.getEnumType(WebhookToggle), opt: true },
76
88
  ],
77
89
  );
78
90