skapi-js 2.2.6-beta.0 → 2.2.6-beta.1
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/dist/skapi.browser.mjs +2 -2
- package/dist/skapi.browser.mjs.map +1 -1
- package/dist/skapi.cjs +2 -2
- package/dist/skapi.cjs.map +1 -1
- package/dist/skapi.d.mts +59 -18
- package/dist/skapi.d.ts +59 -18
- package/dist/skapi.js +2 -2
- package/dist/skapi.js.map +1 -1
- package/dist/skapi.mjs +2 -2
- package/dist/skapi.mjs.map +1 -1
- package/package.json +1 -1
package/dist/skapi.d.mts
CHANGED
|
@@ -296,6 +296,13 @@ type Newsletter = {
|
|
|
296
296
|
* A number for the 0 ~ 99 groups, the group name for a named newsletter group.
|
|
297
297
|
*/
|
|
298
298
|
group: number | string;
|
|
299
|
+
/**
|
|
300
|
+
* true: mailed to the group's dry address, so it is stored and was sent to nobody. The
|
|
301
|
+
* Newsletters page's Send button, or a ticket's Send newsletter action, sends it later.
|
|
302
|
+
*/
|
|
303
|
+
dry?: boolean;
|
|
304
|
+
/** When the Send button or a ticket's Send newsletter action sent it, in ms. Absent on a newsletter that went out by e-mail. */
|
|
305
|
+
sent?: number;
|
|
299
306
|
};
|
|
300
307
|
type NewsletterGroup = {
|
|
301
308
|
/** Name of the newsletter group. */
|
|
@@ -872,7 +879,7 @@ type TicketResponseCondition = Pick<TicketCondition, 'headers' | 'data' | 'user'
|
|
|
872
879
|
* Registration refuses anything else inside `${ }` (an unknown root such as `${id}`, keys under
|
|
873
880
|
* a root that takes none such as `${ip[x]}`, `${placeholder}` or `${headers}` without a key,
|
|
874
881
|
* broken brackets) with a message listing these forms, `${result}` (gone: an answer is read as
|
|
875
|
-
* `${response}` in the action's Then chain, or captured by
|
|
882
|
+
* `${response}` in the action's Then chain, or captured there by a Condition action), and a reference written
|
|
876
883
|
* where it can never resolve (`${response}` outside a Then chain, `${error}` outside an `err`
|
|
877
884
|
* chain, `${record_access}` when the condition names no record). When the action runs, a
|
|
878
885
|
* reference that does not resolve fails it before it does anything: PATH_NOT_FOUND,
|
|
@@ -880,10 +887,11 @@ type TicketResponseCondition = Pick<TicketCondition, 'headers' | 'data' | 'user'
|
|
|
880
887
|
* on a request that is not signed in. Its `err` chain runs and the consumption stops.
|
|
881
888
|
*
|
|
882
889
|
* Every action but resp and cond answers something (the record, the response body, a SUCCESS
|
|
883
|
-
* text) and may carry a
|
|
884
|
-
*
|
|
885
|
-
* true` on acsg, acsr, pstr and
|
|
886
|
-
* seconds apart, while the time budget holds them; never for a
|
|
890
|
+
* text) and may carry a Then chain (`actions`, reading the answer as `${response}`). A Condition
|
|
891
|
+
* action in that chain checks the answer: its `response` rows read it whole (key "") or by key,
|
|
892
|
+
* whatever its shape. `retry: true` on acsg, acsr, pstr, req, mail and nlsd tries a failure again,
|
|
893
|
+
* up to 3 more times, 1, 2 and 4 seconds apart, while the time budget holds them; never for a
|
|
894
|
+
* failure inside Then.
|
|
887
895
|
*/
|
|
888
896
|
type TicketAction = {
|
|
889
897
|
/** Set the access group of a user. Answers the SUCCESS text the grant returns. */
|
|
@@ -893,8 +901,6 @@ type TicketAction = {
|
|
|
893
901
|
group: number | 'admin' | `${string}\${${string}}${string}`;
|
|
894
902
|
/** Blank = the consumer (signed-in consumption only). The project owner cannot be a target. */
|
|
895
903
|
user_id?: string;
|
|
896
|
-
/** The Check: rows on the answer. */
|
|
897
|
-
condition?: TicketAnswerCondition;
|
|
898
904
|
/** The Then chain, reading the answer as `${response}`. */
|
|
899
905
|
actions?: TicketAction[];
|
|
900
906
|
};
|
|
@@ -908,7 +914,6 @@ type TicketAction = {
|
|
|
908
914
|
record_id: string;
|
|
909
915
|
/** Blank = the consumer. */
|
|
910
916
|
user_id?: string | string[];
|
|
911
|
-
condition?: TicketAnswerCondition;
|
|
912
917
|
actions?: TicketAction[];
|
|
913
918
|
};
|
|
914
919
|
err?: TicketAction[];
|
|
@@ -936,8 +941,6 @@ type TicketAction = {
|
|
|
936
941
|
source?: PostRecordConfig['source'];
|
|
937
942
|
/** Post as this user instead of the project owner. */
|
|
938
943
|
user_id?: string;
|
|
939
|
-
/** The Check: rows on the record posted, such as `record_id`. */
|
|
940
|
-
condition?: TicketAnswerCondition;
|
|
941
944
|
/** The Then chain, reading the record as `${response}` (`${response[record_id]}`). */
|
|
942
945
|
actions?: TicketAction[];
|
|
943
946
|
};
|
|
@@ -1009,7 +1012,7 @@ type TicketAction = {
|
|
|
1009
1012
|
};
|
|
1010
1013
|
/** Legacy. Registration moves these rows to the end of `condition.data`. */
|
|
1011
1014
|
match?: TicketConditionRow[];
|
|
1012
|
-
/**
|
|
1015
|
+
/** Skapi's own billing rows only. A response check is a Condition action in `actions`, whose `response` rows read the answer. */
|
|
1013
1016
|
condition?: TicketResponseCondition;
|
|
1014
1017
|
/**
|
|
1015
1018
|
* Nested chain, run when the response passes `condition`. It reads the response body
|
|
@@ -1020,6 +1023,47 @@ type TicketAction = {
|
|
|
1020
1023
|
};
|
|
1021
1024
|
err?: TicketAction[];
|
|
1022
1025
|
retry?: boolean;
|
|
1026
|
+
} | {
|
|
1027
|
+
/**
|
|
1028
|
+
* Send e-mail: one e-mail from a CUSTOM template of the project (the Custom tab of the
|
|
1029
|
+
* Automated Emails page) to one address, from the project's alias. Counts as one e-mail
|
|
1030
|
+
* send (the plan's monthly sends, the Free owner cap and the complaint shutoff apply; a
|
|
1031
|
+
* refusal is QUOTA_EXCEEDED). Answers "SUCCESS: E-mail sent to <address>."
|
|
1032
|
+
*/
|
|
1033
|
+
act: 'mail';
|
|
1034
|
+
exe: {
|
|
1035
|
+
/** The template's ID, as the Custom tab and the upload reply show it. Literal; it must be stored when the ticket is registered. */
|
|
1036
|
+
template: string;
|
|
1037
|
+
/** The recipient: one address, or a reference that gives one, such as "${user[email]}" or "${data[email]}". */
|
|
1038
|
+
to: string;
|
|
1039
|
+
/**
|
|
1040
|
+
* Values for the placeholders the template carries, by name: { "order": "${data[order][id]}" } fills
|
|
1041
|
+
* ${order}. Templated. "service_name" and "email" (the recipient) are filled by default and may be
|
|
1042
|
+
* overwritten here. Up to 30.
|
|
1043
|
+
*/
|
|
1044
|
+
placeholders?: {
|
|
1045
|
+
[name: string]: string | number | boolean;
|
|
1046
|
+
};
|
|
1047
|
+
actions?: TicketAction[];
|
|
1048
|
+
};
|
|
1049
|
+
err?: TicketAction[];
|
|
1050
|
+
retry?: boolean;
|
|
1051
|
+
} | {
|
|
1052
|
+
/**
|
|
1053
|
+
* Send newsletter: a stored newsletter of a group, dry or already sent, to every subscriber of the
|
|
1054
|
+
* group, the way an e-mailed newsletter goes out (one e-mail send per subscriber, same gates).
|
|
1055
|
+
* Answers "SUCCESS: Newsletter sent to the subscribers of <group>."
|
|
1056
|
+
*/
|
|
1057
|
+
act: 'nlsd';
|
|
1058
|
+
exe: {
|
|
1059
|
+
/** "public", "authorized", a number from 2 to 99, or a named group. Literal. */
|
|
1060
|
+
group: 'public' | 'authorized' | number | string;
|
|
1061
|
+
/** The newsletter's message_id (getNewsletters()). Literal; it must be stored under the group when the ticket is registered. */
|
|
1062
|
+
newsletter: string;
|
|
1063
|
+
actions?: TicketAction[];
|
|
1064
|
+
};
|
|
1065
|
+
err?: TicketAction[];
|
|
1066
|
+
retry?: boolean;
|
|
1023
1067
|
} | {
|
|
1024
1068
|
/**
|
|
1025
1069
|
* Respond: answers the consumer now, then stops or goes on. One per run: a second Respond
|
|
@@ -1064,15 +1108,13 @@ type TicketAction = {
|
|
|
1064
1108
|
operator: TicketConditionOperator;
|
|
1065
1109
|
value: any;
|
|
1066
1110
|
}[];
|
|
1111
|
+
/** Rows on the enclosing action's answer, inside a Then chain only: a key reads a field, "" the whole answer as text. */
|
|
1067
1112
|
response?: TicketConditionRow[];
|
|
1113
|
+
/** Rows on the failure, inside an err chain only: code, message, detail, action, path, or "" for the whole error as text. */
|
|
1068
1114
|
error?: TicketConditionRow[];
|
|
1069
1115
|
};
|
|
1070
1116
|
err?: TicketAction[];
|
|
1071
1117
|
};
|
|
1072
|
-
/** The Check of an action: rows on its answer (TicketConditionRow, keys paths in the answer; "" is the whole answer as text). */
|
|
1073
|
-
type TicketAnswerCondition = {
|
|
1074
|
-
data?: TicketConditionRow[];
|
|
1075
|
-
};
|
|
1076
1118
|
/** What a consumption answers when no Respond action composes the answer. */
|
|
1077
1119
|
type TicketReceipt = {
|
|
1078
1120
|
ticket_id: string;
|
|
@@ -1176,7 +1218,6 @@ type Types_Table = Table;
|
|
|
1176
1218
|
type Types_Tag = Tag;
|
|
1177
1219
|
type Types_Ticket = Ticket;
|
|
1178
1220
|
type Types_TicketAction = TicketAction;
|
|
1179
|
-
type Types_TicketAnswerCondition = TicketAnswerCondition;
|
|
1180
1221
|
type Types_TicketCondition = TicketCondition;
|
|
1181
1222
|
type Types_TicketConditionOperator = TicketConditionOperator;
|
|
1182
1223
|
type Types_TicketConditionRow = TicketConditionRow;
|
|
@@ -1191,7 +1232,7 @@ type Types_UserProfile = UserProfile;
|
|
|
1191
1232
|
type Types_UserPublic = UserPublic;
|
|
1192
1233
|
type Types_WebSocketMessage = WebSocketMessage;
|
|
1193
1234
|
declare namespace Types {
|
|
1194
|
-
export type { Types_BinaryFile as BinaryFile, Types_Condition as Condition, Types_Connection as Connection, Types_ConnectionInfo as ConnectionInfo, Types_DatabaseResponse as DatabaseResponse, Types_DelRecordQuery as DelRecordQuery, Types_EncryptionOptions as EncryptionOptions, Types_FetchOptions as FetchOptions, Types_FileInfo as FileInfo, Types_Form as Form, Types_GetRecordQuery as GetRecordQuery, Types_Index as Index, Types_Newsletter as Newsletter, Types_NewsletterGroup as NewsletterGroup, Types_PostRecordConfig as PostRecordConfig, Types_ProgressCallback as ProgressCallback, Types_RTCConnector as RTCConnector, Types_RTCConnectorParams as RTCConnectorParams, Types_RTCEvent as RTCEvent, Types_RTCReceiverParams as RTCReceiverParams, Types_RTCResolved as RTCResolved, Types_RealtimeCallback as RealtimeCallback, Types_RecordData as RecordData, Types_RecordEncryptionInfo as RecordEncryptionInfo, Types_RequestHistory as RequestHistory, Types_Subscription as Subscription, Types_Table as Table, Types_Tag as Tag, Types_Ticket as Ticket, Types_TicketAction as TicketAction,
|
|
1235
|
+
export type { Types_BinaryFile as BinaryFile, Types_Condition as Condition, Types_Connection as Connection, Types_ConnectionInfo as ConnectionInfo, Types_DatabaseResponse as DatabaseResponse, Types_DelRecordQuery as DelRecordQuery, Types_EncryptionOptions as EncryptionOptions, Types_FetchOptions as FetchOptions, Types_FileInfo as FileInfo, Types_Form as Form, Types_GetRecordQuery as GetRecordQuery, Types_Index as Index, Types_Newsletter as Newsletter, Types_NewsletterGroup as NewsletterGroup, Types_PostRecordConfig as PostRecordConfig, Types_ProgressCallback as ProgressCallback, Types_RTCConnector as RTCConnector, Types_RTCConnectorParams as RTCConnectorParams, Types_RTCEvent as RTCEvent, Types_RTCReceiverParams as RTCReceiverParams, Types_RTCResolved as RTCResolved, Types_RealtimeCallback as RealtimeCallback, Types_RecordData as RecordData, Types_RecordEncryptionInfo as RecordEncryptionInfo, Types_RequestHistory as RequestHistory, Types_Subscription as Subscription, Types_Table as Table, Types_Tag as Tag, Types_Ticket as Ticket, Types_TicketAction as TicketAction, Types_TicketCondition as TicketCondition, Types_TicketConditionOperator as TicketConditionOperator, Types_TicketConditionRow as TicketConditionRow, Types_TicketError as TicketError, Types_TicketErrorCode as TicketErrorCode, Types_TicketReceipt as TicketReceipt, Types_TicketResponseCondition as TicketResponseCondition, Types_TicketSignatureCondition as TicketSignatureCondition, Types_UniqueId as UniqueId, Types_UserAttributes as UserAttributes, Types_UserProfile as UserProfile, Types_UserPublic as UserPublic, Types_WebSocketMessage as WebSocketMessage };
|
|
1195
1236
|
}
|
|
1196
1237
|
|
|
1197
1238
|
declare function terminatePendingRequests(): void;
|
|
@@ -3114,4 +3155,4 @@ declare class SkapiError extends Error {
|
|
|
3114
3155
|
});
|
|
3115
3156
|
}
|
|
3116
3157
|
|
|
3117
|
-
export { type BinaryFile, type Condition, type Connection, type ConnectionInfo, type DatabaseResponse, type DelRecordQuery, type FetchOptions, type FileInfo, type Form, type GetRecordQuery, type Index, type Newsletter, type NewsletterGroup, type PostRecordConfig, type ProgressCallback, type RTCConnector, type RTCConnectorParams, type RTCEvent, type RTCReceiverParams, type RTCResolved, type RealtimeCallback, type RecordData, Skapi, SkapiError, type Subscription, type Table, type Tag, type Ticket, type TicketAction, type
|
|
3158
|
+
export { type BinaryFile, type Condition, type Connection, type ConnectionInfo, type DatabaseResponse, type DelRecordQuery, type FetchOptions, type FileInfo, type Form, type GetRecordQuery, type Index, type Newsletter, type NewsletterGroup, type PostRecordConfig, type ProgressCallback, type RTCConnector, type RTCConnectorParams, type RTCEvent, type RTCReceiverParams, type RTCResolved, type RealtimeCallback, type RecordData, Skapi, SkapiError, type Subscription, type Table, type Tag, type Ticket, type TicketAction, type TicketCondition, type TicketConditionOperator, type TicketConditionRow, type TicketError, type TicketErrorCode, type TicketReceipt, type TicketResponseCondition, type TicketSignatureCondition, Types, type UniqueId, type UserAttributes, type UserProfile, type UserPublic, type WebSocketMessage };
|
package/dist/skapi.d.ts
CHANGED
|
@@ -296,6 +296,13 @@ type Newsletter = {
|
|
|
296
296
|
* A number for the 0 ~ 99 groups, the group name for a named newsletter group.
|
|
297
297
|
*/
|
|
298
298
|
group: number | string;
|
|
299
|
+
/**
|
|
300
|
+
* true: mailed to the group's dry address, so it is stored and was sent to nobody. The
|
|
301
|
+
* Newsletters page's Send button, or a ticket's Send newsletter action, sends it later.
|
|
302
|
+
*/
|
|
303
|
+
dry?: boolean;
|
|
304
|
+
/** When the Send button or a ticket's Send newsletter action sent it, in ms. Absent on a newsletter that went out by e-mail. */
|
|
305
|
+
sent?: number;
|
|
299
306
|
};
|
|
300
307
|
type NewsletterGroup = {
|
|
301
308
|
/** Name of the newsletter group. */
|
|
@@ -872,7 +879,7 @@ type TicketResponseCondition = Pick<TicketCondition, 'headers' | 'data' | 'user'
|
|
|
872
879
|
* Registration refuses anything else inside `${ }` (an unknown root such as `${id}`, keys under
|
|
873
880
|
* a root that takes none such as `${ip[x]}`, `${placeholder}` or `${headers}` without a key,
|
|
874
881
|
* broken brackets) with a message listing these forms, `${result}` (gone: an answer is read as
|
|
875
|
-
* `${response}` in the action's Then chain, or captured by
|
|
882
|
+
* `${response}` in the action's Then chain, or captured there by a Condition action), and a reference written
|
|
876
883
|
* where it can never resolve (`${response}` outside a Then chain, `${error}` outside an `err`
|
|
877
884
|
* chain, `${record_access}` when the condition names no record). When the action runs, a
|
|
878
885
|
* reference that does not resolve fails it before it does anything: PATH_NOT_FOUND,
|
|
@@ -880,10 +887,11 @@ type TicketResponseCondition = Pick<TicketCondition, 'headers' | 'data' | 'user'
|
|
|
880
887
|
* on a request that is not signed in. Its `err` chain runs and the consumption stops.
|
|
881
888
|
*
|
|
882
889
|
* Every action but resp and cond answers something (the record, the response body, a SUCCESS
|
|
883
|
-
* text) and may carry a
|
|
884
|
-
*
|
|
885
|
-
* true` on acsg, acsr, pstr and
|
|
886
|
-
* seconds apart, while the time budget holds them; never for a
|
|
890
|
+
* text) and may carry a Then chain (`actions`, reading the answer as `${response}`). A Condition
|
|
891
|
+
* action in that chain checks the answer: its `response` rows read it whole (key "") or by key,
|
|
892
|
+
* whatever its shape. `retry: true` on acsg, acsr, pstr, req, mail and nlsd tries a failure again,
|
|
893
|
+
* up to 3 more times, 1, 2 and 4 seconds apart, while the time budget holds them; never for a
|
|
894
|
+
* failure inside Then.
|
|
887
895
|
*/
|
|
888
896
|
type TicketAction = {
|
|
889
897
|
/** Set the access group of a user. Answers the SUCCESS text the grant returns. */
|
|
@@ -893,8 +901,6 @@ type TicketAction = {
|
|
|
893
901
|
group: number | 'admin' | `${string}\${${string}}${string}`;
|
|
894
902
|
/** Blank = the consumer (signed-in consumption only). The project owner cannot be a target. */
|
|
895
903
|
user_id?: string;
|
|
896
|
-
/** The Check: rows on the answer. */
|
|
897
|
-
condition?: TicketAnswerCondition;
|
|
898
904
|
/** The Then chain, reading the answer as `${response}`. */
|
|
899
905
|
actions?: TicketAction[];
|
|
900
906
|
};
|
|
@@ -908,7 +914,6 @@ type TicketAction = {
|
|
|
908
914
|
record_id: string;
|
|
909
915
|
/** Blank = the consumer. */
|
|
910
916
|
user_id?: string | string[];
|
|
911
|
-
condition?: TicketAnswerCondition;
|
|
912
917
|
actions?: TicketAction[];
|
|
913
918
|
};
|
|
914
919
|
err?: TicketAction[];
|
|
@@ -936,8 +941,6 @@ type TicketAction = {
|
|
|
936
941
|
source?: PostRecordConfig['source'];
|
|
937
942
|
/** Post as this user instead of the project owner. */
|
|
938
943
|
user_id?: string;
|
|
939
|
-
/** The Check: rows on the record posted, such as `record_id`. */
|
|
940
|
-
condition?: TicketAnswerCondition;
|
|
941
944
|
/** The Then chain, reading the record as `${response}` (`${response[record_id]}`). */
|
|
942
945
|
actions?: TicketAction[];
|
|
943
946
|
};
|
|
@@ -1009,7 +1012,7 @@ type TicketAction = {
|
|
|
1009
1012
|
};
|
|
1010
1013
|
/** Legacy. Registration moves these rows to the end of `condition.data`. */
|
|
1011
1014
|
match?: TicketConditionRow[];
|
|
1012
|
-
/**
|
|
1015
|
+
/** Skapi's own billing rows only. A response check is a Condition action in `actions`, whose `response` rows read the answer. */
|
|
1013
1016
|
condition?: TicketResponseCondition;
|
|
1014
1017
|
/**
|
|
1015
1018
|
* Nested chain, run when the response passes `condition`. It reads the response body
|
|
@@ -1020,6 +1023,47 @@ type TicketAction = {
|
|
|
1020
1023
|
};
|
|
1021
1024
|
err?: TicketAction[];
|
|
1022
1025
|
retry?: boolean;
|
|
1026
|
+
} | {
|
|
1027
|
+
/**
|
|
1028
|
+
* Send e-mail: one e-mail from a CUSTOM template of the project (the Custom tab of the
|
|
1029
|
+
* Automated Emails page) to one address, from the project's alias. Counts as one e-mail
|
|
1030
|
+
* send (the plan's monthly sends, the Free owner cap and the complaint shutoff apply; a
|
|
1031
|
+
* refusal is QUOTA_EXCEEDED). Answers "SUCCESS: E-mail sent to <address>."
|
|
1032
|
+
*/
|
|
1033
|
+
act: 'mail';
|
|
1034
|
+
exe: {
|
|
1035
|
+
/** The template's ID, as the Custom tab and the upload reply show it. Literal; it must be stored when the ticket is registered. */
|
|
1036
|
+
template: string;
|
|
1037
|
+
/** The recipient: one address, or a reference that gives one, such as "${user[email]}" or "${data[email]}". */
|
|
1038
|
+
to: string;
|
|
1039
|
+
/**
|
|
1040
|
+
* Values for the placeholders the template carries, by name: { "order": "${data[order][id]}" } fills
|
|
1041
|
+
* ${order}. Templated. "service_name" and "email" (the recipient) are filled by default and may be
|
|
1042
|
+
* overwritten here. Up to 30.
|
|
1043
|
+
*/
|
|
1044
|
+
placeholders?: {
|
|
1045
|
+
[name: string]: string | number | boolean;
|
|
1046
|
+
};
|
|
1047
|
+
actions?: TicketAction[];
|
|
1048
|
+
};
|
|
1049
|
+
err?: TicketAction[];
|
|
1050
|
+
retry?: boolean;
|
|
1051
|
+
} | {
|
|
1052
|
+
/**
|
|
1053
|
+
* Send newsletter: a stored newsletter of a group, dry or already sent, to every subscriber of the
|
|
1054
|
+
* group, the way an e-mailed newsletter goes out (one e-mail send per subscriber, same gates).
|
|
1055
|
+
* Answers "SUCCESS: Newsletter sent to the subscribers of <group>."
|
|
1056
|
+
*/
|
|
1057
|
+
act: 'nlsd';
|
|
1058
|
+
exe: {
|
|
1059
|
+
/** "public", "authorized", a number from 2 to 99, or a named group. Literal. */
|
|
1060
|
+
group: 'public' | 'authorized' | number | string;
|
|
1061
|
+
/** The newsletter's message_id (getNewsletters()). Literal; it must be stored under the group when the ticket is registered. */
|
|
1062
|
+
newsletter: string;
|
|
1063
|
+
actions?: TicketAction[];
|
|
1064
|
+
};
|
|
1065
|
+
err?: TicketAction[];
|
|
1066
|
+
retry?: boolean;
|
|
1023
1067
|
} | {
|
|
1024
1068
|
/**
|
|
1025
1069
|
* Respond: answers the consumer now, then stops or goes on. One per run: a second Respond
|
|
@@ -1064,15 +1108,13 @@ type TicketAction = {
|
|
|
1064
1108
|
operator: TicketConditionOperator;
|
|
1065
1109
|
value: any;
|
|
1066
1110
|
}[];
|
|
1111
|
+
/** Rows on the enclosing action's answer, inside a Then chain only: a key reads a field, "" the whole answer as text. */
|
|
1067
1112
|
response?: TicketConditionRow[];
|
|
1113
|
+
/** Rows on the failure, inside an err chain only: code, message, detail, action, path, or "" for the whole error as text. */
|
|
1068
1114
|
error?: TicketConditionRow[];
|
|
1069
1115
|
};
|
|
1070
1116
|
err?: TicketAction[];
|
|
1071
1117
|
};
|
|
1072
|
-
/** The Check of an action: rows on its answer (TicketConditionRow, keys paths in the answer; "" is the whole answer as text). */
|
|
1073
|
-
type TicketAnswerCondition = {
|
|
1074
|
-
data?: TicketConditionRow[];
|
|
1075
|
-
};
|
|
1076
1118
|
/** What a consumption answers when no Respond action composes the answer. */
|
|
1077
1119
|
type TicketReceipt = {
|
|
1078
1120
|
ticket_id: string;
|
|
@@ -1176,7 +1218,6 @@ type Types_Table = Table;
|
|
|
1176
1218
|
type Types_Tag = Tag;
|
|
1177
1219
|
type Types_Ticket = Ticket;
|
|
1178
1220
|
type Types_TicketAction = TicketAction;
|
|
1179
|
-
type Types_TicketAnswerCondition = TicketAnswerCondition;
|
|
1180
1221
|
type Types_TicketCondition = TicketCondition;
|
|
1181
1222
|
type Types_TicketConditionOperator = TicketConditionOperator;
|
|
1182
1223
|
type Types_TicketConditionRow = TicketConditionRow;
|
|
@@ -1191,7 +1232,7 @@ type Types_UserProfile = UserProfile;
|
|
|
1191
1232
|
type Types_UserPublic = UserPublic;
|
|
1192
1233
|
type Types_WebSocketMessage = WebSocketMessage;
|
|
1193
1234
|
declare namespace Types {
|
|
1194
|
-
export type { Types_BinaryFile as BinaryFile, Types_Condition as Condition, Types_Connection as Connection, Types_ConnectionInfo as ConnectionInfo, Types_DatabaseResponse as DatabaseResponse, Types_DelRecordQuery as DelRecordQuery, Types_EncryptionOptions as EncryptionOptions, Types_FetchOptions as FetchOptions, Types_FileInfo as FileInfo, Types_Form as Form, Types_GetRecordQuery as GetRecordQuery, Types_Index as Index, Types_Newsletter as Newsletter, Types_NewsletterGroup as NewsletterGroup, Types_PostRecordConfig as PostRecordConfig, Types_ProgressCallback as ProgressCallback, Types_RTCConnector as RTCConnector, Types_RTCConnectorParams as RTCConnectorParams, Types_RTCEvent as RTCEvent, Types_RTCReceiverParams as RTCReceiverParams, Types_RTCResolved as RTCResolved, Types_RealtimeCallback as RealtimeCallback, Types_RecordData as RecordData, Types_RecordEncryptionInfo as RecordEncryptionInfo, Types_RequestHistory as RequestHistory, Types_Subscription as Subscription, Types_Table as Table, Types_Tag as Tag, Types_Ticket as Ticket, Types_TicketAction as TicketAction,
|
|
1235
|
+
export type { Types_BinaryFile as BinaryFile, Types_Condition as Condition, Types_Connection as Connection, Types_ConnectionInfo as ConnectionInfo, Types_DatabaseResponse as DatabaseResponse, Types_DelRecordQuery as DelRecordQuery, Types_EncryptionOptions as EncryptionOptions, Types_FetchOptions as FetchOptions, Types_FileInfo as FileInfo, Types_Form as Form, Types_GetRecordQuery as GetRecordQuery, Types_Index as Index, Types_Newsletter as Newsletter, Types_NewsletterGroup as NewsletterGroup, Types_PostRecordConfig as PostRecordConfig, Types_ProgressCallback as ProgressCallback, Types_RTCConnector as RTCConnector, Types_RTCConnectorParams as RTCConnectorParams, Types_RTCEvent as RTCEvent, Types_RTCReceiverParams as RTCReceiverParams, Types_RTCResolved as RTCResolved, Types_RealtimeCallback as RealtimeCallback, Types_RecordData as RecordData, Types_RecordEncryptionInfo as RecordEncryptionInfo, Types_RequestHistory as RequestHistory, Types_Subscription as Subscription, Types_Table as Table, Types_Tag as Tag, Types_Ticket as Ticket, Types_TicketAction as TicketAction, Types_TicketCondition as TicketCondition, Types_TicketConditionOperator as TicketConditionOperator, Types_TicketConditionRow as TicketConditionRow, Types_TicketError as TicketError, Types_TicketErrorCode as TicketErrorCode, Types_TicketReceipt as TicketReceipt, Types_TicketResponseCondition as TicketResponseCondition, Types_TicketSignatureCondition as TicketSignatureCondition, Types_UniqueId as UniqueId, Types_UserAttributes as UserAttributes, Types_UserProfile as UserProfile, Types_UserPublic as UserPublic, Types_WebSocketMessage as WebSocketMessage };
|
|
1195
1236
|
}
|
|
1196
1237
|
|
|
1197
1238
|
declare function terminatePendingRequests(): void;
|
|
@@ -3114,4 +3155,4 @@ declare class SkapiError extends Error {
|
|
|
3114
3155
|
});
|
|
3115
3156
|
}
|
|
3116
3157
|
|
|
3117
|
-
export { type BinaryFile, type Condition, type Connection, type ConnectionInfo, type DatabaseResponse, type DelRecordQuery, type FetchOptions, type FileInfo, type Form, type GetRecordQuery, type Index, type Newsletter, type NewsletterGroup, type PostRecordConfig, type ProgressCallback, type RTCConnector, type RTCConnectorParams, type RTCEvent, type RTCReceiverParams, type RTCResolved, type RealtimeCallback, type RecordData, Skapi, SkapiError, type Subscription, type Table, type Tag, type Ticket, type TicketAction, type
|
|
3158
|
+
export { type BinaryFile, type Condition, type Connection, type ConnectionInfo, type DatabaseResponse, type DelRecordQuery, type FetchOptions, type FileInfo, type Form, type GetRecordQuery, type Index, type Newsletter, type NewsletterGroup, type PostRecordConfig, type ProgressCallback, type RTCConnector, type RTCConnectorParams, type RTCEvent, type RTCReceiverParams, type RTCResolved, type RealtimeCallback, type RecordData, Skapi, SkapiError, type Subscription, type Table, type Tag, type Ticket, type TicketAction, type TicketCondition, type TicketConditionOperator, type TicketConditionRow, type TicketError, type TicketErrorCode, type TicketReceipt, type TicketResponseCondition, type TicketSignatureCondition, Types, type UniqueId, type UserAttributes, type UserProfile, type UserPublic, type WebSocketMessage };
|