@wix/auto_sdk_motion_metroinspector 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/index.js +300 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +300 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +300 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +300 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +300 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +300 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +300 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.js +300 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.js +300 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +300 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.mjs +300 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.mjs +300 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -32,42 +32,202 @@ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
|
32
32
|
function resolveWixCoreservicesMetroinspectorV1MetroInspectorServiceUrl(opts) {
|
|
33
33
|
const domainToMappings = {
|
|
34
34
|
"apps._base_domain_": [
|
|
35
|
+
{
|
|
36
|
+
srcPath: "/_api/metro-inspector",
|
|
37
|
+
destPath: "/api"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
srcPath: "/_api/metro-inspector",
|
|
41
|
+
destPath: "/api"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
srcPath: "/_api/metro-inspector",
|
|
45
|
+
destPath: "/api"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
srcPath: "/_api/metro-inspector",
|
|
49
|
+
destPath: "/api"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
srcPath: "/_api/metro-inspector",
|
|
53
|
+
destPath: "/api"
|
|
54
|
+
},
|
|
35
55
|
{
|
|
36
56
|
srcPath: "/_api/metro-inspector",
|
|
37
57
|
destPath: "/api"
|
|
38
58
|
}
|
|
39
59
|
],
|
|
40
60
|
"api._api_base_domain_": [
|
|
61
|
+
{
|
|
62
|
+
srcPath: "/metro-inspector",
|
|
63
|
+
destPath: ""
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
srcPath: "/metro-inspector",
|
|
67
|
+
destPath: ""
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
srcPath: "/metro-inspector",
|
|
71
|
+
destPath: ""
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
srcPath: "/metro-inspector",
|
|
75
|
+
destPath: ""
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
srcPath: "/metro-inspector",
|
|
79
|
+
destPath: ""
|
|
80
|
+
},
|
|
41
81
|
{
|
|
42
82
|
srcPath: "/metro-inspector",
|
|
43
83
|
destPath: ""
|
|
44
84
|
}
|
|
45
85
|
],
|
|
46
86
|
"www._base_domain_": [
|
|
87
|
+
{
|
|
88
|
+
srcPath: "/metro-inspector",
|
|
89
|
+
destPath: "/api"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
srcPath: "/metro-inspector",
|
|
93
|
+
destPath: "/api"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
srcPath: "/metro-inspector",
|
|
97
|
+
destPath: "/api"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
srcPath: "/metro-inspector",
|
|
101
|
+
destPath: "/api"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
srcPath: "/metro-inspector",
|
|
105
|
+
destPath: "/api"
|
|
106
|
+
},
|
|
47
107
|
{
|
|
48
108
|
srcPath: "/metro-inspector",
|
|
49
109
|
destPath: "/api"
|
|
50
110
|
}
|
|
51
111
|
],
|
|
52
112
|
"manage._base_domain_": [
|
|
113
|
+
{
|
|
114
|
+
srcPath: "/metro-inspector",
|
|
115
|
+
destPath: ""
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
srcPath: "/metro-inspector",
|
|
119
|
+
destPath: ""
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
srcPath: "/metro-inspector",
|
|
123
|
+
destPath: ""
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
srcPath: "/metro-inspector",
|
|
127
|
+
destPath: ""
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
srcPath: "/metro-inspector",
|
|
131
|
+
destPath: ""
|
|
132
|
+
},
|
|
53
133
|
{
|
|
54
134
|
srcPath: "/metro-inspector",
|
|
55
135
|
destPath: ""
|
|
56
136
|
}
|
|
57
137
|
],
|
|
58
138
|
"www.wixgateway.com": [
|
|
139
|
+
{
|
|
140
|
+
srcPath: "/_api/metro-inspector",
|
|
141
|
+
destPath: "/api"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
srcPath: "/_api/metro-inspector",
|
|
145
|
+
destPath: "/api"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
srcPath: "/_api/metro-inspector",
|
|
149
|
+
destPath: "/api"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
srcPath: "/_api/metro-inspector",
|
|
153
|
+
destPath: "/api"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
srcPath: "/_api/metro-inspector",
|
|
157
|
+
destPath: "/api"
|
|
158
|
+
},
|
|
59
159
|
{
|
|
60
160
|
srcPath: "/_api/metro-inspector",
|
|
61
161
|
destPath: "/api"
|
|
62
162
|
}
|
|
63
163
|
],
|
|
64
164
|
_: [
|
|
165
|
+
{
|
|
166
|
+
srcPath: "/_api/metro-inspector",
|
|
167
|
+
destPath: "/api"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
srcPath: "/_api/metro-inspector",
|
|
171
|
+
destPath: "/api"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
srcPath: "/_api/metro-inspector",
|
|
175
|
+
destPath: "/api"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
srcPath: "/_api/metro-inspector",
|
|
179
|
+
destPath: "/api"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
srcPath: "/_api/metro-inspector",
|
|
183
|
+
destPath: "/api"
|
|
184
|
+
},
|
|
65
185
|
{
|
|
66
186
|
srcPath: "/_api/metro-inspector",
|
|
67
187
|
destPath: "/api"
|
|
68
188
|
}
|
|
69
189
|
],
|
|
70
190
|
"www.wixapis.com": [
|
|
191
|
+
{
|
|
192
|
+
srcPath: "/_api/metro-inspector",
|
|
193
|
+
destPath: "/api"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
srcPath: "/metro-inspector",
|
|
197
|
+
destPath: ""
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
srcPath: "/_api/metro-inspector",
|
|
201
|
+
destPath: "/api"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
srcPath: "/metro-inspector",
|
|
205
|
+
destPath: ""
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
srcPath: "/_api/metro-inspector",
|
|
209
|
+
destPath: "/api"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
srcPath: "/metro-inspector",
|
|
213
|
+
destPath: ""
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
srcPath: "/_api/metro-inspector",
|
|
217
|
+
destPath: "/api"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
srcPath: "/metro-inspector",
|
|
221
|
+
destPath: ""
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
srcPath: "/_api/metro-inspector",
|
|
225
|
+
destPath: "/api"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
srcPath: "/metro-inspector",
|
|
229
|
+
destPath: ""
|
|
230
|
+
},
|
|
71
231
|
{
|
|
72
232
|
srcPath: "/_api/metro-inspector",
|
|
73
233
|
destPath: "/api"
|
|
@@ -78,6 +238,46 @@ function resolveWixCoreservicesMetroinspectorV1MetroInspectorServiceUrl(opts) {
|
|
|
78
238
|
}
|
|
79
239
|
],
|
|
80
240
|
"editor._base_domain_": [
|
|
241
|
+
{
|
|
242
|
+
srcPath: "/metro-insepctor",
|
|
243
|
+
destPath: ""
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
srcPath: "/_api/metro-inspector",
|
|
247
|
+
destPath: "/api"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
srcPath: "/metro-insepctor",
|
|
251
|
+
destPath: ""
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
srcPath: "/_api/metro-inspector",
|
|
255
|
+
destPath: "/api"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
srcPath: "/metro-insepctor",
|
|
259
|
+
destPath: ""
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
srcPath: "/_api/metro-inspector",
|
|
263
|
+
destPath: "/api"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
srcPath: "/metro-insepctor",
|
|
267
|
+
destPath: ""
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
srcPath: "/_api/metro-inspector",
|
|
271
|
+
destPath: "/api"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
srcPath: "/metro-insepctor",
|
|
275
|
+
destPath: ""
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
srcPath: "/_api/metro-inspector",
|
|
279
|
+
destPath: "/api"
|
|
280
|
+
},
|
|
81
281
|
{
|
|
82
282
|
srcPath: "/metro-insepctor",
|
|
83
283
|
destPath: ""
|
|
@@ -88,6 +288,46 @@ function resolveWixCoreservicesMetroinspectorV1MetroInspectorServiceUrl(opts) {
|
|
|
88
288
|
}
|
|
89
289
|
],
|
|
90
290
|
"blocks._base_domain_": [
|
|
291
|
+
{
|
|
292
|
+
srcPath: "/metro-insepctor",
|
|
293
|
+
destPath: ""
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
srcPath: "/_api/metro-inspector",
|
|
297
|
+
destPath: "/api"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
srcPath: "/metro-insepctor",
|
|
301
|
+
destPath: ""
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
srcPath: "/_api/metro-inspector",
|
|
305
|
+
destPath: "/api"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
srcPath: "/metro-insepctor",
|
|
309
|
+
destPath: ""
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
srcPath: "/_api/metro-inspector",
|
|
313
|
+
destPath: "/api"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
srcPath: "/metro-insepctor",
|
|
317
|
+
destPath: ""
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
srcPath: "/_api/metro-inspector",
|
|
321
|
+
destPath: "/api"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
srcPath: "/metro-insepctor",
|
|
325
|
+
destPath: ""
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
srcPath: "/_api/metro-inspector",
|
|
329
|
+
destPath: "/api"
|
|
330
|
+
},
|
|
91
331
|
{
|
|
92
332
|
srcPath: "/metro-insepctor",
|
|
93
333
|
destPath: ""
|
|
@@ -98,6 +338,46 @@ function resolveWixCoreservicesMetroinspectorV1MetroInspectorServiceUrl(opts) {
|
|
|
98
338
|
}
|
|
99
339
|
],
|
|
100
340
|
"create.editorx": [
|
|
341
|
+
{
|
|
342
|
+
srcPath: "/metro-insepctor",
|
|
343
|
+
destPath: ""
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
srcPath: "/_api/metro-inspector",
|
|
347
|
+
destPath: "/api"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
srcPath: "/metro-insepctor",
|
|
351
|
+
destPath: ""
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
srcPath: "/_api/metro-inspector",
|
|
355
|
+
destPath: "/api"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
srcPath: "/metro-insepctor",
|
|
359
|
+
destPath: ""
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
srcPath: "/_api/metro-inspector",
|
|
363
|
+
destPath: "/api"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
srcPath: "/metro-insepctor",
|
|
367
|
+
destPath: ""
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
srcPath: "/_api/metro-inspector",
|
|
371
|
+
destPath: "/api"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
srcPath: "/metro-insepctor",
|
|
375
|
+
destPath: ""
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
srcPath: "/_api/metro-inspector",
|
|
379
|
+
destPath: "/api"
|
|
380
|
+
},
|
|
101
381
|
{
|
|
102
382
|
srcPath: "/metro-insepctor",
|
|
103
383
|
destPath: ""
|
|
@@ -108,6 +388,26 @@ function resolveWixCoreservicesMetroinspectorV1MetroInspectorServiceUrl(opts) {
|
|
|
108
388
|
}
|
|
109
389
|
],
|
|
110
390
|
"dev._base_domain_": [
|
|
391
|
+
{
|
|
392
|
+
srcPath: "/_api/metro-inspector",
|
|
393
|
+
destPath: ""
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
srcPath: "/_api/metro-inspector",
|
|
397
|
+
destPath: ""
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
srcPath: "/_api/metro-inspector",
|
|
401
|
+
destPath: ""
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
srcPath: "/_api/metro-inspector",
|
|
405
|
+
destPath: ""
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
srcPath: "/_api/metro-inspector",
|
|
409
|
+
destPath: ""
|
|
410
|
+
},
|
|
111
411
|
{
|
|
112
412
|
srcPath: "/_api/metro-inspector",
|
|
113
413
|
destPath: ""
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../meta.ts","../../../src/metroinspector-v1-echo-metroinspector.http.ts","../../../src/metroinspector-v1-echo-metroinspector.types.ts","../../../src/metroinspector-v1-echo-metroinspector.meta.ts"],"sourcesContent":["export * from './src/metroinspector-v1-echo-metroinspector.meta.js';\n","import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixCoreservicesMetroinspectorV1MetroInspectorServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'apps._base_domain_': [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/metro-inspector',\n destPath: '/api',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n ],\n 'www.wixgateway.com': [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n _: [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_motion_metroinspector';\n\n/** echo given arg1 and arg2 */\nexport function echo(payload: object): RequestOptionsFactory<any> {\n function __echo({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'someDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.echo',\n method: 'POST' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.MetroInspectorService.Echo',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1MetroInspectorServiceUrl({\n protoPath: '/api/v1/echo/{arg1}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __echo;\n}\n","export interface EchoMessage {\n /** message comment from EchoMessage proto def, with special comment */\n message?: string;\n /** messages_list comment from EchoMessage proto def */\n messagesList?: MessageItem[];\n id?: string;\n}\n\nexport interface MessageItem {\n /** inner_message comment from EchoMessage proto def */\n innerMessage?: string;\n}\n\nexport interface EchoRequest {\n /** 1st part of the message */\n arg1: string;\n /** 2nd part of the message */\n arg2?: string;\n /** this field test translatable annotation */\n titleField?: string;\n someInt32?: number;\n someDate?: Date | null;\n}\n\nexport interface EchoResponse {\n /** message result as EchoMessage */\n echoMessage?: EchoMessage;\n /** messge reseult as string */\n message?: string;\n}\n\nexport interface Dispatched {\n /** the message someone says */\n echo?: EchoMessage;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n","import * as ambassadorWixMetroinspectorV1Echo from './metroinspector-v1-echo-metroinspector.http.js';\nimport * as ambassadorWixMetroinspectorV1EchoTypes from './metroinspector-v1-echo-metroinspector.types.js';\nimport * as ambassadorWixMetroinspectorV1EchoUniversalTypes from './metroinspector-v1-echo-metroinspector.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function echo(): __PublicMethodMetaInfo<\n 'POST',\n { arg1: string },\n ambassadorWixMetroinspectorV1EchoUniversalTypes.EchoRequest,\n ambassadorWixMetroinspectorV1EchoTypes.EchoRequest,\n ambassadorWixMetroinspectorV1EchoUniversalTypes.EchoResponse,\n ambassadorWixMetroinspectorV1EchoTypes.EchoResponse\n> {\n const payload = { arg1: ':arg1' } as any;\n\n const getRequestOptions = ambassadorWixMetroinspectorV1Echo.echo(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/api/v1/echo/{arg1}',\n pathParams: { arg1: 'arg1' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n EchoMessage as EchoMessageOriginal,\n MessageItem as MessageItemOriginal,\n EchoRequest as EchoRequestOriginal,\n EchoResponse as EchoResponseOriginal,\n Dispatched as DispatchedOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n} from './metroinspector-v1-echo-metroinspector.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,cAAAA;AAAA;AAAA;;;ACAA,uBAAqD;AACrD,6BAA+B;AAC/B,0BAA2B;AAI3B,SAAS,+DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;A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AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,MAAM,OAAO;AAAA,IAC3B,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["echo","WebhookIdentityType","echo"]}
|
|
1
|
+
{"version":3,"sources":["../../../meta.ts","../../../src/metroinspector-v1-echo-metroinspector.http.ts","../../../src/metroinspector-v1-echo-metroinspector.types.ts","../../../src/metroinspector-v1-echo-metroinspector.meta.ts"],"sourcesContent":["export * from './src/metroinspector-v1-echo-metroinspector.meta.js';\n","import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixCoreservicesMetroinspectorV1MetroInspectorServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'apps._base_domain_': [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '/api',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n ],\n 'www.wixgateway.com': [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n _: [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-inspector',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n {\n srcPath: '/metro-insepctor',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '/api',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '',\n },\n {\n srcPath: '/_api/metro-inspector',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_motion_metroinspector';\n\n/** echo given arg1 and arg2 */\nexport function echo(payload: object): RequestOptionsFactory<any> {\n function __echo({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'someDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.metroinspector.v1.echo',\n method: 'POST' as any,\n methodFqn:\n 'wix.coreservices.metroinspector.v1.MetroInspectorService.Echo',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCoreservicesMetroinspectorV1MetroInspectorServiceUrl({\n protoPath: '/api/v1/echo/{arg1}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __echo;\n}\n","export interface EchoMessage {\n /** message comment from EchoMessage proto def, with special comment */\n message?: string;\n /** messages_list comment from EchoMessage proto def */\n messagesList?: MessageItem[];\n id?: string;\n}\n\nexport interface MessageItem {\n /** inner_message comment from EchoMessage proto def */\n innerMessage?: string;\n}\n\nexport interface EchoRequest {\n /** 1st part of the message */\n arg1: string;\n /** 2nd part of the message */\n arg2?: string;\n /** this field test translatable annotation */\n titleField?: string;\n someInt32?: number;\n someDate?: Date | null;\n}\n\nexport interface EchoResponse {\n /** message result as EchoMessage */\n echoMessage?: EchoMessage;\n /** messge reseult as string */\n message?: string;\n}\n\nexport interface Dispatched {\n /** the message someone says */\n echo?: EchoMessage;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n","import * as ambassadorWixMetroinspectorV1Echo from './metroinspector-v1-echo-metroinspector.http.js';\nimport * as ambassadorWixMetroinspectorV1EchoTypes from './metroinspector-v1-echo-metroinspector.types.js';\nimport * as ambassadorWixMetroinspectorV1EchoUniversalTypes from './metroinspector-v1-echo-metroinspector.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function echo(): __PublicMethodMetaInfo<\n 'POST',\n { arg1: string },\n ambassadorWixMetroinspectorV1EchoUniversalTypes.EchoRequest,\n ambassadorWixMetroinspectorV1EchoTypes.EchoRequest,\n ambassadorWixMetroinspectorV1EchoUniversalTypes.EchoResponse,\n ambassadorWixMetroinspectorV1EchoTypes.EchoResponse\n> {\n const payload = { arg1: ':arg1' } as any;\n\n const getRequestOptions = ambassadorWixMetroinspectorV1Echo.echo(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/api/v1/echo/{arg1}',\n pathParams: { arg1: 'arg1' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n EchoMessage as EchoMessageOriginal,\n MessageItem as MessageItemOriginal,\n EchoRequest as EchoRequestOriginal,\n EchoResponse as EchoResponseOriginal,\n Dispatched as DispatchedOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n} from './metroinspector-v1-echo-metroinspector.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,cAAAA;AAAA;AAAA;;;ACAA,uBAAqD;AACrD,6BAA+B;AAC/B,0BAA2B;AAI3B,SAAS,+DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AA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