@wix/motion 1.0.37 → 1.0.38
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/context/package.json +2 -1
- package/meta/package.json +2 -1
- package/package.json +13 -7
- package/type-bundles/context.bundle.d.ts +753 -0
- package/type-bundles/index.bundle.d.ts +1358 -0
- package/type-bundles/meta.bundle.d.ts +1715 -0
|
@@ -0,0 +1,1358 @@
|
|
|
1
|
+
interface AlarmMessage {
|
|
2
|
+
_id?: string;
|
|
3
|
+
seconds?: number;
|
|
4
|
+
}
|
|
5
|
+
interface AlarmRequest {
|
|
6
|
+
seconds: number;
|
|
7
|
+
someString?: string;
|
|
8
|
+
someOtherString?: string;
|
|
9
|
+
someOtherField?: string;
|
|
10
|
+
}
|
|
11
|
+
interface AlarmResponse {
|
|
12
|
+
time?: Date;
|
|
13
|
+
}
|
|
14
|
+
interface AlarmTriggered {
|
|
15
|
+
}
|
|
16
|
+
interface AlarmSnoozed {
|
|
17
|
+
}
|
|
18
|
+
interface AlarmDeleted {
|
|
19
|
+
}
|
|
20
|
+
interface UpdateAlarmRequest {
|
|
21
|
+
alarm: AlarmMessage;
|
|
22
|
+
}
|
|
23
|
+
interface UpdateAlarmResponse {
|
|
24
|
+
alarm?: AlarmMessage;
|
|
25
|
+
}
|
|
26
|
+
interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
|
|
27
|
+
createdEvent?: EntityCreatedEvent$1;
|
|
28
|
+
updatedEvent?: EntityUpdatedEvent$1;
|
|
29
|
+
deletedEvent?: EntityDeletedEvent$1;
|
|
30
|
+
actionEvent?: ActionEvent$1;
|
|
31
|
+
/**
|
|
32
|
+
* Unique event ID.
|
|
33
|
+
* Allows clients to ignore duplicate webhooks.
|
|
34
|
+
*/
|
|
35
|
+
_id?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Assumes actions are also always typed to an entity_type
|
|
38
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
39
|
+
*/
|
|
40
|
+
entityFqdn?: string;
|
|
41
|
+
/**
|
|
42
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
43
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
44
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
45
|
+
*/
|
|
46
|
+
slug?: string;
|
|
47
|
+
/** ID of the entity associated with the event. */
|
|
48
|
+
entityId?: string;
|
|
49
|
+
/** Event timestamp. */
|
|
50
|
+
eventTime?: Date;
|
|
51
|
+
/**
|
|
52
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
53
|
+
* (for example, GDPR).
|
|
54
|
+
*/
|
|
55
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
56
|
+
/** If present, indicates the action that triggered the event. */
|
|
57
|
+
originatedFrom?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
60
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
61
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
62
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
63
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
64
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
65
|
+
*/
|
|
66
|
+
entityEventSequence?: string | null;
|
|
67
|
+
}
|
|
68
|
+
/** @oneof */
|
|
69
|
+
interface DomainEventBodyOneOf$1 {
|
|
70
|
+
createdEvent?: EntityCreatedEvent$1;
|
|
71
|
+
updatedEvent?: EntityUpdatedEvent$1;
|
|
72
|
+
deletedEvent?: EntityDeletedEvent$1;
|
|
73
|
+
actionEvent?: ActionEvent$1;
|
|
74
|
+
}
|
|
75
|
+
interface EntityCreatedEvent$1 {
|
|
76
|
+
entity?: string;
|
|
77
|
+
}
|
|
78
|
+
interface EntityUpdatedEvent$1 {
|
|
79
|
+
/**
|
|
80
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
81
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
82
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
83
|
+
*/
|
|
84
|
+
currentEntity?: string;
|
|
85
|
+
}
|
|
86
|
+
interface EntityDeletedEvent$1 {
|
|
87
|
+
/** Entity that was deleted */
|
|
88
|
+
deletedEntity?: string | null;
|
|
89
|
+
}
|
|
90
|
+
interface ActionEvent$1 {
|
|
91
|
+
body?: string;
|
|
92
|
+
}
|
|
93
|
+
interface MessageEnvelope$1 {
|
|
94
|
+
/** App instance ID. */
|
|
95
|
+
instanceId?: string | null;
|
|
96
|
+
/** Event type. */
|
|
97
|
+
eventType?: string;
|
|
98
|
+
/** The identification type and identity data. */
|
|
99
|
+
identity?: IdentificationData$1;
|
|
100
|
+
/** Stringify payload. */
|
|
101
|
+
data?: string;
|
|
102
|
+
}
|
|
103
|
+
interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
|
|
104
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
105
|
+
anonymousVisitorId?: string;
|
|
106
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
107
|
+
memberId?: string;
|
|
108
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
109
|
+
wixUserId?: string;
|
|
110
|
+
/** ID of an app. */
|
|
111
|
+
appId?: string;
|
|
112
|
+
/** @readonly */
|
|
113
|
+
identityType?: WebhookIdentityType$1;
|
|
114
|
+
}
|
|
115
|
+
/** @oneof */
|
|
116
|
+
interface IdentificationDataIdOneOf$1 {
|
|
117
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
118
|
+
anonymousVisitorId?: string;
|
|
119
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
120
|
+
memberId?: string;
|
|
121
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
122
|
+
wixUserId?: string;
|
|
123
|
+
/** ID of an app. */
|
|
124
|
+
appId?: string;
|
|
125
|
+
}
|
|
126
|
+
declare enum WebhookIdentityType$1 {
|
|
127
|
+
UNKNOWN = "UNKNOWN",
|
|
128
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
129
|
+
MEMBER = "MEMBER",
|
|
130
|
+
WIX_USER = "WIX_USER",
|
|
131
|
+
APP = "APP"
|
|
132
|
+
}
|
|
133
|
+
interface AlarmRequestRequiredFields {
|
|
134
|
+
seconds: number;
|
|
135
|
+
}
|
|
136
|
+
interface UpdateAlarmRequestRequiredFields {
|
|
137
|
+
alarm: {
|
|
138
|
+
_id: string;
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
interface UpdateAlarmResponseNonNullableFields {
|
|
142
|
+
alarm?: {
|
|
143
|
+
_id: string;
|
|
144
|
+
seconds: number;
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
interface BaseEventMetadata$1 {
|
|
148
|
+
/** App instance ID. */
|
|
149
|
+
instanceId?: string | null;
|
|
150
|
+
/** Event type. */
|
|
151
|
+
eventType?: string;
|
|
152
|
+
/** The identification type and identity data. */
|
|
153
|
+
identity?: IdentificationData$1;
|
|
154
|
+
}
|
|
155
|
+
interface EventMetadata$1 extends BaseEventMetadata$1 {
|
|
156
|
+
/**
|
|
157
|
+
* Unique event ID.
|
|
158
|
+
* Allows clients to ignore duplicate webhooks.
|
|
159
|
+
*/
|
|
160
|
+
_id?: string;
|
|
161
|
+
/**
|
|
162
|
+
* Assumes actions are also always typed to an entity_type
|
|
163
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
164
|
+
*/
|
|
165
|
+
entityFqdn?: string;
|
|
166
|
+
/**
|
|
167
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
168
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
169
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
170
|
+
*/
|
|
171
|
+
slug?: string;
|
|
172
|
+
/** ID of the entity associated with the event. */
|
|
173
|
+
entityId?: string;
|
|
174
|
+
/** Event timestamp. */
|
|
175
|
+
eventTime?: Date;
|
|
176
|
+
/**
|
|
177
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
178
|
+
* (for example, GDPR).
|
|
179
|
+
*/
|
|
180
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
181
|
+
/** If present, indicates the action that triggered the event. */
|
|
182
|
+
originatedFrom?: string | null;
|
|
183
|
+
/**
|
|
184
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
185
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
186
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
187
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
188
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
189
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
190
|
+
*/
|
|
191
|
+
entityEventSequence?: string | null;
|
|
192
|
+
}
|
|
193
|
+
interface AlarmTriggeredEnvelope {
|
|
194
|
+
data: AlarmTriggered;
|
|
195
|
+
metadata: EventMetadata$1;
|
|
196
|
+
}
|
|
197
|
+
interface AlarmSnoozedEnvelope {
|
|
198
|
+
data: AlarmSnoozed;
|
|
199
|
+
metadata: EventMetadata$1;
|
|
200
|
+
}
|
|
201
|
+
interface AlarmDeletedEnvelope {
|
|
202
|
+
data: AlarmDeleted;
|
|
203
|
+
metadata: EventMetadata$1;
|
|
204
|
+
}
|
|
205
|
+
interface AlarmOptions {
|
|
206
|
+
someString?: string;
|
|
207
|
+
someOtherString?: string;
|
|
208
|
+
someOtherField?: string;
|
|
209
|
+
}
|
|
210
|
+
interface UpdateAlarm {
|
|
211
|
+
_id?: string;
|
|
212
|
+
seconds?: number;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
interface HttpClient {
|
|
216
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
217
|
+
}
|
|
218
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
219
|
+
type HttpResponse<T = any> = {
|
|
220
|
+
data: T;
|
|
221
|
+
status: number;
|
|
222
|
+
statusText: string;
|
|
223
|
+
headers: any;
|
|
224
|
+
request?: any;
|
|
225
|
+
};
|
|
226
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
227
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
228
|
+
url: string;
|
|
229
|
+
data?: Data;
|
|
230
|
+
params?: URLSearchParams;
|
|
231
|
+
} & APIMetadata;
|
|
232
|
+
type APIMetadata = {
|
|
233
|
+
methodFqn?: string;
|
|
234
|
+
entityFqdn?: string;
|
|
235
|
+
packageName?: string;
|
|
236
|
+
};
|
|
237
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
238
|
+
__type: 'event-definition';
|
|
239
|
+
type: Type;
|
|
240
|
+
isDomainEvent?: boolean;
|
|
241
|
+
transformations?: unknown;
|
|
242
|
+
__payload: Payload;
|
|
243
|
+
};
|
|
244
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
245
|
+
|
|
246
|
+
declare const __metadata$2: {
|
|
247
|
+
PACKAGE_NAME: string;
|
|
248
|
+
};
|
|
249
|
+
declare function alarm(httpClient: HttpClient): (seconds: number, options?: AlarmOptions) => Promise<AlarmResponse>;
|
|
250
|
+
declare function updateAlarm(httpClient: HttpClient): (_id: string, alarm: UpdateAlarm) => Promise<UpdateAlarmResponse & UpdateAlarmResponseNonNullableFields>;
|
|
251
|
+
declare const onAlarmTriggered: EventDefinition<AlarmTriggeredEnvelope, "wix.alarm.v1.alarm_alarm_triggered">;
|
|
252
|
+
declare const onAlarmSnoozed: EventDefinition<AlarmSnoozedEnvelope, "wix.alarm.v1.alarm_alarm_snoozed">;
|
|
253
|
+
declare const onAlarmDeleted: EventDefinition<AlarmDeletedEnvelope, "wix.alarm.v1.alarm_alarm_deleted">;
|
|
254
|
+
|
|
255
|
+
type index_d$2_AlarmDeleted = AlarmDeleted;
|
|
256
|
+
type index_d$2_AlarmDeletedEnvelope = AlarmDeletedEnvelope;
|
|
257
|
+
type index_d$2_AlarmMessage = AlarmMessage;
|
|
258
|
+
type index_d$2_AlarmOptions = AlarmOptions;
|
|
259
|
+
type index_d$2_AlarmRequest = AlarmRequest;
|
|
260
|
+
type index_d$2_AlarmRequestRequiredFields = AlarmRequestRequiredFields;
|
|
261
|
+
type index_d$2_AlarmResponse = AlarmResponse;
|
|
262
|
+
type index_d$2_AlarmSnoozed = AlarmSnoozed;
|
|
263
|
+
type index_d$2_AlarmSnoozedEnvelope = AlarmSnoozedEnvelope;
|
|
264
|
+
type index_d$2_AlarmTriggered = AlarmTriggered;
|
|
265
|
+
type index_d$2_AlarmTriggeredEnvelope = AlarmTriggeredEnvelope;
|
|
266
|
+
type index_d$2_UpdateAlarm = UpdateAlarm;
|
|
267
|
+
type index_d$2_UpdateAlarmRequest = UpdateAlarmRequest;
|
|
268
|
+
type index_d$2_UpdateAlarmRequestRequiredFields = UpdateAlarmRequestRequiredFields;
|
|
269
|
+
type index_d$2_UpdateAlarmResponse = UpdateAlarmResponse;
|
|
270
|
+
type index_d$2_UpdateAlarmResponseNonNullableFields = UpdateAlarmResponseNonNullableFields;
|
|
271
|
+
declare const index_d$2_alarm: typeof alarm;
|
|
272
|
+
declare const index_d$2_onAlarmDeleted: typeof onAlarmDeleted;
|
|
273
|
+
declare const index_d$2_onAlarmSnoozed: typeof onAlarmSnoozed;
|
|
274
|
+
declare const index_d$2_onAlarmTriggered: typeof onAlarmTriggered;
|
|
275
|
+
declare const index_d$2_updateAlarm: typeof updateAlarm;
|
|
276
|
+
declare namespace index_d$2 {
|
|
277
|
+
export { type ActionEvent$1 as ActionEvent, type index_d$2_AlarmDeleted as AlarmDeleted, type index_d$2_AlarmDeletedEnvelope as AlarmDeletedEnvelope, type index_d$2_AlarmMessage as AlarmMessage, type index_d$2_AlarmOptions as AlarmOptions, type index_d$2_AlarmRequest as AlarmRequest, type index_d$2_AlarmRequestRequiredFields as AlarmRequestRequiredFields, type index_d$2_AlarmResponse as AlarmResponse, type index_d$2_AlarmSnoozed as AlarmSnoozed, type index_d$2_AlarmSnoozedEnvelope as AlarmSnoozedEnvelope, type index_d$2_AlarmTriggered as AlarmTriggered, type index_d$2_AlarmTriggeredEnvelope as AlarmTriggeredEnvelope, type BaseEventMetadata$1 as BaseEventMetadata, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type index_d$2_UpdateAlarm as UpdateAlarm, type index_d$2_UpdateAlarmRequest as UpdateAlarmRequest, type index_d$2_UpdateAlarmRequestRequiredFields as UpdateAlarmRequestRequiredFields, type index_d$2_UpdateAlarmResponse as UpdateAlarmResponse, type index_d$2_UpdateAlarmResponseNonNullableFields as UpdateAlarmResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, __metadata$2 as __metadata, index_d$2_alarm as alarm, index_d$2_onAlarmDeleted as onAlarmDeleted, index_d$2_onAlarmSnoozed as onAlarmSnoozed, index_d$2_onAlarmTriggered as onAlarmTriggered, index_d$2_updateAlarm as updateAlarm };
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
interface MessageItem {
|
|
281
|
+
/** inner_message comment from EchoMessage proto def */
|
|
282
|
+
innerMessage?: string;
|
|
283
|
+
}
|
|
284
|
+
interface EchoRequest {
|
|
285
|
+
/** 1st part of the message */
|
|
286
|
+
arg1: string;
|
|
287
|
+
/** 2nd part of the message */
|
|
288
|
+
arg2?: string;
|
|
289
|
+
/** this field test translatable annotation */
|
|
290
|
+
titleField?: string;
|
|
291
|
+
someInt32?: number;
|
|
292
|
+
someDate?: Date;
|
|
293
|
+
}
|
|
294
|
+
interface EchoResponse {
|
|
295
|
+
/** message result as EchoMessage */
|
|
296
|
+
echoMessage?: EchoMessage;
|
|
297
|
+
/** messge reseult as string */
|
|
298
|
+
message?: string;
|
|
299
|
+
}
|
|
300
|
+
interface Dispatched {
|
|
301
|
+
/** the message someone says */
|
|
302
|
+
echo?: EchoMessage;
|
|
303
|
+
}
|
|
304
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
305
|
+
createdEvent?: EntityCreatedEvent;
|
|
306
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
307
|
+
deletedEvent?: EntityDeletedEvent;
|
|
308
|
+
actionEvent?: ActionEvent;
|
|
309
|
+
/**
|
|
310
|
+
* Unique event ID.
|
|
311
|
+
* Allows clients to ignore duplicate webhooks.
|
|
312
|
+
*/
|
|
313
|
+
_id?: string;
|
|
314
|
+
/**
|
|
315
|
+
* Assumes actions are also always typed to an entity_type
|
|
316
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
317
|
+
*/
|
|
318
|
+
entityFqdn?: string;
|
|
319
|
+
/**
|
|
320
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
321
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
322
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
323
|
+
*/
|
|
324
|
+
slug?: string;
|
|
325
|
+
/** ID of the entity associated with the event. */
|
|
326
|
+
entityId?: string;
|
|
327
|
+
/** Event timestamp. */
|
|
328
|
+
eventTime?: Date;
|
|
329
|
+
/**
|
|
330
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
331
|
+
* (for example, GDPR).
|
|
332
|
+
*/
|
|
333
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
334
|
+
/** If present, indicates the action that triggered the event. */
|
|
335
|
+
originatedFrom?: string | null;
|
|
336
|
+
/**
|
|
337
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
338
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
339
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
340
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
341
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
342
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
343
|
+
*/
|
|
344
|
+
entityEventSequence?: string | null;
|
|
345
|
+
}
|
|
346
|
+
/** @oneof */
|
|
347
|
+
interface DomainEventBodyOneOf {
|
|
348
|
+
createdEvent?: EntityCreatedEvent;
|
|
349
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
350
|
+
deletedEvent?: EntityDeletedEvent;
|
|
351
|
+
actionEvent?: ActionEvent;
|
|
352
|
+
}
|
|
353
|
+
interface EntityCreatedEvent {
|
|
354
|
+
entity?: string;
|
|
355
|
+
}
|
|
356
|
+
interface EntityUpdatedEvent {
|
|
357
|
+
/**
|
|
358
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
359
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
360
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
361
|
+
*/
|
|
362
|
+
currentEntity?: string;
|
|
363
|
+
}
|
|
364
|
+
interface EntityDeletedEvent {
|
|
365
|
+
/** Entity that was deleted */
|
|
366
|
+
deletedEntity?: string | null;
|
|
367
|
+
}
|
|
368
|
+
interface ActionEvent {
|
|
369
|
+
body?: string;
|
|
370
|
+
}
|
|
371
|
+
interface MessageEnvelope {
|
|
372
|
+
/** App instance ID. */
|
|
373
|
+
instanceId?: string | null;
|
|
374
|
+
/** Event type. */
|
|
375
|
+
eventType?: string;
|
|
376
|
+
/** The identification type and identity data. */
|
|
377
|
+
identity?: IdentificationData;
|
|
378
|
+
/** Stringify payload. */
|
|
379
|
+
data?: string;
|
|
380
|
+
}
|
|
381
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
382
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
383
|
+
anonymousVisitorId?: string;
|
|
384
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
385
|
+
memberId?: string;
|
|
386
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
387
|
+
wixUserId?: string;
|
|
388
|
+
/** ID of an app. */
|
|
389
|
+
appId?: string;
|
|
390
|
+
/** @readonly */
|
|
391
|
+
identityType?: WebhookIdentityType;
|
|
392
|
+
}
|
|
393
|
+
/** @oneof */
|
|
394
|
+
interface IdentificationDataIdOneOf {
|
|
395
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
396
|
+
anonymousVisitorId?: string;
|
|
397
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
398
|
+
memberId?: string;
|
|
399
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
400
|
+
wixUserId?: string;
|
|
401
|
+
/** ID of an app. */
|
|
402
|
+
appId?: string;
|
|
403
|
+
}
|
|
404
|
+
declare enum WebhookIdentityType {
|
|
405
|
+
UNKNOWN = "UNKNOWN",
|
|
406
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
407
|
+
MEMBER = "MEMBER",
|
|
408
|
+
WIX_USER = "WIX_USER",
|
|
409
|
+
APP = "APP"
|
|
410
|
+
}
|
|
411
|
+
interface EchoRequestRequiredFields {
|
|
412
|
+
arg1: string;
|
|
413
|
+
}
|
|
414
|
+
interface EchoResponseNonNullableFields {
|
|
415
|
+
echoMessage?: {
|
|
416
|
+
message: string;
|
|
417
|
+
messagesList: {
|
|
418
|
+
innerMessage: string;
|
|
419
|
+
}[];
|
|
420
|
+
_id: string;
|
|
421
|
+
};
|
|
422
|
+
message: string;
|
|
423
|
+
}
|
|
424
|
+
interface EchoMessage {
|
|
425
|
+
veloMessage: string;
|
|
426
|
+
id: string;
|
|
427
|
+
}
|
|
428
|
+
interface BaseEventMetadata {
|
|
429
|
+
/** App instance ID. */
|
|
430
|
+
instanceId?: string | null;
|
|
431
|
+
/** Event type. */
|
|
432
|
+
eventType?: string;
|
|
433
|
+
/** The identification type and identity data. */
|
|
434
|
+
identity?: IdentificationData;
|
|
435
|
+
}
|
|
436
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
437
|
+
/**
|
|
438
|
+
* Unique event ID.
|
|
439
|
+
* Allows clients to ignore duplicate webhooks.
|
|
440
|
+
*/
|
|
441
|
+
_id?: string;
|
|
442
|
+
/**
|
|
443
|
+
* Assumes actions are also always typed to an entity_type
|
|
444
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
445
|
+
*/
|
|
446
|
+
entityFqdn?: string;
|
|
447
|
+
/**
|
|
448
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
449
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
450
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
451
|
+
*/
|
|
452
|
+
slug?: string;
|
|
453
|
+
/** ID of the entity associated with the event. */
|
|
454
|
+
entityId?: string;
|
|
455
|
+
/** Event timestamp. */
|
|
456
|
+
eventTime?: Date;
|
|
457
|
+
/**
|
|
458
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
459
|
+
* (for example, GDPR).
|
|
460
|
+
*/
|
|
461
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
462
|
+
/** If present, indicates the action that triggered the event. */
|
|
463
|
+
originatedFrom?: string | null;
|
|
464
|
+
/**
|
|
465
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
466
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
467
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
468
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
469
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
470
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
471
|
+
*/
|
|
472
|
+
entityEventSequence?: string | null;
|
|
473
|
+
}
|
|
474
|
+
interface EchoDispatchedEnvelope {
|
|
475
|
+
data: Dispatched;
|
|
476
|
+
metadata: EventMetadata;
|
|
477
|
+
}
|
|
478
|
+
interface EchoOptions {
|
|
479
|
+
/** 2nd part of the message */
|
|
480
|
+
arg2?: string;
|
|
481
|
+
/** this field test translatable annotation */
|
|
482
|
+
titleField?: string;
|
|
483
|
+
someInt32?: number;
|
|
484
|
+
someDate?: Date;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
declare const __metadata$1: {
|
|
488
|
+
PACKAGE_NAME: string;
|
|
489
|
+
};
|
|
490
|
+
declare function echo(httpClient: HttpClient): (arg1: string, options?: EchoOptions) => Promise<string>;
|
|
491
|
+
declare const onEchoDispatched: EventDefinition<EchoDispatchedEnvelope, "wix.metroinspector.v1.echo_dispatched">;
|
|
492
|
+
|
|
493
|
+
type index_d$1_ActionEvent = ActionEvent;
|
|
494
|
+
type index_d$1_BaseEventMetadata = BaseEventMetadata;
|
|
495
|
+
type index_d$1_Dispatched = Dispatched;
|
|
496
|
+
type index_d$1_DomainEvent = DomainEvent;
|
|
497
|
+
type index_d$1_DomainEventBodyOneOf = DomainEventBodyOneOf;
|
|
498
|
+
type index_d$1_EchoDispatchedEnvelope = EchoDispatchedEnvelope;
|
|
499
|
+
type index_d$1_EchoMessage = EchoMessage;
|
|
500
|
+
type index_d$1_EchoOptions = EchoOptions;
|
|
501
|
+
type index_d$1_EchoRequest = EchoRequest;
|
|
502
|
+
type index_d$1_EchoRequestRequiredFields = EchoRequestRequiredFields;
|
|
503
|
+
type index_d$1_EchoResponse = EchoResponse;
|
|
504
|
+
type index_d$1_EchoResponseNonNullableFields = EchoResponseNonNullableFields;
|
|
505
|
+
type index_d$1_EntityCreatedEvent = EntityCreatedEvent;
|
|
506
|
+
type index_d$1_EntityDeletedEvent = EntityDeletedEvent;
|
|
507
|
+
type index_d$1_EntityUpdatedEvent = EntityUpdatedEvent;
|
|
508
|
+
type index_d$1_EventMetadata = EventMetadata;
|
|
509
|
+
type index_d$1_IdentificationData = IdentificationData;
|
|
510
|
+
type index_d$1_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
|
|
511
|
+
type index_d$1_MessageEnvelope = MessageEnvelope;
|
|
512
|
+
type index_d$1_MessageItem = MessageItem;
|
|
513
|
+
type index_d$1_WebhookIdentityType = WebhookIdentityType;
|
|
514
|
+
declare const index_d$1_WebhookIdentityType: typeof WebhookIdentityType;
|
|
515
|
+
declare const index_d$1_echo: typeof echo;
|
|
516
|
+
declare const index_d$1_onEchoDispatched: typeof onEchoDispatched;
|
|
517
|
+
declare namespace index_d$1 {
|
|
518
|
+
export { type index_d$1_ActionEvent as ActionEvent, type index_d$1_BaseEventMetadata as BaseEventMetadata, type index_d$1_Dispatched as Dispatched, type index_d$1_DomainEvent as DomainEvent, type index_d$1_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d$1_EchoDispatchedEnvelope as EchoDispatchedEnvelope, type index_d$1_EchoMessage as EchoMessage, type index_d$1_EchoOptions as EchoOptions, type index_d$1_EchoRequest as EchoRequest, type index_d$1_EchoRequestRequiredFields as EchoRequestRequiredFields, type index_d$1_EchoResponse as EchoResponse, type index_d$1_EchoResponseNonNullableFields as EchoResponseNonNullableFields, type index_d$1_EntityCreatedEvent as EntityCreatedEvent, type index_d$1_EntityDeletedEvent as EntityDeletedEvent, type index_d$1_EntityUpdatedEvent as EntityUpdatedEvent, type index_d$1_EventMetadata as EventMetadata, type index_d$1_IdentificationData as IdentificationData, type index_d$1_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d$1_MessageEnvelope as MessageEnvelope, type index_d$1_MessageItem as MessageItem, index_d$1_WebhookIdentityType as WebhookIdentityType, __metadata$1 as __metadata, index_d$1_echo as echo, index_d$1_onEchoDispatched as onEchoDispatched };
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/** Physical address */
|
|
522
|
+
interface Address extends AddressStreetOneOf {
|
|
523
|
+
/** Street name and number. */
|
|
524
|
+
streetAddress?: StreetAddress;
|
|
525
|
+
/** Main address line, usually street and number as free text. */
|
|
526
|
+
addressLine1?: string | null;
|
|
527
|
+
/** Country code. */
|
|
528
|
+
country?: string | null;
|
|
529
|
+
/** Subdivision shorthand. Usually, a short code (2 or 3 letters) that represents a state, region, prefecture, or province. e.g. NY */
|
|
530
|
+
subdivision?: string | null;
|
|
531
|
+
/** City name. */
|
|
532
|
+
city?: string | null;
|
|
533
|
+
/** Zip/postal code. */
|
|
534
|
+
postalCode?: string | null;
|
|
535
|
+
/** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
|
|
536
|
+
addressLine2?: string | null;
|
|
537
|
+
}
|
|
538
|
+
/** @oneof */
|
|
539
|
+
interface AddressStreetOneOf {
|
|
540
|
+
/** Street name and number. */
|
|
541
|
+
streetAddress?: StreetAddress;
|
|
542
|
+
/** Main address line, usually street and number as free text. */
|
|
543
|
+
addressLine?: string | null;
|
|
544
|
+
}
|
|
545
|
+
interface StreetAddress {
|
|
546
|
+
/** Street number. */
|
|
547
|
+
number?: string;
|
|
548
|
+
/** Street name. */
|
|
549
|
+
name?: string;
|
|
550
|
+
}
|
|
551
|
+
interface AddressLocation {
|
|
552
|
+
/** Address latitude. */
|
|
553
|
+
latitude?: number | null;
|
|
554
|
+
/** Address longitude. */
|
|
555
|
+
longitude?: number | null;
|
|
556
|
+
}
|
|
557
|
+
interface Subdivision {
|
|
558
|
+
/** Short subdivision code. */
|
|
559
|
+
code?: string;
|
|
560
|
+
/** Subdivision full name. */
|
|
561
|
+
name?: string;
|
|
562
|
+
}
|
|
563
|
+
declare enum SubdivisionType {
|
|
564
|
+
UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
|
|
565
|
+
/** State */
|
|
566
|
+
ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
|
|
567
|
+
/** County */
|
|
568
|
+
ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
|
|
569
|
+
/** City/town */
|
|
570
|
+
ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
|
|
571
|
+
/** Neighborhood/quarter */
|
|
572
|
+
ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
|
|
573
|
+
/** Street/block */
|
|
574
|
+
ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
|
|
575
|
+
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
576
|
+
COUNTRY = "COUNTRY"
|
|
577
|
+
}
|
|
578
|
+
/** Subdivision Concordance values */
|
|
579
|
+
interface StandardDetails {
|
|
580
|
+
/** subdivision iso-3166-2 code according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). e.g. US-NY, GB-SCT, NO-30 */
|
|
581
|
+
iso31662?: string | null;
|
|
582
|
+
}
|
|
583
|
+
interface VideoResolution {
|
|
584
|
+
/** Video URL. */
|
|
585
|
+
url?: string;
|
|
586
|
+
/** Video height. */
|
|
587
|
+
height?: number;
|
|
588
|
+
/** Video width. */
|
|
589
|
+
width?: number;
|
|
590
|
+
/** Video format for example, mp4, hls. */
|
|
591
|
+
format?: string;
|
|
592
|
+
}
|
|
593
|
+
interface PageLink {
|
|
594
|
+
/** The page id we want from the site */
|
|
595
|
+
pageId?: string;
|
|
596
|
+
/** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */
|
|
597
|
+
target?: string | null;
|
|
598
|
+
/** rel of link */
|
|
599
|
+
rel?: LinkRel[];
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document.
|
|
603
|
+
* Further reading (also about different possible rel types): https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel
|
|
604
|
+
* Following are the accepted 'rel' types by Wix applications.
|
|
605
|
+
*/
|
|
606
|
+
declare enum LinkRel {
|
|
607
|
+
/** default (not implemented) */
|
|
608
|
+
unknown_link_rel = "unknown_link_rel",
|
|
609
|
+
/** Indicates that the current document's original author or publisher does not endorse the referenced document. */
|
|
610
|
+
nofollow = "nofollow",
|
|
611
|
+
/** Instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it. */
|
|
612
|
+
noopener = "noopener",
|
|
613
|
+
/** No Referer header will be included. Additionally, has the same effect as noopener. */
|
|
614
|
+
noreferrer = "noreferrer",
|
|
615
|
+
/** Indicates a link that resulted from advertisements or paid placements. */
|
|
616
|
+
sponsored = "sponsored"
|
|
617
|
+
}
|
|
618
|
+
interface Variant {
|
|
619
|
+
name?: string;
|
|
620
|
+
value?: string;
|
|
621
|
+
image?: string;
|
|
622
|
+
}
|
|
623
|
+
interface MyAddress {
|
|
624
|
+
country?: string | null;
|
|
625
|
+
subdivision?: string | null;
|
|
626
|
+
city?: string | null;
|
|
627
|
+
postalCode?: string | null;
|
|
628
|
+
streetAddress?: StreetAddress;
|
|
629
|
+
}
|
|
630
|
+
interface CreateProductRequest {
|
|
631
|
+
product?: Product;
|
|
632
|
+
}
|
|
633
|
+
interface CreateProductResponse {
|
|
634
|
+
product?: Product;
|
|
635
|
+
}
|
|
636
|
+
interface DeleteProductRequest {
|
|
637
|
+
productId: string;
|
|
638
|
+
}
|
|
639
|
+
interface DeleteProductResponse {
|
|
640
|
+
}
|
|
641
|
+
interface UpdateProductRequest {
|
|
642
|
+
productId: string;
|
|
643
|
+
product?: Product;
|
|
644
|
+
}
|
|
645
|
+
interface UpdateProductResponse {
|
|
646
|
+
product?: Product;
|
|
647
|
+
}
|
|
648
|
+
interface GetProductRequest {
|
|
649
|
+
productId: string;
|
|
650
|
+
}
|
|
651
|
+
interface GetProductResponse {
|
|
652
|
+
product?: Product;
|
|
653
|
+
}
|
|
654
|
+
interface GetProductsStartWithRequest {
|
|
655
|
+
title: string;
|
|
656
|
+
addressLine2?: string | null;
|
|
657
|
+
}
|
|
658
|
+
interface GetProductsStartWithResponse {
|
|
659
|
+
products?: Product[];
|
|
660
|
+
}
|
|
661
|
+
interface QueryProductsRequest {
|
|
662
|
+
query?: QueryV2;
|
|
663
|
+
/** Whether variants should be included in the response. */
|
|
664
|
+
includeVariants?: boolean;
|
|
665
|
+
/** Whether hidden products should be included in the response. Requires permissions to manage products. */
|
|
666
|
+
includeHiddenProducts?: boolean;
|
|
667
|
+
/** Whether merchant specific data should be included in the response. Requires permissions to manage products. */
|
|
668
|
+
includeMerchantSpecificData?: boolean;
|
|
669
|
+
}
|
|
670
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
671
|
+
/** Paging options to limit and skip the number of items. */
|
|
672
|
+
paging?: Paging;
|
|
673
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
674
|
+
cursorPaging?: CursorPaging;
|
|
675
|
+
/**
|
|
676
|
+
* Filter object in the following format:
|
|
677
|
+
* `"filter" : {
|
|
678
|
+
* "fieldName1": "value1",
|
|
679
|
+
* "fieldName2":{"$operator":"value2"}
|
|
680
|
+
* }`
|
|
681
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
682
|
+
*/
|
|
683
|
+
filter?: Record<string, any> | null;
|
|
684
|
+
/**
|
|
685
|
+
* Sort object in the following format:
|
|
686
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
687
|
+
*/
|
|
688
|
+
sort?: Sorting[];
|
|
689
|
+
/** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
690
|
+
fields?: string[];
|
|
691
|
+
/** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
692
|
+
fieldsets?: string[];
|
|
693
|
+
}
|
|
694
|
+
/** @oneof */
|
|
695
|
+
interface QueryV2PagingMethodOneOf {
|
|
696
|
+
/** Paging options to limit and skip the number of items. */
|
|
697
|
+
paging?: Paging;
|
|
698
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
699
|
+
cursorPaging?: CursorPaging;
|
|
700
|
+
}
|
|
701
|
+
interface Sorting {
|
|
702
|
+
/** Name of the field to sort by. */
|
|
703
|
+
fieldName?: string;
|
|
704
|
+
/** Sort order. */
|
|
705
|
+
order?: SortOrder;
|
|
706
|
+
}
|
|
707
|
+
declare enum SortOrder {
|
|
708
|
+
ASC = "ASC",
|
|
709
|
+
DESC = "DESC"
|
|
710
|
+
}
|
|
711
|
+
interface Paging {
|
|
712
|
+
/** Number of items to load. */
|
|
713
|
+
limit?: number | null;
|
|
714
|
+
/** Number of items to skip in the current sort order. */
|
|
715
|
+
offset?: number | null;
|
|
716
|
+
}
|
|
717
|
+
interface CursorPaging {
|
|
718
|
+
/** Maximum number of items to return in the results. */
|
|
719
|
+
limit?: number | null;
|
|
720
|
+
/**
|
|
721
|
+
* Pointer to the next or previous page in the list of results.
|
|
722
|
+
*
|
|
723
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
724
|
+
* Not relevant for the first request.
|
|
725
|
+
*/
|
|
726
|
+
cursor?: string | null;
|
|
727
|
+
}
|
|
728
|
+
interface QueryProductsResponse {
|
|
729
|
+
products?: Product[];
|
|
730
|
+
metadata?: PagingMetadataV2;
|
|
731
|
+
}
|
|
732
|
+
interface PagingMetadataV2 {
|
|
733
|
+
/** Number of items returned in the response. */
|
|
734
|
+
count?: number | null;
|
|
735
|
+
/** Offset that was requested. */
|
|
736
|
+
offset?: number | null;
|
|
737
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
738
|
+
total?: number | null;
|
|
739
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
740
|
+
tooManyToCount?: boolean | null;
|
|
741
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
742
|
+
cursors?: Cursors;
|
|
743
|
+
}
|
|
744
|
+
interface Cursors {
|
|
745
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
746
|
+
next?: string | null;
|
|
747
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
748
|
+
prev?: string | null;
|
|
749
|
+
}
|
|
750
|
+
interface BulkCreateProductsRequest {
|
|
751
|
+
products: Product[];
|
|
752
|
+
/** set to `true` if you wish to receive back the created products in the response */
|
|
753
|
+
returnEntity?: boolean;
|
|
754
|
+
}
|
|
755
|
+
interface BulkCreateProductsResponse {
|
|
756
|
+
results?: BulkProductResult[];
|
|
757
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
758
|
+
}
|
|
759
|
+
interface ItemMetadata {
|
|
760
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
761
|
+
_id?: string | null;
|
|
762
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
763
|
+
originalIndex?: number;
|
|
764
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
765
|
+
success?: boolean;
|
|
766
|
+
/** Details about the error in case of failure. */
|
|
767
|
+
error?: ApplicationError;
|
|
768
|
+
}
|
|
769
|
+
interface ApplicationError {
|
|
770
|
+
/** Error code. */
|
|
771
|
+
code?: string;
|
|
772
|
+
/** Description of the error. */
|
|
773
|
+
description?: string;
|
|
774
|
+
/** Data related to the error. */
|
|
775
|
+
data?: Record<string, any> | null;
|
|
776
|
+
}
|
|
777
|
+
interface BulkProductResult {
|
|
778
|
+
/** Defined in wix.commons */
|
|
779
|
+
itemMetadata?: ItemMetadata;
|
|
780
|
+
/** Only exists if `returnEntity` was set to true in the request */
|
|
781
|
+
item?: Product;
|
|
782
|
+
}
|
|
783
|
+
interface BulkActionMetadata {
|
|
784
|
+
/** Number of items that were successfully processed. */
|
|
785
|
+
totalSuccesses?: number;
|
|
786
|
+
/** Number of items that couldn't be processed. */
|
|
787
|
+
totalFailures?: number;
|
|
788
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
789
|
+
undetailedFailures?: number;
|
|
790
|
+
}
|
|
791
|
+
interface BulkUpdateProductsRequest {
|
|
792
|
+
products: MaskedProduct[];
|
|
793
|
+
/** set to `true` if you wish to receive back the updated products in the response */
|
|
794
|
+
returnEntity?: boolean;
|
|
795
|
+
}
|
|
796
|
+
interface MaskedProduct {
|
|
797
|
+
/** Product to be updated, may be partial */
|
|
798
|
+
product?: Product;
|
|
799
|
+
}
|
|
800
|
+
interface BulkUpdateProductsResponse {
|
|
801
|
+
results?: BulkUpdateProductsResponseBulkProductResult[];
|
|
802
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
803
|
+
}
|
|
804
|
+
interface BulkUpdateProductsResponseBulkProductResult {
|
|
805
|
+
itemMetadata?: ItemMetadata;
|
|
806
|
+
/** Only exists if `returnEntity` was set to true in the request */
|
|
807
|
+
item?: Product;
|
|
808
|
+
}
|
|
809
|
+
interface BulkDeleteProductsRequest {
|
|
810
|
+
productIds: string[];
|
|
811
|
+
}
|
|
812
|
+
interface BulkDeleteProductsResponse {
|
|
813
|
+
results?: BulkDeleteProductsResponseBulkProductResult[];
|
|
814
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
815
|
+
}
|
|
816
|
+
interface BulkDeleteProductsResponseBulkProductResult {
|
|
817
|
+
itemMetadata?: ItemMetadata;
|
|
818
|
+
}
|
|
819
|
+
interface ResetProductsDbRequest {
|
|
820
|
+
}
|
|
821
|
+
interface ResetProductsDbResponse {
|
|
822
|
+
}
|
|
823
|
+
interface CreateProductRequestRequiredFields {
|
|
824
|
+
product?: {
|
|
825
|
+
title: string;
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
interface CreateProductResponseNonNullableFields {
|
|
829
|
+
product?: {
|
|
830
|
+
_id: string;
|
|
831
|
+
collectionId: string;
|
|
832
|
+
image: string;
|
|
833
|
+
document: string;
|
|
834
|
+
video: string;
|
|
835
|
+
pageLink?: {
|
|
836
|
+
pageId: string;
|
|
837
|
+
rel: LinkRel[];
|
|
838
|
+
};
|
|
839
|
+
audio: string;
|
|
840
|
+
variants: {
|
|
841
|
+
name: string;
|
|
842
|
+
value: string;
|
|
843
|
+
image: string;
|
|
844
|
+
}[];
|
|
845
|
+
mainVariant?: {
|
|
846
|
+
name: string;
|
|
847
|
+
value: string;
|
|
848
|
+
image: string;
|
|
849
|
+
};
|
|
850
|
+
guid: string;
|
|
851
|
+
};
|
|
852
|
+
}
|
|
853
|
+
interface DeleteProductRequestRequiredFields {
|
|
854
|
+
productId: string;
|
|
855
|
+
}
|
|
856
|
+
interface UpdateProductRequestRequiredFields {
|
|
857
|
+
product?: {
|
|
858
|
+
_id: string;
|
|
859
|
+
};
|
|
860
|
+
productId: string;
|
|
861
|
+
}
|
|
862
|
+
interface UpdateProductResponseNonNullableFields {
|
|
863
|
+
product?: {
|
|
864
|
+
_id: string;
|
|
865
|
+
collectionId: string;
|
|
866
|
+
image: string;
|
|
867
|
+
document: string;
|
|
868
|
+
video: string;
|
|
869
|
+
pageLink?: {
|
|
870
|
+
pageId: string;
|
|
871
|
+
rel: LinkRel[];
|
|
872
|
+
};
|
|
873
|
+
audio: string;
|
|
874
|
+
variants: {
|
|
875
|
+
name: string;
|
|
876
|
+
value: string;
|
|
877
|
+
image: string;
|
|
878
|
+
}[];
|
|
879
|
+
mainVariant?: {
|
|
880
|
+
name: string;
|
|
881
|
+
value: string;
|
|
882
|
+
image: string;
|
|
883
|
+
};
|
|
884
|
+
guid: string;
|
|
885
|
+
};
|
|
886
|
+
}
|
|
887
|
+
interface GetProductRequestRequiredFields {
|
|
888
|
+
productId: string;
|
|
889
|
+
}
|
|
890
|
+
interface GetProductResponseNonNullableFields {
|
|
891
|
+
product?: {
|
|
892
|
+
_id: string;
|
|
893
|
+
collectionId: string;
|
|
894
|
+
image: string;
|
|
895
|
+
document: string;
|
|
896
|
+
video: string;
|
|
897
|
+
pageLink?: {
|
|
898
|
+
pageId: string;
|
|
899
|
+
rel: LinkRel[];
|
|
900
|
+
};
|
|
901
|
+
audio: string;
|
|
902
|
+
variants: {
|
|
903
|
+
name: string;
|
|
904
|
+
value: string;
|
|
905
|
+
image: string;
|
|
906
|
+
}[];
|
|
907
|
+
mainVariant?: {
|
|
908
|
+
name: string;
|
|
909
|
+
value: string;
|
|
910
|
+
image: string;
|
|
911
|
+
};
|
|
912
|
+
guid: string;
|
|
913
|
+
};
|
|
914
|
+
}
|
|
915
|
+
interface GetProductsStartWithRequestRequiredFields {
|
|
916
|
+
title: string;
|
|
917
|
+
}
|
|
918
|
+
interface GetProductsStartWithResponseNonNullableFields {
|
|
919
|
+
products: {
|
|
920
|
+
_id: string;
|
|
921
|
+
collectionId: string;
|
|
922
|
+
image: string;
|
|
923
|
+
document: string;
|
|
924
|
+
video: string;
|
|
925
|
+
pageLink?: {
|
|
926
|
+
pageId: string;
|
|
927
|
+
rel: LinkRel[];
|
|
928
|
+
};
|
|
929
|
+
audio: string;
|
|
930
|
+
variants: {
|
|
931
|
+
name: string;
|
|
932
|
+
value: string;
|
|
933
|
+
image: string;
|
|
934
|
+
}[];
|
|
935
|
+
mainVariant?: {
|
|
936
|
+
name: string;
|
|
937
|
+
value: string;
|
|
938
|
+
image: string;
|
|
939
|
+
};
|
|
940
|
+
guid: string;
|
|
941
|
+
}[];
|
|
942
|
+
}
|
|
943
|
+
interface QueryProductsResponseNonNullableFields {
|
|
944
|
+
products: {
|
|
945
|
+
_id: string;
|
|
946
|
+
collectionId: string;
|
|
947
|
+
image: string;
|
|
948
|
+
document: string;
|
|
949
|
+
video: string;
|
|
950
|
+
pageLink?: {
|
|
951
|
+
pageId: string;
|
|
952
|
+
rel: LinkRel[];
|
|
953
|
+
};
|
|
954
|
+
audio: string;
|
|
955
|
+
variants: {
|
|
956
|
+
name: string;
|
|
957
|
+
value: string;
|
|
958
|
+
image: string;
|
|
959
|
+
}[];
|
|
960
|
+
mainVariant?: {
|
|
961
|
+
name: string;
|
|
962
|
+
value: string;
|
|
963
|
+
image: string;
|
|
964
|
+
};
|
|
965
|
+
guid: string;
|
|
966
|
+
}[];
|
|
967
|
+
}
|
|
968
|
+
interface BulkCreateProductsRequestRequiredFields {
|
|
969
|
+
products: Product[];
|
|
970
|
+
}
|
|
971
|
+
interface BulkCreateProductsResponseNonNullableFields {
|
|
972
|
+
results: {
|
|
973
|
+
itemMetadata?: {
|
|
974
|
+
originalIndex: number;
|
|
975
|
+
success: boolean;
|
|
976
|
+
error?: {
|
|
977
|
+
code: string;
|
|
978
|
+
description: string;
|
|
979
|
+
};
|
|
980
|
+
};
|
|
981
|
+
item?: {
|
|
982
|
+
_id: string;
|
|
983
|
+
collectionId: string;
|
|
984
|
+
image: string;
|
|
985
|
+
document: string;
|
|
986
|
+
video: string;
|
|
987
|
+
pageLink?: {
|
|
988
|
+
pageId: string;
|
|
989
|
+
rel: LinkRel[];
|
|
990
|
+
};
|
|
991
|
+
audio: string;
|
|
992
|
+
variants: {
|
|
993
|
+
name: string;
|
|
994
|
+
value: string;
|
|
995
|
+
image: string;
|
|
996
|
+
}[];
|
|
997
|
+
mainVariant?: {
|
|
998
|
+
name: string;
|
|
999
|
+
value: string;
|
|
1000
|
+
image: string;
|
|
1001
|
+
};
|
|
1002
|
+
guid: string;
|
|
1003
|
+
};
|
|
1004
|
+
}[];
|
|
1005
|
+
bulkActionMetadata?: {
|
|
1006
|
+
totalSuccesses: number;
|
|
1007
|
+
totalFailures: number;
|
|
1008
|
+
undetailedFailures: number;
|
|
1009
|
+
};
|
|
1010
|
+
}
|
|
1011
|
+
interface BulkUpdateProductsRequestRequiredFields {
|
|
1012
|
+
products: MaskedProduct[];
|
|
1013
|
+
}
|
|
1014
|
+
interface BulkUpdateProductsResponseNonNullableFields {
|
|
1015
|
+
results: {
|
|
1016
|
+
itemMetadata?: {
|
|
1017
|
+
originalIndex: number;
|
|
1018
|
+
success: boolean;
|
|
1019
|
+
error?: {
|
|
1020
|
+
code: string;
|
|
1021
|
+
description: string;
|
|
1022
|
+
};
|
|
1023
|
+
};
|
|
1024
|
+
item?: {
|
|
1025
|
+
_id: string;
|
|
1026
|
+
collectionId: string;
|
|
1027
|
+
image: string;
|
|
1028
|
+
document: string;
|
|
1029
|
+
video: string;
|
|
1030
|
+
pageLink?: {
|
|
1031
|
+
pageId: string;
|
|
1032
|
+
rel: LinkRel[];
|
|
1033
|
+
};
|
|
1034
|
+
audio: string;
|
|
1035
|
+
variants: {
|
|
1036
|
+
name: string;
|
|
1037
|
+
value: string;
|
|
1038
|
+
image: string;
|
|
1039
|
+
}[];
|
|
1040
|
+
mainVariant?: {
|
|
1041
|
+
name: string;
|
|
1042
|
+
value: string;
|
|
1043
|
+
image: string;
|
|
1044
|
+
};
|
|
1045
|
+
guid: string;
|
|
1046
|
+
};
|
|
1047
|
+
}[];
|
|
1048
|
+
bulkActionMetadata?: {
|
|
1049
|
+
totalSuccesses: number;
|
|
1050
|
+
totalFailures: number;
|
|
1051
|
+
undetailedFailures: number;
|
|
1052
|
+
};
|
|
1053
|
+
}
|
|
1054
|
+
interface BulkDeleteProductsRequestRequiredFields {
|
|
1055
|
+
productIds: string[];
|
|
1056
|
+
}
|
|
1057
|
+
interface BulkDeleteProductsResponseNonNullableFields {
|
|
1058
|
+
results: {
|
|
1059
|
+
itemMetadata?: {
|
|
1060
|
+
originalIndex: number;
|
|
1061
|
+
success: boolean;
|
|
1062
|
+
error?: {
|
|
1063
|
+
code: string;
|
|
1064
|
+
description: string;
|
|
1065
|
+
};
|
|
1066
|
+
};
|
|
1067
|
+
}[];
|
|
1068
|
+
bulkActionMetadata?: {
|
|
1069
|
+
totalSuccesses: number;
|
|
1070
|
+
totalFailures: number;
|
|
1071
|
+
undetailedFailures: number;
|
|
1072
|
+
};
|
|
1073
|
+
}
|
|
1074
|
+
interface Product {
|
|
1075
|
+
_id: string;
|
|
1076
|
+
name: string | null;
|
|
1077
|
+
collectionId: string;
|
|
1078
|
+
_createdDate: Date;
|
|
1079
|
+
modifiedDate: Date;
|
|
1080
|
+
image: string;
|
|
1081
|
+
address: Address;
|
|
1082
|
+
document: string;
|
|
1083
|
+
video: string;
|
|
1084
|
+
pageLink: PageLink;
|
|
1085
|
+
audio: string;
|
|
1086
|
+
color: string | null;
|
|
1087
|
+
localDate: string | null;
|
|
1088
|
+
localTime: string | null;
|
|
1089
|
+
localDateTime: string | null;
|
|
1090
|
+
variants: Variant[];
|
|
1091
|
+
mainVariant: Variant;
|
|
1092
|
+
customAddress: MyAddress;
|
|
1093
|
+
guid: string;
|
|
1094
|
+
}
|
|
1095
|
+
interface CreateProductOptionsRequiredFields {
|
|
1096
|
+
product?: {
|
|
1097
|
+
title: unknown;
|
|
1098
|
+
};
|
|
1099
|
+
}
|
|
1100
|
+
interface CreateProductOptions {
|
|
1101
|
+
product?: Product;
|
|
1102
|
+
}
|
|
1103
|
+
interface UpdateProductOptionsRequiredFields {
|
|
1104
|
+
product?: {
|
|
1105
|
+
_id: string;
|
|
1106
|
+
};
|
|
1107
|
+
}
|
|
1108
|
+
interface UpdateProductOptions {
|
|
1109
|
+
product?: Product;
|
|
1110
|
+
}
|
|
1111
|
+
interface GetProductsStartWithOptions {
|
|
1112
|
+
addressLine2?: string | null;
|
|
1113
|
+
}
|
|
1114
|
+
interface QueryProductsOptions {
|
|
1115
|
+
/** Whether variants should be included in the response. */
|
|
1116
|
+
includeVariants?: boolean | undefined;
|
|
1117
|
+
/** Whether hidden products should be included in the response. Requires permissions to manage products. */
|
|
1118
|
+
includeHiddenProducts?: boolean | undefined;
|
|
1119
|
+
/** Whether merchant specific data should be included in the response. Requires permissions to manage products. */
|
|
1120
|
+
includeMerchantSpecificData?: boolean | undefined;
|
|
1121
|
+
}
|
|
1122
|
+
interface QueryCursorResult {
|
|
1123
|
+
cursors: Cursors;
|
|
1124
|
+
hasNext: () => boolean;
|
|
1125
|
+
hasPrev: () => boolean;
|
|
1126
|
+
length: number;
|
|
1127
|
+
pageSize: number;
|
|
1128
|
+
}
|
|
1129
|
+
interface ProductsQueryResult extends QueryCursorResult {
|
|
1130
|
+
items: Product[];
|
|
1131
|
+
query: ProductsQueryBuilder;
|
|
1132
|
+
next: () => Promise<ProductsQueryResult>;
|
|
1133
|
+
prev: () => Promise<ProductsQueryResult>;
|
|
1134
|
+
}
|
|
1135
|
+
interface ProductsQueryBuilder {
|
|
1136
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
1137
|
+
* @param value - Value to compare against.
|
|
1138
|
+
* @documentationMaturity preview
|
|
1139
|
+
*/
|
|
1140
|
+
eq: (propertyName: 'title' | 'collectionId' | 'guid', value: any) => ProductsQueryBuilder;
|
|
1141
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
1142
|
+
* @param value - Value to compare against.
|
|
1143
|
+
* @documentationMaturity preview
|
|
1144
|
+
*/
|
|
1145
|
+
ne: (propertyName: 'title' | 'guid', value: any) => ProductsQueryBuilder;
|
|
1146
|
+
/** @param propertyName - Property whose value is compared with `string`.
|
|
1147
|
+
* @param string - String to compare against. Case-insensitive.
|
|
1148
|
+
* @documentationMaturity preview
|
|
1149
|
+
*/
|
|
1150
|
+
startsWith: (propertyName: 'title' | 'guid', value: string) => ProductsQueryBuilder;
|
|
1151
|
+
/** @param propertyName - Property whose value is compared with `values`.
|
|
1152
|
+
* @param values - List of values to compare against.
|
|
1153
|
+
* @documentationMaturity preview
|
|
1154
|
+
*/
|
|
1155
|
+
hasSome: (propertyName: 'title' | 'guid', value: any[]) => ProductsQueryBuilder;
|
|
1156
|
+
/** @documentationMaturity preview */
|
|
1157
|
+
in: (propertyName: 'title' | 'guid', value: any) => ProductsQueryBuilder;
|
|
1158
|
+
/** @documentationMaturity preview */
|
|
1159
|
+
exists: (propertyName: 'title' | 'guid', value: boolean) => ProductsQueryBuilder;
|
|
1160
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
1161
|
+
* @documentationMaturity preview
|
|
1162
|
+
*/
|
|
1163
|
+
ascending: (...propertyNames: Array<'title' | 'collectionId' | 'guid'>) => ProductsQueryBuilder;
|
|
1164
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
1165
|
+
* @documentationMaturity preview
|
|
1166
|
+
*/
|
|
1167
|
+
descending: (...propertyNames: Array<'title' | 'collectionId' | 'guid'>) => ProductsQueryBuilder;
|
|
1168
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
1169
|
+
* @documentationMaturity preview
|
|
1170
|
+
*/
|
|
1171
|
+
limit: (limit: number) => ProductsQueryBuilder;
|
|
1172
|
+
/** @param cursor - A pointer to specific record
|
|
1173
|
+
* @documentationMaturity preview
|
|
1174
|
+
*/
|
|
1175
|
+
skipTo: (cursor: string) => ProductsQueryBuilder;
|
|
1176
|
+
/** @documentationMaturity preview */
|
|
1177
|
+
find: () => Promise<ProductsQueryResult>;
|
|
1178
|
+
}
|
|
1179
|
+
interface BulkCreateProductsOptions {
|
|
1180
|
+
/** set to `true` if you wish to receive back the created products in the response */
|
|
1181
|
+
returnEntity?: boolean;
|
|
1182
|
+
}
|
|
1183
|
+
interface BulkUpdateProductsOptions {
|
|
1184
|
+
/** set to `true` if you wish to receive back the updated products in the response */
|
|
1185
|
+
returnEntity?: boolean;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
declare const __metadata: {
|
|
1189
|
+
PACKAGE_NAME: string;
|
|
1190
|
+
};
|
|
1191
|
+
declare function createProduct(httpClient: HttpClient): (options?: CreateProductOptions & CreateProductOptionsRequiredFields) => Promise<Product & {
|
|
1192
|
+
_id: string;
|
|
1193
|
+
collectionId: string;
|
|
1194
|
+
image: string;
|
|
1195
|
+
document: string;
|
|
1196
|
+
video: string;
|
|
1197
|
+
pageLink?: {
|
|
1198
|
+
pageId: string;
|
|
1199
|
+
rel: LinkRel[];
|
|
1200
|
+
} | undefined;
|
|
1201
|
+
audio: string;
|
|
1202
|
+
variants: {
|
|
1203
|
+
name: string;
|
|
1204
|
+
value: string;
|
|
1205
|
+
image: string;
|
|
1206
|
+
}[];
|
|
1207
|
+
mainVariant?: {
|
|
1208
|
+
name: string;
|
|
1209
|
+
value: string;
|
|
1210
|
+
image: string;
|
|
1211
|
+
} | undefined;
|
|
1212
|
+
guid: string;
|
|
1213
|
+
}>;
|
|
1214
|
+
declare function deleteProduct(httpClient: HttpClient): (productId: string) => Promise<void>;
|
|
1215
|
+
declare function updateProduct(httpClient: HttpClient): (productId: string, options?: UpdateProductOptions & UpdateProductOptionsRequiredFields) => Promise<Product & {
|
|
1216
|
+
_id: string;
|
|
1217
|
+
collectionId: string;
|
|
1218
|
+
image: string;
|
|
1219
|
+
document: string;
|
|
1220
|
+
video: string;
|
|
1221
|
+
pageLink?: {
|
|
1222
|
+
pageId: string;
|
|
1223
|
+
rel: LinkRel[];
|
|
1224
|
+
} | undefined;
|
|
1225
|
+
audio: string;
|
|
1226
|
+
variants: {
|
|
1227
|
+
name: string;
|
|
1228
|
+
value: string;
|
|
1229
|
+
image: string;
|
|
1230
|
+
}[];
|
|
1231
|
+
mainVariant?: {
|
|
1232
|
+
name: string;
|
|
1233
|
+
value: string;
|
|
1234
|
+
image: string;
|
|
1235
|
+
} | undefined;
|
|
1236
|
+
guid: string;
|
|
1237
|
+
}>;
|
|
1238
|
+
declare function getProduct(httpClient: HttpClient): (productId: string) => Promise<Product & {
|
|
1239
|
+
_id: string;
|
|
1240
|
+
collectionId: string;
|
|
1241
|
+
image: string;
|
|
1242
|
+
document: string;
|
|
1243
|
+
video: string;
|
|
1244
|
+
pageLink?: {
|
|
1245
|
+
pageId: string;
|
|
1246
|
+
rel: LinkRel[];
|
|
1247
|
+
} | undefined;
|
|
1248
|
+
audio: string;
|
|
1249
|
+
variants: {
|
|
1250
|
+
name: string;
|
|
1251
|
+
value: string;
|
|
1252
|
+
image: string;
|
|
1253
|
+
}[];
|
|
1254
|
+
mainVariant?: {
|
|
1255
|
+
name: string;
|
|
1256
|
+
value: string;
|
|
1257
|
+
image: string;
|
|
1258
|
+
} | undefined;
|
|
1259
|
+
guid: string;
|
|
1260
|
+
}>;
|
|
1261
|
+
declare function getProductsStartWith(httpClient: HttpClient): (title: string, options?: GetProductsStartWithOptions) => Promise<GetProductsStartWithResponse & GetProductsStartWithResponseNonNullableFields>;
|
|
1262
|
+
declare function queryProducts(httpClient: HttpClient): (options?: QueryProductsOptions) => ProductsQueryBuilder;
|
|
1263
|
+
declare function bulkCreateProducts(httpClient: HttpClient): (products: Product[], options?: BulkCreateProductsOptions) => Promise<BulkCreateProductsResponse & BulkCreateProductsResponseNonNullableFields>;
|
|
1264
|
+
declare function bulkUpdateProducts(httpClient: HttpClient): (products: MaskedProduct[], options?: BulkUpdateProductsOptions) => Promise<BulkUpdateProductsResponse & BulkUpdateProductsResponseNonNullableFields>;
|
|
1265
|
+
declare function bulkDeleteProducts(httpClient: HttpClient): (productIds: string[]) => Promise<BulkDeleteProductsResponse & BulkDeleteProductsResponseNonNullableFields>;
|
|
1266
|
+
|
|
1267
|
+
type index_d_Address = Address;
|
|
1268
|
+
type index_d_AddressLocation = AddressLocation;
|
|
1269
|
+
type index_d_AddressStreetOneOf = AddressStreetOneOf;
|
|
1270
|
+
type index_d_ApplicationError = ApplicationError;
|
|
1271
|
+
type index_d_BulkActionMetadata = BulkActionMetadata;
|
|
1272
|
+
type index_d_BulkCreateProductsOptions = BulkCreateProductsOptions;
|
|
1273
|
+
type index_d_BulkCreateProductsRequest = BulkCreateProductsRequest;
|
|
1274
|
+
type index_d_BulkCreateProductsRequestRequiredFields = BulkCreateProductsRequestRequiredFields;
|
|
1275
|
+
type index_d_BulkCreateProductsResponse = BulkCreateProductsResponse;
|
|
1276
|
+
type index_d_BulkCreateProductsResponseNonNullableFields = BulkCreateProductsResponseNonNullableFields;
|
|
1277
|
+
type index_d_BulkDeleteProductsRequest = BulkDeleteProductsRequest;
|
|
1278
|
+
type index_d_BulkDeleteProductsRequestRequiredFields = BulkDeleteProductsRequestRequiredFields;
|
|
1279
|
+
type index_d_BulkDeleteProductsResponse = BulkDeleteProductsResponse;
|
|
1280
|
+
type index_d_BulkDeleteProductsResponseBulkProductResult = BulkDeleteProductsResponseBulkProductResult;
|
|
1281
|
+
type index_d_BulkDeleteProductsResponseNonNullableFields = BulkDeleteProductsResponseNonNullableFields;
|
|
1282
|
+
type index_d_BulkProductResult = BulkProductResult;
|
|
1283
|
+
type index_d_BulkUpdateProductsOptions = BulkUpdateProductsOptions;
|
|
1284
|
+
type index_d_BulkUpdateProductsRequest = BulkUpdateProductsRequest;
|
|
1285
|
+
type index_d_BulkUpdateProductsRequestRequiredFields = BulkUpdateProductsRequestRequiredFields;
|
|
1286
|
+
type index_d_BulkUpdateProductsResponse = BulkUpdateProductsResponse;
|
|
1287
|
+
type index_d_BulkUpdateProductsResponseBulkProductResult = BulkUpdateProductsResponseBulkProductResult;
|
|
1288
|
+
type index_d_BulkUpdateProductsResponseNonNullableFields = BulkUpdateProductsResponseNonNullableFields;
|
|
1289
|
+
type index_d_CreateProductOptions = CreateProductOptions;
|
|
1290
|
+
type index_d_CreateProductOptionsRequiredFields = CreateProductOptionsRequiredFields;
|
|
1291
|
+
type index_d_CreateProductRequest = CreateProductRequest;
|
|
1292
|
+
type index_d_CreateProductRequestRequiredFields = CreateProductRequestRequiredFields;
|
|
1293
|
+
type index_d_CreateProductResponse = CreateProductResponse;
|
|
1294
|
+
type index_d_CreateProductResponseNonNullableFields = CreateProductResponseNonNullableFields;
|
|
1295
|
+
type index_d_CursorPaging = CursorPaging;
|
|
1296
|
+
type index_d_Cursors = Cursors;
|
|
1297
|
+
type index_d_DeleteProductRequest = DeleteProductRequest;
|
|
1298
|
+
type index_d_DeleteProductRequestRequiredFields = DeleteProductRequestRequiredFields;
|
|
1299
|
+
type index_d_DeleteProductResponse = DeleteProductResponse;
|
|
1300
|
+
type index_d_GetProductRequest = GetProductRequest;
|
|
1301
|
+
type index_d_GetProductRequestRequiredFields = GetProductRequestRequiredFields;
|
|
1302
|
+
type index_d_GetProductResponse = GetProductResponse;
|
|
1303
|
+
type index_d_GetProductResponseNonNullableFields = GetProductResponseNonNullableFields;
|
|
1304
|
+
type index_d_GetProductsStartWithOptions = GetProductsStartWithOptions;
|
|
1305
|
+
type index_d_GetProductsStartWithRequest = GetProductsStartWithRequest;
|
|
1306
|
+
type index_d_GetProductsStartWithRequestRequiredFields = GetProductsStartWithRequestRequiredFields;
|
|
1307
|
+
type index_d_GetProductsStartWithResponse = GetProductsStartWithResponse;
|
|
1308
|
+
type index_d_GetProductsStartWithResponseNonNullableFields = GetProductsStartWithResponseNonNullableFields;
|
|
1309
|
+
type index_d_ItemMetadata = ItemMetadata;
|
|
1310
|
+
type index_d_LinkRel = LinkRel;
|
|
1311
|
+
declare const index_d_LinkRel: typeof LinkRel;
|
|
1312
|
+
type index_d_MaskedProduct = MaskedProduct;
|
|
1313
|
+
type index_d_MyAddress = MyAddress;
|
|
1314
|
+
type index_d_PageLink = PageLink;
|
|
1315
|
+
type index_d_Paging = Paging;
|
|
1316
|
+
type index_d_PagingMetadataV2 = PagingMetadataV2;
|
|
1317
|
+
type index_d_Product = Product;
|
|
1318
|
+
type index_d_ProductsQueryBuilder = ProductsQueryBuilder;
|
|
1319
|
+
type index_d_ProductsQueryResult = ProductsQueryResult;
|
|
1320
|
+
type index_d_QueryProductsOptions = QueryProductsOptions;
|
|
1321
|
+
type index_d_QueryProductsRequest = QueryProductsRequest;
|
|
1322
|
+
type index_d_QueryProductsResponse = QueryProductsResponse;
|
|
1323
|
+
type index_d_QueryProductsResponseNonNullableFields = QueryProductsResponseNonNullableFields;
|
|
1324
|
+
type index_d_QueryV2 = QueryV2;
|
|
1325
|
+
type index_d_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
|
|
1326
|
+
type index_d_ResetProductsDbRequest = ResetProductsDbRequest;
|
|
1327
|
+
type index_d_ResetProductsDbResponse = ResetProductsDbResponse;
|
|
1328
|
+
type index_d_SortOrder = SortOrder;
|
|
1329
|
+
declare const index_d_SortOrder: typeof SortOrder;
|
|
1330
|
+
type index_d_Sorting = Sorting;
|
|
1331
|
+
type index_d_StandardDetails = StandardDetails;
|
|
1332
|
+
type index_d_StreetAddress = StreetAddress;
|
|
1333
|
+
type index_d_Subdivision = Subdivision;
|
|
1334
|
+
type index_d_SubdivisionType = SubdivisionType;
|
|
1335
|
+
declare const index_d_SubdivisionType: typeof SubdivisionType;
|
|
1336
|
+
type index_d_UpdateProductOptions = UpdateProductOptions;
|
|
1337
|
+
type index_d_UpdateProductOptionsRequiredFields = UpdateProductOptionsRequiredFields;
|
|
1338
|
+
type index_d_UpdateProductRequest = UpdateProductRequest;
|
|
1339
|
+
type index_d_UpdateProductRequestRequiredFields = UpdateProductRequestRequiredFields;
|
|
1340
|
+
type index_d_UpdateProductResponse = UpdateProductResponse;
|
|
1341
|
+
type index_d_UpdateProductResponseNonNullableFields = UpdateProductResponseNonNullableFields;
|
|
1342
|
+
type index_d_Variant = Variant;
|
|
1343
|
+
type index_d_VideoResolution = VideoResolution;
|
|
1344
|
+
declare const index_d___metadata: typeof __metadata;
|
|
1345
|
+
declare const index_d_bulkCreateProducts: typeof bulkCreateProducts;
|
|
1346
|
+
declare const index_d_bulkDeleteProducts: typeof bulkDeleteProducts;
|
|
1347
|
+
declare const index_d_bulkUpdateProducts: typeof bulkUpdateProducts;
|
|
1348
|
+
declare const index_d_createProduct: typeof createProduct;
|
|
1349
|
+
declare const index_d_deleteProduct: typeof deleteProduct;
|
|
1350
|
+
declare const index_d_getProduct: typeof getProduct;
|
|
1351
|
+
declare const index_d_getProductsStartWith: typeof getProductsStartWith;
|
|
1352
|
+
declare const index_d_queryProducts: typeof queryProducts;
|
|
1353
|
+
declare const index_d_updateProduct: typeof updateProduct;
|
|
1354
|
+
declare namespace index_d {
|
|
1355
|
+
export { type index_d_Address as Address, type index_d_AddressLocation as AddressLocation, type index_d_AddressStreetOneOf as AddressStreetOneOf, type index_d_ApplicationError as ApplicationError, type index_d_BulkActionMetadata as BulkActionMetadata, type index_d_BulkCreateProductsOptions as BulkCreateProductsOptions, type index_d_BulkCreateProductsRequest as BulkCreateProductsRequest, type index_d_BulkCreateProductsRequestRequiredFields as BulkCreateProductsRequestRequiredFields, type index_d_BulkCreateProductsResponse as BulkCreateProductsResponse, type index_d_BulkCreateProductsResponseNonNullableFields as BulkCreateProductsResponseNonNullableFields, type index_d_BulkDeleteProductsRequest as BulkDeleteProductsRequest, type index_d_BulkDeleteProductsRequestRequiredFields as BulkDeleteProductsRequestRequiredFields, type index_d_BulkDeleteProductsResponse as BulkDeleteProductsResponse, type index_d_BulkDeleteProductsResponseBulkProductResult as BulkDeleteProductsResponseBulkProductResult, type index_d_BulkDeleteProductsResponseNonNullableFields as BulkDeleteProductsResponseNonNullableFields, type index_d_BulkProductResult as BulkProductResult, type index_d_BulkUpdateProductsOptions as BulkUpdateProductsOptions, type index_d_BulkUpdateProductsRequest as BulkUpdateProductsRequest, type index_d_BulkUpdateProductsRequestRequiredFields as BulkUpdateProductsRequestRequiredFields, type index_d_BulkUpdateProductsResponse as BulkUpdateProductsResponse, type index_d_BulkUpdateProductsResponseBulkProductResult as BulkUpdateProductsResponseBulkProductResult, type index_d_BulkUpdateProductsResponseNonNullableFields as BulkUpdateProductsResponseNonNullableFields, type index_d_CreateProductOptions as CreateProductOptions, type index_d_CreateProductOptionsRequiredFields as CreateProductOptionsRequiredFields, type index_d_CreateProductRequest as CreateProductRequest, type index_d_CreateProductRequestRequiredFields as CreateProductRequestRequiredFields, type index_d_CreateProductResponse as CreateProductResponse, type index_d_CreateProductResponseNonNullableFields as CreateProductResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_DeleteProductRequest as DeleteProductRequest, type index_d_DeleteProductRequestRequiredFields as DeleteProductRequestRequiredFields, type index_d_DeleteProductResponse as DeleteProductResponse, type index_d_GetProductRequest as GetProductRequest, type index_d_GetProductRequestRequiredFields as GetProductRequestRequiredFields, type index_d_GetProductResponse as GetProductResponse, type index_d_GetProductResponseNonNullableFields as GetProductResponseNonNullableFields, type index_d_GetProductsStartWithOptions as GetProductsStartWithOptions, type index_d_GetProductsStartWithRequest as GetProductsStartWithRequest, type index_d_GetProductsStartWithRequestRequiredFields as GetProductsStartWithRequestRequiredFields, type index_d_GetProductsStartWithResponse as GetProductsStartWithResponse, type index_d_GetProductsStartWithResponseNonNullableFields as GetProductsStartWithResponseNonNullableFields, type index_d_ItemMetadata as ItemMetadata, index_d_LinkRel as LinkRel, type index_d_MaskedProduct as MaskedProduct, type index_d_MyAddress as MyAddress, type index_d_PageLink as PageLink, type index_d_Paging as Paging, type index_d_PagingMetadataV2 as PagingMetadataV2, type index_d_Product as Product, type index_d_ProductsQueryBuilder as ProductsQueryBuilder, type index_d_ProductsQueryResult as ProductsQueryResult, type index_d_QueryProductsOptions as QueryProductsOptions, type index_d_QueryProductsRequest as QueryProductsRequest, type index_d_QueryProductsResponse as QueryProductsResponse, type index_d_QueryProductsResponseNonNullableFields as QueryProductsResponseNonNullableFields, type index_d_QueryV2 as QueryV2, type index_d_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d_ResetProductsDbRequest as ResetProductsDbRequest, type index_d_ResetProductsDbResponse as ResetProductsDbResponse, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, type index_d_StandardDetails as StandardDetails, type index_d_StreetAddress as StreetAddress, type index_d_Subdivision as Subdivision, index_d_SubdivisionType as SubdivisionType, type index_d_UpdateProductOptions as UpdateProductOptions, type index_d_UpdateProductOptionsRequiredFields as UpdateProductOptionsRequiredFields, type index_d_UpdateProductRequest as UpdateProductRequest, type index_d_UpdateProductRequestRequiredFields as UpdateProductRequestRequiredFields, type index_d_UpdateProductResponse as UpdateProductResponse, type index_d_UpdateProductResponseNonNullableFields as UpdateProductResponseNonNullableFields, type index_d_Variant as Variant, type index_d_VideoResolution as VideoResolution, index_d___metadata as __metadata, index_d_bulkCreateProducts as bulkCreateProducts, index_d_bulkDeleteProducts as bulkDeleteProducts, index_d_bulkUpdateProducts as bulkUpdateProducts, index_d_createProduct as createProduct, index_d_deleteProduct as deleteProduct, index_d_getProduct as getProduct, index_d_getProductsStartWith as getProductsStartWith, index_d_queryProducts as queryProducts, index_d_updateProduct as updateProduct };
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
export { index_d$2 as alarms, index_d$1 as metroinspector, index_d as products };
|