@wix/auto_sdk_loyalty_social-media 1.0.6 → 1.0.8
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/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.d.ts +15 -19
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js.map +1 -1
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.d.ts +23 -35
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js.map +1 -1
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.d.ts +15 -19
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js.map +1 -1
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.d.ts +23 -35
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js.map +1 -1
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.d.ts +15 -19
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js.map +1 -1
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.d.ts +23 -35
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js.map +1 -1
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.d.ts +15 -19
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js.map +1 -1
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.d.ts +23 -35
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -12,7 +12,7 @@ export interface FollowedChannel {
|
|
|
12
12
|
*/
|
|
13
13
|
accountId?: string;
|
|
14
14
|
/** Followed social media channel type. */
|
|
15
|
-
channel?:
|
|
15
|
+
channel?: TypeWithLiterals;
|
|
16
16
|
/**
|
|
17
17
|
* Date when an entity for following a social media channel was created.
|
|
18
18
|
* @readonly
|
|
@@ -33,6 +33,8 @@ export declare enum Type {
|
|
|
33
33
|
/** TikTok social media channel. */
|
|
34
34
|
TIKTOK = "TIKTOK"
|
|
35
35
|
}
|
|
36
|
+
/** @enumType */
|
|
37
|
+
export type TypeWithLiterals = Type | 'UNKNOWN_CHANNEL' | 'FACEBOOK' | 'INSTAGRAM' | 'LINKEDIN' | 'X' | 'TIKTOK';
|
|
36
38
|
export interface CreateFollowedChannelRequest {
|
|
37
39
|
/** Followed social media channel details. */
|
|
38
40
|
followedChannel: FollowedChannel;
|
|
@@ -55,25 +57,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
55
57
|
updatedEvent?: EntityUpdatedEvent;
|
|
56
58
|
deletedEvent?: EntityDeletedEvent;
|
|
57
59
|
actionEvent?: ActionEvent;
|
|
58
|
-
/**
|
|
59
|
-
* Unique event ID.
|
|
60
|
-
* Allows clients to ignore duplicate webhooks.
|
|
61
|
-
*/
|
|
60
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
62
61
|
id?: string;
|
|
63
62
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
63
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
64
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
66
65
|
*/
|
|
67
66
|
entityFqdn?: string;
|
|
68
67
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
68
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
69
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
72
70
|
*/
|
|
73
71
|
slug?: string;
|
|
74
72
|
/** ID of the entity associated with the event. */
|
|
75
73
|
entityId?: string;
|
|
76
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
74
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
77
75
|
eventTime?: Date | null;
|
|
78
76
|
/**
|
|
79
77
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -83,12 +81,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
83
81
|
/** If present, indicates the action that triggered the event. */
|
|
84
82
|
originatedFrom?: string | null;
|
|
85
83
|
/**
|
|
86
|
-
* A sequence number
|
|
87
|
-
*
|
|
88
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
89
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
90
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
91
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
84
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
85
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
92
86
|
*/
|
|
93
87
|
entityEventSequence?: string | null;
|
|
94
88
|
}
|
|
@@ -116,7 +110,7 @@ export interface EntityUpdatedEvent {
|
|
|
116
110
|
currentEntityAsJson?: string;
|
|
117
111
|
}
|
|
118
112
|
export interface EntityDeletedEvent {
|
|
119
|
-
/** Entity that was deleted */
|
|
113
|
+
/** Entity that was deleted. */
|
|
120
114
|
deletedEntityAsJson?: string | null;
|
|
121
115
|
}
|
|
122
116
|
export interface ActionEvent {
|
|
@@ -162,7 +156,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
162
156
|
*/
|
|
163
157
|
appId?: string;
|
|
164
158
|
/** @readonly */
|
|
165
|
-
identityType?:
|
|
159
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
166
160
|
}
|
|
167
161
|
/** @oneof */
|
|
168
162
|
export interface IdentificationDataIdOneOf {
|
|
@@ -194,3 +188,5 @@ export declare enum WebhookIdentityType {
|
|
|
194
188
|
WIX_USER = "WIX_USER",
|
|
195
189
|
APP = "APP"
|
|
196
190
|
}
|
|
191
|
+
/** @enumType */
|
|
192
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.types.js","sourceRoot":"","sources":["../../../src/loyalty-socialmedia-v1-followed-channel-social-media.types.ts"],"names":[],"mappings":";;;AAsBA,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,oBAAJ,IAAI,QAaf;
|
|
1
|
+
{"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.types.js","sourceRoot":"","sources":["../../../src/loyalty-socialmedia-v1-followed-channel-social-media.types.ts"],"names":[],"mappings":";;;AAsBA,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,oBAAJ,IAAI,QAaf;AA2KD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|
|
@@ -13,7 +13,7 @@ export interface FollowedChannel {
|
|
|
13
13
|
*/
|
|
14
14
|
accountId?: string;
|
|
15
15
|
/** Followed social media channel type. */
|
|
16
|
-
channel?:
|
|
16
|
+
channel?: TypeWithLiterals;
|
|
17
17
|
/**
|
|
18
18
|
* Date when an entity for following a social media channel was created.
|
|
19
19
|
* @readonly
|
|
@@ -34,6 +34,8 @@ export declare enum Type {
|
|
|
34
34
|
/** TikTok social media channel. */
|
|
35
35
|
TIKTOK = "TIKTOK"
|
|
36
36
|
}
|
|
37
|
+
/** @enumType */
|
|
38
|
+
export type TypeWithLiterals = Type | 'UNKNOWN_CHANNEL' | 'FACEBOOK' | 'INSTAGRAM' | 'LINKEDIN' | 'X' | 'TIKTOK';
|
|
37
39
|
export interface CreateFollowedChannelRequest {
|
|
38
40
|
/** Followed social media channel details. */
|
|
39
41
|
followedChannel: FollowedChannel;
|
|
@@ -56,25 +58,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
56
58
|
updatedEvent?: EntityUpdatedEvent;
|
|
57
59
|
deletedEvent?: EntityDeletedEvent;
|
|
58
60
|
actionEvent?: ActionEvent;
|
|
59
|
-
/**
|
|
60
|
-
* Unique event ID.
|
|
61
|
-
* Allows clients to ignore duplicate webhooks.
|
|
62
|
-
*/
|
|
61
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
63
62
|
_id?: string;
|
|
64
63
|
/**
|
|
65
|
-
*
|
|
66
|
-
*
|
|
64
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
65
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
67
66
|
*/
|
|
68
67
|
entityFqdn?: string;
|
|
69
68
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
69
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
70
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
73
71
|
*/
|
|
74
72
|
slug?: string;
|
|
75
73
|
/** ID of the entity associated with the event. */
|
|
76
74
|
entityId?: string;
|
|
77
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
75
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
78
76
|
eventTime?: Date | null;
|
|
79
77
|
/**
|
|
80
78
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -84,12 +82,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
84
82
|
/** If present, indicates the action that triggered the event. */
|
|
85
83
|
originatedFrom?: string | null;
|
|
86
84
|
/**
|
|
87
|
-
* A sequence number
|
|
88
|
-
*
|
|
89
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
90
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
91
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
92
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
85
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
86
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
93
87
|
*/
|
|
94
88
|
entityEventSequence?: string | null;
|
|
95
89
|
}
|
|
@@ -115,7 +109,7 @@ export interface EntityUpdatedEvent {
|
|
|
115
109
|
currentEntity?: string;
|
|
116
110
|
}
|
|
117
111
|
export interface EntityDeletedEvent {
|
|
118
|
-
/** Entity that was deleted */
|
|
112
|
+
/** Entity that was deleted. */
|
|
119
113
|
deletedEntity?: string | null;
|
|
120
114
|
}
|
|
121
115
|
export interface ActionEvent {
|
|
@@ -161,7 +155,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
161
155
|
*/
|
|
162
156
|
appId?: string;
|
|
163
157
|
/** @readonly */
|
|
164
|
-
identityType?:
|
|
158
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
165
159
|
}
|
|
166
160
|
/** @oneof */
|
|
167
161
|
export interface IdentificationDataIdOneOf {
|
|
@@ -193,6 +187,8 @@ export declare enum WebhookIdentityType {
|
|
|
193
187
|
WIX_USER = "WIX_USER",
|
|
194
188
|
APP = "APP"
|
|
195
189
|
}
|
|
190
|
+
/** @enumType */
|
|
191
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
196
192
|
export interface BaseEventMetadata {
|
|
197
193
|
/**
|
|
198
194
|
* App instance ID.
|
|
@@ -208,25 +204,21 @@ export interface BaseEventMetadata {
|
|
|
208
204
|
identity?: IdentificationData;
|
|
209
205
|
}
|
|
210
206
|
export interface EventMetadata extends BaseEventMetadata {
|
|
211
|
-
/**
|
|
212
|
-
* Unique event ID.
|
|
213
|
-
* Allows clients to ignore duplicate webhooks.
|
|
214
|
-
*/
|
|
207
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
215
208
|
_id?: string;
|
|
216
209
|
/**
|
|
217
|
-
*
|
|
218
|
-
*
|
|
210
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
211
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
219
212
|
*/
|
|
220
213
|
entityFqdn?: string;
|
|
221
214
|
/**
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
215
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
216
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
225
217
|
*/
|
|
226
218
|
slug?: string;
|
|
227
219
|
/** ID of the entity associated with the event. */
|
|
228
220
|
entityId?: string;
|
|
229
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
221
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
230
222
|
eventTime?: Date | null;
|
|
231
223
|
/**
|
|
232
224
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -236,12 +228,8 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
236
228
|
/** If present, indicates the action that triggered the event. */
|
|
237
229
|
originatedFrom?: string | null;
|
|
238
230
|
/**
|
|
239
|
-
* A sequence number
|
|
240
|
-
*
|
|
241
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
242
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
243
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
244
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
231
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
232
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
245
233
|
*/
|
|
246
234
|
entityEventSequence?: string | null;
|
|
247
235
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.universal.js","sourceRoot":"","sources":["../../../src/loyalty-socialmedia-v1-followed-channel-social-media.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,iJAAmI;AAwBnI,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,oBAAJ,IAAI,QAaf;
|
|
1
|
+
{"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.universal.js","sourceRoot":"","sources":["../../../src/loyalty-socialmedia-v1-followed-channel-social-media.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,iJAAmI;AAwBnI,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,oBAAJ,IAAI,QAaf;AAyKD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AAkFD;;;;;;;;;;;;;;;;;;;GAmBG;AACI,KAAK,UAAU,qBAAqB,CACzC,eAA6D;IAE7D,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC;QACpD,eAAe,EAAE,eAAe;KACjC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C,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE;YAC5B,uBAAuB,EAAE,KAAK;SAC/B,EACD,EAAE,CACH,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAzCD,oDAyCC"}
|
|
@@ -12,7 +12,7 @@ export interface FollowedChannel {
|
|
|
12
12
|
*/
|
|
13
13
|
accountId?: string;
|
|
14
14
|
/** Followed social media channel type. */
|
|
15
|
-
channel?:
|
|
15
|
+
channel?: TypeWithLiterals;
|
|
16
16
|
/**
|
|
17
17
|
* Date when an entity for following a social media channel was created.
|
|
18
18
|
* @readonly
|
|
@@ -33,6 +33,8 @@ export declare enum Type {
|
|
|
33
33
|
/** TikTok social media channel. */
|
|
34
34
|
TIKTOK = "TIKTOK"
|
|
35
35
|
}
|
|
36
|
+
/** @enumType */
|
|
37
|
+
export type TypeWithLiterals = Type | 'UNKNOWN_CHANNEL' | 'FACEBOOK' | 'INSTAGRAM' | 'LINKEDIN' | 'X' | 'TIKTOK';
|
|
36
38
|
export interface CreateFollowedChannelRequest {
|
|
37
39
|
/** Followed social media channel details. */
|
|
38
40
|
followedChannel: FollowedChannel;
|
|
@@ -55,25 +57,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
55
57
|
updatedEvent?: EntityUpdatedEvent;
|
|
56
58
|
deletedEvent?: EntityDeletedEvent;
|
|
57
59
|
actionEvent?: ActionEvent;
|
|
58
|
-
/**
|
|
59
|
-
* Unique event ID.
|
|
60
|
-
* Allows clients to ignore duplicate webhooks.
|
|
61
|
-
*/
|
|
60
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
62
61
|
id?: string;
|
|
63
62
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
63
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
64
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
66
65
|
*/
|
|
67
66
|
entityFqdn?: string;
|
|
68
67
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
68
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
69
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
72
70
|
*/
|
|
73
71
|
slug?: string;
|
|
74
72
|
/** ID of the entity associated with the event. */
|
|
75
73
|
entityId?: string;
|
|
76
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
74
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
77
75
|
eventTime?: Date | null;
|
|
78
76
|
/**
|
|
79
77
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -83,12 +81,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
83
81
|
/** If present, indicates the action that triggered the event. */
|
|
84
82
|
originatedFrom?: string | null;
|
|
85
83
|
/**
|
|
86
|
-
* A sequence number
|
|
87
|
-
*
|
|
88
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
89
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
90
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
91
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
84
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
85
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
92
86
|
*/
|
|
93
87
|
entityEventSequence?: string | null;
|
|
94
88
|
}
|
|
@@ -116,7 +110,7 @@ export interface EntityUpdatedEvent {
|
|
|
116
110
|
currentEntityAsJson?: string;
|
|
117
111
|
}
|
|
118
112
|
export interface EntityDeletedEvent {
|
|
119
|
-
/** Entity that was deleted */
|
|
113
|
+
/** Entity that was deleted. */
|
|
120
114
|
deletedEntityAsJson?: string | null;
|
|
121
115
|
}
|
|
122
116
|
export interface ActionEvent {
|
|
@@ -162,7 +156,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
162
156
|
*/
|
|
163
157
|
appId?: string;
|
|
164
158
|
/** @readonly */
|
|
165
|
-
identityType?:
|
|
159
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
166
160
|
}
|
|
167
161
|
/** @oneof */
|
|
168
162
|
export interface IdentificationDataIdOneOf {
|
|
@@ -194,3 +188,5 @@ export declare enum WebhookIdentityType {
|
|
|
194
188
|
WIX_USER = "WIX_USER",
|
|
195
189
|
APP = "APP"
|
|
196
190
|
}
|
|
191
|
+
/** @enumType */
|
|
192
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.types.js","sourceRoot":"","sources":["../../../src/loyalty-socialmedia-v1-followed-channel-social-media.types.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAN,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,KAAJ,IAAI,QAaf;
|
|
1
|
+
{"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.types.js","sourceRoot":"","sources":["../../../src/loyalty-socialmedia-v1-followed-channel-social-media.types.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAN,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,KAAJ,IAAI,QAaf;AA2KD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|
|
@@ -13,7 +13,7 @@ export interface FollowedChannel {
|
|
|
13
13
|
*/
|
|
14
14
|
accountId?: string;
|
|
15
15
|
/** Followed social media channel type. */
|
|
16
|
-
channel?:
|
|
16
|
+
channel?: TypeWithLiterals;
|
|
17
17
|
/**
|
|
18
18
|
* Date when an entity for following a social media channel was created.
|
|
19
19
|
* @readonly
|
|
@@ -34,6 +34,8 @@ export declare enum Type {
|
|
|
34
34
|
/** TikTok social media channel. */
|
|
35
35
|
TIKTOK = "TIKTOK"
|
|
36
36
|
}
|
|
37
|
+
/** @enumType */
|
|
38
|
+
export type TypeWithLiterals = Type | 'UNKNOWN_CHANNEL' | 'FACEBOOK' | 'INSTAGRAM' | 'LINKEDIN' | 'X' | 'TIKTOK';
|
|
37
39
|
export interface CreateFollowedChannelRequest {
|
|
38
40
|
/** Followed social media channel details. */
|
|
39
41
|
followedChannel: FollowedChannel;
|
|
@@ -56,25 +58,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
56
58
|
updatedEvent?: EntityUpdatedEvent;
|
|
57
59
|
deletedEvent?: EntityDeletedEvent;
|
|
58
60
|
actionEvent?: ActionEvent;
|
|
59
|
-
/**
|
|
60
|
-
* Unique event ID.
|
|
61
|
-
* Allows clients to ignore duplicate webhooks.
|
|
62
|
-
*/
|
|
61
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
63
62
|
_id?: string;
|
|
64
63
|
/**
|
|
65
|
-
*
|
|
66
|
-
*
|
|
64
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
65
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
67
66
|
*/
|
|
68
67
|
entityFqdn?: string;
|
|
69
68
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
69
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
70
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
73
71
|
*/
|
|
74
72
|
slug?: string;
|
|
75
73
|
/** ID of the entity associated with the event. */
|
|
76
74
|
entityId?: string;
|
|
77
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
75
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
78
76
|
eventTime?: Date | null;
|
|
79
77
|
/**
|
|
80
78
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -84,12 +82,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
84
82
|
/** If present, indicates the action that triggered the event. */
|
|
85
83
|
originatedFrom?: string | null;
|
|
86
84
|
/**
|
|
87
|
-
* A sequence number
|
|
88
|
-
*
|
|
89
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
90
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
91
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
92
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
85
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
86
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
93
87
|
*/
|
|
94
88
|
entityEventSequence?: string | null;
|
|
95
89
|
}
|
|
@@ -115,7 +109,7 @@ export interface EntityUpdatedEvent {
|
|
|
115
109
|
currentEntity?: string;
|
|
116
110
|
}
|
|
117
111
|
export interface EntityDeletedEvent {
|
|
118
|
-
/** Entity that was deleted */
|
|
112
|
+
/** Entity that was deleted. */
|
|
119
113
|
deletedEntity?: string | null;
|
|
120
114
|
}
|
|
121
115
|
export interface ActionEvent {
|
|
@@ -161,7 +155,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
161
155
|
*/
|
|
162
156
|
appId?: string;
|
|
163
157
|
/** @readonly */
|
|
164
|
-
identityType?:
|
|
158
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
165
159
|
}
|
|
166
160
|
/** @oneof */
|
|
167
161
|
export interface IdentificationDataIdOneOf {
|
|
@@ -193,6 +187,8 @@ export declare enum WebhookIdentityType {
|
|
|
193
187
|
WIX_USER = "WIX_USER",
|
|
194
188
|
APP = "APP"
|
|
195
189
|
}
|
|
190
|
+
/** @enumType */
|
|
191
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
196
192
|
export interface BaseEventMetadata {
|
|
197
193
|
/**
|
|
198
194
|
* App instance ID.
|
|
@@ -208,25 +204,21 @@ export interface BaseEventMetadata {
|
|
|
208
204
|
identity?: IdentificationData;
|
|
209
205
|
}
|
|
210
206
|
export interface EventMetadata extends BaseEventMetadata {
|
|
211
|
-
/**
|
|
212
|
-
* Unique event ID.
|
|
213
|
-
* Allows clients to ignore duplicate webhooks.
|
|
214
|
-
*/
|
|
207
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
215
208
|
_id?: string;
|
|
216
209
|
/**
|
|
217
|
-
*
|
|
218
|
-
*
|
|
210
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
211
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
219
212
|
*/
|
|
220
213
|
entityFqdn?: string;
|
|
221
214
|
/**
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
215
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
216
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
225
217
|
*/
|
|
226
218
|
slug?: string;
|
|
227
219
|
/** ID of the entity associated with the event. */
|
|
228
220
|
entityId?: string;
|
|
229
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
221
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
230
222
|
eventTime?: Date | null;
|
|
231
223
|
/**
|
|
232
224
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -236,12 +228,8 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
236
228
|
/** If present, indicates the action that triggered the event. */
|
|
237
229
|
originatedFrom?: string | null;
|
|
238
230
|
/**
|
|
239
|
-
* A sequence number
|
|
240
|
-
*
|
|
241
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
242
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
243
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
244
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
231
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
232
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
245
233
|
*/
|
|
246
234
|
entityEventSequence?: string | null;
|
|
247
235
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.universal.js","sourceRoot":"","sources":["../../../src/loyalty-socialmedia-v1-followed-channel-social-media.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,gDAAgD,MAAM,gEAAgE,CAAC;AAwBnI,MAAM,CAAN,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,KAAJ,IAAI,QAaf;
|
|
1
|
+
{"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.universal.js","sourceRoot":"","sources":["../../../src/loyalty-socialmedia-v1-followed-channel-social-media.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAA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iB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE;YACrD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,iBAAiB,CAAC,CACpB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB;IAQxC,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC,EAAE,CAAC,CAAC;IAE1D,MAAM,OAAO,GACX,gDAAgD,CAAC,oBAAoB,CACnE,OAAO,CACR,CAAC;IAEJ,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE;YAC5B,uBAAuB,EAAE,KAAK;SAC/B,EACD,EAAE,CACH,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface FollowedChannel {
|
|
|
12
12
|
*/
|
|
13
13
|
accountId?: string;
|
|
14
14
|
/** Followed social media channel type. */
|
|
15
|
-
channel?:
|
|
15
|
+
channel?: TypeWithLiterals;
|
|
16
16
|
/**
|
|
17
17
|
* Date when an entity for following a social media channel was created.
|
|
18
18
|
* @readonly
|
|
@@ -33,6 +33,8 @@ export declare enum Type {
|
|
|
33
33
|
/** TikTok social media channel. */
|
|
34
34
|
TIKTOK = "TIKTOK"
|
|
35
35
|
}
|
|
36
|
+
/** @enumType */
|
|
37
|
+
export type TypeWithLiterals = Type | 'UNKNOWN_CHANNEL' | 'FACEBOOK' | 'INSTAGRAM' | 'LINKEDIN' | 'X' | 'TIKTOK';
|
|
36
38
|
export interface CreateFollowedChannelRequest {
|
|
37
39
|
/** Followed social media channel details. */
|
|
38
40
|
followedChannel: FollowedChannel;
|
|
@@ -55,25 +57,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
55
57
|
updatedEvent?: EntityUpdatedEvent;
|
|
56
58
|
deletedEvent?: EntityDeletedEvent;
|
|
57
59
|
actionEvent?: ActionEvent;
|
|
58
|
-
/**
|
|
59
|
-
* Unique event ID.
|
|
60
|
-
* Allows clients to ignore duplicate webhooks.
|
|
61
|
-
*/
|
|
60
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
62
61
|
id?: string;
|
|
63
62
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
63
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
64
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
66
65
|
*/
|
|
67
66
|
entityFqdn?: string;
|
|
68
67
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
68
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
69
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
72
70
|
*/
|
|
73
71
|
slug?: string;
|
|
74
72
|
/** ID of the entity associated with the event. */
|
|
75
73
|
entityId?: string;
|
|
76
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
74
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
77
75
|
eventTime?: Date | null;
|
|
78
76
|
/**
|
|
79
77
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -83,12 +81,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
83
81
|
/** If present, indicates the action that triggered the event. */
|
|
84
82
|
originatedFrom?: string | null;
|
|
85
83
|
/**
|
|
86
|
-
* A sequence number
|
|
87
|
-
*
|
|
88
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
89
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
90
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
91
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
84
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
85
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
92
86
|
*/
|
|
93
87
|
entityEventSequence?: string | null;
|
|
94
88
|
}
|
|
@@ -116,7 +110,7 @@ export interface EntityUpdatedEvent {
|
|
|
116
110
|
currentEntityAsJson?: string;
|
|
117
111
|
}
|
|
118
112
|
export interface EntityDeletedEvent {
|
|
119
|
-
/** Entity that was deleted */
|
|
113
|
+
/** Entity that was deleted. */
|
|
120
114
|
deletedEntityAsJson?: string | null;
|
|
121
115
|
}
|
|
122
116
|
export interface ActionEvent {
|
|
@@ -162,7 +156,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
162
156
|
*/
|
|
163
157
|
appId?: string;
|
|
164
158
|
/** @readonly */
|
|
165
|
-
identityType?:
|
|
159
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
166
160
|
}
|
|
167
161
|
/** @oneof */
|
|
168
162
|
export interface IdentificationDataIdOneOf {
|
|
@@ -194,3 +188,5 @@ export declare enum WebhookIdentityType {
|
|
|
194
188
|
WIX_USER = "WIX_USER",
|
|
195
189
|
APP = "APP"
|
|
196
190
|
}
|
|
191
|
+
/** @enumType */
|
|
192
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.types.js","sourceRoot":"","sources":["../../../../src/loyalty-socialmedia-v1-followed-channel-social-media.types.ts"],"names":[],"mappings":";;;AAsBA,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,oBAAJ,IAAI,QAaf;
|
|
1
|
+
{"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.types.js","sourceRoot":"","sources":["../../../../src/loyalty-socialmedia-v1-followed-channel-social-media.types.ts"],"names":[],"mappings":";;;AAsBA,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,oBAAJ,IAAI,QAaf;AA2KD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|
package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface FollowedChannel {
|
|
|
13
13
|
*/
|
|
14
14
|
accountId?: string;
|
|
15
15
|
/** Followed social media channel type. */
|
|
16
|
-
channel?:
|
|
16
|
+
channel?: TypeWithLiterals;
|
|
17
17
|
/**
|
|
18
18
|
* Date when an entity for following a social media channel was created.
|
|
19
19
|
* @readonly
|
|
@@ -34,6 +34,8 @@ export declare enum Type {
|
|
|
34
34
|
/** TikTok social media channel. */
|
|
35
35
|
TIKTOK = "TIKTOK"
|
|
36
36
|
}
|
|
37
|
+
/** @enumType */
|
|
38
|
+
export type TypeWithLiterals = Type | 'UNKNOWN_CHANNEL' | 'FACEBOOK' | 'INSTAGRAM' | 'LINKEDIN' | 'X' | 'TIKTOK';
|
|
37
39
|
export interface CreateFollowedChannelRequest {
|
|
38
40
|
/** Followed social media channel details. */
|
|
39
41
|
followedChannel: FollowedChannel;
|
|
@@ -56,25 +58,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
56
58
|
updatedEvent?: EntityUpdatedEvent;
|
|
57
59
|
deletedEvent?: EntityDeletedEvent;
|
|
58
60
|
actionEvent?: ActionEvent;
|
|
59
|
-
/**
|
|
60
|
-
* Unique event ID.
|
|
61
|
-
* Allows clients to ignore duplicate webhooks.
|
|
62
|
-
*/
|
|
61
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
63
62
|
_id?: string;
|
|
64
63
|
/**
|
|
65
|
-
*
|
|
66
|
-
*
|
|
64
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
65
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
67
66
|
*/
|
|
68
67
|
entityFqdn?: string;
|
|
69
68
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
69
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
70
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
73
71
|
*/
|
|
74
72
|
slug?: string;
|
|
75
73
|
/** ID of the entity associated with the event. */
|
|
76
74
|
entityId?: string;
|
|
77
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
75
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
78
76
|
eventTime?: Date | null;
|
|
79
77
|
/**
|
|
80
78
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -84,12 +82,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
84
82
|
/** If present, indicates the action that triggered the event. */
|
|
85
83
|
originatedFrom?: string | null;
|
|
86
84
|
/**
|
|
87
|
-
* A sequence number
|
|
88
|
-
*
|
|
89
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
90
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
91
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
92
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
85
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
86
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
93
87
|
*/
|
|
94
88
|
entityEventSequence?: string | null;
|
|
95
89
|
}
|
|
@@ -115,7 +109,7 @@ export interface EntityUpdatedEvent {
|
|
|
115
109
|
currentEntity?: string;
|
|
116
110
|
}
|
|
117
111
|
export interface EntityDeletedEvent {
|
|
118
|
-
/** Entity that was deleted */
|
|
112
|
+
/** Entity that was deleted. */
|
|
119
113
|
deletedEntity?: string | null;
|
|
120
114
|
}
|
|
121
115
|
export interface ActionEvent {
|
|
@@ -161,7 +155,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
161
155
|
*/
|
|
162
156
|
appId?: string;
|
|
163
157
|
/** @readonly */
|
|
164
|
-
identityType?:
|
|
158
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
165
159
|
}
|
|
166
160
|
/** @oneof */
|
|
167
161
|
export interface IdentificationDataIdOneOf {
|
|
@@ -193,6 +187,8 @@ export declare enum WebhookIdentityType {
|
|
|
193
187
|
WIX_USER = "WIX_USER",
|
|
194
188
|
APP = "APP"
|
|
195
189
|
}
|
|
190
|
+
/** @enumType */
|
|
191
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
196
192
|
export interface BaseEventMetadata {
|
|
197
193
|
/**
|
|
198
194
|
* App instance ID.
|
|
@@ -208,25 +204,21 @@ export interface BaseEventMetadata {
|
|
|
208
204
|
identity?: IdentificationData;
|
|
209
205
|
}
|
|
210
206
|
export interface EventMetadata extends BaseEventMetadata {
|
|
211
|
-
/**
|
|
212
|
-
* Unique event ID.
|
|
213
|
-
* Allows clients to ignore duplicate webhooks.
|
|
214
|
-
*/
|
|
207
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
215
208
|
_id?: string;
|
|
216
209
|
/**
|
|
217
|
-
*
|
|
218
|
-
*
|
|
210
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
211
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
219
212
|
*/
|
|
220
213
|
entityFqdn?: string;
|
|
221
214
|
/**
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
215
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
216
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
225
217
|
*/
|
|
226
218
|
slug?: string;
|
|
227
219
|
/** ID of the entity associated with the event. */
|
|
228
220
|
entityId?: string;
|
|
229
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
221
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
230
222
|
eventTime?: Date | null;
|
|
231
223
|
/**
|
|
232
224
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -236,12 +228,8 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
236
228
|
/** If present, indicates the action that triggered the event. */
|
|
237
229
|
originatedFrom?: string | null;
|
|
238
230
|
/**
|
|
239
|
-
* A sequence number
|
|
240
|
-
*
|
|
241
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
242
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
243
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
244
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
231
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
232
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
245
233
|
*/
|
|
246
234
|
entityEventSequence?: string | null;
|
|
247
235
|
}
|
package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.universal.js","sourceRoot":"","sources":["../../../../src/loyalty-socialmedia-v1-followed-channel-social-media.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,iJAAmI;AAwBnI,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,oBAAJ,IAAI,QAaf;
|
|
1
|
+
{"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.universal.js","sourceRoot":"","sources":["../../../../src/loyalty-socialmedia-v1-followed-channel-social-media.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,iJAAmI;AAwBnI,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,oBAAJ,IAAI,QAaf;AAyKD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CA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AC,CAAC;IAE1D,MAAM,OAAO,GACX,gDAAgD,CAAC,oBAAoB,CACnE,OAAO,CACR,CAAC;IAEJ,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE;YAC5B,uBAAuB,EAAE,KAAK;SAC/B,EACD,EAAE,CACH,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAzCD,oDAyCC"}
|
package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface FollowedChannel {
|
|
|
12
12
|
*/
|
|
13
13
|
accountId?: string;
|
|
14
14
|
/** Followed social media channel type. */
|
|
15
|
-
channel?:
|
|
15
|
+
channel?: TypeWithLiterals;
|
|
16
16
|
/**
|
|
17
17
|
* Date when an entity for following a social media channel was created.
|
|
18
18
|
* @readonly
|
|
@@ -33,6 +33,8 @@ export declare enum Type {
|
|
|
33
33
|
/** TikTok social media channel. */
|
|
34
34
|
TIKTOK = "TIKTOK"
|
|
35
35
|
}
|
|
36
|
+
/** @enumType */
|
|
37
|
+
export type TypeWithLiterals = Type | 'UNKNOWN_CHANNEL' | 'FACEBOOK' | 'INSTAGRAM' | 'LINKEDIN' | 'X' | 'TIKTOK';
|
|
36
38
|
export interface CreateFollowedChannelRequest {
|
|
37
39
|
/** Followed social media channel details. */
|
|
38
40
|
followedChannel: FollowedChannel;
|
|
@@ -55,25 +57,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
55
57
|
updatedEvent?: EntityUpdatedEvent;
|
|
56
58
|
deletedEvent?: EntityDeletedEvent;
|
|
57
59
|
actionEvent?: ActionEvent;
|
|
58
|
-
/**
|
|
59
|
-
* Unique event ID.
|
|
60
|
-
* Allows clients to ignore duplicate webhooks.
|
|
61
|
-
*/
|
|
60
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
62
61
|
id?: string;
|
|
63
62
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
63
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
64
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
66
65
|
*/
|
|
67
66
|
entityFqdn?: string;
|
|
68
67
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
68
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
69
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
72
70
|
*/
|
|
73
71
|
slug?: string;
|
|
74
72
|
/** ID of the entity associated with the event. */
|
|
75
73
|
entityId?: string;
|
|
76
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
74
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
77
75
|
eventTime?: Date | null;
|
|
78
76
|
/**
|
|
79
77
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -83,12 +81,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
83
81
|
/** If present, indicates the action that triggered the event. */
|
|
84
82
|
originatedFrom?: string | null;
|
|
85
83
|
/**
|
|
86
|
-
* A sequence number
|
|
87
|
-
*
|
|
88
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
89
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
90
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
91
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
84
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
85
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
92
86
|
*/
|
|
93
87
|
entityEventSequence?: string | null;
|
|
94
88
|
}
|
|
@@ -116,7 +110,7 @@ export interface EntityUpdatedEvent {
|
|
|
116
110
|
currentEntityAsJson?: string;
|
|
117
111
|
}
|
|
118
112
|
export interface EntityDeletedEvent {
|
|
119
|
-
/** Entity that was deleted */
|
|
113
|
+
/** Entity that was deleted. */
|
|
120
114
|
deletedEntityAsJson?: string | null;
|
|
121
115
|
}
|
|
122
116
|
export interface ActionEvent {
|
|
@@ -162,7 +156,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
162
156
|
*/
|
|
163
157
|
appId?: string;
|
|
164
158
|
/** @readonly */
|
|
165
|
-
identityType?:
|
|
159
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
166
160
|
}
|
|
167
161
|
/** @oneof */
|
|
168
162
|
export interface IdentificationDataIdOneOf {
|
|
@@ -194,3 +188,5 @@ export declare enum WebhookIdentityType {
|
|
|
194
188
|
WIX_USER = "WIX_USER",
|
|
195
189
|
APP = "APP"
|
|
196
190
|
}
|
|
191
|
+
/** @enumType */
|
|
192
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.types.js","sourceRoot":"","sources":["../../../../src/loyalty-socialmedia-v1-followed-channel-social-media.types.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAN,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,KAAJ,IAAI,QAaf;
|
|
1
|
+
{"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.types.js","sourceRoot":"","sources":["../../../../src/loyalty-socialmedia-v1-followed-channel-social-media.types.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAN,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,KAAJ,IAAI,QAaf;AA2KD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|
package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface FollowedChannel {
|
|
|
13
13
|
*/
|
|
14
14
|
accountId?: string;
|
|
15
15
|
/** Followed social media channel type. */
|
|
16
|
-
channel?:
|
|
16
|
+
channel?: TypeWithLiterals;
|
|
17
17
|
/**
|
|
18
18
|
* Date when an entity for following a social media channel was created.
|
|
19
19
|
* @readonly
|
|
@@ -34,6 +34,8 @@ export declare enum Type {
|
|
|
34
34
|
/** TikTok social media channel. */
|
|
35
35
|
TIKTOK = "TIKTOK"
|
|
36
36
|
}
|
|
37
|
+
/** @enumType */
|
|
38
|
+
export type TypeWithLiterals = Type | 'UNKNOWN_CHANNEL' | 'FACEBOOK' | 'INSTAGRAM' | 'LINKEDIN' | 'X' | 'TIKTOK';
|
|
37
39
|
export interface CreateFollowedChannelRequest {
|
|
38
40
|
/** Followed social media channel details. */
|
|
39
41
|
followedChannel: FollowedChannel;
|
|
@@ -56,25 +58,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
56
58
|
updatedEvent?: EntityUpdatedEvent;
|
|
57
59
|
deletedEvent?: EntityDeletedEvent;
|
|
58
60
|
actionEvent?: ActionEvent;
|
|
59
|
-
/**
|
|
60
|
-
* Unique event ID.
|
|
61
|
-
* Allows clients to ignore duplicate webhooks.
|
|
62
|
-
*/
|
|
61
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
63
62
|
_id?: string;
|
|
64
63
|
/**
|
|
65
|
-
*
|
|
66
|
-
*
|
|
64
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
65
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
67
66
|
*/
|
|
68
67
|
entityFqdn?: string;
|
|
69
68
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
69
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
70
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
73
71
|
*/
|
|
74
72
|
slug?: string;
|
|
75
73
|
/** ID of the entity associated with the event. */
|
|
76
74
|
entityId?: string;
|
|
77
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
75
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
78
76
|
eventTime?: Date | null;
|
|
79
77
|
/**
|
|
80
78
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -84,12 +82,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
84
82
|
/** If present, indicates the action that triggered the event. */
|
|
85
83
|
originatedFrom?: string | null;
|
|
86
84
|
/**
|
|
87
|
-
* A sequence number
|
|
88
|
-
*
|
|
89
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
90
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
91
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
92
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
85
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
86
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
93
87
|
*/
|
|
94
88
|
entityEventSequence?: string | null;
|
|
95
89
|
}
|
|
@@ -115,7 +109,7 @@ export interface EntityUpdatedEvent {
|
|
|
115
109
|
currentEntity?: string;
|
|
116
110
|
}
|
|
117
111
|
export interface EntityDeletedEvent {
|
|
118
|
-
/** Entity that was deleted */
|
|
112
|
+
/** Entity that was deleted. */
|
|
119
113
|
deletedEntity?: string | null;
|
|
120
114
|
}
|
|
121
115
|
export interface ActionEvent {
|
|
@@ -161,7 +155,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
161
155
|
*/
|
|
162
156
|
appId?: string;
|
|
163
157
|
/** @readonly */
|
|
164
|
-
identityType?:
|
|
158
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
165
159
|
}
|
|
166
160
|
/** @oneof */
|
|
167
161
|
export interface IdentificationDataIdOneOf {
|
|
@@ -193,6 +187,8 @@ export declare enum WebhookIdentityType {
|
|
|
193
187
|
WIX_USER = "WIX_USER",
|
|
194
188
|
APP = "APP"
|
|
195
189
|
}
|
|
190
|
+
/** @enumType */
|
|
191
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
196
192
|
export interface BaseEventMetadata {
|
|
197
193
|
/**
|
|
198
194
|
* App instance ID.
|
|
@@ -208,25 +204,21 @@ export interface BaseEventMetadata {
|
|
|
208
204
|
identity?: IdentificationData;
|
|
209
205
|
}
|
|
210
206
|
export interface EventMetadata extends BaseEventMetadata {
|
|
211
|
-
/**
|
|
212
|
-
* Unique event ID.
|
|
213
|
-
* Allows clients to ignore duplicate webhooks.
|
|
214
|
-
*/
|
|
207
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
215
208
|
_id?: string;
|
|
216
209
|
/**
|
|
217
|
-
*
|
|
218
|
-
*
|
|
210
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
211
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
219
212
|
*/
|
|
220
213
|
entityFqdn?: string;
|
|
221
214
|
/**
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
215
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
216
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
225
217
|
*/
|
|
226
218
|
slug?: string;
|
|
227
219
|
/** ID of the entity associated with the event. */
|
|
228
220
|
entityId?: string;
|
|
229
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
221
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
230
222
|
eventTime?: Date | null;
|
|
231
223
|
/**
|
|
232
224
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -236,12 +228,8 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
236
228
|
/** If present, indicates the action that triggered the event. */
|
|
237
229
|
originatedFrom?: string | null;
|
|
238
230
|
/**
|
|
239
|
-
* A sequence number
|
|
240
|
-
*
|
|
241
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
242
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
243
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
244
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
231
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
232
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
245
233
|
*/
|
|
246
234
|
entityEventSequence?: string | null;
|
|
247
235
|
}
|
package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.universal.js","sourceRoot":"","sources":["../../../../src/loyalty-socialmedia-v1-followed-channel-social-media.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,gDAAgD,MAAM,gEAAgE,CAAC;AAwBnI,MAAM,CAAN,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,KAAJ,IAAI,QAaf;
|
|
1
|
+
{"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.universal.js","sourceRoot":"","sources":["../../../../src/loyalty-socialmedia-v1-followed-channel-social-media.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,gDAAgD,MAAM,gEAAgE,CAAC;AAwBnI,MAAM,CAAN,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,KAAJ,IAAI,QAaf;AAyKD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B;AAkFD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,eAA6D;IAE7D,aAAa;IACb,MAAM,EAAE,UAA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CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE;YAC5B,uBAAuB,EAAE,KAAK;SAC/B,EACD,EAAE,CACH,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_loyalty_social-media",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": "wix.loyalty.socialmedia.v1.followed_channel"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "ef8ffd9f7a9a5795f8da15013a82e6fd39a37e90f912aa83700bc499"
|
|
52
52
|
}
|