@streamlayer/sl-eslib 5.137.0 → 5.138.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
|
@@ -74,6 +74,26 @@ export declare enum WebhookEvent {
|
|
|
74
74
|
CLICK_SECONDARY_BUTTON = 4,
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
/**
|
|
78
|
+
* @generated from enum streamlayer.organizations.studio.webhooks.WebhookNotificationType
|
|
79
|
+
*/
|
|
80
|
+
export declare enum WebhookNotificationType {
|
|
81
|
+
/**
|
|
82
|
+
* @generated from enum value: WEBHOOK_NOTIFICATION_TYPE_UNSET = 0;
|
|
83
|
+
*/
|
|
84
|
+
UNSET = 0,
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @generated from enum value: WEBHOOK_NOTIFICATION_TYPE_PHONE = 1;
|
|
88
|
+
*/
|
|
89
|
+
PHONE = 1,
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @generated from enum value: WEBHOOK_NOTIFICATION_TYPE_MAIL = 2;
|
|
93
|
+
*/
|
|
94
|
+
MAIL = 2,
|
|
95
|
+
}
|
|
96
|
+
|
|
77
97
|
/**
|
|
78
98
|
* @generated from message streamlayer.organizations.studio.webhooks.ApiKey
|
|
79
99
|
*/
|
|
@@ -381,25 +401,59 @@ export declare class SendWebhookEventRequest extends Message<SendWebhookEventReq
|
|
|
381
401
|
id: string;
|
|
382
402
|
|
|
383
403
|
/**
|
|
384
|
-
* Event type
|
|
404
|
+
* Event type 'AD'
|
|
385
405
|
*
|
|
386
406
|
* @generated from field: string event_type = 2;
|
|
387
407
|
*/
|
|
388
408
|
eventType: string;
|
|
389
409
|
|
|
390
410
|
/**
|
|
391
|
-
*
|
|
411
|
+
* @generated from field: streamlayer.organizations.studio.webhooks.SendWebhookEventRequest.EventData data = 3;
|
|
412
|
+
*/
|
|
413
|
+
data?: SendWebhookEventRequest_EventData;
|
|
414
|
+
|
|
415
|
+
constructor(data?: PartialMessage<SendWebhookEventRequest>);
|
|
416
|
+
|
|
417
|
+
static readonly runtime: typeof proto3;
|
|
418
|
+
static readonly typeName = "streamlayer.organizations.studio.webhooks.SendWebhookEventRequest";
|
|
419
|
+
static readonly fields: FieldList;
|
|
420
|
+
|
|
421
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendWebhookEventRequest;
|
|
422
|
+
|
|
423
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendWebhookEventRequest;
|
|
424
|
+
|
|
425
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendWebhookEventRequest;
|
|
426
|
+
|
|
427
|
+
static equals(a: SendWebhookEventRequest | PlainMessage<SendWebhookEventRequest> | undefined, b: SendWebhookEventRequest | PlainMessage<SendWebhookEventRequest> | undefined): boolean;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* @generated from message streamlayer.organizations.studio.webhooks.SendWebhookEventRequest.EventData
|
|
432
|
+
*/
|
|
433
|
+
export declare class SendWebhookEventRequest_EventData extends Message<SendWebhookEventRequest_EventData> {
|
|
434
|
+
/**
|
|
435
|
+
* @generated from field: uint64 event_id = 1;
|
|
436
|
+
*/
|
|
437
|
+
eventId: bigint;
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* external Client user_id
|
|
392
441
|
*
|
|
393
|
-
* @generated from field:
|
|
442
|
+
* @generated from field: string user_id = 2;
|
|
394
443
|
*/
|
|
395
|
-
|
|
444
|
+
userId: string;
|
|
396
445
|
|
|
397
446
|
/**
|
|
398
|
-
*
|
|
447
|
+
* e.g., CLICK_SECONDARY_BUTTON
|
|
399
448
|
*
|
|
400
|
-
* @generated from field:
|
|
449
|
+
* @generated from field: optional string action = 3;
|
|
401
450
|
*/
|
|
402
|
-
|
|
451
|
+
action?: string;
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* @generated from field: streamlayer.organizations.studio.webhooks.WebhookNotificationType notification_type = 4;
|
|
455
|
+
*/
|
|
456
|
+
notificationType: WebhookNotificationType;
|
|
403
457
|
|
|
404
458
|
/**
|
|
405
459
|
* Event description, e.g. "User clicked on a secondary button"
|
|
@@ -408,19 +462,33 @@ export declare class SendWebhookEventRequest extends Message<SendWebhookEventReq
|
|
|
408
462
|
*/
|
|
409
463
|
description: string;
|
|
410
464
|
|
|
411
|
-
|
|
465
|
+
/**
|
|
466
|
+
* Metadata for the event, e.g. device_type = 'ios', user_agent, ip, location = 'Los Angeles', topic_subtype, banner_url
|
|
467
|
+
*
|
|
468
|
+
* @generated from field: map<string, string> metadata = 6;
|
|
469
|
+
*/
|
|
470
|
+
metadata: { [key: string]: string };
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* AD context. Client custom fields for the event, e.g. promo_code = 'SUMMER2024', campaign = 'BeachSale', brand = 'Nike', model, etc
|
|
474
|
+
*
|
|
475
|
+
* @generated from field: map<string, string> custom_fields = 7;
|
|
476
|
+
*/
|
|
477
|
+
customFields: { [key: string]: string };
|
|
478
|
+
|
|
479
|
+
constructor(data?: PartialMessage<SendWebhookEventRequest_EventData>);
|
|
412
480
|
|
|
413
481
|
static readonly runtime: typeof proto3;
|
|
414
|
-
static readonly typeName = "streamlayer.organizations.studio.webhooks.SendWebhookEventRequest";
|
|
482
|
+
static readonly typeName = "streamlayer.organizations.studio.webhooks.SendWebhookEventRequest.EventData";
|
|
415
483
|
static readonly fields: FieldList;
|
|
416
484
|
|
|
417
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
485
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendWebhookEventRequest_EventData;
|
|
418
486
|
|
|
419
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
487
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendWebhookEventRequest_EventData;
|
|
420
488
|
|
|
421
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
489
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendWebhookEventRequest_EventData;
|
|
422
490
|
|
|
423
|
-
static equals(a:
|
|
491
|
+
static equals(a: SendWebhookEventRequest_EventData | PlainMessage<SendWebhookEventRequest_EventData> | undefined, b: SendWebhookEventRequest_EventData | PlainMessage<SendWebhookEventRequest_EventData> | undefined): boolean;
|
|
424
492
|
}
|
|
425
493
|
|
|
426
494
|
/**
|
|
@@ -33,6 +33,18 @@ export const WebhookEvent = /*@__PURE__*/ proto3.makeEnum(
|
|
|
33
33
|
],
|
|
34
34
|
);
|
|
35
35
|
|
|
36
|
+
/**
|
|
37
|
+
* @generated from enum streamlayer.organizations.studio.webhooks.WebhookNotificationType
|
|
38
|
+
*/
|
|
39
|
+
export const WebhookNotificationType = /*@__PURE__*/ proto3.makeEnum(
|
|
40
|
+
"streamlayer.organizations.studio.webhooks.WebhookNotificationType",
|
|
41
|
+
[
|
|
42
|
+
{no: 0, name: "WEBHOOK_NOTIFICATION_TYPE_UNSET", localName: "UNSET"},
|
|
43
|
+
{no: 1, name: "WEBHOOK_NOTIFICATION_TYPE_PHONE", localName: "PHONE"},
|
|
44
|
+
{no: 2, name: "WEBHOOK_NOTIFICATION_TYPE_MAIL", localName: "MAIL"},
|
|
45
|
+
],
|
|
46
|
+
);
|
|
47
|
+
|
|
36
48
|
/**
|
|
37
49
|
* @generated from message streamlayer.organizations.studio.webhooks.ApiKey
|
|
38
50
|
*/
|
|
@@ -130,10 +142,25 @@ export const SendWebhookEventRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
130
142
|
() => [
|
|
131
143
|
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
132
144
|
{ no: 2, name: "event_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
133
|
-
{ no: 3, name: "
|
|
134
|
-
|
|
145
|
+
{ no: 3, name: "data", kind: "message", T: SendWebhookEventRequest_EventData },
|
|
146
|
+
],
|
|
147
|
+
);
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @generated from message streamlayer.organizations.studio.webhooks.SendWebhookEventRequest.EventData
|
|
151
|
+
*/
|
|
152
|
+
export const SendWebhookEventRequest_EventData = /*@__PURE__*/ proto3.makeMessageType(
|
|
153
|
+
"streamlayer.organizations.studio.webhooks.SendWebhookEventRequest.EventData",
|
|
154
|
+
() => [
|
|
155
|
+
{ no: 1, name: "event_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
156
|
+
{ no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
157
|
+
{ no: 3, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
158
|
+
{ no: 4, name: "notification_type", kind: "enum", T: proto3.getEnumType(WebhookNotificationType) },
|
|
135
159
|
{ no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
160
|
+
{ no: 6, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
161
|
+
{ no: 7, name: "custom_fields", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
136
162
|
],
|
|
163
|
+
{localName: "SendWebhookEventRequest_EventData"},
|
|
137
164
|
);
|
|
138
165
|
|
|
139
166
|
/**
|