@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
@@ -3,7 +3,7 @@
3
3
  * You can use Loyalty Imports to import loyalty points from 3rd-party providers or update existing customer point balances.
4
4
  * This object tracks the entire import process from file upload to data processing.
5
5
  */
6
- export interface LoyaltyImport {
6
+ interface LoyaltyImport {
7
7
  /**
8
8
  * The ID of the import.
9
9
  * @format GUID
@@ -46,7 +46,7 @@ export interface LoyaltyImport {
46
46
  /** Results of the import process, including success and failure counts. */
47
47
  importResult?: ImportResult;
48
48
  }
49
- export declare enum ImportStatus {
49
+ declare enum ImportStatus {
50
50
  /** Status is unknown or not specified. */
51
51
  UNKNOWN = "UNKNOWN",
52
52
  /** The import has been initiated but processing has not yet begun. */
@@ -62,7 +62,7 @@ export declare enum ImportStatus {
62
62
  /** The import process has failed. */
63
63
  FAILED = "FAILED"
64
64
  }
65
- export interface FileMetadata {
65
+ interface FileMetadata {
66
66
  /**
67
67
  * Size of the uploaded file in bytes. Max: `10 MB`.
68
68
  * @max 104857600
@@ -95,7 +95,7 @@ export interface FileMetadata {
95
95
  */
96
96
  sampleDataRows?: SampleDataRow[];
97
97
  }
98
- export interface FileHeader {
98
+ interface FileHeader {
99
99
  /**
100
100
  * Column headings from the first row of the uploaded file.
101
101
  * @maxSize 100
@@ -103,7 +103,7 @@ export interface FileHeader {
103
103
  */
104
104
  values?: string[];
105
105
  }
106
- export interface HeaderMappingInfo {
106
+ interface HeaderMappingInfo {
107
107
  /**
108
108
  * Mappings between required loyalty data fields and file columns.
109
109
  * Must contain exactly 2 mappings: one for `EMAIL` and one for `POINTS`.
@@ -112,7 +112,7 @@ export interface HeaderMappingInfo {
112
112
  */
113
113
  headerMappings?: HeaderMapping[];
114
114
  }
115
- export interface HeaderMapping {
115
+ interface HeaderMapping {
116
116
  /** The required loyalty data field that this mapping corresponds to. Must be either `EMAIL` or `POINTS`. */
117
117
  columnName?: ColumnName;
118
118
  /**
@@ -121,13 +121,13 @@ export interface HeaderMapping {
121
121
  */
122
122
  columnIndex?: number;
123
123
  }
124
- export declare enum ColumnName {
124
+ declare enum ColumnName {
125
125
  /** Column containing the customer's email address. */
126
126
  EMAIL = "EMAIL",
127
127
  /** Column containing the customer's loyalty point balance to be imported or updated. */
128
128
  POINTS = "POINTS"
129
129
  }
130
- export interface SampleDataRow {
130
+ interface SampleDataRow {
131
131
  /**
132
132
  * Values in one sample data row. Each value corresponds to a column in the CSV file.
133
133
  * The number of values matches the number of columns in the file.
@@ -136,7 +136,7 @@ export interface SampleDataRow {
136
136
  */
137
137
  values?: string[];
138
138
  }
139
- export interface ParseResult {
139
+ interface ParseResult {
140
140
  /**
141
141
  * Number of rows parsed from the uploaded import file.
142
142
  * @readonly
@@ -149,7 +149,7 @@ export interface ParseResult {
149
149
  */
150
150
  parseErrorReason?: string | null;
151
151
  }
152
- export interface ImportResult {
152
+ interface ImportResult {
153
153
  /** 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
154
  errorFileExists?: boolean;
155
155
  /**
@@ -163,7 +163,7 @@ export interface ImportResult {
163
163
  */
164
164
  failureCount?: number | null;
165
165
  }
166
- export interface CreateLoyaltyImportRequest {
166
+ interface CreateLoyaltyImportRequest {
167
167
  /** URL of the file to import. */
168
168
  fileUrl: string | null;
169
169
  /** Name of the file to import. */
@@ -171,45 +171,45 @@ export interface CreateLoyaltyImportRequest {
171
171
  /** Size of the file to import, in bytes. */
172
172
  fileSize?: number | null;
173
173
  }
174
- export interface CreateLoyaltyImportResponse {
174
+ interface CreateLoyaltyImportResponse {
175
175
  /** Created loyalty import. */
176
176
  loyaltyImport?: LoyaltyImport;
177
177
  }
178
- export interface GetLoyaltyImportRequest {
178
+ interface GetLoyaltyImportRequest {
179
179
  /** Loyalty import ID. */
180
180
  loyaltyImportId: string;
181
181
  }
182
- export interface GetLoyaltyImportResponse {
182
+ interface GetLoyaltyImportResponse {
183
183
  /** Retrieved loyalty import. */
184
184
  loyaltyImport?: LoyaltyImport;
185
185
  }
186
- export interface GetErrorFileDownloadUrlRequest {
186
+ interface GetErrorFileDownloadUrlRequest {
187
187
  /** Loyalty import ID. */
188
188
  loyaltyImportId: string;
189
189
  }
190
- export interface GetErrorFileDownloadUrlResponse {
190
+ interface GetErrorFileDownloadUrlResponse {
191
191
  /** URL for downloading the error file. */
192
192
  url?: string | null;
193
193
  }
194
- export interface ExecuteLoyaltyImportRequest {
194
+ interface ExecuteLoyaltyImportRequest {
195
195
  /** Loyalty import ID. */
196
196
  loyaltyImportId: string;
197
197
  /** Header mapping information for the import file. */
198
198
  headerMappingInfo?: HeaderMappingInfo;
199
199
  }
200
- export interface ExecuteLoyaltyImportResponse {
200
+ interface ExecuteLoyaltyImportResponse {
201
201
  /** Executed loyalty import. */
202
202
  loyaltyImport?: LoyaltyImport;
203
203
  }
204
- export interface CreateLoyaltyImportFileUrlRequest {
204
+ interface CreateLoyaltyImportFileUrlRequest {
205
205
  }
206
- export interface CreateLoyaltyImportFileUrlResponse {
206
+ interface CreateLoyaltyImportFileUrlResponse {
207
207
  /** Path where the file will be stored. */
208
208
  filePath?: string | null;
209
209
  /** URL for uploading the loyalty import file. */
210
210
  uploadUrl?: string | null;
211
211
  }
212
- export interface QueryLoyaltyImportsRequest {
212
+ interface QueryLoyaltyImportsRequest {
213
213
  /**
214
214
  * Filter object.
215
215
  * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
@@ -220,7 +220,7 @@ export interface QueryLoyaltyImportsRequest {
220
220
  */
221
221
  query: CursorQuery;
222
222
  }
223
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
223
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
224
224
  /**
225
225
  * Cursor paging options.
226
226
  *
@@ -242,7 +242,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
242
242
  sort?: Sorting[];
243
243
  }
244
244
  /** @oneof */
245
- export interface CursorQueryPagingMethodOneOf {
245
+ interface CursorQueryPagingMethodOneOf {
246
246
  /**
247
247
  * Cursor paging options.
248
248
  *
@@ -250,7 +250,7 @@ export interface CursorQueryPagingMethodOneOf {
250
250
  */
251
251
  cursorPaging?: CursorPaging;
252
252
  }
253
- export interface Sorting {
253
+ interface Sorting {
254
254
  /**
255
255
  * Name of the field to sort by.
256
256
  * @maxLength 512
@@ -259,11 +259,11 @@ export interface Sorting {
259
259
  /** Sort order. */
260
260
  order?: SortOrder;
261
261
  }
262
- export declare enum SortOrder {
262
+ declare enum SortOrder {
263
263
  ASC = "ASC",
264
264
  DESC = "DESC"
265
265
  }
266
- export interface CursorPaging {
266
+ interface CursorPaging {
267
267
  /**
268
268
  * Maximum number of items to return in the results.
269
269
  * @max 100
@@ -278,13 +278,13 @@ export interface CursorPaging {
278
278
  */
279
279
  cursor?: string | null;
280
280
  }
281
- export interface QueryLoyaltyImportsResponse {
281
+ interface QueryLoyaltyImportsResponse {
282
282
  /** List of loyalty imports matching the query. */
283
283
  loyaltyImports?: LoyaltyImport[];
284
284
  /** Paging metadata. */
285
285
  pagingMetadata?: CursorPagingMetadata;
286
286
  }
287
- export interface CursorPagingMetadata {
287
+ interface CursorPagingMetadata {
288
288
  /** Number of items returned in current page. */
289
289
  count?: number | null;
290
290
  /** Cursor strings that point to the next page, previous page, or both. */
@@ -297,7 +297,7 @@ export interface CursorPagingMetadata {
297
297
  */
298
298
  hasNext?: boolean | null;
299
299
  }
300
- export interface Cursors {
300
+ interface Cursors {
301
301
  /**
302
302
  * Cursor string pointing to the next page in the list of results.
303
303
  * @maxLength 16000
@@ -309,7 +309,7 @@ export interface Cursors {
309
309
  */
310
310
  prev?: string | null;
311
311
  }
312
- export interface DeleteLoyaltyImportRequest {
312
+ interface DeleteLoyaltyImportRequest {
313
313
  /**
314
314
  * Loyalty import ID.
315
315
  * @format GUID
@@ -321,9 +321,9 @@ export interface DeleteLoyaltyImportRequest {
321
321
  */
322
322
  revision?: string;
323
323
  }
324
- export interface DeleteLoyaltyImportResponse {
324
+ interface DeleteLoyaltyImportResponse {
325
325
  }
326
- export interface DomainEvent extends DomainEventBodyOneOf {
326
+ interface DomainEvent extends DomainEventBodyOneOf {
327
327
  createdEvent?: EntityCreatedEvent;
328
328
  updatedEvent?: EntityUpdatedEvent;
329
329
  deletedEvent?: EntityDeletedEvent;
@@ -366,19 +366,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
366
366
  entityEventSequence?: string | null;
367
367
  }
368
368
  /** @oneof */
369
- export interface DomainEventBodyOneOf {
369
+ interface DomainEventBodyOneOf {
370
370
  createdEvent?: EntityCreatedEvent;
371
371
  updatedEvent?: EntityUpdatedEvent;
372
372
  deletedEvent?: EntityDeletedEvent;
373
373
  actionEvent?: ActionEvent;
374
374
  }
375
- export interface EntityCreatedEvent {
375
+ interface EntityCreatedEvent {
376
376
  entity?: string;
377
377
  }
378
- export interface RestoreInfo {
378
+ interface RestoreInfo {
379
379
  deletedDate?: Date | null;
380
380
  }
381
- export interface EntityUpdatedEvent {
381
+ interface EntityUpdatedEvent {
382
382
  /**
383
383
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
384
384
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
@@ -386,20 +386,20 @@ export interface EntityUpdatedEvent {
386
386
  */
387
387
  currentEntity?: string;
388
388
  }
389
- export interface EntityDeletedEvent {
389
+ interface EntityDeletedEvent {
390
390
  /** Entity that was deleted */
391
391
  deletedEntity?: string | null;
392
392
  }
393
- export interface ActionEvent {
393
+ interface ActionEvent {
394
394
  body?: string;
395
395
  }
396
- export interface Empty {
396
+ interface Empty {
397
397
  }
398
- export interface ImportFinished {
398
+ interface ImportFinished {
399
399
  /** Completed loyalty import. */
400
400
  loyaltyImport?: LoyaltyImport;
401
401
  }
402
- export interface MessageEnvelope {
402
+ interface MessageEnvelope {
403
403
  /**
404
404
  * App instance ID.
405
405
  * @format GUID
@@ -415,7 +415,7 @@ export interface MessageEnvelope {
415
415
  /** Stringify payload. */
416
416
  data?: string;
417
417
  }
418
- export interface IdentificationData extends IdentificationDataIdOneOf {
418
+ interface IdentificationData extends IdentificationDataIdOneOf {
419
419
  /**
420
420
  * ID of a site visitor that has not logged in to the site.
421
421
  * @format GUID
@@ -440,7 +440,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
440
440
  identityType?: WebhookIdentityType;
441
441
  }
442
442
  /** @oneof */
443
- export interface IdentificationDataIdOneOf {
443
+ interface IdentificationDataIdOneOf {
444
444
  /**
445
445
  * ID of a site visitor that has not logged in to the site.
446
446
  * @format GUID
@@ -462,53 +462,14 @@ export interface IdentificationDataIdOneOf {
462
462
  */
463
463
  appId?: string;
464
464
  }
465
- export declare enum WebhookIdentityType {
465
+ declare enum WebhookIdentityType {
466
466
  UNKNOWN = "UNKNOWN",
467
467
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
468
468
  MEMBER = "MEMBER",
469
469
  WIX_USER = "WIX_USER",
470
470
  APP = "APP"
471
471
  }
472
- interface FileHeaderNonNullableFields {
473
- values: string[];
474
- }
475
- interface HeaderMappingNonNullableFields {
476
- columnName: ColumnName;
477
- columnIndex: number;
478
- }
479
- interface HeaderMappingInfoNonNullableFields {
480
- headerMappings: HeaderMappingNonNullableFields[];
481
- }
482
- interface SampleDataRowNonNullableFields {
483
- values: string[];
484
- }
485
- interface FileMetadataNonNullableFields {
486
- url: string;
487
- header?: FileHeaderNonNullableFields;
488
- headerMappingInfo?: HeaderMappingInfoNonNullableFields;
489
- sampleDataRows: SampleDataRowNonNullableFields[];
490
- }
491
- interface ImportResultNonNullableFields {
492
- errorFileExists: boolean;
493
- }
494
- export interface LoyaltyImportNonNullableFields {
495
- status: ImportStatus;
496
- fileMetadata?: FileMetadataNonNullableFields;
497
- importResult?: ImportResultNonNullableFields;
498
- }
499
- export interface CreateLoyaltyImportResponseNonNullableFields {
500
- loyaltyImport?: LoyaltyImportNonNullableFields;
501
- }
502
- export interface GetLoyaltyImportResponseNonNullableFields {
503
- loyaltyImport?: LoyaltyImportNonNullableFields;
504
- }
505
- export interface ExecuteLoyaltyImportResponseNonNullableFields {
506
- loyaltyImport?: LoyaltyImportNonNullableFields;
507
- }
508
- export interface QueryLoyaltyImportsResponseNonNullableFields {
509
- loyaltyImports: LoyaltyImportNonNullableFields[];
510
- }
511
- export interface BaseEventMetadata {
472
+ interface BaseEventMetadata {
512
473
  /**
513
474
  * App instance ID.
514
475
  * @format GUID
@@ -522,7 +483,7 @@ export interface BaseEventMetadata {
522
483
  /** The identification type and identity data. */
523
484
  identity?: IdentificationData;
524
485
  }
525
- export interface EventMetadata extends BaseEventMetadata {
486
+ interface EventMetadata extends BaseEventMetadata {
526
487
  /**
527
488
  * Unique event ID.
528
489
  * Allows clients to ignore duplicate webhooks.
@@ -560,132 +521,20 @@ export interface EventMetadata extends BaseEventMetadata {
560
521
  */
561
522
  entityEventSequence?: string | null;
562
523
  }
563
- export interface LoyaltyImportCreatedEnvelope {
524
+ interface LoyaltyImportCreatedEnvelope {
564
525
  entity: LoyaltyImport;
565
526
  metadata: EventMetadata;
566
527
  }
567
- /**
568
- * Triggered when a loyalty import is created.
569
- * @webhook
570
- * @eventType wix.loyalty.imports.v1.loyalty_import_created
571
- * @serviceIdentifier wix.loyalty.imports.v1.LoyaltyImports
572
- * @slug created
573
- */
574
- export declare function onLoyaltyImportCreated(handler: (event: LoyaltyImportCreatedEnvelope) => void | Promise<void>): void;
575
- /**
576
- * Creates an import object based on an uploaded file.
577
- *
578
- * Call this method after uploading your file to the URL obtained from `createLoyaltyImportFileUrl()`.
579
- * @param fileUrl - URL of the file to import.
580
- * @public
581
- * @requiredField fileUrl
582
- * @permissionId LOYALTY.MANAGE_IMPORTS
583
- * @permissionScope Manage Loyalty
584
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
585
- * @permissionScope Manage Restaurants - all permissions
586
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
587
- * @applicableIdentity APP
588
- * @fqn wix.loyalty.imports.v1.LoyaltyImports.CreateLoyaltyImport
589
- */
590
- export declare function createLoyaltyImport(fileUrl: string | null, options?: CreateLoyaltyImportOptions): Promise<CreateLoyaltyImportResponse & CreateLoyaltyImportResponseNonNullableFields>;
591
- export interface CreateLoyaltyImportOptions {
528
+ interface CreateLoyaltyImportOptions {
592
529
  /** Name of the file to import. */
593
530
  fileName?: string | null;
594
531
  /** Size of the file to import, in bytes. */
595
532
  fileSize?: number | null;
596
533
  }
597
- /**
598
- * Retrieves a loyalty import.
599
- * @param loyaltyImportId - Loyalty import ID.
600
- * @public
601
- * @requiredField loyaltyImportId
602
- * @permissionId LOYALTY.MANAGE_IMPORTS
603
- * @permissionScope Manage Loyalty
604
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
605
- * @permissionScope Manage Restaurants - all permissions
606
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
607
- * @applicableIdentity APP
608
- * @returns Retrieved loyalty import.
609
- * @fqn wix.loyalty.imports.v1.LoyaltyImports.GetLoyaltyImport
610
- */
611
- export declare function getLoyaltyImport(loyaltyImportId: string): Promise<LoyaltyImport & LoyaltyImportNonNullableFields>;
612
- /**
613
- * Retrieves the download URL for the error file of a failed loyalty import.
614
- *
615
- * If an import fails, the `importResult.errorFileExists` field in the `LoyaltyImport` object is set to `true`.
616
- *
617
- * Use this method to get the URL of the error file, which contains details about which items couldn't be imported and why.
618
- * @param loyaltyImportId - Loyalty import ID.
619
- * @public
620
- * @requiredField loyaltyImportId
621
- * @permissionId LOYALTY.MANAGE_IMPORTS
622
- * @permissionScope Manage Loyalty
623
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
624
- * @permissionScope Manage Restaurants - all permissions
625
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
626
- * @applicableIdentity APP
627
- * @fqn wix.loyalty.imports.v1.LoyaltyImports.GetErrorFileDownloadUrl
628
- */
629
- export declare function getErrorFileDownloadUrl(loyaltyImportId: string): Promise<GetErrorFileDownloadUrlResponse>;
630
- /**
631
- * Starts the actual import process for a loyalty import.
632
- *
633
- * Call this method after the loyalty import object reaches the `PARSED` status.
634
- * @param loyaltyImportId - Loyalty import ID.
635
- * @public
636
- * @requiredField loyaltyImportId
637
- * @permissionId LOYALTY.MANAGE_IMPORTS
638
- * @permissionScope Manage Loyalty
639
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
640
- * @permissionScope Manage Restaurants - all permissions
641
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
642
- * @applicableIdentity APP
643
- * @fqn wix.loyalty.imports.v1.LoyaltyImports.ExecuteLoyaltyImport
644
- */
645
- export declare function executeLoyaltyImport(loyaltyImportId: string, options?: ExecuteLoyaltyImportOptions): Promise<ExecuteLoyaltyImportResponse & ExecuteLoyaltyImportResponseNonNullableFields>;
646
- export interface ExecuteLoyaltyImportOptions {
534
+ interface ExecuteLoyaltyImportOptions {
647
535
  /** Header mapping information for the import file. */
648
536
  headerMappingInfo?: HeaderMappingInfo;
649
537
  }
650
- /**
651
- * Creates a URL for uploading a loyalty import file.
652
- *
653
- * This method is the first step in the loyalty import process. It returns a file path and an upload URL, which you'll use in subsequent steps of the import process.
654
- * @public
655
- * @permissionId LOYALTY.MANAGE_IMPORTS
656
- * @permissionScope Manage Loyalty
657
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
658
- * @permissionScope Manage Restaurants - all permissions
659
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
660
- * @applicableIdentity APP
661
- * @fqn wix.loyalty.imports.v1.LoyaltyImports.CreateLoyaltyImportFileUrl
662
- */
663
- export declare function createLoyaltyImportFileUrl(): Promise<CreateLoyaltyImportFileUrlResponse>;
664
- /**
665
- * Creates a query to retrieve a list of loyalty imports.
666
- *
667
- * The `queryLoyaltyImports()` function builds a query to retrieve a list of imports and returns a `LoyaltyImportsQueryBuilder` object.
668
- *
669
- * The returned object contains the query definition, which is typically used to run the query using the `find()` function.
670
- *
671
- * You can refine the query by chaining `LoyaltyImportsQueryBuilder` functions onto the query. `LoyaltyImportsQueryBuilder` functions enable you to sort, filter, and control the results `queryLoyaltyImports()` returns.
672
- *
673
- * `queryLoyaltyImports()` runs with these `LoyaltyImportsQueryBuilder` defaults, which you can override:
674
- *
675
- * - `limit(50)`
676
- * - `descending("_createdDate")`
677
- *
678
- * The functions that are chained to `queryLoyaltyImports()` are applied in the order they're called. For example, if you apply ascending('status') and then descending('_createdDate'), the results are sorted first by the status, and then, if there are multiple results with the same status, the items are sorted by the created date.
679
- * @public
680
- * @permissionScope Manage Loyalty
681
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
682
- * @permissionScope Manage Restaurants - all permissions
683
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
684
- * @permissionId LOYALTY.MANAGE_IMPORTS
685
- * @applicableIdentity APP
686
- * @fqn wix.loyalty.imports.v1.LoyaltyImports.QueryLoyaltyImports
687
- */
688
- export declare function queryLoyaltyImports(): LoyaltyImportsQueryBuilder;
689
538
  interface QueryCursorResult {
690
539
  cursors: Cursors;
691
540
  hasNext: () => boolean;
@@ -693,13 +542,13 @@ interface QueryCursorResult {
693
542
  length: number;
694
543
  pageSize: number;
695
544
  }
696
- export interface LoyaltyImportsQueryResult extends QueryCursorResult {
545
+ interface LoyaltyImportsQueryResult extends QueryCursorResult {
697
546
  items: LoyaltyImport[];
698
547
  query: LoyaltyImportsQueryBuilder;
699
548
  next: () => Promise<LoyaltyImportsQueryResult>;
700
549
  prev: () => Promise<LoyaltyImportsQueryResult>;
701
550
  }
702
- export interface LoyaltyImportsQueryBuilder {
551
+ interface LoyaltyImportsQueryBuilder {
703
552
  /** @param propertyName - Property whose value is compared with `value`.
704
553
  * @param value - Value to compare against.
705
554
  */
@@ -740,4 +589,5 @@ export interface LoyaltyImportsQueryBuilder {
740
589
  skipTo: (cursor: string) => LoyaltyImportsQueryBuilder;
741
590
  find: () => Promise<LoyaltyImportsQueryResult>;
742
591
  }
743
- export {};
592
+
593
+ export { type EntityUpdatedEvent as A, type EntityDeletedEvent as B, type CreateLoyaltyImportOptions as C, type DeleteLoyaltyImportRequest as D, type ExecuteLoyaltyImportOptions as E, type FileMetadata as F, type GetErrorFileDownloadUrlResponse as G, type HeaderMappingInfo as H, ImportStatus as I, type ActionEvent as J, type Empty as K, type LoyaltyImport as L, type ImportFinished as M, type MessageEnvelope as N, type IdentificationData as O, type ParseResult as P, type QueryLoyaltyImportsRequest as Q, type RestoreInfo as R, SortOrder as S, type IdentificationDataIdOneOf as T, type BaseEventMetadata as U, type EventMetadata as V, WebhookIdentityType as W, type LoyaltyImportCreatedEnvelope as X, type LoyaltyImportsQueryResult as Y, type CreateLoyaltyImportResponse as a, type ExecuteLoyaltyImportResponse as b, type CreateLoyaltyImportFileUrlResponse as c, type LoyaltyImportsQueryBuilder as d, ColumnName as e, type FileHeader as f, type HeaderMapping as g, type SampleDataRow as h, type ImportResult as i, type CreateLoyaltyImportRequest as j, type GetLoyaltyImportRequest as k, type GetLoyaltyImportResponse as l, type GetErrorFileDownloadUrlRequest as m, type ExecuteLoyaltyImportRequest as n, type CreateLoyaltyImportFileUrlRequest as o, type CursorQuery as p, type CursorQueryPagingMethodOneOf as q, type Sorting as r, type CursorPaging as s, type QueryLoyaltyImportsResponse as t, type CursorPagingMetadata as u, type Cursors as v, type DeleteLoyaltyImportResponse as w, type DomainEvent as x, type DomainEventBodyOneOf as y, type EntityCreatedEvent as z };