@wix/auto_sdk_loyalty_imports 1.0.12 → 1.0.14

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 (119) hide show
  1. package/build/cjs/index.d.ts +88 -1
  2. package/build/cjs/index.js +536 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/{internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts → cjs/loyalty-imports-v1-loyalty-import-imports.universal-CPUezeMW.d.ts} +57 -174
  5. package/build/cjs/meta.d.ts +338 -1
  6. package/build/cjs/meta.js +345 -15
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/es/index.d.mts +88 -0
  9. package/build/es/index.mjs +505 -0
  10. package/build/es/index.mjs.map +1 -0
  11. package/build/{cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts → es/loyalty-imports-v1-loyalty-import-imports.universal-CPUezeMW.d.mts} +57 -174
  12. package/build/es/{src/loyalty-imports-v1-loyalty-import-imports.types.d.ts → meta.d.mts} +53 -188
  13. package/build/es/meta.mjs +316 -0
  14. package/build/es/meta.mjs.map +1 -0
  15. package/build/internal/cjs/index.d.ts +88 -1
  16. package/build/internal/cjs/index.js +536 -15
  17. package/build/internal/cjs/index.js.map +1 -1
  18. package/build/{es/src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts → internal/cjs/loyalty-imports-v1-loyalty-import-imports.universal-CPUezeMW.d.ts} +57 -174
  19. package/build/internal/cjs/meta.d.ts +338 -1
  20. package/build/internal/cjs/meta.js +345 -15
  21. package/build/internal/cjs/meta.js.map +1 -1
  22. package/build/internal/es/index.d.mts +88 -0
  23. package/build/internal/es/index.mjs +505 -0
  24. package/build/internal/es/index.mjs.map +1 -0
  25. package/build/internal/es/{src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts → loyalty-imports-v1-loyalty-import-imports.universal-CPUezeMW.d.mts} +57 -174
  26. package/build/{cjs/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts → internal/es/meta.d.mts} +53 -188
  27. package/build/internal/es/meta.mjs +316 -0
  28. package/build/internal/es/meta.mjs.map +1 -0
  29. package/package.json +10 -9
  30. package/build/cjs/index.typings.d.ts +0 -1
  31. package/build/cjs/index.typings.js +0 -18
  32. package/build/cjs/index.typings.js.map +0 -1
  33. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +0 -16
  34. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js +0 -23
  35. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +0 -1
  36. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +0 -46
  37. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js +0 -243
  38. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +0 -1
  39. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +0 -18
  40. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js +0 -142
  41. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +0 -1
  42. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +0 -77
  43. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js +0 -61
  44. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +0 -1
  45. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js +0 -41
  46. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +0 -1
  47. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js +0 -340
  48. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +0 -1
  49. package/build/es/index.d.ts +0 -1
  50. package/build/es/index.js +0 -2
  51. package/build/es/index.js.map +0 -1
  52. package/build/es/index.typings.d.ts +0 -1
  53. package/build/es/index.typings.js +0 -2
  54. package/build/es/index.typings.js.map +0 -1
  55. package/build/es/meta.d.ts +0 -1
  56. package/build/es/meta.js +0 -2
  57. package/build/es/meta.js.map +0 -1
  58. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +0 -16
  59. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.context.js +0 -16
  60. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +0 -1
  61. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +0 -46
  62. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.http.js +0 -234
  63. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +0 -1
  64. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +0 -18
  65. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js +0 -110
  66. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +0 -1
  67. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +0 -77
  68. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.public.js +0 -48
  69. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +0 -1
  70. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.types.js +0 -38
  71. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +0 -1
  72. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js +0 -308
  73. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +0 -1
  74. package/build/internal/cjs/index.typings.d.ts +0 -1
  75. package/build/internal/cjs/index.typings.js +0 -18
  76. package/build/internal/cjs/index.typings.js.map +0 -1
  77. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +0 -16
  78. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js +0 -23
  79. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +0 -1
  80. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +0 -46
  81. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js +0 -243
  82. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +0 -1
  83. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +0 -18
  84. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js +0 -142
  85. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +0 -1
  86. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +0 -77
  87. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js +0 -61
  88. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +0 -1
  89. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts +0 -473
  90. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js +0 -41
  91. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +0 -1
  92. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js +0 -340
  93. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +0 -1
  94. package/build/internal/es/index.d.ts +0 -1
  95. package/build/internal/es/index.js +0 -2
  96. package/build/internal/es/index.js.map +0 -1
  97. package/build/internal/es/index.typings.d.ts +0 -1
  98. package/build/internal/es/index.typings.js +0 -2
  99. package/build/internal/es/index.typings.js.map +0 -1
  100. package/build/internal/es/meta.d.ts +0 -1
  101. package/build/internal/es/meta.js +0 -2
  102. package/build/internal/es/meta.js.map +0 -1
  103. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +0 -16
  104. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.context.js +0 -16
  105. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +0 -1
  106. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +0 -46
  107. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.http.js +0 -234
  108. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +0 -1
  109. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +0 -18
  110. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js +0 -110
  111. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +0 -1
  112. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +0 -77
  113. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.public.js +0 -48
  114. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +0 -1
  115. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts +0 -473
  116. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.types.js +0 -38
  117. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +0 -1
  118. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js +0 -308
  119. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +0 -1
@@ -1 +1,338 @@
1
- export * from './src/loyalty-imports-v1-loyalty-import-imports.meta.js';
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
+
3
+ /**
4
+ * An Import object is a batch import of loyalty points for existing customers.
5
+ * You can use Loyalty Imports to import loyalty points from 3rd-party providers or update existing customer point balances.
6
+ * This object tracks the entire import process from file upload to data processing.
7
+ */
8
+ interface LoyaltyImport {
9
+ /**
10
+ * The ID of the import.
11
+ * @format GUID
12
+ * @readonly
13
+ */
14
+ id?: string | null;
15
+ /**
16
+ * ID of the asynchronous import job associated with this import.
17
+ * @format GUID
18
+ * @readonly
19
+ */
20
+ asyncImportJobId?: string | null;
21
+ /**
22
+ * Revision number, which increments by 1 each time the Loyalty Import is updated.
23
+ * To prevent conflicting changes, the current revision must be passed when updating the Loyalty Import.
24
+ *
25
+ * Ignored when creating a Loyalty Import.
26
+ * @readonly
27
+ */
28
+ revision?: string | null;
29
+ /**
30
+ * Date and time the Loyalty Import was created.
31
+ * @readonly
32
+ */
33
+ createdDate?: Date | null;
34
+ /**
35
+ * Date and time the Loyalty Import was last updated.
36
+ * @readonly
37
+ */
38
+ updatedDate?: Date | null;
39
+ /**
40
+ * Current status of the import process.
41
+ * @readonly
42
+ */
43
+ status?: ImportStatusWithLiterals;
44
+ /** Metadata of the uploaded file containing loyalty points data. */
45
+ fileMetadata?: FileMetadata;
46
+ /** Results of parsing the uploaded file, including the number of rows parsed and any parse errors. */
47
+ parseResult?: ParseResult;
48
+ /** Results of the import process, including success and failure counts. */
49
+ importResult?: ImportResult;
50
+ }
51
+ declare enum ImportStatus {
52
+ /** Status is unknown or not specified. */
53
+ UNKNOWN = "UNKNOWN",
54
+ /** The import has been initiated but processing has not yet begun. */
55
+ INITIATED = "INITIATED",
56
+ /** The system is currently parsing the import file. */
57
+ PARSING = "PARSING",
58
+ /** The import file has been successfully parsed and is ready for importing. */
59
+ PARSED = "PARSED",
60
+ /** The system is currently importing the parsed data. */
61
+ IMPORTING = "IMPORTING",
62
+ /** The import process is complete. This status indicates the process finished, but doesn't guarantee all data imported successfully. */
63
+ IMPORTED = "IMPORTED",
64
+ /** The import process has failed. */
65
+ FAILED = "FAILED"
66
+ }
67
+ /** @enumType */
68
+ type ImportStatusWithLiterals = ImportStatus | 'UNKNOWN' | 'INITIATED' | 'PARSING' | 'PARSED' | 'IMPORTING' | 'IMPORTED' | 'FAILED';
69
+ interface FileMetadata {
70
+ /**
71
+ * Size of the uploaded file in bytes. Max: `10 MB`.
72
+ * @max 104857600
73
+ * @readonly
74
+ */
75
+ size?: number | null;
76
+ /**
77
+ * Name of the uploaded file.
78
+ * @format GUID
79
+ * @readonly
80
+ */
81
+ name?: string | null;
82
+ /**
83
+ * URL of the uploaded file.
84
+ * @minLength 3
85
+ * @maxLength 10000
86
+ */
87
+ url?: string;
88
+ /** Column headings from the first row of the uploaded CSV file. */
89
+ header?: FileHeader;
90
+ /**
91
+ * Mapping between loyalty data fields and the corresponding columns in the uploaded file.
92
+ *
93
+ * Must include mappings for both `EMAIL` and `POINTS` to be valid.
94
+ */
95
+ headerMappingInfo?: HeaderMappingInfo;
96
+ /**
97
+ * Up to 5 sample rows from the import file, providing a preview of the data to be imported.
98
+ * @maxSize 5
99
+ */
100
+ sampleDataRows?: SampleDataRow[];
101
+ }
102
+ interface FileHeader {
103
+ /**
104
+ * Column headings from the first row of the uploaded file.
105
+ * @maxSize 100
106
+ * @maxLength 1000
107
+ */
108
+ values?: string[];
109
+ }
110
+ interface HeaderMappingInfo {
111
+ /**
112
+ * Mappings between required loyalty data fields and file columns.
113
+ * Must contain exactly 2 mappings: one for `EMAIL` and one for `POINTS`.
114
+ * @minSize 2
115
+ * @maxSize 2
116
+ */
117
+ headerMappings?: HeaderMapping[];
118
+ }
119
+ interface HeaderMapping {
120
+ /** The required loyalty data field that this mapping corresponds to. Must be either `EMAIL` or `POINTS`. */
121
+ columnName?: ColumnNameWithLiterals;
122
+ /**
123
+ * The zero-based index of the column in the uploaded file that contains the data for this loyalty field.
124
+ * For example, if the email addresses are in the second column of the CSV file, this value would be 1.
125
+ */
126
+ columnIndex?: number;
127
+ }
128
+ declare enum ColumnName {
129
+ /** Column containing the customer's email address. */
130
+ EMAIL = "EMAIL",
131
+ /** Column containing the customer's loyalty point balance to be imported or updated. */
132
+ POINTS = "POINTS"
133
+ }
134
+ /** @enumType */
135
+ type ColumnNameWithLiterals = ColumnName | 'EMAIL' | 'POINTS';
136
+ interface SampleDataRow {
137
+ /**
138
+ * Values in one sample data row. Each value corresponds to a column in the CSV file.
139
+ * The number of values matches the number of columns in the file.
140
+ * @maxSize 20
141
+ * @maxLength 1000
142
+ */
143
+ values?: string[];
144
+ }
145
+ interface ParseResult {
146
+ /**
147
+ * Number of rows parsed from the uploaded import file.
148
+ * @readonly
149
+ */
150
+ parsedRowCount?: number | null;
151
+ /**
152
+ * Reason code explaining why parsing failed, if applicable.
153
+ * @readonly
154
+ * @maxLength 1000
155
+ */
156
+ parseErrorReason?: string | null;
157
+ }
158
+ interface ImportResult {
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. */
160
+ errorFileExists?: boolean;
161
+ /**
162
+ * Number of rows successfully imported.
163
+ * @readonly
164
+ */
165
+ successCount?: number | null;
166
+ /**
167
+ * Number of rows that failed to import due to errors.
168
+ * @readonly
169
+ */
170
+ failureCount?: number | null;
171
+ }
172
+ interface CreateLoyaltyImportRequest {
173
+ /** URL of the file to import. */
174
+ fileUrl: string | null;
175
+ /** Name of the file to import. */
176
+ fileName?: string | null;
177
+ /** Size of the file to import, in bytes. */
178
+ fileSize?: number | null;
179
+ }
180
+ interface CreateLoyaltyImportResponse {
181
+ /** Created loyalty import. */
182
+ loyaltyImport?: LoyaltyImport;
183
+ }
184
+ interface GetLoyaltyImportRequest {
185
+ /** Loyalty import ID. */
186
+ loyaltyImportId: string;
187
+ }
188
+ interface GetLoyaltyImportResponse {
189
+ /** Retrieved loyalty import. */
190
+ loyaltyImport?: LoyaltyImport;
191
+ }
192
+ interface GetErrorFileDownloadUrlRequest {
193
+ /** Loyalty import ID. */
194
+ loyaltyImportId: string;
195
+ }
196
+ interface GetErrorFileDownloadUrlResponse {
197
+ /** URL for downloading the error file. */
198
+ url?: string | null;
199
+ }
200
+ interface ExecuteLoyaltyImportRequest {
201
+ /** Loyalty import ID. */
202
+ loyaltyImportId: string;
203
+ /** Header mapping information for the import file. */
204
+ headerMappingInfo?: HeaderMappingInfo;
205
+ }
206
+ interface ExecuteLoyaltyImportResponse {
207
+ /** Executed loyalty import. */
208
+ loyaltyImport?: LoyaltyImport;
209
+ }
210
+ interface CreateLoyaltyImportFileUrlRequest {
211
+ }
212
+ interface CreateLoyaltyImportFileUrlResponse {
213
+ /** Path where the file will be stored. */
214
+ filePath?: string | null;
215
+ /** URL for uploading the loyalty import file. */
216
+ uploadUrl?: string | null;
217
+ }
218
+ interface QueryLoyaltyImportsRequest {
219
+ /**
220
+ * Filter object.
221
+ * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
222
+ * for more information.
223
+ *
224
+ * For a detailed list of supported filters, see
225
+ * [Supported Filters](https://dev.wix.com/api/rest/wix-loyalty-program/loyalty-imports/supported-filters).
226
+ */
227
+ query: CursorQuery;
228
+ }
229
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
230
+ /**
231
+ * Cursor paging options.
232
+ *
233
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
234
+ */
235
+ cursorPaging?: CursorPaging;
236
+ /**
237
+ * Filter object.
238
+ *
239
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
240
+ */
241
+ filter?: Record<string, any> | null;
242
+ /**
243
+ * Sort object.
244
+ *
245
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
246
+ * @maxSize 5
247
+ */
248
+ sort?: Sorting[];
249
+ }
250
+ /** @oneof */
251
+ interface CursorQueryPagingMethodOneOf {
252
+ /**
253
+ * Cursor paging options.
254
+ *
255
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
256
+ */
257
+ cursorPaging?: CursorPaging;
258
+ }
259
+ interface Sorting {
260
+ /**
261
+ * Name of the field to sort by.
262
+ * @maxLength 512
263
+ */
264
+ fieldName?: string;
265
+ /** Sort order. */
266
+ order?: SortOrderWithLiterals;
267
+ }
268
+ declare enum SortOrder {
269
+ ASC = "ASC",
270
+ DESC = "DESC"
271
+ }
272
+ /** @enumType */
273
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
274
+ interface CursorPaging {
275
+ /**
276
+ * Maximum number of items to return in the results.
277
+ * @max 100
278
+ */
279
+ limit?: number | null;
280
+ /**
281
+ * Pointer to the next or previous page in the list of results.
282
+ *
283
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
284
+ * Not relevant for the first request.
285
+ * @maxLength 16000
286
+ */
287
+ cursor?: string | null;
288
+ }
289
+ interface QueryLoyaltyImportsResponse {
290
+ /** List of loyalty imports matching the query. */
291
+ loyaltyImports?: LoyaltyImport[];
292
+ /** Paging metadata. */
293
+ pagingMetadata?: CursorPagingMetadata;
294
+ }
295
+ interface CursorPagingMetadata {
296
+ /** Number of items returned in current page. */
297
+ count?: number | null;
298
+ /** Cursor strings that point to the next page, previous page, or both. */
299
+ cursors?: Cursors;
300
+ /**
301
+ * Whether there are more pages to retrieve following the current page.
302
+ *
303
+ * + `true`: Another page of results can be retrieved.
304
+ * + `false`: This is the last page.
305
+ */
306
+ hasNext?: boolean | null;
307
+ }
308
+ interface Cursors {
309
+ /**
310
+ * Cursor string pointing to the next page in the list of results.
311
+ * @maxLength 16000
312
+ */
313
+ next?: string | null;
314
+ /**
315
+ * Cursor pointing to the previous page in the list of results.
316
+ * @maxLength 16000
317
+ */
318
+ prev?: string | null;
319
+ }
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 };
package/build/cjs/meta.js CHANGED
@@ -1,18 +1,348 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
15
9
  };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/loyalty-imports-v1-loyalty-import-imports.meta.js"), exports);
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // meta.ts
21
+ var meta_exports = {};
22
+ __export(meta_exports, {
23
+ createLoyaltyImport: () => createLoyaltyImport2,
24
+ createLoyaltyImportFileUrl: () => createLoyaltyImportFileUrl2,
25
+ executeLoyaltyImport: () => executeLoyaltyImport2,
26
+ getErrorFileDownloadUrl: () => getErrorFileDownloadUrl2,
27
+ getLoyaltyImport: () => getLoyaltyImport2,
28
+ queryLoyaltyImports: () => queryLoyaltyImports2
29
+ });
30
+ module.exports = __toCommonJS(meta_exports);
31
+
32
+ // src/loyalty-imports-v1-loyalty-import-imports.http.ts
33
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
34
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
35
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
36
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
37
+ function resolveWixLoyaltyImportsV1LoyaltyImportsUrl(opts) {
38
+ const domainToMappings = {
39
+ "manage._base_domain_": [
40
+ {
41
+ srcPath: "/loyalty-imports",
42
+ destPath: ""
43
+ },
44
+ {
45
+ srcPath: "/_api/loyalty-imports",
46
+ destPath: "/api"
47
+ }
48
+ ],
49
+ "bo._base_domain_": [
50
+ {
51
+ srcPath: "/loyalty-imports",
52
+ destPath: ""
53
+ }
54
+ ],
55
+ "wixbo.ai": [
56
+ {
57
+ srcPath: "/loyalty-imports",
58
+ destPath: ""
59
+ }
60
+ ],
61
+ "wix-bo.com": [
62
+ {
63
+ srcPath: "/loyalty-imports",
64
+ destPath: ""
65
+ }
66
+ ],
67
+ "api._api_base_domain_": [
68
+ {
69
+ srcPath: "/loyalty-imports",
70
+ destPath: ""
71
+ }
72
+ ],
73
+ "www.wixapis.com": [
74
+ {
75
+ srcPath: "/_api/loyalty-imports",
76
+ destPath: ""
77
+ }
78
+ ]
79
+ };
80
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
81
+ }
82
+ var PACKAGE_NAME = "@wix/auto_sdk_loyalty_imports";
83
+ function createLoyaltyImport(payload) {
84
+ function __createLoyaltyImport({ host }) {
85
+ const metadata = {
86
+ entityFqdn: "wix.loyalty.imports.v1.loyalty_import",
87
+ method: "POST",
88
+ methodFqn: "wix.loyalty.imports.v1.LoyaltyImports.CreateLoyaltyImport",
89
+ packageName: PACKAGE_NAME,
90
+ url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({
91
+ protoPath: "/v1/loyalty-imports",
92
+ data: payload,
93
+ host
94
+ }),
95
+ data: payload,
96
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
97
+ {
98
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
99
+ paths: [
100
+ { path: "loyaltyImport.createdDate" },
101
+ { path: "loyaltyImport.updatedDate" }
102
+ ]
103
+ }
104
+ ])
105
+ };
106
+ return metadata;
107
+ }
108
+ return __createLoyaltyImport;
109
+ }
110
+ function getLoyaltyImport(payload) {
111
+ function __getLoyaltyImport({ host }) {
112
+ const metadata = {
113
+ entityFqdn: "wix.loyalty.imports.v1.loyalty_import",
114
+ method: "GET",
115
+ methodFqn: "wix.loyalty.imports.v1.LoyaltyImports.GetLoyaltyImport",
116
+ packageName: PACKAGE_NAME,
117
+ url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({
118
+ protoPath: "/v1/loyalty-imports",
119
+ data: payload,
120
+ host
121
+ }),
122
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
123
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
124
+ {
125
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
126
+ paths: [
127
+ { path: "loyaltyImport.createdDate" },
128
+ { path: "loyaltyImport.updatedDate" }
129
+ ]
130
+ }
131
+ ])
132
+ };
133
+ return metadata;
134
+ }
135
+ return __getLoyaltyImport;
136
+ }
137
+ function getErrorFileDownloadUrl(payload) {
138
+ function __getErrorFileDownloadUrl({ host }) {
139
+ const metadata = {
140
+ entityFqdn: "wix.loyalty.imports.v1.loyalty_import",
141
+ method: "GET",
142
+ methodFqn: "wix.loyalty.imports.v1.LoyaltyImports.GetErrorFileDownloadUrl",
143
+ packageName: PACKAGE_NAME,
144
+ url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({
145
+ protoPath: "/v1/loyalty-imports/error-file-download-url",
146
+ data: payload,
147
+ host
148
+ }),
149
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
150
+ };
151
+ return metadata;
152
+ }
153
+ return __getErrorFileDownloadUrl;
154
+ }
155
+ function executeLoyaltyImport(payload) {
156
+ function __executeLoyaltyImport({ host }) {
157
+ const metadata = {
158
+ entityFqdn: "wix.loyalty.imports.v1.loyalty_import",
159
+ method: "POST",
160
+ methodFqn: "wix.loyalty.imports.v1.LoyaltyImports.ExecuteLoyaltyImport",
161
+ packageName: PACKAGE_NAME,
162
+ url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({
163
+ protoPath: "/v1/loyalty-imports/execute",
164
+ data: payload,
165
+ host
166
+ }),
167
+ data: payload,
168
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
169
+ {
170
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
171
+ paths: [
172
+ { path: "loyaltyImport.createdDate" },
173
+ { path: "loyaltyImport.updatedDate" }
174
+ ]
175
+ }
176
+ ])
177
+ };
178
+ return metadata;
179
+ }
180
+ return __executeLoyaltyImport;
181
+ }
182
+ function createLoyaltyImportFileUrl(payload) {
183
+ function __createLoyaltyImportFileUrl({ host }) {
184
+ const metadata = {
185
+ entityFqdn: "wix.loyalty.imports.v1.loyalty_import",
186
+ method: "POST",
187
+ methodFqn: "wix.loyalty.imports.v1.LoyaltyImports.CreateLoyaltyImportFileUrl",
188
+ packageName: PACKAGE_NAME,
189
+ url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({
190
+ protoPath: "/v1/loyalty-imports/wixmp-upload-url",
191
+ data: payload,
192
+ host
193
+ }),
194
+ data: payload
195
+ };
196
+ return metadata;
197
+ }
198
+ return __createLoyaltyImportFileUrl;
199
+ }
200
+ function queryLoyaltyImports(payload) {
201
+ function __queryLoyaltyImports({ host }) {
202
+ const metadata = {
203
+ entityFqdn: "wix.loyalty.imports.v1.loyalty_import",
204
+ method: "POST",
205
+ methodFqn: "wix.loyalty.imports.v1.LoyaltyImports.QueryLoyaltyImports",
206
+ packageName: PACKAGE_NAME,
207
+ url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({
208
+ protoPath: "/v1/loyalty-imports/query",
209
+ data: payload,
210
+ host
211
+ }),
212
+ data: payload,
213
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
214
+ {
215
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
216
+ paths: [
217
+ { path: "loyaltyImports.createdDate" },
218
+ { path: "loyaltyImports.updatedDate" }
219
+ ]
220
+ }
221
+ ])
222
+ };
223
+ return metadata;
224
+ }
225
+ return __queryLoyaltyImports;
226
+ }
227
+
228
+ // src/loyalty-imports-v1-loyalty-import-imports.meta.ts
229
+ function createLoyaltyImport2() {
230
+ const payload = {};
231
+ const getRequestOptions = createLoyaltyImport(payload);
232
+ const getUrl = (context) => {
233
+ const { url } = getRequestOptions(context);
234
+ return url;
235
+ };
236
+ return {
237
+ getUrl,
238
+ httpMethod: "POST",
239
+ path: "/v1/loyalty-imports",
240
+ pathParams: {},
241
+ __requestType: null,
242
+ __originalRequestType: null,
243
+ __responseType: null,
244
+ __originalResponseType: null
245
+ };
246
+ }
247
+ function getLoyaltyImport2() {
248
+ const payload = {};
249
+ const getRequestOptions = getLoyaltyImport(payload);
250
+ const getUrl = (context) => {
251
+ const { url } = getRequestOptions(context);
252
+ return url;
253
+ };
254
+ return {
255
+ getUrl,
256
+ httpMethod: "GET",
257
+ path: "/v1/loyalty-imports",
258
+ pathParams: {},
259
+ __requestType: null,
260
+ __originalRequestType: null,
261
+ __responseType: null,
262
+ __originalResponseType: null
263
+ };
264
+ }
265
+ function getErrorFileDownloadUrl2() {
266
+ const payload = {};
267
+ const getRequestOptions = getErrorFileDownloadUrl(payload);
268
+ const getUrl = (context) => {
269
+ const { url } = getRequestOptions(context);
270
+ return url;
271
+ };
272
+ return {
273
+ getUrl,
274
+ httpMethod: "GET",
275
+ path: "/v1/loyalty-imports/error-file-download-url",
276
+ pathParams: {},
277
+ __requestType: null,
278
+ __originalRequestType: null,
279
+ __responseType: null,
280
+ __originalResponseType: null
281
+ };
282
+ }
283
+ function executeLoyaltyImport2() {
284
+ const payload = {};
285
+ const getRequestOptions = executeLoyaltyImport(payload);
286
+ const getUrl = (context) => {
287
+ const { url } = getRequestOptions(context);
288
+ return url;
289
+ };
290
+ return {
291
+ getUrl,
292
+ httpMethod: "POST",
293
+ path: "/v1/loyalty-imports/execute",
294
+ pathParams: {},
295
+ __requestType: null,
296
+ __originalRequestType: null,
297
+ __responseType: null,
298
+ __originalResponseType: null
299
+ };
300
+ }
301
+ function createLoyaltyImportFileUrl2() {
302
+ const payload = {};
303
+ const getRequestOptions = createLoyaltyImportFileUrl(
304
+ payload
305
+ );
306
+ const getUrl = (context) => {
307
+ const { url } = getRequestOptions(context);
308
+ return url;
309
+ };
310
+ return {
311
+ getUrl,
312
+ httpMethod: "POST",
313
+ path: "/v1/loyalty-imports/wixmp-upload-url",
314
+ pathParams: {},
315
+ __requestType: null,
316
+ __originalRequestType: null,
317
+ __responseType: null,
318
+ __originalResponseType: null
319
+ };
320
+ }
321
+ function queryLoyaltyImports2() {
322
+ const payload = {};
323
+ const getRequestOptions = queryLoyaltyImports(payload);
324
+ const getUrl = (context) => {
325
+ const { url } = getRequestOptions(context);
326
+ return url;
327
+ };
328
+ return {
329
+ getUrl,
330
+ httpMethod: "POST",
331
+ path: "/v1/loyalty-imports/query",
332
+ pathParams: {},
333
+ __requestType: null,
334
+ __originalRequestType: null,
335
+ __responseType: null,
336
+ __originalResponseType: null
337
+ };
338
+ }
339
+ // Annotate the CommonJS export names for ESM import in node:
340
+ 0 && (module.exports = {
341
+ createLoyaltyImport,
342
+ createLoyaltyImportFileUrl,
343
+ executeLoyaltyImport,
344
+ getErrorFileDownloadUrl,
345
+ getLoyaltyImport,
346
+ queryLoyaltyImports
347
+ });
18
348
  //# sourceMappingURL=meta.js.map