@51eat/sdk 0.0.33 → 0.0.35

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.
Files changed (136) hide show
  1. package/README.md +12 -16
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +0 -3
  4. package/dist/cjs/Client.js +6 -11
  5. package/dist/cjs/api/resources/business/resources/events/client/Client.d.ts +3 -0
  6. package/dist/cjs/api/resources/business/resources/events/client/Client.js +9 -4
  7. package/dist/cjs/api/resources/business/resources/events/resources/checkIn/client/Client.d.ts +57 -0
  8. package/dist/cjs/api/resources/business/resources/events/resources/checkIn/client/Client.js +226 -0
  9. package/dist/{esm/api/resources/customer/resources/events/resources/ticketing/client/requests/HoldTicketsTicketingRequest.d.mts → cjs/api/resources/business/resources/events/resources/checkIn/client/requests/LookupCheckInRequest.d.ts} +1 -1
  10. package/dist/cjs/api/resources/{customer/resources/events/resources/ticketing/client/requests/HoldTicketsTicketingRequest.d.ts → business/resources/events/resources/checkIn/client/requests/RecentCheckInRequest.d.ts} +1 -1
  11. package/dist/{esm/api/resources/customer/resources/events/resources/ticketing/client/requests/ConfirmOrderTicketingRequest.d.mts → cjs/api/resources/business/resources/events/resources/checkIn/client/requests/ScanCheckInRequest.d.ts} +1 -1
  12. package/dist/cjs/api/resources/{customer/resources/events/resources/ticketing/client/requests/ConfirmOrderTicketingRequest.d.ts → business/resources/events/resources/checkIn/client/requests/StatsCheckInRequest.d.ts} +1 -1
  13. package/dist/cjs/api/resources/business/resources/events/resources/checkIn/client/requests/index.d.ts +4 -0
  14. package/dist/cjs/api/resources/business/resources/events/resources/checkIn/exports.d.ts +2 -0
  15. package/dist/cjs/api/resources/{customerEvents → business/resources/events/resources/checkIn}/exports.js +2 -2
  16. package/dist/cjs/api/resources/{customerEvents → business/resources/events/resources/checkIn}/index.d.ts +0 -1
  17. package/dist/cjs/api/resources/{customerEvents → business/resources/events/resources/checkIn}/index.js +0 -1
  18. package/dist/cjs/api/resources/business/resources/events/resources/index.d.ts +2 -0
  19. package/dist/cjs/api/resources/business/resources/events/resources/index.js +3 -1
  20. package/dist/cjs/api/resources/customer/resources/events/resources/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/customer/resources/events/resources/index.js +1 -0
  22. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.d.ts +55 -14
  23. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.js +171 -53
  24. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/ReleaseHoldTicketingRequest.d.ts +2 -2
  25. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/index.d.ts +4 -4
  26. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/index.d.ts +1 -0
  27. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/index.js +1 -0
  28. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/CalculatePriceTicketingResponse.d.ts +11 -0
  29. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/ConfirmOrderTicketingResponse.d.ts +4 -0
  30. package/dist/cjs/api/resources/{customerEvents/types/CreatePaymentIntentResponse.d.ts → customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.ts} +3 -3
  31. package/dist/{esm/api/resources/customerEvents/types/HoldTicketsResponse.d.mts → cjs/api/resources/customer/resources/events/resources/ticketing/types/HoldTicketsTicketingResponse.d.ts} +3 -3
  32. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/index.d.ts +4 -0
  33. package/dist/cjs/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/types/index.js +4 -4
  34. package/dist/cjs/api/resources/index.d.ts +0 -3
  35. package/dist/cjs/api/resources/index.js +1 -4
  36. package/dist/cjs/version.d.ts +1 -1
  37. package/dist/cjs/version.js +1 -1
  38. package/dist/esm/BaseClient.mjs +2 -2
  39. package/dist/esm/Client.d.mts +0 -3
  40. package/dist/esm/Client.mjs +0 -5
  41. package/dist/esm/api/resources/business/resources/events/client/Client.d.mts +3 -0
  42. package/dist/esm/api/resources/business/resources/events/client/Client.mjs +5 -0
  43. package/dist/esm/api/resources/business/resources/events/resources/checkIn/client/Client.d.mts +57 -0
  44. package/dist/esm/api/resources/business/resources/events/resources/checkIn/client/Client.mjs +189 -0
  45. package/dist/esm/api/resources/business/resources/events/resources/checkIn/client/requests/LookupCheckInRequest.d.mts +9 -0
  46. package/dist/esm/api/resources/business/resources/events/resources/checkIn/client/requests/RecentCheckInRequest.d.mts +9 -0
  47. package/dist/esm/api/resources/business/resources/events/resources/checkIn/client/requests/ScanCheckInRequest.d.mts +9 -0
  48. package/dist/esm/api/resources/business/resources/events/resources/checkIn/client/requests/StatsCheckInRequest.d.mts +9 -0
  49. package/dist/esm/api/resources/business/resources/events/resources/checkIn/client/requests/index.d.mts +4 -0
  50. package/dist/esm/api/resources/business/resources/events/resources/checkIn/exports.d.mts +2 -0
  51. package/dist/esm/api/resources/{customerEvents → business/resources/events/resources/checkIn}/exports.mjs +1 -1
  52. package/dist/esm/api/resources/{customerEvents → business/resources/events/resources/checkIn}/index.d.mts +0 -1
  53. package/dist/esm/api/resources/{customerEvents → business/resources/events/resources/checkIn}/index.mjs +0 -1
  54. package/dist/esm/api/resources/business/resources/events/resources/index.d.mts +2 -0
  55. package/dist/esm/api/resources/business/resources/events/resources/index.mjs +2 -0
  56. package/dist/esm/api/resources/customer/resources/events/resources/index.d.mts +1 -0
  57. package/dist/esm/api/resources/customer/resources/events/resources/index.mjs +1 -0
  58. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.d.mts +55 -14
  59. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.mjs +171 -53
  60. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/ReleaseHoldTicketingRequest.d.mts +2 -2
  61. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/index.d.mts +4 -4
  62. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/index.d.mts +1 -0
  63. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/index.mjs +1 -0
  64. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/CalculatePriceTicketingResponse.d.mts +11 -0
  65. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/ConfirmOrderTicketingResponse.d.mts +4 -0
  66. package/dist/esm/api/resources/{customerEvents/types/CreatePaymentIntentResponse.d.mts → customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.mts} +3 -3
  67. package/dist/{cjs/api/resources/customerEvents/types/HoldTicketsResponse.d.ts → esm/api/resources/customer/resources/events/resources/ticketing/types/HoldTicketsTicketingResponse.d.mts} +3 -3
  68. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/index.d.mts +4 -0
  69. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/index.mjs +4 -0
  70. package/dist/esm/api/resources/index.d.mts +0 -3
  71. package/dist/esm/api/resources/index.mjs +0 -3
  72. package/dist/esm/version.d.mts +1 -1
  73. package/dist/esm/version.mjs +1 -1
  74. package/package.json +12 -12
  75. package/reference.md +401 -453
  76. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/CalculatePriceTicketingRequest.d.ts +0 -9
  77. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/CreatePaymentIntentTicketingRequest.d.ts +0 -9
  78. package/dist/cjs/api/resources/customerEvents/client/Client.d.ts +0 -110
  79. package/dist/cjs/api/resources/customerEvents/client/Client.js +0 -384
  80. package/dist/cjs/api/resources/customerEvents/client/requests/ReleaseTicketHoldRequest.d.ts +0 -11
  81. package/dist/cjs/api/resources/customerEvents/client/requests/index.d.ts +0 -5
  82. package/dist/cjs/api/resources/customerEvents/exports.d.ts +0 -2
  83. package/dist/cjs/api/resources/customerEvents/types/CalculateTicketPriceResponse.d.ts +0 -11
  84. package/dist/cjs/api/resources/customerEvents/types/ConfirmTicketOrderResponse.d.ts +0 -4
  85. package/dist/cjs/api/resources/customerEvents/types/HoldTicketsResponse.js +0 -3
  86. package/dist/cjs/api/resources/customerEvents/types/index.d.ts +0 -4
  87. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/CalculatePriceTicketingRequest.d.mts +0 -9
  88. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/CreatePaymentIntentTicketingRequest.d.mts +0 -9
  89. package/dist/esm/api/resources/customerEvents/client/Client.d.mts +0 -110
  90. package/dist/esm/api/resources/customerEvents/client/Client.mjs +0 -347
  91. package/dist/esm/api/resources/customerEvents/client/requests/ReleaseTicketHoldRequest.d.mts +0 -11
  92. package/dist/esm/api/resources/customerEvents/client/requests/index.d.mts +0 -5
  93. package/dist/esm/api/resources/customerEvents/exports.d.mts +0 -2
  94. package/dist/esm/api/resources/customerEvents/types/CalculateTicketPriceResponse.d.mts +0 -11
  95. package/dist/esm/api/resources/customerEvents/types/ConfirmTicketOrderResponse.d.mts +0 -4
  96. package/dist/esm/api/resources/customerEvents/types/HoldTicketsResponse.mjs +0 -2
  97. package/dist/esm/api/resources/customerEvents/types/index.d.mts +0 -4
  98. package/dist/esm/api/resources/customerEvents/types/index.mjs +0 -4
  99. /package/dist/cjs/api/resources/{customerEvents → business/resources/events/resources/checkIn}/client/index.d.ts +0 -0
  100. /package/dist/cjs/api/resources/{customerEvents → business/resources/events/resources/checkIn}/client/index.js +0 -0
  101. /package/dist/cjs/api/resources/{customer/resources/events/resources/ticketing/client/requests/CalculatePriceTicketingRequest.js → business/resources/events/resources/checkIn/client/requests/LookupCheckInRequest.js} +0 -0
  102. /package/dist/cjs/api/resources/{customer/resources/events/resources/ticketing/client/requests/ConfirmOrderTicketingRequest.js → business/resources/events/resources/checkIn/client/requests/RecentCheckInRequest.js} +0 -0
  103. /package/dist/cjs/api/resources/{customer/resources/events/resources/ticketing/client/requests/CreatePaymentIntentTicketingRequest.js → business/resources/events/resources/checkIn/client/requests/ScanCheckInRequest.js} +0 -0
  104. /package/dist/cjs/api/resources/{customer/resources/events/resources/ticketing/client/requests/HoldTicketsTicketingRequest.js → business/resources/events/resources/checkIn/client/requests/StatsCheckInRequest.js} +0 -0
  105. /package/dist/cjs/api/resources/{customerEvents → business/resources/events/resources/checkIn}/client/requests/index.js +0 -0
  106. /package/dist/cjs/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/CalculatePriceRequest.d.ts +0 -0
  107. /package/dist/cjs/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/CalculatePriceRequest.js +0 -0
  108. /package/dist/cjs/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/CreatePaymentIntentRequest.d.ts +0 -0
  109. /package/dist/cjs/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/CreatePaymentIntentRequest.js +0 -0
  110. /package/dist/cjs/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/StoreTicketHoldRequest.d.ts +0 -0
  111. /package/dist/cjs/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/StoreTicketHoldRequest.js +0 -0
  112. /package/dist/cjs/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/StoreTicketOrderRequest.d.ts +0 -0
  113. /package/dist/cjs/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/StoreTicketOrderRequest.js +0 -0
  114. /package/dist/cjs/api/resources/{customerEvents/client/requests/ReleaseTicketHoldRequest.js → customer/resources/events/resources/ticketing/types/CalculatePriceTicketingResponse.js} +0 -0
  115. /package/dist/cjs/api/resources/{customerEvents/types/CalculateTicketPriceResponse.js → customer/resources/events/resources/ticketing/types/ConfirmOrderTicketingResponse.js} +0 -0
  116. /package/dist/cjs/api/resources/{customerEvents/types/ConfirmTicketOrderResponse.js → customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.js} +0 -0
  117. /package/dist/cjs/api/resources/{customerEvents/types/CreatePaymentIntentResponse.js → customer/resources/events/resources/ticketing/types/HoldTicketsTicketingResponse.js} +0 -0
  118. /package/dist/esm/api/resources/{customerEvents → business/resources/events/resources/checkIn}/client/index.d.mts +0 -0
  119. /package/dist/esm/api/resources/{customerEvents → business/resources/events/resources/checkIn}/client/index.mjs +0 -0
  120. /package/dist/esm/api/resources/{customer/resources/events/resources/ticketing/client/requests/CalculatePriceTicketingRequest.mjs → business/resources/events/resources/checkIn/client/requests/LookupCheckInRequest.mjs} +0 -0
  121. /package/dist/esm/api/resources/{customer/resources/events/resources/ticketing/client/requests/ConfirmOrderTicketingRequest.mjs → business/resources/events/resources/checkIn/client/requests/RecentCheckInRequest.mjs} +0 -0
  122. /package/dist/esm/api/resources/{customer/resources/events/resources/ticketing/client/requests/CreatePaymentIntentTicketingRequest.mjs → business/resources/events/resources/checkIn/client/requests/ScanCheckInRequest.mjs} +0 -0
  123. /package/dist/esm/api/resources/{customer/resources/events/resources/ticketing/client/requests/HoldTicketsTicketingRequest.mjs → business/resources/events/resources/checkIn/client/requests/StatsCheckInRequest.mjs} +0 -0
  124. /package/dist/esm/api/resources/{customerEvents → business/resources/events/resources/checkIn}/client/requests/index.mjs +0 -0
  125. /package/dist/esm/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/CalculatePriceRequest.d.mts +0 -0
  126. /package/dist/esm/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/CalculatePriceRequest.mjs +0 -0
  127. /package/dist/esm/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/CreatePaymentIntentRequest.d.mts +0 -0
  128. /package/dist/esm/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/CreatePaymentIntentRequest.mjs +0 -0
  129. /package/dist/esm/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/StoreTicketHoldRequest.d.mts +0 -0
  130. /package/dist/esm/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/StoreTicketHoldRequest.mjs +0 -0
  131. /package/dist/esm/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/StoreTicketOrderRequest.d.mts +0 -0
  132. /package/dist/esm/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/StoreTicketOrderRequest.mjs +0 -0
  133. /package/dist/esm/api/resources/{customerEvents/client/requests/ReleaseTicketHoldRequest.mjs → customer/resources/events/resources/ticketing/types/CalculatePriceTicketingResponse.mjs} +0 -0
  134. /package/dist/esm/api/resources/{customerEvents/types/CalculateTicketPriceResponse.mjs → customer/resources/events/resources/ticketing/types/ConfirmOrderTicketingResponse.mjs} +0 -0
  135. /package/dist/esm/api/resources/{customerEvents/types/ConfirmTicketOrderResponse.mjs → customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.mjs} +0 -0
  136. /package/dist/esm/api/resources/{customerEvents/types/CreatePaymentIntentResponse.mjs → customer/resources/events/resources/ticketing/types/HoldTicketsTicketingResponse.mjs} +0 -0
@@ -8,23 +8,45 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
+ var __rest = (this && this.__rest) || function (s, e) {
12
+ var t = {};
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
+ t[p] = s[p];
15
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
+ t[p[i]] = s[p[i]];
19
+ }
20
+ return t;
21
+ };
11
22
  import { normalizeClientOptionsWithAuth, } from "../../../../../../../../BaseClient.mjs";
12
23
  import { mergeHeaders } from "../../../../../../../../core/headers.mjs";
13
24
  import * as core from "../../../../../../../../core/index.mjs";
14
25
  import * as environments from "../../../../../../../../environments.mjs";
15
26
  import { handleNonStatusCodeError } from "../../../../../../../../errors/handleNonStatusCodeError.mjs";
16
27
  import * as errors from "../../../../../../../../errors/index.mjs";
28
+ import * as FiveOneEat from "../../../../../../../index.mjs";
17
29
  export class TicketingClient {
18
30
  constructor(options = {}) {
19
31
  this._options = normalizeClientOptionsWithAuth(options);
20
32
  }
21
33
  /**
22
- * @param {FiveOneEat.customer.events.HoldTicketsTicketingRequest} request
34
+ * Place a temporary hold on tickets for the specified event. Holds expire after 10 minutes.
35
+ *
36
+ * @param {FiveOneEat.customer.events.StoreTicketHoldRequest} request
23
37
  * @param {TicketingClient.RequestOptions} requestOptions - Request-specific configuration.
24
38
  *
39
+ * @throws {@link FiveOneEat.UnauthorizedError}
40
+ * @throws {@link FiveOneEat.NotFoundError}
41
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
42
+ *
25
43
  * @example
26
44
  * await client.customer.events.ticketing.holdTickets({
27
- * event: "event"
45
+ * eventId: "eventId",
46
+ * tickets: [{
47
+ * ticket_type_id: "ticket_type_id",
48
+ * quantity: 1
49
+ * }]
28
50
  * })
29
51
  */
30
52
  holdTickets(request, requestOptions) {
@@ -33,14 +55,17 @@ export class TicketingClient {
33
55
  __holdTickets(request, requestOptions) {
34
56
  return __awaiter(this, void 0, void 0, function* () {
35
57
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
36
- const { event } = request;
58
+ const { eventId } = request, _body = __rest(request, ["eventId"]);
37
59
  const _authRequest = yield this._options.authProvider.getAuthRequest();
38
60
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
39
61
  const _response = yield core.fetcher({
40
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/events/${core.url.encodePathParam(event)}/ticket-holds`),
62
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/events/${core.url.encodePathParam(eventId)}/ticket-holds`),
41
63
  method: "POST",
42
64
  headers: _headers,
65
+ contentType: "application/json",
43
66
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
67
+ requestType: "json",
68
+ body: _body,
44
69
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
45
70
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
46
71
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -48,25 +73,42 @@ export class TicketingClient {
48
73
  logging: this._options.logging,
49
74
  });
50
75
  if (_response.ok) {
51
- return { data: undefined, rawResponse: _response.rawResponse };
76
+ return {
77
+ data: _response.body,
78
+ rawResponse: _response.rawResponse,
79
+ };
52
80
  }
53
81
  if (_response.error.reason === "status-code") {
54
- throw new errors.FiveOneEatError({
55
- statusCode: _response.error.statusCode,
56
- body: _response.error.body,
57
- rawResponse: _response.rawResponse,
58
- });
82
+ switch (_response.error.statusCode) {
83
+ case 401:
84
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
85
+ case 404:
86
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
87
+ case 422:
88
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
89
+ default:
90
+ throw new errors.FiveOneEatError({
91
+ statusCode: _response.error.statusCode,
92
+ body: _response.error.body,
93
+ rawResponse: _response.rawResponse,
94
+ });
95
+ }
59
96
  }
60
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/events/{event}/ticket-holds");
97
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/events/{eventId}/ticket-holds");
61
98
  });
62
99
  }
63
100
  /**
101
+ * Release all active holds for the given session, freeing the tickets for others.
102
+ *
64
103
  * @param {FiveOneEat.customer.events.ReleaseHoldTicketingRequest} request
65
104
  * @param {TicketingClient.RequestOptions} requestOptions - Request-specific configuration.
66
105
  *
106
+ * @throws {@link FiveOneEat.UnauthorizedError}
107
+ * @throws {@link FiveOneEat.NotFoundError}
108
+ *
67
109
  * @example
68
110
  * await client.customer.events.ticketing.releaseHold({
69
- * event: "event",
111
+ * eventId: "eventId",
70
112
  * sessionId: "sessionId"
71
113
  * })
72
114
  */
@@ -76,11 +118,11 @@ export class TicketingClient {
76
118
  __releaseHold(request, requestOptions) {
77
119
  return __awaiter(this, void 0, void 0, function* () {
78
120
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
79
- const { event, sessionId } = request;
121
+ const { eventId, sessionId } = request;
80
122
  const _authRequest = yield this._options.authProvider.getAuthRequest();
81
123
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
82
124
  const _response = yield core.fetcher({
83
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/events/${core.url.encodePathParam(event)}/ticket-holds/${core.url.encodePathParam(sessionId)}`),
125
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/events/${core.url.encodePathParam(eventId)}/ticket-holds/${core.url.encodePathParam(sessionId)}`),
84
126
  method: "DELETE",
85
127
  headers: _headers,
86
128
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -94,22 +136,39 @@ export class TicketingClient {
94
136
  return { data: undefined, rawResponse: _response.rawResponse };
95
137
  }
96
138
  if (_response.error.reason === "status-code") {
97
- throw new errors.FiveOneEatError({
98
- statusCode: _response.error.statusCode,
99
- body: _response.error.body,
100
- rawResponse: _response.rawResponse,
101
- });
139
+ switch (_response.error.statusCode) {
140
+ case 401:
141
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
142
+ case 404:
143
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
144
+ default:
145
+ throw new errors.FiveOneEatError({
146
+ statusCode: _response.error.statusCode,
147
+ body: _response.error.body,
148
+ rawResponse: _response.rawResponse,
149
+ });
150
+ }
102
151
  }
103
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/customer/events/{event}/ticket-holds/{sessionId}");
152
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/customer/events/{eventId}/ticket-holds/{sessionId}");
104
153
  });
105
154
  }
106
155
  /**
107
- * @param {FiveOneEat.customer.events.CalculatePriceTicketingRequest} request
156
+ * Preview the subtotal, platform fee, and total for a given ticket selection.
157
+ *
158
+ * @param {FiveOneEat.customer.events.CalculatePriceRequest} request
108
159
  * @param {TicketingClient.RequestOptions} requestOptions - Request-specific configuration.
109
160
  *
161
+ * @throws {@link FiveOneEat.UnauthorizedError}
162
+ * @throws {@link FiveOneEat.NotFoundError}
163
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
164
+ *
110
165
  * @example
111
166
  * await client.customer.events.ticketing.calculatePrice({
112
- * event: "event"
167
+ * eventId: "eventId",
168
+ * tickets: [{
169
+ * ticket_type_id: "ticket_type_id",
170
+ * quantity: 1
171
+ * }]
113
172
  * })
114
173
  */
115
174
  calculatePrice(request, requestOptions) {
@@ -118,14 +177,17 @@ export class TicketingClient {
118
177
  __calculatePrice(request, requestOptions) {
119
178
  return __awaiter(this, void 0, void 0, function* () {
120
179
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
121
- const { event } = request;
180
+ const { eventId } = request, _body = __rest(request, ["eventId"]);
122
181
  const _authRequest = yield this._options.authProvider.getAuthRequest();
123
182
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
124
183
  const _response = yield core.fetcher({
125
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/events/${core.url.encodePathParam(event)}/calculate-price`),
184
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/events/${core.url.encodePathParam(eventId)}/calculate-price`),
126
185
  method: "POST",
127
186
  headers: _headers,
187
+ contentType: "application/json",
128
188
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
189
+ requestType: "json",
190
+ body: _body,
129
191
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
130
192
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
131
193
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -133,25 +195,45 @@ export class TicketingClient {
133
195
  logging: this._options.logging,
134
196
  });
135
197
  if (_response.ok) {
136
- return { data: undefined, rawResponse: _response.rawResponse };
198
+ return {
199
+ data: _response.body,
200
+ rawResponse: _response.rawResponse,
201
+ };
137
202
  }
138
203
  if (_response.error.reason === "status-code") {
139
- throw new errors.FiveOneEatError({
140
- statusCode: _response.error.statusCode,
141
- body: _response.error.body,
142
- rawResponse: _response.rawResponse,
143
- });
204
+ switch (_response.error.statusCode) {
205
+ case 401:
206
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
207
+ case 404:
208
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
209
+ case 422:
210
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
211
+ default:
212
+ throw new errors.FiveOneEatError({
213
+ statusCode: _response.error.statusCode,
214
+ body: _response.error.body,
215
+ rawResponse: _response.rawResponse,
216
+ });
217
+ }
144
218
  }
145
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/events/{event}/calculate-price");
219
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/events/{eventId}/calculate-price");
146
220
  });
147
221
  }
148
222
  /**
149
- * @param {FiveOneEat.customer.events.CreatePaymentIntentTicketingRequest} request
223
+ * Create a Stripe payment intent for the tickets held in the given session.
224
+ * Returns a client_secret for the mobile app to confirm payment with Stripe.
225
+ *
226
+ * @param {FiveOneEat.customer.events.CreatePaymentIntentRequest} request
150
227
  * @param {TicketingClient.RequestOptions} requestOptions - Request-specific configuration.
151
228
  *
229
+ * @throws {@link FiveOneEat.UnauthorizedError}
230
+ * @throws {@link FiveOneEat.NotFoundError}
231
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
232
+ *
152
233
  * @example
153
234
  * await client.customer.events.ticketing.createPaymentIntent({
154
- * event: "event"
235
+ * eventId: "eventId",
236
+ * session_id: "session_id"
155
237
  * })
156
238
  */
157
239
  createPaymentIntent(request, requestOptions) {
@@ -160,14 +242,17 @@ export class TicketingClient {
160
242
  __createPaymentIntent(request, requestOptions) {
161
243
  return __awaiter(this, void 0, void 0, function* () {
162
244
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
163
- const { event } = request;
245
+ const { eventId } = request, _body = __rest(request, ["eventId"]);
164
246
  const _authRequest = yield this._options.authProvider.getAuthRequest();
165
247
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
166
248
  const _response = yield core.fetcher({
167
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/events/${core.url.encodePathParam(event)}/payment-intent`),
249
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/events/${core.url.encodePathParam(eventId)}/payment-intent`),
168
250
  method: "POST",
169
251
  headers: _headers,
252
+ contentType: "application/json",
170
253
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
254
+ requestType: "json",
255
+ body: _body,
171
256
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
172
257
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
173
258
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -175,25 +260,45 @@ export class TicketingClient {
175
260
  logging: this._options.logging,
176
261
  });
177
262
  if (_response.ok) {
178
- return { data: undefined, rawResponse: _response.rawResponse };
263
+ return {
264
+ data: _response.body,
265
+ rawResponse: _response.rawResponse,
266
+ };
179
267
  }
180
268
  if (_response.error.reason === "status-code") {
181
- throw new errors.FiveOneEatError({
182
- statusCode: _response.error.statusCode,
183
- body: _response.error.body,
184
- rawResponse: _response.rawResponse,
185
- });
269
+ switch (_response.error.statusCode) {
270
+ case 401:
271
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
272
+ case 404:
273
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
274
+ case 422:
275
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
276
+ default:
277
+ throw new errors.FiveOneEatError({
278
+ statusCode: _response.error.statusCode,
279
+ body: _response.error.body,
280
+ rawResponse: _response.rawResponse,
281
+ });
282
+ }
186
283
  }
187
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/events/{event}/payment-intent");
284
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/events/{eventId}/payment-intent");
188
285
  });
189
286
  }
190
287
  /**
191
- * @param {FiveOneEat.customer.events.ConfirmOrderTicketingRequest} request
288
+ * Confirm a completed Stripe payment and create the ticket order.
289
+ * The payment must have succeeded before calling this endpoint.
290
+ *
291
+ * @param {FiveOneEat.customer.events.StoreTicketOrderRequest} request
192
292
  * @param {TicketingClient.RequestOptions} requestOptions - Request-specific configuration.
193
293
  *
294
+ * @throws {@link FiveOneEat.UnauthorizedError}
295
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
296
+ *
194
297
  * @example
195
298
  * await client.customer.events.ticketing.confirmOrder({
196
- * event: "event"
299
+ * eventId: "eventId",
300
+ * payment_intent_id: "payment_intent_id",
301
+ * session_id: "session_id"
197
302
  * })
198
303
  */
199
304
  confirmOrder(request, requestOptions) {
@@ -202,14 +307,17 @@ export class TicketingClient {
202
307
  __confirmOrder(request, requestOptions) {
203
308
  return __awaiter(this, void 0, void 0, function* () {
204
309
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
205
- const { event } = request;
310
+ const { eventId } = request, _body = __rest(request, ["eventId"]);
206
311
  const _authRequest = yield this._options.authProvider.getAuthRequest();
207
312
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
208
313
  const _response = yield core.fetcher({
209
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/events/${core.url.encodePathParam(event)}/ticket-orders`),
314
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/events/${core.url.encodePathParam(eventId)}/ticket-orders`),
210
315
  method: "POST",
211
316
  headers: _headers,
317
+ contentType: "application/json",
212
318
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
319
+ requestType: "json",
320
+ body: _body,
213
321
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
214
322
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
215
323
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -217,16 +325,26 @@ export class TicketingClient {
217
325
  logging: this._options.logging,
218
326
  });
219
327
  if (_response.ok) {
220
- return { data: undefined, rawResponse: _response.rawResponse };
328
+ return {
329
+ data: _response.body,
330
+ rawResponse: _response.rawResponse,
331
+ };
221
332
  }
222
333
  if (_response.error.reason === "status-code") {
223
- throw new errors.FiveOneEatError({
224
- statusCode: _response.error.statusCode,
225
- body: _response.error.body,
226
- rawResponse: _response.rawResponse,
227
- });
334
+ switch (_response.error.statusCode) {
335
+ case 401:
336
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
337
+ case 422:
338
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
339
+ default:
340
+ throw new errors.FiveOneEatError({
341
+ statusCode: _response.error.statusCode,
342
+ body: _response.error.body,
343
+ rawResponse: _response.rawResponse,
344
+ });
345
+ }
228
346
  }
229
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/events/{event}/ticket-orders");
347
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/events/{eventId}/ticket-orders");
230
348
  });
231
349
  }
232
350
  }
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * event: "event",
4
+ * eventId: "eventId",
5
5
  * sessionId: "sessionId"
6
6
  * }
7
7
  */
8
8
  export interface ReleaseHoldTicketingRequest {
9
- event: string;
9
+ eventId: string;
10
10
  sessionId: string;
11
11
  }
@@ -1,5 +1,5 @@
1
- export type { CalculatePriceTicketingRequest } from "./CalculatePriceTicketingRequest.mjs";
2
- export type { ConfirmOrderTicketingRequest } from "./ConfirmOrderTicketingRequest.mjs";
3
- export type { CreatePaymentIntentTicketingRequest } from "./CreatePaymentIntentTicketingRequest.mjs";
4
- export type { HoldTicketsTicketingRequest } from "./HoldTicketsTicketingRequest.mjs";
1
+ export type { CalculatePriceRequest } from "./CalculatePriceRequest.mjs";
2
+ export type { CreatePaymentIntentRequest } from "./CreatePaymentIntentRequest.mjs";
5
3
  export type { ReleaseHoldTicketingRequest } from "./ReleaseHoldTicketingRequest.mjs";
4
+ export type { StoreTicketHoldRequest } from "./StoreTicketHoldRequest.mjs";
5
+ export type { StoreTicketOrderRequest } from "./StoreTicketOrderRequest.mjs";
@@ -1 +1,2 @@
1
1
  export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -1 +1,2 @@
1
1
  export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,11 @@
1
+ export interface CalculatePriceTicketingResponse {
2
+ data: CalculatePriceTicketingResponse.Data;
3
+ }
4
+ export declare namespace CalculatePriceTicketingResponse {
5
+ interface Data {
6
+ subtotal: string;
7
+ platform_fee: string;
8
+ total: string;
9
+ line_items: string;
10
+ }
11
+ }
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../../../index.mjs";
2
+ export type ConfirmOrderTicketingResponse = {
3
+ data: FiveOneEat.JsonResource;
4
+ } | Record<string, unknown>;
@@ -1,7 +1,7 @@
1
- export interface CreatePaymentIntentResponse {
2
- data: CreatePaymentIntentResponse.Data;
1
+ export interface CreatePaymentIntentTicketingResponse {
2
+ data: CreatePaymentIntentTicketingResponse.Data;
3
3
  }
4
- export declare namespace CreatePaymentIntentResponse {
4
+ export declare namespace CreatePaymentIntentTicketingResponse {
5
5
  interface Data {
6
6
  payment_intent_id: string;
7
7
  client_secret: string;
@@ -1,7 +1,7 @@
1
- export interface HoldTicketsResponse {
2
- data: HoldTicketsResponse.Data;
1
+ export interface HoldTicketsTicketingResponse {
2
+ data: HoldTicketsTicketingResponse.Data;
3
3
  }
4
- export declare namespace HoldTicketsResponse {
4
+ export declare namespace HoldTicketsTicketingResponse {
5
5
  interface Data {
6
6
  session_id: string | null;
7
7
  expires_at: string;
@@ -0,0 +1,4 @@
1
+ export * from "./CalculatePriceTicketingResponse.mjs";
2
+ export * from "./ConfirmOrderTicketingResponse.mjs";
3
+ export * from "./CreatePaymentIntentTicketingResponse.mjs";
4
+ export * from "./HoldTicketsTicketingResponse.mjs";
@@ -0,0 +1,4 @@
1
+ export * from "./CalculatePriceTicketingResponse.mjs";
2
+ export * from "./ConfirmOrderTicketingResponse.mjs";
3
+ export * from "./CreatePaymentIntentTicketingResponse.mjs";
4
+ export * from "./HoldTicketsTicketingResponse.mjs";
@@ -2,9 +2,6 @@ export * as business from "./business/index.mjs";
2
2
  export * from "./customer/client/requests/index.mjs";
3
3
  export * as customer from "./customer/index.mjs";
4
4
  export * from "./customer/types/index.mjs";
5
- export * from "./customerEvents/client/requests/index.mjs";
6
- export * as customerEvents from "./customerEvents/index.mjs";
7
- export * from "./customerEvents/types/index.mjs";
8
5
  export * from "./customerMyAccount/client/requests/index.mjs";
9
6
  export * as customerMyAccount from "./customerMyAccount/index.mjs";
10
7
  export * from "./customerMyAccount/types/index.mjs";
@@ -2,9 +2,6 @@ export * as business from "./business/index.mjs";
2
2
  export * from "./customer/client/requests/index.mjs";
3
3
  export * as customer from "./customer/index.mjs";
4
4
  export * from "./customer/types/index.mjs";
5
- export * from "./customerEvents/client/requests/index.mjs";
6
- export * as customerEvents from "./customerEvents/index.mjs";
7
- export * from "./customerEvents/types/index.mjs";
8
5
  export * from "./customerMyAccount/client/requests/index.mjs";
9
6
  export * as customerMyAccount from "./customerMyAccount/index.mjs";
10
7
  export * from "./customerMyAccount/types/index.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.33";
1
+ export declare const SDK_VERSION = "0.0.35";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.33";
1
+ export const SDK_VERSION = "0.0.35";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@51eat/sdk",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,17 +22,6 @@
22
22
  },
23
23
  "default": "./dist/cjs/index.js"
24
24
  },
25
- "./customerEvents": {
26
- "import": {
27
- "types": "./dist/esm/api/resources/customerEvents/exports.d.mts",
28
- "default": "./dist/esm/api/resources/customerEvents/exports.mjs"
29
- },
30
- "require": {
31
- "types": "./dist/cjs/api/resources/customerEvents/exports.d.ts",
32
- "default": "./dist/cjs/api/resources/customerEvents/exports.js"
33
- },
34
- "default": "./dist/cjs/api/resources/customerEvents/exports.js"
35
- },
36
25
  "./customerMyAccount": {
37
26
  "import": {
38
27
  "types": "./dist/esm/api/resources/customerMyAccount/exports.d.mts",
@@ -286,6 +275,17 @@
286
275
  },
287
276
  "default": "./dist/cjs/api/resources/business/resources/events/resources/orders/exports.js"
288
277
  },
278
+ "./business/events/checkIn": {
279
+ "import": {
280
+ "types": "./dist/esm/api/resources/business/resources/events/resources/checkIn/exports.d.mts",
281
+ "default": "./dist/esm/api/resources/business/resources/events/resources/checkIn/exports.mjs"
282
+ },
283
+ "require": {
284
+ "types": "./dist/cjs/api/resources/business/resources/events/resources/checkIn/exports.d.ts",
285
+ "default": "./dist/cjs/api/resources/business/resources/events/resources/checkIn/exports.js"
286
+ },
287
+ "default": "./dist/cjs/api/resources/business/resources/events/resources/checkIn/exports.js"
288
+ },
289
289
  "./business/menus/groups": {
290
290
  "import": {
291
291
  "types": "./dist/esm/api/resources/business/resources/menus/resources/groups/exports.d.mts",