@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.
- package/build/cjs/index.d.ts +88 -1
- package/build/cjs/index.js +536 -15
- package/build/cjs/index.js.map +1 -1
- 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
- package/build/cjs/meta.d.ts +338 -1
- package/build/cjs/meta.js +345 -15
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +88 -0
- package/build/es/index.mjs +505 -0
- package/build/es/index.mjs.map +1 -0
- 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
- package/build/es/{src/loyalty-imports-v1-loyalty-import-imports.types.d.ts → meta.d.mts} +53 -188
- package/build/es/meta.mjs +316 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +88 -1
- package/build/internal/cjs/index.js +536 -15
- package/build/internal/cjs/index.js.map +1 -1
- 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
- package/build/internal/cjs/meta.d.ts +338 -1
- package/build/internal/cjs/meta.js +345 -15
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +88 -0
- package/build/internal/es/index.mjs +505 -0
- package/build/internal/es/index.mjs.map +1 -0
- 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
- package/build/{cjs/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts → internal/es/meta.d.mts} +53 -188
- package/build/internal/es/meta.mjs +316 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +10 -9
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +0 -16
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js +0 -23
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +0 -1
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +0 -46
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js +0 -243
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +0 -1
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +0 -18
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js +0 -142
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +0 -1
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +0 -77
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js +0 -61
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +0 -1
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js +0 -41
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +0 -1
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js +0 -340
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +0 -16
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.context.js +0 -16
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +0 -1
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +0 -46
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.http.js +0 -234
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +0 -1
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +0 -18
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js +0 -110
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +0 -1
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +0 -77
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.public.js +0 -48
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +0 -1
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.types.js +0 -38
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +0 -1
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js +0 -308
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +0 -16
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js +0 -23
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +0 -1
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +0 -46
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js +0 -243
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +0 -1
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +0 -18
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js +0 -142
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +0 -1
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +0 -77
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js +0 -61
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +0 -1
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts +0 -473
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js +0 -41
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +0 -1
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js +0 -340
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +0 -16
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.context.js +0 -16
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +0 -1
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +0 -46
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.http.js +0 -234
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +0 -1
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +0 -18
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js +0 -110
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +0 -1
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +0 -77
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.public.js +0 -48
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +0 -1
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts +0 -473
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.types.js +0 -38
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +0 -1
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js +0 -308
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +0 -1
|
@@ -1,473 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* An Import object is a batch import of loyalty points for existing customers.
|
|
3
|
-
* You can use Loyalty Imports to import loyalty points from 3rd-party providers or update existing customer point balances.
|
|
4
|
-
* This object tracks the entire import process from file upload to data processing.
|
|
5
|
-
*/
|
|
6
|
-
export interface LoyaltyImport {
|
|
7
|
-
/**
|
|
8
|
-
* The ID of the import.
|
|
9
|
-
* @format GUID
|
|
10
|
-
* @readonly
|
|
11
|
-
*/
|
|
12
|
-
id?: string | null;
|
|
13
|
-
/**
|
|
14
|
-
* ID of the asynchronous import job associated with this import.
|
|
15
|
-
* @format GUID
|
|
16
|
-
* @readonly
|
|
17
|
-
*/
|
|
18
|
-
asyncImportJobId?: string | null;
|
|
19
|
-
/**
|
|
20
|
-
* Revision number, which increments by 1 each time the Loyalty Import is updated.
|
|
21
|
-
* To prevent conflicting changes, the current revision must be passed when updating the Loyalty Import.
|
|
22
|
-
*
|
|
23
|
-
* Ignored when creating a Loyalty Import.
|
|
24
|
-
* @readonly
|
|
25
|
-
*/
|
|
26
|
-
revision?: string | null;
|
|
27
|
-
/**
|
|
28
|
-
* Date and time the Loyalty Import was created.
|
|
29
|
-
* @readonly
|
|
30
|
-
*/
|
|
31
|
-
createdDate?: Date | null;
|
|
32
|
-
/**
|
|
33
|
-
* Date and time the Loyalty Import was last updated.
|
|
34
|
-
* @readonly
|
|
35
|
-
*/
|
|
36
|
-
updatedDate?: Date | null;
|
|
37
|
-
/**
|
|
38
|
-
* Current status of the import process.
|
|
39
|
-
* @readonly
|
|
40
|
-
*/
|
|
41
|
-
status?: ImportStatusWithLiterals;
|
|
42
|
-
/** Metadata of the uploaded file containing loyalty points data. */
|
|
43
|
-
fileMetadata?: FileMetadata;
|
|
44
|
-
/** Results of parsing the uploaded file, including the number of rows parsed and any parse errors. */
|
|
45
|
-
parseResult?: ParseResult;
|
|
46
|
-
/** Results of the import process, including success and failure counts. */
|
|
47
|
-
importResult?: ImportResult;
|
|
48
|
-
}
|
|
49
|
-
export declare enum ImportStatus {
|
|
50
|
-
/** Status is unknown or not specified. */
|
|
51
|
-
UNKNOWN = "UNKNOWN",
|
|
52
|
-
/** The import has been initiated but processing has not yet begun. */
|
|
53
|
-
INITIATED = "INITIATED",
|
|
54
|
-
/** The system is currently parsing the import file. */
|
|
55
|
-
PARSING = "PARSING",
|
|
56
|
-
/** The import file has been successfully parsed and is ready for importing. */
|
|
57
|
-
PARSED = "PARSED",
|
|
58
|
-
/** The system is currently importing the parsed data. */
|
|
59
|
-
IMPORTING = "IMPORTING",
|
|
60
|
-
/** The import process is complete. This status indicates the process finished, but doesn't guarantee all data imported successfully. */
|
|
61
|
-
IMPORTED = "IMPORTED",
|
|
62
|
-
/** The import process has failed. */
|
|
63
|
-
FAILED = "FAILED"
|
|
64
|
-
}
|
|
65
|
-
/** @enumType */
|
|
66
|
-
export type ImportStatusWithLiterals = ImportStatus | 'UNKNOWN' | 'INITIATED' | 'PARSING' | 'PARSED' | 'IMPORTING' | 'IMPORTED' | 'FAILED';
|
|
67
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export interface HeaderMapping {
|
|
118
|
-
/** The required loyalty data field that this mapping corresponds to. Must be either `EMAIL` or `POINTS`. */
|
|
119
|
-
columnName?: ColumnNameWithLiterals;
|
|
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
|
-
export 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
|
-
/** @enumType */
|
|
133
|
-
export type ColumnNameWithLiterals = ColumnName | 'EMAIL' | 'POINTS';
|
|
134
|
-
export interface SampleDataRow {
|
|
135
|
-
/**
|
|
136
|
-
* Values in one sample data row. Each value corresponds to a column in the CSV file.
|
|
137
|
-
* The number of values matches the number of columns in the file.
|
|
138
|
-
* @maxSize 20
|
|
139
|
-
* @maxLength 1000
|
|
140
|
-
*/
|
|
141
|
-
values?: string[];
|
|
142
|
-
}
|
|
143
|
-
export interface ParseResult {
|
|
144
|
-
/**
|
|
145
|
-
* Number of rows parsed from the uploaded import file.
|
|
146
|
-
* @readonly
|
|
147
|
-
*/
|
|
148
|
-
parsedRowCount?: number | null;
|
|
149
|
-
/**
|
|
150
|
-
* Reason code explaining why parsing failed, if applicable.
|
|
151
|
-
* @readonly
|
|
152
|
-
* @maxLength 1000
|
|
153
|
-
*/
|
|
154
|
-
parseErrorReason?: string | null;
|
|
155
|
-
}
|
|
156
|
-
export interface ImportResult {
|
|
157
|
-
/** Whether an error file detailing import failures is available for download. The file includes row-by-row import status, error reasons, and original data. */
|
|
158
|
-
errorFileExists?: boolean;
|
|
159
|
-
/**
|
|
160
|
-
* Number of rows successfully imported.
|
|
161
|
-
* @readonly
|
|
162
|
-
*/
|
|
163
|
-
successCount?: number | null;
|
|
164
|
-
/**
|
|
165
|
-
* Number of rows that failed to import due to errors.
|
|
166
|
-
* @readonly
|
|
167
|
-
*/
|
|
168
|
-
failureCount?: number | null;
|
|
169
|
-
}
|
|
170
|
-
export interface CreateLoyaltyImportRequest {
|
|
171
|
-
/** URL of the file to import. */
|
|
172
|
-
fileUrl: string | null;
|
|
173
|
-
/** Name of the file to import. */
|
|
174
|
-
fileName?: string | null;
|
|
175
|
-
/** Size of the file to import, in bytes. */
|
|
176
|
-
fileSize?: number | null;
|
|
177
|
-
}
|
|
178
|
-
export interface CreateLoyaltyImportResponse {
|
|
179
|
-
/** Created loyalty import. */
|
|
180
|
-
loyaltyImport?: LoyaltyImport;
|
|
181
|
-
}
|
|
182
|
-
export interface GetLoyaltyImportRequest {
|
|
183
|
-
/** Loyalty import ID. */
|
|
184
|
-
loyaltyImportId: string;
|
|
185
|
-
}
|
|
186
|
-
export interface GetLoyaltyImportResponse {
|
|
187
|
-
/** Retrieved loyalty import. */
|
|
188
|
-
loyaltyImport?: LoyaltyImport;
|
|
189
|
-
}
|
|
190
|
-
export interface GetErrorFileDownloadUrlRequest {
|
|
191
|
-
/** Loyalty import ID. */
|
|
192
|
-
loyaltyImportId: string;
|
|
193
|
-
}
|
|
194
|
-
export interface GetErrorFileDownloadUrlResponse {
|
|
195
|
-
/** URL for downloading the error file. */
|
|
196
|
-
url?: string | null;
|
|
197
|
-
}
|
|
198
|
-
export interface ExecuteLoyaltyImportRequest {
|
|
199
|
-
/** Loyalty import ID. */
|
|
200
|
-
loyaltyImportId: string;
|
|
201
|
-
/** Header mapping information for the import file. */
|
|
202
|
-
headerMappingInfo?: HeaderMappingInfo;
|
|
203
|
-
}
|
|
204
|
-
export interface ExecuteLoyaltyImportResponse {
|
|
205
|
-
/** Executed loyalty import. */
|
|
206
|
-
loyaltyImport?: LoyaltyImport;
|
|
207
|
-
}
|
|
208
|
-
export interface CreateLoyaltyImportFileUrlRequest {
|
|
209
|
-
}
|
|
210
|
-
export interface CreateLoyaltyImportFileUrlResponse {
|
|
211
|
-
/** Path where the file will be stored. */
|
|
212
|
-
filePath?: string | null;
|
|
213
|
-
/** URL for uploading the loyalty import file. */
|
|
214
|
-
uploadUrl?: string | null;
|
|
215
|
-
}
|
|
216
|
-
export interface QueryLoyaltyImportsRequest {
|
|
217
|
-
/**
|
|
218
|
-
* Filter object.
|
|
219
|
-
* See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
|
|
220
|
-
* for more information.
|
|
221
|
-
*
|
|
222
|
-
* For a detailed list of supported filters, see
|
|
223
|
-
* [Supported Filters](https://dev.wix.com/api/rest/wix-loyalty-program/loyalty-imports/supported-filters).
|
|
224
|
-
*/
|
|
225
|
-
query: CursorQuery;
|
|
226
|
-
}
|
|
227
|
-
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
228
|
-
/**
|
|
229
|
-
* Cursor paging options.
|
|
230
|
-
*
|
|
231
|
-
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
232
|
-
*/
|
|
233
|
-
cursorPaging?: CursorPaging;
|
|
234
|
-
/**
|
|
235
|
-
* Filter object.
|
|
236
|
-
*
|
|
237
|
-
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
238
|
-
*/
|
|
239
|
-
filter?: Record<string, any> | null;
|
|
240
|
-
/**
|
|
241
|
-
* Sort object.
|
|
242
|
-
*
|
|
243
|
-
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
244
|
-
* @maxSize 5
|
|
245
|
-
*/
|
|
246
|
-
sort?: Sorting[];
|
|
247
|
-
}
|
|
248
|
-
/** @oneof */
|
|
249
|
-
export interface CursorQueryPagingMethodOneOf {
|
|
250
|
-
/**
|
|
251
|
-
* Cursor paging options.
|
|
252
|
-
*
|
|
253
|
-
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
254
|
-
*/
|
|
255
|
-
cursorPaging?: CursorPaging;
|
|
256
|
-
}
|
|
257
|
-
export interface Sorting {
|
|
258
|
-
/**
|
|
259
|
-
* Name of the field to sort by.
|
|
260
|
-
* @maxLength 512
|
|
261
|
-
*/
|
|
262
|
-
fieldName?: string;
|
|
263
|
-
/** Sort order. */
|
|
264
|
-
order?: SortOrderWithLiterals;
|
|
265
|
-
}
|
|
266
|
-
export declare enum SortOrder {
|
|
267
|
-
ASC = "ASC",
|
|
268
|
-
DESC = "DESC"
|
|
269
|
-
}
|
|
270
|
-
/** @enumType */
|
|
271
|
-
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
272
|
-
export interface CursorPaging {
|
|
273
|
-
/**
|
|
274
|
-
* Maximum number of items to return in the results.
|
|
275
|
-
* @max 100
|
|
276
|
-
*/
|
|
277
|
-
limit?: number | null;
|
|
278
|
-
/**
|
|
279
|
-
* Pointer to the next or previous page in the list of results.
|
|
280
|
-
*
|
|
281
|
-
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
282
|
-
* Not relevant for the first request.
|
|
283
|
-
* @maxLength 16000
|
|
284
|
-
*/
|
|
285
|
-
cursor?: string | null;
|
|
286
|
-
}
|
|
287
|
-
export interface QueryLoyaltyImportsResponse {
|
|
288
|
-
/** List of loyalty imports matching the query. */
|
|
289
|
-
loyaltyImports?: LoyaltyImport[];
|
|
290
|
-
/** Paging metadata. */
|
|
291
|
-
pagingMetadata?: CursorPagingMetadata;
|
|
292
|
-
}
|
|
293
|
-
export interface CursorPagingMetadata {
|
|
294
|
-
/** Number of items returned in current page. */
|
|
295
|
-
count?: number | null;
|
|
296
|
-
/** Cursor strings that point to the next page, previous page, or both. */
|
|
297
|
-
cursors?: Cursors;
|
|
298
|
-
/**
|
|
299
|
-
* Whether there are more pages to retrieve following the current page.
|
|
300
|
-
*
|
|
301
|
-
* + `true`: Another page of results can be retrieved.
|
|
302
|
-
* + `false`: This is the last page.
|
|
303
|
-
*/
|
|
304
|
-
hasNext?: boolean | null;
|
|
305
|
-
}
|
|
306
|
-
export interface Cursors {
|
|
307
|
-
/**
|
|
308
|
-
* Cursor string pointing to the next page in the list of results.
|
|
309
|
-
* @maxLength 16000
|
|
310
|
-
*/
|
|
311
|
-
next?: string | null;
|
|
312
|
-
/**
|
|
313
|
-
* Cursor pointing to the previous page in the list of results.
|
|
314
|
-
* @maxLength 16000
|
|
315
|
-
*/
|
|
316
|
-
prev?: string | null;
|
|
317
|
-
}
|
|
318
|
-
export interface DeleteLoyaltyImportRequest {
|
|
319
|
-
/**
|
|
320
|
-
* Loyalty import ID.
|
|
321
|
-
* @format GUID
|
|
322
|
-
*/
|
|
323
|
-
loyaltyImportId?: string;
|
|
324
|
-
/**
|
|
325
|
-
* Revision number, which increments by 1 each time the loyalty import is updated.
|
|
326
|
-
* To prevent conflicting changes, the current revision must be passed when updating the loyalty import.
|
|
327
|
-
*/
|
|
328
|
-
revision?: string;
|
|
329
|
-
}
|
|
330
|
-
export interface DeleteLoyaltyImportResponse {
|
|
331
|
-
}
|
|
332
|
-
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
333
|
-
createdEvent?: EntityCreatedEvent;
|
|
334
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
335
|
-
deletedEvent?: EntityDeletedEvent;
|
|
336
|
-
actionEvent?: ActionEvent;
|
|
337
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
338
|
-
id?: string;
|
|
339
|
-
/**
|
|
340
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
341
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
342
|
-
*/
|
|
343
|
-
entityFqdn?: string;
|
|
344
|
-
/**
|
|
345
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
346
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
347
|
-
*/
|
|
348
|
-
slug?: string;
|
|
349
|
-
/** ID of the entity associated with the event. */
|
|
350
|
-
entityId?: string;
|
|
351
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
352
|
-
eventTime?: Date | null;
|
|
353
|
-
/**
|
|
354
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
355
|
-
* (for example, GDPR).
|
|
356
|
-
*/
|
|
357
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
358
|
-
/** If present, indicates the action that triggered the event. */
|
|
359
|
-
originatedFrom?: string | null;
|
|
360
|
-
/**
|
|
361
|
-
* 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.
|
|
362
|
-
* 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.
|
|
363
|
-
*/
|
|
364
|
-
entityEventSequence?: string | null;
|
|
365
|
-
}
|
|
366
|
-
/** @oneof */
|
|
367
|
-
export interface DomainEventBodyOneOf {
|
|
368
|
-
createdEvent?: EntityCreatedEvent;
|
|
369
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
370
|
-
deletedEvent?: EntityDeletedEvent;
|
|
371
|
-
actionEvent?: ActionEvent;
|
|
372
|
-
}
|
|
373
|
-
export interface EntityCreatedEvent {
|
|
374
|
-
entityAsJson?: string;
|
|
375
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
376
|
-
restoreInfo?: RestoreInfo;
|
|
377
|
-
}
|
|
378
|
-
export interface RestoreInfo {
|
|
379
|
-
deletedDate?: Date | null;
|
|
380
|
-
}
|
|
381
|
-
export interface EntityUpdatedEvent {
|
|
382
|
-
/**
|
|
383
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
384
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
385
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
386
|
-
*/
|
|
387
|
-
currentEntityAsJson?: string;
|
|
388
|
-
}
|
|
389
|
-
export interface EntityDeletedEvent {
|
|
390
|
-
/** Entity that was deleted. */
|
|
391
|
-
deletedEntityAsJson?: string | null;
|
|
392
|
-
}
|
|
393
|
-
export interface ActionEvent {
|
|
394
|
-
bodyAsJson?: string;
|
|
395
|
-
}
|
|
396
|
-
export interface Empty {
|
|
397
|
-
}
|
|
398
|
-
export interface ImportFinished {
|
|
399
|
-
/** Completed loyalty import. */
|
|
400
|
-
loyaltyImport?: LoyaltyImport;
|
|
401
|
-
}
|
|
402
|
-
export interface MessageEnvelope {
|
|
403
|
-
/**
|
|
404
|
-
* App instance ID.
|
|
405
|
-
* @format GUID
|
|
406
|
-
*/
|
|
407
|
-
instanceId?: string | null;
|
|
408
|
-
/**
|
|
409
|
-
* Event type.
|
|
410
|
-
* @maxLength 150
|
|
411
|
-
*/
|
|
412
|
-
eventType?: string;
|
|
413
|
-
/** The identification type and identity data. */
|
|
414
|
-
identity?: IdentificationData;
|
|
415
|
-
/** Stringify payload. */
|
|
416
|
-
data?: string;
|
|
417
|
-
}
|
|
418
|
-
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
419
|
-
/**
|
|
420
|
-
* ID of a site visitor that has not logged in to the site.
|
|
421
|
-
* @format GUID
|
|
422
|
-
*/
|
|
423
|
-
anonymousVisitorId?: string;
|
|
424
|
-
/**
|
|
425
|
-
* ID of a site visitor that has logged in to the site.
|
|
426
|
-
* @format GUID
|
|
427
|
-
*/
|
|
428
|
-
memberId?: string;
|
|
429
|
-
/**
|
|
430
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
431
|
-
* @format GUID
|
|
432
|
-
*/
|
|
433
|
-
wixUserId?: string;
|
|
434
|
-
/**
|
|
435
|
-
* ID of an app.
|
|
436
|
-
* @format GUID
|
|
437
|
-
*/
|
|
438
|
-
appId?: string;
|
|
439
|
-
/** @readonly */
|
|
440
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
441
|
-
}
|
|
442
|
-
/** @oneof */
|
|
443
|
-
export interface IdentificationDataIdOneOf {
|
|
444
|
-
/**
|
|
445
|
-
* ID of a site visitor that has not logged in to the site.
|
|
446
|
-
* @format GUID
|
|
447
|
-
*/
|
|
448
|
-
anonymousVisitorId?: string;
|
|
449
|
-
/**
|
|
450
|
-
* ID of a site visitor that has logged in to the site.
|
|
451
|
-
* @format GUID
|
|
452
|
-
*/
|
|
453
|
-
memberId?: string;
|
|
454
|
-
/**
|
|
455
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
456
|
-
* @format GUID
|
|
457
|
-
*/
|
|
458
|
-
wixUserId?: string;
|
|
459
|
-
/**
|
|
460
|
-
* ID of an app.
|
|
461
|
-
* @format GUID
|
|
462
|
-
*/
|
|
463
|
-
appId?: string;
|
|
464
|
-
}
|
|
465
|
-
export declare enum WebhookIdentityType {
|
|
466
|
-
UNKNOWN = "UNKNOWN",
|
|
467
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
468
|
-
MEMBER = "MEMBER",
|
|
469
|
-
WIX_USER = "WIX_USER",
|
|
470
|
-
APP = "APP"
|
|
471
|
-
}
|
|
472
|
-
/** @enumType */
|
|
473
|
-
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export var ImportStatus;
|
|
2
|
-
(function (ImportStatus) {
|
|
3
|
-
/** Status is unknown or not specified. */
|
|
4
|
-
ImportStatus["UNKNOWN"] = "UNKNOWN";
|
|
5
|
-
/** The import has been initiated but processing has not yet begun. */
|
|
6
|
-
ImportStatus["INITIATED"] = "INITIATED";
|
|
7
|
-
/** The system is currently parsing the import file. */
|
|
8
|
-
ImportStatus["PARSING"] = "PARSING";
|
|
9
|
-
/** The import file has been successfully parsed and is ready for importing. */
|
|
10
|
-
ImportStatus["PARSED"] = "PARSED";
|
|
11
|
-
/** The system is currently importing the parsed data. */
|
|
12
|
-
ImportStatus["IMPORTING"] = "IMPORTING";
|
|
13
|
-
/** The import process is complete. This status indicates the process finished, but doesn't guarantee all data imported successfully. */
|
|
14
|
-
ImportStatus["IMPORTED"] = "IMPORTED";
|
|
15
|
-
/** The import process has failed. */
|
|
16
|
-
ImportStatus["FAILED"] = "FAILED";
|
|
17
|
-
})(ImportStatus || (ImportStatus = {}));
|
|
18
|
-
export var ColumnName;
|
|
19
|
-
(function (ColumnName) {
|
|
20
|
-
/** Column containing the customer's email address. */
|
|
21
|
-
ColumnName["EMAIL"] = "EMAIL";
|
|
22
|
-
/** Column containing the customer's loyalty point balance to be imported or updated. */
|
|
23
|
-
ColumnName["POINTS"] = "POINTS";
|
|
24
|
-
})(ColumnName || (ColumnName = {}));
|
|
25
|
-
export var SortOrder;
|
|
26
|
-
(function (SortOrder) {
|
|
27
|
-
SortOrder["ASC"] = "ASC";
|
|
28
|
-
SortOrder["DESC"] = "DESC";
|
|
29
|
-
})(SortOrder || (SortOrder = {}));
|
|
30
|
-
export var WebhookIdentityType;
|
|
31
|
-
(function (WebhookIdentityType) {
|
|
32
|
-
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
33
|
-
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
34
|
-
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
35
|
-
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
36
|
-
WebhookIdentityType["APP"] = "APP";
|
|
37
|
-
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
38
|
-
//# sourceMappingURL=loyalty-imports-v1-loyalty-import-imports.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty-imports-v1-loyalty-import-imports.types.js","sourceRoot":"","sources":["../../../../src/loyalty-imports-v1-loyalty-import-imports.types.ts"],"names":[],"mappings":"AAiDA,MAAM,CAAN,IAAY,YAeX;AAfD,WAAY,YAAY;IACtB,0CAA0C;IAC1C,mCAAmB,CAAA;IACnB,sEAAsE;IACtE,uCAAuB,CAAA;IACvB,uDAAuD;IACvD,mCAAmB,CAAA;IACnB,+EAA+E;IAC/E,iCAAiB,CAAA;IACjB,yDAAyD;IACzD,uCAAuB,CAAA;IACvB,wIAAwI;IACxI,qCAAqB,CAAA;IACrB,qCAAqC;IACrC,iCAAiB,CAAA;AACnB,CAAC,EAfW,YAAY,KAAZ,YAAY,QAevB;AA4ED,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,sDAAsD;IACtD,6BAAe,CAAA;IACf,wFAAwF;IACxF,+BAAiB,CAAA;AACnB,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB;AAyJD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAsND,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|