@giosg/types 7.1.0 → 7.2.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/CHANGELOG.md +269 -0
- package/lib/cjs/GiosgTCApi.d.ts +1 -0
- package/lib/cjs/GiosgTCApi.d.ts.map +1 -1
- package/lib/cjs/conditions.d.ts +3 -1
- package/lib/cjs/conditions.d.ts.map +1 -1
- package/lib/cjs/conditions.js +2 -0
- package/lib/cjs/index.d.ts +2 -2
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/public.d.ts +10 -31
- package/lib/cjs/public.d.ts.map +1 -1
- package/lib/cjs/rooms.d.ts +3 -0
- package/lib/cjs/rooms.d.ts.map +1 -1
- package/lib/cjs/types.d.ts +1 -1
- package/lib/cjs/types.d.ts.map +1 -1
- package/lib/cjs/types.js +2 -0
- package/lib/mjs/GiosgTCApi.d.ts +1 -0
- package/lib/mjs/GiosgTCApi.d.ts.map +1 -1
- package/lib/mjs/apps.js +1 -0
- package/lib/mjs/assets.js +1 -0
- package/lib/mjs/brands.js +1 -0
- package/lib/mjs/call.js +1 -0
- package/lib/mjs/canned_answers.js +1 -0
- package/lib/mjs/chat.js +1 -0
- package/lib/mjs/conditions.d.ts +3 -1
- package/lib/mjs/conditions.d.ts.map +1 -1
- package/lib/mjs/conditions.js +2 -0
- package/lib/mjs/customer.js +1 -0
- package/lib/mjs/customership.js +1 -0
- package/lib/mjs/email.js +1 -0
- package/lib/mjs/experiments.js +1 -0
- package/lib/mjs/goals.js +1 -0
- package/lib/mjs/index.d.ts +2 -2
- package/lib/mjs/index.d.ts.map +1 -1
- package/lib/mjs/leadforms.js +1 -0
- package/lib/mjs/linkpreview.js +1 -0
- package/lib/mjs/partnerships.js +1 -0
- package/lib/mjs/permissions.js +1 -0
- package/lib/mjs/public.d.ts +10 -31
- package/lib/mjs/public.d.ts.map +1 -1
- package/lib/mjs/rooms.d.ts +3 -0
- package/lib/mjs/rooms.d.ts.map +1 -1
- package/lib/mjs/rooms.js +1 -0
- package/lib/mjs/routers.js +1 -0
- package/lib/mjs/rules.js +1 -0
- package/lib/mjs/sharing.js +1 -0
- package/lib/mjs/shoppingcarts.js +1 -0
- package/lib/mjs/system.js +1 -0
- package/lib/mjs/target.js +1 -0
- package/lib/mjs/teams.js +1 -0
- package/lib/mjs/types.d.ts +1 -1
- package/lib/mjs/types.d.ts.map +1 -1
- package/lib/mjs/types.js +2 -0
- package/lib/mjs/uploads.js +1 -0
- package/lib/mjs/userclients.js +1 -0
- package/lib/mjs/variables.js +1 -0
- package/lib/mjs/visitor.js +1 -0
- package/lib/mjs/webhooks.js +1 -0
- package/package.json +2 -2
- package/lib/GiosgTCApi.d.ts +0 -118
- package/lib/GiosgTCApi.d.ts.map +0 -1
- package/lib/GiosgTCApi.js +0 -22
- package/lib/actions.d.ts +0 -72
- package/lib/actions.d.ts.map +0 -1
- package/lib/actions.js +0 -60
- package/lib/apps.d.ts +0 -99
- package/lib/apps.d.ts.map +0 -1
- package/lib/apps.js +0 -1
- package/lib/assets.d.ts +0 -144
- package/lib/assets.d.ts.map +0 -1
- package/lib/assets.js +0 -1
- package/lib/brands.d.ts +0 -41
- package/lib/brands.d.ts.map +0 -1
- package/lib/brands.js +0 -1
- package/lib/call.d.ts +0 -41
- package/lib/call.d.ts.map +0 -1
- package/lib/call.js +0 -1
- package/lib/canned_answers.d.ts +0 -26
- package/lib/canned_answers.d.ts.map +0 -1
- package/lib/canned_answers.js +0 -1
- package/lib/chat.d.ts +0 -1071
- package/lib/chat.d.ts.map +0 -1
- package/lib/chat.js +0 -1
- package/lib/common.d.ts +0 -7
- package/lib/common.d.ts.map +0 -1
- package/lib/common.js +0 -625
- package/lib/conditions.d.ts +0 -98
- package/lib/conditions.d.ts.map +0 -1
- package/lib/conditions.js +0 -77
- package/lib/customer.d.ts +0 -519
- package/lib/customer.d.ts.map +0 -1
- package/lib/customer.js +0 -1
- package/lib/customership.d.ts +0 -79
- package/lib/customership.d.ts.map +0 -1
- package/lib/customership.js +0 -1
- package/lib/email.d.ts +0 -47
- package/lib/email.d.ts.map +0 -1
- package/lib/email.js +0 -1
- package/lib/experiments.d.ts +0 -168
- package/lib/experiments.d.ts.map +0 -1
- package/lib/experiments.js +0 -1
- package/lib/goals.d.ts +0 -126
- package/lib/goals.d.ts.map +0 -1
- package/lib/goals.js +0 -1
- package/lib/index.d.ts +0 -36
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -7
- package/lib/leadforms.d.ts +0 -30
- package/lib/leadforms.d.ts.map +0 -1
- package/lib/leadforms.js +0 -1
- package/lib/linkpreview.d.ts +0 -16
- package/lib/linkpreview.d.ts.map +0 -1
- package/lib/linkpreview.js +0 -1
- package/lib/oath.d.ts +0 -75
- package/lib/oath.d.ts.map +0 -1
- package/lib/oath.js +0 -22
- package/lib/partnerships.d.ts +0 -54
- package/lib/partnerships.d.ts.map +0 -1
- package/lib/partnerships.js +0 -1
- package/lib/permissions.d.ts +0 -26
- package/lib/permissions.d.ts.map +0 -1
- package/lib/permissions.js +0 -1
- package/lib/public.d.ts +0 -397
- package/lib/public.d.ts.map +0 -1
- package/lib/public.js +0 -9
- package/lib/rooms.d.ts +0 -205
- package/lib/rooms.d.ts.map +0 -1
- package/lib/rooms.js +0 -1
- package/lib/routers.d.ts +0 -76
- package/lib/routers.d.ts.map +0 -1
- package/lib/routers.js +0 -1
- package/lib/rules.d.ts +0 -229
- package/lib/rules.d.ts.map +0 -1
- package/lib/rules.js +0 -1
- package/lib/sharing.d.ts +0 -111
- package/lib/sharing.d.ts.map +0 -1
- package/lib/sharing.js +0 -1
- package/lib/shoppingcarts.d.ts +0 -33
- package/lib/shoppingcarts.d.ts.map +0 -1
- package/lib/shoppingcarts.js +0 -1
- package/lib/system.d.ts +0 -21
- package/lib/system.d.ts.map +0 -1
- package/lib/system.js +0 -1
- package/lib/target.d.ts +0 -105
- package/lib/target.d.ts.map +0 -1
- package/lib/target.js +0 -1
- package/lib/teams.d.ts +0 -78
- package/lib/teams.d.ts.map +0 -1
- package/lib/teams.js +0 -1
- package/lib/types.d.ts +0 -226
- package/lib/types.d.ts.map +0 -1
- package/lib/types.js +0 -26
- package/lib/uploads.d.ts +0 -55
- package/lib/uploads.d.ts.map +0 -1
- package/lib/uploads.js +0 -1
- package/lib/userclients.d.ts +0 -79
- package/lib/userclients.d.ts.map +0 -1
- package/lib/userclients.js +0 -1
- package/lib/variables.d.ts +0 -41
- package/lib/variables.d.ts.map +0 -1
- package/lib/variables.js +0 -1
- package/lib/visitor.d.ts +0 -210
- package/lib/visitor.d.ts.map +0 -1
- package/lib/visitor.js +0 -1
- package/lib/webhooks.d.ts +0 -61
- package/lib/webhooks.d.ts.map +0 -1
- package/lib/webhooks.js +0 -1
package/lib/visitor.d.ts
DELETED
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import { NestedUser } from "./customer";
|
|
2
|
-
import { BlackListUid, VisitorCid, RoomUid, UserUid, VisitorSessionCid, RuleUid } from "./types";
|
|
3
|
-
import { LanguageCode, Currency } from "./common";
|
|
4
|
-
import { PublicChat, PublicChatMessage, PublicRoom } from "./public";
|
|
5
|
-
/**
|
|
6
|
-
* You may need to add room visitor to blacklist.
|
|
7
|
-
* These bans can last a varying length of time and may be restricted to specific rooms or IP.
|
|
8
|
-
*/
|
|
9
|
-
export interface BlackList {
|
|
10
|
-
/** ID of the ban object. */
|
|
11
|
-
id: BlackListUid;
|
|
12
|
-
/** ID of the visitor. */
|
|
13
|
-
visitor_id: VisitorCid;
|
|
14
|
-
/** ID of the chat’s room. */
|
|
15
|
-
room_id: RoomUid;
|
|
16
|
-
/** ID of the blocker. */
|
|
17
|
-
created_by_user_id: UserUid;
|
|
18
|
-
/** The user info of the blocker as an object. */
|
|
19
|
-
created_by_user: NestedUser;
|
|
20
|
-
/** When the ban was created. */
|
|
21
|
-
created_at: string;
|
|
22
|
-
/** When the ban ends at. */
|
|
23
|
-
ends_at: string;
|
|
24
|
-
/** Duration of the ban. This must be a positive integer which represents ban duration in seconds. */
|
|
25
|
-
duration: number;
|
|
26
|
-
/** Reason why the visitor was added to the blacklist. */
|
|
27
|
-
reason: string | null;
|
|
28
|
-
/** IP address of the visitor */
|
|
29
|
-
ip_address: string;
|
|
30
|
-
/** Is visitor’s IP address banned. */
|
|
31
|
-
is_ip_address_banned: boolean;
|
|
32
|
-
}
|
|
33
|
-
export interface BlackListPayload {
|
|
34
|
-
/** Duration of the ban. This must be a positive integer which represents ban duration in seconds. */
|
|
35
|
-
duration: number;
|
|
36
|
-
/** Reason why the visitor was added to the blacklist. */
|
|
37
|
-
reason?: string;
|
|
38
|
-
/** Is visitor’s IP address banned. */
|
|
39
|
-
is_ip_address_banned?: boolean;
|
|
40
|
-
}
|
|
41
|
-
/** TODO: Add jsdocs and check nullability of fields */
|
|
42
|
-
export interface CartLockedResponse {
|
|
43
|
-
cart_id: string;
|
|
44
|
-
total_value: string;
|
|
45
|
-
total_subscription_value: string;
|
|
46
|
-
currency: string;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* A room visitor page view object represents the visitor’s page view at a specific room.
|
|
50
|
-
*/
|
|
51
|
-
export interface RoomVisitorPageView {
|
|
52
|
-
/** When the visitor visited the page. */
|
|
53
|
-
created_at: string;
|
|
54
|
-
/**
|
|
55
|
-
* Unique identifier for the visitor.
|
|
56
|
-
* This is the same for the same visitor regardless of the room from which the visitor was requested. */
|
|
57
|
-
visitor_id: VisitorCid;
|
|
58
|
-
/** ID of the room from which this room visitor page view resource was requested. */
|
|
59
|
-
room_id: RoomUid;
|
|
60
|
-
/**
|
|
61
|
-
* @todo: What type of session it is?
|
|
62
|
-
*
|
|
63
|
-
* In which session the visitor visited the page.
|
|
64
|
-
*/
|
|
65
|
-
session_id: VisitorSessionCid;
|
|
66
|
-
/** Title of the web page at which the visitor visited.
|
|
67
|
-
*/
|
|
68
|
-
page_title: string;
|
|
69
|
-
/** URL of the web page at which the visitor visited. */
|
|
70
|
-
page_url: string;
|
|
71
|
-
/** Canonical URL of the web page at which the visitor visited. */
|
|
72
|
-
canonical_page_url: string;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* A visitor has a separate representation for each room.
|
|
76
|
-
* The returned attributes are different depending on from which room the visitor was requested.
|
|
77
|
-
*
|
|
78
|
-
* NOTE that all the metadata may not be available at the time of a request.
|
|
79
|
-
* In that case, they will be null. An appropriate notification will be sent via channels when the information becomes available.
|
|
80
|
-
*/
|
|
81
|
-
export interface RoomVisitor {
|
|
82
|
-
/** Unique identifier for the visitor. This is the same for the same visitor regardless of the room from which the visitor was requested. */
|
|
83
|
-
id: VisitorCid;
|
|
84
|
-
/** ID of the room from which this room visitor resource was requested */
|
|
85
|
-
room_id: RoomUid;
|
|
86
|
-
/** Whether or not the visitor is currently present in the room */
|
|
87
|
-
is_present: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* @todo: What type of session it is?
|
|
90
|
-
*
|
|
91
|
-
* Identifier for the latest session for the visitor in this room */
|
|
92
|
-
session_id: VisitorSessionCid;
|
|
93
|
-
/** The latest priority of the visitor as set explicitly with rules. It may be null if the visitor has not been prioritized with rules. */
|
|
94
|
-
explicit_priority: number | null;
|
|
95
|
-
/** The latest priority automatically calculated for the visitor. */
|
|
96
|
-
implicit_priority: number | null;
|
|
97
|
-
/** During how many distinct sessions the visitor has been active on this room. */
|
|
98
|
-
visit_count: number | null;
|
|
99
|
-
/** Either desktop, mobile or tablet */
|
|
100
|
-
device_type: "desktop" | "mobile" | "tablet" | null;
|
|
101
|
-
/** The width resolution of the visitor’s screen in pixels */
|
|
102
|
-
device_screen_width: number | null;
|
|
103
|
-
/** The height resolution of the visitor’s screen in pixels */
|
|
104
|
-
device_screen_height: number | null;
|
|
105
|
-
/** Name of the browser which the visitor is currently using, without any version number. */
|
|
106
|
-
browser_name: string | null;
|
|
107
|
-
/** Version of the browser which the visitor is currently using. */
|
|
108
|
-
browser_version: string | null;
|
|
109
|
-
/** The preferred languages of the visitor as sent by the browser as the Accept-Language HTTP header.
|
|
110
|
-
* E.g. fi-FI,fi;q=0.8,en-US;q=0.6,en;q=0.4.
|
|
111
|
-
* In most cases it is more convenient to use preferred_language_code instead. */
|
|
112
|
-
browser_language: string | null;
|
|
113
|
-
/** The ISO code of the most preferred language of the visitor, e.g. fi or en-US */
|
|
114
|
-
preferred_language_code: LanguageCode | null;
|
|
115
|
-
/** Name of the operating system which the visitor is using, without any version number. */
|
|
116
|
-
os_name: string | null;
|
|
117
|
-
/** Version of the operating system which the visitor is using */
|
|
118
|
-
os_version: string | null;
|
|
119
|
-
/** User-Agent header of the visitor browser */
|
|
120
|
-
user_agent: string | null;
|
|
121
|
-
/** IP address of the visitor (IPv4) */
|
|
122
|
-
ip_address: string | null;
|
|
123
|
-
/** An organization name resolved from the IP address */
|
|
124
|
-
ip_organization: string | null;
|
|
125
|
-
/** The best guess about the name of the city where the visitor is currently located. This is usually resolved from their IP address. */
|
|
126
|
-
geo_city: string | null;
|
|
127
|
-
/** The best guess about the country where the visitor is currently located.
|
|
128
|
-
* This is usually resolved from their IP address. This is a upper-case, two-letter ISO 3166-1 country code */
|
|
129
|
-
geo_country_code: string | null;
|
|
130
|
-
/** The country as in country_code, but represented as the name of the country. */
|
|
131
|
-
geo_country: string | null;
|
|
132
|
-
/** The full URL from which the visitor entered the room during this session */
|
|
133
|
-
referrer_url: string | null;
|
|
134
|
-
/** Hostname from which the visitor entered the room during this session */
|
|
135
|
-
referrer_url_hostname: string | null;
|
|
136
|
-
/** Either internal, search, email, social, or website */
|
|
137
|
-
referrer_medium: "internal" | "search" | "email" | "social" | "website" | null;
|
|
138
|
-
/** The name of the referrer source */
|
|
139
|
-
referrer_source: string | null;
|
|
140
|
-
/** The full URL from which the visitor originally entered the room */
|
|
141
|
-
original_referrer_url: string | null;
|
|
142
|
-
/** Hostname from which the visitor originally entered the room */
|
|
143
|
-
original_referrer_url_hostname: string | null;
|
|
144
|
-
/** Either internal, search, email, social, or website */
|
|
145
|
-
original_referrer_medium: "internal" | "search" | "email" | "social" | "website" | null;
|
|
146
|
-
/** The name of the original referrer source */
|
|
147
|
-
original_referrer_source: string | null;
|
|
148
|
-
/** URL of the web page at which the visitor is currently, at this room. */
|
|
149
|
-
page_url: string | null;
|
|
150
|
-
/** Title of the web page at which the visitor is currently, at this room. */
|
|
151
|
-
page_title: string | null;
|
|
152
|
-
/** Canonical URL of the web page at which the visitor is currently, at this room. Same than page_url if no canonical URL is available. */
|
|
153
|
-
canonical_page_url: string | null;
|
|
154
|
-
/** When the latest session of the visitor has started at this particular room. */
|
|
155
|
-
session_started_at: string | null;
|
|
156
|
-
/**
|
|
157
|
-
* When the information of the room visitor was updated last time.
|
|
158
|
-
* In practice, this means when we have heard about the visitor last time at this particular room. */
|
|
159
|
-
updated_at: string | null;
|
|
160
|
-
/**
|
|
161
|
-
* An estimated duration of the visitor’s session at the moment,
|
|
162
|
-
* in seconds, possibly with fractions. This is equivalent to the
|
|
163
|
-
* difference between session_started_at and updated_at.
|
|
164
|
-
*/
|
|
165
|
-
session_duration: number | null;
|
|
166
|
-
/**
|
|
167
|
-
* The currency of the visitor’s shopping cart in the room,
|
|
168
|
-
* if the visitor has any, otherwise null. Currency is a upper-case ISO 4217 currency code, e.g. EUR.
|
|
169
|
-
*/
|
|
170
|
-
shopping_cart_currency: Currency | null;
|
|
171
|
-
/** The total value of the visitor’s shopping cart in the room,
|
|
172
|
-
* if the visitor has any. Value null means the shopping cart is not defined.
|
|
173
|
-
* The value is presented as a decimal string, e.g. 59.00 in the currency defined by shopping_cart_currency. */
|
|
174
|
-
shopping_cart_total_value: string | null;
|
|
175
|
-
/** The total monthly subscription value of the visitor’s shopping cart in the room,
|
|
176
|
-
* if the visitor has any. Value null means the shopping cart is not defined.
|
|
177
|
-
* The value is presented as a decimal string, e.g. 59.00 in the currency
|
|
178
|
-
* defined by shopping_cart_currency and per month. */
|
|
179
|
-
shopping_cart_total_subscription_value: string | null;
|
|
180
|
-
/**
|
|
181
|
-
* When the visitor checked out their shopping cart in this room.
|
|
182
|
-
* It is null if the cart is not yet checked out or the cart is not defined.
|
|
183
|
-
*/
|
|
184
|
-
shopping_cart_locked_at: string | null;
|
|
185
|
-
/** When the visitor was autosuggested in this room. It is null if the visitor was not autosuggested or the autosuggest happened over 5 minutes ago. */
|
|
186
|
-
session_autosuggested_at: string | null;
|
|
187
|
-
/** @deprecated */
|
|
188
|
-
pipeline_step_index: number | null;
|
|
189
|
-
/** @deprecated */
|
|
190
|
-
pipeline_step_name: string | null;
|
|
191
|
-
/** @deprecated */
|
|
192
|
-
pipeline_step_count: number | null;
|
|
193
|
-
/** @deprecated */
|
|
194
|
-
legacy_id: string | null;
|
|
195
|
-
}
|
|
196
|
-
export declare type ComposingStatus = "idle" | "typing" | "typed";
|
|
197
|
-
export interface ChatWithRoom extends PublicChat {
|
|
198
|
-
room: PublicRoom;
|
|
199
|
-
}
|
|
200
|
-
export declare type ChatMessageWithChat = PublicChatMessage & {
|
|
201
|
-
chat: ChatWithRoom;
|
|
202
|
-
};
|
|
203
|
-
export interface RulePrediction {
|
|
204
|
-
[key: string]: any;
|
|
205
|
-
id: string;
|
|
206
|
-
created_at: string;
|
|
207
|
-
room_id: RoomUid;
|
|
208
|
-
rule_id: RuleUid;
|
|
209
|
-
}
|
|
210
|
-
//# sourceMappingURL=visitor.d.ts.map
|
package/lib/visitor.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"visitor.d.ts","sourceRoot":"","sources":["../src/visitor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACjG,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,UA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2DAGuD;IACvD,sCAAsC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtD;;;OAGG;IACH,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvC,uJAAuJ;IACvJ,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAC;IAExC,kBAAkB;IAClB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,kBAAkB;IAClB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,kBAAkB;IAClB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,kBAAkB;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,oBAAY,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE1D,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,oBAAY,mBAAmB,GAAG,iBAAiB,GAAG;IACpD,IAAI,EAAE,YAAY,CAAC;CACpB,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB"}
|
package/lib/visitor.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/webhooks.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { NestedGiosgApp } from "./apps";
|
|
2
|
-
import { NestedOrganization } from "./customer";
|
|
3
|
-
import { NestedUser } from "./customer";
|
|
4
|
-
import { GiosgAppUid, OrganizationUid, UserUid, WebhookUid } from "./types";
|
|
5
|
-
/** TODO: Add jsdocs and check nullability of fields */
|
|
6
|
-
export interface NestedWebhookChannelSubscription {
|
|
7
|
-
channel_pattern: string;
|
|
8
|
-
is_additions_subscribed: boolean;
|
|
9
|
-
is_changes_subscribed: boolean;
|
|
10
|
-
is_removals_subscribed: boolean;
|
|
11
|
-
}
|
|
12
|
-
/** TODO: Add jsdocs and check nullability of fields */
|
|
13
|
-
export interface NestedWebhookChannelSubscriptionPayload {
|
|
14
|
-
channel_pattern: string;
|
|
15
|
-
is_additions_subscribed: boolean;
|
|
16
|
-
is_changes_subscribed: boolean;
|
|
17
|
-
is_removals_subscribed: boolean;
|
|
18
|
-
}
|
|
19
|
-
/** TODO: Add jsdocs and check nullability of fields */
|
|
20
|
-
export interface WebhookRequestLogEntry {
|
|
21
|
-
created_at: string;
|
|
22
|
-
app_id: GiosgAppUid;
|
|
23
|
-
organization_id: OrganizationUid;
|
|
24
|
-
webhook_id: WebhookUid;
|
|
25
|
-
endpoint_url: string;
|
|
26
|
-
action: string;
|
|
27
|
-
resource_id: string;
|
|
28
|
-
channel: string;
|
|
29
|
-
status: "pending" | "started" | "successful" | "failed";
|
|
30
|
-
retry_index: number;
|
|
31
|
-
reason: string;
|
|
32
|
-
response_status_code: number;
|
|
33
|
-
response_body: string;
|
|
34
|
-
response_headers: {
|
|
35
|
-
[key: string]: string;
|
|
36
|
-
};
|
|
37
|
-
duration: number;
|
|
38
|
-
completed_at: string;
|
|
39
|
-
}
|
|
40
|
-
/** TODO: Add jsdocs and check nullability of fields */
|
|
41
|
-
export interface Webhook {
|
|
42
|
-
id: WebhookUid;
|
|
43
|
-
app_id: GiosgAppUid;
|
|
44
|
-
app: NestedGiosgApp;
|
|
45
|
-
organization_id: OrganizationUid;
|
|
46
|
-
organization: NestedOrganization;
|
|
47
|
-
created_at: string;
|
|
48
|
-
updated_at: string;
|
|
49
|
-
created_by_user_id: UserUid;
|
|
50
|
-
created_by_user: NestedUser;
|
|
51
|
-
updated_by_user_id: UserUid;
|
|
52
|
-
updated_by_user: NestedUser;
|
|
53
|
-
endpoint_url: string;
|
|
54
|
-
channel_subscriptions: NestedWebhookChannelSubscription[];
|
|
55
|
-
}
|
|
56
|
-
/** TODO: Add jsdocs and check nullability of fields */
|
|
57
|
-
export interface WebhookPayload {
|
|
58
|
-
endpoint_url: string;
|
|
59
|
-
channel_subscriptions?: NestedWebhookChannelSubscriptionPayload[];
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=webhooks.d.ts.map
|
package/lib/webhooks.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE5E,uDAAuD;AACvD,MAAM,WAAW,gCAAgC;IAC/C,eAAe,EAAE,MAAM,CAAC;IACxB,uBAAuB,EAAE,OAAO,CAAC;IACjC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,sBAAsB,EAAE,OAAO,CAAC;CACjC;AAED,uDAAuD;AACvD,MAAM,WAAW,uCAAuC;IACtD,eAAe,EAAE,MAAM,CAAC;IACxB,uBAAuB,EAAE,OAAO,CAAC;IACjC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,sBAAsB,EAAE,OAAO,CAAC;CACjC;AAED,uDAAuD;AACvD,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,WAAW,CAAC;IACpB,eAAe,EAAE,eAAe,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,YAAY,GAAG,QAAQ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