@wix/auto_sdk_loyalty_imports 1.0.11 → 1.0.13

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 +539 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +505 -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 +539 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +505 -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-CPUezeMW.d.mts} +65 -174
  14. package/build/{cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts → internal/loyalty-imports-v1-loyalty-import-imports.universal-CPUezeMW.d.ts} +65 -174
  15. package/build/{es/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts → internal/meta.d.mts} +59 -186
  16. package/build/internal/{es/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts → meta.d.ts} +59 -186
  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-CPUezeMW.d.mts} +65 -174
  22. package/build/{internal/es/src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts → loyalty-imports-v1-loyalty-import-imports.universal-CPUezeMW.d.ts} +65 -174
  23. package/build/{cjs/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts → meta.d.mts} +59 -186
  24. package/build/{internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts → meta.d.ts} +59 -186
  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 -340
  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 -308
  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 -340
  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 -308
  130. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +0 -1
@@ -1,9 +1,11 @@
1
+ import { k as CreateLoyaltyImportRequest$1, a as CreateLoyaltyImportResponse$1, l as GetLoyaltyImportRequest$1, m as GetLoyaltyImportResponse$1, n as GetErrorFileDownloadUrlRequest$1, G as GetErrorFileDownloadUrlResponse$1, o as ExecuteLoyaltyImportRequest$1, b as ExecuteLoyaltyImportResponse$1, p as CreateLoyaltyImportFileUrlRequest$1, c as CreateLoyaltyImportFileUrlResponse$1, Q as QueryLoyaltyImportsRequest$1, u as QueryLoyaltyImportsResponse$1 } from './loyalty-imports-v1-loyalty-import-imports.universal-CPUezeMW.js';
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
@@ -38,7 +40,7 @@ export interface LoyaltyImport {
38
40
  * Current status of the import process.
39
41
  * @readonly
40
42
  */
41
- status?: ImportStatus;
43
+ status?: ImportStatusWithLiterals;
42
44
  /** Metadata of the uploaded file containing loyalty points data. */
43
45
  fileMetadata?: FileMetadata;
44
46
  /** Results of parsing the uploaded file, including the number of rows parsed and any parse errors. */
@@ -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,9 @@ export declare enum ImportStatus {
62
64
  /** The import process has failed. */
63
65
  FAILED = "FAILED"
64
66
  }
65
- export interface FileMetadata {
67
+ /** @enumType */
68
+ type ImportStatusWithLiterals = ImportStatus | 'UNKNOWN' | 'INITIATED' | 'PARSING' | 'PARSED' | 'IMPORTING' | 'IMPORTED' | 'FAILED';
69
+ interface FileMetadata {
66
70
  /**
67
71
  * Size of the uploaded file in bytes. Max: `10 MB`.
68
72
  * @max 104857600
@@ -95,7 +99,7 @@ export interface FileMetadata {
95
99
  */
96
100
  sampleDataRows?: SampleDataRow[];
97
101
  }
98
- export interface FileHeader {
102
+ interface FileHeader {
99
103
  /**
100
104
  * Column headings from the first row of the uploaded file.
101
105
  * @maxSize 100
@@ -103,7 +107,7 @@ export interface FileHeader {
103
107
  */
104
108
  values?: string[];
105
109
  }
106
- export interface HeaderMappingInfo {
110
+ interface HeaderMappingInfo {
107
111
  /**
108
112
  * Mappings between required loyalty data fields and file columns.
109
113
  * Must contain exactly 2 mappings: one for `EMAIL` and one for `POINTS`.
@@ -112,22 +116,24 @@ export interface HeaderMappingInfo {
112
116
  */
113
117
  headerMappings?: HeaderMapping[];
114
118
  }
115
- export interface HeaderMapping {
119
+ interface HeaderMapping {
116
120
  /** The required loyalty data field that this mapping corresponds to. Must be either `EMAIL` or `POINTS`. */
117
- columnName?: ColumnName;
121
+ columnName?: ColumnNameWithLiterals;
118
122
  /**
119
123
  * The zero-based index of the column in the uploaded file that contains the data for this loyalty field.
120
124
  * For example, if the email addresses are in the second column of the CSV file, this value would be 1.
121
125
  */
122
126
  columnIndex?: number;
123
127
  }
124
- export declare enum ColumnName {
128
+ declare enum ColumnName {
125
129
  /** Column containing the customer's email address. */
126
130
  EMAIL = "EMAIL",
127
131
  /** Column containing the customer's loyalty point balance to be imported or updated. */
128
132
  POINTS = "POINTS"
129
133
  }
130
- export interface SampleDataRow {
134
+ /** @enumType */
135
+ type ColumnNameWithLiterals = ColumnName | 'EMAIL' | 'POINTS';
136
+ interface SampleDataRow {
131
137
  /**
132
138
  * Values in one sample data row. Each value corresponds to a column in the CSV file.
133
139
  * The number of values matches the number of columns in the file.
@@ -136,7 +142,7 @@ export interface SampleDataRow {
136
142
  */
137
143
  values?: string[];
138
144
  }
139
- export interface ParseResult {
145
+ interface ParseResult {
140
146
  /**
141
147
  * Number of rows parsed from the uploaded import file.
142
148
  * @readonly
@@ -149,7 +155,7 @@ export interface ParseResult {
149
155
  */
150
156
  parseErrorReason?: string | null;
151
157
  }
152
- export interface ImportResult {
158
+ interface ImportResult {
153
159
  /** 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
160
  errorFileExists?: boolean;
155
161
  /**
@@ -163,7 +169,7 @@ export interface ImportResult {
163
169
  */
164
170
  failureCount?: number | null;
165
171
  }
166
- export interface CreateLoyaltyImportRequest {
172
+ interface CreateLoyaltyImportRequest {
167
173
  /** URL of the file to import. */
168
174
  fileUrl: string | null;
169
175
  /** Name of the file to import. */
@@ -171,45 +177,45 @@ export interface CreateLoyaltyImportRequest {
171
177
  /** Size of the file to import, in bytes. */
172
178
  fileSize?: number | null;
173
179
  }
174
- export interface CreateLoyaltyImportResponse {
180
+ interface CreateLoyaltyImportResponse {
175
181
  /** Created loyalty import. */
176
182
  loyaltyImport?: LoyaltyImport;
177
183
  }
178
- export interface GetLoyaltyImportRequest {
184
+ interface GetLoyaltyImportRequest {
179
185
  /** Loyalty import ID. */
180
186
  loyaltyImportId: string;
181
187
  }
182
- export interface GetLoyaltyImportResponse {
188
+ interface GetLoyaltyImportResponse {
183
189
  /** Retrieved loyalty import. */
184
190
  loyaltyImport?: LoyaltyImport;
185
191
  }
186
- export interface GetErrorFileDownloadUrlRequest {
192
+ interface GetErrorFileDownloadUrlRequest {
187
193
  /** Loyalty import ID. */
188
194
  loyaltyImportId: string;
189
195
  }
190
- export interface GetErrorFileDownloadUrlResponse {
196
+ interface GetErrorFileDownloadUrlResponse {
191
197
  /** URL for downloading the error file. */
192
198
  url?: string | null;
193
199
  }
194
- export interface ExecuteLoyaltyImportRequest {
200
+ interface ExecuteLoyaltyImportRequest {
195
201
  /** Loyalty import ID. */
196
202
  loyaltyImportId: string;
197
203
  /** Header mapping information for the import file. */
198
204
  headerMappingInfo?: HeaderMappingInfo;
199
205
  }
200
- export interface ExecuteLoyaltyImportResponse {
206
+ interface ExecuteLoyaltyImportResponse {
201
207
  /** Executed loyalty import. */
202
208
  loyaltyImport?: LoyaltyImport;
203
209
  }
204
- export interface CreateLoyaltyImportFileUrlRequest {
210
+ interface CreateLoyaltyImportFileUrlRequest {
205
211
  }
206
- export interface CreateLoyaltyImportFileUrlResponse {
212
+ interface CreateLoyaltyImportFileUrlResponse {
207
213
  /** Path where the file will be stored. */
208
214
  filePath?: string | null;
209
215
  /** URL for uploading the loyalty import file. */
210
216
  uploadUrl?: string | null;
211
217
  }
212
- export interface QueryLoyaltyImportsRequest {
218
+ interface QueryLoyaltyImportsRequest {
213
219
  /**
214
220
  * Filter object.
215
221
  * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
@@ -220,7 +226,7 @@ export interface QueryLoyaltyImportsRequest {
220
226
  */
221
227
  query: CursorQuery;
222
228
  }
223
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
229
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
224
230
  /**
225
231
  * Cursor paging options.
226
232
  *
@@ -242,7 +248,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
242
248
  sort?: Sorting[];
243
249
  }
244
250
  /** @oneof */
245
- export interface CursorQueryPagingMethodOneOf {
251
+ interface CursorQueryPagingMethodOneOf {
246
252
  /**
247
253
  * Cursor paging options.
248
254
  *
@@ -250,20 +256,22 @@ export interface CursorQueryPagingMethodOneOf {
250
256
  */
251
257
  cursorPaging?: CursorPaging;
252
258
  }
253
- export interface Sorting {
259
+ interface Sorting {
254
260
  /**
255
261
  * Name of the field to sort by.
256
262
  * @maxLength 512
257
263
  */
258
264
  fieldName?: string;
259
265
  /** Sort order. */
260
- order?: SortOrder;
266
+ order?: SortOrderWithLiterals;
261
267
  }
262
- export declare enum SortOrder {
268
+ declare enum SortOrder {
263
269
  ASC = "ASC",
264
270
  DESC = "DESC"
265
271
  }
266
- export interface CursorPaging {
272
+ /** @enumType */
273
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
274
+ interface CursorPaging {
267
275
  /**
268
276
  * Maximum number of items to return in the results.
269
277
  * @max 100
@@ -278,13 +286,13 @@ export interface CursorPaging {
278
286
  */
279
287
  cursor?: string | null;
280
288
  }
281
- export interface QueryLoyaltyImportsResponse {
289
+ interface QueryLoyaltyImportsResponse {
282
290
  /** List of loyalty imports matching the query. */
283
291
  loyaltyImports?: LoyaltyImport[];
284
292
  /** Paging metadata. */
285
293
  pagingMetadata?: CursorPagingMetadata;
286
294
  }
287
- export interface CursorPagingMetadata {
295
+ interface CursorPagingMetadata {
288
296
  /** Number of items returned in current page. */
289
297
  count?: number | null;
290
298
  /** Cursor strings that point to the next page, previous page, or both. */
@@ -297,7 +305,7 @@ export interface CursorPagingMetadata {
297
305
  */
298
306
  hasNext?: boolean | null;
299
307
  }
300
- export interface Cursors {
308
+ interface Cursors {
301
309
  /**
302
310
  * Cursor string pointing to the next page in the list of results.
303
311
  * @maxLength 16000
@@ -309,157 +317,22 @@ export interface Cursors {
309
317
  */
310
318
  prev?: string | null;
311
319
  }
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
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
332
- id?: string;
333
- /**
334
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
335
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
336
- */
337
- entityFqdn?: string;
338
- /**
339
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
340
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
341
- */
342
- slug?: string;
343
- /** ID of the entity associated with the event. */
344
- entityId?: string;
345
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
346
- eventTime?: Date | null;
347
- /**
348
- * Whether the event was triggered as a result of a privacy regulation application
349
- * (for example, GDPR).
350
- */
351
- triggeredByAnonymizeRequest?: boolean | null;
352
- /** If present, indicates the action that triggered the event. */
353
- originatedFrom?: string | null;
354
- /**
355
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
356
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
357
- */
358
- entityEventSequence?: string | null;
359
- }
360
- /** @oneof */
361
- export interface DomainEventBodyOneOf {
362
- createdEvent?: EntityCreatedEvent;
363
- updatedEvent?: EntityUpdatedEvent;
364
- deletedEvent?: EntityDeletedEvent;
365
- actionEvent?: ActionEvent;
366
- }
367
- export interface EntityCreatedEvent {
368
- entityAsJson?: string;
369
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
370
- restoreInfo?: RestoreInfo;
371
- }
372
- export interface RestoreInfo {
373
- deletedDate?: Date | null;
374
- }
375
- export interface EntityUpdatedEvent {
376
- /**
377
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
378
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
379
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
380
- */
381
- currentEntityAsJson?: string;
382
- }
383
- export interface EntityDeletedEvent {
384
- /** Entity that was deleted. */
385
- deletedEntityAsJson?: string | null;
386
- }
387
- export interface ActionEvent {
388
- bodyAsJson?: string;
389
- }
390
- export interface Empty {
391
- }
392
- export interface ImportFinished {
393
- /** Completed loyalty import. */
394
- loyaltyImport?: LoyaltyImport;
395
- }
396
- export interface MessageEnvelope {
397
- /**
398
- * App instance ID.
399
- * @format GUID
400
- */
401
- instanceId?: string | null;
402
- /**
403
- * Event type.
404
- * @maxLength 150
405
- */
406
- eventType?: string;
407
- /** The identification type and identity data. */
408
- identity?: IdentificationData;
409
- /** Stringify payload. */
410
- data?: string;
411
- }
412
- export interface IdentificationData extends IdentificationDataIdOneOf {
413
- /**
414
- * ID of a site visitor that has not logged in to the site.
415
- * @format GUID
416
- */
417
- anonymousVisitorId?: string;
418
- /**
419
- * ID of a site visitor that has logged in to the site.
420
- * @format GUID
421
- */
422
- memberId?: string;
423
- /**
424
- * ID of a Wix user (site owner, contributor, etc.).
425
- * @format GUID
426
- */
427
- wixUserId?: string;
428
- /**
429
- * ID of an app.
430
- * @format GUID
431
- */
432
- appId?: string;
433
- /** @readonly */
434
- identityType?: WebhookIdentityType;
435
- }
436
- /** @oneof */
437
- export interface IdentificationDataIdOneOf {
438
- /**
439
- * ID of a site visitor that has not logged in to the site.
440
- * @format GUID
441
- */
442
- anonymousVisitorId?: string;
443
- /**
444
- * ID of a site visitor that has logged in to the site.
445
- * @format GUID
446
- */
447
- memberId?: string;
448
- /**
449
- * ID of a Wix user (site owner, contributor, etc.).
450
- * @format GUID
451
- */
452
- wixUserId?: string;
453
- /**
454
- * ID of an app.
455
- * @format GUID
456
- */
457
- appId?: string;
458
- }
459
- export declare enum WebhookIdentityType {
460
- UNKNOWN = "UNKNOWN",
461
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
462
- MEMBER = "MEMBER",
463
- WIX_USER = "WIX_USER",
464
- APP = "APP"
465
- }
320
+
321
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
322
+ getUrl: (context: any) => string;
323
+ httpMethod: K;
324
+ path: string;
325
+ pathParams: M;
326
+ __requestType: T;
327
+ __originalRequestType: S;
328
+ __responseType: Q;
329
+ __originalResponseType: R;
330
+ };
331
+ declare function createLoyaltyImport(): __PublicMethodMetaInfo<'POST', {}, CreateLoyaltyImportRequest$1, CreateLoyaltyImportRequest, CreateLoyaltyImportResponse$1, CreateLoyaltyImportResponse>;
332
+ declare function getLoyaltyImport(): __PublicMethodMetaInfo<'GET', {}, GetLoyaltyImportRequest$1, GetLoyaltyImportRequest, GetLoyaltyImportResponse$1, GetLoyaltyImportResponse>;
333
+ declare function getErrorFileDownloadUrl(): __PublicMethodMetaInfo<'GET', {}, GetErrorFileDownloadUrlRequest$1, GetErrorFileDownloadUrlRequest, GetErrorFileDownloadUrlResponse$1, GetErrorFileDownloadUrlResponse>;
334
+ declare function executeLoyaltyImport(): __PublicMethodMetaInfo<'POST', {}, ExecuteLoyaltyImportRequest$1, ExecuteLoyaltyImportRequest, ExecuteLoyaltyImportResponse$1, ExecuteLoyaltyImportResponse>;
335
+ declare function createLoyaltyImportFileUrl(): __PublicMethodMetaInfo<'POST', {}, CreateLoyaltyImportFileUrlRequest$1, CreateLoyaltyImportFileUrlRequest, CreateLoyaltyImportFileUrlResponse$1, CreateLoyaltyImportFileUrlResponse>;
336
+ declare function queryLoyaltyImports(): __PublicMethodMetaInfo<'POST', {}, QueryLoyaltyImportsRequest$1, QueryLoyaltyImportsRequest, QueryLoyaltyImportsResponse$1, QueryLoyaltyImportsResponse>;
337
+
338
+ export { type __PublicMethodMetaInfo, createLoyaltyImport, createLoyaltyImportFileUrl, executeLoyaltyImport, getErrorFileDownloadUrl, getLoyaltyImport, queryLoyaltyImports };