@wix/auto_sdk_loyalty_imports 1.0.7 → 1.0.9

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 (134) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +16 -0
  11. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js +23 -0
  12. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +1 -0
  13. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +46 -0
  14. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js +243 -0
  15. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +1 -0
  16. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +18 -0
  17. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js +142 -0
  18. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +1 -0
  19. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +77 -0
  20. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js +61 -0
  21. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +1 -0
  22. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts +473 -0
  23. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js +41 -0
  24. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +1 -0
  25. package/build/{internal/loyalty-imports-v1-loyalty-import-imports.universal-2D8oFVKm.d.mts → cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts} +170 -53
  26. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js +338 -0
  27. package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +16 -0
  39. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.context.js +16 -0
  40. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +1 -0
  41. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +46 -0
  42. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.http.js +234 -0
  43. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +1 -0
  44. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +18 -0
  45. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js +110 -0
  46. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +1 -0
  47. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +77 -0
  48. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.public.js +48 -0
  49. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +1 -0
  50. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts +473 -0
  51. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.types.js +38 -0
  52. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +1 -0
  53. package/build/{internal/loyalty-imports-v1-loyalty-import-imports.universal-2D8oFVKm.d.ts → es/src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts} +170 -53
  54. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js +306 -0
  55. package/build/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +16 -0
  66. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js +23 -0
  67. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +1 -0
  68. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +46 -0
  69. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js +243 -0
  70. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +1 -0
  71. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +18 -0
  72. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js +142 -0
  73. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +1 -0
  74. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +77 -0
  75. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js +61 -0
  76. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +1 -0
  77. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts +473 -0
  78. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js +41 -0
  79. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +1 -0
  80. package/build/{loyalty-imports-v1-loyalty-import-imports.universal-2D8oFVKm.d.mts → internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts} +170 -53
  81. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js +338 -0
  82. package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +16 -0
  93. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.context.js +16 -0
  94. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +1 -0
  95. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +46 -0
  96. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.http.js +234 -0
  97. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +1 -0
  98. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +18 -0
  99. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js +110 -0
  100. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +1 -0
  101. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +77 -0
  102. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.public.js +48 -0
  103. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +1 -0
  104. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts +473 -0
  105. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.types.js +38 -0
  106. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +1 -0
  107. package/build/{loyalty-imports-v1-loyalty-import-imports.universal-2D8oFVKm.d.ts → internal/es/src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts} +170 -53
  108. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js +306 -0
  109. package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +1 -0
  110. package/package.json +13 -14
  111. package/build/index.d.mts +0 -88
  112. package/build/index.d.ts +0 -88
  113. package/build/index.js +0 -536
  114. package/build/index.js.map +0 -1
  115. package/build/index.mjs +0 -502
  116. package/build/index.mjs.map +0 -1
  117. package/build/internal/index.d.mts +0 -88
  118. package/build/internal/index.d.ts +0 -88
  119. package/build/internal/index.js +0 -536
  120. package/build/internal/index.js.map +0 -1
  121. package/build/internal/index.mjs +0 -502
  122. package/build/internal/index.mjs.map +0 -1
  123. package/build/internal/meta.d.mts +0 -332
  124. package/build/internal/meta.d.ts +0 -332
  125. package/build/internal/meta.js +0 -348
  126. package/build/internal/meta.js.map +0 -1
  127. package/build/internal/meta.mjs +0 -316
  128. package/build/internal/meta.mjs.map +0 -1
  129. package/build/meta.d.mts +0 -332
  130. package/build/meta.d.ts +0 -332
  131. package/build/meta.js +0 -348
  132. package/build/meta.js.map +0 -1
  133. package/build/meta.mjs +0 -316
  134. package/build/meta.mjs.map +0 -1
@@ -1,332 +0,0 @@
1
- import { j as CreateLoyaltyImportRequest$1, a as CreateLoyaltyImportResponse$1, k as GetLoyaltyImportRequest$1, l as GetLoyaltyImportResponse$1, m as GetErrorFileDownloadUrlRequest$1, G as GetErrorFileDownloadUrlResponse$1, n as ExecuteLoyaltyImportRequest$1, b as ExecuteLoyaltyImportResponse$1, o as CreateLoyaltyImportFileUrlRequest$1, c as CreateLoyaltyImportFileUrlResponse$1, Q as QueryLoyaltyImportsRequest$1, t as QueryLoyaltyImportsResponse$1 } from './loyalty-imports-v1-loyalty-import-imports.universal-2D8oFVKm.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?: ImportStatus;
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
- interface FileMetadata {
68
- /**
69
- * Size of the uploaded file in bytes. Max: `10 MB`.
70
- * @max 104857600
71
- * @readonly
72
- */
73
- size?: number | null;
74
- /**
75
- * Name of the uploaded file.
76
- * @format GUID
77
- * @readonly
78
- */
79
- name?: string | null;
80
- /**
81
- * URL of the uploaded file.
82
- * @minLength 3
83
- * @maxLength 10000
84
- */
85
- url?: string;
86
- /** Column headings from the first row of the uploaded CSV file. */
87
- header?: FileHeader;
88
- /**
89
- * Mapping between loyalty data fields and the corresponding columns in the uploaded file.
90
- *
91
- * Must include mappings for both `EMAIL` and `POINTS` to be valid.
92
- */
93
- headerMappingInfo?: HeaderMappingInfo;
94
- /**
95
- * Up to 5 sample rows from the import file, providing a preview of the data to be imported.
96
- * @maxSize 5
97
- */
98
- sampleDataRows?: SampleDataRow[];
99
- }
100
- interface FileHeader {
101
- /**
102
- * Column headings from the first row of the uploaded file.
103
- * @maxSize 100
104
- * @maxLength 1000
105
- */
106
- values?: string[];
107
- }
108
- interface HeaderMappingInfo {
109
- /**
110
- * Mappings between required loyalty data fields and file columns.
111
- * Must contain exactly 2 mappings: one for `EMAIL` and one for `POINTS`.
112
- * @minSize 2
113
- * @maxSize 2
114
- */
115
- headerMappings?: HeaderMapping[];
116
- }
117
- interface HeaderMapping {
118
- /** The required loyalty data field that this mapping corresponds to. Must be either `EMAIL` or `POINTS`. */
119
- columnName?: ColumnName;
120
- /**
121
- * The zero-based index of the column in the uploaded file that contains the data for this loyalty field.
122
- * For example, if the email addresses are in the second column of the CSV file, this value would be 1.
123
- */
124
- columnIndex?: number;
125
- }
126
- declare enum ColumnName {
127
- /** Column containing the customer's email address. */
128
- EMAIL = "EMAIL",
129
- /** Column containing the customer's loyalty point balance to be imported or updated. */
130
- POINTS = "POINTS"
131
- }
132
- interface SampleDataRow {
133
- /**
134
- * Values in one sample data row. Each value corresponds to a column in the CSV file.
135
- * The number of values matches the number of columns in the file.
136
- * @maxSize 20
137
- * @maxLength 1000
138
- */
139
- values?: string[];
140
- }
141
- interface ParseResult {
142
- /**
143
- * Number of rows parsed from the uploaded import file.
144
- * @readonly
145
- */
146
- parsedRowCount?: number | null;
147
- /**
148
- * Reason code explaining why parsing failed, if applicable.
149
- * @readonly
150
- * @maxLength 1000
151
- */
152
- parseErrorReason?: string | null;
153
- }
154
- interface ImportResult {
155
- /** Whether an error file detailing import failures is available for download. The file includes row-by-row import status, error reasons, and original data. */
156
- errorFileExists?: boolean;
157
- /**
158
- * Number of rows successfully imported.
159
- * @readonly
160
- */
161
- successCount?: number | null;
162
- /**
163
- * Number of rows that failed to import due to errors.
164
- * @readonly
165
- */
166
- failureCount?: number | null;
167
- }
168
- interface CreateLoyaltyImportRequest {
169
- /** URL of the file to import. */
170
- fileUrl: string | null;
171
- /** Name of the file to import. */
172
- fileName?: string | null;
173
- /** Size of the file to import, in bytes. */
174
- fileSize?: number | null;
175
- }
176
- interface CreateLoyaltyImportResponse {
177
- /** Created loyalty import. */
178
- loyaltyImport?: LoyaltyImport;
179
- }
180
- interface GetLoyaltyImportRequest {
181
- /** Loyalty import ID. */
182
- loyaltyImportId: string;
183
- }
184
- interface GetLoyaltyImportResponse {
185
- /** Retrieved loyalty import. */
186
- loyaltyImport?: LoyaltyImport;
187
- }
188
- interface GetErrorFileDownloadUrlRequest {
189
- /** Loyalty import ID. */
190
- loyaltyImportId: string;
191
- }
192
- interface GetErrorFileDownloadUrlResponse {
193
- /** URL for downloading the error file. */
194
- url?: string | null;
195
- }
196
- interface ExecuteLoyaltyImportRequest {
197
- /** Loyalty import ID. */
198
- loyaltyImportId: string;
199
- /** Header mapping information for the import file. */
200
- headerMappingInfo?: HeaderMappingInfo;
201
- }
202
- interface ExecuteLoyaltyImportResponse {
203
- /** Executed loyalty import. */
204
- loyaltyImport?: LoyaltyImport;
205
- }
206
- interface CreateLoyaltyImportFileUrlRequest {
207
- }
208
- interface CreateLoyaltyImportFileUrlResponse {
209
- /** Path where the file will be stored. */
210
- filePath?: string | null;
211
- /** URL for uploading the loyalty import file. */
212
- uploadUrl?: string | null;
213
- }
214
- interface QueryLoyaltyImportsRequest {
215
- /**
216
- * Filter object.
217
- * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
218
- * for more information.
219
- *
220
- * For a detailed list of supported filters, see
221
- * [Supported Filters](https://dev.wix.com/api/rest/wix-loyalty-program/loyalty-imports/supported-filters).
222
- */
223
- query: CursorQuery;
224
- }
225
- interface CursorQuery extends CursorQueryPagingMethodOneOf {
226
- /**
227
- * Cursor paging options.
228
- *
229
- * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
230
- */
231
- cursorPaging?: CursorPaging;
232
- /**
233
- * Filter object.
234
- *
235
- * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
236
- */
237
- filter?: Record<string, any> | null;
238
- /**
239
- * Sort object.
240
- *
241
- * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
242
- * @maxSize 5
243
- */
244
- sort?: Sorting[];
245
- }
246
- /** @oneof */
247
- interface CursorQueryPagingMethodOneOf {
248
- /**
249
- * Cursor paging options.
250
- *
251
- * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
252
- */
253
- cursorPaging?: CursorPaging;
254
- }
255
- interface Sorting {
256
- /**
257
- * Name of the field to sort by.
258
- * @maxLength 512
259
- */
260
- fieldName?: string;
261
- /** Sort order. */
262
- order?: SortOrder;
263
- }
264
- declare enum SortOrder {
265
- ASC = "ASC",
266
- DESC = "DESC"
267
- }
268
- interface CursorPaging {
269
- /**
270
- * Maximum number of items to return in the results.
271
- * @max 100
272
- */
273
- limit?: number | null;
274
- /**
275
- * Pointer to the next or previous page in the list of results.
276
- *
277
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
278
- * Not relevant for the first request.
279
- * @maxLength 16000
280
- */
281
- cursor?: string | null;
282
- }
283
- interface QueryLoyaltyImportsResponse {
284
- /** List of loyalty imports matching the query. */
285
- loyaltyImports?: LoyaltyImport[];
286
- /** Paging metadata. */
287
- pagingMetadata?: CursorPagingMetadata;
288
- }
289
- interface CursorPagingMetadata {
290
- /** Number of items returned in current page. */
291
- count?: number | null;
292
- /** Cursor strings that point to the next page, previous page, or both. */
293
- cursors?: Cursors;
294
- /**
295
- * Whether there are more pages to retrieve following the current page.
296
- *
297
- * + `true`: Another page of results can be retrieved.
298
- * + `false`: This is the last page.
299
- */
300
- hasNext?: boolean | null;
301
- }
302
- interface Cursors {
303
- /**
304
- * Cursor string pointing to the next page in the list of results.
305
- * @maxLength 16000
306
- */
307
- next?: string | null;
308
- /**
309
- * Cursor pointing to the previous page in the list of results.
310
- * @maxLength 16000
311
- */
312
- prev?: string | null;
313
- }
314
-
315
- type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
316
- getUrl: (context: any) => string;
317
- httpMethod: K;
318
- path: string;
319
- pathParams: M;
320
- __requestType: T;
321
- __originalRequestType: S;
322
- __responseType: Q;
323
- __originalResponseType: R;
324
- };
325
- declare function createLoyaltyImport(): __PublicMethodMetaInfo<'POST', {}, CreateLoyaltyImportRequest$1, CreateLoyaltyImportRequest, CreateLoyaltyImportResponse$1, CreateLoyaltyImportResponse>;
326
- declare function getLoyaltyImport(): __PublicMethodMetaInfo<'GET', {}, GetLoyaltyImportRequest$1, GetLoyaltyImportRequest, GetLoyaltyImportResponse$1, GetLoyaltyImportResponse>;
327
- declare function getErrorFileDownloadUrl(): __PublicMethodMetaInfo<'GET', {}, GetErrorFileDownloadUrlRequest$1, GetErrorFileDownloadUrlRequest, GetErrorFileDownloadUrlResponse$1, GetErrorFileDownloadUrlResponse>;
328
- declare function executeLoyaltyImport(): __PublicMethodMetaInfo<'POST', {}, ExecuteLoyaltyImportRequest$1, ExecuteLoyaltyImportRequest, ExecuteLoyaltyImportResponse$1, ExecuteLoyaltyImportResponse>;
329
- declare function createLoyaltyImportFileUrl(): __PublicMethodMetaInfo<'POST', {}, CreateLoyaltyImportFileUrlRequest$1, CreateLoyaltyImportFileUrlRequest, CreateLoyaltyImportFileUrlResponse$1, CreateLoyaltyImportFileUrlResponse>;
330
- declare function queryLoyaltyImports(): __PublicMethodMetaInfo<'POST', {}, QueryLoyaltyImportsRequest$1, QueryLoyaltyImportsRequest, QueryLoyaltyImportsResponse$1, QueryLoyaltyImportsResponse>;
331
-
332
- export { type __PublicMethodMetaInfo, createLoyaltyImport, createLoyaltyImportFileUrl, executeLoyaltyImport, getErrorFileDownloadUrl, getLoyaltyImport, queryLoyaltyImports };
@@ -1,348 +0,0 @@
1
- "use strict";
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 });
9
- };
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
- });
348
- //# sourceMappingURL=meta.js.map