tonightpass 0.0.67 → 0.0.68
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/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +16 -2
- package/dist/index.d.ts +16 -2
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/rest/types/profiles/index.ts +4 -5
- package/src/sdk/profiles/index.ts +8 -0
- package/src/sdk/profiles/relationships/index.ts +12 -0
- package/src/sdk/profiles.ts +0 -6
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> tonightpass@0.0.
|
|
2
|
+
> tonightpass@0.0.68 build /home/runner/work/tonightpass/tonightpass/packages/node
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m22.
|
|
14
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[
|
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
|
16
|
-
[32mCJS[39m [1mdist/index.js [22m[32m26.
|
|
17
|
-
[32mCJS[39m [1mdist/index.js.map [22m[
|
|
18
|
-
[32mCJS[39m ⚡️ Build success in
|
|
19
|
-
[32mDTS[39m ⚡️ Build success in
|
|
20
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
21
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m22.70 KB[39m
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m80.99 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 647ms
|
|
16
|
+
[32mCJS[39m [1mdist/index.js [22m[32m26.52 KB[39m
|
|
17
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m81.17 KB[39m
|
|
18
|
+
[32mCJS[39m ⚡️ Build success in 648ms
|
|
19
|
+
[32mDTS[39m ⚡️ Build success in 3886ms
|
|
20
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m42.51 KB[39m
|
|
21
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m42.51 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# tonightpass
|
|
2
2
|
|
|
3
|
+
## 0.0.68
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ed0996d`](https://github.com/tonightpass/tonightpass/commit/ed0996da66461a2d92dff32d9d50a2a04a840e4d) Thanks [@AntoineKM](https://github.com/AntoineKM)! - Add profiles relationships types
|
|
8
|
+
|
|
3
9
|
## 0.0.67
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -402,7 +402,7 @@ interface ProfileMetadata {
|
|
|
402
402
|
hasBlocked: boolean;
|
|
403
403
|
canDM: boolean;
|
|
404
404
|
}
|
|
405
|
-
type ProfileEndpoints = Endpoint<"GET", "/profiles/:username", UserIdentity | OrganizationIdentity>;
|
|
405
|
+
type ProfileEndpoints = Endpoint<"GET", "/profiles/:username", UserIdentity | OrganizationIdentity> | Endpoint<"POST", "/profiles/:username/relationships/follow", void> | Endpoint<"POST", "/profiles/:username/relationships/unfollow", void>;
|
|
406
406
|
|
|
407
407
|
type WebhookEndpoints = Endpoint<"POST", "/webhooks/stripe", boolean, Stripe__default.Event>;
|
|
408
408
|
|
|
@@ -747,7 +747,7 @@ declare class Client {
|
|
|
747
747
|
}> | Extract<Endpoint<"GET", "/organizations/:organizationSlug/members", ArrayResult<OrganizationMember>, ArrayOptions<T>>, {
|
|
748
748
|
path: Path;
|
|
749
749
|
method: "GET";
|
|
750
|
-
}> | Extract<
|
|
750
|
+
}> | Extract<Endpoint<"GET", "/profiles/:username", UserIdentity | OrganizationIdentity>, {
|
|
751
751
|
path: Path;
|
|
752
752
|
method: "GET";
|
|
753
753
|
}> | Extract<Endpoint<"GET", "/users", User[]>, {
|
|
@@ -810,6 +810,12 @@ declare class Client {
|
|
|
810
810
|
}> | Extract<Endpoint<"POST", "/organizations/:organizationSlug/members", OrganizationMember, CreateOrganizationMemberDto>, {
|
|
811
811
|
path: Path;
|
|
812
812
|
method: "POST";
|
|
813
|
+
}> | Extract<Endpoint<"POST", "/profiles/:username/relationships/follow", void>, {
|
|
814
|
+
path: Path;
|
|
815
|
+
method: "POST";
|
|
816
|
+
}> | Extract<Endpoint<"POST", "/profiles/:username/relationships/unfollow", void>, {
|
|
817
|
+
path: Path;
|
|
818
|
+
method: "POST";
|
|
813
819
|
}> | Extract<WebhookEndpoints, {
|
|
814
820
|
path: Path;
|
|
815
821
|
method: "POST";
|
|
@@ -967,6 +973,10 @@ declare const organizations: (client: Client) => {
|
|
|
967
973
|
|
|
968
974
|
declare const profiles: (client: Client) => {
|
|
969
975
|
get: (username: string) => Promise<UserIdentity | OrganizationIdentity>;
|
|
976
|
+
relationships: {
|
|
977
|
+
follow: (username: string) => Promise<void>;
|
|
978
|
+
unfollow: (username: string) => Promise<void>;
|
|
979
|
+
};
|
|
970
980
|
};
|
|
971
981
|
|
|
972
982
|
declare const users: (client: Client) => {
|
|
@@ -1076,6 +1086,10 @@ declare class TonightPass {
|
|
|
1076
1086
|
};
|
|
1077
1087
|
readonly profiles: {
|
|
1078
1088
|
get: (username: string) => Promise<UserIdentity | OrganizationIdentity>;
|
|
1089
|
+
relationships: {
|
|
1090
|
+
follow: (username: string) => Promise<void>;
|
|
1091
|
+
unfollow: (username: string) => Promise<void>;
|
|
1092
|
+
};
|
|
1079
1093
|
};
|
|
1080
1094
|
readonly users: {
|
|
1081
1095
|
getAll: () => Promise<User[]>;
|
package/dist/index.d.ts
CHANGED
|
@@ -402,7 +402,7 @@ interface ProfileMetadata {
|
|
|
402
402
|
hasBlocked: boolean;
|
|
403
403
|
canDM: boolean;
|
|
404
404
|
}
|
|
405
|
-
type ProfileEndpoints = Endpoint<"GET", "/profiles/:username", UserIdentity | OrganizationIdentity>;
|
|
405
|
+
type ProfileEndpoints = Endpoint<"GET", "/profiles/:username", UserIdentity | OrganizationIdentity> | Endpoint<"POST", "/profiles/:username/relationships/follow", void> | Endpoint<"POST", "/profiles/:username/relationships/unfollow", void>;
|
|
406
406
|
|
|
407
407
|
type WebhookEndpoints = Endpoint<"POST", "/webhooks/stripe", boolean, Stripe__default.Event>;
|
|
408
408
|
|
|
@@ -747,7 +747,7 @@ declare class Client {
|
|
|
747
747
|
}> | Extract<Endpoint<"GET", "/organizations/:organizationSlug/members", ArrayResult<OrganizationMember>, ArrayOptions<T>>, {
|
|
748
748
|
path: Path;
|
|
749
749
|
method: "GET";
|
|
750
|
-
}> | Extract<
|
|
750
|
+
}> | Extract<Endpoint<"GET", "/profiles/:username", UserIdentity | OrganizationIdentity>, {
|
|
751
751
|
path: Path;
|
|
752
752
|
method: "GET";
|
|
753
753
|
}> | Extract<Endpoint<"GET", "/users", User[]>, {
|
|
@@ -810,6 +810,12 @@ declare class Client {
|
|
|
810
810
|
}> | Extract<Endpoint<"POST", "/organizations/:organizationSlug/members", OrganizationMember, CreateOrganizationMemberDto>, {
|
|
811
811
|
path: Path;
|
|
812
812
|
method: "POST";
|
|
813
|
+
}> | Extract<Endpoint<"POST", "/profiles/:username/relationships/follow", void>, {
|
|
814
|
+
path: Path;
|
|
815
|
+
method: "POST";
|
|
816
|
+
}> | Extract<Endpoint<"POST", "/profiles/:username/relationships/unfollow", void>, {
|
|
817
|
+
path: Path;
|
|
818
|
+
method: "POST";
|
|
813
819
|
}> | Extract<WebhookEndpoints, {
|
|
814
820
|
path: Path;
|
|
815
821
|
method: "POST";
|
|
@@ -967,6 +973,10 @@ declare const organizations: (client: Client) => {
|
|
|
967
973
|
|
|
968
974
|
declare const profiles: (client: Client) => {
|
|
969
975
|
get: (username: string) => Promise<UserIdentity | OrganizationIdentity>;
|
|
976
|
+
relationships: {
|
|
977
|
+
follow: (username: string) => Promise<void>;
|
|
978
|
+
unfollow: (username: string) => Promise<void>;
|
|
979
|
+
};
|
|
970
980
|
};
|
|
971
981
|
|
|
972
982
|
declare const users: (client: Client) => {
|
|
@@ -1076,6 +1086,10 @@ declare class TonightPass {
|
|
|
1076
1086
|
};
|
|
1077
1087
|
readonly profiles: {
|
|
1078
1088
|
get: (username: string) => Promise<UserIdentity | OrganizationIdentity>;
|
|
1089
|
+
relationships: {
|
|
1090
|
+
follow: (username: string) => Promise<void>;
|
|
1091
|
+
unfollow: (username: string) => Promise<void>;
|
|
1092
|
+
};
|
|
1079
1093
|
};
|
|
1080
1094
|
readonly users: {
|
|
1081
1095
|
getAll: () => Promise<User[]>;
|
package/dist/index.js
CHANGED
|
@@ -3,47 +3,47 @@
|
|
|
3
3
|
require('reflect-metadata');
|
|
4
4
|
var classValidator = require('class-validator');
|
|
5
5
|
var classTransformer = require('class-transformer');
|
|
6
|
-
var
|
|
6
|
+
var Ut = require('redaxios');
|
|
7
7
|
var pathcat = require('pathcat');
|
|
8
8
|
|
|
9
9
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var Ut__default = /*#__PURE__*/_interopDefault(Ut);
|
|
12
12
|
|
|
13
|
-
var ct=Object.defineProperty;var o=(e,t)=>ct(e,"name",{value:t,configurable:!0});var fe="https://api.tonightpass.com";var D={EMAIL:/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i,NAME:/^[a-zA-Z0-9 ]+$/,SLUG:/^[a-z0-9_.]+$/,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 S(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(S,"_ts_decorate");function w(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(w,"_ts_metadata");var M=class{static{o(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};S([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),w("design:type",String)],M.prototype,"organizationSlug",void 0);S([classValidator.IsObject(),w("design:type",typeof x>"u"?Object:x)],M.prototype,"identity",void 0);S([classValidator.IsArray(),w("design:type",Array)],M.prototype,"members",void 0);S([classValidator.IsOptional(),classValidator.IsObject(),w("design:type",typeof Location>"u"?Object:Location)],M.prototype,"location",void 0);var x=class{static{o(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};S([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),w("design:type",String)],x.prototype,"displayName",void 0);S([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),w("design:type",String)],x.prototype,"description",void 0);S([classValidator.IsUrl({protocols:["http","https"]}),w("design:type",String)],x.prototype,"avatarUrl",void 0);S([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),w("design:type",String)],x.prototype,"bannerUrl",void 0);S([classValidator.IsOptional(),classValidator.IsArray(),w("design:type",Array)],x.prototype,"socialLinks",void 0);function R(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(R,"_ts_decorate");function A(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(A,"_ts_metadata");var B=class{static{o(this,"UpdateOrganizationDto");}slug;identity;members;location};R([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),A("design:type",String)],B.prototype,"slug",void 0);R([classValidator.IsObject(),classValidator.IsOptional(),A("design:type",typeof j>"u"?Object:j)],B.prototype,"identity",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),A("design:type",Array)],B.prototype,"members",void 0);R([classValidator.IsOptional(),classValidator.IsObject(),A("design:type",typeof Location>"u"?Object:Location)],B.prototype,"location",void 0);var j=class{static{o(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};R([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),classValidator.IsOptional(),A("design:type",String)],j.prototype,"displayName",void 0);R([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),A("design:type",String)],j.prototype,"description",void 0);R([classValidator.IsUrl({protocols:["http","https"]}),classValidator.IsOptional(),A("design:type",String)],j.prototype,"avatarUrl",void 0);R([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),A("design:type",String)],j.prototype,"bannerUrl",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),A("design:type",Array)],j.prototype,"socialLinks",void 0);var he=class{static{o(this,"CreateOrganizationEventOrderDto");}cart};var X=class{static{o(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var be=class extends X{static{o(this,"UpdateOrganizationEventStyleDto");}};exports.OrganizationEventTicketType = void 0;(function(e){e.ETicket="e-ticket",e.Other="other";})(exports.OrganizationEventTicketType||(exports.OrganizationEventTicketType={}));exports.OrganizationEventTicketCategory = void 0;(function(e){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";})(exports.OrganizationEventTicketCategory||(exports.OrganizationEventTicketCategory={}));exports.OrganizationEventStyleType = void 0;(function(e){e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art";})(exports.OrganizationEventStyleType||(exports.OrganizationEventStyleType={}));exports.OrganizationEventType = void 0;(function(e){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";})(exports.OrganizationEventType||(exports.OrganizationEventType={}));exports.OrganizationEventVisibilityType = void 0;(function(e){e.Public="public",e.Unlisted="unlisted",e.Private="private";})(exports.OrganizationEventVisibilityType||(exports.OrganizationEventVisibilityType={}));exports.OrganizationMemberStatus = void 0;(function(e){e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected";})(exports.OrganizationMemberStatus||(exports.OrganizationMemberStatus={}));exports.OrganizationMemberRole = void 0;(function(e){e.Member="member",e.Manager="manager",e.Admin="admin",e.Owner="owner";})(exports.OrganizationMemberRole||(exports.OrganizationMemberRole={}));exports.OrganizationSocialType = void 0;(function(e){e.Facebook="facebook",e.Twitter="twitter",e.Instagram="instagram",e.Linkedin="linkedin",e.Youtube="youtube",e.Website="website";})(exports.OrganizationSocialType||(exports.OrganizationSocialType={}));exports.UserTokenType = void 0;(function(e){e.Authentication="authentication",e.OrganizationInvite="organization_invite",e.PasswordRecovery="password_recovery",e.EmailValidation="email_validation",e.PhoneValidation="phone_validation";})(exports.UserTokenType||(exports.UserTokenType={}));exports.UserRole = void 0;(function(e){e.User="user",e.Developer="developer",e.Admin="admin";})(exports.UserRole||(exports.UserRole={}));exports.UserIdentityGender = void 0;(function(e){e.Male="male",e.Female="female",e.NonBinary="non-binary";})(exports.UserIdentityGender||(exports.UserIdentityGender={}));exports.Currency = void 0;(function(e){e.EUR="EUR",e.USD="USD",e.GBP="GBP";})(exports.Currency||(exports.Currency={}));exports.Language = void 0;(function(e){e.FR="fr",e.EN="en";})(exports.Language||(exports.Language={}));function m(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(m,"_ts_decorate");function u(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(u,"_ts_metadata");var c=class{static{o(this,"CreateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};m([classValidator.IsString(),classValidator.Length(1,128),u("design:type",String)],c.prototype,"name",void 0);m([classValidator.IsString(),classValidator.Length(1,1024),u("design:type",String)],c.prototype,"description",void 0);m([classValidator.IsNumber(),classValidator.Min(0),u("design:type",Number)],c.prototype,"price",void 0);m([classValidator.IsNumber(),classValidator.Min(0),u("design:type",Number)],c.prototype,"quantity",void 0);m([classValidator.IsEnum(exports.OrganizationEventTicketType),u("design:type",typeof exports.OrganizationEventTicketType>"u"?Object:exports.OrganizationEventTicketType)],c.prototype,"type",void 0);m([classValidator.IsEnum(exports.OrganizationEventTicketCategory),u("design:type",typeof exports.OrganizationEventTicketCategory>"u"?Object:exports.OrganizationEventTicketCategory)],c.prototype,"category",void 0);m([classValidator.IsEnum(exports.Currency),u("design:type",typeof exports.Currency>"u"?Object:exports.Currency)],c.prototype,"currency",void 0);m([classValidator.IsBoolean(),u("design:type",Boolean)],c.prototype,"isVisible",void 0);m([classValidator.IsBoolean(),u("design:type",Boolean)],c.prototype,"isFeesIncluded",void 0);m([classValidator.IsDateString(),classValidator.IsOptional(),u("design:type",typeof Date>"u"?Object:Date)],c.prototype,"startAt",void 0);m([classValidator.IsDateString(),classValidator.IsOptional(),u("design:type",typeof Date>"u"?Object:Date)],c.prototype,"endAt",void 0);var Oe=class extends c{static{o(this,"UpdateOrganizationEventTicketDto");}};function O(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(O,"_ts_decorate");function z(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(z,"_ts_metadata");var g=class{static{o(this,"CreateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};O([classValidator.IsString(),classValidator.Length(1,64),z("design:type",String)],g.prototype,"title",void 0);O([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),z("design:type",String)],g.prototype,"slug",void 0);O([classValidator.IsString(),classValidator.Length(16,2048),z("design:type",String)],g.prototype,"description",void 0);O([classValidator.IsEnum(exports.OrganizationEventType),z("design:type",typeof exports.OrganizationEventType>"u"?Object:exports.OrganizationEventType)],g.prototype,"type",void 0);O([classValidator.IsEnum(exports.OrganizationEventVisibilityType),z("design:type",typeof exports.OrganizationEventVisibilityType>"u"?Object:exports.OrganizationEventVisibilityType)],g.prototype,"visibility",void 0);O([classValidator.IsDateString(),z("design:type",typeof Date>"u"?Object:Date)],g.prototype,"startAt",void 0);O([classValidator.IsDateString(),z("design:type",typeof Date>"u"?Object:Date)],g.prototype,"endAt",void 0);var Ee=class extends g{static{o(this,"UpdateOrganizationEventDto");}};function Me(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(Me,"_ts_decorate");function Be(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Be,"_ts_metadata");var C=class{static{o(this,"CreateOrganizationMemberDto");}user;role};Me([classValidator.IsString(),classValidator.IsNotEmpty(),Be("design:type",String)],C.prototype,"user",void 0);Me([classValidator.IsEnum(exports.OrganizationMemberRole),classValidator.IsNotEmpty(),Be("design:type",typeof exports.OrganizationMemberRole>"u"?Object:exports.OrganizationMemberRole)],C.prototype,"role",void 0);function bt(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(bt,"_ts_decorate");function vt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(vt,"_ts_metadata");var se=class{static{o(this,"UpdateOrganizationMemberDto");}role};bt([classValidator.IsEnum(exports.OrganizationMemberRole),classValidator.IsNotEmpty(),vt("design:type",typeof exports.OrganizationMemberRole>"u"?Object:exports.OrganizationMemberRole)],se.prototype,"role",void 0);function _(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}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 ie=class{static{o(this,"CreateUserDto");}identifier;identity;password};_([classValidator.IsString(),classValidator.Matches(D.PASSWORD,{message:"Password must be secure."}),N("design:type",String)],ie.prototype,"password",void 0);var ae=class{static{o(this,"CreateUserIdentifierDto");}email;phoneNumber;username};_([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),N("design:type",String)],ae.prototype,"email",void 0);_([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),N("design:type",String)],ae.prototype,"phoneNumber",void 0);_([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(3),N("design:type",String)],ae.prototype,"username",void 0);var U=class{static{o(this,"CreateUserIdentityDto");}firstName;lastName;gender;avatarUrl;birthDate};_([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(D.NAME,{message:"First name must be composed of letters only"}),N("design:type",String)],U.prototype,"firstName",void 0);_([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(D.NAME,{message:"Last name must be composed of letters only"}),N("design:type",String)],U.prototype,"lastName",void 0);_([classValidator.IsEnum(exports.UserIdentityGender),N("design:type",typeof exports.UserIdentityGender>"u"?Object:exports.UserIdentityGender)],U.prototype,"gender",void 0);_([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),N("design:type",String)],U.prototype,"avatarUrl",void 0);_([classValidator.IsOptional(),classValidator.IsDateString(),N("design:type",typeof Date>"u"?Object:Date)],U.prototype,"birthDate",void 0);var qe=class{static{o(this,"SignInUserDto");}identifier;password};function f(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(f,"_ts_decorate");function d(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(d,"_ts_metadata");var H=class{static{o(this,"UpdateUserDto");}identifier;identity;password};f([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>V),d("design:type",typeof V>"u"?Object:V)],H.prototype,"identifier",void 0);f([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>y),d("design:type",typeof y>"u"?Object:y)],H.prototype,"identity",void 0);f([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(8),classValidator.MaxLength(128),d("design:type",String)],H.prototype,"password",void 0);var V=class{static{o(this,"UpdateUserIdentifierDto");}email;phoneNumber;username};f([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),d("design:type",String)],V.prototype,"email",void 0);f([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),d("design:type",String)],V.prototype,"phoneNumber",void 0);f([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(3),d("design:type",String)],V.prototype,"username",void 0);var y=class{static{o(this,"UpdateUserIdentityDto");}firstName;lastName;displayName;description;avatarUrl;bannerUrl;gender;birthDate};f([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(D.NAME,{message:"First name must be composed of letters only"}),d("design:type",String)],y.prototype,"firstName",void 0);f([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(D.NAME,{message:"Last name must be composed of letters only"}),d("design:type",String)],y.prototype,"lastName",void 0);f([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),d("design:type",String)],y.prototype,"displayName",void 0);f([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),d("design:type",String)],y.prototype,"description",void 0);f([classValidator.IsOptional(),classValidator.IsUrl(),d("design:type",Object)],y.prototype,"avatarUrl",void 0);f([classValidator.IsOptional(),classValidator.IsUrl(),d("design:type",Object)],y.prototype,"bannerUrl",void 0);f([classValidator.IsOptional(),classValidator.IsEnum(exports.UserIdentityGender),d("design:type",typeof exports.UserIdentityGender>"u"?Object:exports.UserIdentityGender)],y.prototype,"gender",void 0);f([classValidator.IsOptional(),classValidator.IsDateString(),d("design:type",typeof Date>"u"?Object:Date)],y.prototype,"birthDate",void 0);var v=typeof window<"u";var Ut=zt__default.default.create({headers:{"Content-Type":"application/json",Accept:"application/json",...!v&&{"User-Agent":"tonightpass-api-client"}},responseType:"json",transformRequest:[function(e){return JSON.stringify(e)}],withCredentials:v}),Xe=o(async(e,t)=>Ut(e,{...t}).then(s=>s).catch(s=>{throw s.data||console.error(s),s.data}),"request");var ce=class extends Error{static{o(this,"TonightPassAPIError");}response;data;status;constructor(t,r){super(r.message),this.response=t,this.data=r,this.status=t.status;}},Y=class{static{o(this,"Client");}options;url;constructor(t){this.options=t,this.url=(r,s)=>{let i=this.options.baseURL||fe;return pathcat.pathcat(i,r,s)};}setOptions(t){this.options=t;}async get(t,r,s){return this.requester("GET",t,void 0,r,s)}async post(t,r,s,i){return this.requester("POST",t,r,s,i)}async put(t,r,s,i){return this.requester("PUT",t,r,s,i)}async patch(t,r,s,i){return this.requester("PATCH",t,r,s,i)}async delete(t,r,s,i){return this.requester("DELETE",t,r,s,i)}async requester(t,r,s,i={},n={}){let p=this.url(r,i);if(s!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");let a=await Xe(p,{method:t,data:s,...n}),K=a.data;if(!K.success)throw new ce(a,K);return K.data}};function L(e){return e}o(L,"sdk");var Ce=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(v)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(v)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(v)window.location.href=e.url("/oauth2/facebook",t||{});else throw new Error("Facebook OAuth2 is only available in the browser")},"connect")}}});var Je=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 Ye=e=>({getAll:o(async()=>e.get("/health"),"getAll"),database:o(async()=>e.get("/health/database"),"database"),http:o(async()=>e.get("/health/http"),"http")});var Ke=e=>({getAll:o(async t=>e.get("/orders",t),"getAll"),get:o(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var Qe=o(e=>({account:o(async t=>e.get("/organizations/:organizationSlug/billing/account",{organizationSlug:t}),"account"),link:o(t=>{if(v)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(v)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 Te=o(e=>({create:o(async(t,r,s)=>e.post("/organizations/:organizationSlug/events/:eventSlug/orders",s,{organizationSlug:t,eventSlug:r}),"create")}),"organizationsEventsOrders");var et=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,r)=>e.put("/organizations/events/styles/:styleSlug",r,{styleSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/events/styles/:styleSlug",null,{styleSlug:t}),"delete")}),"organizationsEventsStyles");var tt=o(e=>({getAll:o(async(t,r)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets",{organizationSlug:t,eventSlug:r}),"getAll"),get:o(async(t,r,s)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",{organizationSlug:t,eventSlug:r,ticketId:s}),"get"),create:o(async(t,r,s)=>e.post("/organizations/:organizationSlug/events/:eventSlug/tickets",s,{organizationSlug:t,eventSlug:r}),"create"),update:o(async(t,r,s,i)=>e.put("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",i,{organizationSlug:t,eventSlug:r,ticketId:s}),"update"),delete:o(async(t,r,s)=>e.delete("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",null,{organizationSlug:t,eventSlug:r,ticketId:s}),"delete")}),"organizationsEventsTickets");var ot=o(e=>({getAll:o(async(t,r)=>t?e.get("/organizations/:organizationSlug/events",{organizationSlug:t,...r}):e.get("/organizations/events",r),"getAll"),getSuggestions:o(async t=>e.get("/organizations/events/suggestions",t),"getSuggestions"),getNearby:o(async t=>e.get("/organizations/events/nearby",t),"getNearby"),get:o(async(t,r)=>e.get("/organizations/:organizationSlug/events/:eventSlug",{organizationSlug:t,eventSlug:r}),"get"),create:o(async(t,r)=>e.post("/organizations/:organizationSlug/events",r,{organizationSlug:t}),"create"),update:o(async(t,r,s)=>e.put("/organizations/:organizationSlug/events/:eventSlug",s,{organizationSlug:t,eventSlug:r}),"update"),delete:o(async(t,r)=>e.delete("/organizations/:organizationSlug/events/:eventSlug",null,{organizationSlug:t,eventSlug:r}),"delete"),orders:Te(e),styles:et(e),tickets:tt(e)}),"organizationsEvents");var rt=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 nt=e=>({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,r)=>e.put("/organizations/:organizationSlug",r,{organizationSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/:organizationSlug",null,{organizationSlug:t}),"delete"),billing:Qe(e),events:ot(e),members:rt(e)});var st=e=>({get:o(async t=>e.get("/profiles/:username",{username:t}),"get")});var it=e=>({getAll:o(async()=>e.get("/users"),"getAll"),get:o(async t=>e.get("/users",{id:t}),"get"),me:o(async()=>e.get("/users/me"),"me"),check:o(async(t,r)=>e.get("/users/check/:identifier",{identifier:t,suggestions:r}),"check"),update:o(async(t,r)=>e.put("/users/:userId",r,{userId:t}),"update")});var pt=e=>({registerToBeta:o(async()=>e.get("/notifications/subscribe/beta"),"registerToBeta")});var at=class{static{o(this,"TonightPass");}client;auth;careers;health;orders;organizations;profiles;users;notifications;constructor(t){this.client=new Y(t),this.auth=Ce(this.client),this.careers=Je(this.client),this.health=Ye(this.client),this.orders=Ke(this.client),this.organizations=nt(this.client),this.profiles=st(this.client),this.users=it(this.client),this.notifications=pt(this.client);}};
|
|
13
|
+
var ct=Object.defineProperty;var o=(e,t)=>ct(e,"name",{value:t,configurable:!0});var ce="https://api.tonightpass.com";var D={EMAIL:/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i,NAME:/^[a-zA-Z0-9 ]+$/,SLUG:/^[a-z0-9_.]+$/,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 S(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(S,"_ts_decorate");function w(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(w,"_ts_metadata");var M=class{static{o(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};S([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),w("design:type",String)],M.prototype,"organizationSlug",void 0);S([classValidator.IsObject(),w("design:type",typeof x>"u"?Object:x)],M.prototype,"identity",void 0);S([classValidator.IsArray(),w("design:type",Array)],M.prototype,"members",void 0);S([classValidator.IsOptional(),classValidator.IsObject(),w("design:type",typeof Location>"u"?Object:Location)],M.prototype,"location",void 0);var x=class{static{o(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};S([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),w("design:type",String)],x.prototype,"displayName",void 0);S([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),w("design:type",String)],x.prototype,"description",void 0);S([classValidator.IsUrl({protocols:["http","https"]}),w("design:type",String)],x.prototype,"avatarUrl",void 0);S([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),w("design:type",String)],x.prototype,"bannerUrl",void 0);S([classValidator.IsOptional(),classValidator.IsArray(),w("design:type",Array)],x.prototype,"socialLinks",void 0);function j(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(j,"_ts_decorate");function A(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(A,"_ts_metadata");var B=class{static{o(this,"UpdateOrganizationDto");}slug;identity;members;location};j([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),A("design:type",String)],B.prototype,"slug",void 0);j([classValidator.IsObject(),classValidator.IsOptional(),A("design:type",typeof R>"u"?Object:R)],B.prototype,"identity",void 0);j([classValidator.IsOptional(),classValidator.IsArray(),A("design:type",Array)],B.prototype,"members",void 0);j([classValidator.IsOptional(),classValidator.IsObject(),A("design:type",typeof Location>"u"?Object:Location)],B.prototype,"location",void 0);var R=class{static{o(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};j([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),classValidator.IsOptional(),A("design:type",String)],R.prototype,"displayName",void 0);j([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),A("design:type",String)],R.prototype,"description",void 0);j([classValidator.IsUrl({protocols:["http","https"]}),classValidator.IsOptional(),A("design:type",String)],R.prototype,"avatarUrl",void 0);j([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),A("design:type",String)],R.prototype,"bannerUrl",void 0);j([classValidator.IsOptional(),classValidator.IsArray(),A("design:type",Array)],R.prototype,"socialLinks",void 0);var he=class{static{o(this,"CreateOrganizationEventOrderDto");}cart};var X=class{static{o(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var be=class extends X{static{o(this,"UpdateOrganizationEventStyleDto");}};exports.OrganizationEventTicketType = void 0;(function(e){e.ETicket="e-ticket",e.Other="other";})(exports.OrganizationEventTicketType||(exports.OrganizationEventTicketType={}));exports.OrganizationEventTicketCategory = void 0;(function(e){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";})(exports.OrganizationEventTicketCategory||(exports.OrganizationEventTicketCategory={}));exports.OrganizationEventStyleType = void 0;(function(e){e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art";})(exports.OrganizationEventStyleType||(exports.OrganizationEventStyleType={}));exports.OrganizationEventType = void 0;(function(e){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";})(exports.OrganizationEventType||(exports.OrganizationEventType={}));exports.OrganizationEventVisibilityType = void 0;(function(e){e.Public="public",e.Unlisted="unlisted",e.Private="private";})(exports.OrganizationEventVisibilityType||(exports.OrganizationEventVisibilityType={}));exports.OrganizationMemberStatus = void 0;(function(e){e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected";})(exports.OrganizationMemberStatus||(exports.OrganizationMemberStatus={}));exports.OrganizationMemberRole = void 0;(function(e){e.Member="member",e.Manager="manager",e.Admin="admin",e.Owner="owner";})(exports.OrganizationMemberRole||(exports.OrganizationMemberRole={}));exports.OrganizationSocialType = void 0;(function(e){e.Facebook="facebook",e.Twitter="twitter",e.Instagram="instagram",e.Linkedin="linkedin",e.Youtube="youtube",e.Website="website";})(exports.OrganizationSocialType||(exports.OrganizationSocialType={}));exports.UserTokenType = void 0;(function(e){e.Authentication="authentication",e.OrganizationInvite="organization_invite",e.PasswordRecovery="password_recovery",e.EmailValidation="email_validation",e.PhoneValidation="phone_validation";})(exports.UserTokenType||(exports.UserTokenType={}));exports.UserRole = void 0;(function(e){e.User="user",e.Developer="developer",e.Admin="admin";})(exports.UserRole||(exports.UserRole={}));exports.UserIdentityGender = void 0;(function(e){e.Male="male",e.Female="female",e.NonBinary="non-binary";})(exports.UserIdentityGender||(exports.UserIdentityGender={}));exports.Currency = void 0;(function(e){e.EUR="EUR",e.USD="USD",e.GBP="GBP";})(exports.Currency||(exports.Currency={}));exports.Language = void 0;(function(e){e.FR="fr",e.EN="en";})(exports.Language||(exports.Language={}));function m(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(m,"_ts_decorate");function u(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(u,"_ts_metadata");var f=class{static{o(this,"CreateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};m([classValidator.IsString(),classValidator.Length(1,128),u("design:type",String)],f.prototype,"name",void 0);m([classValidator.IsString(),classValidator.Length(1,1024),u("design:type",String)],f.prototype,"description",void 0);m([classValidator.IsNumber(),classValidator.Min(0),u("design:type",Number)],f.prototype,"price",void 0);m([classValidator.IsNumber(),classValidator.Min(0),u("design:type",Number)],f.prototype,"quantity",void 0);m([classValidator.IsEnum(exports.OrganizationEventTicketType),u("design:type",typeof exports.OrganizationEventTicketType>"u"?Object:exports.OrganizationEventTicketType)],f.prototype,"type",void 0);m([classValidator.IsEnum(exports.OrganizationEventTicketCategory),u("design:type",typeof exports.OrganizationEventTicketCategory>"u"?Object:exports.OrganizationEventTicketCategory)],f.prototype,"category",void 0);m([classValidator.IsEnum(exports.Currency),u("design:type",typeof exports.Currency>"u"?Object:exports.Currency)],f.prototype,"currency",void 0);m([classValidator.IsBoolean(),u("design:type",Boolean)],f.prototype,"isVisible",void 0);m([classValidator.IsBoolean(),u("design:type",Boolean)],f.prototype,"isFeesIncluded",void 0);m([classValidator.IsDateString(),classValidator.IsOptional(),u("design:type",typeof Date>"u"?Object:Date)],f.prototype,"startAt",void 0);m([classValidator.IsDateString(),classValidator.IsOptional(),u("design:type",typeof Date>"u"?Object:Date)],f.prototype,"endAt",void 0);var Oe=class extends f{static{o(this,"UpdateOrganizationEventTicketDto");}};function O(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(O,"_ts_decorate");function z(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(z,"_ts_metadata");var g=class{static{o(this,"CreateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};O([classValidator.IsString(),classValidator.Length(1,64),z("design:type",String)],g.prototype,"title",void 0);O([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),z("design:type",String)],g.prototype,"slug",void 0);O([classValidator.IsString(),classValidator.Length(16,2048),z("design:type",String)],g.prototype,"description",void 0);O([classValidator.IsEnum(exports.OrganizationEventType),z("design:type",typeof exports.OrganizationEventType>"u"?Object:exports.OrganizationEventType)],g.prototype,"type",void 0);O([classValidator.IsEnum(exports.OrganizationEventVisibilityType),z("design:type",typeof exports.OrganizationEventVisibilityType>"u"?Object:exports.OrganizationEventVisibilityType)],g.prototype,"visibility",void 0);O([classValidator.IsDateString(),z("design:type",typeof Date>"u"?Object:Date)],g.prototype,"startAt",void 0);O([classValidator.IsDateString(),z("design:type",typeof Date>"u"?Object:Date)],g.prototype,"endAt",void 0);var Ee=class extends g{static{o(this,"UpdateOrganizationEventDto");}};function Me(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(Me,"_ts_decorate");function Be(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Be,"_ts_metadata");var C=class{static{o(this,"CreateOrganizationMemberDto");}user;role};Me([classValidator.IsString(),classValidator.IsNotEmpty(),Be("design:type",String)],C.prototype,"user",void 0);Me([classValidator.IsEnum(exports.OrganizationMemberRole),classValidator.IsNotEmpty(),Be("design:type",typeof exports.OrganizationMemberRole>"u"?Object:exports.OrganizationMemberRole)],C.prototype,"role",void 0);function vt(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(vt,"_ts_decorate");function xt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(xt,"_ts_metadata");var se=class{static{o(this,"UpdateOrganizationMemberDto");}role};vt([classValidator.IsEnum(exports.OrganizationMemberRole),classValidator.IsNotEmpty(),xt("design:type",typeof exports.OrganizationMemberRole>"u"?Object:exports.OrganizationMemberRole)],se.prototype,"role",void 0);function _(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}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 ie=class{static{o(this,"CreateUserDto");}identifier;identity;password};_([classValidator.IsString(),classValidator.Matches(D.PASSWORD,{message:"Password must be secure."}),N("design:type",String)],ie.prototype,"password",void 0);var ae=class{static{o(this,"CreateUserIdentifierDto");}email;phoneNumber;username};_([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),N("design:type",String)],ae.prototype,"email",void 0);_([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),N("design:type",String)],ae.prototype,"phoneNumber",void 0);_([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(3),N("design:type",String)],ae.prototype,"username",void 0);var U=class{static{o(this,"CreateUserIdentityDto");}firstName;lastName;gender;avatarUrl;birthDate};_([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(D.NAME,{message:"First name must be composed of letters only"}),N("design:type",String)],U.prototype,"firstName",void 0);_([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(D.NAME,{message:"Last name must be composed of letters only"}),N("design:type",String)],U.prototype,"lastName",void 0);_([classValidator.IsEnum(exports.UserIdentityGender),N("design:type",typeof exports.UserIdentityGender>"u"?Object:exports.UserIdentityGender)],U.prototype,"gender",void 0);_([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),N("design:type",String)],U.prototype,"avatarUrl",void 0);_([classValidator.IsOptional(),classValidator.IsDateString(),N("design:type",typeof Date>"u"?Object:Date)],U.prototype,"birthDate",void 0);var ke=class{static{o(this,"SignInUserDto");}identifier;password};function c(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(c,"_ts_decorate");function l(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(l,"_ts_metadata");var H=class{static{o(this,"UpdateUserDto");}identifier;identity;password};c([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>V),l("design:type",typeof V>"u"?Object:V)],H.prototype,"identifier",void 0);c([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>y),l("design:type",typeof y>"u"?Object:y)],H.prototype,"identity",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(8),classValidator.MaxLength(128),l("design:type",String)],H.prototype,"password",void 0);var V=class{static{o(this,"UpdateUserIdentifierDto");}email;phoneNumber;username};c([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),l("design:type",String)],V.prototype,"email",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),l("design:type",String)],V.prototype,"phoneNumber",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(3),l("design:type",String)],V.prototype,"username",void 0);var y=class{static{o(this,"UpdateUserIdentityDto");}firstName;lastName;displayName;description;avatarUrl;bannerUrl;gender;birthDate};c([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(D.NAME,{message:"First name must be composed of letters only"}),l("design:type",String)],y.prototype,"firstName",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(D.NAME,{message:"Last name must be composed of letters only"}),l("design:type",String)],y.prototype,"lastName",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),l("design:type",String)],y.prototype,"displayName",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),l("design:type",String)],y.prototype,"description",void 0);c([classValidator.IsOptional(),classValidator.IsUrl(),l("design:type",Object)],y.prototype,"avatarUrl",void 0);c([classValidator.IsOptional(),classValidator.IsUrl(),l("design:type",Object)],y.prototype,"bannerUrl",void 0);c([classValidator.IsOptional(),classValidator.IsEnum(exports.UserIdentityGender),l("design:type",typeof exports.UserIdentityGender>"u"?Object:exports.UserIdentityGender)],y.prototype,"gender",void 0);c([classValidator.IsOptional(),classValidator.IsDateString(),l("design:type",typeof Date>"u"?Object:Date)],y.prototype,"birthDate",void 0);var v=typeof window<"u";var Et=Ut__default.default.create({headers:{"Content-Type":"application/json",Accept:"application/json",...!v&&{"User-Agent":"tonightpass-api-client"}},responseType:"json",transformRequest:[function(e){return JSON.stringify(e)}],withCredentials:v}),Xe=o(async(e,t)=>Et(e,{...t}).then(s=>s).catch(s=>{throw s.data||console.error(s),s.data}),"request");var fe=class extends Error{static{o(this,"TonightPassAPIError");}response;data;status;constructor(t,r){super(r.message),this.response=t,this.data=r,this.status=t.status;}},Y=class{static{o(this,"Client");}options;url;constructor(t){this.options=t,this.url=(r,s)=>{let i=this.options.baseURL||ce;return pathcat.pathcat(i,r,s)};}setOptions(t){this.options=t;}async get(t,r,s){return this.requester("GET",t,void 0,r,s)}async post(t,r,s,i){return this.requester("POST",t,r,s,i)}async put(t,r,s,i){return this.requester("PUT",t,r,s,i)}async patch(t,r,s,i){return this.requester("PATCH",t,r,s,i)}async delete(t,r,s,i){return this.requester("DELETE",t,r,s,i)}async requester(t,r,s,i={},n={}){let p=this.url(r,i);if(s!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");let a=await Xe(p,{method:t,data:s,...n}),K=a.data;if(!K.success)throw new fe(a,K);return K.data}};function P(e){return e}o(P,"sdk");var Ce=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(v)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(v)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(v)window.location.href=e.url("/oauth2/facebook",t||{});else throw new Error("Facebook OAuth2 is only available in the browser")},"connect")}}});var Je=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 Ye=e=>({getAll:o(async()=>e.get("/health"),"getAll"),database:o(async()=>e.get("/health/database"),"database"),http:o(async()=>e.get("/health/http"),"http")});var Ke=e=>({getAll:o(async t=>e.get("/orders",t),"getAll"),get:o(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var Qe=o(e=>({account:o(async t=>e.get("/organizations/:organizationSlug/billing/account",{organizationSlug:t}),"account"),link:o(t=>{if(v)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(v)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 Te=o(e=>({create:o(async(t,r,s)=>e.post("/organizations/:organizationSlug/events/:eventSlug/orders",s,{organizationSlug:t,eventSlug:r}),"create")}),"organizationsEventsOrders");var et=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,r)=>e.put("/organizations/events/styles/:styleSlug",r,{styleSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/events/styles/:styleSlug",null,{styleSlug:t}),"delete")}),"organizationsEventsStyles");var tt=o(e=>({getAll:o(async(t,r)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets",{organizationSlug:t,eventSlug:r}),"getAll"),get:o(async(t,r,s)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",{organizationSlug:t,eventSlug:r,ticketId:s}),"get"),create:o(async(t,r,s)=>e.post("/organizations/:organizationSlug/events/:eventSlug/tickets",s,{organizationSlug:t,eventSlug:r}),"create"),update:o(async(t,r,s,i)=>e.put("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",i,{organizationSlug:t,eventSlug:r,ticketId:s}),"update"),delete:o(async(t,r,s)=>e.delete("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",null,{organizationSlug:t,eventSlug:r,ticketId:s}),"delete")}),"organizationsEventsTickets");var ot=o(e=>({getAll:o(async(t,r)=>t?e.get("/organizations/:organizationSlug/events",{organizationSlug:t,...r}):e.get("/organizations/events",r),"getAll"),getSuggestions:o(async t=>e.get("/organizations/events/suggestions",t),"getSuggestions"),getNearby:o(async t=>e.get("/organizations/events/nearby",t),"getNearby"),get:o(async(t,r)=>e.get("/organizations/:organizationSlug/events/:eventSlug",{organizationSlug:t,eventSlug:r}),"get"),create:o(async(t,r)=>e.post("/organizations/:organizationSlug/events",r,{organizationSlug:t}),"create"),update:o(async(t,r,s)=>e.put("/organizations/:organizationSlug/events/:eventSlug",s,{organizationSlug:t,eventSlug:r}),"update"),delete:o(async(t,r)=>e.delete("/organizations/:organizationSlug/events/:eventSlug",null,{organizationSlug:t,eventSlug:r}),"delete"),orders:Te(e),styles:et(e),tickets:tt(e)}),"organizationsEvents");var rt=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 nt=e=>({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,r)=>e.put("/organizations/:organizationSlug",r,{organizationSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/:organizationSlug",null,{organizationSlug:t}),"delete"),billing:Qe(e),events:ot(e),members:rt(e)});var st=e=>({follow:o(async t=>e.post("/profiles/:username/relationships/follow",void 0,{username:t}),"follow"),unfollow:o(async t=>e.post("/profiles/:username/relationships/unfollow",void 0,{username:t}),"unfollow")});var it=e=>({get:o(async t=>e.get("/profiles/:username",{username:t}),"get"),relationships:st(e)});var pt=e=>({getAll:o(async()=>e.get("/users"),"getAll"),get:o(async t=>e.get("/users",{id:t}),"get"),me:o(async()=>e.get("/users/me"),"me"),check:o(async(t,r)=>e.get("/users/check/:identifier",{identifier:t,suggestions:r}),"check"),update:o(async(t,r)=>e.put("/users/:userId",r,{userId:t}),"update")});var at=e=>({registerToBeta:o(async()=>e.get("/notifications/subscribe/beta"),"registerToBeta")});var ft=class{static{o(this,"TonightPass");}client;auth;careers;health;orders;organizations;profiles;users;notifications;constructor(t){this.client=new Y(t),this.auth=Ce(this.client),this.careers=Je(this.client),this.health=Ye(this.client),this.orders=Ke(this.client),this.organizations=nt(this.client),this.profiles=it(this.client),this.users=pt(this.client),this.notifications=at(this.client);}};
|
|
14
14
|
|
|
15
15
|
exports.Client = Y;
|
|
16
16
|
exports.CreateOrganizationDto = M;
|
|
17
17
|
exports.CreateOrganizationEventDto = g;
|
|
18
18
|
exports.CreateOrganizationEventOrderDto = he;
|
|
19
19
|
exports.CreateOrganizationEventStyleDto = X;
|
|
20
|
-
exports.CreateOrganizationEventTicketDto =
|
|
20
|
+
exports.CreateOrganizationEventTicketDto = f;
|
|
21
21
|
exports.CreateOrganizationIdentityDto = x;
|
|
22
22
|
exports.CreateOrganizationMemberDto = C;
|
|
23
23
|
exports.CreateUserDto = ie;
|
|
24
24
|
exports.CreateUserIdentityDto = U;
|
|
25
|
-
exports.DEFAULT_API_URL =
|
|
25
|
+
exports.DEFAULT_API_URL = ce;
|
|
26
26
|
exports.REGEX = D;
|
|
27
|
-
exports.SignInUserDto =
|
|
28
|
-
exports.TonightPass =
|
|
29
|
-
exports.TonightPassAPIError =
|
|
27
|
+
exports.SignInUserDto = ke;
|
|
28
|
+
exports.TonightPass = ft;
|
|
29
|
+
exports.TonightPassAPIError = fe;
|
|
30
30
|
exports.UpdateOrganizationDto = B;
|
|
31
31
|
exports.UpdateOrganizationEventDto = Ee;
|
|
32
32
|
exports.UpdateOrganizationEventStyleDto = be;
|
|
33
33
|
exports.UpdateOrganizationEventTicketDto = Oe;
|
|
34
|
-
exports.UpdateOrganizationIdentityDto =
|
|
34
|
+
exports.UpdateOrganizationIdentityDto = R;
|
|
35
35
|
exports.UpdateOrganizationMemberDto = se;
|
|
36
36
|
exports.UpdateUserDto = H;
|
|
37
37
|
exports.auth = Ce;
|
|
38
38
|
exports.careers = Je;
|
|
39
39
|
exports.health = Ye;
|
|
40
40
|
exports.isBrowser = v;
|
|
41
|
-
exports.notifications =
|
|
41
|
+
exports.notifications = at;
|
|
42
42
|
exports.orders = Ke;
|
|
43
43
|
exports.organizations = nt;
|
|
44
|
-
exports.profiles =
|
|
44
|
+
exports.profiles = it;
|
|
45
45
|
exports.request = Xe;
|
|
46
|
-
exports.sdk =
|
|
47
|
-
exports.users =
|
|
46
|
+
exports.sdk = P;
|
|
47
|
+
exports.users = pt;
|
|
48
48
|
//# sourceMappingURL=index.js.map
|
|
49
49
|
//# sourceMappingURL=index.js.map
|