@wix/auto_sdk_motion_metroinspector 1.0.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.
Files changed (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/metroinspector-v1-echo-metroinspector.context.d.ts +11 -0
  11. package/build/cjs/src/metroinspector-v1-echo-metroinspector.context.js +15 -0
  12. package/build/cjs/src/metroinspector-v1-echo-metroinspector.context.js.map +1 -0
  13. package/build/cjs/src/metroinspector-v1-echo-metroinspector.http.d.ts +3 -0
  14. package/build/cjs/src/metroinspector-v1-echo-metroinspector.http.js +115 -0
  15. package/build/cjs/src/metroinspector-v1-echo-metroinspector.http.js.map +1 -0
  16. package/build/cjs/src/metroinspector-v1-echo-metroinspector.meta.d.ts +15 -0
  17. package/build/cjs/src/metroinspector-v1-echo-metroinspector.meta.js +47 -0
  18. package/build/cjs/src/metroinspector-v1-echo-metroinspector.meta.js.map +1 -0
  19. package/build/cjs/src/metroinspector-v1-echo-metroinspector.public.d.ts +17 -0
  20. package/build/cjs/src/metroinspector-v1-echo-metroinspector.public.js +24 -0
  21. package/build/cjs/src/metroinspector-v1-echo-metroinspector.public.js.map +1 -0
  22. package/build/cjs/src/metroinspector-v1-echo-metroinspector.types.d.ts +189 -0
  23. package/build/cjs/src/metroinspector-v1-echo-metroinspector.types.js +12 -0
  24. package/build/cjs/src/metroinspector-v1-echo-metroinspector.types.js.map +1 -0
  25. package/build/cjs/src/metroinspector-v1-echo-metroinspector.universal.d.ts +266 -0
  26. package/build/cjs/src/metroinspector-v1-echo-metroinspector.universal.js +81 -0
  27. package/build/cjs/src/metroinspector-v1-echo-metroinspector.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/metroinspector-v1-echo-metroinspector.context.d.ts +11 -0
  39. package/build/es/src/metroinspector-v1-echo-metroinspector.context.js +11 -0
  40. package/build/es/src/metroinspector-v1-echo-metroinspector.context.js.map +1 -0
  41. package/build/es/src/metroinspector-v1-echo-metroinspector.http.d.ts +3 -0
  42. package/build/es/src/metroinspector-v1-echo-metroinspector.http.js +111 -0
  43. package/build/es/src/metroinspector-v1-echo-metroinspector.http.js.map +1 -0
  44. package/build/es/src/metroinspector-v1-echo-metroinspector.meta.d.ts +15 -0
  45. package/build/es/src/metroinspector-v1-echo-metroinspector.meta.js +20 -0
  46. package/build/es/src/metroinspector-v1-echo-metroinspector.meta.js.map +1 -0
  47. package/build/es/src/metroinspector-v1-echo-metroinspector.public.d.ts +17 -0
  48. package/build/es/src/metroinspector-v1-echo-metroinspector.public.js +19 -0
  49. package/build/es/src/metroinspector-v1-echo-metroinspector.public.js.map +1 -0
  50. package/build/es/src/metroinspector-v1-echo-metroinspector.types.d.ts +189 -0
  51. package/build/es/src/metroinspector-v1-echo-metroinspector.types.js +9 -0
  52. package/build/es/src/metroinspector-v1-echo-metroinspector.types.js.map +1 -0
  53. package/build/es/src/metroinspector-v1-echo-metroinspector.universal.d.ts +266 -0
  54. package/build/es/src/metroinspector-v1-echo-metroinspector.universal.js +54 -0
  55. package/build/es/src/metroinspector-v1-echo-metroinspector.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/metroinspector-v1-echo-metroinspector.context.d.ts +11 -0
  66. package/build/internal/cjs/src/metroinspector-v1-echo-metroinspector.context.js +15 -0
  67. package/build/internal/cjs/src/metroinspector-v1-echo-metroinspector.context.js.map +1 -0
  68. package/build/internal/cjs/src/metroinspector-v1-echo-metroinspector.http.d.ts +3 -0
  69. package/build/internal/cjs/src/metroinspector-v1-echo-metroinspector.http.js +115 -0
  70. package/build/internal/cjs/src/metroinspector-v1-echo-metroinspector.http.js.map +1 -0
  71. package/build/internal/cjs/src/metroinspector-v1-echo-metroinspector.meta.d.ts +15 -0
  72. package/build/internal/cjs/src/metroinspector-v1-echo-metroinspector.meta.js +47 -0
  73. package/build/internal/cjs/src/metroinspector-v1-echo-metroinspector.meta.js.map +1 -0
  74. package/build/internal/cjs/src/metroinspector-v1-echo-metroinspector.public.d.ts +17 -0
  75. package/build/internal/cjs/src/metroinspector-v1-echo-metroinspector.public.js +24 -0
  76. package/build/internal/cjs/src/metroinspector-v1-echo-metroinspector.public.js.map +1 -0
  77. package/build/internal/cjs/src/metroinspector-v1-echo-metroinspector.types.d.ts +189 -0
  78. package/build/internal/cjs/src/metroinspector-v1-echo-metroinspector.types.js +12 -0
  79. package/build/internal/cjs/src/metroinspector-v1-echo-metroinspector.types.js.map +1 -0
  80. package/build/internal/cjs/src/metroinspector-v1-echo-metroinspector.universal.d.ts +266 -0
  81. package/build/internal/cjs/src/metroinspector-v1-echo-metroinspector.universal.js +81 -0
  82. package/build/internal/cjs/src/metroinspector-v1-echo-metroinspector.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/metroinspector-v1-echo-metroinspector.context.d.ts +11 -0
  93. package/build/internal/es/src/metroinspector-v1-echo-metroinspector.context.js +11 -0
  94. package/build/internal/es/src/metroinspector-v1-echo-metroinspector.context.js.map +1 -0
  95. package/build/internal/es/src/metroinspector-v1-echo-metroinspector.http.d.ts +3 -0
  96. package/build/internal/es/src/metroinspector-v1-echo-metroinspector.http.js +111 -0
  97. package/build/internal/es/src/metroinspector-v1-echo-metroinspector.http.js.map +1 -0
  98. package/build/internal/es/src/metroinspector-v1-echo-metroinspector.meta.d.ts +15 -0
  99. package/build/internal/es/src/metroinspector-v1-echo-metroinspector.meta.js +20 -0
  100. package/build/internal/es/src/metroinspector-v1-echo-metroinspector.meta.js.map +1 -0
  101. package/build/internal/es/src/metroinspector-v1-echo-metroinspector.public.d.ts +17 -0
  102. package/build/internal/es/src/metroinspector-v1-echo-metroinspector.public.js +19 -0
  103. package/build/internal/es/src/metroinspector-v1-echo-metroinspector.public.js.map +1 -0
  104. package/build/internal/es/src/metroinspector-v1-echo-metroinspector.types.d.ts +189 -0
  105. package/build/internal/es/src/metroinspector-v1-echo-metroinspector.types.js +9 -0
  106. package/build/internal/es/src/metroinspector-v1-echo-metroinspector.types.js.map +1 -0
  107. package/build/internal/es/src/metroinspector-v1-echo-metroinspector.universal.d.ts +266 -0
  108. package/build/internal/es/src/metroinspector-v1-echo-metroinspector.universal.js +54 -0
  109. package/build/internal/es/src/metroinspector-v1-echo-metroinspector.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,189 @@
1
+ export interface EchoMessage {
2
+ /** message comment from EchoMessage proto def, with special comment */
3
+ message?: string;
4
+ /** messages_list comment from EchoMessage proto def */
5
+ messagesList?: MessageItem[];
6
+ id?: string;
7
+ }
8
+ export interface MessageItem {
9
+ /** inner_message comment from EchoMessage proto def */
10
+ innerMessage?: string;
11
+ }
12
+ export interface EchoRequest {
13
+ /** 1st part of the message */
14
+ arg1: string;
15
+ /** 2nd part of the message */
16
+ arg2?: string;
17
+ /** this field test translatable annotation */
18
+ titleField?: string;
19
+ someInt32?: number;
20
+ someDate?: Date | null;
21
+ }
22
+ export interface EchoResponse {
23
+ /** message result as EchoMessage */
24
+ echoMessage?: EchoMessage;
25
+ /** messge reseult as string */
26
+ message?: string;
27
+ }
28
+ export interface Dispatched {
29
+ /** the message someone says */
30
+ echo?: EchoMessage;
31
+ }
32
+ export interface DomainEvent extends DomainEventBodyOneOf {
33
+ createdEvent?: EntityCreatedEvent;
34
+ updatedEvent?: EntityUpdatedEvent;
35
+ deletedEvent?: EntityDeletedEvent;
36
+ actionEvent?: ActionEvent;
37
+ /**
38
+ * Unique event ID.
39
+ * Allows clients to ignore duplicate webhooks.
40
+ */
41
+ id?: string;
42
+ /**
43
+ * Assumes actions are also always typed to an entity_type
44
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
45
+ */
46
+ entityFqdn?: string;
47
+ /**
48
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
49
+ * This is although the created/updated/deleted notion is duplication of the oneof types
50
+ * Example: created/updated/deleted/started/completed/email_opened
51
+ */
52
+ slug?: string;
53
+ /** ID of the entity associated with the event. */
54
+ entityId?: string;
55
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
56
+ eventTime?: Date | null;
57
+ /**
58
+ * Whether the event was triggered as a result of a privacy regulation application
59
+ * (for example, GDPR).
60
+ */
61
+ triggeredByAnonymizeRequest?: boolean | null;
62
+ /** If present, indicates the action that triggered the event. */
63
+ originatedFrom?: string | null;
64
+ /**
65
+ * A sequence number defining the order of updates to the underlying entity.
66
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
67
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
68
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
69
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
70
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
71
+ */
72
+ entityEventSequence?: string | null;
73
+ }
74
+ /** @oneof */
75
+ export interface DomainEventBodyOneOf {
76
+ createdEvent?: EntityCreatedEvent;
77
+ updatedEvent?: EntityUpdatedEvent;
78
+ deletedEvent?: EntityDeletedEvent;
79
+ actionEvent?: ActionEvent;
80
+ }
81
+ export interface EntityCreatedEvent {
82
+ entityAsJson?: string;
83
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
84
+ restoreInfo?: RestoreInfo;
85
+ }
86
+ export interface RestoreInfo {
87
+ deletedDate?: Date | null;
88
+ }
89
+ export interface EntityUpdatedEvent {
90
+ /**
91
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
92
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
93
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
94
+ */
95
+ currentEntityAsJson?: string;
96
+ }
97
+ export interface EntityDeletedEvent {
98
+ /** Entity that was deleted */
99
+ deletedEntityAsJson?: string | null;
100
+ }
101
+ export interface ActionEvent {
102
+ bodyAsJson?: string;
103
+ }
104
+ export interface MessageEnvelope {
105
+ /**
106
+ * App instance ID.
107
+ * @format GUID
108
+ */
109
+ instanceId?: string | null;
110
+ /**
111
+ * Event type.
112
+ * @maxLength 150
113
+ */
114
+ eventType?: string;
115
+ /** The identification type and identity data. */
116
+ identity?: IdentificationData;
117
+ /** Stringify payload. */
118
+ data?: string;
119
+ }
120
+ export interface IdentificationData extends IdentificationDataIdOneOf {
121
+ /**
122
+ * ID of a site visitor that has not logged in to the site.
123
+ * @format GUID
124
+ */
125
+ anonymousVisitorId?: string;
126
+ /**
127
+ * ID of a site visitor that has logged in to the site.
128
+ * @format GUID
129
+ */
130
+ memberId?: string;
131
+ /**
132
+ * ID of a Wix user (site owner, contributor, etc.).
133
+ * @format GUID
134
+ */
135
+ wixUserId?: string;
136
+ /**
137
+ * ID of an app.
138
+ * @format GUID
139
+ */
140
+ appId?: string;
141
+ /** @readonly */
142
+ identityType?: WebhookIdentityType;
143
+ }
144
+ /** @oneof */
145
+ export interface IdentificationDataIdOneOf {
146
+ /**
147
+ * ID of a site visitor that has not logged in to the site.
148
+ * @format GUID
149
+ */
150
+ anonymousVisitorId?: string;
151
+ /**
152
+ * ID of a site visitor that has logged in to the site.
153
+ * @format GUID
154
+ */
155
+ memberId?: string;
156
+ /**
157
+ * ID of a Wix user (site owner, contributor, etc.).
158
+ * @format GUID
159
+ */
160
+ wixUserId?: string;
161
+ /**
162
+ * ID of an app.
163
+ * @format GUID
164
+ */
165
+ appId?: string;
166
+ }
167
+ export declare enum WebhookIdentityType {
168
+ UNKNOWN = "UNKNOWN",
169
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
170
+ MEMBER = "MEMBER",
171
+ WIX_USER = "WIX_USER",
172
+ APP = "APP"
173
+ }
174
+ export interface EchoRequestRequiredFields {
175
+ arg1: string;
176
+ }
177
+ interface MessageItemNonNullableFields {
178
+ innerMessage: string;
179
+ }
180
+ interface EchoMessageNonNullableFields {
181
+ message: string;
182
+ messagesList: MessageItemNonNullableFields[];
183
+ id: string;
184
+ }
185
+ export interface EchoResponseNonNullableFields {
186
+ echoMessage?: EchoMessageNonNullableFields;
187
+ message: string;
188
+ }
189
+ export {};
@@ -0,0 +1,9 @@
1
+ export var WebhookIdentityType;
2
+ (function (WebhookIdentityType) {
3
+ WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
4
+ WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
5
+ WebhookIdentityType["MEMBER"] = "MEMBER";
6
+ WebhookIdentityType["WIX_USER"] = "WIX_USER";
7
+ WebhookIdentityType["APP"] = "APP";
8
+ })(WebhookIdentityType || (WebhookIdentityType = {}));
9
+ //# sourceMappingURL=metroinspector-v1-echo-metroinspector.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metroinspector-v1-echo-metroinspector.types.js","sourceRoot":"","sources":["../../../../src/metroinspector-v1-echo-metroinspector.types.ts"],"names":[],"mappings":"AAqLA,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
@@ -0,0 +1,266 @@
1
+ export interface MessageItem {
2
+ /** inner_message comment from EchoMessage proto def */
3
+ innerMessage?: string;
4
+ }
5
+ export interface EchoRequest {
6
+ /** 1st part of the message */
7
+ arg1: string;
8
+ /** 2nd part of the message */
9
+ arg2?: string;
10
+ /** this field test translatable annotation */
11
+ titleField?: string;
12
+ someInt32?: number;
13
+ someDate?: Date | null;
14
+ }
15
+ export interface EchoResponse {
16
+ /** message result as EchoMessage */
17
+ echoMessage?: EchoMessage;
18
+ /** messge reseult as string */
19
+ message?: string;
20
+ }
21
+ export interface Dispatched {
22
+ /** the message someone says */
23
+ echo?: EchoMessage;
24
+ }
25
+ export interface DomainEvent extends DomainEventBodyOneOf {
26
+ createdEvent?: EntityCreatedEvent;
27
+ updatedEvent?: EntityUpdatedEvent;
28
+ deletedEvent?: EntityDeletedEvent;
29
+ actionEvent?: ActionEvent;
30
+ /**
31
+ * Unique event ID.
32
+ * Allows clients to ignore duplicate webhooks.
33
+ */
34
+ _id?: string;
35
+ /**
36
+ * Assumes actions are also always typed to an entity_type
37
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
38
+ */
39
+ entityFqdn?: string;
40
+ /**
41
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
42
+ * This is although the created/updated/deleted notion is duplication of the oneof types
43
+ * Example: created/updated/deleted/started/completed/email_opened
44
+ */
45
+ slug?: string;
46
+ /** ID of the entity associated with the event. */
47
+ entityId?: string;
48
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
49
+ eventTime?: Date | null;
50
+ /**
51
+ * Whether the event was triggered as a result of a privacy regulation application
52
+ * (for example, GDPR).
53
+ */
54
+ triggeredByAnonymizeRequest?: boolean | null;
55
+ /** If present, indicates the action that triggered the event. */
56
+ originatedFrom?: string | null;
57
+ /**
58
+ * A sequence number defining the order of updates to the underlying entity.
59
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
60
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
61
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
62
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
63
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
64
+ */
65
+ entityEventSequence?: string | null;
66
+ }
67
+ /** @oneof */
68
+ export interface DomainEventBodyOneOf {
69
+ createdEvent?: EntityCreatedEvent;
70
+ updatedEvent?: EntityUpdatedEvent;
71
+ deletedEvent?: EntityDeletedEvent;
72
+ actionEvent?: ActionEvent;
73
+ }
74
+ export interface EntityCreatedEvent {
75
+ entity?: string;
76
+ }
77
+ export interface RestoreInfo {
78
+ deletedDate?: Date | null;
79
+ }
80
+ export interface EntityUpdatedEvent {
81
+ /**
82
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
83
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
84
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
85
+ */
86
+ currentEntity?: string;
87
+ }
88
+ export interface EntityDeletedEvent {
89
+ /** Entity that was deleted */
90
+ deletedEntity?: string | null;
91
+ }
92
+ export interface ActionEvent {
93
+ body?: string;
94
+ }
95
+ export interface MessageEnvelope {
96
+ /**
97
+ * App instance ID.
98
+ * @format GUID
99
+ */
100
+ instanceId?: string | null;
101
+ /**
102
+ * Event type.
103
+ * @maxLength 150
104
+ */
105
+ eventType?: string;
106
+ /** The identification type and identity data. */
107
+ identity?: IdentificationData;
108
+ /** Stringify payload. */
109
+ data?: string;
110
+ }
111
+ export interface IdentificationData extends IdentificationDataIdOneOf {
112
+ /**
113
+ * ID of a site visitor that has not logged in to the site.
114
+ * @format GUID
115
+ */
116
+ anonymousVisitorId?: string;
117
+ /**
118
+ * ID of a site visitor that has logged in to the site.
119
+ * @format GUID
120
+ */
121
+ memberId?: string;
122
+ /**
123
+ * ID of a Wix user (site owner, contributor, etc.).
124
+ * @format GUID
125
+ */
126
+ wixUserId?: string;
127
+ /**
128
+ * ID of an app.
129
+ * @format GUID
130
+ */
131
+ appId?: string;
132
+ /** @readonly */
133
+ identityType?: WebhookIdentityType;
134
+ }
135
+ /** @oneof */
136
+ export interface IdentificationDataIdOneOf {
137
+ /**
138
+ * ID of a site visitor that has not logged in to the site.
139
+ * @format GUID
140
+ */
141
+ anonymousVisitorId?: string;
142
+ /**
143
+ * ID of a site visitor that has logged in to the site.
144
+ * @format GUID
145
+ */
146
+ memberId?: string;
147
+ /**
148
+ * ID of a Wix user (site owner, contributor, etc.).
149
+ * @format GUID
150
+ */
151
+ wixUserId?: string;
152
+ /**
153
+ * ID of an app.
154
+ * @format GUID
155
+ */
156
+ appId?: string;
157
+ }
158
+ export declare enum WebhookIdentityType {
159
+ UNKNOWN = "UNKNOWN",
160
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
161
+ MEMBER = "MEMBER",
162
+ WIX_USER = "WIX_USER",
163
+ APP = "APP"
164
+ }
165
+ export interface EchoRequestRequiredFields {
166
+ arg1: string;
167
+ }
168
+ interface MessageItemNonNullableFields {
169
+ innerMessage: string;
170
+ }
171
+ interface EchoMessageNonNullableFields {
172
+ message: string;
173
+ messagesList: MessageItemNonNullableFields[];
174
+ _id: string;
175
+ }
176
+ export interface EchoResponseNonNullableFields {
177
+ echoMessage?: EchoMessageNonNullableFields;
178
+ message: string;
179
+ }
180
+ export interface EchoMessage {
181
+ veloMessage: string;
182
+ id: string;
183
+ }
184
+ export interface BaseEventMetadata {
185
+ /**
186
+ * App instance ID.
187
+ * @format GUID
188
+ */
189
+ instanceId?: string | null;
190
+ /**
191
+ * Event type.
192
+ * @maxLength 150
193
+ */
194
+ eventType?: string;
195
+ /** The identification type and identity data. */
196
+ identity?: IdentificationData;
197
+ }
198
+ export interface EventMetadata extends BaseEventMetadata {
199
+ /**
200
+ * Unique event ID.
201
+ * Allows clients to ignore duplicate webhooks.
202
+ */
203
+ _id?: string;
204
+ /**
205
+ * Assumes actions are also always typed to an entity_type
206
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
207
+ */
208
+ entityFqdn?: string;
209
+ /**
210
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
211
+ * This is although the created/updated/deleted notion is duplication of the oneof types
212
+ * Example: created/updated/deleted/started/completed/email_opened
213
+ */
214
+ slug?: string;
215
+ /** ID of the entity associated with the event. */
216
+ entityId?: string;
217
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
218
+ eventTime?: Date | null;
219
+ /**
220
+ * Whether the event was triggered as a result of a privacy regulation application
221
+ * (for example, GDPR).
222
+ */
223
+ triggeredByAnonymizeRequest?: boolean | null;
224
+ /** If present, indicates the action that triggered the event. */
225
+ originatedFrom?: string | null;
226
+ /**
227
+ * A sequence number defining the order of updates to the underlying entity.
228
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
229
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
230
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
231
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
232
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
233
+ */
234
+ entityEventSequence?: string | null;
235
+ }
236
+ export interface EchoDispatchedEnvelope {
237
+ data: Dispatched;
238
+ metadata: EventMetadata;
239
+ }
240
+ /**
241
+ * echo event that might be consumed when somone says something!
242
+ * @webhook
243
+ * @eventType wix.metroinspector.v1.echo_dispatched
244
+ * @serviceIdentifier wix.coreservices.metroinspector.v1.MetroInspectorService
245
+ * @slug dispatched
246
+ */
247
+ export declare function onEchoDispatched(handler: (event: EchoDispatchedEnvelope) => void | Promise<void>): void;
248
+ /**
249
+ * echo given arg1 and arg2
250
+ * @param arg1 - 1st part of the message
251
+ * @public
252
+ * @requiredField arg1
253
+ * @param arg2 - modified comment for arg2 el hovav
254
+ * @returns messge reseult as string
255
+ * @fqn wix.coreservices.metroinspector.v1.MetroInspectorService.Echo
256
+ */
257
+ export declare function echo(arg1: string, options?: EchoOptions): Promise<string>;
258
+ export interface EchoOptions {
259
+ /** 2nd part of the message */
260
+ arg2?: string;
261
+ /** this field test translatable annotation */
262
+ titleField?: string;
263
+ someInt32?: number;
264
+ someDate?: Date | null;
265
+ }
266
+ export {};
@@ -0,0 +1,54 @@
1
+ import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
2
+ import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
3
+ import * as ambassadorWixMetroinspectorV1Echo from './metroinspector-v1-echo-metroinspector.http.js';
4
+ export var WebhookIdentityType;
5
+ (function (WebhookIdentityType) {
6
+ WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
7
+ WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
8
+ WebhookIdentityType["MEMBER"] = "MEMBER";
9
+ WebhookIdentityType["WIX_USER"] = "WIX_USER";
10
+ WebhookIdentityType["APP"] = "APP";
11
+ })(WebhookIdentityType || (WebhookIdentityType = {}));
12
+ /**
13
+ * echo given arg1 and arg2
14
+ * @param arg1 - 1st part of the message
15
+ * @public
16
+ * @requiredField arg1
17
+ * @param arg2 - modified comment for arg2 el hovav
18
+ * @returns messge reseult as string
19
+ * @fqn wix.coreservices.metroinspector.v1.MetroInspectorService.Echo
20
+ */
21
+ export async function echo(arg1, options) {
22
+ // @ts-ignore
23
+ const { httpClient, sideEffects } = arguments[2];
24
+ const payload = renameKeysFromSDKRequestToRESTRequest({
25
+ arg1: arg1,
26
+ arg2: options?.arg2,
27
+ titleField: options?.titleField,
28
+ someInt32: options?.someInt32,
29
+ someDate: options?.someDate,
30
+ });
31
+ const reqOpts = ambassadorWixMetroinspectorV1Echo.echo(payload);
32
+ sideEffects?.onSiteCall?.();
33
+ try {
34
+ const result = await httpClient.request(reqOpts);
35
+ sideEffects?.onSuccess?.(result);
36
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.message;
37
+ }
38
+ catch (err) {
39
+ const transformedError = sdkTransformError(err, {
40
+ spreadPathsToArguments: {},
41
+ explicitPathsToArguments: {
42
+ arg1: '$[0]',
43
+ arg2: '$[1].arg2',
44
+ titleField: '$[1].titleField',
45
+ someInt32: '$[1].someInt32',
46
+ someDate: '$[1].someDate',
47
+ },
48
+ singleArgumentUnchanged: false,
49
+ }, ['arg1', 'options']);
50
+ sideEffects?.onError?.(err);
51
+ throw transformedError;
52
+ }
53
+ }
54
+ //# sourceMappingURL=metroinspector-v1-echo-metroinspector.universal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metroinspector-v1-echo-metroinspector.universal.js","sourceRoot":"","sources":["../../../../src/metroinspector-v1-echo-metroinspector.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,iCAAiC,MAAM,iDAAiD,CAAC;AA6KrG,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B;AAgGD;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,IAAI,CACxB,IAAY,EACZ,OAAqB;IAErB,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC;QACpD,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,OAAO,EAAE,IAAI;QACnB,UAAU,EAAE,OAAO,EAAE,UAAU;QAC/B,SAAS,EAAE,OAAO,EAAE,SAAS;QAC7B,QAAQ,EAAE,OAAO,EAAE,QAAQ;KAC5B,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,iCAAiC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAEhE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,OAAQ,CAAC;IACxE,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,WAAW;gBACjB,UAAU,EAAE,iBAAiB;gBAC7B,SAAS,EAAE,gBAAgB;gBAC3B,QAAQ,EAAE,eAAe;aAC1B;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,MAAM,EAAE,SAAS,CAAC,CACpB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ {
2
+ "main": "../build/cjs/meta.js"
3
+ }
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@wix/auto_sdk_motion_metroinspector",
3
+ "version": "1.0.0",
4
+ "publishConfig": {
5
+ "registry": "https://registry.npmjs.org/",
6
+ "access": "public"
7
+ },
8
+ "keywords": [],
9
+ "sideEffects": false,
10
+ "main": "./build/cjs/index.js",
11
+ "types": "./build/es/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "import": "./build/es/index.js",
15
+ "require": "./build/cjs/index.js",
16
+ "types": "./build/es/index.d.ts"
17
+ },
18
+ "./package.json": "./package.json",
19
+ "./meta": {
20
+ "import": "./build/es/meta.js",
21
+ "require": "./build/cjs/meta.js",
22
+ "types": "./build/es/meta.d.ts"
23
+ }
24
+ },
25
+ "files": [
26
+ "build",
27
+ "meta",
28
+ "service-plugins"
29
+ ],
30
+ "dependencies": {
31
+ "@wix/sdk-runtime": "^0.3.35",
32
+ "@wix/sdk-types": "^1.12.4"
33
+ },
34
+ "devDependencies": {
35
+ "typescript": "^5.3.2"
36
+ },
37
+ "scripts": {
38
+ "build": "tsc -b tsconfig.json tsconfig.esm.json tsconfig.internal.json tsconfig.internal.esm.json",
39
+ "test": ":"
40
+ },
41
+ "wix": {
42
+ "artifact": {
43
+ "artifactId": "auto-sdk-motion-metroinspector",
44
+ "groupId": "com.wixpress.public-sdk-dependencies"
45
+ },
46
+ "sdkDependency": {
47
+ "fqdnNamespace": "metroinspector",
48
+ "fqdn": "wix.metroinspector.v1.echo"
49
+ }
50
+ },
51
+ "falconPackageHash": "4876ac4723b466f52a7650a766c39d99a2b69b2dd0f384c9a500faa7"
52
+ }