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