tonightpass 0.0.128 → 0.0.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -21
- package/README.md +55 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/LICENSE
CHANGED
|
@@ -1,21 +1,201 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2025 Tonight Pass
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<a href="https://tonightpass.com">
|
|
3
|
+
<img src="https://tonightpass.com/static/images/favicon/android-chrome-512x512.png" alt="Tonight Pass" height="128" />
|
|
4
|
+
</a>
|
|
5
|
+
<h1>Tonight Pass</h1>
|
|
6
|
+
<a aria-label="onRuntime Studio" href="https://onruntime.com">
|
|
7
|
+
<img src="https://img.shields.io/badge/MADE%20BY%20ONRUNTIME-000.svg?style=for-the-badge&labelColor=000" alt="Made by onRuntime Studio">
|
|
8
|
+
</a>
|
|
9
|
+
<a aria-label="NPM version" href="https://www.npmjs.com/package/tonightpass">
|
|
10
|
+
<img alt="" src="https://img.shields.io/npm/v/tonightpass.svg?style=for-the-badge&labelColor=000000">
|
|
11
|
+
</a>
|
|
12
|
+
<a aria-label="License" href="https://github.com/tonightpass/tonightpass/blob/master/LICENSE">
|
|
13
|
+
<img alt="" src="https://img.shields.io/npm/l/next.svg?style=for-the-badge&labelColor=000000">
|
|
14
|
+
</a>
|
|
15
|
+
<a aria-label="Discord" href="https://discord.gg/VvvAkPqQ98">
|
|
16
|
+
<img alt="" src="https://img.shields.io/discord/829290979092856833?label=Discord&style=for-the-badge&labelColor=000000&logo=discord&logoColor=white&logoWidth=20">
|
|
17
|
+
</a>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
> [!WARNING]
|
|
21
|
+
> These packages are currently for internal Tonight Pass applications only and are not yet ready for external use. Future versions will include an API key system for public access.
|
|
22
|
+
|
|
23
|
+
## Tonight Pass
|
|
24
|
+
|
|
25
|
+
Tonight Pass is a platform reshaping how people discover and experience events. Whether you're organizing a concert, managing a club night, or looking for tonight's best events, Tonight Pass provides the infrastructure to make it happen.
|
|
26
|
+
|
|
27
|
+
The platform features real-time ticketing, seamless event management, and powerful organization tools, all designed to bring people together through unforgettable experiences. For organizers, we provide everything needed to create, manage, and grow their events. For attendees, we offer a modern way to discover and access the best events in their city.
|
|
28
|
+
|
|
29
|
+
## Documentation
|
|
30
|
+
|
|
31
|
+
Visit [developers.tonightpass.com](https://developers.tonightpass.com) to view the full documentation.
|
|
32
|
+
|
|
33
|
+
## Community
|
|
34
|
+
|
|
35
|
+
The TonightPass community can be found on [GitHub Discussions](https://github.com/tonightpass/discussions), where you can ask questions, voice ideas, and share your projects.
|
|
36
|
+
|
|
37
|
+
To chat with other community members join the [Tonight Pass Discord](https://discord.gg/VvvAkPqQ98).
|
|
38
|
+
|
|
39
|
+
Our [Code of Conduct](https://docs.onruntime.com/contributing/code-of-conduct) applies to all community channels.
|
|
40
|
+
|
|
41
|
+
## Contributing
|
|
42
|
+
|
|
43
|
+
We welcome and greatly value contributions to kitchn! Before diving in, please review our [Contribution Guidelines](https://kitchn.tonightpass.com/docs/contributing) to ensure a smooth experience.
|
|
44
|
+
|
|
45
|
+
### Contributors
|
|
46
|
+
|
|
47
|
+
We'd love for you to join us! Whether it's through giving us a 🌟 star, making a 📥 pull request, or sharing your feedback, your help is always appreciated.
|
|
48
|
+
|
|
49
|
+
## Authors
|
|
50
|
+
|
|
51
|
+
A list of the original co-authors who played a key role in bringing this project to life.
|
|
52
|
+
|
|
53
|
+
- Antoine Kingue ([@antoinekm](https://github.com/antoinekm))
|
|
54
|
+
- Jérémy Baudrin ([@jerembdn](https://github.com/jerembdn))
|
|
55
|
+
- Younès Bessa ([@younesbessa](https://github.com/younesbessa))
|
package/dist/index.d.mts
CHANGED
|
@@ -836,8 +836,9 @@ type SuccessfulAPIResponse<T> = {
|
|
|
836
836
|
type ErroredAPIResponse = {
|
|
837
837
|
success: false;
|
|
838
838
|
message: string;
|
|
839
|
+
statusCode: number;
|
|
839
840
|
errors?: {
|
|
840
|
-
[key: string]: string;
|
|
841
|
+
[key: string]: string[];
|
|
841
842
|
};
|
|
842
843
|
};
|
|
843
844
|
type APIResponse<T> = SuccessfulAPIResponse<T> | ErroredAPIResponse;
|
package/dist/index.d.ts
CHANGED
|
@@ -836,8 +836,9 @@ type SuccessfulAPIResponse<T> = {
|
|
|
836
836
|
type ErroredAPIResponse = {
|
|
837
837
|
success: false;
|
|
838
838
|
message: string;
|
|
839
|
+
statusCode: number;
|
|
839
840
|
errors?: {
|
|
840
|
-
[key: string]: string;
|
|
841
|
+
[key: string]: string[];
|
|
841
842
|
};
|
|
842
843
|
};
|
|
843
844
|
type APIResponse<T> = SuccessfulAPIResponse<T> | ErroredAPIResponse;
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use strict';require('reflect-metadata');var classTransformer=require('class-transformer'),classValidator=require('class-validator'),Bo=require('redaxios'),pathcat=require('pathcat');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Bo__default=/*#__PURE__*/_interopDefault(Bo);var Tt=Object.defineProperty;var o=(e,t)=>Tt(e,"name",{value:t,configurable:!0});var We="https://api.tonightpass.com";var d={EMAIL:/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i,NAME:/^[a-zA-ZÀ-ÿ0-9-\s]+$/,SLUG:/^[a-z0-9_.]+$/,USERNAME:/^(?!\.)(?!.*\.\.)(?!.*\.$)[a-z0-9_.]{3,48}$/,PHONE:/^\+(?:[0-9] ?){6,14}[0-9]$/,PASSWORD:/^(?=.*[A-Z])(?=.*[a-z])(?=.*[\d\W]).{8,}$/,PASSWORD_MIN_LENGTH:/^.{8,}$/,PASSWORD_UPPERCASE:/^(?=.*[A-Z])/,PASSWORD_LOWERCASE:/^(?=.*[a-z])/,PASSWORD_NUMBER_SPECIAL:/^(?=.*[\d\W])/,IMAGE_URL:/^(https:\/\/|http:\/\/)(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,6}([-a-zA-Z0-9@:%_\+.~#?&//=]*)\.(jpg|jpeg|gif|png|bmp|tiff|tga|svg)$/i};function B(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(B,"_ts_decorate");function w(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(w,"_ts_metadata");var v=class{static{o(this,"GeoPointDto");}type;coordinates;constructor(){this.type="Point";}validate(){let[t,n]=this.coordinates;return n>=-90&&n<=90&&t>=-180&&t<=180}};B([classValidator.IsString(),classValidator.IsNotEmpty(),w("design:type",String)],v.prototype,"type",void 0);B([classValidator.IsArray(),classValidator.IsNotEmpty(),w("design:type",Array)],v.prototype,"coordinates",void 0);B([classValidator.ValidateNested(),w("design:type",Function),w("design:paramtypes",[]),w("design:returntype",Boolean)],v.prototype,"validate",null);var h=class{static{o(this,"CreateLocationDto");}name;address;zipCode;city;country;geometry};B([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),w("design:type",String)],h.prototype,"name",void 0);B([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,256),w("design:type",String)],h.prototype,"address",void 0);B([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),w("design:type",String)],h.prototype,"zipCode",void 0);B([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),w("design:type",String)],h.prototype,"city",void 0);B([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),w("design:type",String)],h.prototype,"country",void 0);B([classValidator.ValidateNested(),classTransformer.Type(()=>v),classValidator.IsNotEmpty(),w("design:type",typeof v>"u"?Object:v)],h.prototype,"geometry",void 0);function ie(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(ie,"_ts_decorate");function re(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(re,"_ts_metadata");var b=class{static{o(this,"UpdateLocationDto");}name;address;zipCode;city;country;geometry};ie([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),re("design:type",String)],b.prototype,"name",void 0);ie([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,256),re("design:type",String)],b.prototype,"address",void 0);ie([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),re("design:type",String)],b.prototype,"zipCode",void 0);ie([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),re("design:type",String)],b.prototype,"city",void 0);ie([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),re("design:type",String)],b.prototype,"country",void 0);ie([classValidator.IsOptional(),classValidator.ValidateNested(),classTransformer.Type(()=>v),re("design:type",typeof v>"u"?Object:v)],b.prototype,"geometry",void 0);function q(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(q,"_ts_decorate");function G(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(G,"_ts_metadata");var ae=class{static{o(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};q([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),G("design:type",String)],ae.prototype,"organizationSlug",void 0);q([classValidator.IsObject(),G("design:type",typeof M>"u"?Object:M)],ae.prototype,"identity",void 0);q([classValidator.IsArray(),G("design:type",Array)],ae.prototype,"members",void 0);q([classValidator.IsOptional(),classValidator.IsObject(),G("design:type",typeof Location>"u"?Object:Location)],ae.prototype,"location",void 0);var M=class{static{o(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};q([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),G("design:type",String)],M.prototype,"displayName",void 0);q([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),G("design:type",String)],M.prototype,"description",void 0);q([classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),G("design:type",String)],M.prototype,"avatarUrl",void 0);q([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),G("design:type",String)],M.prototype,"bannerUrl",void 0);q([classValidator.IsOptional(),classValidator.IsArray(),G("design:type",Array)],M.prototype,"socialLinks",void 0);function V(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(V,"_ts_decorate");function C(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(C,"_ts_metadata");var pe=class{static{o(this,"UpdateOrganizationDto");}slug;identity;members;location};V([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.USERNAME),C("design:type",String)],pe.prototype,"slug",void 0);V([classValidator.IsObject(),classValidator.IsOptional(),C("design:type",typeof W>"u"?Object:W)],pe.prototype,"identity",void 0);V([classValidator.IsOptional(),classValidator.IsArray(),C("design:type",Array)],pe.prototype,"members",void 0);V([classValidator.IsOptional(),classValidator.IsObject(),C("design:type",typeof Location>"u"?Object:Location)],pe.prototype,"location",void 0);var W=class{static{o(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};V([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),classValidator.IsOptional(),C("design:type",String)],W.prototype,"displayName",void 0);V([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),C("design:type",String)],W.prototype,"description",void 0);V([classValidator.IsUrl({protocols:["http","https"]}),classValidator.IsOptional(),C("design:type",String)],W.prototype,"avatarUrl",void 0);V([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),C("design:type",String)],W.prototype,"bannerUrl",void 0);V([classValidator.IsOptional(),classValidator.IsArray(),C("design:type",Array)],W.prototype,"socialLinks",void 0);var Qe=class{static{o(this,"CreateOrganizationEventOrderDto");}cart};var be=class{static{o(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var Ye=class extends be{static{o(this,"UpdateOrganizationEventStyleDto");}};var An=function(e){return e.AuthEmailAlreadyExists="auth.email-already-exists",e.AuthUsernameAlreadyExists="auth.username-already-exists",e.AuthPhoneNumberAlreadyExists="auth.phone-number-already-exists",e.AuthInvalidCredentials="auth.invalid-credentials",e.AuthUserNotFound="auth.user-not-found",e.AuthInvalidToken="auth.invalid-token",e.AuthTokenExpired="auth.token-expired",e.AuthUnauthorized="auth.unauthorized",e.AuthPasswordMismatch="auth.password-mismatch",e.AuthInvalidOAuth2Provider="auth.invalid-oauth2-provider",e.AuthOAuth2Error="auth.oauth2-error",e.UserNotFound="user.not-found",e.UserInvalidUsername="user.invalid-username",e.UserInvalidEmail="user.invalid-email",e.UserInvalidPhoneNumber="user.invalid-phone-number",e.UserInvalidPassword="user.invalid-password",e.UserInvalidBirthDate="user.invalid-birth-date",e.UserInvalidGender="user.invalid-gender",e.UserInvalidRole="user.invalid-role",e.UserInvalidPreferences="user.invalid-preferences",e.UserInvalidLocation="user.invalid-location",e.UserInvalidFile="user.invalid-file",e.UserFileTooLarge="user.file-too-large",e.UserUnsupportedFileType="user.unsupported-file-type",e.OrganizationNotFound="organization.not-found",e.OrganizationInvalidSlug="organization.invalid-slug",e.OrganizationInvalidName="organization.invalid-name",e.OrganizationInvalidDescription="organization.invalid-description",e.OrganizationInvalidLocation="organization.invalid-location",e.OrganizationInvalidSocialLink="organization.invalid-social-link",e.OrganizationAlreadyExists="organization.already-exists",e.OrganizationUnauthorized="organization.unauthorized",e.OrganizationMemberNotFound="organization.member-not-found",e.OrganizationMemberInvalidRole="organization.member-invalid-role",e.OrganizationMemberAlreadyExists="organization.member-already-exists",e.EventNotFound="event.not-found",e.EventInvalidTitle="event.invalid-title",e.EventInvalidDescription="event.invalid-description",e.EventInvalidLocation="event.invalid-location",e.EventInvalidDates="event.invalid-dates",e.EventInvalidTickets="event.invalid-tickets",e.EventInvalidStyles="event.invalid-styles",e.EventInvalidType="event.invalid-type",e.EventInvalidVisibility="event.invalid-visibility",e.EventUnavailable="event.unavailable",e.EventTicketNotFound="event.ticket-not-found",e.EventTicketUnavailable="event.ticket-unavailable",e.EventTicketInvalidQuantity="event.ticket-invalid-quantity",e.OrderNotFound="order.not-found",e.OrderInvalidStatus="order.invalid-status",e.OrderInvalidPayment="order.invalid-payment",e.OrderPaymentFailed="order.payment-failed",e.OrderAlreadyPaid="order.already-paid",e.OrderCancelled="order.cancelled",e.OrderRefunded="order.refunded",e.OrderExpired="order.expired",e.BookingNotFound="booking.not-found",e.BookingInvalidStatus="booking.invalid-status",e.BookingInvalidTickets="booking.invalid-tickets",e.BookingTicketNotFound="booking.ticket-not-found",e.BookingTicketInvalidToken="booking.ticket-invalid-token",e.BookingTicketExpired="booking.ticket-expired",e.BookingTicketUsed="booking.ticket-used",e.FileNotFound="file.not-found",e.FileInvalidType="file.invalid-type",e.FileTooLarge="file.too-large",e.FileUploadFailed="file.upload-failed",e.ValidationError="validation.error",e.DatabaseError="database.error",e.InternalServerError="server.internal-error",e.NotFound="not-found",e.BadRequest="bad-request",e.Unauthorized="unauthorized",e.Forbidden="forbidden",e.TooManyRequests="too-many-requests",e.ServiceUnavailable="service-unavailable",e.TooManyRequestsAuth="rate-limit.auth",e.TooManyRequestsApi="rate-limit.api",e.WebhookInvalidSignature="webhook.invalid-signature",e.WebhookInvalidEvent="webhook.invalid-event",e.WebhookProcessingFailed="webhook.processing-failed",e.PaymentRequired="payment.required",e.PaymentMethodRequired="payment.method-required",e.PaymentFailed="payment.failed",e.PaymentCancelled="payment.cancelled",e.PaymentRefunded="payment.refunded",e.BillingInvalidAccount="billing.invalid-account",e.BillingAccountRequired="billing.account-required",e.NotificationInvalidType="notification.invalid-type",e.NotificationSendingFailed="notification.sending-failed",e.CacheError="cache.error",e.CacheMiss="cache.miss",e.ExternalServiceError="external-service.error",e.ExternalServiceTimeout="external-service.timeout",e.ExternalServiceUnavailable="external-service.unavailable",e}({});var Z=function(e){return e.ETicket="e-ticket",e.Other="other",e}({}),H=function(e){return e.Entry="entry",e.Package="package",e.Meal="meal",e.Drink="drink",e.Parking="parking",e.Accommodation="accommodation",e.Camping="camping",e.Locker="locker",e.Shuttle="shuttle",e.Other="other",e}({});var On=function(e){return e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art",e}({});var J=function(e){return e.Clubbing="clubbing",e.Concert="concert",e.Afterwork="afterwork",e.DancingLunch="dancing_lunch",e.Diner="diner",e.Garden="garden",e.AfterBeach="after_beach",e.Festival="festival",e.Spectacle="spectacle",e.Cruise="cruise",e.OutsideAnimation="outside_animation",e.Sport="sport",e.Match="match",e.Seminar="seminar",e.Conference="conference",e.WellnessDay="wellness_day",e.Workshop="workshop",e.TradeFair="trade_fair",e.ConsumerShow="consumer_show",e.Membership="membership",e}({}),Q=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({});var Dn=function(e){return e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected",e}({}),Y=function(e){return e.Member="member",e.Manager="manager",e.Admin="admin",e.Owner="owner",e}({});var kn=function(e){return e.Facebook="facebook",e.Twitter="twitter",e.Instagram="instagram",e.Linkedin="linkedin",e.Youtube="youtube",e.Website="website",e}({});var qn=function(e){return e.Follow="follow",e}({});var Wn=function(e){return e.Authentication="authentication",e.BookingTicket="booking_ticket",e.OrganizationInvite="organization_invite",e.PasswordRecovery="password_recovery",e.EmailValidation="email_validation",e.PhoneValidation="phone_validation",e}({});var Cn=function(e){return e.User="user",e.Developer="developer",e.Admin="admin",e}({}),K=function(e){return e.Male="male",e.Female="female",e.NonBinary="non-binary",e}({}),$n=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var Qn=function(e){return e.User="user",e.Organization="organization",e}({});var E=function(e){return e.EUR="EUR",e.USD="USD",e.GBP="GBP",e}({}),Kn=function(e){return e.FR="fr",e.EN="en",e}({});function j(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(j,"_ts_decorate");function O(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(O,"_ts_metadata");var l=class{static{o(this,"CreateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};j([classValidator.IsString(),classValidator.Length(1,128),O("design:type",String)],l.prototype,"name",void 0);j([classValidator.IsString(),classValidator.Length(1,1024),classValidator.IsOptional(),O("design:type",String)],l.prototype,"description",void 0);j([classValidator.IsNumber(),classValidator.Min(0),O("design:type",Number)],l.prototype,"price",void 0);j([classValidator.IsNumber(),classValidator.Min(0),O("design:type",Number)],l.prototype,"quantity",void 0);j([classValidator.IsEnum(Z),O("design:type",typeof Z>"u"?Object:Z)],l.prototype,"type",void 0);j([classValidator.IsEnum(H),O("design:type",typeof H>"u"?Object:H)],l.prototype,"category",void 0);j([classValidator.IsEnum(E),O("design:type",typeof E>"u"?Object:E)],l.prototype,"currency",void 0);j([classValidator.IsBoolean(),O("design:type",Boolean)],l.prototype,"isVisible",void 0);j([classValidator.IsBoolean(),O("design:type",Boolean)],l.prototype,"isFeesIncluded",void 0);j([classValidator.IsDateString(),classValidator.IsOptional(),O("design:type",typeof Date>"u"?Object:Date)],l.prototype,"startAt",void 0);j([classValidator.IsDateString(),classValidator.IsOptional(),O("design:type",typeof Date>"u"?Object:Date)],l.prototype,"endAt",void 0);function _(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(_,"_ts_decorate");function N(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(N,"_ts_metadata");var c=class{static{o(this,"UpdateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};_([classValidator.IsString(),classValidator.Length(1,128),classValidator.IsOptional(),N("design:type",String)],c.prototype,"name",void 0);_([classValidator.IsString(),classValidator.Length(1,1024),classValidator.IsOptional(),N("design:type",String)],c.prototype,"description",void 0);_([classValidator.IsNumber(),classValidator.Min(0),classValidator.IsOptional(),N("design:type",Number)],c.prototype,"price",void 0);_([classValidator.IsNumber(),classValidator.Min(0),classValidator.IsOptional(),N("design:type",Number)],c.prototype,"quantity",void 0);_([classValidator.IsEnum(Z),classValidator.IsOptional(),N("design:type",typeof Z>"u"?Object:Z)],c.prototype,"type",void 0);_([classValidator.IsEnum(H),classValidator.IsOptional(),N("design:type",typeof H>"u"?Object:H)],c.prototype,"category",void 0);_([classValidator.IsEnum(E),classValidator.IsOptional(),N("design:type",typeof E>"u"?Object:E)],c.prototype,"currency",void 0);_([classValidator.IsBoolean(),classValidator.IsOptional(),N("design:type",Boolean)],c.prototype,"isVisible",void 0);_([classValidator.IsBoolean(),classValidator.IsOptional(),N("design:type",Boolean)],c.prototype,"isFeesIncluded",void 0);_([classValidator.IsDateString(),classValidator.IsOptional(),N("design:type",typeof Date>"u"?Object:Date)],c.prototype,"startAt",void 0);_([classValidator.IsDateString(),classValidator.IsOptional(),N("design:type",typeof Date>"u"?Object:Date)],c.prototype,"endAt",void 0);function x(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(x,"_ts_decorate");function S(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(S,"_ts_metadata");var f=class{static{o(this,"CreateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};x([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,64),S("design:type",String)],f.prototype,"title",void 0);x([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.SLUG),S("design:type",String)],f.prototype,"slug",void 0);x([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(16,2048),S("design:type",String)],f.prototype,"description",void 0);x([classValidator.IsEnum(J),classValidator.IsNotEmpty(),S("design:type",typeof J>"u"?Object:J)],f.prototype,"type",void 0);x([classValidator.IsEnum(Q),classValidator.IsNotEmpty(),S("design:type",typeof Q>"u"?Object:Q)],f.prototype,"visibility",void 0);x([classValidator.IsArray(),classValidator.IsUrl({},{each:!0}),S("design:type",Array)],f.prototype,"flyers",void 0);x([classValidator.IsArray(),classValidator.IsUrl({},{each:!0}),S("design:type",Array)],f.prototype,"trailers",void 0);x([classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>h),classValidator.IsNotEmpty(),S("design:type",typeof h>"u"?Object:h)],f.prototype,"location",void 0);x([classValidator.IsArray(),classValidator.ValidateNested({each:!0}),classTransformer.Type(()=>l),classValidator.IsNotEmpty(),S("design:type",Array)],f.prototype,"tickets",void 0);x([classValidator.IsArray(),classValidator.IsString({each:!0}),classValidator.IsNotEmpty(),S("design:type",Array)],f.prototype,"styles",void 0);x([classValidator.IsDateString(),classValidator.IsNotEmpty(),S("design:type",typeof Date>"u"?Object:Date)],f.prototype,"startAt",void 0);x([classValidator.IsDateString(),classValidator.IsNotEmpty(),S("design:type",typeof Date>"u"?Object:Date)],f.prototype,"endAt",void 0);function I(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(I,"_ts_decorate");function R(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(R,"_ts_metadata");var u=class{static{o(this,"UpdateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};I([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,64),R("design:type",String)],u.prototype,"title",void 0);I([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.SLUG),R("design:type",String)],u.prototype,"slug",void 0);I([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(16,2048),R("design:type",String)],u.prototype,"description",void 0);I([classValidator.IsOptional(),classValidator.IsEnum(J),R("design:type",typeof J>"u"?Object:J)],u.prototype,"type",void 0);I([classValidator.IsOptional(),classValidator.IsEnum(Q),R("design:type",typeof Q>"u"?Object:Q)],u.prototype,"visibility",void 0);I([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsUrl({},{each:!0}),R("design:type",Array)],u.prototype,"flyers",void 0);I([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsUrl({},{each:!0}),R("design:type",Array)],u.prototype,"trailers",void 0);I([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>b),R("design:type",typeof b>"u"?Object:b)],u.prototype,"location",void 0);I([classValidator.IsOptional(),classValidator.IsArray(),classValidator.ValidateNested({each:!0}),classTransformer.Type(()=>c),R("design:type",Array)],u.prototype,"tickets",void 0);I([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsString({each:!0}),R("design:type",Array)],u.prototype,"styles",void 0);I([classValidator.IsOptional(),classValidator.IsDateString(),R("design:type",typeof Date>"u"?Object:Date)],u.prototype,"startAt",void 0);I([classValidator.IsOptional(),classValidator.IsDateString(),R("design:type",typeof Date>"u"?Object:Date)],u.prototype,"endAt",void 0);function bt(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(bt,"_ts_decorate");function xt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(xt,"_ts_metadata");var Ae=class{static{o(this,"CreateOrganizationMemberDto");}user;role};bt([classValidator.IsString(),classValidator.IsNotEmpty(),xt("design:type",String)],Ae.prototype,"user",void 0);bt([classValidator.IsEnum(Y),classValidator.IsNotEmpty(),xt("design:type",typeof Y>"u"?Object:Y)],Ae.prototype,"role",void 0);function xo(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(xo,"_ts_decorate");function So(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(So,"_ts_metadata");var Be=class{static{o(this,"UpdateOrganizationMemberDto");}role};xo([classValidator.IsEnum(Y),classValidator.IsNotEmpty(),So("design:type",typeof Y>"u"?Object:Y)],Be.prototype,"role",void 0);function P(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(P,"_ts_decorate");function U(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(U,"_ts_metadata");var ye=class{static{o(this,"CreateUserDto");}identifier;identity;password};P([classValidator.ValidateNested(),classTransformer.Type(()=>de),U("design:type",typeof de>"u"?Object:de)],ye.prototype,"identifier",void 0);P([classValidator.ValidateNested(),classTransformer.Type(()=>k),U("design:type",typeof k>"u"?Object:k)],ye.prototype,"identity",void 0);P([classValidator.IsString(),classValidator.Matches(d.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),classValidator.Matches(d.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),classValidator.Matches(d.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),classValidator.Matches(d.PASSWORD,{message:"Password must be secure."}),U("design:type",String)],ye.prototype,"password",void 0);var de=class{static{o(this,"CreateUserIdentifierDto");}email;phoneNumber;username};P([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),U("design:type",String)],de.prototype,"email",void 0);P([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),U("design:type",String)],de.prototype,"phoneNumber",void 0);P([classValidator.IsString(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.USERNAME),U("design:type",String)],de.prototype,"username",void 0);var k=class{static{o(this,"CreateUserIdentityDto");}firstName;lastName;gender;avatarUrl;birthDate};P([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(d.NAME,{message:"First name must be composed of letters only"}),U("design:type",String)],k.prototype,"firstName",void 0);P([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(d.NAME,{message:"Last name must be composed of letters only"}),U("design:type",String)],k.prototype,"lastName",void 0);P([classValidator.IsEnum(K),U("design:type",typeof K>"u"?Object:K)],k.prototype,"gender",void 0);P([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),U("design:type",String)],k.prototype,"avatarUrl",void 0);P([classValidator.IsOptional(),classValidator.IsDateString(),U("design:type",typeof Date>"u"?Object:Date)],k.prototype,"birthDate",void 0);function At(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(At,"_ts_decorate");function wt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(wt,"_ts_metadata");var we=class{static{o(this,"SignInUserDto");}identifier;password};At([classValidator.IsNotEmpty(),classValidator.IsString(),wt("design:type",String)],we.prototype,"identifier",void 0);At([classValidator.IsNotEmpty(),classValidator.IsString(),wt("design:type",String)],we.prototype,"password",void 0);function m(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(m,"_ts_decorate");function g(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(g,"_ts_metadata");var ve=class{static{o(this,"UpdateUserDto");}identifier;identity;password};m([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>ce),g("design:type",typeof ce>"u"?Object:ce)],ve.prototype,"identifier",void 0);m([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>D),g("design:type",typeof D>"u"?Object:D)],ve.prototype,"identity",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(8),classValidator.MaxLength(128),g("design:type",String)],ve.prototype,"password",void 0);var ce=class{static{o(this,"UpdateUserIdentifierDto");}email;phoneNumber;username};m([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),g("design:type",String)],ce.prototype,"email",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),g("design:type",String)],ce.prototype,"phoneNumber",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.USERNAME),g("design:type",String)],ce.prototype,"username",void 0);var D=class{static{o(this,"UpdateUserIdentityDto");}firstName;lastName;displayName;description;avatarUrl;bannerUrl;gender;birthDate};m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(d.NAME,{message:"First name must be composed of letters only"}),g("design:type",String)],D.prototype,"firstName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(d.NAME,{message:"Last name must be composed of letters only"}),g("design:type",String)],D.prototype,"lastName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),g("design:type",String)],D.prototype,"displayName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),g("design:type",String)],D.prototype,"description",void 0);m([classValidator.IsOptional(),classValidator.IsUrl(),g("design:type",Object)],D.prototype,"avatarUrl",void 0);m([classValidator.IsOptional(),classValidator.IsUrl(),g("design:type",Object)],D.prototype,"bannerUrl",void 0);m([classValidator.IsOptional(),classValidator.IsEnum(K),g("design:type",typeof K>"u"?Object:K)],D.prototype,"gender",void 0);m([classValidator.IsOptional(),classValidator.IsDateString(),g("design:type",typeof Date>"u"?Object:Date)],D.prototype,"birthDate",void 0);var F=typeof window<"u";function Ut(e,t){let n=new FormData;return t instanceof File?n.append(e,t):t instanceof FileList?Array.from(t).forEach(r=>n.append(e,r)):t.forEach(r=>n.append(e,r)),n}o(Ut,"buildFileFormData");var Mo=Bo__default.default.create({headers:{"Content-Type":"application/json",Accept:"application/json",...!F&&{"User-Agent":"tonightpass-api-client"}},responseType:"json",transformRequest:[function(e,t){return e instanceof FormData?(t&&typeof t=="object"&&"Content-Type"in t&&delete t["Content-Type"],e):(t&&(t["Content-Type"]="application/json"),JSON.stringify(e))}],withCredentials:F}),Dt=o(async(e,t)=>Mo(e,{...t}).then(r=>r).catch(r=>{throw r.data||console.error(r),r.data}),"request");var Ge=class extends Error{static{o(this,"TonightPassAPIError");}response;data;status;constructor(t,n){super(n.message),this.response=t,this.data=n,this.status=t.status;}},je=class{static{o(this,"Client");}options;url;constructor(t){this.options=t,this.url=(n,r)=>{let s=this.options.baseURL||We;return pathcat.pathcat(s,n,r)};}setOptions(t){this.options=t;}async get(t,n,r){return this.requester("GET",t,void 0,n,r)}async post(t,n,r,s){return this.requester("POST",t,n,r,s)}async put(t,n,r,s){return this.requester("PUT",t,n,r,s)}async patch(t,n,r,s){return this.requester("PATCH",t,n,r,s)}async delete(t,n,r,s){return this.requester("DELETE",t,n,r,s)}async requester(t,n,r,s={},i={}){let a=this.url(n,s);if(r!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");let p=await Dt(a,{method:t,data:r,...i}),Oe=p.data;if(!Oe.success)throw new Ge(p,Oe);return Oe.data}};function L(e){return e}o(L,"sdk");var Lt=e=>({signIn:o(async t=>e.post("/auth/sign-in",t),"signIn"),signUp:o(async t=>e.post("/auth/sign-up",t),"signUp"),signOut:o(async()=>e.post("/auth/sign-out",null),"signOut"),refreshToken:o(async()=>e.post("/auth/refresh-token",null),"refreshToken"),oauth2:{google:{connect:o(t=>{if(F)window.location.href=e.url("/oauth2/google",t||{});else throw new Error("Google OAuth2 is only available in the browser")},"connect")},twitter:{connect:o(t=>{if(F)window.location.href=e.url("/oauth2/twitter",t||{});else throw new Error("Twitter OAuth2 is only available in the browser")},"connect")},facebook:{connect:o(t=>{if(F)window.location.href=e.url("/oauth2/facebook",t||{});else throw new Error("Facebook OAuth2 is only available in the browser")},"connect")}}});var kt=e=>({categories:{getAll:o(async t=>e.get("/careers/categories",t),"getAll")},employmentTypes:{getAll:o(async t=>e.get("/careers/employmentTypes",t),"getAll")},jobs:{getAll:o(async t=>e.get("/careers/jobs",t),"getAll"),get:o(async t=>e.get("/careers/jobs/:jobId",{jobId:t}),"get")},offices:{getAll:o(async t=>e.get("/careers/offices",t),"getAll")}});var Ft=e=>({getAll:o(async()=>e.get("/health"),"getAll"),database:o(async()=>e.get("/health/database"),"database"),api:o(async()=>e.get("/health/api"),"api"),app:o(async()=>e.get("/health/app"),"app")});var Bt=e=>({getAll:o(async t=>e.get("/orders",t),"getAll"),get:o(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var Mt=o(e=>({account:o(async t=>e.get("/organizations/:organizationSlug/billing/account",{organizationSlug:t}),"account"),link:o(t=>{if(F)window.location.href=e.url("/organizations/:organizationSlug/billing/link",{organizationSlug:t});else throw new Error("Billing link is only available in the browser")},"link"),dashboard:o(t=>{if(F)window.location.href=e.url("/organizations/:organizationSlug/billing/dashboard",{organizationSlug:t});else throw new Error("Billing dashboard is only available in the browser")},"dashboard")}),"organizationsBilling");var qt=o(e=>({create:o(async(t,n,r)=>e.post("/organizations/:organizationSlug/events/:eventSlug/orders",r,{organizationSlug:t,eventSlug:n}),"create")}),"organizationsEventsOrders");var Gt=o(e=>({getAll:o(async()=>e.get("/organizations/events/styles"),"getAll"),get:o(async t=>e.get("/organizations/events/styles/:styleSlug",{styleSlug:t}),"get"),create:o(async t=>e.post("/organizations/events/styles",t),"create"),update:o(async(t,n)=>e.put("/organizations/events/styles/:styleSlug",n,{styleSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/events/styles/:styleSlug",null,{styleSlug:t}),"delete")}),"organizationsEventsStyles");var Wt=o(e=>({getAll:o(async(t,n)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets",{organizationSlug:t,eventSlug:n}),"getAll"),get:o(async(t,n,r)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",{organizationSlug:t,eventSlug:n,ticketId:r}),"get"),create:o(async(t,n,r)=>e.post("/organizations/:organizationSlug/events/:eventSlug/tickets",r,{organizationSlug:t,eventSlug:n}),"create"),update:o(async(t,n,r,s)=>e.put("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",s,{organizationSlug:t,eventSlug:n,ticketId:r}),"update"),delete:o(async(t,n,r)=>e.delete("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",null,{organizationSlug:t,eventSlug:n,ticketId:r}),"delete")}),"organizationsEventsTickets");var Vt=o(e=>({record:o(async(t,n)=>e.post("/organizations/:organizationSlug/events/:eventSlug/views",null,{organizationSlug:t,eventSlug:n}),"record")}),"organizationsEventsViews");var Ct=o(e=>({search:o(async(t,n)=>e.get("/organizations/events/search",{q:t,limit:n}),"search"),getAll:o(async(t,n)=>t?e.get("/organizations/:organizationSlug/events",{organizationSlug:t,...n}):e.get("/organizations/events",n),"getAll"),getSuggestions:o(async t=>e.get("/organizations/events/suggestions",t),"getSuggestions"),getNearby:o(async t=>e.get("/organizations/events/nearby",t),"getNearby"),getPast:o(async(t,n)=>e.get("/organizations/:organizationSlug/events/past",{organizationSlug:t,...n}),"getPast"),getUpcoming:o(async(t,n)=>e.get("/organizations/:organizationSlug/events/upcoming",{organizationSlug:t,...n}),"getUpcoming"),get:o(async(t,n)=>e.get("/organizations/:organizationSlug/events/:eventSlug",{organizationSlug:t,eventSlug:n}),"get"),create:o(async(t,n)=>e.post("/organizations/:organizationSlug/events",n,{organizationSlug:t}),"create"),update:o(async(t,n,r)=>e.put("/organizations/:organizationSlug/events/:eventSlug",r,{organizationSlug:t,eventSlug:n}),"update"),delete:o(async(t,n)=>e.delete("/organizations/:organizationSlug/events/:eventSlug",null,{organizationSlug:t,eventSlug:n}),"delete"),orders:qt(e),styles:Gt(e),tickets:Wt(e),views:Vt(e)}),"organizationsEvents");var $t=o(e=>({getAll:o(async()=>e.get("/organizations/members"),"getAll"),delete:o(async t=>e.delete("/organizations/members/:memberId",null,{memberId:t}),"delete")}),"organizationsMembers");var Xt=e=>({search:o(async(t,n)=>e.get("/organizations/search",{q:t,limit:n}),"search"),getAll:o(async()=>e.get("/organizations"),"getAll"),get:o(async t=>e.get("/organizations/:organizationSlug",{organizationSlug:t}),"get"),create:o(async t=>e.post("/organizations",t),"create"),update:o(async(t,n)=>e.put("/organizations/:organizationSlug",n,{organizationSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/:organizationSlug",null,{organizationSlug:t}),"delete"),billing:Mt(e),events:Ct(e),members:$t(e)});var Zt=e=>({follow:o(async t=>e.post("/profiles/:username/relationships/follow",null,{username:t}),"follow"),unfollow:o(async t=>e.post("/profiles/:username/relationships/unfollow",null,{username:t}),"unfollow"),getSuggestions:o(async t=>e.get("/profiles/@me/relationships/suggestions",t),"getSuggestions"),getFollowers:o(async(t,n)=>e.get("/profiles/:username/relationships/followers",{username:t,...n}),"getFollowers")});var Ht=e=>({get:o(async t=>e.get("/profiles/:username",{username:t}),"get"),relationships:Zt(e)});var Jt=e=>({getAll:o(async()=>e.get("/users/bookings"),"getAll"),get:o(async t=>e.get("/users/bookings/:bookingId",{bookingId:t}),"get"),me:o(async()=>e.get("/users/@me/bookings"),"me")});var Qt=e=>({me:o(async()=>e.get("/users/@me/notifications"),"me"),count:o(async t=>e.get("/users/@me/notifications/count",t),"count")});var Yt=e=>({search:o(async(t,n)=>e.get("/users/search",{q:t,limit:n}),"search"),getAll:o(async()=>e.get("/users"),"getAll"),get:o(async t=>e.get("/users/:userId",{userId:t}),"get"),me:o(async()=>e.get("/users/@me"),"me"),check:o(async(t,n)=>e.get("/users/check/:identifier",{identifier:t,suggestions:n}),"check"),update:o(async(t,n)=>e.put("/users/:userId",n,{userId:t}),"update"),uploadFile:o(async(t,n,r)=>e.post("/users/:userId/files/:userFileType",Ut("file",r),{userId:t,userFileType:n}),"uploadFile"),bookings:Jt(e),notifications:Qt(e)});var Kt=e=>({registerToBeta:o(async t=>e.post("/notifications/subscribe/beta",{email:t}),"registerToBeta")});var Et=class{static{o(this,"TonightPass");}client;auth;careers;health;orders;organizations;profiles;users;notifications;constructor(t){this.client=new je(t),this.auth=Lt(this.client),this.careers=kt(this.client),this.health=Ft(this.client),this.orders=Bt(this.client),this.organizations=Xt(this.client),this.profiles=Ht(this.client),this.users=Yt(this.client),this.notifications=Kt(this.client);}};
|
|
2
|
-
exports.Client=je;exports.CreateLocationDto=h;exports.CreateOrganizationDto=ae;exports.CreateOrganizationEventDto=f;exports.CreateOrganizationEventOrderDto=Qe;exports.CreateOrganizationEventStyleDto=be;exports.CreateOrganizationEventTicketDto=l;exports.CreateOrganizationIdentityDto=M;exports.CreateOrganizationMemberDto=Ae;exports.CreateUserDto=ye;exports.CreateUserIdentityDto=k;exports.Currency=E;exports.DEFAULT_API_URL=We;exports.ErrorType=
|
|
1
|
+
'use strict';require('reflect-metadata');var classTransformer=require('class-transformer'),classValidator=require('class-validator'),Mo=require('redaxios'),pathcat=require('pathcat');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Mo__default=/*#__PURE__*/_interopDefault(Mo);var Tt=Object.defineProperty;var o=(e,t)=>Tt(e,"name",{value:t,configurable:true});var We="https://api.tonightpass.com";var d={EMAIL:/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i,NAME:/^[a-zA-ZÀ-ÿ0-9-\s]+$/,SLUG:/^[a-z0-9_.]+$/,USERNAME:/^(?!\.)(?!.*\.\.)(?!.*\.$)[a-z0-9_.]{3,48}$/,PHONE:/^\+(?:[0-9] ?){6,14}[0-9]$/,PASSWORD:/^(?=.*[A-Z])(?=.*[a-z])(?=.*[\d\W]).{8,}$/,PASSWORD_MIN_LENGTH:/^.{8,}$/,PASSWORD_UPPERCASE:/^(?=.*[A-Z])/,PASSWORD_LOWERCASE:/^(?=.*[a-z])/,PASSWORD_NUMBER_SPECIAL:/^(?=.*[\d\W])/,IMAGE_URL:/^(https:\/\/|http:\/\/)(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,6}([-a-zA-Z0-9@:%_\+.~#?&//=]*)\.(jpg|jpeg|gif|png|bmp|tiff|tga|svg)$/i};function B(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(B,"_ts_decorate");function w(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(w,"_ts_metadata");var v=class{static{o(this,"GeoPointDto");}type;coordinates;constructor(){this.type="Point";}validate(){let[t,n]=this.coordinates;return n>=-90&&n<=90&&t>=-180&&t<=180}};B([classValidator.IsString(),classValidator.IsNotEmpty(),w("design:type",String)],v.prototype,"type",void 0);B([classValidator.IsArray(),classValidator.IsNotEmpty(),w("design:type",Array)],v.prototype,"coordinates",void 0);B([classValidator.ValidateNested(),w("design:type",Function),w("design:paramtypes",[]),w("design:returntype",Boolean)],v.prototype,"validate",null);var h=class{static{o(this,"CreateLocationDto");}name;address;zipCode;city;country;geometry};B([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),w("design:type",String)],h.prototype,"name",void 0);B([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,256),w("design:type",String)],h.prototype,"address",void 0);B([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),w("design:type",String)],h.prototype,"zipCode",void 0);B([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),w("design:type",String)],h.prototype,"city",void 0);B([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),w("design:type",String)],h.prototype,"country",void 0);B([classValidator.ValidateNested(),classTransformer.Type(()=>v),classValidator.IsNotEmpty(),w("design:type",typeof v>"u"?Object:v)],h.prototype,"geometry",void 0);function ie(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(ie,"_ts_decorate");function re(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(re,"_ts_metadata");var b=class{static{o(this,"UpdateLocationDto");}name;address;zipCode;city;country;geometry};ie([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),re("design:type",String)],b.prototype,"name",void 0);ie([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,256),re("design:type",String)],b.prototype,"address",void 0);ie([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),re("design:type",String)],b.prototype,"zipCode",void 0);ie([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),re("design:type",String)],b.prototype,"city",void 0);ie([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),re("design:type",String)],b.prototype,"country",void 0);ie([classValidator.IsOptional(),classValidator.ValidateNested(),classTransformer.Type(()=>v),re("design:type",typeof v>"u"?Object:v)],b.prototype,"geometry",void 0);function q(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(q,"_ts_decorate");function G(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(G,"_ts_metadata");var ae=class{static{o(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};q([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),G("design:type",String)],ae.prototype,"organizationSlug",void 0);q([classValidator.IsObject(),G("design:type",typeof M>"u"?Object:M)],ae.prototype,"identity",void 0);q([classValidator.IsArray(),G("design:type",Array)],ae.prototype,"members",void 0);q([classValidator.IsOptional(),classValidator.IsObject(),G("design:type",typeof Location>"u"?Object:Location)],ae.prototype,"location",void 0);var M=class{static{o(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};q([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),G("design:type",String)],M.prototype,"displayName",void 0);q([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),G("design:type",String)],M.prototype,"description",void 0);q([classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),G("design:type",String)],M.prototype,"avatarUrl",void 0);q([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),G("design:type",String)],M.prototype,"bannerUrl",void 0);q([classValidator.IsOptional(),classValidator.IsArray(),G("design:type",Array)],M.prototype,"socialLinks",void 0);function V(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(V,"_ts_decorate");function C(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(C,"_ts_metadata");var pe=class{static{o(this,"UpdateOrganizationDto");}slug;identity;members;location};V([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.USERNAME),C("design:type",String)],pe.prototype,"slug",void 0);V([classValidator.IsObject(),classValidator.IsOptional(),C("design:type",typeof W>"u"?Object:W)],pe.prototype,"identity",void 0);V([classValidator.IsOptional(),classValidator.IsArray(),C("design:type",Array)],pe.prototype,"members",void 0);V([classValidator.IsOptional(),classValidator.IsObject(),C("design:type",typeof Location>"u"?Object:Location)],pe.prototype,"location",void 0);var W=class{static{o(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};V([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),classValidator.IsOptional(),C("design:type",String)],W.prototype,"displayName",void 0);V([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),C("design:type",String)],W.prototype,"description",void 0);V([classValidator.IsUrl({protocols:["http","https"]}),classValidator.IsOptional(),C("design:type",String)],W.prototype,"avatarUrl",void 0);V([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),C("design:type",String)],W.prototype,"bannerUrl",void 0);V([classValidator.IsOptional(),classValidator.IsArray(),C("design:type",Array)],W.prototype,"socialLinks",void 0);var Qe=class{static{o(this,"CreateOrganizationEventOrderDto");}cart};var be=class{static{o(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var Ye=class extends be{static{o(this,"UpdateOrganizationEventStyleDto");}};var wn=function(e){return e.AuthEmailAlreadyExists="auth.email-already-exists",e.AuthUsernameAlreadyExists="auth.username-already-exists",e.AuthPhoneNumberAlreadyExists="auth.phone-number-already-exists",e.AuthInvalidCredentials="auth.invalid-credentials",e.AuthUserNotFound="auth.user-not-found",e.AuthInvalidToken="auth.invalid-token",e.AuthTokenExpired="auth.token-expired",e.AuthUnauthorized="auth.unauthorized",e.AuthPasswordMismatch="auth.password-mismatch",e.AuthInvalidOAuth2Provider="auth.invalid-oauth2-provider",e.AuthOAuth2Error="auth.oauth2-error",e.UserNotFound="user.not-found",e.UserInvalidUsername="user.invalid-username",e.UserInvalidEmail="user.invalid-email",e.UserInvalidPhoneNumber="user.invalid-phone-number",e.UserInvalidPassword="user.invalid-password",e.UserInvalidBirthDate="user.invalid-birth-date",e.UserInvalidGender="user.invalid-gender",e.UserInvalidRole="user.invalid-role",e.UserInvalidPreferences="user.invalid-preferences",e.UserInvalidLocation="user.invalid-location",e.UserInvalidFile="user.invalid-file",e.UserFileTooLarge="user.file-too-large",e.UserUnsupportedFileType="user.unsupported-file-type",e.OrganizationNotFound="organization.not-found",e.OrganizationInvalidSlug="organization.invalid-slug",e.OrganizationInvalidName="organization.invalid-name",e.OrganizationInvalidDescription="organization.invalid-description",e.OrganizationInvalidLocation="organization.invalid-location",e.OrganizationInvalidSocialLink="organization.invalid-social-link",e.OrganizationAlreadyExists="organization.already-exists",e.OrganizationUnauthorized="organization.unauthorized",e.OrganizationMemberNotFound="organization.member-not-found",e.OrganizationMemberInvalidRole="organization.member-invalid-role",e.OrganizationMemberAlreadyExists="organization.member-already-exists",e.EventNotFound="event.not-found",e.EventInvalidTitle="event.invalid-title",e.EventInvalidDescription="event.invalid-description",e.EventInvalidLocation="event.invalid-location",e.EventInvalidDates="event.invalid-dates",e.EventInvalidTickets="event.invalid-tickets",e.EventInvalidStyles="event.invalid-styles",e.EventInvalidType="event.invalid-type",e.EventInvalidVisibility="event.invalid-visibility",e.EventUnavailable="event.unavailable",e.EventTicketNotFound="event.ticket-not-found",e.EventTicketUnavailable="event.ticket-unavailable",e.EventTicketInvalidQuantity="event.ticket-invalid-quantity",e.OrderNotFound="order.not-found",e.OrderInvalidStatus="order.invalid-status",e.OrderInvalidPayment="order.invalid-payment",e.OrderPaymentFailed="order.payment-failed",e.OrderAlreadyPaid="order.already-paid",e.OrderCancelled="order.cancelled",e.OrderRefunded="order.refunded",e.OrderExpired="order.expired",e.BookingNotFound="booking.not-found",e.BookingInvalidStatus="booking.invalid-status",e.BookingInvalidTickets="booking.invalid-tickets",e.BookingTicketNotFound="booking.ticket-not-found",e.BookingTicketInvalidToken="booking.ticket-invalid-token",e.BookingTicketExpired="booking.ticket-expired",e.BookingTicketUsed="booking.ticket-used",e.FileNotFound="file.not-found",e.FileInvalidType="file.invalid-type",e.FileTooLarge="file.too-large",e.FileUploadFailed="file.upload-failed",e.ValidationError="validation.error",e.DatabaseError="database.error",e.InternalServerError="server.internal-error",e.NotFound="not-found",e.BadRequest="bad-request",e.Unauthorized="unauthorized",e.Forbidden="forbidden",e.TooManyRequests="too-many-requests",e.ServiceUnavailable="service-unavailable",e.TooManyRequestsAuth="rate-limit.auth",e.TooManyRequestsApi="rate-limit.api",e.WebhookInvalidSignature="webhook.invalid-signature",e.WebhookInvalidEvent="webhook.invalid-event",e.WebhookProcessingFailed="webhook.processing-failed",e.PaymentRequired="payment.required",e.PaymentMethodRequired="payment.method-required",e.PaymentFailed="payment.failed",e.PaymentCancelled="payment.cancelled",e.PaymentRefunded="payment.refunded",e.BillingInvalidAccount="billing.invalid-account",e.BillingAccountRequired="billing.account-required",e.NotificationInvalidType="notification.invalid-type",e.NotificationSendingFailed="notification.sending-failed",e.CacheError="cache.error",e.CacheMiss="cache.miss",e.ExternalServiceError="external-service.error",e.ExternalServiceTimeout="external-service.timeout",e.ExternalServiceUnavailable="external-service.unavailable",e}({});var Z=function(e){return e.ETicket="e-ticket",e.Other="other",e}({}),H=function(e){return e.Entry="entry",e.Package="package",e.Meal="meal",e.Drink="drink",e.Parking="parking",e.Accommodation="accommodation",e.Camping="camping",e.Locker="locker",e.Shuttle="shuttle",e.Other="other",e}({});var _n=function(e){return e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art",e}({});var J=function(e){return e.Clubbing="clubbing",e.Concert="concert",e.Afterwork="afterwork",e.DancingLunch="dancing_lunch",e.Diner="diner",e.Garden="garden",e.AfterBeach="after_beach",e.Festival="festival",e.Spectacle="spectacle",e.Cruise="cruise",e.OutsideAnimation="outside_animation",e.Sport="sport",e.Match="match",e.Seminar="seminar",e.Conference="conference",e.WellnessDay="wellness_day",e.Workshop="workshop",e.TradeFair="trade_fair",e.ConsumerShow="consumer_show",e.Membership="membership",e}({}),Q=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({});var Ln=function(e){return e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected",e}({}),Y=function(e){return e.Member="member",e.Manager="manager",e.Admin="admin",e.Owner="owner",e}({});var Fn=function(e){return e.Facebook="facebook",e.Twitter="twitter",e.Instagram="instagram",e.Linkedin="linkedin",e.Youtube="youtube",e.Website="website",e}({});var Gn=function(e){return e.Follow="follow",e}({});var Vn=function(e){return e.Authentication="authentication",e.BookingTicket="booking_ticket",e.OrganizationInvite="organization_invite",e.PasswordRecovery="password_recovery",e.EmailValidation="email_validation",e.PhoneValidation="phone_validation",e}({});var $n=function(e){return e.User="user",e.Developer="developer",e.Admin="admin",e}({}),K=function(e){return e.Male="male",e.Female="female",e.NonBinary="non-binary",e}({}),Xn=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var Yn=function(e){return e.User="user",e.Organization="organization",e}({});var E=function(e){return e.EUR="EUR",e.USD="USD",e.GBP="GBP",e}({}),En=function(e){return e.FR="fr",e.EN="en",e}({});function j(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(j,"_ts_decorate");function O(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(O,"_ts_metadata");var l=class{static{o(this,"CreateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};j([classValidator.IsString(),classValidator.Length(1,128),O("design:type",String)],l.prototype,"name",void 0);j([classValidator.IsString(),classValidator.Length(1,1024),classValidator.IsOptional(),O("design:type",String)],l.prototype,"description",void 0);j([classValidator.IsNumber(),classValidator.Min(0),O("design:type",Number)],l.prototype,"price",void 0);j([classValidator.IsNumber(),classValidator.Min(0),O("design:type",Number)],l.prototype,"quantity",void 0);j([classValidator.IsEnum(Z),O("design:type",typeof Z>"u"?Object:Z)],l.prototype,"type",void 0);j([classValidator.IsEnum(H),O("design:type",typeof H>"u"?Object:H)],l.prototype,"category",void 0);j([classValidator.IsEnum(E),O("design:type",typeof E>"u"?Object:E)],l.prototype,"currency",void 0);j([classValidator.IsBoolean(),O("design:type",Boolean)],l.prototype,"isVisible",void 0);j([classValidator.IsBoolean(),O("design:type",Boolean)],l.prototype,"isFeesIncluded",void 0);j([classValidator.IsDateString(),classValidator.IsOptional(),O("design:type",typeof Date>"u"?Object:Date)],l.prototype,"startAt",void 0);j([classValidator.IsDateString(),classValidator.IsOptional(),O("design:type",typeof Date>"u"?Object:Date)],l.prototype,"endAt",void 0);function _(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(_,"_ts_decorate");function N(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(N,"_ts_metadata");var c=class{static{o(this,"UpdateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};_([classValidator.IsString(),classValidator.Length(1,128),classValidator.IsOptional(),N("design:type",String)],c.prototype,"name",void 0);_([classValidator.IsString(),classValidator.Length(1,1024),classValidator.IsOptional(),N("design:type",String)],c.prototype,"description",void 0);_([classValidator.IsNumber(),classValidator.Min(0),classValidator.IsOptional(),N("design:type",Number)],c.prototype,"price",void 0);_([classValidator.IsNumber(),classValidator.Min(0),classValidator.IsOptional(),N("design:type",Number)],c.prototype,"quantity",void 0);_([classValidator.IsEnum(Z),classValidator.IsOptional(),N("design:type",typeof Z>"u"?Object:Z)],c.prototype,"type",void 0);_([classValidator.IsEnum(H),classValidator.IsOptional(),N("design:type",typeof H>"u"?Object:H)],c.prototype,"category",void 0);_([classValidator.IsEnum(E),classValidator.IsOptional(),N("design:type",typeof E>"u"?Object:E)],c.prototype,"currency",void 0);_([classValidator.IsBoolean(),classValidator.IsOptional(),N("design:type",Boolean)],c.prototype,"isVisible",void 0);_([classValidator.IsBoolean(),classValidator.IsOptional(),N("design:type",Boolean)],c.prototype,"isFeesIncluded",void 0);_([classValidator.IsDateString(),classValidator.IsOptional(),N("design:type",typeof Date>"u"?Object:Date)],c.prototype,"startAt",void 0);_([classValidator.IsDateString(),classValidator.IsOptional(),N("design:type",typeof Date>"u"?Object:Date)],c.prototype,"endAt",void 0);function x(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(x,"_ts_decorate");function S(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(S,"_ts_metadata");var f=class{static{o(this,"CreateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};x([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,64),S("design:type",String)],f.prototype,"title",void 0);x([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.SLUG),S("design:type",String)],f.prototype,"slug",void 0);x([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(16,2048),S("design:type",String)],f.prototype,"description",void 0);x([classValidator.IsEnum(J),classValidator.IsNotEmpty(),S("design:type",typeof J>"u"?Object:J)],f.prototype,"type",void 0);x([classValidator.IsEnum(Q),classValidator.IsNotEmpty(),S("design:type",typeof Q>"u"?Object:Q)],f.prototype,"visibility",void 0);x([classValidator.IsArray(),classValidator.IsUrl({},{each:true}),S("design:type",Array)],f.prototype,"flyers",void 0);x([classValidator.IsArray(),classValidator.IsUrl({},{each:true}),S("design:type",Array)],f.prototype,"trailers",void 0);x([classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>h),classValidator.IsNotEmpty(),S("design:type",typeof h>"u"?Object:h)],f.prototype,"location",void 0);x([classValidator.IsArray(),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>l),classValidator.IsNotEmpty(),S("design:type",Array)],f.prototype,"tickets",void 0);x([classValidator.IsArray(),classValidator.IsString({each:true}),classValidator.IsNotEmpty(),S("design:type",Array)],f.prototype,"styles",void 0);x([classValidator.IsDateString(),classValidator.IsNotEmpty(),S("design:type",typeof Date>"u"?Object:Date)],f.prototype,"startAt",void 0);x([classValidator.IsDateString(),classValidator.IsNotEmpty(),S("design:type",typeof Date>"u"?Object:Date)],f.prototype,"endAt",void 0);function I(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(I,"_ts_decorate");function R(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(R,"_ts_metadata");var u=class{static{o(this,"UpdateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};I([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,64),R("design:type",String)],u.prototype,"title",void 0);I([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.SLUG),R("design:type",String)],u.prototype,"slug",void 0);I([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(16,2048),R("design:type",String)],u.prototype,"description",void 0);I([classValidator.IsOptional(),classValidator.IsEnum(J),R("design:type",typeof J>"u"?Object:J)],u.prototype,"type",void 0);I([classValidator.IsOptional(),classValidator.IsEnum(Q),R("design:type",typeof Q>"u"?Object:Q)],u.prototype,"visibility",void 0);I([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsUrl({},{each:true}),R("design:type",Array)],u.prototype,"flyers",void 0);I([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsUrl({},{each:true}),R("design:type",Array)],u.prototype,"trailers",void 0);I([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>b),R("design:type",typeof b>"u"?Object:b)],u.prototype,"location",void 0);I([classValidator.IsOptional(),classValidator.IsArray(),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>c),R("design:type",Array)],u.prototype,"tickets",void 0);I([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsString({each:true}),R("design:type",Array)],u.prototype,"styles",void 0);I([classValidator.IsOptional(),classValidator.IsDateString(),R("design:type",typeof Date>"u"?Object:Date)],u.prototype,"startAt",void 0);I([classValidator.IsOptional(),classValidator.IsDateString(),R("design:type",typeof Date>"u"?Object:Date)],u.prototype,"endAt",void 0);function bt(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(bt,"_ts_decorate");function xt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(xt,"_ts_metadata");var Ae=class{static{o(this,"CreateOrganizationMemberDto");}user;role};bt([classValidator.IsString(),classValidator.IsNotEmpty(),xt("design:type",String)],Ae.prototype,"user",void 0);bt([classValidator.IsEnum(Y),classValidator.IsNotEmpty(),xt("design:type",typeof Y>"u"?Object:Y)],Ae.prototype,"role",void 0);function xo(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(xo,"_ts_decorate");function So(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(So,"_ts_metadata");var Be=class{static{o(this,"UpdateOrganizationMemberDto");}role};xo([classValidator.IsEnum(Y),classValidator.IsNotEmpty(),So("design:type",typeof Y>"u"?Object:Y)],Be.prototype,"role",void 0);function P(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(P,"_ts_decorate");function U(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(U,"_ts_metadata");var ye=class{static{o(this,"CreateUserDto");}identifier;identity;password};P([classValidator.ValidateNested(),classTransformer.Type(()=>de),U("design:type",typeof de>"u"?Object:de)],ye.prototype,"identifier",void 0);P([classValidator.ValidateNested(),classTransformer.Type(()=>k),U("design:type",typeof k>"u"?Object:k)],ye.prototype,"identity",void 0);P([classValidator.IsString(),classValidator.Matches(d.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),classValidator.Matches(d.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),classValidator.Matches(d.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),classValidator.Matches(d.PASSWORD,{message:"Password must be secure."}),U("design:type",String)],ye.prototype,"password",void 0);var de=class{static{o(this,"CreateUserIdentifierDto");}email;phoneNumber;username};P([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),U("design:type",String)],de.prototype,"email",void 0);P([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),U("design:type",String)],de.prototype,"phoneNumber",void 0);P([classValidator.IsString(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.USERNAME),U("design:type",String)],de.prototype,"username",void 0);var k=class{static{o(this,"CreateUserIdentityDto");}firstName;lastName;gender;avatarUrl;birthDate};P([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(d.NAME,{message:"First name must be composed of letters only"}),U("design:type",String)],k.prototype,"firstName",void 0);P([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(d.NAME,{message:"Last name must be composed of letters only"}),U("design:type",String)],k.prototype,"lastName",void 0);P([classValidator.IsEnum(K),U("design:type",typeof K>"u"?Object:K)],k.prototype,"gender",void 0);P([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),U("design:type",String)],k.prototype,"avatarUrl",void 0);P([classValidator.IsOptional(),classValidator.IsISO8601(),classTransformer.Transform(({value:e})=>new Date(e)),U("design:type",typeof Date>"u"?Object:Date)],k.prototype,"birthDate",void 0);function At(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(At,"_ts_decorate");function wt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(wt,"_ts_metadata");var we=class{static{o(this,"SignInUserDto");}identifier;password};At([classValidator.IsNotEmpty(),classValidator.IsString(),wt("design:type",String)],we.prototype,"identifier",void 0);At([classValidator.IsNotEmpty(),classValidator.IsString(),wt("design:type",String)],we.prototype,"password",void 0);function m(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(m,"_ts_decorate");function g(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(g,"_ts_metadata");var ve=class{static{o(this,"UpdateUserDto");}identifier;identity;password};m([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>ce),g("design:type",typeof ce>"u"?Object:ce)],ve.prototype,"identifier",void 0);m([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>D),g("design:type",typeof D>"u"?Object:D)],ve.prototype,"identity",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(8),classValidator.MaxLength(128),g("design:type",String)],ve.prototype,"password",void 0);var ce=class{static{o(this,"UpdateUserIdentifierDto");}email;phoneNumber;username};m([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),g("design:type",String)],ce.prototype,"email",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),g("design:type",String)],ce.prototype,"phoneNumber",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.USERNAME),g("design:type",String)],ce.prototype,"username",void 0);var D=class{static{o(this,"UpdateUserIdentityDto");}firstName;lastName;displayName;description;avatarUrl;bannerUrl;gender;birthDate};m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(d.NAME,{message:"First name must be composed of letters only"}),g("design:type",String)],D.prototype,"firstName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(d.NAME,{message:"Last name must be composed of letters only"}),g("design:type",String)],D.prototype,"lastName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),g("design:type",String)],D.prototype,"displayName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),g("design:type",String)],D.prototype,"description",void 0);m([classValidator.IsOptional(),classValidator.IsUrl(),g("design:type",Object)],D.prototype,"avatarUrl",void 0);m([classValidator.IsOptional(),classValidator.IsUrl(),g("design:type",Object)],D.prototype,"bannerUrl",void 0);m([classValidator.IsOptional(),classValidator.IsEnum(K),g("design:type",typeof K>"u"?Object:K)],D.prototype,"gender",void 0);m([classValidator.IsOptional(),classValidator.IsDateString(),g("design:type",typeof Date>"u"?Object:Date)],D.prototype,"birthDate",void 0);var F=typeof window<"u";function Ut(e,t){let n=new FormData;return t instanceof File?n.append(e,t):t instanceof FileList?Array.from(t).forEach(r=>n.append(e,r)):t.forEach(r=>n.append(e,r)),n}o(Ut,"buildFileFormData");var qo=Mo__default.default.create({headers:{"Content-Type":"application/json",Accept:"application/json",...!F&&{"User-Agent":"tonightpass-api-client"}},responseType:"json",transformRequest:[function(e,t){return e instanceof FormData?(t&&typeof t=="object"&&"Content-Type"in t&&delete t["Content-Type"],e):(t&&(t["Content-Type"]="application/json"),JSON.stringify(e))}],withCredentials:F}),Dt=o(async(e,t)=>qo(e,{...t}).then(r=>r).catch(r=>{throw r.data||console.error(r),r.data}),"request");var Ge=class extends Error{static{o(this,"TonightPassAPIError");}response;data;status;constructor(t,n){super(n.message),this.response=t,this.data=n,this.status=t.status;}},je=class{static{o(this,"Client");}options;url;constructor(t){this.options=t,this.url=(n,r)=>{let s=this.options.baseURL||We;return pathcat.pathcat(s,n,r)};}setOptions(t){this.options=t;}async get(t,n,r){return this.requester("GET",t,void 0,n,r)}async post(t,n,r,s){return this.requester("POST",t,n,r,s)}async put(t,n,r,s){return this.requester("PUT",t,n,r,s)}async patch(t,n,r,s){return this.requester("PATCH",t,n,r,s)}async delete(t,n,r,s){return this.requester("DELETE",t,n,r,s)}async requester(t,n,r,s={},i={}){let a=this.url(n,s);if(r!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");let p=await Dt(a,{method:t,data:r,...i}),Oe=p.data;if(!Oe.success)throw new Ge(p,Oe);return Oe.data}};function L(e){return e}o(L,"sdk");var Lt=e=>({signIn:o(async t=>e.post("/auth/sign-in",t),"signIn"),signUp:o(async t=>e.post("/auth/sign-up",t),"signUp"),signOut:o(async()=>e.post("/auth/sign-out",null),"signOut"),refreshToken:o(async()=>e.post("/auth/refresh-token",null),"refreshToken"),oauth2:{google:{connect:o(t=>{if(F)window.location.href=e.url("/oauth2/google",t||{});else throw new Error("Google OAuth2 is only available in the browser")},"connect")},twitter:{connect:o(t=>{if(F)window.location.href=e.url("/oauth2/twitter",t||{});else throw new Error("Twitter OAuth2 is only available in the browser")},"connect")},facebook:{connect:o(t=>{if(F)window.location.href=e.url("/oauth2/facebook",t||{});else throw new Error("Facebook OAuth2 is only available in the browser")},"connect")}}});var kt=e=>({categories:{getAll:o(async t=>e.get("/careers/categories",t),"getAll")},employmentTypes:{getAll:o(async t=>e.get("/careers/employmentTypes",t),"getAll")},jobs:{getAll:o(async t=>e.get("/careers/jobs",t),"getAll"),get:o(async t=>e.get("/careers/jobs/:jobId",{jobId:t}),"get")},offices:{getAll:o(async t=>e.get("/careers/offices",t),"getAll")}});var Ft=e=>({getAll:o(async()=>e.get("/health"),"getAll"),database:o(async()=>e.get("/health/database"),"database"),api:o(async()=>e.get("/health/api"),"api"),app:o(async()=>e.get("/health/app"),"app")});var Bt=e=>({getAll:o(async t=>e.get("/orders",t),"getAll"),get:o(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var Mt=o(e=>({account:o(async t=>e.get("/organizations/:organizationSlug/billing/account",{organizationSlug:t}),"account"),link:o(t=>{if(F)window.location.href=e.url("/organizations/:organizationSlug/billing/link",{organizationSlug:t});else throw new Error("Billing link is only available in the browser")},"link"),dashboard:o(t=>{if(F)window.location.href=e.url("/organizations/:organizationSlug/billing/dashboard",{organizationSlug:t});else throw new Error("Billing dashboard is only available in the browser")},"dashboard")}),"organizationsBilling");var qt=o(e=>({create:o(async(t,n,r)=>e.post("/organizations/:organizationSlug/events/:eventSlug/orders",r,{organizationSlug:t,eventSlug:n}),"create")}),"organizationsEventsOrders");var Gt=o(e=>({getAll:o(async()=>e.get("/organizations/events/styles"),"getAll"),get:o(async t=>e.get("/organizations/events/styles/:styleSlug",{styleSlug:t}),"get"),create:o(async t=>e.post("/organizations/events/styles",t),"create"),update:o(async(t,n)=>e.put("/organizations/events/styles/:styleSlug",n,{styleSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/events/styles/:styleSlug",null,{styleSlug:t}),"delete")}),"organizationsEventsStyles");var Wt=o(e=>({getAll:o(async(t,n)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets",{organizationSlug:t,eventSlug:n}),"getAll"),get:o(async(t,n,r)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",{organizationSlug:t,eventSlug:n,ticketId:r}),"get"),create:o(async(t,n,r)=>e.post("/organizations/:organizationSlug/events/:eventSlug/tickets",r,{organizationSlug:t,eventSlug:n}),"create"),update:o(async(t,n,r,s)=>e.put("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",s,{organizationSlug:t,eventSlug:n,ticketId:r}),"update"),delete:o(async(t,n,r)=>e.delete("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",null,{organizationSlug:t,eventSlug:n,ticketId:r}),"delete")}),"organizationsEventsTickets");var Vt=o(e=>({record:o(async(t,n)=>e.post("/organizations/:organizationSlug/events/:eventSlug/views",null,{organizationSlug:t,eventSlug:n}),"record")}),"organizationsEventsViews");var Ct=o(e=>({search:o(async(t,n)=>e.get("/organizations/events/search",{q:t,limit:n}),"search"),getAll:o(async(t,n)=>t?e.get("/organizations/:organizationSlug/events",{organizationSlug:t,...n}):e.get("/organizations/events",n),"getAll"),getSuggestions:o(async t=>e.get("/organizations/events/suggestions",t),"getSuggestions"),getNearby:o(async t=>e.get("/organizations/events/nearby",t),"getNearby"),getPast:o(async(t,n)=>e.get("/organizations/:organizationSlug/events/past",{organizationSlug:t,...n}),"getPast"),getUpcoming:o(async(t,n)=>e.get("/organizations/:organizationSlug/events/upcoming",{organizationSlug:t,...n}),"getUpcoming"),get:o(async(t,n)=>e.get("/organizations/:organizationSlug/events/:eventSlug",{organizationSlug:t,eventSlug:n}),"get"),create:o(async(t,n)=>e.post("/organizations/:organizationSlug/events",n,{organizationSlug:t}),"create"),update:o(async(t,n,r)=>e.put("/organizations/:organizationSlug/events/:eventSlug",r,{organizationSlug:t,eventSlug:n}),"update"),delete:o(async(t,n)=>e.delete("/organizations/:organizationSlug/events/:eventSlug",null,{organizationSlug:t,eventSlug:n}),"delete"),orders:qt(e),styles:Gt(e),tickets:Wt(e),views:Vt(e)}),"organizationsEvents");var $t=o(e=>({getAll:o(async()=>e.get("/organizations/members"),"getAll"),delete:o(async t=>e.delete("/organizations/members/:memberId",null,{memberId:t}),"delete")}),"organizationsMembers");var Xt=e=>({search:o(async(t,n)=>e.get("/organizations/search",{q:t,limit:n}),"search"),getAll:o(async()=>e.get("/organizations"),"getAll"),get:o(async t=>e.get("/organizations/:organizationSlug",{organizationSlug:t}),"get"),create:o(async t=>e.post("/organizations",t),"create"),update:o(async(t,n)=>e.put("/organizations/:organizationSlug",n,{organizationSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/:organizationSlug",null,{organizationSlug:t}),"delete"),billing:Mt(e),events:Ct(e),members:$t(e)});var Zt=e=>({follow:o(async t=>e.post("/profiles/:username/relationships/follow",null,{username:t}),"follow"),unfollow:o(async t=>e.post("/profiles/:username/relationships/unfollow",null,{username:t}),"unfollow"),getSuggestions:o(async t=>e.get("/profiles/@me/relationships/suggestions",t),"getSuggestions"),getFollowers:o(async(t,n)=>e.get("/profiles/:username/relationships/followers",{username:t,...n}),"getFollowers")});var Ht=e=>({get:o(async t=>e.get("/profiles/:username",{username:t}),"get"),relationships:Zt(e)});var Jt=e=>({getAll:o(async()=>e.get("/users/bookings"),"getAll"),get:o(async t=>e.get("/users/bookings/:bookingId",{bookingId:t}),"get"),me:o(async()=>e.get("/users/@me/bookings"),"me")});var Qt=e=>({me:o(async()=>e.get("/users/@me/notifications"),"me"),count:o(async t=>e.get("/users/@me/notifications/count",t),"count")});var Yt=e=>({search:o(async(t,n)=>e.get("/users/search",{q:t,limit:n}),"search"),getAll:o(async()=>e.get("/users"),"getAll"),get:o(async t=>e.get("/users/:userId",{userId:t}),"get"),me:o(async()=>e.get("/users/@me"),"me"),check:o(async(t,n)=>e.get("/users/check/:identifier",{identifier:t,suggestions:n}),"check"),update:o(async(t,n)=>e.put("/users/:userId",n,{userId:t}),"update"),uploadFile:o(async(t,n,r)=>e.post("/users/:userId/files/:userFileType",Ut("file",r),{userId:t,userFileType:n}),"uploadFile"),bookings:Jt(e),notifications:Qt(e)});var Kt=e=>({registerToBeta:o(async t=>e.post("/notifications/subscribe/beta",{email:t}),"registerToBeta")});var Et=class{static{o(this,"TonightPass");}client;auth;careers;health;orders;organizations;profiles;users;notifications;constructor(t){this.client=new je(t),this.auth=Lt(this.client),this.careers=kt(this.client),this.health=Ft(this.client),this.orders=Bt(this.client),this.organizations=Xt(this.client),this.profiles=Ht(this.client),this.users=Yt(this.client),this.notifications=Kt(this.client);}};
|
|
2
|
+
exports.Client=je;exports.CreateLocationDto=h;exports.CreateOrganizationDto=ae;exports.CreateOrganizationEventDto=f;exports.CreateOrganizationEventOrderDto=Qe;exports.CreateOrganizationEventStyleDto=be;exports.CreateOrganizationEventTicketDto=l;exports.CreateOrganizationIdentityDto=M;exports.CreateOrganizationMemberDto=Ae;exports.CreateUserDto=ye;exports.CreateUserIdentityDto=k;exports.Currency=E;exports.DEFAULT_API_URL=We;exports.ErrorType=wn;exports.GeoPointDto=v;exports.Language=En;exports.OrganizationEventStyleType=_n;exports.OrganizationEventTicketCategory=H;exports.OrganizationEventTicketType=Z;exports.OrganizationEventType=J;exports.OrganizationEventVisibilityType=Q;exports.OrganizationMemberRole=Y;exports.OrganizationMemberStatus=Ln;exports.OrganizationSocialType=Fn;exports.ProfileType=Yn;exports.REGEX=d;exports.SignInUserDto=we;exports.TonightPass=Et;exports.TonightPassAPIError=Ge;exports.UpdateLocationDto=b;exports.UpdateOrganizationDto=pe;exports.UpdateOrganizationEventDto=u;exports.UpdateOrganizationEventStyleDto=Ye;exports.UpdateOrganizationEventTicketDto=c;exports.UpdateOrganizationIdentityDto=W;exports.UpdateOrganizationMemberDto=Be;exports.UpdateUserDto=ve;exports.UserFileType=Xn;exports.UserIdentityGender=K;exports.UserNotificationType=Gn;exports.UserRole=$n;exports.UserTokenType=Vn;exports.auth=Lt;exports.buildFileFormData=Ut;exports.careers=kt;exports.health=Ft;exports.isBrowser=F;exports.notifications=Kt;exports.orders=Bt;exports.organizations=Xt;exports.profiles=Ht;exports.request=Dt;exports.sdk=L;exports.users=Yt;//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|