@wix/auto_sdk_loyalty_imports 1.0.4 → 1.0.5

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 (130) hide show
  1. package/build/index.d.mts +88 -0
  2. package/build/index.d.ts +88 -0
  3. package/build/index.js +536 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +502 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/index.d.mts +88 -0
  8. package/build/internal/index.d.ts +88 -0
  9. package/build/internal/index.js +536 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +502 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/{cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts → loyalty-imports-v1-loyalty-import-imports.universal-2D8oFVKm.d.mts} +53 -203
  14. package/build/{cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts → internal/loyalty-imports-v1-loyalty-import-imports.universal-2D8oFVKm.d.ts} +53 -203
  15. package/build/{es/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts → internal/meta.d.mts} +50 -231
  16. package/build/internal/{es/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts → meta.d.ts} +50 -231
  17. package/build/internal/meta.js +348 -0
  18. package/build/internal/meta.js.map +1 -0
  19. package/build/internal/meta.mjs +316 -0
  20. package/build/internal/meta.mjs.map +1 -0
  21. package/build/{es/src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts → loyalty-imports-v1-loyalty-import-imports.universal-2D8oFVKm.d.mts} +53 -203
  22. package/build/{internal/es/src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts → loyalty-imports-v1-loyalty-import-imports.universal-2D8oFVKm.d.ts} +53 -203
  23. package/build/{cjs/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts → meta.d.mts} +50 -231
  24. package/build/{internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts → meta.d.ts} +50 -231
  25. package/build/meta.js +348 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +316 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +0 -16
  40. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js +0 -23
  41. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +0 -1
  42. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +0 -46
  43. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js +0 -243
  44. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +0 -1
  45. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +0 -18
  46. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js +0 -142
  47. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +0 -1
  48. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +0 -77
  49. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js +0 -61
  50. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +0 -1
  51. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js +0 -41
  52. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +0 -1
  53. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js +0 -338
  54. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +0 -16
  66. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.context.js +0 -16
  67. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +0 -1
  68. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +0 -46
  69. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.http.js +0 -234
  70. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +0 -1
  71. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +0 -18
  72. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js +0 -110
  73. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +0 -1
  74. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +0 -77
  75. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.public.js +0 -48
  76. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +0 -1
  77. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.types.js +0 -38
  78. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +0 -1
  79. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js +0 -306
  80. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +0 -16
  91. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js +0 -23
  92. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +0 -1
  93. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +0 -46
  94. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js +0 -243
  95. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +0 -1
  96. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +0 -18
  97. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js +0 -142
  98. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +0 -1
  99. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +0 -77
  100. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js +0 -61
  101. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +0 -1
  102. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js +0 -41
  103. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +0 -1
  104. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js +0 -338
  105. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +0 -16
  116. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.context.js +0 -16
  117. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +0 -1
  118. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +0 -46
  119. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.http.js +0 -234
  120. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +0 -1
  121. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +0 -18
  122. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js +0 -110
  123. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +0 -1
  124. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +0 -77
  125. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.public.js +0 -48
  126. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +0 -1
  127. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.types.js +0 -38
  128. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +0 -1
  129. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js +0 -306
  130. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +0 -1
@@ -1,9 +1,11 @@
1
+ import { j as CreateLoyaltyImportRequest$1, a as CreateLoyaltyImportResponse$1, k as GetLoyaltyImportRequest$1, l as GetLoyaltyImportResponse$1, m as GetErrorFileDownloadUrlRequest$1, G as GetErrorFileDownloadUrlResponse$1, n as ExecuteLoyaltyImportRequest$1, b as ExecuteLoyaltyImportResponse$1, o as CreateLoyaltyImportFileUrlRequest$1, c as CreateLoyaltyImportFileUrlResponse$1, Q as QueryLoyaltyImportsRequest$1, t as QueryLoyaltyImportsResponse$1 } from './loyalty-imports-v1-loyalty-import-imports.universal-2D8oFVKm.mjs';
2
+
1
3
  /**
2
4
  * An Import object is a batch import of loyalty points for existing customers.
3
5
  * You can use Loyalty Imports to import loyalty points from 3rd-party providers or update existing customer point balances.
4
6
  * This object tracks the entire import process from file upload to data processing.
5
7
  */
6
- export interface LoyaltyImport {
8
+ interface LoyaltyImport {
7
9
  /**
8
10
  * The ID of the import.
9
11
  * @format GUID
@@ -46,7 +48,7 @@ export interface LoyaltyImport {
46
48
  /** Results of the import process, including success and failure counts. */
47
49
  importResult?: ImportResult;
48
50
  }
49
- export declare enum ImportStatus {
51
+ declare enum ImportStatus {
50
52
  /** Status is unknown or not specified. */
51
53
  UNKNOWN = "UNKNOWN",
52
54
  /** The import has been initiated but processing has not yet begun. */
@@ -62,7 +64,7 @@ export declare enum ImportStatus {
62
64
  /** The import process has failed. */
63
65
  FAILED = "FAILED"
64
66
  }
65
- export interface FileMetadata {
67
+ interface FileMetadata {
66
68
  /**
67
69
  * Size of the uploaded file in bytes. Max: `10 MB`.
68
70
  * @max 104857600
@@ -95,7 +97,7 @@ export interface FileMetadata {
95
97
  */
96
98
  sampleDataRows?: SampleDataRow[];
97
99
  }
98
- export interface FileHeader {
100
+ interface FileHeader {
99
101
  /**
100
102
  * Column headings from the first row of the uploaded file.
101
103
  * @maxSize 100
@@ -103,7 +105,7 @@ export interface FileHeader {
103
105
  */
104
106
  values?: string[];
105
107
  }
106
- export interface HeaderMappingInfo {
108
+ interface HeaderMappingInfo {
107
109
  /**
108
110
  * Mappings between required loyalty data fields and file columns.
109
111
  * Must contain exactly 2 mappings: one for `EMAIL` and one for `POINTS`.
@@ -112,7 +114,7 @@ export interface HeaderMappingInfo {
112
114
  */
113
115
  headerMappings?: HeaderMapping[];
114
116
  }
115
- export interface HeaderMapping {
117
+ interface HeaderMapping {
116
118
  /** The required loyalty data field that this mapping corresponds to. Must be either `EMAIL` or `POINTS`. */
117
119
  columnName?: ColumnName;
118
120
  /**
@@ -121,13 +123,13 @@ export interface HeaderMapping {
121
123
  */
122
124
  columnIndex?: number;
123
125
  }
124
- export declare enum ColumnName {
126
+ declare enum ColumnName {
125
127
  /** Column containing the customer's email address. */
126
128
  EMAIL = "EMAIL",
127
129
  /** Column containing the customer's loyalty point balance to be imported or updated. */
128
130
  POINTS = "POINTS"
129
131
  }
130
- export interface SampleDataRow {
132
+ interface SampleDataRow {
131
133
  /**
132
134
  * Values in one sample data row. Each value corresponds to a column in the CSV file.
133
135
  * The number of values matches the number of columns in the file.
@@ -136,7 +138,7 @@ export interface SampleDataRow {
136
138
  */
137
139
  values?: string[];
138
140
  }
139
- export interface ParseResult {
141
+ interface ParseResult {
140
142
  /**
141
143
  * Number of rows parsed from the uploaded import file.
142
144
  * @readonly
@@ -149,7 +151,7 @@ export interface ParseResult {
149
151
  */
150
152
  parseErrorReason?: string | null;
151
153
  }
152
- export interface ImportResult {
154
+ interface ImportResult {
153
155
  /** Whether an error file detailing import failures is available for download. The file includes row-by-row import status, error reasons, and original data. */
154
156
  errorFileExists?: boolean;
155
157
  /**
@@ -163,7 +165,7 @@ export interface ImportResult {
163
165
  */
164
166
  failureCount?: number | null;
165
167
  }
166
- export interface CreateLoyaltyImportRequest {
168
+ interface CreateLoyaltyImportRequest {
167
169
  /** URL of the file to import. */
168
170
  fileUrl: string | null;
169
171
  /** Name of the file to import. */
@@ -171,45 +173,45 @@ export interface CreateLoyaltyImportRequest {
171
173
  /** Size of the file to import, in bytes. */
172
174
  fileSize?: number | null;
173
175
  }
174
- export interface CreateLoyaltyImportResponse {
176
+ interface CreateLoyaltyImportResponse {
175
177
  /** Created loyalty import. */
176
178
  loyaltyImport?: LoyaltyImport;
177
179
  }
178
- export interface GetLoyaltyImportRequest {
180
+ interface GetLoyaltyImportRequest {
179
181
  /** Loyalty import ID. */
180
182
  loyaltyImportId: string;
181
183
  }
182
- export interface GetLoyaltyImportResponse {
184
+ interface GetLoyaltyImportResponse {
183
185
  /** Retrieved loyalty import. */
184
186
  loyaltyImport?: LoyaltyImport;
185
187
  }
186
- export interface GetErrorFileDownloadUrlRequest {
188
+ interface GetErrorFileDownloadUrlRequest {
187
189
  /** Loyalty import ID. */
188
190
  loyaltyImportId: string;
189
191
  }
190
- export interface GetErrorFileDownloadUrlResponse {
192
+ interface GetErrorFileDownloadUrlResponse {
191
193
  /** URL for downloading the error file. */
192
194
  url?: string | null;
193
195
  }
194
- export interface ExecuteLoyaltyImportRequest {
196
+ interface ExecuteLoyaltyImportRequest {
195
197
  /** Loyalty import ID. */
196
198
  loyaltyImportId: string;
197
199
  /** Header mapping information for the import file. */
198
200
  headerMappingInfo?: HeaderMappingInfo;
199
201
  }
200
- export interface ExecuteLoyaltyImportResponse {
202
+ interface ExecuteLoyaltyImportResponse {
201
203
  /** Executed loyalty import. */
202
204
  loyaltyImport?: LoyaltyImport;
203
205
  }
204
- export interface CreateLoyaltyImportFileUrlRequest {
206
+ interface CreateLoyaltyImportFileUrlRequest {
205
207
  }
206
- export interface CreateLoyaltyImportFileUrlResponse {
208
+ interface CreateLoyaltyImportFileUrlResponse {
207
209
  /** Path where the file will be stored. */
208
210
  filePath?: string | null;
209
211
  /** URL for uploading the loyalty import file. */
210
212
  uploadUrl?: string | null;
211
213
  }
212
- export interface QueryLoyaltyImportsRequest {
214
+ interface QueryLoyaltyImportsRequest {
213
215
  /**
214
216
  * Filter object.
215
217
  * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
@@ -220,7 +222,7 @@ export interface QueryLoyaltyImportsRequest {
220
222
  */
221
223
  query: CursorQuery;
222
224
  }
223
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
225
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
224
226
  /**
225
227
  * Cursor paging options.
226
228
  *
@@ -242,7 +244,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
242
244
  sort?: Sorting[];
243
245
  }
244
246
  /** @oneof */
245
- export interface CursorQueryPagingMethodOneOf {
247
+ interface CursorQueryPagingMethodOneOf {
246
248
  /**
247
249
  * Cursor paging options.
248
250
  *
@@ -250,7 +252,7 @@ export interface CursorQueryPagingMethodOneOf {
250
252
  */
251
253
  cursorPaging?: CursorPaging;
252
254
  }
253
- export interface Sorting {
255
+ interface Sorting {
254
256
  /**
255
257
  * Name of the field to sort by.
256
258
  * @maxLength 512
@@ -259,11 +261,11 @@ export interface Sorting {
259
261
  /** Sort order. */
260
262
  order?: SortOrder;
261
263
  }
262
- export declare enum SortOrder {
264
+ declare enum SortOrder {
263
265
  ASC = "ASC",
264
266
  DESC = "DESC"
265
267
  }
266
- export interface CursorPaging {
268
+ interface CursorPaging {
267
269
  /**
268
270
  * Maximum number of items to return in the results.
269
271
  * @max 100
@@ -278,13 +280,13 @@ export interface CursorPaging {
278
280
  */
279
281
  cursor?: string | null;
280
282
  }
281
- export interface QueryLoyaltyImportsResponse {
283
+ interface QueryLoyaltyImportsResponse {
282
284
  /** List of loyalty imports matching the query. */
283
285
  loyaltyImports?: LoyaltyImport[];
284
286
  /** Paging metadata. */
285
287
  pagingMetadata?: CursorPagingMetadata;
286
288
  }
287
- export interface CursorPagingMetadata {
289
+ interface CursorPagingMetadata {
288
290
  /** Number of items returned in current page. */
289
291
  count?: number | null;
290
292
  /** Cursor strings that point to the next page, previous page, or both. */
@@ -297,7 +299,7 @@ export interface CursorPagingMetadata {
297
299
  */
298
300
  hasNext?: boolean | null;
299
301
  }
300
- export interface Cursors {
302
+ interface Cursors {
301
303
  /**
302
304
  * Cursor string pointing to the next page in the list of results.
303
305
  * @maxLength 16000
@@ -309,205 +311,22 @@ export interface Cursors {
309
311
  */
310
312
  prev?: string | null;
311
313
  }
312
- export interface DeleteLoyaltyImportRequest {
313
- /**
314
- * Loyalty import ID.
315
- * @format GUID
316
- */
317
- loyaltyImportId?: string;
318
- /**
319
- * Revision number, which increments by 1 each time the loyalty import is updated.
320
- * To prevent conflicting changes, the current revision must be passed when updating the loyalty import.
321
- */
322
- revision?: string;
323
- }
324
- export interface DeleteLoyaltyImportResponse {
325
- }
326
- export interface DomainEvent extends DomainEventBodyOneOf {
327
- createdEvent?: EntityCreatedEvent;
328
- updatedEvent?: EntityUpdatedEvent;
329
- deletedEvent?: EntityDeletedEvent;
330
- actionEvent?: ActionEvent;
331
- /**
332
- * Unique event ID.
333
- * Allows clients to ignore duplicate webhooks.
334
- */
335
- id?: string;
336
- /**
337
- * Assumes actions are also always typed to an entity_type
338
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
339
- */
340
- entityFqdn?: string;
341
- /**
342
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
343
- * This is although the created/updated/deleted notion is duplication of the oneof types
344
- * Example: created/updated/deleted/started/completed/email_opened
345
- */
346
- slug?: string;
347
- /** ID of the entity associated with the event. */
348
- entityId?: string;
349
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
350
- eventTime?: Date | null;
351
- /**
352
- * Whether the event was triggered as a result of a privacy regulation application
353
- * (for example, GDPR).
354
- */
355
- triggeredByAnonymizeRequest?: boolean | null;
356
- /** If present, indicates the action that triggered the event. */
357
- originatedFrom?: string | null;
358
- /**
359
- * A sequence number defining the order of updates to the underlying entity.
360
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
361
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
362
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
363
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
364
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
365
- */
366
- entityEventSequence?: string | null;
367
- }
368
- /** @oneof */
369
- export interface DomainEventBodyOneOf {
370
- createdEvent?: EntityCreatedEvent;
371
- updatedEvent?: EntityUpdatedEvent;
372
- deletedEvent?: EntityDeletedEvent;
373
- actionEvent?: ActionEvent;
374
- }
375
- export interface EntityCreatedEvent {
376
- entityAsJson?: string;
377
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
378
- restoreInfo?: RestoreInfo;
379
- }
380
- export interface RestoreInfo {
381
- deletedDate?: Date | null;
382
- }
383
- export interface EntityUpdatedEvent {
384
- /**
385
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
386
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
387
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
388
- */
389
- currentEntityAsJson?: string;
390
- }
391
- export interface EntityDeletedEvent {
392
- /** Entity that was deleted */
393
- deletedEntityAsJson?: string | null;
394
- }
395
- export interface ActionEvent {
396
- bodyAsJson?: string;
397
- }
398
- export interface Empty {
399
- }
400
- export interface ImportFinished {
401
- /** Completed loyalty import. */
402
- loyaltyImport?: LoyaltyImport;
403
- }
404
- export interface MessageEnvelope {
405
- /**
406
- * App instance ID.
407
- * @format GUID
408
- */
409
- instanceId?: string | null;
410
- /**
411
- * Event type.
412
- * @maxLength 150
413
- */
414
- eventType?: string;
415
- /** The identification type and identity data. */
416
- identity?: IdentificationData;
417
- /** Stringify payload. */
418
- data?: string;
419
- }
420
- export interface IdentificationData extends IdentificationDataIdOneOf {
421
- /**
422
- * ID of a site visitor that has not logged in to the site.
423
- * @format GUID
424
- */
425
- anonymousVisitorId?: string;
426
- /**
427
- * ID of a site visitor that has logged in to the site.
428
- * @format GUID
429
- */
430
- memberId?: string;
431
- /**
432
- * ID of a Wix user (site owner, contributor, etc.).
433
- * @format GUID
434
- */
435
- wixUserId?: string;
436
- /**
437
- * ID of an app.
438
- * @format GUID
439
- */
440
- appId?: string;
441
- /** @readonly */
442
- identityType?: WebhookIdentityType;
443
- }
444
- /** @oneof */
445
- export interface IdentificationDataIdOneOf {
446
- /**
447
- * ID of a site visitor that has not logged in to the site.
448
- * @format GUID
449
- */
450
- anonymousVisitorId?: string;
451
- /**
452
- * ID of a site visitor that has logged in to the site.
453
- * @format GUID
454
- */
455
- memberId?: string;
456
- /**
457
- * ID of a Wix user (site owner, contributor, etc.).
458
- * @format GUID
459
- */
460
- wixUserId?: string;
461
- /**
462
- * ID of an app.
463
- * @format GUID
464
- */
465
- appId?: string;
466
- }
467
- export declare enum WebhookIdentityType {
468
- UNKNOWN = "UNKNOWN",
469
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
470
- MEMBER = "MEMBER",
471
- WIX_USER = "WIX_USER",
472
- APP = "APP"
473
- }
474
- interface FileHeaderNonNullableFields {
475
- values: string[];
476
- }
477
- interface HeaderMappingNonNullableFields {
478
- columnName: ColumnName;
479
- columnIndex: number;
480
- }
481
- interface HeaderMappingInfoNonNullableFields {
482
- headerMappings: HeaderMappingNonNullableFields[];
483
- }
484
- interface SampleDataRowNonNullableFields {
485
- values: string[];
486
- }
487
- interface FileMetadataNonNullableFields {
488
- url: string;
489
- header?: FileHeaderNonNullableFields;
490
- headerMappingInfo?: HeaderMappingInfoNonNullableFields;
491
- sampleDataRows: SampleDataRowNonNullableFields[];
492
- }
493
- interface ImportResultNonNullableFields {
494
- errorFileExists: boolean;
495
- }
496
- interface LoyaltyImportNonNullableFields {
497
- status: ImportStatus;
498
- fileMetadata?: FileMetadataNonNullableFields;
499
- importResult?: ImportResultNonNullableFields;
500
- }
501
- export interface CreateLoyaltyImportResponseNonNullableFields {
502
- loyaltyImport?: LoyaltyImportNonNullableFields;
503
- }
504
- export interface GetLoyaltyImportResponseNonNullableFields {
505
- loyaltyImport?: LoyaltyImportNonNullableFields;
506
- }
507
- export interface ExecuteLoyaltyImportResponseNonNullableFields {
508
- loyaltyImport?: LoyaltyImportNonNullableFields;
509
- }
510
- export interface QueryLoyaltyImportsResponseNonNullableFields {
511
- loyaltyImports: LoyaltyImportNonNullableFields[];
512
- }
513
- export {};
314
+
315
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
316
+ getUrl: (context: any) => string;
317
+ httpMethod: K;
318
+ path: string;
319
+ pathParams: M;
320
+ __requestType: T;
321
+ __originalRequestType: S;
322
+ __responseType: Q;
323
+ __originalResponseType: R;
324
+ };
325
+ declare function createLoyaltyImport(): __PublicMethodMetaInfo<'POST', {}, CreateLoyaltyImportRequest$1, CreateLoyaltyImportRequest, CreateLoyaltyImportResponse$1, CreateLoyaltyImportResponse>;
326
+ declare function getLoyaltyImport(): __PublicMethodMetaInfo<'GET', {}, GetLoyaltyImportRequest$1, GetLoyaltyImportRequest, GetLoyaltyImportResponse$1, GetLoyaltyImportResponse>;
327
+ declare function getErrorFileDownloadUrl(): __PublicMethodMetaInfo<'GET', {}, GetErrorFileDownloadUrlRequest$1, GetErrorFileDownloadUrlRequest, GetErrorFileDownloadUrlResponse$1, GetErrorFileDownloadUrlResponse>;
328
+ declare function executeLoyaltyImport(): __PublicMethodMetaInfo<'POST', {}, ExecuteLoyaltyImportRequest$1, ExecuteLoyaltyImportRequest, ExecuteLoyaltyImportResponse$1, ExecuteLoyaltyImportResponse>;
329
+ declare function createLoyaltyImportFileUrl(): __PublicMethodMetaInfo<'POST', {}, CreateLoyaltyImportFileUrlRequest$1, CreateLoyaltyImportFileUrlRequest, CreateLoyaltyImportFileUrlResponse$1, CreateLoyaltyImportFileUrlResponse>;
330
+ declare function queryLoyaltyImports(): __PublicMethodMetaInfo<'POST', {}, QueryLoyaltyImportsRequest$1, QueryLoyaltyImportsRequest, QueryLoyaltyImportsResponse$1, QueryLoyaltyImportsResponse>;
331
+
332
+ export { type __PublicMethodMetaInfo, createLoyaltyImport, createLoyaltyImportFileUrl, executeLoyaltyImport, getErrorFileDownloadUrl, getLoyaltyImport, queryLoyaltyImports };