@stackframe/stack-shared 2.8.36 → 2.8.40
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/CHANGELOG.md +24 -0
- package/dist/config/schema.d.mts +91 -15
- package/dist/config/schema.d.ts +91 -15
- package/dist/config/schema.js +24 -4
- package/dist/config/schema.js.map +1 -1
- package/dist/esm/config/schema.js +24 -4
- package/dist/esm/config/schema.js.map +1 -1
- package/dist/esm/helpers/vault/server-side.js +5 -1
- package/dist/esm/helpers/vault/server-side.js.map +1 -1
- package/dist/esm/interface/admin-interface.js +53 -2
- package/dist/esm/interface/admin-interface.js.map +1 -1
- package/dist/esm/interface/client-interface.js +29 -26
- package/dist/esm/interface/client-interface.js.map +1 -1
- package/dist/esm/interface/crud/oauth-providers.js +2 -0
- package/dist/esm/interface/crud/oauth-providers.js.map +1 -1
- package/dist/esm/interface/crud/transactions.js +21 -0
- package/dist/esm/interface/crud/transactions.js.map +1 -0
- package/dist/esm/interface/server-interface.js +5 -7
- package/dist/esm/interface/server-interface.js.map +1 -1
- package/dist/esm/known-errors.js +21 -1
- package/dist/esm/known-errors.js.map +1 -1
- package/dist/esm/schema-fields.js +23 -4
- package/dist/esm/schema-fields.js.map +1 -1
- package/dist/esm/sessions.js +19 -9
- package/dist/esm/sessions.js.map +1 -1
- package/dist/esm/utils/arrays.js +25 -0
- package/dist/esm/utils/arrays.js.map +1 -1
- package/dist/esm/utils/esbuild.js +63 -6
- package/dist/esm/utils/esbuild.js.map +1 -1
- package/dist/esm/utils/jwt.js +16 -1
- package/dist/esm/utils/jwt.js.map +1 -1
- package/dist/esm/utils/numbers.js +14 -9
- package/dist/esm/utils/numbers.js.map +1 -1
- package/dist/esm/utils/paginated-lists.js +230 -0
- package/dist/esm/utils/paginated-lists.js.map +1 -0
- package/dist/esm/utils/promises.js +2 -1
- package/dist/esm/utils/promises.js.map +1 -1
- package/dist/esm/utils/types.js.map +1 -1
- package/dist/helpers/password.d.mts +3 -3
- package/dist/helpers/password.d.ts +3 -3
- package/dist/helpers/vault/server-side.js +5 -1
- package/dist/helpers/vault/server-side.js.map +1 -1
- package/dist/index.d.mts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/interface/admin-interface.d.mts +37 -7
- package/dist/interface/admin-interface.d.ts +37 -7
- package/dist/interface/admin-interface.js +53 -2
- package/dist/interface/admin-interface.js.map +1 -1
- package/dist/interface/client-interface.d.mts +5 -22
- package/dist/interface/client-interface.d.ts +5 -22
- package/dist/interface/client-interface.js +29 -26
- package/dist/interface/client-interface.js.map +1 -1
- package/dist/interface/crud/current-user.d.mts +4 -4
- package/dist/interface/crud/current-user.d.ts +4 -4
- package/dist/interface/crud/oauth-providers.d.mts +12 -4
- package/dist/interface/crud/oauth-providers.d.ts +12 -4
- package/dist/interface/crud/oauth-providers.js +1 -0
- package/dist/interface/crud/oauth-providers.js.map +1 -1
- package/dist/interface/crud/project-api-keys.d.mts +2 -2
- package/dist/interface/crud/project-api-keys.d.ts +2 -2
- package/dist/interface/crud/projects.d.mts +12 -12
- package/dist/interface/crud/projects.d.ts +12 -12
- package/dist/interface/crud/team-member-profiles.d.mts +6 -6
- package/dist/interface/crud/team-member-profiles.d.ts +6 -6
- package/dist/interface/crud/transactions.d.mts +56 -0
- package/dist/interface/crud/transactions.d.ts +56 -0
- package/dist/interface/crud/transactions.js +46 -0
- package/dist/interface/crud/transactions.js.map +1 -0
- package/dist/interface/crud/users.d.mts +6 -6
- package/dist/interface/crud/users.d.ts +6 -6
- package/dist/interface/server-interface.d.mts +8 -44
- package/dist/interface/server-interface.d.ts +8 -44
- package/dist/interface/server-interface.js +5 -7
- package/dist/interface/server-interface.js.map +1 -1
- package/dist/known-errors.d.mts +9 -3
- package/dist/known-errors.d.ts +9 -3
- package/dist/known-errors.js +21 -1
- package/dist/known-errors.js.map +1 -1
- package/dist/schema-fields.d.mts +38 -8
- package/dist/schema-fields.d.ts +38 -8
- package/dist/schema-fields.js +26 -5
- package/dist/schema-fields.js.map +1 -1
- package/dist/sessions.d.mts +26 -4
- package/dist/sessions.d.ts +26 -4
- package/dist/sessions.js +19 -9
- package/dist/sessions.js.map +1 -1
- package/dist/utils/arrays.d.mts +6 -1
- package/dist/utils/arrays.d.ts +6 -1
- package/dist/utils/arrays.js +30 -0
- package/dist/utils/arrays.js.map +1 -1
- package/dist/utils/esbuild.d.mts +1 -0
- package/dist/utils/esbuild.d.ts +1 -0
- package/dist/utils/esbuild.js +63 -6
- package/dist/utils/esbuild.js.map +1 -1
- package/dist/utils/jwt.d.mts +34 -1
- package/dist/utils/jwt.d.ts +34 -1
- package/dist/utils/jwt.js +16 -0
- package/dist/utils/jwt.js.map +1 -1
- package/dist/utils/numbers.js +14 -9
- package/dist/utils/numbers.js.map +1 -1
- package/dist/utils/paginated-lists.d.mts +176 -0
- package/dist/utils/paginated-lists.d.ts +176 -0
- package/dist/utils/paginated-lists.js +256 -0
- package/dist/utils/paginated-lists.js.map +1 -0
- package/dist/utils/promises.d.mts +1 -1
- package/dist/utils/promises.d.ts +1 -1
- package/dist/utils/promises.js +2 -1
- package/dist/utils/promises.js.map +1 -1
- package/dist/utils/stores.d.mts +6 -6
- package/dist/utils/stores.d.ts +6 -6
- package/dist/utils/types.d.mts +10 -1
- package/dist/utils/types.d.ts +10 -1
- package/dist/utils/types.js.map +1 -1
- package/package.json +3 -2
|
@@ -7,13 +7,15 @@ declare const oauthProviderClientReadSchema: yup.ObjectSchema<{
|
|
|
7
7
|
user_id: string;
|
|
8
8
|
id: string;
|
|
9
9
|
email: string | undefined;
|
|
10
|
-
|
|
10
|
+
provider_config_id: string;
|
|
11
|
+
type: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
11
12
|
allow_sign_in: boolean;
|
|
12
13
|
allow_connected_accounts: boolean;
|
|
13
14
|
}, yup.AnyObject, {
|
|
14
15
|
user_id: undefined;
|
|
15
16
|
id: undefined;
|
|
16
17
|
email: undefined;
|
|
18
|
+
provider_config_id: undefined;
|
|
17
19
|
type: undefined;
|
|
18
20
|
allow_sign_in: undefined;
|
|
19
21
|
allow_connected_accounts: undefined;
|
|
@@ -22,7 +24,8 @@ declare const oauthProviderServerReadSchema: yup.ObjectSchema<{
|
|
|
22
24
|
user_id: string;
|
|
23
25
|
id: string;
|
|
24
26
|
email: string | undefined;
|
|
25
|
-
|
|
27
|
+
provider_config_id: string;
|
|
28
|
+
type: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
26
29
|
allow_sign_in: boolean;
|
|
27
30
|
allow_connected_accounts: boolean;
|
|
28
31
|
} & {
|
|
@@ -31,6 +34,7 @@ declare const oauthProviderServerReadSchema: yup.ObjectSchema<{
|
|
|
31
34
|
user_id: undefined;
|
|
32
35
|
id: undefined;
|
|
33
36
|
email: undefined;
|
|
37
|
+
provider_config_id: undefined;
|
|
34
38
|
type: undefined;
|
|
35
39
|
allow_sign_in: undefined;
|
|
36
40
|
allow_connected_accounts: undefined;
|
|
@@ -76,13 +80,15 @@ declare const oauthProviderCrud: CrudSchemaFromOptions<{
|
|
|
76
80
|
user_id: string;
|
|
77
81
|
id: string;
|
|
78
82
|
email: string | undefined;
|
|
79
|
-
|
|
83
|
+
provider_config_id: string;
|
|
84
|
+
type: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
80
85
|
allow_sign_in: boolean;
|
|
81
86
|
allow_connected_accounts: boolean;
|
|
82
87
|
}, yup.AnyObject, {
|
|
83
88
|
user_id: undefined;
|
|
84
89
|
id: undefined;
|
|
85
90
|
email: undefined;
|
|
91
|
+
provider_config_id: undefined;
|
|
86
92
|
type: undefined;
|
|
87
93
|
allow_sign_in: undefined;
|
|
88
94
|
allow_connected_accounts: undefined;
|
|
@@ -99,7 +105,8 @@ declare const oauthProviderCrud: CrudSchemaFromOptions<{
|
|
|
99
105
|
user_id: string;
|
|
100
106
|
id: string;
|
|
101
107
|
email: string | undefined;
|
|
102
|
-
|
|
108
|
+
provider_config_id: string;
|
|
109
|
+
type: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
103
110
|
allow_sign_in: boolean;
|
|
104
111
|
allow_connected_accounts: boolean;
|
|
105
112
|
} & {
|
|
@@ -108,6 +115,7 @@ declare const oauthProviderCrud: CrudSchemaFromOptions<{
|
|
|
108
115
|
user_id: undefined;
|
|
109
116
|
id: undefined;
|
|
110
117
|
email: undefined;
|
|
118
|
+
provider_config_id: undefined;
|
|
111
119
|
type: undefined;
|
|
112
120
|
allow_sign_in: undefined;
|
|
113
121
|
allow_connected_accounts: undefined;
|
|
@@ -35,6 +35,7 @@ var oauthProviderClientReadSchema = (0, import_schema_fields.yupObject)({
|
|
|
35
35
|
user_id: import_schema_fields.userIdOrMeSchema.defined(),
|
|
36
36
|
id: import_schema_fields.oauthProviderIdSchema.defined(),
|
|
37
37
|
email: import_schema_fields.oauthProviderEmailSchema.optional(),
|
|
38
|
+
provider_config_id: import_schema_fields.oauthProviderProviderConfigIdSchema.defined(),
|
|
38
39
|
type: import_schema_fields.oauthProviderTypeSchema.defined(),
|
|
39
40
|
allow_sign_in: import_schema_fields.oauthProviderAllowSignInSchema.defined(),
|
|
40
41
|
allow_connected_accounts: import_schema_fields.oauthProviderAllowConnectedAccountsSchema.defined()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/interface/crud/oauth-providers.ts"],"sourcesContent":["import { CrudTypeOf, createCrud } from \"../../crud\";\nimport {\n oauthProviderAccountIdSchema,\n oauthProviderAllowConnectedAccountsSchema,\n oauthProviderAllowSignInSchema,\n oauthProviderEmailSchema,\n oauthProviderIdSchema,\n oauthProviderTypeSchema,\n userIdOrMeSchema,\n yupMixed,\n yupObject,\n yupString\n} from \"../../schema-fields\";\n\nexport const oauthProviderClientReadSchema = yupObject({\n user_id: userIdOrMeSchema.defined(),\n id: oauthProviderIdSchema.defined(),\n email: oauthProviderEmailSchema.optional(),\n type: oauthProviderTypeSchema.defined(),\n allow_sign_in: oauthProviderAllowSignInSchema.defined(),\n allow_connected_accounts: oauthProviderAllowConnectedAccountsSchema.defined(),\n}).defined();\n\nexport const oauthProviderServerReadSchema = oauthProviderClientReadSchema.concat(yupObject({\n account_id: oauthProviderAccountIdSchema.defined(),\n}));\n\nexport const oauthProviderCrudClientUpdateSchema = yupObject({\n allow_sign_in: oauthProviderAllowSignInSchema.optional(),\n allow_connected_accounts: oauthProviderAllowConnectedAccountsSchema.optional(),\n}).defined();\n\nexport const oauthProviderCrudServerUpdateSchema = oauthProviderCrudClientUpdateSchema.concat(yupObject({\n email: oauthProviderEmailSchema.optional(),\n account_id: oauthProviderAccountIdSchema.optional(),\n}));\n\nexport const oauthProviderCrudServerCreateSchema = yupObject({\n user_id: userIdOrMeSchema.defined(),\n provider_config_id: yupString().defined(),\n email: oauthProviderEmailSchema.optional(),\n allow_sign_in: oauthProviderAllowSignInSchema.defined(),\n allow_connected_accounts: oauthProviderAllowConnectedAccountsSchema.defined(),\n account_id: oauthProviderAccountIdSchema.defined(),\n}).defined();\n\nexport const oauthProviderCrudClientDeleteSchema = yupMixed();\n\nexport const oauthProviderCrud = createCrud({\n clientReadSchema: oauthProviderClientReadSchema,\n clientUpdateSchema: oauthProviderCrudClientUpdateSchema,\n clientDeleteSchema: oauthProviderCrudClientDeleteSchema,\n serverReadSchema: oauthProviderServerReadSchema,\n serverUpdateSchema: oauthProviderCrudServerUpdateSchema,\n serverCreateSchema: oauthProviderCrudServerCreateSchema,\n docs: {\n clientRead: {\n summary: \"Get an OAuth provider\",\n description: \"Retrieves a specific OAuth provider by the user ID and the OAuth provider ID.\",\n tags: [\"OAuth Providers\"],\n },\n serverCreate: {\n summary: \"Create an OAuth provider\",\n description: \"Add a new OAuth provider for a user.\",\n tags: [\"OAuth Providers\"],\n },\n serverUpdate: {\n summary: \"Update an OAuth provider\",\n description: \"Updates an existing OAuth provider. Only the values provided will be updated.\",\n tags: [\"OAuth Providers\"],\n },\n clientDelete: {\n summary: \"Delete an OAuth provider\",\n description: \"Removes an OAuth provider for a given user.\",\n tags: [\"OAuth Providers\"],\n },\n clientList: {\n summary: \"List OAuth providers\",\n description: \"Retrieves a list of all OAuth providers for a user.\",\n tags: [\"OAuth Providers\"],\n },\n }\n});\nexport type OAuthProviderCrud = CrudTypeOf<typeof oauthProviderCrud>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuC;AACvC,
|
|
1
|
+
{"version":3,"sources":["../../../src/interface/crud/oauth-providers.ts"],"sourcesContent":["import { CrudTypeOf, createCrud } from \"../../crud\";\nimport {\n oauthProviderAccountIdSchema,\n oauthProviderAllowConnectedAccountsSchema,\n oauthProviderAllowSignInSchema,\n oauthProviderEmailSchema,\n oauthProviderIdSchema,\n oauthProviderProviderConfigIdSchema,\n oauthProviderTypeSchema,\n userIdOrMeSchema,\n yupMixed,\n yupObject,\n yupString\n} from \"../../schema-fields\";\n\nexport const oauthProviderClientReadSchema = yupObject({\n user_id: userIdOrMeSchema.defined(),\n id: oauthProviderIdSchema.defined(),\n email: oauthProviderEmailSchema.optional(),\n provider_config_id: oauthProviderProviderConfigIdSchema.defined(),\n type: oauthProviderTypeSchema.defined(),\n allow_sign_in: oauthProviderAllowSignInSchema.defined(),\n allow_connected_accounts: oauthProviderAllowConnectedAccountsSchema.defined(),\n}).defined();\n\nexport const oauthProviderServerReadSchema = oauthProviderClientReadSchema.concat(yupObject({\n account_id: oauthProviderAccountIdSchema.defined(),\n}));\n\nexport const oauthProviderCrudClientUpdateSchema = yupObject({\n allow_sign_in: oauthProviderAllowSignInSchema.optional(),\n allow_connected_accounts: oauthProviderAllowConnectedAccountsSchema.optional(),\n}).defined();\n\nexport const oauthProviderCrudServerUpdateSchema = oauthProviderCrudClientUpdateSchema.concat(yupObject({\n email: oauthProviderEmailSchema.optional(),\n account_id: oauthProviderAccountIdSchema.optional(),\n}));\n\nexport const oauthProviderCrudServerCreateSchema = yupObject({\n user_id: userIdOrMeSchema.defined(),\n provider_config_id: yupString().defined(),\n email: oauthProviderEmailSchema.optional(),\n allow_sign_in: oauthProviderAllowSignInSchema.defined(),\n allow_connected_accounts: oauthProviderAllowConnectedAccountsSchema.defined(),\n account_id: oauthProviderAccountIdSchema.defined(),\n}).defined();\n\nexport const oauthProviderCrudClientDeleteSchema = yupMixed();\n\nexport const oauthProviderCrud = createCrud({\n clientReadSchema: oauthProviderClientReadSchema,\n clientUpdateSchema: oauthProviderCrudClientUpdateSchema,\n clientDeleteSchema: oauthProviderCrudClientDeleteSchema,\n serverReadSchema: oauthProviderServerReadSchema,\n serverUpdateSchema: oauthProviderCrudServerUpdateSchema,\n serverCreateSchema: oauthProviderCrudServerCreateSchema,\n docs: {\n clientRead: {\n summary: \"Get an OAuth provider\",\n description: \"Retrieves a specific OAuth provider by the user ID and the OAuth provider ID.\",\n tags: [\"OAuth Providers\"],\n },\n serverCreate: {\n summary: \"Create an OAuth provider\",\n description: \"Add a new OAuth provider for a user.\",\n tags: [\"OAuth Providers\"],\n },\n serverUpdate: {\n summary: \"Update an OAuth provider\",\n description: \"Updates an existing OAuth provider. Only the values provided will be updated.\",\n tags: [\"OAuth Providers\"],\n },\n clientDelete: {\n summary: \"Delete an OAuth provider\",\n description: \"Removes an OAuth provider for a given user.\",\n tags: [\"OAuth Providers\"],\n },\n clientList: {\n summary: \"List OAuth providers\",\n description: \"Retrieves a list of all OAuth providers for a user.\",\n tags: [\"OAuth Providers\"],\n },\n }\n});\nexport type OAuthProviderCrud = CrudTypeOf<typeof oauthProviderCrud>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuC;AACvC,2BAYO;AAEA,IAAM,oCAAgC,gCAAU;AAAA,EACrD,SAAS,sCAAiB,QAAQ;AAAA,EAClC,IAAI,2CAAsB,QAAQ;AAAA,EAClC,OAAO,8CAAyB,SAAS;AAAA,EACzC,oBAAoB,yDAAoC,QAAQ;AAAA,EAChE,MAAM,6CAAwB,QAAQ;AAAA,EACtC,eAAe,oDAA+B,QAAQ;AAAA,EACtD,0BAA0B,+DAA0C,QAAQ;AAC9E,CAAC,EAAE,QAAQ;AAEJ,IAAM,gCAAgC,8BAA8B,WAAO,gCAAU;AAAA,EAC1F,YAAY,kDAA6B,QAAQ;AACnD,CAAC,CAAC;AAEK,IAAM,0CAAsC,gCAAU;AAAA,EAC3D,eAAe,oDAA+B,SAAS;AAAA,EACvD,0BAA0B,+DAA0C,SAAS;AAC/E,CAAC,EAAE,QAAQ;AAEJ,IAAM,sCAAsC,oCAAoC,WAAO,gCAAU;AAAA,EACtG,OAAO,8CAAyB,SAAS;AAAA,EACzC,YAAY,kDAA6B,SAAS;AACpD,CAAC,CAAC;AAEK,IAAM,0CAAsC,gCAAU;AAAA,EAC3D,SAAS,sCAAiB,QAAQ;AAAA,EAClC,wBAAoB,gCAAU,EAAE,QAAQ;AAAA,EACxC,OAAO,8CAAyB,SAAS;AAAA,EACzC,eAAe,oDAA+B,QAAQ;AAAA,EACtD,0BAA0B,+DAA0C,QAAQ;AAAA,EAC5E,YAAY,kDAA6B,QAAQ;AACnD,CAAC,EAAE,QAAQ;AAEJ,IAAM,0CAAsC,+BAAS;AAErD,IAAM,wBAAoB,wBAAW;AAAA,EAC1C,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,MAAM;AAAA,IACJ,YAAY;AAAA,MACV,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,iBAAiB;AAAA,IAC1B;AAAA,IACA,cAAc;AAAA,MACZ,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,iBAAiB;AAAA,IAC1B;AAAA,IACA,cAAc;AAAA,MACZ,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,iBAAiB;AAAA,IAC1B;AAAA,IACA,cAAc;AAAA,MACZ,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,iBAAiB;AAAA,IAC1B;AAAA,IACA,YAAY;AAAA,MACV,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM,CAAC,iBAAiB;AAAA,IAC1B;AAAA,EACF;AACF,CAAC;","names":[]}
|
|
@@ -84,10 +84,10 @@ declare const userApiKeysCreateOutputSchema: yup.ObjectSchema<{
|
|
|
84
84
|
type: "user";
|
|
85
85
|
description: string;
|
|
86
86
|
id: string;
|
|
87
|
-
user_id: string;
|
|
88
87
|
created_at_millis: number;
|
|
89
88
|
expires_at_millis: number | undefined;
|
|
90
89
|
manually_revoked_at_millis: number | undefined;
|
|
90
|
+
user_id: string;
|
|
91
91
|
is_public: boolean;
|
|
92
92
|
} & {
|
|
93
93
|
value: string;
|
|
@@ -184,10 +184,10 @@ declare const teamApiKeysCreateOutputSchema: yup.ObjectSchema<{
|
|
|
184
184
|
type: "team";
|
|
185
185
|
description: string;
|
|
186
186
|
id: string;
|
|
187
|
-
team_id: string;
|
|
188
187
|
created_at_millis: number;
|
|
189
188
|
expires_at_millis: number | undefined;
|
|
190
189
|
manually_revoked_at_millis: number | undefined;
|
|
190
|
+
team_id: string;
|
|
191
191
|
is_public: boolean;
|
|
192
192
|
} & {
|
|
193
193
|
value: string;
|
|
@@ -84,10 +84,10 @@ declare const userApiKeysCreateOutputSchema: yup.ObjectSchema<{
|
|
|
84
84
|
type: "user";
|
|
85
85
|
description: string;
|
|
86
86
|
id: string;
|
|
87
|
-
user_id: string;
|
|
88
87
|
created_at_millis: number;
|
|
89
88
|
expires_at_millis: number | undefined;
|
|
90
89
|
manually_revoked_at_millis: number | undefined;
|
|
90
|
+
user_id: string;
|
|
91
91
|
is_public: boolean;
|
|
92
92
|
} & {
|
|
93
93
|
value: string;
|
|
@@ -184,10 +184,10 @@ declare const teamApiKeysCreateOutputSchema: yup.ObjectSchema<{
|
|
|
184
184
|
type: "team";
|
|
185
185
|
description: string;
|
|
186
186
|
id: string;
|
|
187
|
-
team_id: string;
|
|
188
187
|
created_at_millis: number;
|
|
189
188
|
expires_at_millis: number | undefined;
|
|
190
189
|
manually_revoked_at_millis: number | undefined;
|
|
190
|
+
team_id: string;
|
|
191
191
|
is_public: boolean;
|
|
192
192
|
} & {
|
|
193
193
|
value: string;
|
|
@@ -61,11 +61,11 @@ declare const projectsCrudAdminReadSchema: yup.ObjectSchema<{
|
|
|
61
61
|
facebook_config_id?: string | undefined;
|
|
62
62
|
microsoft_tenant_id?: string | undefined;
|
|
63
63
|
type: "shared" | "standard";
|
|
64
|
-
id: "
|
|
64
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
65
65
|
provider_config_id: string;
|
|
66
66
|
}[];
|
|
67
67
|
enabled_oauth_providers: {
|
|
68
|
-
id: "
|
|
68
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
69
69
|
}[];
|
|
70
70
|
domains: {
|
|
71
71
|
domain: string;
|
|
@@ -145,7 +145,7 @@ declare const projectsCrudClientReadSchema: yup.ObjectSchema<{
|
|
|
145
145
|
allow_user_api_keys: boolean;
|
|
146
146
|
allow_team_api_keys: boolean;
|
|
147
147
|
enabled_oauth_providers: {
|
|
148
|
-
id: "
|
|
148
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
149
149
|
}[];
|
|
150
150
|
};
|
|
151
151
|
}, yup.AnyObject, {
|
|
@@ -185,7 +185,7 @@ declare const projectsCrudAdminUpdateSchema: yup.ObjectSchema<{
|
|
|
185
185
|
facebook_config_id?: string | undefined;
|
|
186
186
|
microsoft_tenant_id?: string | undefined;
|
|
187
187
|
type: "shared" | "standard";
|
|
188
|
-
id: "
|
|
188
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
189
189
|
}[] | undefined;
|
|
190
190
|
domains?: {
|
|
191
191
|
domain: string;
|
|
@@ -243,7 +243,7 @@ declare const projectsCrudAdminCreateSchema: yup.ObjectSchema<{
|
|
|
243
243
|
facebook_config_id?: string | undefined;
|
|
244
244
|
microsoft_tenant_id?: string | undefined;
|
|
245
245
|
type: "shared" | "standard";
|
|
246
|
-
id: "
|
|
246
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
247
247
|
}[] | undefined;
|
|
248
248
|
domains?: {
|
|
249
249
|
domain: string;
|
|
@@ -298,7 +298,7 @@ declare const clientProjectsCrud: CrudSchemaFromOptions<{
|
|
|
298
298
|
allow_user_api_keys: boolean;
|
|
299
299
|
allow_team_api_keys: boolean;
|
|
300
300
|
enabled_oauth_providers: {
|
|
301
|
-
id: "
|
|
301
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
302
302
|
}[];
|
|
303
303
|
};
|
|
304
304
|
}, yup.AnyObject, {
|
|
@@ -351,11 +351,11 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
351
351
|
facebook_config_id?: string | undefined;
|
|
352
352
|
microsoft_tenant_id?: string | undefined;
|
|
353
353
|
type: "shared" | "standard";
|
|
354
|
-
id: "
|
|
354
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
355
355
|
provider_config_id: string;
|
|
356
356
|
}[];
|
|
357
357
|
enabled_oauth_providers: {
|
|
358
|
-
id: "
|
|
358
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
359
359
|
}[];
|
|
360
360
|
domains: {
|
|
361
361
|
domain: string;
|
|
@@ -444,7 +444,7 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
444
444
|
facebook_config_id?: string | undefined;
|
|
445
445
|
microsoft_tenant_id?: string | undefined;
|
|
446
446
|
type: "shared" | "standard";
|
|
447
|
-
id: "
|
|
447
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
448
448
|
}[] | undefined;
|
|
449
449
|
domains?: {
|
|
450
450
|
domain: string;
|
|
@@ -526,11 +526,11 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
526
526
|
facebook_config_id?: string | undefined;
|
|
527
527
|
microsoft_tenant_id?: string | undefined;
|
|
528
528
|
type: "shared" | "standard";
|
|
529
|
-
id: "
|
|
529
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
530
530
|
provider_config_id: string;
|
|
531
531
|
}[];
|
|
532
532
|
enabled_oauth_providers: {
|
|
533
|
-
id: "
|
|
533
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
534
534
|
}[];
|
|
535
535
|
domains: {
|
|
536
536
|
domain: string;
|
|
@@ -619,7 +619,7 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
619
619
|
facebook_config_id?: string | undefined;
|
|
620
620
|
microsoft_tenant_id?: string | undefined;
|
|
621
621
|
type: "shared" | "standard";
|
|
622
|
-
id: "
|
|
622
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
623
623
|
}[] | undefined;
|
|
624
624
|
domains?: {
|
|
625
625
|
domain: string;
|
|
@@ -61,11 +61,11 @@ declare const projectsCrudAdminReadSchema: yup.ObjectSchema<{
|
|
|
61
61
|
facebook_config_id?: string | undefined;
|
|
62
62
|
microsoft_tenant_id?: string | undefined;
|
|
63
63
|
type: "shared" | "standard";
|
|
64
|
-
id: "
|
|
64
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
65
65
|
provider_config_id: string;
|
|
66
66
|
}[];
|
|
67
67
|
enabled_oauth_providers: {
|
|
68
|
-
id: "
|
|
68
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
69
69
|
}[];
|
|
70
70
|
domains: {
|
|
71
71
|
domain: string;
|
|
@@ -145,7 +145,7 @@ declare const projectsCrudClientReadSchema: yup.ObjectSchema<{
|
|
|
145
145
|
allow_user_api_keys: boolean;
|
|
146
146
|
allow_team_api_keys: boolean;
|
|
147
147
|
enabled_oauth_providers: {
|
|
148
|
-
id: "
|
|
148
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
149
149
|
}[];
|
|
150
150
|
};
|
|
151
151
|
}, yup.AnyObject, {
|
|
@@ -185,7 +185,7 @@ declare const projectsCrudAdminUpdateSchema: yup.ObjectSchema<{
|
|
|
185
185
|
facebook_config_id?: string | undefined;
|
|
186
186
|
microsoft_tenant_id?: string | undefined;
|
|
187
187
|
type: "shared" | "standard";
|
|
188
|
-
id: "
|
|
188
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
189
189
|
}[] | undefined;
|
|
190
190
|
domains?: {
|
|
191
191
|
domain: string;
|
|
@@ -243,7 +243,7 @@ declare const projectsCrudAdminCreateSchema: yup.ObjectSchema<{
|
|
|
243
243
|
facebook_config_id?: string | undefined;
|
|
244
244
|
microsoft_tenant_id?: string | undefined;
|
|
245
245
|
type: "shared" | "standard";
|
|
246
|
-
id: "
|
|
246
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
247
247
|
}[] | undefined;
|
|
248
248
|
domains?: {
|
|
249
249
|
domain: string;
|
|
@@ -298,7 +298,7 @@ declare const clientProjectsCrud: CrudSchemaFromOptions<{
|
|
|
298
298
|
allow_user_api_keys: boolean;
|
|
299
299
|
allow_team_api_keys: boolean;
|
|
300
300
|
enabled_oauth_providers: {
|
|
301
|
-
id: "
|
|
301
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
302
302
|
}[];
|
|
303
303
|
};
|
|
304
304
|
}, yup.AnyObject, {
|
|
@@ -351,11 +351,11 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
351
351
|
facebook_config_id?: string | undefined;
|
|
352
352
|
microsoft_tenant_id?: string | undefined;
|
|
353
353
|
type: "shared" | "standard";
|
|
354
|
-
id: "
|
|
354
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
355
355
|
provider_config_id: string;
|
|
356
356
|
}[];
|
|
357
357
|
enabled_oauth_providers: {
|
|
358
|
-
id: "
|
|
358
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
359
359
|
}[];
|
|
360
360
|
domains: {
|
|
361
361
|
domain: string;
|
|
@@ -444,7 +444,7 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
444
444
|
facebook_config_id?: string | undefined;
|
|
445
445
|
microsoft_tenant_id?: string | undefined;
|
|
446
446
|
type: "shared" | "standard";
|
|
447
|
-
id: "
|
|
447
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
448
448
|
}[] | undefined;
|
|
449
449
|
domains?: {
|
|
450
450
|
domain: string;
|
|
@@ -526,11 +526,11 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
526
526
|
facebook_config_id?: string | undefined;
|
|
527
527
|
microsoft_tenant_id?: string | undefined;
|
|
528
528
|
type: "shared" | "standard";
|
|
529
|
-
id: "
|
|
529
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
530
530
|
provider_config_id: string;
|
|
531
531
|
}[];
|
|
532
532
|
enabled_oauth_providers: {
|
|
533
|
-
id: "
|
|
533
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
534
534
|
}[];
|
|
535
535
|
domains: {
|
|
536
536
|
domain: string;
|
|
@@ -619,7 +619,7 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
619
619
|
facebook_config_id?: string | undefined;
|
|
620
620
|
microsoft_tenant_id?: string | undefined;
|
|
621
621
|
type: "shared" | "standard";
|
|
622
|
-
id: "
|
|
622
|
+
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
623
623
|
}[] | undefined;
|
|
624
624
|
domains?: {
|
|
625
625
|
domain: string;
|
|
@@ -21,8 +21,9 @@ declare const teamMemberProfilesCrudServerReadSchema: yup.ObjectSchema<{
|
|
|
21
21
|
profile_image_url: string | null;
|
|
22
22
|
} & {
|
|
23
23
|
user: {
|
|
24
|
+
selected_team_id: string | null;
|
|
25
|
+
is_anonymous: boolean;
|
|
24
26
|
id: string;
|
|
25
|
-
primary_email: string | null;
|
|
26
27
|
display_name: string | null;
|
|
27
28
|
oauth_providers: {
|
|
28
29
|
email?: string | null | undefined;
|
|
@@ -33,12 +34,11 @@ declare const teamMemberProfilesCrudServerReadSchema: yup.ObjectSchema<{
|
|
|
33
34
|
client_metadata: {} | null;
|
|
34
35
|
client_read_only_metadata: {} | null;
|
|
35
36
|
server_metadata: {} | null;
|
|
37
|
+
primary_email: string | null;
|
|
36
38
|
primary_email_verified: boolean;
|
|
37
39
|
primary_email_auth_enabled: boolean;
|
|
38
40
|
passkey_auth_enabled: boolean;
|
|
39
41
|
otp_auth_enabled: boolean;
|
|
40
|
-
selected_team_id: string | null;
|
|
41
|
-
is_anonymous: boolean;
|
|
42
42
|
selected_team: {
|
|
43
43
|
client_metadata?: {} | null | undefined;
|
|
44
44
|
client_read_only_metadata?: {} | null | undefined;
|
|
@@ -116,8 +116,9 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
|
|
|
116
116
|
profile_image_url: string | null;
|
|
117
117
|
} & {
|
|
118
118
|
user: {
|
|
119
|
+
selected_team_id: string | null;
|
|
120
|
+
is_anonymous: boolean;
|
|
119
121
|
id: string;
|
|
120
|
-
primary_email: string | null;
|
|
121
122
|
display_name: string | null;
|
|
122
123
|
oauth_providers: {
|
|
123
124
|
email?: string | null | undefined;
|
|
@@ -128,12 +129,11 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
|
|
|
128
129
|
client_metadata: {} | null;
|
|
129
130
|
client_read_only_metadata: {} | null;
|
|
130
131
|
server_metadata: {} | null;
|
|
132
|
+
primary_email: string | null;
|
|
131
133
|
primary_email_verified: boolean;
|
|
132
134
|
primary_email_auth_enabled: boolean;
|
|
133
135
|
passkey_auth_enabled: boolean;
|
|
134
136
|
otp_auth_enabled: boolean;
|
|
135
|
-
selected_team_id: string | null;
|
|
136
|
-
is_anonymous: boolean;
|
|
137
137
|
selected_team: {
|
|
138
138
|
client_metadata?: {} | null | undefined;
|
|
139
139
|
client_read_only_metadata?: {} | null | undefined;
|
|
@@ -21,8 +21,9 @@ declare const teamMemberProfilesCrudServerReadSchema: yup.ObjectSchema<{
|
|
|
21
21
|
profile_image_url: string | null;
|
|
22
22
|
} & {
|
|
23
23
|
user: {
|
|
24
|
+
selected_team_id: string | null;
|
|
25
|
+
is_anonymous: boolean;
|
|
24
26
|
id: string;
|
|
25
|
-
primary_email: string | null;
|
|
26
27
|
display_name: string | null;
|
|
27
28
|
oauth_providers: {
|
|
28
29
|
email?: string | null | undefined;
|
|
@@ -33,12 +34,11 @@ declare const teamMemberProfilesCrudServerReadSchema: yup.ObjectSchema<{
|
|
|
33
34
|
client_metadata: {} | null;
|
|
34
35
|
client_read_only_metadata: {} | null;
|
|
35
36
|
server_metadata: {} | null;
|
|
37
|
+
primary_email: string | null;
|
|
36
38
|
primary_email_verified: boolean;
|
|
37
39
|
primary_email_auth_enabled: boolean;
|
|
38
40
|
passkey_auth_enabled: boolean;
|
|
39
41
|
otp_auth_enabled: boolean;
|
|
40
|
-
selected_team_id: string | null;
|
|
41
|
-
is_anonymous: boolean;
|
|
42
42
|
selected_team: {
|
|
43
43
|
client_metadata?: {} | null | undefined;
|
|
44
44
|
client_read_only_metadata?: {} | null | undefined;
|
|
@@ -116,8 +116,9 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
|
|
|
116
116
|
profile_image_url: string | null;
|
|
117
117
|
} & {
|
|
118
118
|
user: {
|
|
119
|
+
selected_team_id: string | null;
|
|
120
|
+
is_anonymous: boolean;
|
|
119
121
|
id: string;
|
|
120
|
-
primary_email: string | null;
|
|
121
122
|
display_name: string | null;
|
|
122
123
|
oauth_providers: {
|
|
123
124
|
email?: string | null | undefined;
|
|
@@ -128,12 +129,11 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
|
|
|
128
129
|
client_metadata: {} | null;
|
|
129
130
|
client_read_only_metadata: {} | null;
|
|
130
131
|
server_metadata: {} | null;
|
|
132
|
+
primary_email: string | null;
|
|
131
133
|
primary_email_verified: boolean;
|
|
132
134
|
primary_email_auth_enabled: boolean;
|
|
133
135
|
passkey_auth_enabled: boolean;
|
|
134
136
|
otp_auth_enabled: boolean;
|
|
135
|
-
selected_team_id: string | null;
|
|
136
|
-
is_anonymous: boolean;
|
|
137
137
|
selected_team: {
|
|
138
138
|
client_metadata?: {} | null | undefined;
|
|
139
139
|
client_read_only_metadata?: {} | null | undefined;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as yup from 'yup';
|
|
2
|
+
import { InferType } from 'yup';
|
|
3
|
+
import { DayInterval } from '../../utils/dates.mjs';
|
|
4
|
+
|
|
5
|
+
declare const adminTransaction: yup.ObjectSchema<{
|
|
6
|
+
id: string;
|
|
7
|
+
type: "subscription" | "one_time" | "item_quantity_change";
|
|
8
|
+
created_at_millis: number;
|
|
9
|
+
customer_type: "user" | "team" | "custom";
|
|
10
|
+
customer_id: string;
|
|
11
|
+
quantity: number;
|
|
12
|
+
test_mode: boolean;
|
|
13
|
+
offer_display_name: string | null;
|
|
14
|
+
price: {
|
|
15
|
+
USD?: string | undefined;
|
|
16
|
+
EUR?: string | undefined;
|
|
17
|
+
GBP?: string | undefined;
|
|
18
|
+
JPY?: string | undefined;
|
|
19
|
+
INR?: string | undefined;
|
|
20
|
+
AUD?: string | undefined;
|
|
21
|
+
CAD?: string | undefined;
|
|
22
|
+
interval?: DayInterval | undefined;
|
|
23
|
+
} | null;
|
|
24
|
+
status: string | null;
|
|
25
|
+
item_id: string | undefined;
|
|
26
|
+
description: string | null | undefined;
|
|
27
|
+
expires_at_millis: number | null | undefined;
|
|
28
|
+
}, yup.AnyObject, {
|
|
29
|
+
id: undefined;
|
|
30
|
+
type: undefined;
|
|
31
|
+
created_at_millis: undefined;
|
|
32
|
+
customer_type: undefined;
|
|
33
|
+
customer_id: undefined;
|
|
34
|
+
quantity: undefined;
|
|
35
|
+
test_mode: undefined;
|
|
36
|
+
offer_display_name: undefined;
|
|
37
|
+
price: {
|
|
38
|
+
interval: undefined;
|
|
39
|
+
serverOnly: undefined;
|
|
40
|
+
freeTrial: undefined;
|
|
41
|
+
USD: undefined;
|
|
42
|
+
EUR: undefined;
|
|
43
|
+
GBP: undefined;
|
|
44
|
+
JPY: undefined;
|
|
45
|
+
INR: undefined;
|
|
46
|
+
AUD: undefined;
|
|
47
|
+
CAD: undefined;
|
|
48
|
+
};
|
|
49
|
+
status: undefined;
|
|
50
|
+
item_id: undefined;
|
|
51
|
+
description: undefined;
|
|
52
|
+
expires_at_millis: undefined;
|
|
53
|
+
}, "">;
|
|
54
|
+
type AdminTransaction = InferType<typeof adminTransaction>;
|
|
55
|
+
|
|
56
|
+
export { type AdminTransaction, adminTransaction };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as yup from 'yup';
|
|
2
|
+
import { InferType } from 'yup';
|
|
3
|
+
import { DayInterval } from '../../utils/dates.js';
|
|
4
|
+
|
|
5
|
+
declare const adminTransaction: yup.ObjectSchema<{
|
|
6
|
+
id: string;
|
|
7
|
+
type: "subscription" | "one_time" | "item_quantity_change";
|
|
8
|
+
created_at_millis: number;
|
|
9
|
+
customer_type: "user" | "team" | "custom";
|
|
10
|
+
customer_id: string;
|
|
11
|
+
quantity: number;
|
|
12
|
+
test_mode: boolean;
|
|
13
|
+
offer_display_name: string | null;
|
|
14
|
+
price: {
|
|
15
|
+
USD?: string | undefined;
|
|
16
|
+
EUR?: string | undefined;
|
|
17
|
+
GBP?: string | undefined;
|
|
18
|
+
JPY?: string | undefined;
|
|
19
|
+
INR?: string | undefined;
|
|
20
|
+
AUD?: string | undefined;
|
|
21
|
+
CAD?: string | undefined;
|
|
22
|
+
interval?: DayInterval | undefined;
|
|
23
|
+
} | null;
|
|
24
|
+
status: string | null;
|
|
25
|
+
item_id: string | undefined;
|
|
26
|
+
description: string | null | undefined;
|
|
27
|
+
expires_at_millis: number | null | undefined;
|
|
28
|
+
}, yup.AnyObject, {
|
|
29
|
+
id: undefined;
|
|
30
|
+
type: undefined;
|
|
31
|
+
created_at_millis: undefined;
|
|
32
|
+
customer_type: undefined;
|
|
33
|
+
customer_id: undefined;
|
|
34
|
+
quantity: undefined;
|
|
35
|
+
test_mode: undefined;
|
|
36
|
+
offer_display_name: undefined;
|
|
37
|
+
price: {
|
|
38
|
+
interval: undefined;
|
|
39
|
+
serverOnly: undefined;
|
|
40
|
+
freeTrial: undefined;
|
|
41
|
+
USD: undefined;
|
|
42
|
+
EUR: undefined;
|
|
43
|
+
GBP: undefined;
|
|
44
|
+
JPY: undefined;
|
|
45
|
+
INR: undefined;
|
|
46
|
+
AUD: undefined;
|
|
47
|
+
CAD: undefined;
|
|
48
|
+
};
|
|
49
|
+
status: undefined;
|
|
50
|
+
item_id: undefined;
|
|
51
|
+
description: undefined;
|
|
52
|
+
expires_at_millis: undefined;
|
|
53
|
+
}, "">;
|
|
54
|
+
type AdminTransaction = InferType<typeof adminTransaction>;
|
|
55
|
+
|
|
56
|
+
export { type AdminTransaction, adminTransaction };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/interface/crud/transactions.ts
|
|
21
|
+
var transactions_exports = {};
|
|
22
|
+
__export(transactions_exports, {
|
|
23
|
+
adminTransaction: () => adminTransaction
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(transactions_exports);
|
|
26
|
+
var import_schema_fields = require("../../schema-fields.js");
|
|
27
|
+
var adminTransaction = (0, import_schema_fields.yupObject)({
|
|
28
|
+
id: (0, import_schema_fields.yupString)().defined(),
|
|
29
|
+
type: (0, import_schema_fields.yupString)().oneOf(["subscription", "one_time", "item_quantity_change"]).defined(),
|
|
30
|
+
created_at_millis: (0, import_schema_fields.yupNumber)().defined(),
|
|
31
|
+
customer_type: import_schema_fields.customerTypeSchema.defined(),
|
|
32
|
+
customer_id: (0, import_schema_fields.yupString)().defined(),
|
|
33
|
+
quantity: (0, import_schema_fields.yupNumber)().defined(),
|
|
34
|
+
test_mode: (0, import_schema_fields.yupBoolean)().defined(),
|
|
35
|
+
offer_display_name: (0, import_schema_fields.yupString)().nullable().defined(),
|
|
36
|
+
price: import_schema_fields.offerPriceSchema.omit(["serverOnly", "freeTrial"]).nullable().defined(),
|
|
37
|
+
status: (0, import_schema_fields.yupString)().nullable().defined(),
|
|
38
|
+
item_id: (0, import_schema_fields.yupString)().optional(),
|
|
39
|
+
description: (0, import_schema_fields.yupString)().nullable().optional(),
|
|
40
|
+
expires_at_millis: (0, import_schema_fields.yupNumber)().nullable().optional()
|
|
41
|
+
}).defined();
|
|
42
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
43
|
+
0 && (module.exports = {
|
|
44
|
+
adminTransaction
|
|
45
|
+
});
|
|
46
|
+
//# sourceMappingURL=transactions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/interface/crud/transactions.ts"],"sourcesContent":["import type { InferType } from \"yup\";\nimport { customerTypeSchema, offerPriceSchema, yupBoolean, yupNumber, yupObject, yupString } from \"../../schema-fields\";\n\nexport const adminTransaction = yupObject({\n id: yupString().defined(),\n type: yupString().oneOf([\"subscription\", \"one_time\", \"item_quantity_change\"]).defined(),\n created_at_millis: yupNumber().defined(),\n customer_type: customerTypeSchema.defined(),\n customer_id: yupString().defined(),\n quantity: yupNumber().defined(),\n test_mode: yupBoolean().defined(),\n offer_display_name: yupString().nullable().defined(),\n price: offerPriceSchema.omit([\"serverOnly\", \"freeTrial\"]).nullable().defined(),\n status: yupString().nullable().defined(),\n item_id: yupString().optional(),\n description: yupString().nullable().optional(),\n expires_at_millis: yupNumber().nullable().optional(),\n}).defined();\n\nexport type AdminTransaction = InferType<typeof adminTransaction>;\n\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,2BAAkG;AAE3F,IAAM,uBAAmB,gCAAU;AAAA,EACxC,QAAI,gCAAU,EAAE,QAAQ;AAAA,EACxB,UAAM,gCAAU,EAAE,MAAM,CAAC,gBAAgB,YAAY,sBAAsB,CAAC,EAAE,QAAQ;AAAA,EACtF,uBAAmB,gCAAU,EAAE,QAAQ;AAAA,EACvC,eAAe,wCAAmB,QAAQ;AAAA,EAC1C,iBAAa,gCAAU,EAAE,QAAQ;AAAA,EACjC,cAAU,gCAAU,EAAE,QAAQ;AAAA,EAC9B,eAAW,iCAAW,EAAE,QAAQ;AAAA,EAChC,wBAAoB,gCAAU,EAAE,SAAS,EAAE,QAAQ;AAAA,EACnD,OAAO,sCAAiB,KAAK,CAAC,cAAc,WAAW,CAAC,EAAE,SAAS,EAAE,QAAQ;AAAA,EAC7E,YAAQ,gCAAU,EAAE,SAAS,EAAE,QAAQ;AAAA,EACvC,aAAS,gCAAU,EAAE,SAAS;AAAA,EAC9B,iBAAa,gCAAU,EAAE,SAAS,EAAE,SAAS;AAAA,EAC7C,uBAAmB,gCAAU,EAAE,SAAS,EAAE,SAAS;AACrD,CAAC,EAAE,QAAQ;","names":[]}
|