@wix/auto_sdk_ecom_checkout-settings 1.0.29 → 1.0.30

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.
@@ -173,6 +173,39 @@ interface Logo {
173
173
  /** Size of the logo. */
174
174
  size?: LogoSizeWithLiterals;
175
175
  }
176
+ interface Image {
177
+ /** WixMedia image ID. */
178
+ id?: string;
179
+ /** Image URL. */
180
+ url?: string;
181
+ /**
182
+ * Original image height.
183
+ * @readonly
184
+ */
185
+ height?: number;
186
+ /**
187
+ * Original image width.
188
+ * @readonly
189
+ */
190
+ width?: number;
191
+ /** Image alt text. */
192
+ altText?: string | null;
193
+ /**
194
+ * Image filename.
195
+ * @readonly
196
+ */
197
+ filename?: string | null;
198
+ }
199
+ interface FocalPoint {
200
+ /** X-coordinate of the focal point. */
201
+ x?: number;
202
+ /** Y-coordinate of the focal point. */
203
+ y?: number;
204
+ /** crop by height */
205
+ height?: number | null;
206
+ /** crop by width */
207
+ width?: number | null;
208
+ }
176
209
  declare enum LogoSize {
177
210
  UNKNOWN_LOGO_SIZE = "UNKNOWN_LOGO_SIZE",
178
211
  SMALL = "SMALL",
@@ -202,6 +235,159 @@ interface UpdateCheckoutSettingsResponse {
202
235
  /** Updated checkout settings. */
203
236
  checkoutSettings?: CheckoutSettings;
204
237
  }
238
+ interface ListCheckoutSettingsRequest {
239
+ }
240
+ interface ListCheckoutSettingsResponse {
241
+ /** List of retrieved checkout settings. */
242
+ checkoutSettings?: CheckoutSettings[];
243
+ }
244
+ interface GiftCardProviderWasProvisioned {
245
+ /** The gift card provider which was installed */
246
+ providerAppDefId?: string;
247
+ providerInstanceId?: string;
248
+ }
249
+ interface Empty {
250
+ }
251
+ interface DeleteCheckoutSettingsRequest {
252
+ }
253
+ interface DeleteCheckoutSettingsResponse {
254
+ }
255
+ interface DomainEvent extends DomainEventBodyOneOf {
256
+ createdEvent?: EntityCreatedEvent;
257
+ updatedEvent?: EntityUpdatedEvent;
258
+ deletedEvent?: EntityDeletedEvent;
259
+ actionEvent?: ActionEvent;
260
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
261
+ id?: string;
262
+ /**
263
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
264
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
265
+ */
266
+ entityFqdn?: string;
267
+ /**
268
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
269
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
270
+ */
271
+ slug?: string;
272
+ /** ID of the entity associated with the event. */
273
+ entityId?: string;
274
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
275
+ eventTime?: Date | null;
276
+ /**
277
+ * Whether the event was triggered as a result of a privacy regulation application
278
+ * (for example, GDPR).
279
+ */
280
+ triggeredByAnonymizeRequest?: boolean | null;
281
+ /** If present, indicates the action that triggered the event. */
282
+ originatedFrom?: string | null;
283
+ /**
284
+ * 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.
285
+ * 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.
286
+ */
287
+ entityEventSequence?: string | null;
288
+ }
289
+ /** @oneof */
290
+ interface DomainEventBodyOneOf {
291
+ createdEvent?: EntityCreatedEvent;
292
+ updatedEvent?: EntityUpdatedEvent;
293
+ deletedEvent?: EntityDeletedEvent;
294
+ actionEvent?: ActionEvent;
295
+ }
296
+ interface EntityCreatedEvent {
297
+ entityAsJson?: string;
298
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
299
+ restoreInfo?: RestoreInfo;
300
+ }
301
+ interface RestoreInfo {
302
+ deletedDate?: Date | null;
303
+ }
304
+ interface EntityUpdatedEvent {
305
+ /**
306
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
307
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
308
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
309
+ */
310
+ currentEntityAsJson?: string;
311
+ }
312
+ interface EntityDeletedEvent {
313
+ /** Entity that was deleted. */
314
+ deletedEntityAsJson?: string | null;
315
+ }
316
+ interface ActionEvent {
317
+ bodyAsJson?: string;
318
+ }
319
+ interface MessageEnvelope {
320
+ /**
321
+ * App instance ID.
322
+ * @format GUID
323
+ */
324
+ instanceId?: string | null;
325
+ /**
326
+ * Event type.
327
+ * @maxLength 150
328
+ */
329
+ eventType?: string;
330
+ /** The identification type and identity data. */
331
+ identity?: IdentificationData;
332
+ /** Stringify payload. */
333
+ data?: string;
334
+ }
335
+ interface IdentificationData extends IdentificationDataIdOneOf {
336
+ /**
337
+ * ID of a site visitor that has not logged in to the site.
338
+ * @format GUID
339
+ */
340
+ anonymousVisitorId?: string;
341
+ /**
342
+ * ID of a site visitor that has logged in to the site.
343
+ * @format GUID
344
+ */
345
+ memberId?: string;
346
+ /**
347
+ * ID of a Wix user (site owner, contributor, etc.).
348
+ * @format GUID
349
+ */
350
+ wixUserId?: string;
351
+ /**
352
+ * ID of an app.
353
+ * @format GUID
354
+ */
355
+ appId?: string;
356
+ /** @readonly */
357
+ identityType?: WebhookIdentityTypeWithLiterals;
358
+ }
359
+ /** @oneof */
360
+ interface IdentificationDataIdOneOf {
361
+ /**
362
+ * ID of a site visitor that has not logged in to the site.
363
+ * @format GUID
364
+ */
365
+ anonymousVisitorId?: string;
366
+ /**
367
+ * ID of a site visitor that has logged in to the site.
368
+ * @format GUID
369
+ */
370
+ memberId?: string;
371
+ /**
372
+ * ID of a Wix user (site owner, contributor, etc.).
373
+ * @format GUID
374
+ */
375
+ wixUserId?: string;
376
+ /**
377
+ * ID of an app.
378
+ * @format GUID
379
+ */
380
+ appId?: string;
381
+ }
382
+ declare enum WebhookIdentityType {
383
+ UNKNOWN = "UNKNOWN",
384
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
385
+ MEMBER = "MEMBER",
386
+ WIX_USER = "WIX_USER",
387
+ APP = "APP"
388
+ }
389
+ /** @enumType */
390
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
205
391
 
206
392
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
207
393
  getUrl: (context: any) => string;
@@ -216,4 +402,4 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
216
402
  declare function getCheckoutSettings(): __PublicMethodMetaInfo<'GET', {}, GetCheckoutSettingsRequest$1, GetCheckoutSettingsRequest, GetCheckoutSettingsResponse$1, GetCheckoutSettingsResponse>;
217
403
  declare function updateCheckoutSettings(): __PublicMethodMetaInfo<'PATCH', {}, UpdateCheckoutSettingsRequest$1, UpdateCheckoutSettingsRequest, UpdateCheckoutSettingsResponse$1, UpdateCheckoutSettingsResponse>;
218
404
 
219
- export { type __PublicMethodMetaInfo, getCheckoutSettings, updateCheckoutSettings };
405
+ export { type ActionEvent as ActionEventOriginal, Alignment as AlignmentOriginal, type AlignmentWithLiterals as AlignmentWithLiteralsOriginal, type CheckboxField as CheckboxFieldOriginal, type CheckoutBrand as CheckoutBrandOriginal, type CheckoutFields as CheckoutFieldsOriginal, type CheckoutHeader as CheckoutHeaderOriginal, type CheckoutPolicies as CheckoutPoliciesOriginal, type CheckoutSettings as CheckoutSettingsOriginal, type ContactUsPolicy as ContactUsPolicyOriginal, type CustomCheckoutPolicy as CustomCheckoutPolicyOriginal, type DeleteCheckoutSettingsRequest as DeleteCheckoutSettingsRequestOriginal, type DeleteCheckoutSettingsResponse as DeleteCheckoutSettingsResponseOriginal, type DigitalItemPolicy as DigitalItemPolicyOriginal, 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 FocalPoint as FocalPointOriginal, type GetCheckoutSettingsRequest as GetCheckoutSettingsRequestOriginal, type GetCheckoutSettingsResponse as GetCheckoutSettingsResponseOriginal, type GiftCardProviderWasProvisioned as GiftCardProviderWasProvisionedOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type ListCheckoutSettingsRequest as ListCheckoutSettingsRequestOriginal, type ListCheckoutSettingsResponse as ListCheckoutSettingsResponseOriginal, type Logo as LogoOriginal, LogoSize as LogoSizeOriginal, type LogoSizeWithLiterals as LogoSizeWithLiteralsOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type PrivacyPolicy as PrivacyPolicyOriginal, type RestoreInfo as RestoreInfoOriginal, type ReturnPolicy as ReturnPolicyOriginal, type TermsAndConditionsPolicy as TermsAndConditionsPolicyOriginal, type UpdateCheckoutSettingsRequest as UpdateCheckoutSettingsRequestOriginal, type UpdateCheckoutSettingsResponse as UpdateCheckoutSettingsResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, getCheckoutSettings, updateCheckoutSettings };
package/build/cjs/meta.js CHANGED
@@ -20,6 +20,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // meta.ts
21
21
  var meta_exports = {};
22
22
  __export(meta_exports, {
23
+ AlignmentOriginal: () => Alignment,
24
+ LogoSizeOriginal: () => LogoSize,
25
+ WebhookIdentityTypeOriginal: () => WebhookIdentityType,
23
26
  getCheckoutSettings: () => getCheckoutSettings2,
24
27
  updateCheckoutSettings: () => updateCheckoutSettings2
25
28
  });
@@ -174,6 +177,29 @@ function updateCheckoutSettings(payload) {
174
177
  return __updateCheckoutSettings;
175
178
  }
176
179
 
180
+ // src/ecom-v1-checkout-settings-checkout-settings.types.ts
181
+ var LogoSize = /* @__PURE__ */ ((LogoSize2) => {
182
+ LogoSize2["UNKNOWN_LOGO_SIZE"] = "UNKNOWN_LOGO_SIZE";
183
+ LogoSize2["SMALL"] = "SMALL";
184
+ LogoSize2["MEDIUM"] = "MEDIUM";
185
+ LogoSize2["LARGE"] = "LARGE";
186
+ return LogoSize2;
187
+ })(LogoSize || {});
188
+ var Alignment = /* @__PURE__ */ ((Alignment2) => {
189
+ Alignment2["UNKNOWN_ALIGNMENT"] = "UNKNOWN_ALIGNMENT";
190
+ Alignment2["SIDE"] = "SIDE";
191
+ Alignment2["CENTER"] = "CENTER";
192
+ return Alignment2;
193
+ })(Alignment || {});
194
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
195
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
196
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
197
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
198
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
199
+ WebhookIdentityType2["APP"] = "APP";
200
+ return WebhookIdentityType2;
201
+ })(WebhookIdentityType || {});
202
+
177
203
  // src/ecom-v1-checkout-settings-checkout-settings.meta.ts
178
204
  function getCheckoutSettings2() {
179
205
  const payload = {};
@@ -213,6 +239,9 @@ function updateCheckoutSettings2() {
213
239
  }
214
240
  // Annotate the CommonJS export names for ESM import in node:
215
241
  0 && (module.exports = {
242
+ AlignmentOriginal,
243
+ LogoSizeOriginal,
244
+ WebhookIdentityTypeOriginal,
216
245
  getCheckoutSettings,
217
246
  updateCheckoutSettings
218
247
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../meta.ts","../../src/ecom-v1-checkout-settings-checkout-settings.http.ts","../../src/ecom-v1-checkout-settings-checkout-settings.meta.ts"],"sourcesContent":["export * from './src/ecom-v1-checkout-settings-checkout-settings.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\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 resolveWixEcomCheckoutSettingsApiV1CheckoutSettingsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/checkout-settings',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/ecom/v1/checkout-settings',\n destPath: '/v1/checkout-settings',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/ecom/v1/checkout-settings',\n destPath: '/v1/checkout-settings',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_checkout-settings';\n\n/** Retrieves the site's checkout settings. */\nexport function getCheckoutSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __getCheckoutSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout_settings',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.checkout_settings.api.v1.CheckoutSettingsService.GetCheckoutSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCheckoutSettingsApiV1CheckoutSettingsServiceUrl({\n protoPath: '/v1/checkout-settings',\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: 'checkoutSettings.createdDate' },\n { path: 'checkoutSettings.updatedDate' },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getCheckoutSettings;\n}\n\n/** Updates the site's checkout settings. */\nexport function updateCheckoutSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateCheckoutSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'checkoutSettings.createdDate' },\n { path: 'checkoutSettings.updatedDate' },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.y',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout_settings',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.ecom.checkout_settings.api.v1.CheckoutSettingsService.UpdateCheckoutSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCheckoutSettingsApiV1CheckoutSettingsServiceUrl({\n protoPath: '/v1/checkout-settings',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'checkoutSettings.createdDate' },\n { path: 'checkoutSettings.updatedDate' },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateCheckoutSettings;\n}\n","import * as ambassadorWixEcomV1CheckoutSettings from './ecom-v1-checkout-settings-checkout-settings.http.js';\nimport * as ambassadorWixEcomV1CheckoutSettingsTypes from './ecom-v1-checkout-settings-checkout-settings.types.js';\nimport * as ambassadorWixEcomV1CheckoutSettingsUniversalTypes from './ecom-v1-checkout-settings-checkout-settings.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 getCheckoutSettings(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixEcomV1CheckoutSettingsUniversalTypes.GetCheckoutSettingsRequest,\n ambassadorWixEcomV1CheckoutSettingsTypes.GetCheckoutSettingsRequest,\n ambassadorWixEcomV1CheckoutSettingsUniversalTypes.GetCheckoutSettingsResponse,\n ambassadorWixEcomV1CheckoutSettingsTypes.GetCheckoutSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1CheckoutSettings.getCheckoutSettings(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/checkout-settings',\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 updateCheckoutSettings(): __PublicMethodMetaInfo<\n 'PATCH',\n {},\n ambassadorWixEcomV1CheckoutSettingsUniversalTypes.UpdateCheckoutSettingsRequest,\n ambassadorWixEcomV1CheckoutSettingsTypes.UpdateCheckoutSettingsRequest,\n ambassadorWixEcomV1CheckoutSettingsUniversalTypes.UpdateCheckoutSettingsResponse,\n ambassadorWixEcomV1CheckoutSettingsTypes.UpdateCheckoutSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1CheckoutSettings.updateCheckoutSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/checkout-settings',\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,8BAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;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,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;A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AAI,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":["getCheckoutSettings","updateCheckoutSettings","import_float","import_timestamp","import_rest_modules","payload","getCheckoutSettings","updateCheckoutSettings"]}
1
+ {"version":3,"sources":["../../meta.ts","../../src/ecom-v1-checkout-settings-checkout-settings.http.ts","../../src/ecom-v1-checkout-settings-checkout-settings.types.ts","../../src/ecom-v1-checkout-settings-checkout-settings.meta.ts"],"sourcesContent":["export * from './src/ecom-v1-checkout-settings-checkout-settings.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\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 resolveWixEcomCheckoutSettingsApiV1CheckoutSettingsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/checkout-settings',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/ecom/v1/checkout-settings',\n destPath: '/v1/checkout-settings',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/ecom/v1/checkout-settings',\n destPath: '/v1/checkout-settings',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_checkout-settings';\n\n/** Retrieves the site's checkout settings. */\nexport function getCheckoutSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __getCheckoutSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout_settings',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.checkout_settings.api.v1.CheckoutSettingsService.GetCheckoutSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCheckoutSettingsApiV1CheckoutSettingsServiceUrl({\n protoPath: '/v1/checkout-settings',\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: 'checkoutSettings.createdDate' },\n { path: 'checkoutSettings.updatedDate' },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getCheckoutSettings;\n}\n\n/** Updates the site's checkout settings. */\nexport function updateCheckoutSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateCheckoutSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'checkoutSettings.createdDate' },\n { path: 'checkoutSettings.updatedDate' },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.y',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout_settings',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.ecom.checkout_settings.api.v1.CheckoutSettingsService.UpdateCheckoutSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCheckoutSettingsApiV1CheckoutSettingsServiceUrl({\n protoPath: '/v1/checkout-settings',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'checkoutSettings.createdDate' },\n { path: 'checkoutSettings.updatedDate' },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.x',\n },\n {\n path: 'checkoutSettings.checkoutBrand.header.logo.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateCheckoutSettings;\n}\n","export interface CheckoutSettings {\n /** Checkout policies. */\n checkoutPolicies?: CheckoutPolicies;\n /** Settings that apply to checkout fields and the checkout process. */\n checkoutFields?: CheckoutFields;\n /** Checkout brand settings. */\n checkoutBrand?: CheckoutBrand;\n /**\n * Date and time the checkout settings were created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the checkout settings were updated.\n * @readonly\n */\n updatedDate?: Date | null;\n}\n\nexport interface CheckoutPolicies {\n /** Terms and conditions. */\n termsAndConditions?: TermsAndConditionsPolicy;\n /** Privacy policy. */\n privacyPolicy?: PrivacyPolicy;\n /** Return policy. */\n returnPolicy?: ReturnPolicy;\n /** Digital item policy. */\n digitalItemPolicy?: DigitalItemPolicy;\n /** \"Contact us\" information. */\n contactUs?: ContactUsPolicy;\n /** Custom policy. */\n customPolicy?: CustomCheckoutPolicy;\n}\n\nexport interface TermsAndConditionsPolicy {\n /**\n * Whether the terms and conditions policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Terms and conditions policy content. */\n content?: string | null;\n}\n\nexport interface PrivacyPolicy {\n /**\n * Whether the privacy policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Privacy policy content. */\n content?: string | null;\n}\n\nexport interface ReturnPolicy {\n /**\n * Whether the return policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Return policy content. */\n content?: string | null;\n}\n\nexport interface DigitalItemPolicy {\n /**\n * Whether the digital item policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Digital item policy content. */\n content?: string | null;\n}\n\nexport interface ContactUsPolicy {\n /**\n * Whether the contact us policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Contact us policy content. */\n content?: string | null;\n}\n\nexport interface CustomCheckoutPolicy {\n /**\n * Whether the custom policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Custom policy content. */\n content?: string | null;\n /** Custom policy title. */\n title?: string | null;\n}\n\nexport interface CheckoutFields {\n /**\n * Subscription checkbox. <br><br>\n *\n * Defaults:\n * + `visible`: `false`\n * + `checkedByDefault`: `false`\n */\n subscriptionCheckbox?: CheckboxField;\n /**\n * Policy agreement checkbox. <br><br>\n *\n * Defaults:\n * + `visible`: `false`\n * + `checkedByDefault`: `false`\n */\n policyAgreementCheckbox?: CheckboxField;\n /**\n * Whether the ability to redeem a gift card is enabled. <br><br>\n *\n * Default: `false`\n */\n giftCardRedeemEnabled?: boolean | null;\n /**\n * Whether to allow for MIT transactions. <br><br>\n *\n * Default: `false`\n */\n mitEnabled?: boolean | null;\n /**\n * Whether to allow for Auth & Capture transactions. <br><br>\n *\n * Default: `false`\n */\n delayCaptureEnabled?: boolean | null;\n /**\n * Whether to automatically capture the transaction before the authorization expires.\n *\n * Default: `true`\n * >**Note:** this setting is only relevant when `delay_capture_enabled: true`.\n */\n captureBeforeExpiryEnabled?: boolean | null;\n}\n\nexport interface CheckboxField {\n /** Whether the checkbox is visible to the customer. */\n visible?: boolean | null;\n /** Whether the checkbox is checked by default. */\n checkedByDefault?: boolean | null;\n}\n\nexport interface CheckoutBrand {\n /** Checkout header. */\n header?: CheckoutHeader;\n}\n\nexport interface CheckoutHeader {\n /**\n * Textual content to be included in the header (e.g. Business Name)\n * TODO: update maxLength validation once limitation is known\n * @maxLength 55\n */\n text?: string | null;\n /** Specifications for when a logo is included in the header. */\n logo?: Logo;\n /**\n * Alignment within the header.\n *\n * >**Note:** `SIDE` alignment is decided depending on the locale's language. For example, scripts like Hebrew and Arabic will automatically align right-to-left.\n */\n alignment?: AlignmentWithLiterals;\n /**\n * Whether to display the 'Checkout' label within the header.\n * Depending on the locale, the label may be translated.\n */\n displayCheckoutLabel?: boolean | null;\n}\n\nexport interface Logo {\n /** Size of the logo. */\n size?: LogoSizeWithLiterals;\n}\n\nexport interface Image {\n /** WixMedia image ID. */\n id?: string;\n /** Image URL. */\n url?: string;\n /**\n * Original image height.\n * @readonly\n */\n height?: number;\n /**\n * Original image width.\n * @readonly\n */\n width?: number;\n /** Image alt text. */\n altText?: string | null;\n /**\n * Image filename.\n * @readonly\n */\n filename?: string | null;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport enum LogoSize {\n UNKNOWN_LOGO_SIZE = 'UNKNOWN_LOGO_SIZE',\n SMALL = 'SMALL',\n MEDIUM = 'MEDIUM',\n LARGE = 'LARGE',\n}\n\n/** @enumType */\nexport type LogoSizeWithLiterals =\n | LogoSize\n | 'UNKNOWN_LOGO_SIZE'\n | 'SMALL'\n | 'MEDIUM'\n | 'LARGE';\n\nexport enum Alignment {\n UNKNOWN_ALIGNMENT = 'UNKNOWN_ALIGNMENT',\n SIDE = 'SIDE',\n CENTER = 'CENTER',\n}\n\n/** @enumType */\nexport type AlignmentWithLiterals =\n | Alignment\n | 'UNKNOWN_ALIGNMENT'\n | 'SIDE'\n | 'CENTER';\n\nexport interface GetCheckoutSettingsRequest {}\n\nexport interface GetCheckoutSettingsResponse {\n /** Checkout settings. */\n checkoutSettings?: CheckoutSettings;\n}\n\nexport interface UpdateCheckoutSettingsRequest {\n /** Checkout settings to update. */\n checkoutSettings: CheckoutSettings;\n}\n\nexport interface UpdateCheckoutSettingsResponse {\n /** Updated checkout settings. */\n checkoutSettings?: CheckoutSettings;\n}\n\nexport interface ListCheckoutSettingsRequest {}\n\nexport interface ListCheckoutSettingsResponse {\n /** List of retrieved checkout settings. */\n checkoutSettings?: CheckoutSettings[];\n}\n\nexport interface GiftCardProviderWasProvisioned {\n /** The gift card provider which was installed */\n providerAppDefId?: string;\n providerInstanceId?: string;\n}\n\nexport interface Empty {}\n\nexport interface DeleteCheckoutSettingsRequest {}\n\nexport interface DeleteCheckoutSettingsResponse {}\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 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 ambassadorWixEcomV1CheckoutSettings from './ecom-v1-checkout-settings-checkout-settings.http.js';\nimport * as ambassadorWixEcomV1CheckoutSettingsTypes from './ecom-v1-checkout-settings-checkout-settings.types.js';\nimport * as ambassadorWixEcomV1CheckoutSettingsUniversalTypes from './ecom-v1-checkout-settings-checkout-settings.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 getCheckoutSettings(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixEcomV1CheckoutSettingsUniversalTypes.GetCheckoutSettingsRequest,\n ambassadorWixEcomV1CheckoutSettingsTypes.GetCheckoutSettingsRequest,\n ambassadorWixEcomV1CheckoutSettingsUniversalTypes.GetCheckoutSettingsResponse,\n ambassadorWixEcomV1CheckoutSettingsTypes.GetCheckoutSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1CheckoutSettings.getCheckoutSettings(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/checkout-settings',\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 updateCheckoutSettings(): __PublicMethodMetaInfo<\n 'PATCH',\n {},\n ambassadorWixEcomV1CheckoutSettingsUniversalTypes.UpdateCheckoutSettingsRequest,\n ambassadorWixEcomV1CheckoutSettingsTypes.UpdateCheckoutSettingsRequest,\n ambassadorWixEcomV1CheckoutSettingsUniversalTypes.UpdateCheckoutSettingsResponse,\n ambassadorWixEcomV1CheckoutSettingsTypes.UpdateCheckoutSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1CheckoutSettings.updateCheckoutSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/checkout-settings',\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 CheckoutSettings as CheckoutSettingsOriginal,\n CheckoutPolicies as CheckoutPoliciesOriginal,\n TermsAndConditionsPolicy as TermsAndConditionsPolicyOriginal,\n PrivacyPolicy as PrivacyPolicyOriginal,\n ReturnPolicy as ReturnPolicyOriginal,\n DigitalItemPolicy as DigitalItemPolicyOriginal,\n ContactUsPolicy as ContactUsPolicyOriginal,\n CustomCheckoutPolicy as CustomCheckoutPolicyOriginal,\n CheckoutFields as CheckoutFieldsOriginal,\n CheckboxField as CheckboxFieldOriginal,\n CheckoutBrand as CheckoutBrandOriginal,\n CheckoutHeader as CheckoutHeaderOriginal,\n Logo as LogoOriginal,\n Image as ImageOriginal,\n FocalPoint as FocalPointOriginal,\n LogoSize as LogoSizeOriginal,\n LogoSizeWithLiterals as LogoSizeWithLiteralsOriginal,\n Alignment as AlignmentOriginal,\n AlignmentWithLiterals as AlignmentWithLiteralsOriginal,\n GetCheckoutSettingsRequest as GetCheckoutSettingsRequestOriginal,\n GetCheckoutSettingsResponse as GetCheckoutSettingsResponseOriginal,\n UpdateCheckoutSettingsRequest as UpdateCheckoutSettingsRequestOriginal,\n UpdateCheckoutSettingsResponse as UpdateCheckoutSettingsResponseOriginal,\n ListCheckoutSettingsRequest as ListCheckoutSettingsRequestOriginal,\n ListCheckoutSettingsResponse as ListCheckoutSettingsResponseOriginal,\n GiftCardProviderWasProvisioned as GiftCardProviderWasProvisionedOriginal,\n Empty as EmptyOriginal,\n DeleteCheckoutSettingsRequest as DeleteCheckoutSettingsRequestOriginal,\n DeleteCheckoutSettingsResponse as DeleteCheckoutSettingsResponseOriginal,\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 MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n} from './ecom-v1-checkout-settings-checkout-settings.types.js';\n"],"mappings":";;;;;;;;;;;;;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,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["getCheckoutSettings","updateCheckoutSettings","import_float","import_timestamp","import_rest_modules","payload","LogoSize","Alignment","WebhookIdentityType","getCheckoutSettings","updateCheckoutSettings"]}
@@ -173,6 +173,39 @@ interface Logo {
173
173
  /** Size of the logo. */
174
174
  size?: LogoSizeWithLiterals;
175
175
  }
176
+ interface Image {
177
+ /** WixMedia image ID. */
178
+ id?: string;
179
+ /** Image URL. */
180
+ url?: string;
181
+ /**
182
+ * Original image height.
183
+ * @readonly
184
+ */
185
+ height?: number;
186
+ /**
187
+ * Original image width.
188
+ * @readonly
189
+ */
190
+ width?: number;
191
+ /** Image alt text. */
192
+ altText?: string | null;
193
+ /**
194
+ * Image filename.
195
+ * @readonly
196
+ */
197
+ filename?: string | null;
198
+ }
199
+ interface FocalPoint {
200
+ /** X-coordinate of the focal point. */
201
+ x?: number;
202
+ /** Y-coordinate of the focal point. */
203
+ y?: number;
204
+ /** crop by height */
205
+ height?: number | null;
206
+ /** crop by width */
207
+ width?: number | null;
208
+ }
176
209
  declare enum LogoSize {
177
210
  UNKNOWN_LOGO_SIZE = "UNKNOWN_LOGO_SIZE",
178
211
  SMALL = "SMALL",
@@ -202,6 +235,159 @@ interface UpdateCheckoutSettingsResponse {
202
235
  /** Updated checkout settings. */
203
236
  checkoutSettings?: CheckoutSettings;
204
237
  }
238
+ interface ListCheckoutSettingsRequest {
239
+ }
240
+ interface ListCheckoutSettingsResponse {
241
+ /** List of retrieved checkout settings. */
242
+ checkoutSettings?: CheckoutSettings[];
243
+ }
244
+ interface GiftCardProviderWasProvisioned {
245
+ /** The gift card provider which was installed */
246
+ providerAppDefId?: string;
247
+ providerInstanceId?: string;
248
+ }
249
+ interface Empty {
250
+ }
251
+ interface DeleteCheckoutSettingsRequest {
252
+ }
253
+ interface DeleteCheckoutSettingsResponse {
254
+ }
255
+ interface DomainEvent extends DomainEventBodyOneOf {
256
+ createdEvent?: EntityCreatedEvent;
257
+ updatedEvent?: EntityUpdatedEvent;
258
+ deletedEvent?: EntityDeletedEvent;
259
+ actionEvent?: ActionEvent;
260
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
261
+ id?: string;
262
+ /**
263
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
264
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
265
+ */
266
+ entityFqdn?: string;
267
+ /**
268
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
269
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
270
+ */
271
+ slug?: string;
272
+ /** ID of the entity associated with the event. */
273
+ entityId?: string;
274
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
275
+ eventTime?: Date | null;
276
+ /**
277
+ * Whether the event was triggered as a result of a privacy regulation application
278
+ * (for example, GDPR).
279
+ */
280
+ triggeredByAnonymizeRequest?: boolean | null;
281
+ /** If present, indicates the action that triggered the event. */
282
+ originatedFrom?: string | null;
283
+ /**
284
+ * 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.
285
+ * 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.
286
+ */
287
+ entityEventSequence?: string | null;
288
+ }
289
+ /** @oneof */
290
+ interface DomainEventBodyOneOf {
291
+ createdEvent?: EntityCreatedEvent;
292
+ updatedEvent?: EntityUpdatedEvent;
293
+ deletedEvent?: EntityDeletedEvent;
294
+ actionEvent?: ActionEvent;
295
+ }
296
+ interface EntityCreatedEvent {
297
+ entityAsJson?: string;
298
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
299
+ restoreInfo?: RestoreInfo;
300
+ }
301
+ interface RestoreInfo {
302
+ deletedDate?: Date | null;
303
+ }
304
+ interface EntityUpdatedEvent {
305
+ /**
306
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
307
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
308
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
309
+ */
310
+ currentEntityAsJson?: string;
311
+ }
312
+ interface EntityDeletedEvent {
313
+ /** Entity that was deleted. */
314
+ deletedEntityAsJson?: string | null;
315
+ }
316
+ interface ActionEvent {
317
+ bodyAsJson?: string;
318
+ }
319
+ interface MessageEnvelope {
320
+ /**
321
+ * App instance ID.
322
+ * @format GUID
323
+ */
324
+ instanceId?: string | null;
325
+ /**
326
+ * Event type.
327
+ * @maxLength 150
328
+ */
329
+ eventType?: string;
330
+ /** The identification type and identity data. */
331
+ identity?: IdentificationData;
332
+ /** Stringify payload. */
333
+ data?: string;
334
+ }
335
+ interface IdentificationData extends IdentificationDataIdOneOf {
336
+ /**
337
+ * ID of a site visitor that has not logged in to the site.
338
+ * @format GUID
339
+ */
340
+ anonymousVisitorId?: string;
341
+ /**
342
+ * ID of a site visitor that has logged in to the site.
343
+ * @format GUID
344
+ */
345
+ memberId?: string;
346
+ /**
347
+ * ID of a Wix user (site owner, contributor, etc.).
348
+ * @format GUID
349
+ */
350
+ wixUserId?: string;
351
+ /**
352
+ * ID of an app.
353
+ * @format GUID
354
+ */
355
+ appId?: string;
356
+ /** @readonly */
357
+ identityType?: WebhookIdentityTypeWithLiterals;
358
+ }
359
+ /** @oneof */
360
+ interface IdentificationDataIdOneOf {
361
+ /**
362
+ * ID of a site visitor that has not logged in to the site.
363
+ * @format GUID
364
+ */
365
+ anonymousVisitorId?: string;
366
+ /**
367
+ * ID of a site visitor that has logged in to the site.
368
+ * @format GUID
369
+ */
370
+ memberId?: string;
371
+ /**
372
+ * ID of a Wix user (site owner, contributor, etc.).
373
+ * @format GUID
374
+ */
375
+ wixUserId?: string;
376
+ /**
377
+ * ID of an app.
378
+ * @format GUID
379
+ */
380
+ appId?: string;
381
+ }
382
+ declare enum WebhookIdentityType {
383
+ UNKNOWN = "UNKNOWN",
384
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
385
+ MEMBER = "MEMBER",
386
+ WIX_USER = "WIX_USER",
387
+ APP = "APP"
388
+ }
389
+ /** @enumType */
390
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
205
391
 
206
392
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
207
393
  getUrl: (context: any) => string;
@@ -216,4 +402,4 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
216
402
  declare function getCheckoutSettings(): __PublicMethodMetaInfo<'GET', {}, GetCheckoutSettingsRequest$1, GetCheckoutSettingsRequest, GetCheckoutSettingsResponse$1, GetCheckoutSettingsResponse>;
217
403
  declare function updateCheckoutSettings(): __PublicMethodMetaInfo<'PATCH', {}, UpdateCheckoutSettingsRequest$1, UpdateCheckoutSettingsRequest, UpdateCheckoutSettingsResponse$1, UpdateCheckoutSettingsResponse>;
218
404
 
219
- export { type __PublicMethodMetaInfo, getCheckoutSettings, updateCheckoutSettings };
405
+ export { type ActionEvent as ActionEventOriginal, Alignment as AlignmentOriginal, type AlignmentWithLiterals as AlignmentWithLiteralsOriginal, type CheckboxField as CheckboxFieldOriginal, type CheckoutBrand as CheckoutBrandOriginal, type CheckoutFields as CheckoutFieldsOriginal, type CheckoutHeader as CheckoutHeaderOriginal, type CheckoutPolicies as CheckoutPoliciesOriginal, type CheckoutSettings as CheckoutSettingsOriginal, type ContactUsPolicy as ContactUsPolicyOriginal, type CustomCheckoutPolicy as CustomCheckoutPolicyOriginal, type DeleteCheckoutSettingsRequest as DeleteCheckoutSettingsRequestOriginal, type DeleteCheckoutSettingsResponse as DeleteCheckoutSettingsResponseOriginal, type DigitalItemPolicy as DigitalItemPolicyOriginal, 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 FocalPoint as FocalPointOriginal, type GetCheckoutSettingsRequest as GetCheckoutSettingsRequestOriginal, type GetCheckoutSettingsResponse as GetCheckoutSettingsResponseOriginal, type GiftCardProviderWasProvisioned as GiftCardProviderWasProvisionedOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type ListCheckoutSettingsRequest as ListCheckoutSettingsRequestOriginal, type ListCheckoutSettingsResponse as ListCheckoutSettingsResponseOriginal, type Logo as LogoOriginal, LogoSize as LogoSizeOriginal, type LogoSizeWithLiterals as LogoSizeWithLiteralsOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type PrivacyPolicy as PrivacyPolicyOriginal, type RestoreInfo as RestoreInfoOriginal, type ReturnPolicy as ReturnPolicyOriginal, type TermsAndConditionsPolicy as TermsAndConditionsPolicyOriginal, type UpdateCheckoutSettingsRequest as UpdateCheckoutSettingsRequestOriginal, type UpdateCheckoutSettingsResponse as UpdateCheckoutSettingsResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, getCheckoutSettings, updateCheckoutSettings };
package/build/es/meta.mjs CHANGED
@@ -147,6 +147,29 @@ function updateCheckoutSettings(payload) {
147
147
  return __updateCheckoutSettings;
148
148
  }
149
149
 
150
+ // src/ecom-v1-checkout-settings-checkout-settings.types.ts
151
+ var LogoSize = /* @__PURE__ */ ((LogoSize2) => {
152
+ LogoSize2["UNKNOWN_LOGO_SIZE"] = "UNKNOWN_LOGO_SIZE";
153
+ LogoSize2["SMALL"] = "SMALL";
154
+ LogoSize2["MEDIUM"] = "MEDIUM";
155
+ LogoSize2["LARGE"] = "LARGE";
156
+ return LogoSize2;
157
+ })(LogoSize || {});
158
+ var Alignment = /* @__PURE__ */ ((Alignment2) => {
159
+ Alignment2["UNKNOWN_ALIGNMENT"] = "UNKNOWN_ALIGNMENT";
160
+ Alignment2["SIDE"] = "SIDE";
161
+ Alignment2["CENTER"] = "CENTER";
162
+ return Alignment2;
163
+ })(Alignment || {});
164
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
165
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
166
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
167
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
168
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
169
+ WebhookIdentityType2["APP"] = "APP";
170
+ return WebhookIdentityType2;
171
+ })(WebhookIdentityType || {});
172
+
150
173
  // src/ecom-v1-checkout-settings-checkout-settings.meta.ts
151
174
  function getCheckoutSettings2() {
152
175
  const payload = {};
@@ -185,6 +208,9 @@ function updateCheckoutSettings2() {
185
208
  };
186
209
  }
187
210
  export {
211
+ Alignment as AlignmentOriginal,
212
+ LogoSize as LogoSizeOriginal,
213
+ WebhookIdentityType as WebhookIdentityTypeOriginal,
188
214
  getCheckoutSettings2 as getCheckoutSettings,
189
215
  updateCheckoutSettings2 as updateCheckoutSettings
190
216
  };