@wix/auto_sdk_arrivals_arrivals 1.0.1 → 1.0.3

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.
@@ -389,10 +389,12 @@ declare enum PlanBenefitIssue {
389
389
  /** A credit pack with no credits left, as Pricing Plans reports. Staff override, or sell credits and create a new arrival. */
390
390
  NOT_ENOUGH_BALANCE = "NOT_ENOUGH_BALANCE",
391
391
  /** The plan's usage policy does not allow entry at this hour or on this day, as Pricing Plans reports. */
392
- OUTSIDE_ACCESS_HOURS = "OUTSIDE_ACCESS_HOURS"
392
+ OUTSIDE_ACCESS_HOURS = "OUTSIDE_ACCESS_HOURS",
393
+ /** The plan's usage policy limits how often it can be used, such as three entries a week, and that limit is used up for the current period, as Pricing Plans reports. Staff override, or the client comes back in the next period. */
394
+ USAGE_LIMIT_REACHED = "USAGE_LIMIT_REACHED"
393
395
  }
394
396
  /** @enumType */
395
- type PlanBenefitIssueWithLiterals = PlanBenefitIssue | 'PLAN_NOT_ACTIVE' | 'NOT_ENOUGH_BALANCE' | 'OUTSIDE_ACCESS_HOURS';
397
+ type PlanBenefitIssueWithLiterals = PlanBenefitIssue | 'PLAN_NOT_ACTIVE' | 'NOT_ENOUGH_BALANCE' | 'OUTSIDE_ACCESS_HOURS' | 'USAGE_LIMIT_REACHED';
396
398
  /**
397
399
  * A scheduled event the engine found for the person at this area, with whether it admits: the event itself, of
398
400
  * the same type as the arrival's `scheduledEvent`, and its `issues`.
@@ -26,11 +26,37 @@ var TRANSFORM_PATHS_3 = [
26
26
  { path: "arrivals.updatedDate" }
27
27
  ];
28
28
  function resolveWixArrivalsV1CredentialArrivalsServiceUrl(opts) {
29
- const domainToMappings = {};
29
+ const domainToMappings = {
30
+ "manage._base_domain_": [
31
+ {
32
+ srcPath: "/_api/arrivals-arrivals",
33
+ destPath: ""
34
+ }
35
+ ],
36
+ "www._base_domain_": [
37
+ {
38
+ srcPath: "/_api/arrivals-arrivals",
39
+ destPath: ""
40
+ }
41
+ ]
42
+ };
30
43
  return resolveUrl(Object.assign(opts, { domainToMappings }));
31
44
  }
32
45
  function resolveWixArrivalsV1ArrivalsServiceUrl(opts) {
33
- const domainToMappings = {};
46
+ const domainToMappings = {
47
+ "manage._base_domain_": [
48
+ {
49
+ srcPath: "/_api/arrivals-arrivals",
50
+ destPath: ""
51
+ }
52
+ ],
53
+ "www._base_domain_": [
54
+ {
55
+ srcPath: "/_api/arrivals-arrivals",
56
+ destPath: ""
57
+ }
58
+ ]
59
+ };
34
60
  return resolveUrl(Object.assign(opts, { domainToMappings }));
35
61
  }
36
62
  var PACKAGE_NAME = "@wix/auto_sdk_arrivals_arrivals";
@@ -306,6 +332,7 @@ var PlanBenefitIssue = /* @__PURE__ */ ((PlanBenefitIssue2) => {
306
332
  PlanBenefitIssue2["PLAN_NOT_ACTIVE"] = "PLAN_NOT_ACTIVE";
307
333
  PlanBenefitIssue2["NOT_ENOUGH_BALANCE"] = "NOT_ENOUGH_BALANCE";
308
334
  PlanBenefitIssue2["OUTSIDE_ACCESS_HOURS"] = "OUTSIDE_ACCESS_HOURS";
335
+ PlanBenefitIssue2["USAGE_LIMIT_REACHED"] = "USAGE_LIMIT_REACHED";
309
336
  return PlanBenefitIssue2;
310
337
  })(PlanBenefitIssue || {});
311
338
  var ScheduledEventIssue = /* @__PURE__ */ ((ScheduledEventIssue2) => {