@wix/core-services-d 1.0.20 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/core-services-d",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"type-bundles"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@wix/core-services-d_echo": "1.0.
|
|
21
|
+
"@wix/core-services-d_echo": "1.0.5"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"glob": "^10.4.1",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"fqdn": ""
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
-
"falconPackageHash": "
|
|
45
|
+
"falconPackageHash": "b71ce77c74e373a7113addae4beda24f4837b06b494bab06d8853cba"
|
|
46
46
|
}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
interface LongMessage {
|
|
2
|
+
int64Field?: string;
|
|
3
|
+
uint64Field?: string;
|
|
4
|
+
int64ValueField?: string | null;
|
|
5
|
+
uint64ValueField?: string | null;
|
|
6
|
+
sint64Field?: string;
|
|
7
|
+
sfixed64Field?: string;
|
|
8
|
+
fixed64Field?: string;
|
|
9
|
+
durationField?: GoogleProtoDuration;
|
|
10
|
+
_id?: string | null;
|
|
11
|
+
}
|
|
12
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
13
|
+
createdEvent?: EntityCreatedEvent;
|
|
14
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
15
|
+
deletedEvent?: EntityDeletedEvent;
|
|
16
|
+
actionEvent?: ActionEvent;
|
|
17
|
+
/**
|
|
18
|
+
* Unique event ID.
|
|
19
|
+
* Allows clients to ignore duplicate webhooks.
|
|
20
|
+
*/
|
|
21
|
+
_id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Assumes actions are also always typed to an entity_type
|
|
24
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
25
|
+
*/
|
|
26
|
+
entityFqdn?: string;
|
|
27
|
+
/**
|
|
28
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
29
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
30
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
31
|
+
*/
|
|
32
|
+
slug?: string;
|
|
33
|
+
/** ID of the entity associated with the event. */
|
|
34
|
+
entityId?: string;
|
|
35
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
36
|
+
eventTime?: Date;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
39
|
+
* (for example, GDPR).
|
|
40
|
+
*/
|
|
41
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
42
|
+
/** If present, indicates the action that triggered the event. */
|
|
43
|
+
originatedFrom?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
46
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
47
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
48
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
49
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
50
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
51
|
+
*/
|
|
52
|
+
entityEventSequence?: string | null;
|
|
53
|
+
}
|
|
54
|
+
/** @oneof */
|
|
55
|
+
interface DomainEventBodyOneOf {
|
|
56
|
+
createdEvent?: EntityCreatedEvent;
|
|
57
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
58
|
+
deletedEvent?: EntityDeletedEvent;
|
|
59
|
+
actionEvent?: ActionEvent;
|
|
60
|
+
}
|
|
61
|
+
interface EntityCreatedEvent {
|
|
62
|
+
entity?: string;
|
|
63
|
+
}
|
|
64
|
+
interface RestoreInfo {
|
|
65
|
+
deletedDate?: Date;
|
|
66
|
+
}
|
|
67
|
+
interface EntityUpdatedEvent {
|
|
68
|
+
/**
|
|
69
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
70
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
71
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
72
|
+
*/
|
|
73
|
+
currentEntity?: string;
|
|
74
|
+
}
|
|
75
|
+
interface EntityDeletedEvent {
|
|
76
|
+
/** Entity that was deleted */
|
|
77
|
+
deletedEntity?: string | null;
|
|
78
|
+
}
|
|
79
|
+
interface ActionEvent {
|
|
80
|
+
body?: string;
|
|
81
|
+
}
|
|
82
|
+
interface MessageEnvelope {
|
|
83
|
+
/** App instance ID. */
|
|
84
|
+
instanceId?: string | null;
|
|
85
|
+
/** Event type. */
|
|
86
|
+
eventType?: string;
|
|
87
|
+
/** The identification type and identity data. */
|
|
88
|
+
identity?: IdentificationData;
|
|
89
|
+
/** Stringify payload. */
|
|
90
|
+
data?: string;
|
|
91
|
+
}
|
|
92
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
93
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
94
|
+
anonymousVisitorId?: string;
|
|
95
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
96
|
+
memberId?: string;
|
|
97
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
98
|
+
wixUserId?: string;
|
|
99
|
+
/** ID of an app. */
|
|
100
|
+
appId?: string;
|
|
101
|
+
/** @readonly */
|
|
102
|
+
identityType?: WebhookIdentityType;
|
|
103
|
+
}
|
|
104
|
+
/** @oneof */
|
|
105
|
+
interface IdentificationDataIdOneOf {
|
|
106
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
107
|
+
anonymousVisitorId?: string;
|
|
108
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
109
|
+
memberId?: string;
|
|
110
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
111
|
+
wixUserId?: string;
|
|
112
|
+
/** ID of an app. */
|
|
113
|
+
appId?: string;
|
|
114
|
+
}
|
|
115
|
+
declare enum WebhookIdentityType {
|
|
116
|
+
UNKNOWN = "UNKNOWN",
|
|
117
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
118
|
+
MEMBER = "MEMBER",
|
|
119
|
+
WIX_USER = "WIX_USER",
|
|
120
|
+
APP = "APP"
|
|
121
|
+
}
|
|
122
|
+
interface LongMessageNonNullableFields {
|
|
123
|
+
int64Field: string;
|
|
124
|
+
uint64Field: string;
|
|
125
|
+
sint64Field: string;
|
|
126
|
+
sfixed64Field: string;
|
|
127
|
+
fixed64Field: string;
|
|
128
|
+
}
|
|
129
|
+
type GoogleProtoDuration = any;
|
|
130
|
+
interface PublicLongEchoOptions {
|
|
131
|
+
int64Field?: string;
|
|
132
|
+
uint64Field?: string;
|
|
133
|
+
int64ValueField?: string | null;
|
|
134
|
+
uint64ValueField?: string | null;
|
|
135
|
+
sint64Field?: string;
|
|
136
|
+
sfixed64Field?: string;
|
|
137
|
+
fixed64Field?: string;
|
|
138
|
+
durationField?: GoogleProtoDuration;
|
|
139
|
+
_id?: string | null;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
143
|
+
interface HttpClient {
|
|
144
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
145
|
+
fetchWithAuth: typeof fetch;
|
|
146
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
147
|
+
}
|
|
148
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
149
|
+
type HttpResponse<T = any> = {
|
|
150
|
+
data: T;
|
|
151
|
+
status: number;
|
|
152
|
+
statusText: string;
|
|
153
|
+
headers: any;
|
|
154
|
+
request?: any;
|
|
155
|
+
};
|
|
156
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
157
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
158
|
+
url: string;
|
|
159
|
+
data?: Data;
|
|
160
|
+
params?: URLSearchParams;
|
|
161
|
+
} & APIMetadata;
|
|
162
|
+
type APIMetadata = {
|
|
163
|
+
methodFqn?: string;
|
|
164
|
+
entityFqdn?: string;
|
|
165
|
+
packageName?: string;
|
|
166
|
+
};
|
|
167
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
168
|
+
|
|
169
|
+
declare global {
|
|
170
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
171
|
+
interface SymbolConstructor {
|
|
172
|
+
readonly observable: symbol;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
177
|
+
|
|
178
|
+
declare const publicLongEcho: ReturnType<typeof createRESTModule<typeof publicPublicLongEcho>>;
|
|
179
|
+
|
|
180
|
+
type context_ActionEvent = ActionEvent;
|
|
181
|
+
type context_DomainEvent = DomainEvent;
|
|
182
|
+
type context_DomainEventBodyOneOf = DomainEventBodyOneOf;
|
|
183
|
+
type context_EntityCreatedEvent = EntityCreatedEvent;
|
|
184
|
+
type context_EntityDeletedEvent = EntityDeletedEvent;
|
|
185
|
+
type context_EntityUpdatedEvent = EntityUpdatedEvent;
|
|
186
|
+
type context_IdentificationData = IdentificationData;
|
|
187
|
+
type context_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
|
|
188
|
+
type context_LongMessage = LongMessage;
|
|
189
|
+
type context_LongMessageNonNullableFields = LongMessageNonNullableFields;
|
|
190
|
+
type context_MessageEnvelope = MessageEnvelope;
|
|
191
|
+
type context_PublicLongEchoOptions = PublicLongEchoOptions;
|
|
192
|
+
type context_RestoreInfo = RestoreInfo;
|
|
193
|
+
type context_WebhookIdentityType = WebhookIdentityType;
|
|
194
|
+
declare const context_WebhookIdentityType: typeof WebhookIdentityType;
|
|
195
|
+
declare const context_publicLongEcho: typeof publicLongEcho;
|
|
196
|
+
declare namespace context {
|
|
197
|
+
export { type context_ActionEvent as ActionEvent, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_LongMessage as LongMessage, type context_LongMessageNonNullableFields as LongMessageNonNullableFields, type context_MessageEnvelope as MessageEnvelope, type context_PublicLongEchoOptions as PublicLongEchoOptions, type context_RestoreInfo as RestoreInfo, context_WebhookIdentityType as WebhookIdentityType, context_publicLongEcho as publicLongEcho };
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export { context as echo };
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
interface LongMessage {
|
|
2
|
+
int64Field?: string;
|
|
3
|
+
uint64Field?: string;
|
|
4
|
+
int64ValueField?: string | null;
|
|
5
|
+
uint64ValueField?: string | null;
|
|
6
|
+
sint64Field?: string;
|
|
7
|
+
sfixed64Field?: string;
|
|
8
|
+
fixed64Field?: string;
|
|
9
|
+
durationField?: GoogleProtoDuration;
|
|
10
|
+
_id?: string | null;
|
|
11
|
+
}
|
|
12
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
13
|
+
createdEvent?: EntityCreatedEvent;
|
|
14
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
15
|
+
deletedEvent?: EntityDeletedEvent;
|
|
16
|
+
actionEvent?: ActionEvent;
|
|
17
|
+
/**
|
|
18
|
+
* Unique event ID.
|
|
19
|
+
* Allows clients to ignore duplicate webhooks.
|
|
20
|
+
*/
|
|
21
|
+
_id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Assumes actions are also always typed to an entity_type
|
|
24
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
25
|
+
*/
|
|
26
|
+
entityFqdn?: string;
|
|
27
|
+
/**
|
|
28
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
29
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
30
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
31
|
+
*/
|
|
32
|
+
slug?: string;
|
|
33
|
+
/** ID of the entity associated with the event. */
|
|
34
|
+
entityId?: string;
|
|
35
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
36
|
+
eventTime?: Date;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
39
|
+
* (for example, GDPR).
|
|
40
|
+
*/
|
|
41
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
42
|
+
/** If present, indicates the action that triggered the event. */
|
|
43
|
+
originatedFrom?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
46
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
47
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
48
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
49
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
50
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
51
|
+
*/
|
|
52
|
+
entityEventSequence?: string | null;
|
|
53
|
+
}
|
|
54
|
+
/** @oneof */
|
|
55
|
+
interface DomainEventBodyOneOf {
|
|
56
|
+
createdEvent?: EntityCreatedEvent;
|
|
57
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
58
|
+
deletedEvent?: EntityDeletedEvent;
|
|
59
|
+
actionEvent?: ActionEvent;
|
|
60
|
+
}
|
|
61
|
+
interface EntityCreatedEvent {
|
|
62
|
+
entity?: string;
|
|
63
|
+
}
|
|
64
|
+
interface RestoreInfo {
|
|
65
|
+
deletedDate?: Date;
|
|
66
|
+
}
|
|
67
|
+
interface EntityUpdatedEvent {
|
|
68
|
+
/**
|
|
69
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
70
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
71
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
72
|
+
*/
|
|
73
|
+
currentEntity?: string;
|
|
74
|
+
}
|
|
75
|
+
interface EntityDeletedEvent {
|
|
76
|
+
/** Entity that was deleted */
|
|
77
|
+
deletedEntity?: string | null;
|
|
78
|
+
}
|
|
79
|
+
interface ActionEvent {
|
|
80
|
+
body?: string;
|
|
81
|
+
}
|
|
82
|
+
interface MessageEnvelope {
|
|
83
|
+
/** App instance ID. */
|
|
84
|
+
instanceId?: string | null;
|
|
85
|
+
/** Event type. */
|
|
86
|
+
eventType?: string;
|
|
87
|
+
/** The identification type and identity data. */
|
|
88
|
+
identity?: IdentificationData;
|
|
89
|
+
/** Stringify payload. */
|
|
90
|
+
data?: string;
|
|
91
|
+
}
|
|
92
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
93
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
94
|
+
anonymousVisitorId?: string;
|
|
95
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
96
|
+
memberId?: string;
|
|
97
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
98
|
+
wixUserId?: string;
|
|
99
|
+
/** ID of an app. */
|
|
100
|
+
appId?: string;
|
|
101
|
+
/** @readonly */
|
|
102
|
+
identityType?: WebhookIdentityType;
|
|
103
|
+
}
|
|
104
|
+
/** @oneof */
|
|
105
|
+
interface IdentificationDataIdOneOf {
|
|
106
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
107
|
+
anonymousVisitorId?: string;
|
|
108
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
109
|
+
memberId?: string;
|
|
110
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
111
|
+
wixUserId?: string;
|
|
112
|
+
/** ID of an app. */
|
|
113
|
+
appId?: string;
|
|
114
|
+
}
|
|
115
|
+
declare enum WebhookIdentityType {
|
|
116
|
+
UNKNOWN = "UNKNOWN",
|
|
117
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
118
|
+
MEMBER = "MEMBER",
|
|
119
|
+
WIX_USER = "WIX_USER",
|
|
120
|
+
APP = "APP"
|
|
121
|
+
}
|
|
122
|
+
interface LongMessageNonNullableFields {
|
|
123
|
+
int64Field: string;
|
|
124
|
+
uint64Field: string;
|
|
125
|
+
sint64Field: string;
|
|
126
|
+
sfixed64Field: string;
|
|
127
|
+
fixed64Field: string;
|
|
128
|
+
}
|
|
129
|
+
type GoogleProtoDuration = any;
|
|
130
|
+
interface PublicLongEchoOptions {
|
|
131
|
+
int64Field?: string;
|
|
132
|
+
uint64Field?: string;
|
|
133
|
+
int64ValueField?: string | null;
|
|
134
|
+
uint64ValueField?: string | null;
|
|
135
|
+
sint64Field?: string;
|
|
136
|
+
sfixed64Field?: string;
|
|
137
|
+
fixed64Field?: string;
|
|
138
|
+
durationField?: GoogleProtoDuration;
|
|
139
|
+
_id?: string | null;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
143
|
+
interface HttpClient {
|
|
144
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
145
|
+
fetchWithAuth: typeof fetch;
|
|
146
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
147
|
+
}
|
|
148
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
149
|
+
type HttpResponse<T = any> = {
|
|
150
|
+
data: T;
|
|
151
|
+
status: number;
|
|
152
|
+
statusText: string;
|
|
153
|
+
headers: any;
|
|
154
|
+
request?: any;
|
|
155
|
+
};
|
|
156
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
157
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
158
|
+
url: string;
|
|
159
|
+
data?: Data;
|
|
160
|
+
params?: URLSearchParams;
|
|
161
|
+
} & APIMetadata;
|
|
162
|
+
type APIMetadata = {
|
|
163
|
+
methodFqn?: string;
|
|
164
|
+
entityFqdn?: string;
|
|
165
|
+
packageName?: string;
|
|
166
|
+
};
|
|
167
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
168
|
+
|
|
169
|
+
declare global {
|
|
170
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
171
|
+
interface SymbolConstructor {
|
|
172
|
+
readonly observable: symbol;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
177
|
+
|
|
178
|
+
declare const publicLongEcho: ReturnType<typeof createRESTModule<typeof publicPublicLongEcho>>;
|
|
179
|
+
|
|
180
|
+
type index_d_ActionEvent = ActionEvent;
|
|
181
|
+
type index_d_DomainEvent = DomainEvent;
|
|
182
|
+
type index_d_DomainEventBodyOneOf = DomainEventBodyOneOf;
|
|
183
|
+
type index_d_EntityCreatedEvent = EntityCreatedEvent;
|
|
184
|
+
type index_d_EntityDeletedEvent = EntityDeletedEvent;
|
|
185
|
+
type index_d_EntityUpdatedEvent = EntityUpdatedEvent;
|
|
186
|
+
type index_d_IdentificationData = IdentificationData;
|
|
187
|
+
type index_d_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
|
|
188
|
+
type index_d_LongMessage = LongMessage;
|
|
189
|
+
type index_d_LongMessageNonNullableFields = LongMessageNonNullableFields;
|
|
190
|
+
type index_d_MessageEnvelope = MessageEnvelope;
|
|
191
|
+
type index_d_PublicLongEchoOptions = PublicLongEchoOptions;
|
|
192
|
+
type index_d_RestoreInfo = RestoreInfo;
|
|
193
|
+
type index_d_WebhookIdentityType = WebhookIdentityType;
|
|
194
|
+
declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
|
|
195
|
+
declare const index_d_publicLongEcho: typeof publicLongEcho;
|
|
196
|
+
declare namespace index_d {
|
|
197
|
+
export { type index_d_ActionEvent as ActionEvent, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_LongMessage as LongMessage, type index_d_LongMessageNonNullableFields as LongMessageNonNullableFields, type index_d_MessageEnvelope as MessageEnvelope, type index_d_PublicLongEchoOptions as PublicLongEchoOptions, type index_d_RestoreInfo as RestoreInfo, index_d_WebhookIdentityType as WebhookIdentityType, index_d_publicLongEcho as publicLongEcho };
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export { index_d as echo };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
declare type GoogleProtoDuration$1 = {
|
|
2
|
+
seconds?: string;
|
|
3
|
+
nanos?: number;
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
interface LongMessage$1 {
|
|
7
|
+
int64Field?: string;
|
|
8
|
+
uint64Field?: string;
|
|
9
|
+
int64ValueField?: string | null;
|
|
10
|
+
uint64ValueField?: string | null;
|
|
11
|
+
sint64Field?: string;
|
|
12
|
+
sfixed64Field?: string;
|
|
13
|
+
fixed64Field?: string;
|
|
14
|
+
durationField?: GoogleProtoDuration$1;
|
|
15
|
+
id?: string | null;
|
|
16
|
+
}
|
|
17
|
+
interface LongMessageNonNullableFields$1 {
|
|
18
|
+
int64Field: string;
|
|
19
|
+
uint64Field: string;
|
|
20
|
+
sint64Field: string;
|
|
21
|
+
sfixed64Field: string;
|
|
22
|
+
fixed64Field: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface LongMessage {
|
|
26
|
+
int64Field?: string;
|
|
27
|
+
uint64Field?: string;
|
|
28
|
+
int64ValueField?: string | null;
|
|
29
|
+
uint64ValueField?: string | null;
|
|
30
|
+
sint64Field?: string;
|
|
31
|
+
sfixed64Field?: string;
|
|
32
|
+
fixed64Field?: string;
|
|
33
|
+
durationField?: GoogleProtoDuration;
|
|
34
|
+
_id?: string | null;
|
|
35
|
+
}
|
|
36
|
+
interface LongMessageNonNullableFields {
|
|
37
|
+
int64Field: string;
|
|
38
|
+
uint64Field: string;
|
|
39
|
+
sint64Field: string;
|
|
40
|
+
sfixed64Field: string;
|
|
41
|
+
fixed64Field: string;
|
|
42
|
+
}
|
|
43
|
+
type GoogleProtoDuration = any;
|
|
44
|
+
|
|
45
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
46
|
+
getUrl: (context: any) => string;
|
|
47
|
+
httpMethod: K;
|
|
48
|
+
path: string;
|
|
49
|
+
pathParams: M;
|
|
50
|
+
__requestType: T;
|
|
51
|
+
__originalRequestType: S;
|
|
52
|
+
__responseType: Q;
|
|
53
|
+
__originalResponseType: R;
|
|
54
|
+
};
|
|
55
|
+
declare function publicLongEcho(): __PublicMethodMetaInfo<'GET', {}, LongMessage, LongMessage$1, LongMessage & LongMessageNonNullableFields, LongMessage$1 & LongMessageNonNullableFields$1>;
|
|
56
|
+
|
|
57
|
+
type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
|
|
58
|
+
declare const meta_publicLongEcho: typeof publicLongEcho;
|
|
59
|
+
declare namespace meta {
|
|
60
|
+
export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_publicLongEcho as publicLongEcho };
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export { meta as echo };
|