@growsober/types 1.0.10 → 1.0.12
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/dist/generated.d.ts +138 -12
- package/dist/generated.js +1 -1
- package/package.json +1 -1
- package/src/generated.ts +138 -12
package/dist/generated.d.ts
CHANGED
|
@@ -2370,6 +2370,40 @@ export interface paths {
|
|
|
2370
2370
|
patch?: never;
|
|
2371
2371
|
trace?: never;
|
|
2372
2372
|
};
|
|
2373
|
+
"/creators/{id}/available-dates": {
|
|
2374
|
+
parameters: {
|
|
2375
|
+
query?: never;
|
|
2376
|
+
header?: never;
|
|
2377
|
+
path?: never;
|
|
2378
|
+
cookie?: never;
|
|
2379
|
+
};
|
|
2380
|
+
/** Get dates with availability for a creator */
|
|
2381
|
+
get: operations["CreatorsController_getAvailableDates"];
|
|
2382
|
+
put?: never;
|
|
2383
|
+
post?: never;
|
|
2384
|
+
delete?: never;
|
|
2385
|
+
options?: never;
|
|
2386
|
+
head?: never;
|
|
2387
|
+
patch?: never;
|
|
2388
|
+
trace?: never;
|
|
2389
|
+
};
|
|
2390
|
+
"/creators/{id}/available-slots": {
|
|
2391
|
+
parameters: {
|
|
2392
|
+
query?: never;
|
|
2393
|
+
header?: never;
|
|
2394
|
+
path?: never;
|
|
2395
|
+
cookie?: never;
|
|
2396
|
+
};
|
|
2397
|
+
/** Get available time slots for a creator on a specific date */
|
|
2398
|
+
get: operations["CreatorsController_getAvailableSlots"];
|
|
2399
|
+
put?: never;
|
|
2400
|
+
post?: never;
|
|
2401
|
+
delete?: never;
|
|
2402
|
+
options?: never;
|
|
2403
|
+
head?: never;
|
|
2404
|
+
patch?: never;
|
|
2405
|
+
trace?: never;
|
|
2406
|
+
};
|
|
2373
2407
|
"/creators/{id}/content": {
|
|
2374
2408
|
parameters: {
|
|
2375
2409
|
query?: never;
|
|
@@ -5922,7 +5956,7 @@ export interface components {
|
|
|
5922
5956
|
onboardedAt?: string;
|
|
5923
5957
|
/**
|
|
5924
5958
|
* @description Default payout currency
|
|
5925
|
-
* @example
|
|
5959
|
+
* @example EUR
|
|
5926
5960
|
*/
|
|
5927
5961
|
defaultPayoutCurrency: string;
|
|
5928
5962
|
/** @description Requirements that need to be addressed (if any) */
|
|
@@ -5953,7 +5987,7 @@ export interface components {
|
|
|
5953
5987
|
availableBalance: number;
|
|
5954
5988
|
/**
|
|
5955
5989
|
* @description Currency code
|
|
5956
|
-
* @example
|
|
5990
|
+
* @example EUR
|
|
5957
5991
|
*/
|
|
5958
5992
|
currency: string;
|
|
5959
5993
|
/**
|
|
@@ -5995,7 +6029,7 @@ export interface components {
|
|
|
5995
6029
|
platformFee: number;
|
|
5996
6030
|
/**
|
|
5997
6031
|
* @description Currency code
|
|
5998
|
-
* @example
|
|
6032
|
+
* @example EUR
|
|
5999
6033
|
*/
|
|
6000
6034
|
currency: string;
|
|
6001
6035
|
/**
|
|
@@ -7159,7 +7193,7 @@ export interface components {
|
|
|
7159
7193
|
*/
|
|
7160
7194
|
certifications?: string[];
|
|
7161
7195
|
/**
|
|
7162
|
-
* @description Session rate in
|
|
7196
|
+
* @description Session rate in EUR
|
|
7163
7197
|
* @example 75
|
|
7164
7198
|
*/
|
|
7165
7199
|
sessionRate?: number;
|
|
@@ -7214,7 +7248,7 @@ export interface components {
|
|
|
7214
7248
|
*/
|
|
7215
7249
|
certifications?: string[];
|
|
7216
7250
|
/**
|
|
7217
|
-
* @description Session rate in
|
|
7251
|
+
* @description Session rate in EUR
|
|
7218
7252
|
* @example 75
|
|
7219
7253
|
*/
|
|
7220
7254
|
sessionRate?: number;
|
|
@@ -7239,10 +7273,10 @@ export interface components {
|
|
|
7239
7273
|
};
|
|
7240
7274
|
CreateAvailabilityDto: {
|
|
7241
7275
|
/**
|
|
7242
|
-
* @description Day of week (0=Sunday, 6=Saturday)
|
|
7276
|
+
* @description Day of week (0=Sunday, 6=Saturday). Required for recurring slots, omit for specific dates.
|
|
7243
7277
|
* @example 1
|
|
7244
7278
|
*/
|
|
7245
|
-
dayOfWeek
|
|
7279
|
+
dayOfWeek?: number;
|
|
7246
7280
|
/**
|
|
7247
7281
|
* @description Start time in HH:mm format
|
|
7248
7282
|
* @example 09:00
|
|
@@ -7266,6 +7300,26 @@ export interface components {
|
|
|
7266
7300
|
*/
|
|
7267
7301
|
specificDate?: string;
|
|
7268
7302
|
};
|
|
7303
|
+
AvailableDateDto: {
|
|
7304
|
+
/** @example 2026-02-01 */
|
|
7305
|
+
date: string;
|
|
7306
|
+
hasAvailability: boolean;
|
|
7307
|
+
};
|
|
7308
|
+
AvailableDatesResponseDto: {
|
|
7309
|
+
dates: components["schemas"]["AvailableDateDto"][];
|
|
7310
|
+
};
|
|
7311
|
+
AvailableSlotDto: {
|
|
7312
|
+
/** @example 09:00 */
|
|
7313
|
+
startTime: string;
|
|
7314
|
+
/** @example 10:00 */
|
|
7315
|
+
endTime: string;
|
|
7316
|
+
available: boolean;
|
|
7317
|
+
};
|
|
7318
|
+
AvailableSlotsResponseDto: {
|
|
7319
|
+
/** @example 2026-02-01 */
|
|
7320
|
+
date: string;
|
|
7321
|
+
slots: components["schemas"]["AvailableSlotDto"][];
|
|
7322
|
+
};
|
|
7269
7323
|
BrandResponseDto: {
|
|
7270
7324
|
id: string;
|
|
7271
7325
|
slug: string;
|
|
@@ -9275,7 +9329,7 @@ export interface components {
|
|
|
9275
9329
|
price?: Record<string, never>;
|
|
9276
9330
|
/**
|
|
9277
9331
|
* @description Currency code
|
|
9278
|
-
* @example
|
|
9332
|
+
* @example EUR
|
|
9279
9333
|
*/
|
|
9280
9334
|
currency: string;
|
|
9281
9335
|
/**
|
|
@@ -9488,17 +9542,27 @@ export interface components {
|
|
|
9488
9542
|
description?: string;
|
|
9489
9543
|
/** @example https://example.com/image.jpg */
|
|
9490
9544
|
imageUrl?: string;
|
|
9545
|
+
/** @example Sobriety Coaching */
|
|
9546
|
+
category?: string;
|
|
9547
|
+
/**
|
|
9548
|
+
* @example [
|
|
9549
|
+
* "coaching",
|
|
9550
|
+
* "recovery",
|
|
9551
|
+
* "wellness"
|
|
9552
|
+
* ]
|
|
9553
|
+
*/
|
|
9554
|
+
tags?: string[];
|
|
9491
9555
|
/**
|
|
9492
9556
|
* @example SESSION_1ON1
|
|
9493
9557
|
* @enum {string}
|
|
9494
9558
|
*/
|
|
9495
9559
|
type: "SESSION_1ON1" | "SESSION_GROUP" | "PACKAGE" | "WORKSHOP" | "CONSULTATION";
|
|
9496
9560
|
/**
|
|
9497
|
-
* @description Price in
|
|
9561
|
+
* @description Price in cents (5000 = €50.00)
|
|
9498
9562
|
* @example 5000
|
|
9499
9563
|
*/
|
|
9500
9564
|
price: number;
|
|
9501
|
-
/** @example
|
|
9565
|
+
/** @example EUR */
|
|
9502
9566
|
currency?: string;
|
|
9503
9567
|
/**
|
|
9504
9568
|
* @description Duration in minutes
|
|
@@ -9527,17 +9591,27 @@ export interface components {
|
|
|
9527
9591
|
description?: string;
|
|
9528
9592
|
/** @example https://example.com/image.jpg */
|
|
9529
9593
|
imageUrl?: string;
|
|
9594
|
+
/** @example Sobriety Coaching */
|
|
9595
|
+
category?: string;
|
|
9596
|
+
/**
|
|
9597
|
+
* @example [
|
|
9598
|
+
* "coaching",
|
|
9599
|
+
* "recovery",
|
|
9600
|
+
* "wellness"
|
|
9601
|
+
* ]
|
|
9602
|
+
*/
|
|
9603
|
+
tags?: string[];
|
|
9530
9604
|
/**
|
|
9531
9605
|
* @example SESSION_1ON1
|
|
9532
9606
|
* @enum {string}
|
|
9533
9607
|
*/
|
|
9534
9608
|
type?: "SESSION_1ON1" | "SESSION_GROUP" | "PACKAGE" | "WORKSHOP" | "CONSULTATION";
|
|
9535
9609
|
/**
|
|
9536
|
-
* @description Price in
|
|
9610
|
+
* @description Price in cents (5000 = €50.00)
|
|
9537
9611
|
* @example 5000
|
|
9538
9612
|
*/
|
|
9539
9613
|
price?: number;
|
|
9540
|
-
/** @example
|
|
9614
|
+
/** @example EUR */
|
|
9541
9615
|
currency?: string;
|
|
9542
9616
|
/**
|
|
9543
9617
|
* @description Duration in minutes
|
|
@@ -14191,6 +14265,58 @@ export interface operations {
|
|
|
14191
14265
|
};
|
|
14192
14266
|
};
|
|
14193
14267
|
};
|
|
14268
|
+
CreatorsController_getAvailableDates: {
|
|
14269
|
+
parameters: {
|
|
14270
|
+
query: {
|
|
14271
|
+
from: string;
|
|
14272
|
+
to: string;
|
|
14273
|
+
};
|
|
14274
|
+
header?: never;
|
|
14275
|
+
path: {
|
|
14276
|
+
/** @description Creator ID */
|
|
14277
|
+
id: string;
|
|
14278
|
+
};
|
|
14279
|
+
cookie?: never;
|
|
14280
|
+
};
|
|
14281
|
+
requestBody?: never;
|
|
14282
|
+
responses: {
|
|
14283
|
+
/** @description Available dates */
|
|
14284
|
+
200: {
|
|
14285
|
+
headers: {
|
|
14286
|
+
[name: string]: unknown;
|
|
14287
|
+
};
|
|
14288
|
+
content: {
|
|
14289
|
+
"application/json": components["schemas"]["AvailableDatesResponseDto"];
|
|
14290
|
+
};
|
|
14291
|
+
};
|
|
14292
|
+
};
|
|
14293
|
+
};
|
|
14294
|
+
CreatorsController_getAvailableSlots: {
|
|
14295
|
+
parameters: {
|
|
14296
|
+
query: {
|
|
14297
|
+
date: string;
|
|
14298
|
+
durationMinutes?: number;
|
|
14299
|
+
};
|
|
14300
|
+
header?: never;
|
|
14301
|
+
path: {
|
|
14302
|
+
/** @description Creator ID */
|
|
14303
|
+
id: string;
|
|
14304
|
+
};
|
|
14305
|
+
cookie?: never;
|
|
14306
|
+
};
|
|
14307
|
+
requestBody?: never;
|
|
14308
|
+
responses: {
|
|
14309
|
+
/** @description Available time slots */
|
|
14310
|
+
200: {
|
|
14311
|
+
headers: {
|
|
14312
|
+
[name: string]: unknown;
|
|
14313
|
+
};
|
|
14314
|
+
content: {
|
|
14315
|
+
"application/json": components["schemas"]["AvailableSlotsResponseDto"];
|
|
14316
|
+
};
|
|
14317
|
+
};
|
|
14318
|
+
};
|
|
14319
|
+
};
|
|
14194
14320
|
CreatorsController_getCreatorContent: {
|
|
14195
14321
|
parameters: {
|
|
14196
14322
|
query?: never;
|