@wix/auto_sdk_loyalty_imports 1.0.0
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 +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +16 -0
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js +23 -0
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +1 -0
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +46 -0
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js +243 -0
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +1 -0
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +18 -0
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js +142 -0
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +1 -0
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +77 -0
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js +61 -0
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +1 -0
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts +446 -0
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js +41 -0
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +1 -0
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts +656 -0
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js +326 -0
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +16 -0
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.context.js +16 -0
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +1 -0
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +46 -0
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.http.js +234 -0
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +1 -0
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +18 -0
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js +110 -0
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +1 -0
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +77 -0
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.public.js +48 -0
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +1 -0
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts +446 -0
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.types.js +38 -0
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +1 -0
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts +656 -0
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js +294 -0
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +16 -0
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js +23 -0
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +1 -0
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +46 -0
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js +243 -0
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +1 -0
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +18 -0
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js +142 -0
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +1 -0
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +77 -0
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js +61 -0
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +1 -0
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts +446 -0
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js +41 -0
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +1 -0
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts +656 -0
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js +326 -0
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +16 -0
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.context.js +16 -0
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +1 -0
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +46 -0
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.http.js +234 -0
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +1 -0
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +18 -0
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js +110 -0
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +1 -0
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +77 -0
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.public.js +48 -0
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +1 -0
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts +446 -0
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.types.js +38 -0
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +1 -0
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts +656 -0
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js +294 -0
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { CreateLoyaltyImportFileUrlResponse, CreateLoyaltyImportOptions, CreateLoyaltyImportResponse, CreateLoyaltyImportResponseNonNullableFields, ExecuteLoyaltyImportOptions, ExecuteLoyaltyImportResponse, ExecuteLoyaltyImportResponseNonNullableFields, GetErrorFileDownloadUrlResponse, LoyaltyImport, LoyaltyImportCreatedEnvelope, LoyaltyImportNonNullableFields, LoyaltyImportsQueryBuilder } from './loyalty-imports-v1-loyalty-import-imports.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function createLoyaltyImport(httpClient: HttpClient): CreateLoyaltyImportSignature;
|
|
7
|
+
interface CreateLoyaltyImportSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Creates an import object based on an uploaded file.
|
|
10
|
+
*
|
|
11
|
+
* Call this method after uploading your file to the URL obtained from `createLoyaltyImportFileUrl()`.
|
|
12
|
+
* @param - URL of the file to import.
|
|
13
|
+
*/
|
|
14
|
+
(fileUrl: string | null, options?: CreateLoyaltyImportOptions | undefined): Promise<CreateLoyaltyImportResponse & CreateLoyaltyImportResponseNonNullableFields>;
|
|
15
|
+
}
|
|
16
|
+
export declare function getLoyaltyImport(httpClient: HttpClient): GetLoyaltyImportSignature;
|
|
17
|
+
interface GetLoyaltyImportSignature {
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves a loyalty import.
|
|
20
|
+
* @param - Loyalty import ID.
|
|
21
|
+
* @returns Retrieved loyalty import.
|
|
22
|
+
*/
|
|
23
|
+
(loyaltyImportId: string): Promise<LoyaltyImport & LoyaltyImportNonNullableFields>;
|
|
24
|
+
}
|
|
25
|
+
export declare function getErrorFileDownloadUrl(httpClient: HttpClient): GetErrorFileDownloadUrlSignature;
|
|
26
|
+
interface GetErrorFileDownloadUrlSignature {
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves the download URL for the error file of a failed loyalty import.
|
|
29
|
+
*
|
|
30
|
+
* If an import fails, the `importResult.errorFileExists` field in the `LoyaltyImport` object is set to `true`.
|
|
31
|
+
*
|
|
32
|
+
* Use this method to get the URL of the error file, which contains details about which items couldn't be imported and why.
|
|
33
|
+
* @param - Loyalty import ID.
|
|
34
|
+
*/
|
|
35
|
+
(loyaltyImportId: string): Promise<GetErrorFileDownloadUrlResponse>;
|
|
36
|
+
}
|
|
37
|
+
export declare function executeLoyaltyImport(httpClient: HttpClient): ExecuteLoyaltyImportSignature;
|
|
38
|
+
interface ExecuteLoyaltyImportSignature {
|
|
39
|
+
/**
|
|
40
|
+
* Starts the actual import process for a loyalty import.
|
|
41
|
+
*
|
|
42
|
+
* Call this method after the loyalty import object reaches the `PARSED` status.
|
|
43
|
+
* @param - Loyalty import ID.
|
|
44
|
+
*/
|
|
45
|
+
(loyaltyImportId: string, options?: ExecuteLoyaltyImportOptions | undefined): Promise<ExecuteLoyaltyImportResponse & ExecuteLoyaltyImportResponseNonNullableFields>;
|
|
46
|
+
}
|
|
47
|
+
export declare function createLoyaltyImportFileUrl(httpClient: HttpClient): CreateLoyaltyImportFileUrlSignature;
|
|
48
|
+
interface CreateLoyaltyImportFileUrlSignature {
|
|
49
|
+
/**
|
|
50
|
+
* Creates a URL for uploading a loyalty import file.
|
|
51
|
+
*
|
|
52
|
+
* This method is the first step in the loyalty import process. It returns a file path and an upload URL, which you'll use in subsequent steps of the import process.
|
|
53
|
+
*/
|
|
54
|
+
(): Promise<CreateLoyaltyImportFileUrlResponse>;
|
|
55
|
+
}
|
|
56
|
+
export declare function queryLoyaltyImports(httpClient: HttpClient): QueryLoyaltyImportsSignature;
|
|
57
|
+
interface QueryLoyaltyImportsSignature {
|
|
58
|
+
/**
|
|
59
|
+
* Creates a query to retrieve a list of loyalty imports.
|
|
60
|
+
*
|
|
61
|
+
* The `queryLoyaltyImports()` function builds a query to retrieve a list of imports and returns a `LoyaltyImportsQueryBuilder` object.
|
|
62
|
+
*
|
|
63
|
+
* The returned object contains the query definition, which is typically used to run the query using the `find()` function.
|
|
64
|
+
*
|
|
65
|
+
* You can refine the query by chaining `LoyaltyImportsQueryBuilder` functions onto the query. `LoyaltyImportsQueryBuilder` functions enable you to sort, filter, and control the results `queryLoyaltyImports()` returns.
|
|
66
|
+
*
|
|
67
|
+
* `queryLoyaltyImports()` runs with these `LoyaltyImportsQueryBuilder` defaults, which you can override:
|
|
68
|
+
*
|
|
69
|
+
* - `limit(50)`
|
|
70
|
+
* - `descending("_createdDate")`
|
|
71
|
+
*
|
|
72
|
+
* The functions that are chained to `queryLoyaltyImports()` are applied in the order they're called. For example, if you apply ascending('status') and then descending('_createdDate'), the results are sorted first by the status, and then, if there are multiple results with the same status, the items are sorted by the created date.
|
|
73
|
+
*/
|
|
74
|
+
(): LoyaltyImportsQueryBuilder;
|
|
75
|
+
}
|
|
76
|
+
export declare const onLoyaltyImportCreated: EventDefinition<LoyaltyImportCreatedEnvelope, "wix.loyalty.imports.v1.loyalty_import_created">;
|
|
77
|
+
export { ActionEvent, BaseEventMetadata, ColumnName, CreateLoyaltyImportFileUrlRequest, CreateLoyaltyImportFileUrlResponse, CreateLoyaltyImportOptions, CreateLoyaltyImportRequest, CreateLoyaltyImportResponse, CreateLoyaltyImportResponseNonNullableFields, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteLoyaltyImportRequest, DeleteLoyaltyImportResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExecuteLoyaltyImportOptions, ExecuteLoyaltyImportRequest, ExecuteLoyaltyImportResponse, ExecuteLoyaltyImportResponseNonNullableFields, FileHeader, FileMetadata, GetErrorFileDownloadUrlRequest, GetErrorFileDownloadUrlResponse, GetLoyaltyImportRequest, GetLoyaltyImportResponse, GetLoyaltyImportResponseNonNullableFields, HeaderMapping, HeaderMappingInfo, IdentificationData, IdentificationDataIdOneOf, ImportFinished, ImportResult, ImportStatus, LoyaltyImport, LoyaltyImportCreatedEnvelope, LoyaltyImportNonNullableFields, LoyaltyImportsQueryBuilder, LoyaltyImportsQueryResult, MessageEnvelope, ParseResult, QueryLoyaltyImportsRequest, QueryLoyaltyImportsResponse, QueryLoyaltyImportsResponseNonNullableFields, RestoreInfo, SampleDataRow, SortOrder, Sorting, WebhookIdentityType, } from './loyalty-imports-v1-loyalty-import-imports.universal.js';
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.SortOrder = exports.ImportStatus = exports.ColumnName = exports.onLoyaltyImportCreated = exports.queryLoyaltyImports = exports.createLoyaltyImportFileUrl = exports.executeLoyaltyImport = exports.getErrorFileDownloadUrl = exports.getLoyaltyImport = exports.createLoyaltyImport = exports.__metadata = void 0;
|
|
4
|
+
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
5
|
+
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
6
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
7
|
+
const sdk_types_1 = require("@wix/sdk-types");
|
|
8
|
+
const loyalty_imports_v1_loyalty_import_imports_universal_js_1 = require("./loyalty-imports-v1-loyalty-import-imports.universal.js");
|
|
9
|
+
exports.__metadata = { PACKAGE_NAME: '@wix/loyalty' };
|
|
10
|
+
function createLoyaltyImport(httpClient) {
|
|
11
|
+
return (fileUrl, options) => (0, loyalty_imports_v1_loyalty_import_imports_universal_js_1.createLoyaltyImport)(fileUrl, options,
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
{ httpClient });
|
|
14
|
+
}
|
|
15
|
+
exports.createLoyaltyImport = createLoyaltyImport;
|
|
16
|
+
function getLoyaltyImport(httpClient) {
|
|
17
|
+
return (loyaltyImportId) => (0, loyalty_imports_v1_loyalty_import_imports_universal_js_1.getLoyaltyImport)(loyaltyImportId,
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
{ httpClient });
|
|
20
|
+
}
|
|
21
|
+
exports.getLoyaltyImport = getLoyaltyImport;
|
|
22
|
+
function getErrorFileDownloadUrl(httpClient) {
|
|
23
|
+
return (loyaltyImportId) => (0, loyalty_imports_v1_loyalty_import_imports_universal_js_1.getErrorFileDownloadUrl)(loyaltyImportId,
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
{ httpClient });
|
|
26
|
+
}
|
|
27
|
+
exports.getErrorFileDownloadUrl = getErrorFileDownloadUrl;
|
|
28
|
+
function executeLoyaltyImport(httpClient) {
|
|
29
|
+
return (loyaltyImportId, options) => (0, loyalty_imports_v1_loyalty_import_imports_universal_js_1.executeLoyaltyImport)(loyaltyImportId, options,
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
{ httpClient });
|
|
32
|
+
}
|
|
33
|
+
exports.executeLoyaltyImport = executeLoyaltyImport;
|
|
34
|
+
function createLoyaltyImportFileUrl(httpClient) {
|
|
35
|
+
return () => (0, loyalty_imports_v1_loyalty_import_imports_universal_js_1.createLoyaltyImportFileUrl)(
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
{ httpClient });
|
|
38
|
+
}
|
|
39
|
+
exports.createLoyaltyImportFileUrl = createLoyaltyImportFileUrl;
|
|
40
|
+
function queryLoyaltyImports(httpClient) {
|
|
41
|
+
return () => (0, loyalty_imports_v1_loyalty_import_imports_universal_js_1.queryLoyaltyImports)(
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
{ httpClient });
|
|
44
|
+
}
|
|
45
|
+
exports.queryLoyaltyImports = queryLoyaltyImports;
|
|
46
|
+
exports.onLoyaltyImportCreated = (0, sdk_types_1.EventDefinition)('wix.loyalty.imports.v1.loyalty_import_created', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
47
|
+
{
|
|
48
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
49
|
+
paths: [
|
|
50
|
+
{ path: 'entity.createdDate' },
|
|
51
|
+
{ path: 'entity.updatedDate' },
|
|
52
|
+
{ path: 'metadata.eventTime' },
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
])))();
|
|
56
|
+
var loyalty_imports_v1_loyalty_import_imports_universal_js_2 = require("./loyalty-imports-v1-loyalty-import-imports.universal.js");
|
|
57
|
+
Object.defineProperty(exports, "ColumnName", { enumerable: true, get: function () { return loyalty_imports_v1_loyalty_import_imports_universal_js_2.ColumnName; } });
|
|
58
|
+
Object.defineProperty(exports, "ImportStatus", { enumerable: true, get: function () { return loyalty_imports_v1_loyalty_import_imports_universal_js_2.ImportStatus; } });
|
|
59
|
+
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return loyalty_imports_v1_loyalty_import_imports_universal_js_2.SortOrder; } });
|
|
60
|
+
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return loyalty_imports_v1_loyalty_import_imports_universal_js_2.WebhookIdentityType; } });
|
|
61
|
+
//# sourceMappingURL=loyalty-imports-v1-loyalty-import-imports.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loyalty-imports-v1-loyalty-import-imports.public.js","sourceRoot":"","sources":["../../../src/loyalty-imports-v1-loyalty-import-imports.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA6D;AAC7D,qIAmBkE;AAErD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAE3D,SAAgB,mBAAmB,CACjC,UAAsB;IAEtB,OAAO,CAAC,OAAsB,EAAE,OAAoC,EAAE,EAAE,CACtE,IAAA,4EAA4B,EAC1B,OAAO,EACP,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAVD,kDAUC;AAiBD,SAAgB,gBAAgB,CAC9B,UAAsB;IAEtB,OAAO,CAAC,eAAuB,EAAE,EAAE,CACjC,IAAA,yEAAyB,EACvB,eAAe;IACf,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,4CASC;AAaD,SAAgB,uBAAuB,CACrC,UAAsB;IAEtB,OAAO,CAAC,eAAuB,EAAE,EAAE,CACjC,IAAA,gFAAgC,EAC9B,eAAe;IACf,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,0DASC;AAcD,SAAgB,oBAAoB,CAClC,UAAsB;IAEtB,OAAO,CAAC,eAAuB,EAAE,OAAqC,EAAE,EAAE,CACxE,IAAA,6EAA6B,EAC3B,eAAe,EACf,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAVD,oDAUC;AAiBD,SAAgB,0BAA0B,CACxC,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,IAAA,mFAAmC;IACjC,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,gEAQC;AAWD,SAAgB,mBAAmB,CACjC,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,IAAA,4EAA4B;IAC1B,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,kDAQC;AAsBY,QAAA,sBAAsB,GAAG,IAAA,2BAAe,EACnD,+CAA+C,EAC/C,IAAI,EACJ,CAAC,KAAmC,EAAE,EAAE,CACtC,IAAA,gEAAuC,EACrC,IAAA,gCAAc,EAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,gDAAoC;QACjD,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;SAC/B;KACF;CACF,CAAC,CACH,CACJ,EAAgC,CAAC;AAElC,mIAyDkE;AAtDhE,oJAAA,UAAU,OAAA;AAsCV,sJAAA,YAAY,OAAA;AAaZ,mJAAA,SAAS,OAAA;AAET,6JAAA,mBAAmB,OAAA"}
|
|
@@ -0,0 +1,446 @@
|
|
|
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
|
+
* @readonly
|
|
10
|
+
*/
|
|
11
|
+
id?: string | null;
|
|
12
|
+
/**
|
|
13
|
+
* ID of the asynchronous import job associated with this import.
|
|
14
|
+
* @readonly
|
|
15
|
+
*/
|
|
16
|
+
asyncImportJobId?: string | null;
|
|
17
|
+
/**
|
|
18
|
+
* Revision number, which increments by 1 each time the Loyalty Import is updated.
|
|
19
|
+
* To prevent conflicting changes, the current revision must be passed when updating the Loyalty Import.
|
|
20
|
+
*
|
|
21
|
+
* Ignored when creating a Loyalty Import.
|
|
22
|
+
* @readonly
|
|
23
|
+
*/
|
|
24
|
+
revision?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Date and time the Loyalty Import was created.
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
createdDate?: Date | null;
|
|
30
|
+
/**
|
|
31
|
+
* Date and time the Loyalty Import was last updated.
|
|
32
|
+
* @readonly
|
|
33
|
+
*/
|
|
34
|
+
updatedDate?: Date | null;
|
|
35
|
+
/**
|
|
36
|
+
* Current status of the import process.
|
|
37
|
+
* @readonly
|
|
38
|
+
*/
|
|
39
|
+
status?: ImportStatus;
|
|
40
|
+
/** Metadata of the uploaded file containing loyalty points data. */
|
|
41
|
+
fileMetadata?: FileMetadata;
|
|
42
|
+
/** Results of parsing the uploaded file, including the number of rows parsed and any parse errors. */
|
|
43
|
+
parseResult?: ParseResult;
|
|
44
|
+
/** Results of the import process, including success and failure counts. */
|
|
45
|
+
importResult?: ImportResult;
|
|
46
|
+
}
|
|
47
|
+
export declare enum ImportStatus {
|
|
48
|
+
/** Status is unknown or not specified. */
|
|
49
|
+
UNKNOWN = "UNKNOWN",
|
|
50
|
+
/** The import has been initiated but processing has not yet begun. */
|
|
51
|
+
INITIATED = "INITIATED",
|
|
52
|
+
/** The system is currently parsing the import file. */
|
|
53
|
+
PARSING = "PARSING",
|
|
54
|
+
/** The import file has been successfully parsed and is ready for importing. */
|
|
55
|
+
PARSED = "PARSED",
|
|
56
|
+
/** The system is currently importing the parsed data. */
|
|
57
|
+
IMPORTING = "IMPORTING",
|
|
58
|
+
/** The import process is complete. This status indicates the process finished, but doesn't guarantee all data imported successfully. */
|
|
59
|
+
IMPORTED = "IMPORTED",
|
|
60
|
+
/** The import process has failed. */
|
|
61
|
+
FAILED = "FAILED"
|
|
62
|
+
}
|
|
63
|
+
export interface FileMetadata {
|
|
64
|
+
/**
|
|
65
|
+
* Size of the uploaded file in bytes. Max: `10 MB`.
|
|
66
|
+
* @readonly
|
|
67
|
+
*/
|
|
68
|
+
size?: number | null;
|
|
69
|
+
/**
|
|
70
|
+
* Name of the uploaded file.
|
|
71
|
+
* @readonly
|
|
72
|
+
*/
|
|
73
|
+
name?: string | null;
|
|
74
|
+
/** URL of the uploaded file. */
|
|
75
|
+
url?: string;
|
|
76
|
+
/** Column headings from the first row of the uploaded CSV file. */
|
|
77
|
+
header?: FileHeader;
|
|
78
|
+
/**
|
|
79
|
+
* Mapping between loyalty data fields and the corresponding columns in the uploaded file.
|
|
80
|
+
*
|
|
81
|
+
* Must include mappings for both `EMAIL` and `POINTS` to be valid.
|
|
82
|
+
*/
|
|
83
|
+
headerMappingInfo?: HeaderMappingInfo;
|
|
84
|
+
/** Up to 5 sample rows from the import file, providing a preview of the data to be imported. */
|
|
85
|
+
sampleDataRows?: SampleDataRow[];
|
|
86
|
+
}
|
|
87
|
+
export interface FileHeader {
|
|
88
|
+
/** Column headings from the first row of the uploaded file. */
|
|
89
|
+
values?: string[];
|
|
90
|
+
}
|
|
91
|
+
export interface HeaderMappingInfo {
|
|
92
|
+
/**
|
|
93
|
+
* Mappings between required loyalty data fields and file columns.
|
|
94
|
+
* Must contain exactly 2 mappings: one for `EMAIL` and one for `POINTS`.
|
|
95
|
+
*/
|
|
96
|
+
headerMappings?: HeaderMapping[];
|
|
97
|
+
}
|
|
98
|
+
export interface HeaderMapping {
|
|
99
|
+
/** The required loyalty data field that this mapping corresponds to. Must be either `EMAIL` or `POINTS`. */
|
|
100
|
+
columnName?: ColumnName;
|
|
101
|
+
/**
|
|
102
|
+
* The zero-based index of the column in the uploaded file that contains the data for this loyalty field.
|
|
103
|
+
* For example, if the email addresses are in the second column of the CSV file, this value would be 1.
|
|
104
|
+
*/
|
|
105
|
+
columnIndex?: number;
|
|
106
|
+
}
|
|
107
|
+
export declare enum ColumnName {
|
|
108
|
+
/** Column containing the customer's email address. */
|
|
109
|
+
EMAIL = "EMAIL",
|
|
110
|
+
/** Column containing the customer's loyalty point balance to be imported or updated. */
|
|
111
|
+
POINTS = "POINTS"
|
|
112
|
+
}
|
|
113
|
+
export interface SampleDataRow {
|
|
114
|
+
/**
|
|
115
|
+
* Values in one sample data row. Each value corresponds to a column in the CSV file.
|
|
116
|
+
* The number of values matches the number of columns in the file.
|
|
117
|
+
*/
|
|
118
|
+
values?: string[];
|
|
119
|
+
}
|
|
120
|
+
export interface ParseResult {
|
|
121
|
+
/**
|
|
122
|
+
* Number of rows parsed from the uploaded import file.
|
|
123
|
+
* @readonly
|
|
124
|
+
*/
|
|
125
|
+
parsedRowCount?: number | null;
|
|
126
|
+
/**
|
|
127
|
+
* Reason code explaining why parsing failed, if applicable.
|
|
128
|
+
* @readonly
|
|
129
|
+
*/
|
|
130
|
+
parseErrorReason?: string | null;
|
|
131
|
+
}
|
|
132
|
+
export interface ImportResult {
|
|
133
|
+
/** Whether an error file detailing import failures is available for download. The file includes row-by-row import status, error reasons, and original data. */
|
|
134
|
+
errorFileExists?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Number of rows successfully imported.
|
|
137
|
+
* @readonly
|
|
138
|
+
*/
|
|
139
|
+
successCount?: number | null;
|
|
140
|
+
/**
|
|
141
|
+
* Number of rows that failed to import due to errors.
|
|
142
|
+
* @readonly
|
|
143
|
+
*/
|
|
144
|
+
failureCount?: number | null;
|
|
145
|
+
}
|
|
146
|
+
export interface CreateLoyaltyImportRequest {
|
|
147
|
+
/** URL of the file to import. */
|
|
148
|
+
fileUrl: string | null;
|
|
149
|
+
/** Name of the file to import. */
|
|
150
|
+
fileName?: string | null;
|
|
151
|
+
/** Size of the file to import, in bytes. */
|
|
152
|
+
fileSize?: number | null;
|
|
153
|
+
}
|
|
154
|
+
export interface CreateLoyaltyImportResponse {
|
|
155
|
+
/** Created loyalty import. */
|
|
156
|
+
loyaltyImport?: LoyaltyImport;
|
|
157
|
+
}
|
|
158
|
+
export interface GetLoyaltyImportRequest {
|
|
159
|
+
/** Loyalty import ID. */
|
|
160
|
+
loyaltyImportId: string;
|
|
161
|
+
}
|
|
162
|
+
export interface GetLoyaltyImportResponse {
|
|
163
|
+
/** Retrieved loyalty import. */
|
|
164
|
+
loyaltyImport?: LoyaltyImport;
|
|
165
|
+
}
|
|
166
|
+
export interface GetErrorFileDownloadUrlRequest {
|
|
167
|
+
/** Loyalty import ID. */
|
|
168
|
+
loyaltyImportId: string;
|
|
169
|
+
}
|
|
170
|
+
export interface GetErrorFileDownloadUrlResponse {
|
|
171
|
+
/** URL for downloading the error file. */
|
|
172
|
+
url?: string | null;
|
|
173
|
+
}
|
|
174
|
+
export interface ExecuteLoyaltyImportRequest {
|
|
175
|
+
/** Loyalty import ID. */
|
|
176
|
+
loyaltyImportId: string;
|
|
177
|
+
/** Header mapping information for the import file. */
|
|
178
|
+
headerMappingInfo?: HeaderMappingInfo;
|
|
179
|
+
}
|
|
180
|
+
export interface ExecuteLoyaltyImportResponse {
|
|
181
|
+
/** Executed loyalty import. */
|
|
182
|
+
loyaltyImport?: LoyaltyImport;
|
|
183
|
+
}
|
|
184
|
+
export interface CreateLoyaltyImportFileUrlRequest {
|
|
185
|
+
}
|
|
186
|
+
export interface CreateLoyaltyImportFileUrlResponse {
|
|
187
|
+
/** Path where the file will be stored. */
|
|
188
|
+
filePath?: string | null;
|
|
189
|
+
/** URL for uploading the loyalty import file. */
|
|
190
|
+
uploadUrl?: string | null;
|
|
191
|
+
}
|
|
192
|
+
export interface QueryLoyaltyImportsRequest {
|
|
193
|
+
/**
|
|
194
|
+
* Filter object.
|
|
195
|
+
* See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
|
|
196
|
+
* for more information.
|
|
197
|
+
*
|
|
198
|
+
* For a detailed list of supported filters, see
|
|
199
|
+
* [Supported Filters](https://dev.wix.com/api/rest/wix-loyalty-program/loyalty-imports/supported-filters).
|
|
200
|
+
*/
|
|
201
|
+
query: CursorQuery;
|
|
202
|
+
}
|
|
203
|
+
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
204
|
+
/**
|
|
205
|
+
* Cursor paging options.
|
|
206
|
+
*
|
|
207
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
208
|
+
*/
|
|
209
|
+
cursorPaging?: CursorPaging;
|
|
210
|
+
/**
|
|
211
|
+
* Filter object.
|
|
212
|
+
*
|
|
213
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
214
|
+
*/
|
|
215
|
+
filter?: Record<string, any> | null;
|
|
216
|
+
/**
|
|
217
|
+
* Sort object.
|
|
218
|
+
*
|
|
219
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
220
|
+
*/
|
|
221
|
+
sort?: Sorting[];
|
|
222
|
+
}
|
|
223
|
+
/** @oneof */
|
|
224
|
+
export interface CursorQueryPagingMethodOneOf {
|
|
225
|
+
/**
|
|
226
|
+
* Cursor paging options.
|
|
227
|
+
*
|
|
228
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
229
|
+
*/
|
|
230
|
+
cursorPaging?: CursorPaging;
|
|
231
|
+
}
|
|
232
|
+
export interface Sorting {
|
|
233
|
+
/** Name of the field to sort by. */
|
|
234
|
+
fieldName?: string;
|
|
235
|
+
/** Sort order. */
|
|
236
|
+
order?: SortOrder;
|
|
237
|
+
}
|
|
238
|
+
export declare enum SortOrder {
|
|
239
|
+
ASC = "ASC",
|
|
240
|
+
DESC = "DESC"
|
|
241
|
+
}
|
|
242
|
+
export interface CursorPaging {
|
|
243
|
+
/** Maximum number of items to return in the results. */
|
|
244
|
+
limit?: number | null;
|
|
245
|
+
/**
|
|
246
|
+
* Pointer to the next or previous page in the list of results.
|
|
247
|
+
*
|
|
248
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
249
|
+
* Not relevant for the first request.
|
|
250
|
+
*/
|
|
251
|
+
cursor?: string | null;
|
|
252
|
+
}
|
|
253
|
+
export interface QueryLoyaltyImportsResponse {
|
|
254
|
+
/** List of loyalty imports matching the query. */
|
|
255
|
+
loyaltyImports?: LoyaltyImport[];
|
|
256
|
+
/** Paging metadata. */
|
|
257
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
258
|
+
}
|
|
259
|
+
export interface CursorPagingMetadata {
|
|
260
|
+
/** Number of items returned in current page. */
|
|
261
|
+
count?: number | null;
|
|
262
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
263
|
+
cursors?: Cursors;
|
|
264
|
+
/**
|
|
265
|
+
* Whether there are more pages to retrieve following the current page.
|
|
266
|
+
*
|
|
267
|
+
* + `true`: Another page of results can be retrieved.
|
|
268
|
+
* + `false`: This is the last page.
|
|
269
|
+
*/
|
|
270
|
+
hasNext?: boolean | null;
|
|
271
|
+
}
|
|
272
|
+
export interface Cursors {
|
|
273
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
274
|
+
next?: string | null;
|
|
275
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
276
|
+
prev?: string | null;
|
|
277
|
+
}
|
|
278
|
+
export interface DeleteLoyaltyImportRequest {
|
|
279
|
+
/** Loyalty import ID. */
|
|
280
|
+
loyaltyImportId?: string;
|
|
281
|
+
/**
|
|
282
|
+
* Revision number, which increments by 1 each time the loyalty import is updated.
|
|
283
|
+
* To prevent conflicting changes, the current revision must be passed when updating the loyalty import.
|
|
284
|
+
*/
|
|
285
|
+
revision?: string;
|
|
286
|
+
}
|
|
287
|
+
export interface DeleteLoyaltyImportResponse {
|
|
288
|
+
}
|
|
289
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
290
|
+
createdEvent?: EntityCreatedEvent;
|
|
291
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
292
|
+
deletedEvent?: EntityDeletedEvent;
|
|
293
|
+
actionEvent?: ActionEvent;
|
|
294
|
+
/**
|
|
295
|
+
* Unique event ID.
|
|
296
|
+
* Allows clients to ignore duplicate webhooks.
|
|
297
|
+
*/
|
|
298
|
+
id?: string;
|
|
299
|
+
/**
|
|
300
|
+
* Assumes actions are also always typed to an entity_type
|
|
301
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
302
|
+
*/
|
|
303
|
+
entityFqdn?: string;
|
|
304
|
+
/**
|
|
305
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
306
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
307
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
308
|
+
*/
|
|
309
|
+
slug?: string;
|
|
310
|
+
/** ID of the entity associated with the event. */
|
|
311
|
+
entityId?: string;
|
|
312
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
313
|
+
eventTime?: Date | null;
|
|
314
|
+
/**
|
|
315
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
316
|
+
* (for example, GDPR).
|
|
317
|
+
*/
|
|
318
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
319
|
+
/** If present, indicates the action that triggered the event. */
|
|
320
|
+
originatedFrom?: string | null;
|
|
321
|
+
/**
|
|
322
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
323
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
324
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
325
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
326
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
327
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
328
|
+
*/
|
|
329
|
+
entityEventSequence?: string | null;
|
|
330
|
+
}
|
|
331
|
+
/** @oneof */
|
|
332
|
+
export interface DomainEventBodyOneOf {
|
|
333
|
+
createdEvent?: EntityCreatedEvent;
|
|
334
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
335
|
+
deletedEvent?: EntityDeletedEvent;
|
|
336
|
+
actionEvent?: ActionEvent;
|
|
337
|
+
}
|
|
338
|
+
export interface EntityCreatedEvent {
|
|
339
|
+
entityAsJson?: string;
|
|
340
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
341
|
+
restoreInfo?: RestoreInfo;
|
|
342
|
+
}
|
|
343
|
+
export interface RestoreInfo {
|
|
344
|
+
deletedDate?: Date | null;
|
|
345
|
+
}
|
|
346
|
+
export interface EntityUpdatedEvent {
|
|
347
|
+
/**
|
|
348
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
349
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
350
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
351
|
+
*/
|
|
352
|
+
currentEntityAsJson?: string;
|
|
353
|
+
}
|
|
354
|
+
export interface EntityDeletedEvent {
|
|
355
|
+
/** Entity that was deleted */
|
|
356
|
+
deletedEntityAsJson?: string | null;
|
|
357
|
+
}
|
|
358
|
+
export interface ActionEvent {
|
|
359
|
+
bodyAsJson?: string;
|
|
360
|
+
}
|
|
361
|
+
export interface Empty {
|
|
362
|
+
}
|
|
363
|
+
export interface ImportFinished {
|
|
364
|
+
/** Completed loyalty import. */
|
|
365
|
+
loyaltyImport?: LoyaltyImport;
|
|
366
|
+
}
|
|
367
|
+
export interface MessageEnvelope {
|
|
368
|
+
/** App instance ID. */
|
|
369
|
+
instanceId?: string | null;
|
|
370
|
+
/** Event type. */
|
|
371
|
+
eventType?: string;
|
|
372
|
+
/** The identification type and identity data. */
|
|
373
|
+
identity?: IdentificationData;
|
|
374
|
+
/** Stringify payload. */
|
|
375
|
+
data?: string;
|
|
376
|
+
}
|
|
377
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
378
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
379
|
+
anonymousVisitorId?: string;
|
|
380
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
381
|
+
memberId?: string;
|
|
382
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
383
|
+
wixUserId?: string;
|
|
384
|
+
/** ID of an app. */
|
|
385
|
+
appId?: string;
|
|
386
|
+
/** @readonly */
|
|
387
|
+
identityType?: WebhookIdentityType;
|
|
388
|
+
}
|
|
389
|
+
/** @oneof */
|
|
390
|
+
export interface IdentificationDataIdOneOf {
|
|
391
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
392
|
+
anonymousVisitorId?: string;
|
|
393
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
394
|
+
memberId?: string;
|
|
395
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
396
|
+
wixUserId?: string;
|
|
397
|
+
/** ID of an app. */
|
|
398
|
+
appId?: string;
|
|
399
|
+
}
|
|
400
|
+
export declare enum WebhookIdentityType {
|
|
401
|
+
UNKNOWN = "UNKNOWN",
|
|
402
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
403
|
+
MEMBER = "MEMBER",
|
|
404
|
+
WIX_USER = "WIX_USER",
|
|
405
|
+
APP = "APP"
|
|
406
|
+
}
|
|
407
|
+
interface FileHeaderNonNullableFields {
|
|
408
|
+
values: string[];
|
|
409
|
+
}
|
|
410
|
+
interface HeaderMappingNonNullableFields {
|
|
411
|
+
columnName: ColumnName;
|
|
412
|
+
columnIndex: number;
|
|
413
|
+
}
|
|
414
|
+
interface HeaderMappingInfoNonNullableFields {
|
|
415
|
+
headerMappings: HeaderMappingNonNullableFields[];
|
|
416
|
+
}
|
|
417
|
+
interface SampleDataRowNonNullableFields {
|
|
418
|
+
values: string[];
|
|
419
|
+
}
|
|
420
|
+
interface FileMetadataNonNullableFields {
|
|
421
|
+
url: string;
|
|
422
|
+
header?: FileHeaderNonNullableFields;
|
|
423
|
+
headerMappingInfo?: HeaderMappingInfoNonNullableFields;
|
|
424
|
+
sampleDataRows: SampleDataRowNonNullableFields[];
|
|
425
|
+
}
|
|
426
|
+
interface ImportResultNonNullableFields {
|
|
427
|
+
errorFileExists: boolean;
|
|
428
|
+
}
|
|
429
|
+
interface LoyaltyImportNonNullableFields {
|
|
430
|
+
status: ImportStatus;
|
|
431
|
+
fileMetadata?: FileMetadataNonNullableFields;
|
|
432
|
+
importResult?: ImportResultNonNullableFields;
|
|
433
|
+
}
|
|
434
|
+
export interface CreateLoyaltyImportResponseNonNullableFields {
|
|
435
|
+
loyaltyImport?: LoyaltyImportNonNullableFields;
|
|
436
|
+
}
|
|
437
|
+
export interface GetLoyaltyImportResponseNonNullableFields {
|
|
438
|
+
loyaltyImport?: LoyaltyImportNonNullableFields;
|
|
439
|
+
}
|
|
440
|
+
export interface ExecuteLoyaltyImportResponseNonNullableFields {
|
|
441
|
+
loyaltyImport?: LoyaltyImportNonNullableFields;
|
|
442
|
+
}
|
|
443
|
+
export interface QueryLoyaltyImportsResponseNonNullableFields {
|
|
444
|
+
loyaltyImports: LoyaltyImportNonNullableFields[];
|
|
445
|
+
}
|
|
446
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.SortOrder = exports.ColumnName = exports.ImportStatus = void 0;
|
|
4
|
+
var ImportStatus;
|
|
5
|
+
(function (ImportStatus) {
|
|
6
|
+
/** Status is unknown or not specified. */
|
|
7
|
+
ImportStatus["UNKNOWN"] = "UNKNOWN";
|
|
8
|
+
/** The import has been initiated but processing has not yet begun. */
|
|
9
|
+
ImportStatus["INITIATED"] = "INITIATED";
|
|
10
|
+
/** The system is currently parsing the import file. */
|
|
11
|
+
ImportStatus["PARSING"] = "PARSING";
|
|
12
|
+
/** The import file has been successfully parsed and is ready for importing. */
|
|
13
|
+
ImportStatus["PARSED"] = "PARSED";
|
|
14
|
+
/** The system is currently importing the parsed data. */
|
|
15
|
+
ImportStatus["IMPORTING"] = "IMPORTING";
|
|
16
|
+
/** The import process is complete. This status indicates the process finished, but doesn't guarantee all data imported successfully. */
|
|
17
|
+
ImportStatus["IMPORTED"] = "IMPORTED";
|
|
18
|
+
/** The import process has failed. */
|
|
19
|
+
ImportStatus["FAILED"] = "FAILED";
|
|
20
|
+
})(ImportStatus || (exports.ImportStatus = ImportStatus = {}));
|
|
21
|
+
var ColumnName;
|
|
22
|
+
(function (ColumnName) {
|
|
23
|
+
/** Column containing the customer's email address. */
|
|
24
|
+
ColumnName["EMAIL"] = "EMAIL";
|
|
25
|
+
/** Column containing the customer's loyalty point balance to be imported or updated. */
|
|
26
|
+
ColumnName["POINTS"] = "POINTS";
|
|
27
|
+
})(ColumnName || (exports.ColumnName = ColumnName = {}));
|
|
28
|
+
var SortOrder;
|
|
29
|
+
(function (SortOrder) {
|
|
30
|
+
SortOrder["ASC"] = "ASC";
|
|
31
|
+
SortOrder["DESC"] = "DESC";
|
|
32
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
33
|
+
var WebhookIdentityType;
|
|
34
|
+
(function (WebhookIdentityType) {
|
|
35
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
36
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
37
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
38
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
39
|
+
WebhookIdentityType["APP"] = "APP";
|
|
40
|
+
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
|
|
41
|
+
//# sourceMappingURL=loyalty-imports-v1-loyalty-import-imports.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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":";;;AA+CA,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,4BAAZ,YAAY,QAevB;AAkDD,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,sDAAsD;IACtD,6BAAe,CAAA;IACf,wFAAwF;IACxF,+BAAiB,CAAA;AACnB,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB;AA+ID,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAgLD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|