@wix/auto_sdk_loyalty_imports 1.0.26 → 1.0.27

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.
@@ -318,6 +318,162 @@ interface Cursors {
318
318
  */
319
319
  prev?: string | null;
320
320
  }
321
+ interface DeleteLoyaltyImportRequest {
322
+ /**
323
+ * Loyalty import ID.
324
+ * @format GUID
325
+ */
326
+ loyaltyImportId?: string;
327
+ /**
328
+ * Revision number, which increments by 1 each time the loyalty import is updated.
329
+ * To prevent conflicting changes, the current `revision` must be passed when updating the loyalty import.
330
+ */
331
+ revision?: string;
332
+ }
333
+ interface DeleteLoyaltyImportResponse {
334
+ }
335
+ interface DomainEvent extends DomainEventBodyOneOf {
336
+ createdEvent?: EntityCreatedEvent;
337
+ updatedEvent?: EntityUpdatedEvent;
338
+ deletedEvent?: EntityDeletedEvent;
339
+ actionEvent?: ActionEvent;
340
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
341
+ id?: string;
342
+ /**
343
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
344
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
345
+ */
346
+ entityFqdn?: string;
347
+ /**
348
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
349
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
350
+ */
351
+ slug?: string;
352
+ /** ID of the entity associated with the event. */
353
+ entityId?: string;
354
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
355
+ eventTime?: Date | null;
356
+ /**
357
+ * Whether the event was triggered as a result of a privacy regulation application
358
+ * (for example, GDPR).
359
+ */
360
+ triggeredByAnonymizeRequest?: boolean | null;
361
+ /** If present, indicates the action that triggered the event. */
362
+ originatedFrom?: string | null;
363
+ /**
364
+ * 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.
365
+ * 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.
366
+ */
367
+ entityEventSequence?: string | null;
368
+ }
369
+ /** @oneof */
370
+ interface DomainEventBodyOneOf {
371
+ createdEvent?: EntityCreatedEvent;
372
+ updatedEvent?: EntityUpdatedEvent;
373
+ deletedEvent?: EntityDeletedEvent;
374
+ actionEvent?: ActionEvent;
375
+ }
376
+ interface EntityCreatedEvent {
377
+ entityAsJson?: string;
378
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
379
+ restoreInfo?: RestoreInfo;
380
+ }
381
+ interface RestoreInfo {
382
+ deletedDate?: Date | null;
383
+ }
384
+ interface EntityUpdatedEvent {
385
+ /**
386
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
387
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
388
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
389
+ */
390
+ currentEntityAsJson?: string;
391
+ }
392
+ interface EntityDeletedEvent {
393
+ /** Entity that was deleted. */
394
+ deletedEntityAsJson?: string | null;
395
+ }
396
+ interface ActionEvent {
397
+ bodyAsJson?: string;
398
+ }
399
+ interface Empty {
400
+ }
401
+ interface ImportFinished {
402
+ /** Completed loyalty import. */
403
+ loyaltyImport?: LoyaltyImport;
404
+ }
405
+ interface MessageEnvelope {
406
+ /**
407
+ * App instance ID.
408
+ * @format GUID
409
+ */
410
+ instanceId?: string | null;
411
+ /**
412
+ * Event type.
413
+ * @maxLength 150
414
+ */
415
+ eventType?: string;
416
+ /** The identification type and identity data. */
417
+ identity?: IdentificationData;
418
+ /** Stringify payload. */
419
+ data?: string;
420
+ }
421
+ interface IdentificationData extends IdentificationDataIdOneOf {
422
+ /**
423
+ * ID of a site visitor that has not logged in to the site.
424
+ * @format GUID
425
+ */
426
+ anonymousVisitorId?: string;
427
+ /**
428
+ * ID of a site visitor that has logged in to the site.
429
+ * @format GUID
430
+ */
431
+ memberId?: string;
432
+ /**
433
+ * ID of a Wix user (site owner, contributor, etc.).
434
+ * @format GUID
435
+ */
436
+ wixUserId?: string;
437
+ /**
438
+ * ID of an app.
439
+ * @format GUID
440
+ */
441
+ appId?: string;
442
+ /** @readonly */
443
+ identityType?: WebhookIdentityTypeWithLiterals;
444
+ }
445
+ /** @oneof */
446
+ interface IdentificationDataIdOneOf {
447
+ /**
448
+ * ID of a site visitor that has not logged in to the site.
449
+ * @format GUID
450
+ */
451
+ anonymousVisitorId?: string;
452
+ /**
453
+ * ID of a site visitor that has logged in to the site.
454
+ * @format GUID
455
+ */
456
+ memberId?: string;
457
+ /**
458
+ * ID of a Wix user (site owner, contributor, etc.).
459
+ * @format GUID
460
+ */
461
+ wixUserId?: string;
462
+ /**
463
+ * ID of an app.
464
+ * @format GUID
465
+ */
466
+ appId?: string;
467
+ }
468
+ declare enum WebhookIdentityType {
469
+ UNKNOWN = "UNKNOWN",
470
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
471
+ MEMBER = "MEMBER",
472
+ WIX_USER = "WIX_USER",
473
+ APP = "APP"
474
+ }
475
+ /** @enumType */
476
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
321
477
 
322
478
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
323
479
  getUrl: (context: any) => string;
@@ -336,4 +492,4 @@ declare function executeLoyaltyImport(): __PublicMethodMetaInfo<'POST', {}, Exec
336
492
  declare function createLoyaltyImportFileUrl(): __PublicMethodMetaInfo<'POST', {}, CreateLoyaltyImportFileUrlRequest$1, CreateLoyaltyImportFileUrlRequest, CreateLoyaltyImportFileUrlResponse$1, CreateLoyaltyImportFileUrlResponse>;
337
493
  declare function queryLoyaltyImports(): __PublicMethodMetaInfo<'POST', {}, QueryLoyaltyImportsRequest$1, QueryLoyaltyImportsRequest, QueryLoyaltyImportsResponse$1, QueryLoyaltyImportsResponse>;
338
494
 
339
- export { type __PublicMethodMetaInfo, createLoyaltyImport, createLoyaltyImportFileUrl, executeLoyaltyImport, getErrorFileDownloadUrl, getLoyaltyImport, queryLoyaltyImports };
495
+ export { type ActionEvent as ActionEventOriginal, ColumnName as ColumnNameOriginal, type ColumnNameWithLiterals as ColumnNameWithLiteralsOriginal, type CreateLoyaltyImportFileUrlRequest as CreateLoyaltyImportFileUrlRequestOriginal, type CreateLoyaltyImportFileUrlResponse as CreateLoyaltyImportFileUrlResponseOriginal, type CreateLoyaltyImportRequest as CreateLoyaltyImportRequestOriginal, type CreateLoyaltyImportResponse as CreateLoyaltyImportResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteLoyaltyImportRequest as DeleteLoyaltyImportRequestOriginal, type DeleteLoyaltyImportResponse as DeleteLoyaltyImportResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExecuteLoyaltyImportRequest as ExecuteLoyaltyImportRequestOriginal, type ExecuteLoyaltyImportResponse as ExecuteLoyaltyImportResponseOriginal, type FileHeader as FileHeaderOriginal, type FileMetadata as FileMetadataOriginal, type GetErrorFileDownloadUrlRequest as GetErrorFileDownloadUrlRequestOriginal, type GetErrorFileDownloadUrlResponse as GetErrorFileDownloadUrlResponseOriginal, type GetLoyaltyImportRequest as GetLoyaltyImportRequestOriginal, type GetLoyaltyImportResponse as GetLoyaltyImportResponseOriginal, type HeaderMappingInfo as HeaderMappingInfoOriginal, type HeaderMapping as HeaderMappingOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ImportFinished as ImportFinishedOriginal, type ImportResult as ImportResultOriginal, ImportStatus as ImportStatusOriginal, type ImportStatusWithLiterals as ImportStatusWithLiteralsOriginal, type LoyaltyImport as LoyaltyImportOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type ParseResult as ParseResultOriginal, type QueryLoyaltyImportsRequest as QueryLoyaltyImportsRequestOriginal, type QueryLoyaltyImportsResponse as QueryLoyaltyImportsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type SampleDataRow as SampleDataRowOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createLoyaltyImport, createLoyaltyImportFileUrl, executeLoyaltyImport, getErrorFileDownloadUrl, getLoyaltyImport, queryLoyaltyImports };
package/build/cjs/meta.js CHANGED
@@ -20,6 +20,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // meta.ts
21
21
  var meta_exports = {};
22
22
  __export(meta_exports, {
23
+ ColumnNameOriginal: () => ColumnName,
24
+ ImportStatusOriginal: () => ImportStatus,
25
+ SortOrderOriginal: () => SortOrder,
26
+ WebhookIdentityTypeOriginal: () => WebhookIdentityType,
23
27
  createLoyaltyImport: () => createLoyaltyImport2,
24
28
  createLoyaltyImportFileUrl: () => createLoyaltyImportFileUrl2,
25
29
  executeLoyaltyImport: () => executeLoyaltyImport2,
@@ -255,6 +259,36 @@ function queryLoyaltyImports(payload) {
255
259
  return __queryLoyaltyImports;
256
260
  }
257
261
 
262
+ // src/loyalty-imports-v1-loyalty-import-imports.types.ts
263
+ var ImportStatus = /* @__PURE__ */ ((ImportStatus2) => {
264
+ ImportStatus2["UNKNOWN"] = "UNKNOWN";
265
+ ImportStatus2["INITIATED"] = "INITIATED";
266
+ ImportStatus2["PARSING"] = "PARSING";
267
+ ImportStatus2["PARSED"] = "PARSED";
268
+ ImportStatus2["IMPORTING"] = "IMPORTING";
269
+ ImportStatus2["IMPORTED"] = "IMPORTED";
270
+ ImportStatus2["FAILED"] = "FAILED";
271
+ return ImportStatus2;
272
+ })(ImportStatus || {});
273
+ var ColumnName = /* @__PURE__ */ ((ColumnName2) => {
274
+ ColumnName2["EMAIL"] = "EMAIL";
275
+ ColumnName2["POINTS"] = "POINTS";
276
+ return ColumnName2;
277
+ })(ColumnName || {});
278
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
279
+ SortOrder2["ASC"] = "ASC";
280
+ SortOrder2["DESC"] = "DESC";
281
+ return SortOrder2;
282
+ })(SortOrder || {});
283
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
284
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
285
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
286
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
287
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
288
+ WebhookIdentityType2["APP"] = "APP";
289
+ return WebhookIdentityType2;
290
+ })(WebhookIdentityType || {});
291
+
258
292
  // src/loyalty-imports-v1-loyalty-import-imports.meta.ts
259
293
  function createLoyaltyImport2() {
260
294
  const payload = {};
@@ -368,6 +402,10 @@ function queryLoyaltyImports2() {
368
402
  }
369
403
  // Annotate the CommonJS export names for ESM import in node:
370
404
  0 && (module.exports = {
405
+ ColumnNameOriginal,
406
+ ImportStatusOriginal,
407
+ SortOrderOriginal,
408
+ WebhookIdentityTypeOriginal,
371
409
  createLoyaltyImport,
372
410
  createLoyaltyImportFileUrl,
373
411
  executeLoyaltyImport,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../meta.ts","../../src/loyalty-imports-v1-loyalty-import-imports.http.ts","../../src/loyalty-imports-v1-loyalty-import-imports.meta.ts"],"sourcesContent":["export * from './src/loyalty-imports-v1-loyalty-import-imports.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixLoyaltyImportsV1LoyaltyImportsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/loyalty-imports',\n destPath: '',\n },\n {\n srcPath: '/_api/loyalty-imports',\n destPath: '/api',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/loyalty-imports',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/loyalty-imports',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/loyalty-imports',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/loyalty-imports',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/_api/loyalty-imports',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/loyalty-imports',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/loyalty-imports',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_loyalty_imports';\n\n/**\n * Creates an import object based on an uploaded file.\n *\n * Call this method after uploading your file to the URL obtained from Create Loyalty Import File Url.\n */\nexport function createLoyaltyImport(\n payload: object\n): RequestOptionsFactory<any> {\n function __createLoyaltyImport({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.imports.v1.loyalty_import',\n method: 'POST' as any,\n methodFqn: 'wix.loyalty.imports.v1.LoyaltyImports.CreateLoyaltyImport',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({\n protoPath: '/v1/loyalty-imports',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'loyaltyImport.createdDate' },\n { path: 'loyaltyImport.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createLoyaltyImport;\n}\n\n/** Retrieves a loyalty import. */\nexport function getLoyaltyImport(payload: object): RequestOptionsFactory<any> {\n function __getLoyaltyImport({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.imports.v1.loyalty_import',\n method: 'GET' as any,\n methodFqn: 'wix.loyalty.imports.v1.LoyaltyImports.GetLoyaltyImport',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({\n protoPath: '/v1/loyalty-imports',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'loyaltyImport.createdDate' },\n { path: 'loyaltyImport.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getLoyaltyImport;\n}\n\n/**\n * Retrieves the download URL for the error file of a failed loyalty import.\n *\n * If an import fails, the `importResult.errorFileExists` field in the `LoyaltyImport` object is set to `true`.\n *\n * Use this method to get the URL of the error file, which contains details about which items couldn't be imported and why.\n */\nexport function getErrorFileDownloadUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __getErrorFileDownloadUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.imports.v1.loyalty_import',\n method: 'GET' as any,\n methodFqn:\n 'wix.loyalty.imports.v1.LoyaltyImports.GetErrorFileDownloadUrl',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({\n protoPath: '/v1/loyalty-imports/error-file-download-url',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getErrorFileDownloadUrl;\n}\n\n/**\n * Starts the actual import process for a loyalty import.\n *\n * Call this method after the loyalty import object reaches the `\"PARSED\"` status.\n */\nexport function executeLoyaltyImport(\n payload: object\n): RequestOptionsFactory<any> {\n function __executeLoyaltyImport({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.imports.v1.loyalty_import',\n method: 'POST' as any,\n methodFqn: 'wix.loyalty.imports.v1.LoyaltyImports.ExecuteLoyaltyImport',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({\n protoPath: '/v1/loyalty-imports/execute',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'loyaltyImport.createdDate' },\n { path: 'loyaltyImport.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __executeLoyaltyImport;\n}\n\n/**\n * Creates a URL for uploading a loyalty import file.\n *\n * 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.\n */\nexport function createLoyaltyImportFileUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __createLoyaltyImportFileUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.imports.v1.loyalty_import',\n method: 'POST' as any,\n methodFqn:\n 'wix.loyalty.imports.v1.LoyaltyImports.CreateLoyaltyImportFileUrl',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({\n protoPath: '/v1/loyalty-imports/wixmp-upload-url',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __createLoyaltyImportFileUrl;\n}\n\n/**\n * Creates a query to retrieve a list of loyalty imports.\n *\n * The `queryLoyaltyImports()` method builds a query to retrieve a list of imports and returns a `LoyaltyImportsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the `find()` method.\n *\n * You can refine the query by chaining `LoyaltyImportsQueryBuilder` methods onto the query. `LoyaltyImportsQueryBuilder` methods enable you to sort, filter, and control the results `queryLoyaltyImports()` returns.\n *\n * `queryLoyaltyImports()` runs with these `LoyaltyImportsQueryBuilder` defaults, which you can override:\n *\n * - `limit(50)`\n * - `descending(\"_createdDate\")`\n *\n * The methods 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.\n */\nexport function queryLoyaltyImports(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryLoyaltyImports({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.imports.v1.loyalty_import',\n method: 'POST' as any,\n methodFqn: 'wix.loyalty.imports.v1.LoyaltyImports.QueryLoyaltyImports',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({\n protoPath: '/v1/loyalty-imports/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'loyaltyImports.createdDate' },\n { path: 'loyaltyImports.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryLoyaltyImports;\n}\n","import * as ambassadorWixLoyaltyImportsV1LoyaltyImport from './loyalty-imports-v1-loyalty-import-imports.http.js';\nimport * as ambassadorWixLoyaltyImportsV1LoyaltyImportTypes from './loyalty-imports-v1-loyalty-import-imports.types.js';\nimport * as ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes from './loyalty-imports-v1-loyalty-import-imports.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createLoyaltyImport(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.CreateLoyaltyImportRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.CreateLoyaltyImportRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.CreateLoyaltyImportResponse,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.CreateLoyaltyImportResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixLoyaltyImportsV1LoyaltyImport.createLoyaltyImport(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/loyalty-imports',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getLoyaltyImport(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.GetLoyaltyImportRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.GetLoyaltyImportRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.GetLoyaltyImportResponse,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.GetLoyaltyImportResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixLoyaltyImportsV1LoyaltyImport.getLoyaltyImport(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/loyalty-imports',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getErrorFileDownloadUrl(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.GetErrorFileDownloadUrlRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.GetErrorFileDownloadUrlRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.GetErrorFileDownloadUrlResponse,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.GetErrorFileDownloadUrlResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixLoyaltyImportsV1LoyaltyImport.getErrorFileDownloadUrl(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/loyalty-imports/error-file-download-url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function executeLoyaltyImport(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.ExecuteLoyaltyImportRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.ExecuteLoyaltyImportRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.ExecuteLoyaltyImportResponse,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.ExecuteLoyaltyImportResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixLoyaltyImportsV1LoyaltyImport.executeLoyaltyImport(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/loyalty-imports/execute',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createLoyaltyImportFileUrl(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.CreateLoyaltyImportFileUrlRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.CreateLoyaltyImportFileUrlRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.CreateLoyaltyImportFileUrlResponse,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.CreateLoyaltyImportFileUrlResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixLoyaltyImportsV1LoyaltyImport.createLoyaltyImportFileUrl(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/loyalty-imports/wixmp-upload-url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryLoyaltyImports(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.QueryLoyaltyImportsRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.QueryLoyaltyImportsRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.QueryLoyaltyImportsResponse,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.QueryLoyaltyImportsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixLoyaltyImportsV1LoyaltyImport.queryLoyaltyImports(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/loyalty-imports/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,6BAAAA;AAAA,EAAA,kCAAAC;AAAA,EAAA,4BAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,2BAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,4CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAOd,SAAS,oBACd,SAC4B;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,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createLoyaltyImport","createLoyaltyImportFileUrl","executeLoyaltyImport","getErrorFileDownloadUrl","getLoyaltyImport","queryLoyaltyImports","import_rest_modules","payload","createLoyaltyImport","getLoyaltyImport","getErrorFileDownloadUrl","executeLoyaltyImport","createLoyaltyImportFileUrl","queryLoyaltyImports"]}
1
+ {"version":3,"sources":["../../meta.ts","../../src/loyalty-imports-v1-loyalty-import-imports.http.ts","../../src/loyalty-imports-v1-loyalty-import-imports.types.ts","../../src/loyalty-imports-v1-loyalty-import-imports.meta.ts"],"sourcesContent":["export * from './src/loyalty-imports-v1-loyalty-import-imports.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixLoyaltyImportsV1LoyaltyImportsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/loyalty-imports',\n destPath: '',\n },\n {\n srcPath: '/_api/loyalty-imports',\n destPath: '/api',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/loyalty-imports',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/loyalty-imports',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/loyalty-imports',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/loyalty-imports',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/_api/loyalty-imports',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/loyalty-imports',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/loyalty-imports',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_loyalty_imports';\n\n/**\n * Creates an import object based on an uploaded file.\n *\n * Call this method after uploading your file to the URL obtained from Create Loyalty Import File Url.\n */\nexport function createLoyaltyImport(\n payload: object\n): RequestOptionsFactory<any> {\n function __createLoyaltyImport({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.imports.v1.loyalty_import',\n method: 'POST' as any,\n methodFqn: 'wix.loyalty.imports.v1.LoyaltyImports.CreateLoyaltyImport',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({\n protoPath: '/v1/loyalty-imports',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'loyaltyImport.createdDate' },\n { path: 'loyaltyImport.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createLoyaltyImport;\n}\n\n/** Retrieves a loyalty import. */\nexport function getLoyaltyImport(payload: object): RequestOptionsFactory<any> {\n function __getLoyaltyImport({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.imports.v1.loyalty_import',\n method: 'GET' as any,\n methodFqn: 'wix.loyalty.imports.v1.LoyaltyImports.GetLoyaltyImport',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({\n protoPath: '/v1/loyalty-imports',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'loyaltyImport.createdDate' },\n { path: 'loyaltyImport.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getLoyaltyImport;\n}\n\n/**\n * Retrieves the download URL for the error file of a failed loyalty import.\n *\n * If an import fails, the `importResult.errorFileExists` field in the `LoyaltyImport` object is set to `true`.\n *\n * Use this method to get the URL of the error file, which contains details about which items couldn't be imported and why.\n */\nexport function getErrorFileDownloadUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __getErrorFileDownloadUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.imports.v1.loyalty_import',\n method: 'GET' as any,\n methodFqn:\n 'wix.loyalty.imports.v1.LoyaltyImports.GetErrorFileDownloadUrl',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({\n protoPath: '/v1/loyalty-imports/error-file-download-url',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getErrorFileDownloadUrl;\n}\n\n/**\n * Starts the actual import process for a loyalty import.\n *\n * Call this method after the loyalty import object reaches the `\"PARSED\"` status.\n */\nexport function executeLoyaltyImport(\n payload: object\n): RequestOptionsFactory<any> {\n function __executeLoyaltyImport({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.imports.v1.loyalty_import',\n method: 'POST' as any,\n methodFqn: 'wix.loyalty.imports.v1.LoyaltyImports.ExecuteLoyaltyImport',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({\n protoPath: '/v1/loyalty-imports/execute',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'loyaltyImport.createdDate' },\n { path: 'loyaltyImport.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __executeLoyaltyImport;\n}\n\n/**\n * Creates a URL for uploading a loyalty import file.\n *\n * 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.\n */\nexport function createLoyaltyImportFileUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __createLoyaltyImportFileUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.imports.v1.loyalty_import',\n method: 'POST' as any,\n methodFqn:\n 'wix.loyalty.imports.v1.LoyaltyImports.CreateLoyaltyImportFileUrl',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({\n protoPath: '/v1/loyalty-imports/wixmp-upload-url',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __createLoyaltyImportFileUrl;\n}\n\n/**\n * Creates a query to retrieve a list of loyalty imports.\n *\n * The `queryLoyaltyImports()` method builds a query to retrieve a list of imports and returns a `LoyaltyImportsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the `find()` method.\n *\n * You can refine the query by chaining `LoyaltyImportsQueryBuilder` methods onto the query. `LoyaltyImportsQueryBuilder` methods enable you to sort, filter, and control the results `queryLoyaltyImports()` returns.\n *\n * `queryLoyaltyImports()` runs with these `LoyaltyImportsQueryBuilder` defaults, which you can override:\n *\n * - `limit(50)`\n * - `descending(\"_createdDate\")`\n *\n * The methods 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.\n */\nexport function queryLoyaltyImports(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryLoyaltyImports({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.imports.v1.loyalty_import',\n method: 'POST' as any,\n methodFqn: 'wix.loyalty.imports.v1.LoyaltyImports.QueryLoyaltyImports',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({\n protoPath: '/v1/loyalty-imports/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'loyaltyImports.createdDate' },\n { path: 'loyaltyImports.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryLoyaltyImports;\n}\n","/**\n * An Import object is a batch import of loyalty points for existing customers.\n * You can use Loyalty Imports to import loyalty points from 3rd-party providers or update existing customer point balances.\n * This object tracks the entire import process from file upload to data processing.\n */\nexport interface LoyaltyImport {\n /**\n * The ID of the import.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * ID of the asynchronous import job associated with this import.\n * @format GUID\n * @readonly\n */\n asyncImportJobId?: string | null;\n /**\n * Revision number, which increments by 1 each time the loyalty import is updated.\n * To prevent conflicting changes, the current `revision` must be passed when updating the loyalty import.\n *\n * Ignored when creating a loyalty import.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the loyalty import was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the loyalty import was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Current status of the import process.\n * @readonly\n */\n status?: ImportStatusWithLiterals;\n /** Metadata of the uploaded file containing loyalty points data. */\n fileMetadata?: FileMetadata;\n /** Results of parsing the uploaded file, including the number of rows parsed and any parse errors. */\n parseResult?: ParseResult;\n /** Results of the import process, including success and failure counts. */\n importResult?: ImportResult;\n}\n\nexport enum ImportStatus {\n /** Status is unknown or not specified. */\n UNKNOWN = 'UNKNOWN',\n /** The import has initiated but processing hasn't started yet. */\n INITIATED = 'INITIATED',\n /** The system is currently parsing the import file. */\n PARSING = 'PARSING',\n /** The import file has been successfully parsed and is ready to import. */\n PARSED = 'PARSED',\n /** The system is currently importing the parsed data. */\n IMPORTING = 'IMPORTING',\n /** The import process is complete. This status indicates the process finished, but doesn't guarantee all data imported successfully. */\n IMPORTED = 'IMPORTED',\n /** The import process has failed. */\n FAILED = 'FAILED',\n}\n\n/** @enumType */\nexport type ImportStatusWithLiterals =\n | ImportStatus\n | 'UNKNOWN'\n | 'INITIATED'\n | 'PARSING'\n | 'PARSED'\n | 'IMPORTING'\n | 'IMPORTED'\n | 'FAILED';\n\nexport interface FileMetadata {\n /**\n * Size of the uploaded file in bytes. Max: `10 MB`.\n * @max 104857600\n * @readonly\n */\n size?: number | null;\n /**\n * Name of the uploaded file.\n * @format GUID\n * @readonly\n */\n name?: string | null;\n /**\n * URL of the uploaded file.\n * @minLength 3\n * @maxLength 10000\n */\n url?: string;\n /** Column headings from the first row of the uploaded CSV file. */\n header?: FileHeader;\n /**\n * Mapping between loyalty data fields and the corresponding columns in the uploaded file.\n *\n * Must include mappings for both `EMAIL` and `POINTS` to be valid.\n */\n headerMappingInfo?: HeaderMappingInfo;\n /**\n * Up to 5 sample rows from the import file, providing a preview of the data to be imported.\n * @maxSize 5\n */\n sampleDataRows?: SampleDataRow[];\n}\n\nexport interface FileHeader {\n /**\n * Column headings from the first row of the uploaded file.\n * @maxSize 100\n * @maxLength 1000\n */\n values?: string[];\n}\n\nexport interface HeaderMappingInfo {\n /**\n * Mappings between required loyalty data fields and file columns.\n * Must contain exactly 2 mappings: one for `\"EMAIL\"` and one for `\"POINTS\"`.\n * @minSize 2\n * @maxSize 2\n */\n headerMappings?: HeaderMapping[];\n}\n\nexport interface HeaderMapping {\n /** The required loyalty data field that this mapping corresponds to. Must be either `\"EMAIL\"` or `\"POINTS\"`. */\n columnName?: ColumnNameWithLiterals;\n /**\n * The zero-based index of the column in the uploaded file that contains the data for this loyalty field.\n * For example, if the email addresses are in the second column of the CSV file, this value would be `1`.\n */\n columnIndex?: number;\n}\n\nexport enum ColumnName {\n /** Column containing the customer's email address. */\n EMAIL = 'EMAIL',\n /** Column containing the customer's loyalty point balance to be imported or updated. */\n POINTS = 'POINTS',\n}\n\n/** @enumType */\nexport type ColumnNameWithLiterals = ColumnName | 'EMAIL' | 'POINTS';\n\nexport interface SampleDataRow {\n /**\n * Values in one sample data row. Each value corresponds to a column in the CSV file.\n * The number of values matches the number of columns in the file.\n * @maxSize 20\n * @maxLength 1000\n */\n values?: string[];\n}\n\nexport interface ParseResult {\n /**\n * Number of rows parsed from the uploaded import file.\n * @readonly\n */\n parsedRowCount?: number | null;\n /**\n * Reason code explaining why parsing failed, if applicable.\n * @readonly\n * @maxLength 1000\n */\n parseErrorReason?: string | null;\n}\n\nexport interface ImportResult {\n /** Whether an error file detailing import failures is available for download. The file includes row-by-row import status, error reasons, and original data. */\n errorFileExists?: boolean;\n /**\n * Number of rows successfully imported.\n * @readonly\n */\n successCount?: number | null;\n /**\n * Number of rows that failed to import due to errors.\n * @readonly\n */\n failureCount?: number | null;\n}\n\nexport interface CreateLoyaltyImportRequest {\n /** URL of the file to import. */\n fileUrl: string | null;\n /** Name of the file to import. */\n fileName?: string | null;\n /** Size of the file to import, in bytes. */\n fileSize?: number | null;\n}\n\nexport interface CreateLoyaltyImportResponse {\n /** Created loyalty import. */\n loyaltyImport?: LoyaltyImport;\n}\n\nexport interface GetLoyaltyImportRequest {\n /** Loyalty import ID. */\n loyaltyImportId: string;\n}\n\nexport interface GetLoyaltyImportResponse {\n /** Retrieved loyalty import. */\n loyaltyImport?: LoyaltyImport;\n}\n\nexport interface GetErrorFileDownloadUrlRequest {\n /** Loyalty import ID. */\n loyaltyImportId: string;\n}\n\nexport interface GetErrorFileDownloadUrlResponse {\n /** URL for downloading the error file. */\n url?: string | null;\n}\n\nexport interface ExecuteLoyaltyImportRequest {\n /** Loyalty import ID. */\n loyaltyImportId: string;\n /** Header mapping information for the import file. */\n headerMappingInfo?: HeaderMappingInfo;\n}\n\nexport interface ExecuteLoyaltyImportResponse {\n /** Executed loyalty import. */\n loyaltyImport?: LoyaltyImport;\n}\n\nexport interface CreateLoyaltyImportFileUrlRequest {}\n\nexport interface CreateLoyaltyImportFileUrlResponse {\n /** Path where the file will be stored. */\n filePath?: string | null;\n /** URL for uploading the loyalty import file. */\n uploadUrl?: string | null;\n}\n\nexport interface QueryLoyaltyImportsRequest {\n /**\n * Filter object.\n * See [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language)\n * for more information.\n *\n * For a detailed list of supported filters, see\n * [Loyalty Imports: Supported Filters and Sorting](https://dev.wix.com/docs/rest/crm/loyalty-program/imports/filter-and-sort).\n */\n query: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryLoyaltyImportsResponse {\n /** List of loyalty imports matching the query. */\n loyaltyImports?: LoyaltyImport[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface DeleteLoyaltyImportRequest {\n /**\n * Loyalty import ID.\n * @format GUID\n */\n loyaltyImportId?: string;\n /**\n * Revision number, which increments by 1 each time the loyalty import is updated.\n * To prevent conflicting changes, the current `revision` must be passed when updating the loyalty import.\n */\n revision?: string;\n}\n\nexport interface DeleteLoyaltyImportResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface Empty {}\n\nexport interface ImportFinished {\n /** Completed loyalty import. */\n loyaltyImport?: LoyaltyImport;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n","import * as ambassadorWixLoyaltyImportsV1LoyaltyImport from './loyalty-imports-v1-loyalty-import-imports.http.js';\nimport * as ambassadorWixLoyaltyImportsV1LoyaltyImportTypes from './loyalty-imports-v1-loyalty-import-imports.types.js';\nimport * as ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes from './loyalty-imports-v1-loyalty-import-imports.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createLoyaltyImport(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.CreateLoyaltyImportRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.CreateLoyaltyImportRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.CreateLoyaltyImportResponse,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.CreateLoyaltyImportResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixLoyaltyImportsV1LoyaltyImport.createLoyaltyImport(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/loyalty-imports',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getLoyaltyImport(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.GetLoyaltyImportRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.GetLoyaltyImportRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.GetLoyaltyImportResponse,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.GetLoyaltyImportResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixLoyaltyImportsV1LoyaltyImport.getLoyaltyImport(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/loyalty-imports',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getErrorFileDownloadUrl(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.GetErrorFileDownloadUrlRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.GetErrorFileDownloadUrlRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.GetErrorFileDownloadUrlResponse,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.GetErrorFileDownloadUrlResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixLoyaltyImportsV1LoyaltyImport.getErrorFileDownloadUrl(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/loyalty-imports/error-file-download-url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function executeLoyaltyImport(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.ExecuteLoyaltyImportRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.ExecuteLoyaltyImportRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.ExecuteLoyaltyImportResponse,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.ExecuteLoyaltyImportResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixLoyaltyImportsV1LoyaltyImport.executeLoyaltyImport(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/loyalty-imports/execute',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createLoyaltyImportFileUrl(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.CreateLoyaltyImportFileUrlRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.CreateLoyaltyImportFileUrlRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.CreateLoyaltyImportFileUrlResponse,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.CreateLoyaltyImportFileUrlResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixLoyaltyImportsV1LoyaltyImport.createLoyaltyImportFileUrl(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/loyalty-imports/wixmp-upload-url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryLoyaltyImports(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.QueryLoyaltyImportsRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.QueryLoyaltyImportsRequest,\n ambassadorWixLoyaltyImportsV1LoyaltyImportUniversalTypes.QueryLoyaltyImportsResponse,\n ambassadorWixLoyaltyImportsV1LoyaltyImportTypes.QueryLoyaltyImportsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixLoyaltyImportsV1LoyaltyImport.queryLoyaltyImports(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/loyalty-imports/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n LoyaltyImport as LoyaltyImportOriginal,\n ImportStatus as ImportStatusOriginal,\n ImportStatusWithLiterals as ImportStatusWithLiteralsOriginal,\n FileMetadata as FileMetadataOriginal,\n FileHeader as FileHeaderOriginal,\n HeaderMappingInfo as HeaderMappingInfoOriginal,\n HeaderMapping as HeaderMappingOriginal,\n ColumnName as ColumnNameOriginal,\n ColumnNameWithLiterals as ColumnNameWithLiteralsOriginal,\n SampleDataRow as SampleDataRowOriginal,\n ParseResult as ParseResultOriginal,\n ImportResult as ImportResultOriginal,\n CreateLoyaltyImportRequest as CreateLoyaltyImportRequestOriginal,\n CreateLoyaltyImportResponse as CreateLoyaltyImportResponseOriginal,\n GetLoyaltyImportRequest as GetLoyaltyImportRequestOriginal,\n GetLoyaltyImportResponse as GetLoyaltyImportResponseOriginal,\n GetErrorFileDownloadUrlRequest as GetErrorFileDownloadUrlRequestOriginal,\n GetErrorFileDownloadUrlResponse as GetErrorFileDownloadUrlResponseOriginal,\n ExecuteLoyaltyImportRequest as ExecuteLoyaltyImportRequestOriginal,\n ExecuteLoyaltyImportResponse as ExecuteLoyaltyImportResponseOriginal,\n CreateLoyaltyImportFileUrlRequest as CreateLoyaltyImportFileUrlRequestOriginal,\n CreateLoyaltyImportFileUrlResponse as CreateLoyaltyImportFileUrlResponseOriginal,\n QueryLoyaltyImportsRequest as QueryLoyaltyImportsRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryLoyaltyImportsResponse as QueryLoyaltyImportsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n DeleteLoyaltyImportRequest as DeleteLoyaltyImportRequestOriginal,\n DeleteLoyaltyImportResponse as DeleteLoyaltyImportResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n Empty as EmptyOriginal,\n ImportFinished as ImportFinishedOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n} from './loyalty-imports-v1-loyalty-import-imports.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAAA;AAAA,EAAA,kCAAAC;AAAA,EAAA,4BAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,2BAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,4CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;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AAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,8BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACuC;AAAA,IACzC;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,uBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACuC,oBAAoB,OAAO;AAExE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createLoyaltyImport","createLoyaltyImportFileUrl","executeLoyaltyImport","getErrorFileDownloadUrl","getLoyaltyImport","queryLoyaltyImports","import_rest_modules","payload","ImportStatus","ColumnName","SortOrder","WebhookIdentityType","createLoyaltyImport","getLoyaltyImport","getErrorFileDownloadUrl","executeLoyaltyImport","createLoyaltyImportFileUrl","queryLoyaltyImports"]}
@@ -318,6 +318,162 @@ interface Cursors {
318
318
  */
319
319
  prev?: string | null;
320
320
  }
321
+ interface DeleteLoyaltyImportRequest {
322
+ /**
323
+ * Loyalty import ID.
324
+ * @format GUID
325
+ */
326
+ loyaltyImportId?: string;
327
+ /**
328
+ * Revision number, which increments by 1 each time the loyalty import is updated.
329
+ * To prevent conflicting changes, the current `revision` must be passed when updating the loyalty import.
330
+ */
331
+ revision?: string;
332
+ }
333
+ interface DeleteLoyaltyImportResponse {
334
+ }
335
+ interface DomainEvent extends DomainEventBodyOneOf {
336
+ createdEvent?: EntityCreatedEvent;
337
+ updatedEvent?: EntityUpdatedEvent;
338
+ deletedEvent?: EntityDeletedEvent;
339
+ actionEvent?: ActionEvent;
340
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
341
+ id?: string;
342
+ /**
343
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
344
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
345
+ */
346
+ entityFqdn?: string;
347
+ /**
348
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
349
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
350
+ */
351
+ slug?: string;
352
+ /** ID of the entity associated with the event. */
353
+ entityId?: string;
354
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
355
+ eventTime?: Date | null;
356
+ /**
357
+ * Whether the event was triggered as a result of a privacy regulation application
358
+ * (for example, GDPR).
359
+ */
360
+ triggeredByAnonymizeRequest?: boolean | null;
361
+ /** If present, indicates the action that triggered the event. */
362
+ originatedFrom?: string | null;
363
+ /**
364
+ * 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.
365
+ * 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.
366
+ */
367
+ entityEventSequence?: string | null;
368
+ }
369
+ /** @oneof */
370
+ interface DomainEventBodyOneOf {
371
+ createdEvent?: EntityCreatedEvent;
372
+ updatedEvent?: EntityUpdatedEvent;
373
+ deletedEvent?: EntityDeletedEvent;
374
+ actionEvent?: ActionEvent;
375
+ }
376
+ interface EntityCreatedEvent {
377
+ entityAsJson?: string;
378
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
379
+ restoreInfo?: RestoreInfo;
380
+ }
381
+ interface RestoreInfo {
382
+ deletedDate?: Date | null;
383
+ }
384
+ interface EntityUpdatedEvent {
385
+ /**
386
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
387
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
388
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
389
+ */
390
+ currentEntityAsJson?: string;
391
+ }
392
+ interface EntityDeletedEvent {
393
+ /** Entity that was deleted. */
394
+ deletedEntityAsJson?: string | null;
395
+ }
396
+ interface ActionEvent {
397
+ bodyAsJson?: string;
398
+ }
399
+ interface Empty {
400
+ }
401
+ interface ImportFinished {
402
+ /** Completed loyalty import. */
403
+ loyaltyImport?: LoyaltyImport;
404
+ }
405
+ interface MessageEnvelope {
406
+ /**
407
+ * App instance ID.
408
+ * @format GUID
409
+ */
410
+ instanceId?: string | null;
411
+ /**
412
+ * Event type.
413
+ * @maxLength 150
414
+ */
415
+ eventType?: string;
416
+ /** The identification type and identity data. */
417
+ identity?: IdentificationData;
418
+ /** Stringify payload. */
419
+ data?: string;
420
+ }
421
+ interface IdentificationData extends IdentificationDataIdOneOf {
422
+ /**
423
+ * ID of a site visitor that has not logged in to the site.
424
+ * @format GUID
425
+ */
426
+ anonymousVisitorId?: string;
427
+ /**
428
+ * ID of a site visitor that has logged in to the site.
429
+ * @format GUID
430
+ */
431
+ memberId?: string;
432
+ /**
433
+ * ID of a Wix user (site owner, contributor, etc.).
434
+ * @format GUID
435
+ */
436
+ wixUserId?: string;
437
+ /**
438
+ * ID of an app.
439
+ * @format GUID
440
+ */
441
+ appId?: string;
442
+ /** @readonly */
443
+ identityType?: WebhookIdentityTypeWithLiterals;
444
+ }
445
+ /** @oneof */
446
+ interface IdentificationDataIdOneOf {
447
+ /**
448
+ * ID of a site visitor that has not logged in to the site.
449
+ * @format GUID
450
+ */
451
+ anonymousVisitorId?: string;
452
+ /**
453
+ * ID of a site visitor that has logged in to the site.
454
+ * @format GUID
455
+ */
456
+ memberId?: string;
457
+ /**
458
+ * ID of a Wix user (site owner, contributor, etc.).
459
+ * @format GUID
460
+ */
461
+ wixUserId?: string;
462
+ /**
463
+ * ID of an app.
464
+ * @format GUID
465
+ */
466
+ appId?: string;
467
+ }
468
+ declare enum WebhookIdentityType {
469
+ UNKNOWN = "UNKNOWN",
470
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
471
+ MEMBER = "MEMBER",
472
+ WIX_USER = "WIX_USER",
473
+ APP = "APP"
474
+ }
475
+ /** @enumType */
476
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
321
477
 
322
478
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
323
479
  getUrl: (context: any) => string;
@@ -336,4 +492,4 @@ declare function executeLoyaltyImport(): __PublicMethodMetaInfo<'POST', {}, Exec
336
492
  declare function createLoyaltyImportFileUrl(): __PublicMethodMetaInfo<'POST', {}, CreateLoyaltyImportFileUrlRequest$1, CreateLoyaltyImportFileUrlRequest, CreateLoyaltyImportFileUrlResponse$1, CreateLoyaltyImportFileUrlResponse>;
337
493
  declare function queryLoyaltyImports(): __PublicMethodMetaInfo<'POST', {}, QueryLoyaltyImportsRequest$1, QueryLoyaltyImportsRequest, QueryLoyaltyImportsResponse$1, QueryLoyaltyImportsResponse>;
338
494
 
339
- export { type __PublicMethodMetaInfo, createLoyaltyImport, createLoyaltyImportFileUrl, executeLoyaltyImport, getErrorFileDownloadUrl, getLoyaltyImport, queryLoyaltyImports };
495
+ export { type ActionEvent as ActionEventOriginal, ColumnName as ColumnNameOriginal, type ColumnNameWithLiterals as ColumnNameWithLiteralsOriginal, type CreateLoyaltyImportFileUrlRequest as CreateLoyaltyImportFileUrlRequestOriginal, type CreateLoyaltyImportFileUrlResponse as CreateLoyaltyImportFileUrlResponseOriginal, type CreateLoyaltyImportRequest as CreateLoyaltyImportRequestOriginal, type CreateLoyaltyImportResponse as CreateLoyaltyImportResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteLoyaltyImportRequest as DeleteLoyaltyImportRequestOriginal, type DeleteLoyaltyImportResponse as DeleteLoyaltyImportResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExecuteLoyaltyImportRequest as ExecuteLoyaltyImportRequestOriginal, type ExecuteLoyaltyImportResponse as ExecuteLoyaltyImportResponseOriginal, type FileHeader as FileHeaderOriginal, type FileMetadata as FileMetadataOriginal, type GetErrorFileDownloadUrlRequest as GetErrorFileDownloadUrlRequestOriginal, type GetErrorFileDownloadUrlResponse as GetErrorFileDownloadUrlResponseOriginal, type GetLoyaltyImportRequest as GetLoyaltyImportRequestOriginal, type GetLoyaltyImportResponse as GetLoyaltyImportResponseOriginal, type HeaderMappingInfo as HeaderMappingInfoOriginal, type HeaderMapping as HeaderMappingOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ImportFinished as ImportFinishedOriginal, type ImportResult as ImportResultOriginal, ImportStatus as ImportStatusOriginal, type ImportStatusWithLiterals as ImportStatusWithLiteralsOriginal, type LoyaltyImport as LoyaltyImportOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type ParseResult as ParseResultOriginal, type QueryLoyaltyImportsRequest as QueryLoyaltyImportsRequestOriginal, type QueryLoyaltyImportsResponse as QueryLoyaltyImportsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type SampleDataRow as SampleDataRowOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createLoyaltyImport, createLoyaltyImportFileUrl, executeLoyaltyImport, getErrorFileDownloadUrl, getLoyaltyImport, queryLoyaltyImports };
package/build/es/meta.mjs CHANGED
@@ -224,6 +224,36 @@ function queryLoyaltyImports(payload) {
224
224
  return __queryLoyaltyImports;
225
225
  }
226
226
 
227
+ // src/loyalty-imports-v1-loyalty-import-imports.types.ts
228
+ var ImportStatus = /* @__PURE__ */ ((ImportStatus2) => {
229
+ ImportStatus2["UNKNOWN"] = "UNKNOWN";
230
+ ImportStatus2["INITIATED"] = "INITIATED";
231
+ ImportStatus2["PARSING"] = "PARSING";
232
+ ImportStatus2["PARSED"] = "PARSED";
233
+ ImportStatus2["IMPORTING"] = "IMPORTING";
234
+ ImportStatus2["IMPORTED"] = "IMPORTED";
235
+ ImportStatus2["FAILED"] = "FAILED";
236
+ return ImportStatus2;
237
+ })(ImportStatus || {});
238
+ var ColumnName = /* @__PURE__ */ ((ColumnName2) => {
239
+ ColumnName2["EMAIL"] = "EMAIL";
240
+ ColumnName2["POINTS"] = "POINTS";
241
+ return ColumnName2;
242
+ })(ColumnName || {});
243
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
244
+ SortOrder2["ASC"] = "ASC";
245
+ SortOrder2["DESC"] = "DESC";
246
+ return SortOrder2;
247
+ })(SortOrder || {});
248
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
249
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
250
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
251
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
252
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
253
+ WebhookIdentityType2["APP"] = "APP";
254
+ return WebhookIdentityType2;
255
+ })(WebhookIdentityType || {});
256
+
227
257
  // src/loyalty-imports-v1-loyalty-import-imports.meta.ts
228
258
  function createLoyaltyImport2() {
229
259
  const payload = {};
@@ -336,6 +366,10 @@ function queryLoyaltyImports2() {
336
366
  };
337
367
  }
338
368
  export {
369
+ ColumnName as ColumnNameOriginal,
370
+ ImportStatus as ImportStatusOriginal,
371
+ SortOrder as SortOrderOriginal,
372
+ WebhookIdentityType as WebhookIdentityTypeOriginal,
339
373
  createLoyaltyImport2 as createLoyaltyImport,
340
374
  createLoyaltyImportFileUrl2 as createLoyaltyImportFileUrl,
341
375
  executeLoyaltyImport2 as executeLoyaltyImport,